osintengine 1.0.2__py3-none-any.whl
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.
- osintengine-1.0.2.dist-info/METADATA +311 -0
- osintengine-1.0.2.dist-info/RECORD +103 -0
- osintengine-1.0.2.dist-info/WHEEL +5 -0
- osintengine-1.0.2.dist-info/entry_points.txt +2 -0
- osintengine-1.0.2.dist-info/licenses/LICENSE +202 -0
- osintengine-1.0.2.dist-info/top_level.txt +2 -0
- src/watson/__init__.py +10 -0
- src/watson/agent/__init__.py +96 -0
- src/watson/agents/__init__.py +101 -0
- src/watson/agents/protocol.py +196 -0
- src/watson/auth/__init__.py +68 -0
- src/watson/auth/store.py +145 -0
- src/watson/conversation.py +68 -0
- src/watson/core/__init__.py +0 -0
- src/watson/core/models.py +96 -0
- src/watson/ethics.py +205 -0
- src/watson/exports.py +182 -0
- src/watson/graph/__init__.py +69 -0
- src/watson/graph/entities.py +207 -0
- src/watson/graph/graph.py +489 -0
- src/watson/graph/osint_framework.py +266 -0
- src/watson/graph/relationships.py +116 -0
- src/watson/graph/transforms.py +787 -0
- src/watson/infra/__init__.py +43 -0
- src/watson/infra/cache.py +171 -0
- src/watson/infra/ratelimit.py +125 -0
- src/watson/infra/resilience.py +239 -0
- src/watson/infra/retry.py +186 -0
- src/watson/metrics.py +128 -0
- src/watson/opsec/__init__.py +290 -0
- src/watson/orchestration/__init__.py +23 -0
- src/watson/orchestration/engine.py +5587 -0
- src/watson/orchestration/executor.py +96 -0
- src/watson/orchestration/intent.py +139 -0
- src/watson/orchestration/intent_classifier.py +45 -0
- src/watson/orchestration/llm_config.py +160 -0
- src/watson/orchestration/resolution.py +555 -0
- src/watson/orchestration/scraper.py +94 -0
- src/watson/orchestration/synthesis.py +726 -0
- src/watson/orchestration/target_profile.py +748 -0
- src/watson/persistence/__init__.py +18 -0
- src/watson/persistence/models.py +161 -0
- src/watson/persistence/store.py +230 -0
- src/watson/pipeline/__init__.py +16 -0
- src/watson/pipeline/pre_synthesis.py +621 -0
- src/watson/search.py +103 -0
- src/watson/serializers/stix.py +451 -0
- src/watson/tools/__init__.py +31 -0
- src/watson/tools/base.py +97 -0
- src/watson/tools/blockchain.py +359 -0
- src/watson/tools/captcha.py +276 -0
- src/watson/tools/conflict.py +107 -0
- src/watson/tools/corporate.py +287 -0
- src/watson/tools/darkweb.py +144 -0
- src/watson/tools/geolocation.py +347 -0
- src/watson/tools/image_video.py +108 -0
- src/watson/tools/marinetraffic.py +142 -0
- src/watson/tools/people.py +476 -0
- src/watson/tools/registry.py +56 -0
- src/watson/tools/satellite.py +118 -0
- src/watson/tools/scraper.py +745 -0
- src/watson/tools/shodan.py +129 -0
- src/watson/tools/social_media.py +160 -0
- src/watson/tools/websites.py +291 -0
- src/watson/tools/wikidata.py +398 -0
- src/watson/utils/__init__.py +1 -0
- src/watson/utils/helpers.py +49 -0
- src/watson/utils/http.py +119 -0
- src/watson/verification/__init__.py +245 -0
- watson/__init__.py +6 -0
- watson/agents/__init__.py +20 -0
- watson/agents/base.py +103 -0
- watson/agents/direct.py +225 -0
- watson/agents/hermes.py +275 -0
- watson/agents/hermes_mcp.py +292 -0
- watson/api_keys.py +176 -0
- watson/browser_scraper.py +481 -0
- watson/cli.py +836 -0
- watson/crossref.py +175 -0
- watson/ethics.py +20 -0
- watson/graph.py +406 -0
- watson/mcp_server.py +601 -0
- watson/memory.py +552 -0
- watson/neo4j_graph.py +124 -0
- watson/opsec/__init__.py +307 -0
- watson/reporter.py +537 -0
- watson/scheduler.py +486 -0
- watson/serializers/stix.py +451 -0
- watson/terminal.py +410 -0
- watson/toolkit.py +252 -0
- watson/toolkit_api.py +347 -0
- watson/toolkit_automation.py +95 -0
- watson/toolkit_registry.py +345 -0
- watson/verification/__init__.py +251 -0
- watson/web/__init__.py +1 -0
- watson/web/app.py +1650 -0
- watson/web/middleware.py +301 -0
- watson/web/static/assets/index-B7hPOc0z.js +278 -0
- watson/web/static/assets/index-CJ6FP8Mp.css +1 -0
- watson/web/static/assets/watson-logo-Dk9tawHb.png +0 -0
- watson/web/static/index.html +14 -0
- watson/web/templates/chat.html +2 -0
- watson/web/templates/investigation-map.html +429 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
(function(){const T=document.createElement("link").relList;if(T&&T.supports&&T.supports("modulepreload"))return;for(const D of document.querySelectorAll('link[rel="modulepreload"]'))f(D);new MutationObserver(D=>{for(const O of D)if(O.type==="childList")for(const w of O.addedNodes)w.tagName==="LINK"&&w.rel==="modulepreload"&&f(w)}).observe(document,{childList:!0,subtree:!0});function C(D){const O={};return D.integrity&&(O.integrity=D.integrity),D.referrerPolicy&&(O.referrerPolicy=D.referrerPolicy),D.crossOrigin==="use-credentials"?O.credentials="include":D.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function f(D){if(D.ep)return;D.ep=!0;const O=C(D);fetch(D.href,O)}})();function m0(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var hs={exports:{}},On={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Nd;function p0(){if(Nd)return On;Nd=1;var h=Symbol.for("react.transitional.element"),T=Symbol.for("react.fragment");function C(f,D,O){var w=null;if(O!==void 0&&(w=""+O),D.key!==void 0&&(w=""+D.key),"key"in D){O={};for(var k in D)k!=="key"&&(O[k]=D[k])}else O=D;return D=O.ref,{$$typeof:h,type:f,key:w,ref:D!==void 0?D:null,props:O}}return On.Fragment=T,On.jsx=C,On.jsxs=C,On}var jd;function v0(){return jd||(jd=1,hs.exports=p0()),hs.exports}var u=v0(),ms={exports:{}},ae={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Ed;function x0(){if(Ed)return ae;Ed=1;var h=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),Q=Symbol.iterator;function Z(s){return s===null||typeof s!="object"?null:(s=Q&&s[Q]||s["@@iterator"],typeof s=="function"?s:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,oe={};function ie(s,m,p){this.props=s,this.context=m,this.refs=oe,this.updater=p||R}ie.prototype.isReactComponent={},ie.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},ie.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function te(){}te.prototype=ie.prototype;function F(s,m,p){this.props=s,this.context=m,this.refs=oe,this.updater=p||R}var X=F.prototype=new te;X.constructor=F,P(X,ie.prototype),X.isPureReactComponent=!0;var M=Array.isArray;function me(){}var U={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function Ee(s,m,p){var A=p.ref;return{$$typeof:h,type:s,key:m,ref:A!==void 0?A:null,props:p}}function We(s,m){return Ee(s.type,m,s.props)}function $(s){return typeof s=="object"&&s!==null&&s.$$typeof===h}function se(s){var m={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(p){return m[p]})}var Me=/\/+/g;function Le(s,m){return typeof s=="object"&&s!==null&&s.key!=null?se(""+s.key):m.toString(36)}function De(s){switch(s.status){case"fulfilled":return s.value;case"rejected":throw s.reason;default:switch(typeof s.status=="string"?s.then(me,me):(s.status="pending",s.then(function(m){s.status==="pending"&&(s.status="fulfilled",s.value=m)},function(m){s.status==="pending"&&(s.status="rejected",s.reason=m)})),s.status){case"fulfilled":return s.value;case"rejected":throw s.reason}}throw s}function N(s,m,p,A,q){var G=typeof s;(G==="undefined"||G==="boolean")&&(s=null);var ee=!1;if(s===null)ee=!0;else switch(G){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(s.$$typeof){case h:case T:ee=!0;break;case B:return ee=s._init,N(ee(s._payload),m,p,A,q)}}if(ee)return q=q(s),ee=A===""?"."+Le(s,0):A,M(q)?(p="",ee!=null&&(p=ee.replace(Me,"$&/")+"/"),N(q,m,p,"",function(ht){return ht})):q!=null&&($(q)&&(q=We(q,p+(q.key==null||s&&s.key===q.key?"":(""+q.key).replace(Me,"$&/")+"/")+ee)),m.push(q)),1;ee=0;var Se=A===""?".":A+":";if(M(s))for(var _e=0;_e<s.length;_e++)A=s[_e],G=Se+Le(A,_e),ee+=N(A,m,p,G,q);else if(_e=Z(s),typeof _e=="function")for(s=_e.call(s),_e=0;!(A=s.next()).done;)A=A.value,G=Se+Le(A,_e++),ee+=N(A,m,p,G,q);else if(G==="object"){if(typeof s.then=="function")return N(De(s),m,p,A,q);throw m=String(s),Error("Objects are not valid as a React child (found: "+(m==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":m)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Y(s,m,p){if(s==null)return s;var A=[],q=0;return N(s,A,"","",function(G){return m.call(p,G,q++)}),A}function J(s){if(s._status===-1){var m=s._result;m=m(),m.then(function(p){(s._status===0||s._status===-1)&&(s._status=1,s._result=p)},function(p){(s._status===0||s._status===-1)&&(s._status=2,s._result=p)}),s._status===-1&&(s._status=0,s._result=m)}if(s._status===1)return s._result.default;throw s._result}var fe=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var m=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(m))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},pe={map:Y,forEach:function(s,m,p){Y(s,function(){m.apply(this,arguments)},p)},count:function(s){var m=0;return Y(s,function(){m++}),m},toArray:function(s){return Y(s,function(m){return m})||[]},only:function(s){if(!$(s))throw Error("React.Children.only expected to receive a single React element child.");return s}};return ae.Activity=L,ae.Children=pe,ae.Component=ie,ae.Fragment=C,ae.Profiler=D,ae.PureComponent=F,ae.StrictMode=f,ae.Suspense=H,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ae.__COMPILER_RUNTIME={__proto__:null,c:function(s){return U.H.useMemoCache(s)}},ae.cache=function(s){return function(){return s.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(s,m,p){if(s==null)throw Error("The argument must be a React element, but you passed "+s+".");var A=P({},s.props),q=s.key;if(m!=null)for(G in m.key!==void 0&&(q=""+m.key),m)!ce.call(m,G)||G==="key"||G==="__self"||G==="__source"||G==="ref"&&m.ref===void 0||(A[G]=m[G]);var G=arguments.length-2;if(G===1)A.children=p;else if(1<G){for(var ee=Array(G),Se=0;Se<G;Se++)ee[Se]=arguments[Se+2];A.children=ee}return Ee(s.type,q,A)},ae.createContext=function(s){return s={$$typeof:w,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null},s.Provider=s,s.Consumer={$$typeof:O,_context:s},s},ae.createElement=function(s,m,p){var A,q={},G=null;if(m!=null)for(A in m.key!==void 0&&(G=""+m.key),m)ce.call(m,A)&&A!=="key"&&A!=="__self"&&A!=="__source"&&(q[A]=m[A]);var ee=arguments.length-2;if(ee===1)q.children=p;else if(1<ee){for(var Se=Array(ee),_e=0;_e<ee;_e++)Se[_e]=arguments[_e+2];q.children=Se}if(s&&s.defaultProps)for(A in ee=s.defaultProps,ee)q[A]===void 0&&(q[A]=ee[A]);return Ee(s,G,q)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(s){return{$$typeof:k,render:s}},ae.isValidElement=$,ae.lazy=function(s){return{$$typeof:B,_payload:{_status:-1,_result:s},_init:J}},ae.memo=function(s,m){return{$$typeof:b,type:s,compare:m===void 0?null:m}},ae.startTransition=function(s){var m=U.T,p={};U.T=p;try{var A=s(),q=U.S;q!==null&&q(p,A),typeof A=="object"&&A!==null&&typeof A.then=="function"&&A.then(me,fe)}catch(G){fe(G)}finally{m!==null&&p.types!==null&&(m.types=p.types),U.T=m}},ae.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ae.use=function(s){return U.H.use(s)},ae.useActionState=function(s,m,p){return U.H.useActionState(s,m,p)},ae.useCallback=function(s,m){return U.H.useCallback(s,m)},ae.useContext=function(s){return U.H.useContext(s)},ae.useDebugValue=function(){},ae.useDeferredValue=function(s,m){return U.H.useDeferredValue(s,m)},ae.useEffect=function(s,m){return U.H.useEffect(s,m)},ae.useEffectEvent=function(s){return U.H.useEffectEvent(s)},ae.useId=function(){return U.H.useId()},ae.useImperativeHandle=function(s,m,p){return U.H.useImperativeHandle(s,m,p)},ae.useInsertionEffect=function(s,m){return U.H.useInsertionEffect(s,m)},ae.useLayoutEffect=function(s,m){return U.H.useLayoutEffect(s,m)},ae.useMemo=function(s,m){return U.H.useMemo(s,m)},ae.useOptimistic=function(s,m){return U.H.useOptimistic(s,m)},ae.useReducer=function(s,m,p){return U.H.useReducer(s,m,p)},ae.useRef=function(s){return U.H.useRef(s)},ae.useState=function(s){return U.H.useState(s)},ae.useSyncExternalStore=function(s,m,p){return U.H.useSyncExternalStore(s,m,p)},ae.useTransition=function(){return U.H.useTransition()},ae.version="19.2.7",ae}var Td;function gs(){return Td||(Td=1,ms.exports=x0()),ms.exports}var z=gs();const Mn=m0(z);var ps={exports:{}},Dn={},vs={exports:{}},xs={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var _d;function y0(){return _d||(_d=1,(function(h){function T(N,Y){var J=N.length;N.push(Y);e:for(;0<J;){var fe=J-1>>>1,pe=N[fe];if(0<D(pe,Y))N[fe]=Y,N[J]=pe,J=fe;else break e}}function C(N){return N.length===0?null:N[0]}function f(N){if(N.length===0)return null;var Y=N[0],J=N.pop();if(J!==Y){N[0]=J;e:for(var fe=0,pe=N.length,s=pe>>>1;fe<s;){var m=2*(fe+1)-1,p=N[m],A=m+1,q=N[A];if(0>D(p,J))A<pe&&0>D(q,p)?(N[fe]=q,N[A]=J,fe=A):(N[fe]=p,N[m]=J,fe=m);else if(A<pe&&0>D(q,J))N[fe]=q,N[A]=J,fe=A;else break e}}return Y}function D(N,Y){var J=N.sortIndex-Y.sortIndex;return J!==0?J:N.id-Y.id}if(h.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;h.unstable_now=function(){return O.now()}}else{var w=Date,k=w.now();h.unstable_now=function(){return w.now()-k}}var H=[],b=[],B=1,L=null,Q=3,Z=!1,R=!1,P=!1,oe=!1,ie=typeof setTimeout=="function"?setTimeout:null,te=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;function X(N){for(var Y=C(b);Y!==null;){if(Y.callback===null)f(b);else if(Y.startTime<=N)f(b),Y.sortIndex=Y.expirationTime,T(H,Y);else break;Y=C(b)}}function M(N){if(P=!1,X(N),!R)if(C(H)!==null)R=!0,me||(me=!0,se());else{var Y=C(b);Y!==null&&De(M,Y.startTime-N)}}var me=!1,U=-1,ce=5,Ee=-1;function We(){return oe?!0:!(h.unstable_now()-Ee<ce)}function $(){if(oe=!1,me){var N=h.unstable_now();Ee=N;var Y=!0;try{e:{R=!1,P&&(P=!1,te(U),U=-1),Z=!0;var J=Q;try{t:{for(X(N),L=C(H);L!==null&&!(L.expirationTime>N&&We());){var fe=L.callback;if(typeof fe=="function"){L.callback=null,Q=L.priorityLevel;var pe=fe(L.expirationTime<=N);if(N=h.unstable_now(),typeof pe=="function"){L.callback=pe,X(N),Y=!0;break t}L===C(H)&&f(H),X(N)}else f(H);L=C(H)}if(L!==null)Y=!0;else{var s=C(b);s!==null&&De(M,s.startTime-N),Y=!1}}break e}finally{L=null,Q=J,Z=!1}Y=void 0}}finally{Y?se():me=!1}}}var se;if(typeof F=="function")se=function(){F($)};else if(typeof MessageChannel<"u"){var Me=new MessageChannel,Le=Me.port2;Me.port1.onmessage=$,se=function(){Le.postMessage(null)}}else se=function(){ie($,0)};function De(N,Y){U=ie(function(){N(h.unstable_now())},Y)}h.unstable_IdlePriority=5,h.unstable_ImmediatePriority=1,h.unstable_LowPriority=4,h.unstable_NormalPriority=3,h.unstable_Profiling=null,h.unstable_UserBlockingPriority=2,h.unstable_cancelCallback=function(N){N.callback=null},h.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"):ce=0<N?Math.floor(1e3/N):5},h.unstable_getCurrentPriorityLevel=function(){return Q},h.unstable_next=function(N){switch(Q){case 1:case 2:case 3:var Y=3;break;default:Y=Q}var J=Q;Q=Y;try{return N()}finally{Q=J}},h.unstable_requestPaint=function(){oe=!0},h.unstable_runWithPriority=function(N,Y){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var J=Q;Q=N;try{return Y()}finally{Q=J}},h.unstable_scheduleCallback=function(N,Y,J){var fe=h.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?fe+J:fe):J=fe,N){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=J+pe,N={id:B++,callback:Y,priorityLevel:N,startTime:J,expirationTime:pe,sortIndex:-1},J>fe?(N.sortIndex=J,T(b,N),C(H)===null&&N===C(b)&&(P?(te(U),U=-1):P=!0,De(M,J-fe))):(N.sortIndex=pe,T(H,N),R||Z||(R=!0,me||(me=!0,se()))),N},h.unstable_shouldYield=We,h.unstable_wrapCallback=function(N){var Y=Q;return function(){var J=Q;Q=Y;try{return N.apply(this,arguments)}finally{Q=J}}}})(xs)),xs}var Ad;function g0(){return Ad||(Ad=1,vs.exports=y0()),vs.exports}var ys={exports:{}},nt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var zd;function b0(){if(zd)return nt;zd=1;var h=gs();function T(H){var b="https://react.dev/errors/"+H;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)b+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+H+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function C(){}var f={d:{f:C,r:function(){throw Error(T(522))},D:C,C,L:C,m:C,X:C,S:C,M:C},p:0,findDOMNode:null},D=Symbol.for("react.portal");function O(H,b,B){var L=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:D,key:L==null?null:""+L,children:H,containerInfo:b,implementation:B}}var w=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function k(H,b){if(H==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,nt.createPortal=function(H,b){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(T(299));return O(H,b,null,B)},nt.flushSync=function(H){var b=w.T,B=f.p;try{if(w.T=null,f.p=2,H)return H()}finally{w.T=b,f.p=B,f.d.f()}},nt.preconnect=function(H,b){typeof H=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,f.d.C(H,b))},nt.prefetchDNS=function(H){typeof H=="string"&&f.d.D(H)},nt.preinit=function(H,b){if(typeof H=="string"&&b&&typeof b.as=="string"){var B=b.as,L=k(B,b.crossOrigin),Q=typeof b.integrity=="string"?b.integrity:void 0,Z=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;B==="style"?f.d.S(H,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:L,integrity:Q,fetchPriority:Z}):B==="script"&&f.d.X(H,{crossOrigin:L,integrity:Q,fetchPriority:Z,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},nt.preinitModule=function(H,b){if(typeof H=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var B=k(b.as,b.crossOrigin);f.d.M(H,{crossOrigin:B,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})}}else b==null&&f.d.M(H)},nt.preload=function(H,b){if(typeof H=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var B=b.as,L=k(B,b.crossOrigin);f.d.L(H,B,{crossOrigin:L,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},nt.preloadModule=function(H,b){if(typeof H=="string")if(b){var B=k(b.as,b.crossOrigin);f.d.m(H,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:B,integrity:typeof b.integrity=="string"?b.integrity:void 0})}else f.d.m(H)},nt.requestFormReset=function(H){f.d.r(H)},nt.unstable_batchedUpdates=function(H,b){return H(b)},nt.useFormState=function(H,b,B){return w.H.useFormState(H,b,B)},nt.useFormStatus=function(){return w.H.useHostTransitionStatus()},nt.version="19.2.7",nt}var Od;function S0(){if(Od)return ys.exports;Od=1;function h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h)}catch(T){console.error(T)}}return h(),ys.exports=b0(),ys.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Md;function N0(){if(Md)return Dn;Md=1;var h=g0(),T=gs(),C=S0();function f(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function D(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function O(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function w(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 k(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function H(e){if(O(e)!==e)throw Error(f(188))}function b(e){var t=e.alternate;if(!t){if(t=O(e),t===null)throw Error(f(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var i=n.alternate;if(i===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===a)return H(n),e;if(i===l)return H(n),t;i=i.sibling}throw Error(f(188))}if(a.return!==l.return)a=n,l=i;else{for(var c=!1,r=n.child;r;){if(r===a){c=!0,a=n,l=i;break}if(r===l){c=!0,l=n,a=i;break}r=r.sibling}if(!c){for(r=i.child;r;){if(r===a){c=!0,a=i,l=n;break}if(r===l){c=!0,l=i,a=n;break}r=r.sibling}if(!c)throw Error(f(189))}}if(a.alternate!==l)throw Error(f(190))}if(a.tag!==3)throw Error(f(188));return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}var L=Object.assign,Q=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ie=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),F=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),Ee=Symbol.for("react.activity"),We=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var Me=Symbol.for("react.client.reference");function Le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case P:return"Fragment";case ie:return"Profiler";case oe:return"StrictMode";case M:return"Suspense";case me:return"SuspenseList";case Ee:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case F:return e.displayName||"Context";case te:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:Le(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return Le(e(t))}catch{}}return null}var De=Array.isArray,N=T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=C.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function s(e){return{current:e}}function m(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function p(e,t){pe++,fe[pe]=e.current,e.current=t}var A=s(null),q=s(null),G=s(null),ee=s(null);function Se(e,t){switch(p(G,t),p(q,e),p(A,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vf(t),e=Zf(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}m(A),p(A,e)}function _e(){m(A),m(q),m(G)}function ht(e){e.memoizedState!==null&&p(ee,e);var t=A.current,a=Zf(t,e.type);t!==a&&(p(q,e),p(A,a))}function ca(e){q.current===e&&(m(A),m(q)),ee.current===e&&(m(ee),Tn._currentValue=J)}var Rt,Ye;function Bt(e){if(Rt===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Rt=t&&t[1]||"",Ye=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Rt+e+Ye}var Fa=!1;function ge(e,t){if(!e||Fa)return"";Fa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(S){var g=S}Reflect.construct(e,[],_)}else{try{_.call()}catch(S){g=S}e.call(_.prototype)}}else{try{throw Error()}catch(S){g=S}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(S){if(S&&g&&typeof S.stack=="string")return[S.stack,g.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),c=i[0],r=i[1];if(c&&r){var o=c.split(`
|
|
44
|
+
`),y=r.split(`
|
|
45
|
+
`);for(n=l=0;l<o.length&&!o[l].includes("DetermineComponentFrameRoot");)l++;for(;n<y.length&&!y[n].includes("DetermineComponentFrameRoot");)n++;if(l===o.length||n===y.length)for(l=o.length-1,n=y.length-1;1<=l&&0<=n&&o[l]!==y[n];)n--;for(;1<=l&&0<=n;l--,n--)if(o[l]!==y[n]){if(l!==1||n!==1)do if(l--,n--,0>n||o[l]!==y[n]){var j=`
|
|
46
|
+
`+o[l].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=l&&0<=n);break}}}finally{Fa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Bt(a):""}function le(e,t){switch(e.tag){case 26:case 27:case 5:return Bt(e.type);case 16:return Bt("Lazy");case 13:return e.child!==t&&t!==null?Bt("Suspense Fallback"):Bt("Suspense");case 19:return Bt("SuspenseList");case 0:case 15:return ge(e.type,!1);case 11:return ge(e.type.render,!1);case 1:return ge(e.type,!0);case 31:return Bt("Activity");default:return""}}function re(e){try{var t="",a=null;do t+=le(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var Ae=Object.prototype.hasOwnProperty,Pi=h.unstable_scheduleCallback,eu=h.unstable_cancelCallback,Zd=h.unstable_shouldYield,Kd=h.unstable_requestPaint,mt=h.unstable_now,Jd=h.unstable_getCurrentPriorityLevel,Ss=h.unstable_ImmediatePriority,Ns=h.unstable_UserBlockingPriority,Cn=h.unstable_NormalPriority,$d=h.unstable_LowPriority,js=h.unstable_IdlePriority,Wd=h.log,Fd=h.unstable_setDisableYieldValue,Hl=null,pt=null;function sa(e){if(typeof Wd=="function"&&Fd(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(Hl,e)}catch{}}var vt=Math.clz32?Math.clz32:eh,Id=Math.log,Pd=Math.LN2;function eh(e){return e>>>=0,e===0?32:31-(Id(e)/Pd|0)|0}var wn=256,Rn=262144,Un=4194304;function wa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Hn(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var r=l&134217727;return r!==0?(l=r&~i,l!==0?n=wa(l):(c&=r,c!==0?n=wa(c):a||(a=r&~e,a!==0&&(n=wa(a))))):(r=l&~i,r!==0?n=wa(r):c!==0?n=wa(c):a||(a=l&~e,a!==0&&(n=wa(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:n}function ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function th(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Es(){var e=Un;return Un<<=1,(Un&62914560)===0&&(Un=4194304),e}function tu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Bl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ah(e,t,a,l,n,i){var c=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var r=e.entanglements,o=e.expirationTimes,y=e.hiddenUpdates;for(a=c&~a;0<a;){var j=31-vt(a),_=1<<j;r[j]=0,o[j]=-1;var g=y[j];if(g!==null)for(y[j]=null,j=0;j<g.length;j++){var S=g[j];S!==null&&(S.lane&=-536870913)}a&=~_}l!==0&&Ts(e,l,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Ts(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-vt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function _s(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-vt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function As(e,t){var a=t&-t;return a=(a&42)!==0?1:au(a),(a&(e.suspendedLanes|t))!==0?0:a}function au(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function lu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zs(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:pd(e.type))}function Os(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ra=Math.random().toString(36).slice(2),Pe="__reactFiber$"+ra,ut="__reactProps$"+ra,Ia="__reactContainer$"+ra,nu="__reactEvents$"+ra,lh="__reactListeners$"+ra,nh="__reactHandles$"+ra,Ms="__reactResources$"+ra,Yl="__reactMarker$"+ra;function iu(e){delete e[Pe],delete e[ut],delete e[nu],delete e[lh],delete e[nh]}function Pa(e){var t=e[Pe];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ia]||a[Pe]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Pf(e);e!==null;){if(a=e[Pe])return a;e=Pf(e)}return t}e=a,a=e.parentNode}return null}function el(e){if(e=e[Pe]||e[Ia]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ll(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(f(33))}function tl(e){var t=e[Ms];return t||(t=e[Ms]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Fe(e){e[Yl]=!0}var Ds=new Set,Cs={};function Ra(e,t){al(e,t),al(e+"Capture",t)}function al(e,t){for(Cs[e]=t,e=0;e<t.length;e++)Ds.add(t[e])}var ih=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ws={},Rs={};function uh(e){return Ae.call(Rs,e)?!0:Ae.call(ws,e)?!1:ih.test(e)?Rs[e]=!0:(ws[e]=!0,!1)}function qn(e,t,a){if(uh(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Bn(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Xt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Us(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ch(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){a=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(c){a=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uu(e){if(!e._valueTracker){var t=Us(e)?"checked":"value";e._valueTracker=ch(e,t,""+e[t])}}function Hs(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Us(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Yn(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var sh=/[\n"\\]/g;function Tt(e){return e.replace(sh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cu(e,t,a,l,n,i,c,r){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?su(e,c,Et(t)):a!=null?su(e,c,Et(a)):l!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Et(r):e.removeAttribute("name")}function qs(e,t,a,l,n,i,c,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){uu(e);return}a=a!=null?""+Et(a):"",t=t!=null?""+Et(t):a,r||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=r?e.checked:!!l,e.defaultChecked=!!l,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),uu(e)}function su(e,t,a){t==="number"&&Yn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ll(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Et(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Bs(e,t,a){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Et(a):""}function Ys(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(f(92));if(De(l)){if(1<l.length)throw Error(f(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Et(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),uu(e)}function nl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var rh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ls(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||rh.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Gs(e,t,a){if(t!=null&&typeof t!="object")throw Error(f(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Ls(e,n,l)}else for(var i in t)t.hasOwnProperty(i)&&Ls(e,i,t[i])}function ru(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ln(e){return fh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var ou=null;function fu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var il=null,ul=null;function Qs(e){var t=el(e);if(t&&(e=t.stateNode)){var a=e[ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(cu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[ut]||null;if(!n)throw Error(f(90));cu(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Hs(l)}break e;case"textarea":Bs(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ll(e,!!a.multiple,t,!1)}}}var du=!1;function Xs(e,t,a){if(du)return e(t,a);du=!0;try{var l=e(t);return l}finally{if(du=!1,(il!==null||ul!==null)&&(Ai(),il&&(t=il,e=ul,ul=il=null,Qs(t),e)))for(t=0;t<e.length;t++)Qs(e[t])}}function Gl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ut]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(f(231,t,typeof a));return a}var Vt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hu=!1;if(Vt)try{var Ql={};Object.defineProperty(Ql,"passive",{get:function(){hu=!0}}),window.addEventListener("test",Ql,Ql),window.removeEventListener("test",Ql,Ql)}catch{hu=!1}var oa=null,mu=null,Gn=null;function ks(){if(Gn)return Gn;var e,t=mu,a=t.length,l,n="value"in oa?oa.value:oa.textContent,i=n.length;for(e=0;e<a&&t[e]===n[e];e++);var c=a-e;for(l=1;l<=c&&t[a-l]===n[i-l];l++);return Gn=n.slice(e,1<l?1-l:void 0)}function Qn(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 Xn(){return!0}function Vs(){return!1}function ct(e){function t(a,l,n,i,c){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(a=e[r],this[r]=a?a(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Xn:Vs,this.isPropagationStopped=Vs,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Xn)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Xn)},persist:function(){},isPersistent:Xn}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=ct(Ua),Xl=L({},Ua,{view:0,detail:0}),dh=ct(Xl),pu,vu,kl,Vn=L({},Xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,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!==kl&&(kl&&e.type==="mousemove"?(pu=e.screenX-kl.screenX,vu=e.screenY-kl.screenY):vu=pu=0,kl=e),pu)},movementY:function(e){return"movementY"in e?e.movementY:vu}}),Zs=ct(Vn),hh=L({},Vn,{dataTransfer:0}),mh=ct(hh),ph=L({},Xl,{relatedTarget:0}),xu=ct(ph),vh=L({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),xh=ct(vh),yh=L({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gh=ct(yh),bh=L({},Ua,{data:0}),Ks=ct(bh),Sh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nh={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Eh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jh[e])?!!t[e]:!1}function yu(){return Eh}var Th=L({},Xl,{key:function(e){if(e.key){var t=Sh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(e){return e.type==="keypress"?Qn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_h=ct(Th),Ah=L({},Vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Js=ct(Ah),zh=L({},Xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),Oh=ct(zh),Mh=L({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dh=ct(Mh),Ch=L({},Vn,{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}),wh=ct(Ch),Rh=L({},Ua,{newState:0,oldState:0}),Uh=ct(Rh),Hh=[9,13,27,32],gu=Vt&&"CompositionEvent"in window,Vl=null;Vt&&"documentMode"in document&&(Vl=document.documentMode);var qh=Vt&&"TextEvent"in window&&!Vl,$s=Vt&&(!gu||Vl&&8<Vl&&11>=Vl),Ws=" ",Fs=!1;function Is(e,t){switch(e){case"keyup":return Hh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ps(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cl=!1;function Bh(e,t){switch(e){case"compositionend":return Ps(t);case"keypress":return t.which!==32?null:(Fs=!0,Ws);case"textInput":return e=t.data,e===Ws&&Fs?null:e;default:return null}}function Yh(e,t){if(cl)return e==="compositionend"||!gu&&Is(e,t)?(e=ks(),Gn=mu=oa=null,cl=!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 $s&&t.locale!=="ko"?null:t.data;default:return null}}var Lh={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 er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lh[e.type]:t==="textarea"}function tr(e,t,a,l){il?ul?ul.push(l):ul=[l]:il=l,t=Ri(t,"onChange"),0<t.length&&(a=new kn("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Zl=null,Kl=null;function Gh(e){Yf(e,0)}function Zn(e){var t=Ll(e);if(Hs(t))return e}function ar(e,t){if(e==="change")return t}var lr=!1;if(Vt){var bu;if(Vt){var Su="oninput"in document;if(!Su){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),Su=typeof nr.oninput=="function"}bu=Su}else bu=!1;lr=bu&&(!document.documentMode||9<document.documentMode)}function ir(){Zl&&(Zl.detachEvent("onpropertychange",ur),Kl=Zl=null)}function ur(e){if(e.propertyName==="value"&&Zn(Kl)){var t=[];tr(t,Kl,e,fu(e)),Xs(Gh,t)}}function Qh(e,t,a){e==="focusin"?(ir(),Zl=t,Kl=a,Zl.attachEvent("onpropertychange",ur)):e==="focusout"&&ir()}function Xh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zn(Kl)}function kh(e,t){if(e==="click")return Zn(t)}function Vh(e,t){if(e==="input"||e==="change")return Zn(t)}function Zh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xt=typeof Object.is=="function"?Object.is:Zh;function Jl(e,t){if(xt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Ae.call(t,n)||!xt(e[n],t[n]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sr(e,t){var a=cr(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=cr(a)}}function rr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function or(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yn(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Yn(e.document)}return t}function Nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Kh=Vt&&"documentMode"in document&&11>=document.documentMode,sl=null,ju=null,$l=null,Eu=!1;function fr(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Eu||sl==null||sl!==Yn(l)||(l=sl,"selectionStart"in l&&Nu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),$l&&Jl($l,l)||($l=l,l=Ri(ju,"onSelect"),0<l.length&&(t=new kn("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=sl)))}function Ha(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var rl={animationend:Ha("Animation","AnimationEnd"),animationiteration:Ha("Animation","AnimationIteration"),animationstart:Ha("Animation","AnimationStart"),transitionrun:Ha("Transition","TransitionRun"),transitionstart:Ha("Transition","TransitionStart"),transitioncancel:Ha("Transition","TransitionCancel"),transitionend:Ha("Transition","TransitionEnd")},Tu={},dr={};Vt&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete rl.animationend.animation,delete rl.animationiteration.animation,delete rl.animationstart.animation),"TransitionEvent"in window||delete rl.transitionend.transition);function qa(e){if(Tu[e])return Tu[e];if(!rl[e])return e;var t=rl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in dr)return Tu[e]=t[a];return e}var hr=qa("animationend"),mr=qa("animationiteration"),pr=qa("animationstart"),Jh=qa("transitionrun"),$h=qa("transitionstart"),Wh=qa("transitioncancel"),vr=qa("transitionend"),xr=new Map,_u="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");_u.push("scrollEnd");function Ut(e,t){xr.set(e,t),Ra(t,[e])}var Kn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_t=[],ol=0,Au=0;function Jn(){for(var e=ol,t=Au=ol=0;t<e;){var a=_t[t];_t[t++]=null;var l=_t[t];_t[t++]=null;var n=_t[t];_t[t++]=null;var i=_t[t];if(_t[t++]=null,l!==null&&n!==null){var c=l.pending;c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n}i!==0&&yr(a,n,i)}}function $n(e,t,a,l){_t[ol++]=e,_t[ol++]=t,_t[ol++]=a,_t[ol++]=l,Au|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function zu(e,t,a,l){return $n(e,t,a,l),Wn(e)}function Ba(e,t){return $n(e,null,null,t),Wn(e)}function yr(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-vt(a),e=i.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),i):null}function Wn(e){if(50<yn)throw yn=0,qc=null,Error(f(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fl={};function Fh(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yt(e,t,a,l){return new Fh(e,t,a,l)}function Ou(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zt(e,t){var a=e.alternate;return a===null?(a=yt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function gr(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Fn(e,t,a,l,n,i){var c=0;if(l=e,typeof e=="function")Ou(e)&&(c=1);else if(typeof e=="string")c=a0(e,a,A.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ee:return e=yt(31,a,t,n),e.elementType=Ee,e.lanes=i,e;case P:return Ya(a.children,n,i,t);case oe:c=8,n|=24;break;case ie:return e=yt(12,a,t,n|2),e.elementType=ie,e.lanes=i,e;case M:return e=yt(13,a,t,n),e.elementType=M,e.lanes=i,e;case me:return e=yt(19,a,t,n),e.elementType=me,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:c=10;break e;case te:c=9;break e;case X:c=11;break e;case U:c=14;break e;case ce:c=16,l=null;break e}c=29,a=Error(f(130,e===null?"null":typeof e,"")),l=null}return t=yt(c,a,t,n),t.elementType=e,t.type=l,t.lanes=i,t}function Ya(e,t,a,l){return e=yt(7,e,l,t),e.lanes=a,e}function Mu(e,t,a){return e=yt(6,e,null,t),e.lanes=a,e}function br(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function Du(e,t,a){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sr=new WeakMap;function At(e,t){if(typeof e=="object"&&e!==null){var a=Sr.get(e);return a!==void 0?a:(t={value:e,source:t,stack:re(t)},Sr.set(e,t),t)}return{value:e,source:t,stack:re(t)}}var dl=[],hl=0,In=null,Wl=0,zt=[],Ot=0,fa=null,Yt=1,Lt="";function Kt(e,t){dl[hl++]=Wl,dl[hl++]=In,In=e,Wl=t}function Nr(e,t,a){zt[Ot++]=Yt,zt[Ot++]=Lt,zt[Ot++]=fa,fa=e;var l=Yt;e=Lt;var n=32-vt(l)-1;l&=~(1<<n),a+=1;var i=32-vt(t)+n;if(30<i){var c=n-n%5;i=(l&(1<<c)-1).toString(32),l>>=c,n-=c,Yt=1<<32-vt(t)+n|a<<n|l,Lt=i+e}else Yt=1<<i|a<<n|l,Lt=e}function Cu(e){e.return!==null&&(Kt(e,1),Nr(e,1,0))}function wu(e){for(;e===In;)In=dl[--hl],dl[hl]=null,Wl=dl[--hl],dl[hl]=null;for(;e===fa;)fa=zt[--Ot],zt[Ot]=null,Lt=zt[--Ot],zt[Ot]=null,Yt=zt[--Ot],zt[Ot]=null}function jr(e,t){zt[Ot++]=Yt,zt[Ot++]=Lt,zt[Ot++]=fa,Yt=t.id,Lt=t.overflow,fa=e}var et=null,He=null,ye=!1,da=null,Mt=!1,Ru=Error(f(519));function ha(e){var t=Error(f(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Fl(At(t,e)),Ru}function Er(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Pe]=e,t[ut]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<bn.length;a++)he(bn[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),qs(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Ys(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Xf(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||ha(e,!0)}function Tr(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:et=et.return}}function ml(e){if(e!==et)return!1;if(!ye)return Tr(e),ye=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Ic(e.type,e.memoizedProps)),a=!a),a&&He&&ha(e),Tr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));He=If(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(317));He=If(e)}else t===27?(t=He,Aa(e.type)?(e=ls,ls=null,He=e):He=t):He=et?Ct(e.stateNode.nextSibling):null;return!0}function La(){He=et=null,ye=!1}function Uu(){var e=da;return e!==null&&(ft===null?ft=e:ft.push.apply(ft,e),da=null),e}function Fl(e){da===null?da=[e]:da.push(e)}var Hu=s(null),Ga=null,Jt=null;function ma(e,t,a){p(Hu,t._currentValue),t._currentValue=a}function $t(e){e._currentValue=Hu.current,m(Hu)}function qu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Bu(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var r=i;i=n;for(var o=0;o<t.length;o++)if(r.context===t[o]){i.lanes|=a,r=i.alternate,r!==null&&(r.lanes|=a),qu(i.return,a,e),l||(c=null);break e}i=r.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(f(341));c.lanes|=a,i=c.alternate,i!==null&&(i.lanes|=a),qu(c,a,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function pl(e,t,a,l){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(f(387));if(c=c.memoizedProps,c!==null){var r=n.type;xt(n.pendingProps.value,c.value)||(e!==null?e.push(r):e=[r])}}else if(n===ee.current){if(c=n.alternate,c===null)throw Error(f(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Tn):e=[Tn])}n=n.return}e!==null&&Bu(t,e,a,l),t.flags|=262144}function Pn(e){for(e=e.firstContext;e!==null;){if(!xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qa(e){Ga=e,Jt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return _r(Ga,e)}function ei(e,t){return Ga===null&&Qa(e),_r(e,t)}function _r(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Jt===null){if(e===null)throw Error(f(308));Jt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jt=Jt.next=t;return a}var Ih=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Ph=h.unstable_scheduleCallback,em=h.unstable_NormalPriority,Ve={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yu(){return{controller:new Ih,data:new Map,refCount:0}}function Il(e){e.refCount--,e.refCount===0&&Ph(em,function(){e.controller.abort()})}var Pl=null,Lu=0,vl=0,xl=null;function tm(e,t){if(Pl===null){var a=Pl=[];Lu=0,vl=Xc(),xl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Lu++,t.then(Ar,Ar),t}function Ar(){if(--Lu===0&&Pl!==null){xl!==null&&(xl.status="fulfilled");var e=Pl;Pl=null,vl=0,xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function am(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var zr=N.S;N.S=function(e,t){hf=mt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tm(e,t),zr!==null&&zr(e,t)};var Xa=s(null);function Gu(){var e=Xa.current;return e!==null?e:Ue.pooledCache}function ti(e,t){t===null?p(Xa,Xa.current):p(Xa,t.pool)}function Or(){var e=Gu();return e===null?null:{parent:Ve._currentValue,pool:e}}var yl=Error(f(460)),Qu=Error(f(474)),ai=Error(f(542)),li={then:function(){}};function Mr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Dr(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(kt,kt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wr(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(f(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wr(e),e}throw Va=t,yl}}function ka(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Va=a,yl):a}}var Va=null;function Cr(){if(Va===null)throw Error(f(459));var e=Va;return Va=null,e}function wr(e){if(e===yl||e===ai)throw Error(f(483))}var gl=null,en=0;function ni(e){var t=en;return en+=1,gl===null&&(gl=[]),Dr(gl,e,t)}function tn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ii(e,t){throw t.$$typeof===Q?Error(f(525)):(e=Object.prototype.toString.call(t),Error(f(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Rr(e){function t(v,d){if(e){var x=v.deletions;x===null?(v.deletions=[d],v.flags|=16):x.push(d)}}function a(v,d){if(!e)return null;for(;d!==null;)t(v,d),d=d.sibling;return null}function l(v){for(var d=new Map;v!==null;)v.key!==null?d.set(v.key,v):d.set(v.index,v),v=v.sibling;return d}function n(v,d){return v=Zt(v,d),v.index=0,v.sibling=null,v}function i(v,d,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<d?(v.flags|=67108866,d):x):(v.flags|=67108866,d)):(v.flags|=1048576,d)}function c(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function r(v,d,x,E){return d===null||d.tag!==6?(d=Mu(x,v.mode,E),d.return=v,d):(d=n(d,x),d.return=v,d)}function o(v,d,x,E){var W=x.type;return W===P?j(v,d,x.props.children,E,x.key):d!==null&&(d.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ce&&ka(W)===d.type)?(d=n(d,x.props),tn(d,x),d.return=v,d):(d=Fn(x.type,x.key,x.props,null,v.mode,E),tn(d,x),d.return=v,d)}function y(v,d,x,E){return d===null||d.tag!==4||d.stateNode.containerInfo!==x.containerInfo||d.stateNode.implementation!==x.implementation?(d=Du(x,v.mode,E),d.return=v,d):(d=n(d,x.children||[]),d.return=v,d)}function j(v,d,x,E,W){return d===null||d.tag!==7?(d=Ya(x,v.mode,E,W),d.return=v,d):(d=n(d,x),d.return=v,d)}function _(v,d,x){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=Mu(""+d,v.mode,x),d.return=v,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Z:return x=Fn(d.type,d.key,d.props,null,v.mode,x),tn(x,d),x.return=v,x;case R:return d=Du(d,v.mode,x),d.return=v,d;case ce:return d=ka(d),_(v,d,x)}if(De(d)||se(d))return d=Ya(d,v.mode,x,null),d.return=v,d;if(typeof d.then=="function")return _(v,ni(d),x);if(d.$$typeof===F)return _(v,ei(v,d),x);ii(v,d)}return null}function g(v,d,x,E){var W=d!==null?d.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return W!==null?null:r(v,d,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Z:return x.key===W?o(v,d,x,E):null;case R:return x.key===W?y(v,d,x,E):null;case ce:return x=ka(x),g(v,d,x,E)}if(De(x)||se(x))return W!==null?null:j(v,d,x,E,null);if(typeof x.then=="function")return g(v,d,ni(x),E);if(x.$$typeof===F)return g(v,d,ei(v,x),E);ii(v,x)}return null}function S(v,d,x,E,W){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return v=v.get(x)||null,r(d,v,""+E,W);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Z:return v=v.get(E.key===null?x:E.key)||null,o(d,v,E,W);case R:return v=v.get(E.key===null?x:E.key)||null,y(d,v,E,W);case ce:return E=ka(E),S(v,d,x,E,W)}if(De(E)||se(E))return v=v.get(x)||null,j(d,v,E,W,null);if(typeof E.then=="function")return S(v,d,x,ni(E),W);if(E.$$typeof===F)return S(v,d,x,ei(d,E),W);ii(d,E)}return null}function V(v,d,x,E){for(var W=null,Ne=null,K=d,ue=d=0,xe=null;K!==null&&ue<x.length;ue++){K.index>ue?(xe=K,K=null):xe=K.sibling;var je=g(v,K,x[ue],E);if(je===null){K===null&&(K=xe);break}e&&K&&je.alternate===null&&t(v,K),d=i(je,d,ue),Ne===null?W=je:Ne.sibling=je,Ne=je,K=xe}if(ue===x.length)return a(v,K),ye&&Kt(v,ue),W;if(K===null){for(;ue<x.length;ue++)K=_(v,x[ue],E),K!==null&&(d=i(K,d,ue),Ne===null?W=K:Ne.sibling=K,Ne=K);return ye&&Kt(v,ue),W}for(K=l(K);ue<x.length;ue++)xe=S(K,v,ue,x[ue],E),xe!==null&&(e&&xe.alternate!==null&&K.delete(xe.key===null?ue:xe.key),d=i(xe,d,ue),Ne===null?W=xe:Ne.sibling=xe,Ne=xe);return e&&K.forEach(function(Ca){return t(v,Ca)}),ye&&Kt(v,ue),W}function I(v,d,x,E){if(x==null)throw Error(f(151));for(var W=null,Ne=null,K=d,ue=d=0,xe=null,je=x.next();K!==null&&!je.done;ue++,je=x.next()){K.index>ue?(xe=K,K=null):xe=K.sibling;var Ca=g(v,K,je.value,E);if(Ca===null){K===null&&(K=xe);break}e&&K&&Ca.alternate===null&&t(v,K),d=i(Ca,d,ue),Ne===null?W=Ca:Ne.sibling=Ca,Ne=Ca,K=xe}if(je.done)return a(v,K),ye&&Kt(v,ue),W;if(K===null){for(;!je.done;ue++,je=x.next())je=_(v,je.value,E),je!==null&&(d=i(je,d,ue),Ne===null?W=je:Ne.sibling=je,Ne=je);return ye&&Kt(v,ue),W}for(K=l(K);!je.done;ue++,je=x.next())je=S(K,v,ue,je.value,E),je!==null&&(e&&je.alternate!==null&&K.delete(je.key===null?ue:je.key),d=i(je,d,ue),Ne===null?W=je:Ne.sibling=je,Ne=je);return e&&K.forEach(function(h0){return t(v,h0)}),ye&&Kt(v,ue),W}function Re(v,d,x,E){if(typeof x=="object"&&x!==null&&x.type===P&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Z:e:{for(var W=x.key;d!==null;){if(d.key===W){if(W=x.type,W===P){if(d.tag===7){a(v,d.sibling),E=n(d,x.props.children),E.return=v,v=E;break e}}else if(d.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ce&&ka(W)===d.type){a(v,d.sibling),E=n(d,x.props),tn(E,x),E.return=v,v=E;break e}a(v,d);break}else t(v,d);d=d.sibling}x.type===P?(E=Ya(x.props.children,v.mode,E,x.key),E.return=v,v=E):(E=Fn(x.type,x.key,x.props,null,v.mode,E),tn(E,x),E.return=v,v=E)}return c(v);case R:e:{for(W=x.key;d!==null;){if(d.key===W)if(d.tag===4&&d.stateNode.containerInfo===x.containerInfo&&d.stateNode.implementation===x.implementation){a(v,d.sibling),E=n(d,x.children||[]),E.return=v,v=E;break e}else{a(v,d);break}else t(v,d);d=d.sibling}E=Du(x,v.mode,E),E.return=v,v=E}return c(v);case ce:return x=ka(x),Re(v,d,x,E)}if(De(x))return V(v,d,x,E);if(se(x)){if(W=se(x),typeof W!="function")throw Error(f(150));return x=W.call(x),I(v,d,x,E)}if(typeof x.then=="function")return Re(v,d,ni(x),E);if(x.$$typeof===F)return Re(v,d,ei(v,x),E);ii(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,d!==null&&d.tag===6?(a(v,d.sibling),E=n(d,x),E.return=v,v=E):(a(v,d),E=Mu(x,v.mode,E),E.return=v,v=E),c(v)):a(v,d)}return function(v,d,x,E){try{en=0;var W=Re(v,d,x,E);return gl=null,W}catch(K){if(K===yl||K===ai)throw K;var Ne=yt(29,K,null,v.mode);return Ne.lanes=E,Ne.return=v,Ne}finally{}}}var Za=Rr(!0),Ur=Rr(!1),pa=!1;function Xu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ku(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=Wn(e),yr(e,null,a),t}return $n(e,l,t,a),Wn(e)}function an(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,_s(e,a)}}function Vu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var c={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,a=a.next}while(a!==null);i===null?n=i=t:i=i.next=t}else n=i=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Zu=!1;function ln(){if(Zu){var e=xl;if(e!==null)throw e}}function nn(e,t,a,l){Zu=!1;var n=e.updateQueue;pa=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,r=n.shared.pending;if(r!==null){n.shared.pending=null;var o=r,y=o.next;o.next=null,c===null?i=y:c.next=y,c=o;var j=e.alternate;j!==null&&(j=j.updateQueue,r=j.lastBaseUpdate,r!==c&&(r===null?j.firstBaseUpdate=y:r.next=y,j.lastBaseUpdate=o))}if(i!==null){var _=n.baseState;c=0,j=y=o=null,r=i;do{var g=r.lane&-536870913,S=g!==r.lane;if(S?(ve&g)===g:(l&g)===g){g!==0&&g===vl&&(Zu=!0),j!==null&&(j=j.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var V=e,I=r;g=t;var Re=a;switch(I.tag){case 1:if(V=I.payload,typeof V=="function"){_=V.call(Re,_,g);break e}_=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=I.payload,g=typeof V=="function"?V.call(Re,_,g):V,g==null)break e;_=L({},_,g);break e;case 2:pa=!0}}g=r.callback,g!==null&&(e.flags|=64,S&&(e.flags|=8192),S=n.callbacks,S===null?n.callbacks=[g]:S.push(g))}else S={lane:g,tag:r.tag,payload:r.payload,callback:r.callback,next:null},j===null?(y=j=S,o=_):j=j.next=S,c|=g;if(r=r.next,r===null){if(r=n.shared.pending,r===null)break;S=r,r=S.next,S.next=null,n.lastBaseUpdate=S,n.shared.pending=null}}while(!0);j===null&&(o=_),n.baseState=o,n.firstBaseUpdate=y,n.lastBaseUpdate=j,i===null&&(n.shared.lanes=0),Na|=c,e.lanes=c,e.memoizedState=_}}function Hr(e,t){if(typeof e!="function")throw Error(f(191,e));e.call(t)}function qr(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Hr(a[e],t)}var bl=s(null),ui=s(0);function Br(e,t){e=na,p(ui,e),p(bl,t),na=e|t.baseLanes}function Ku(){p(ui,na),p(bl,bl.current)}function Ju(){na=ui.current,m(bl),m(ui)}var gt=s(null),Dt=null;function ya(e){var t=e.alternate;p(Xe,Xe.current&1),p(gt,e),Dt===null&&(t===null||bl.current!==null||t.memoizedState!==null)&&(Dt=e)}function $u(e){p(Xe,Xe.current),p(gt,e),Dt===null&&(Dt=e)}function Yr(e){e.tag===22?(p(Xe,Xe.current),p(gt,e),Dt===null&&(Dt=e)):ga()}function ga(){p(Xe,Xe.current),p(gt,gt.current)}function bt(e){m(gt),Dt===e&&(Dt=null),m(Xe)}var Xe=s(0);function ci(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ts(a)||as(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Wt=0,ne=null,Ce=null,Ze=null,si=!1,Sl=!1,Ka=!1,ri=0,un=0,Nl=null,lm=0;function Ge(){throw Error(f(321))}function Wu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!xt(e[a],t[a]))return!1;return!0}function Fu(e,t,a,l,n,i){return Wt=i,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?jo:dc,Ka=!1,i=a(l,n),Ka=!1,Sl&&(i=Gr(t,a,l,n)),Lr(e),i}function Lr(e){N.H=rn;var t=Ce!==null&&Ce.next!==null;if(Wt=0,Ze=Ce=ne=null,si=!1,un=0,Nl=null,t)throw Error(f(300));e===null||Ke||(e=e.dependencies,e!==null&&Pn(e)&&(Ke=!0))}function Gr(e,t,a,l){ne=e;var n=0;do{if(Sl&&(Nl=null),un=0,Sl=!1,25<=n)throw Error(f(301));if(n+=1,Ze=Ce=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}N.H=Eo,i=t(a,l)}while(Sl);return i}function nm(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?cn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ne.flags|=1024),t}function Iu(){var e=ri!==0;return ri=0,e}function Pu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ec(e){if(si){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}si=!1}Wt=0,Ze=Ce=ne=null,Sl=!1,un=ri=0,Nl=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ne.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function ke(){if(Ce===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ze===null?ne.memoizedState:Ze.next;if(t!==null)Ze=t,Ce=e;else{if(e===null)throw ne.alternate===null?Error(f(467)):Error(f(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ze===null?ne.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function oi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cn(e){var t=un;return un+=1,Nl===null&&(Nl=[]),e=Dr(Nl,e,t),t=ne,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?jo:dc),e}function fi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cn(e);if(e.$$typeof===F)return tt(e)}throw Error(f(438,String(e)))}function tc(e){var t=null,a=ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ne.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=oi(),ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=We;return t.index++,a}function Ft(e,t){return typeof t=="function"?t(e):t}function di(e){var t=ke();return ac(t,Ce,e)}function ac(e,t,a){var l=e.queue;if(l===null)throw Error(f(311));l.lastRenderedReducer=a;var n=e.baseQueue,i=l.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,l.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var r=c=null,o=null,y=t,j=!1;do{var _=y.lane&-536870913;if(_!==y.lane?(ve&_)===_:(Wt&_)===_){var g=y.revertLane;if(g===0)o!==null&&(o=o.next={lane:0,revertLane:0,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null}),_===vl&&(j=!0);else if((Wt&g)===g){y=y.next,g===vl&&(j=!0);continue}else _={lane:0,revertLane:y.revertLane,gesture:null,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},o===null?(r=o=_,c=i):o=o.next=_,ne.lanes|=g,Na|=g;_=y.action,Ka&&a(i,_),i=y.hasEagerState?y.eagerState:a(i,_)}else g={lane:_,revertLane:y.revertLane,gesture:y.gesture,action:y.action,hasEagerState:y.hasEagerState,eagerState:y.eagerState,next:null},o===null?(r=o=g,c=i):o=o.next=g,ne.lanes|=_,Na|=_;y=y.next}while(y!==null&&y!==t);if(o===null?c=i:o.next=r,!xt(i,e.memoizedState)&&(Ke=!0,j&&(a=xl,a!==null)))throw a;e.memoizedState=i,e.baseState=c,e.baseQueue=o,l.lastRenderedState=i}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function lc(e){var t=ke(),a=t.queue;if(a===null)throw Error(f(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,i=t.memoizedState;if(n!==null){a.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);xt(i,t.memoizedState)||(Ke=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Qr(e,t,a){var l=ne,n=ke(),i=ye;if(i){if(a===void 0)throw Error(f(407));a=a()}else a=t();var c=!xt((Ce||n).memoizedState,a);if(c&&(n.memoizedState=a,Ke=!0),n=n.queue,uc(Vr.bind(null,l,n,e),[e]),n.getSnapshot!==t||c||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,jl(9,{destroy:void 0},kr.bind(null,l,n,a,t),null),Ue===null)throw Error(f(349));i||(Wt&127)!==0||Xr(l,t,a)}return a}function Xr(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ne.updateQueue,t===null?(t=oi(),ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function kr(e,t,a,l){t.value=a,t.getSnapshot=l,Zr(t)&&Kr(e)}function Vr(e,t,a){return a(function(){Zr(t)&&Kr(e)})}function Zr(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!xt(e,a)}catch{return!0}}function Kr(e){var t=Ba(e,2);t!==null&&dt(t,e,2)}function nc(e){var t=it();if(typeof e=="function"){var a=e;if(e=a(),Ka){sa(!0);try{a()}finally{sa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:e},t}function Jr(e,t,a,l){return e.baseState=a,ac(e,Ce,typeof l=="function"?l:Ft)}function im(e,t,a,l,n){if(pi(e))throw Error(f(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};N.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,$r(t,i)):(i.next=a.next,t.pending=a.next=i)}}function $r(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var i=N.T,c={};N.T=c;try{var r=a(n,l),o=N.S;o!==null&&o(c,r),Wr(e,t,r)}catch(y){ic(e,t,y)}finally{i!==null&&c.types!==null&&(i.types=c.types),N.T=i}}else try{i=a(n,l),Wr(e,t,i)}catch(y){ic(e,t,y)}}function Wr(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Fr(e,t,l)},function(l){return ic(e,t,l)}):Fr(e,t,a)}function Fr(e,t,a){t.status="fulfilled",t.value=a,Ir(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,$r(e,a)))}function ic(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Ir(t),t=t.next;while(t!==l)}e.action=null}function Ir(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Pr(e,t){return t}function eo(e,t){if(ye){var a=Ue.formState;if(a!==null){e:{var l=ne;if(ye){if(He){t:{for(var n=He,i=Mt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Ct(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){He=Ct(n.nextSibling),l=n.data==="F!";break e}}ha(l)}l=!1}l&&(t=a[0])}}return a=it(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pr,lastRenderedState:t},a.queue=l,a=bo.bind(null,ne,l),l.dispatch=a,l=nc(!1),i=fc.bind(null,ne,!1,l.queue),l=it(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=im.bind(null,ne,n,i,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function to(e){var t=ke();return ao(t,Ce,e)}function ao(e,t,a){if(t=ac(e,t,Pr)[0],e=di(Ft)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=cn(t)}catch(c){throw c===yl?ai:c}else l=t;t=ke();var n=t.queue,i=n.dispatch;return a!==t.memoizedState&&(ne.flags|=2048,jl(9,{destroy:void 0},um.bind(null,n,a),null)),[l,i,e]}function um(e,t){e.action=t}function lo(e){var t=ke(),a=Ce;if(a!==null)return ao(t,a,e);ke(),t=t.memoizedState,a=ke();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function jl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ne.updateQueue,t===null&&(t=oi(),ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function no(){return ke().memoizedState}function hi(e,t,a,l){var n=it();ne.flags|=e,n.memoizedState=jl(1|t,{destroy:void 0},a,l===void 0?null:l)}function mi(e,t,a,l){var n=ke();l=l===void 0?null:l;var i=n.memoizedState.inst;Ce!==null&&l!==null&&Wu(l,Ce.memoizedState.deps)?n.memoizedState=jl(t,i,a,l):(ne.flags|=e,n.memoizedState=jl(1|t,i,a,l))}function io(e,t){hi(8390656,8,e,t)}function uc(e,t){mi(2048,8,e,t)}function cm(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=oi(),ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function uo(e){var t=ke().memoizedState;return cm({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(f(440));return t.impl.apply(void 0,arguments)}}function co(e,t){return mi(4,2,e,t)}function so(e,t){return mi(4,4,e,t)}function ro(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function oo(e,t,a){a=a!=null?a.concat([e]):null,mi(4,4,ro.bind(null,t,e),a)}function cc(){}function fo(e,t){var a=ke();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Wu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function ho(e,t){var a=ke();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Wu(t,l[1]))return l[0];if(l=e(),Ka){sa(!0);try{e()}finally{sa(!1)}}return a.memoizedState=[l,t],l}function sc(e,t,a){return a===void 0||(Wt&1073741824)!==0&&(ve&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=pf(),ne.lanes|=e,Na|=e,a)}function mo(e,t,a,l){return xt(a,t)?a:bl.current!==null?(e=sc(e,a,l),xt(e,t)||(Ke=!0),e):(Wt&42)===0||(Wt&1073741824)!==0&&(ve&261930)===0?(Ke=!0,e.memoizedState=a):(e=pf(),ne.lanes|=e,Na|=e,t)}function po(e,t,a,l,n){var i=Y.p;Y.p=i!==0&&8>i?i:8;var c=N.T,r={};N.T=r,fc(e,!1,t,a);try{var o=n(),y=N.S;if(y!==null&&y(r,o),o!==null&&typeof o=="object"&&typeof o.then=="function"){var j=am(o,l);sn(e,t,j,jt(e))}else sn(e,t,l,jt(e))}catch(_){sn(e,t,{then:function(){},status:"rejected",reason:_},jt())}finally{Y.p=i,c!==null&&r.types!==null&&(c.types=r.types),N.T=c}}function sm(){}function rc(e,t,a,l){if(e.tag!==5)throw Error(f(476));var n=vo(e).queue;po(e,n,t,J,a===null?sm:function(){return xo(e),a(l)})}function vo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:J},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ft,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xo(e){var t=vo(e);t.next===null&&(t=e.alternate.memoizedState),sn(e,t.next.queue,{},jt())}function oc(){return tt(Tn)}function yo(){return ke().memoizedState}function go(){return ke().memoizedState}function rm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=jt();e=va(a);var l=xa(t,e,a);l!==null&&(dt(l,t,a),an(l,t,a)),t={cache:Yu()},e.payload=t;return}t=t.return}}function om(e,t,a){var l=jt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},pi(e)?So(t,a):(a=zu(e,t,a,l),a!==null&&(dt(a,e,l),No(a,t,l)))}function bo(e,t,a){var l=jt();sn(e,t,a,l)}function sn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(pi(e))So(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,r=i(c,a);if(n.hasEagerState=!0,n.eagerState=r,xt(r,c))return $n(e,t,n,0),Ue===null&&Jn(),!1}catch{}finally{}if(a=zu(e,t,n,l),a!==null)return dt(a,e,l),No(a,t,l),!0}return!1}function fc(e,t,a,l){if(l={lane:2,revertLane:Xc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},pi(e)){if(t)throw Error(f(479))}else t=zu(e,a,l,2),t!==null&&dt(t,e,2)}function pi(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function So(e,t){Sl=si=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function No(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,_s(e,a)}}var rn={readContext:tt,use:fi,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge};rn.useEffectEvent=Ge;var jo={readContext:tt,use:fi,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:io,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,hi(4194308,4,ro.bind(null,t,e),a)},useLayoutEffect:function(e,t){return hi(4194308,4,e,t)},useInsertionEffect:function(e,t){hi(4,2,e,t)},useMemo:function(e,t){var a=it();t=t===void 0?null:t;var l=e();if(Ka){sa(!0);try{e()}finally{sa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=it();if(a!==void 0){var n=a(t);if(Ka){sa(!0);try{a(t)}finally{sa(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=om.bind(null,ne,e),[l.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=nc(e);var t=e.queue,a=bo.bind(null,ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:cc,useDeferredValue:function(e,t){var a=it();return sc(a,e,t)},useTransition:function(){var e=nc(!1);return e=po.bind(null,ne,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ne,n=it();if(ye){if(a===void 0)throw Error(f(407));a=a()}else{if(a=t(),Ue===null)throw Error(f(349));(ve&127)!==0||Xr(l,t,a)}n.memoizedState=a;var i={value:a,getSnapshot:t};return n.queue=i,io(Vr.bind(null,l,i,e),[e]),l.flags|=2048,jl(9,{destroy:void 0},kr.bind(null,l,i,a,t),null),a},useId:function(){var e=it(),t=Ue.identifierPrefix;if(ye){var a=Lt,l=Yt;a=(l&~(1<<32-vt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ri++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=lm++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:oc,useFormState:eo,useActionState:eo,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=fc.bind(null,ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:tc,useCacheRefresh:function(){return it().memoizedState=rm.bind(null,ne)},useEffectEvent:function(e){var t=it(),a={impl:e};return t.memoizedState=a,function(){if((Te&2)!==0)throw Error(f(440));return a.impl.apply(void 0,arguments)}}},dc={readContext:tt,use:fi,useCallback:fo,useContext:tt,useEffect:uc,useImperativeHandle:oo,useInsertionEffect:co,useLayoutEffect:so,useMemo:ho,useReducer:di,useRef:no,useState:function(){return di(Ft)},useDebugValue:cc,useDeferredValue:function(e,t){var a=ke();return mo(a,Ce.memoizedState,e,t)},useTransition:function(){var e=di(Ft)[0],t=ke().memoizedState;return[typeof e=="boolean"?e:cn(e),t]},useSyncExternalStore:Qr,useId:yo,useHostTransitionStatus:oc,useFormState:to,useActionState:to,useOptimistic:function(e,t){var a=ke();return Jr(a,Ce,e,t)},useMemoCache:tc,useCacheRefresh:go};dc.useEffectEvent=uo;var Eo={readContext:tt,use:fi,useCallback:fo,useContext:tt,useEffect:uc,useImperativeHandle:oo,useInsertionEffect:co,useLayoutEffect:so,useMemo:ho,useReducer:lc,useRef:no,useState:function(){return lc(Ft)},useDebugValue:cc,useDeferredValue:function(e,t){var a=ke();return Ce===null?sc(a,e,t):mo(a,Ce.memoizedState,e,t)},useTransition:function(){var e=lc(Ft)[0],t=ke().memoizedState;return[typeof e=="boolean"?e:cn(e),t]},useSyncExternalStore:Qr,useId:yo,useHostTransitionStatus:oc,useFormState:lo,useActionState:lo,useOptimistic:function(e,t){var a=ke();return Ce!==null?Jr(a,Ce,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:tc,useCacheRefresh:go};Eo.useEffectEvent=uo;function hc(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:L({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var mc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=jt(),n=va(l);n.payload=t,a!=null&&(n.callback=a),t=xa(e,n,l),t!==null&&(dt(t,e,l),an(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=jt(),n=va(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=xa(e,n,l),t!==null&&(dt(t,e,l),an(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=jt(),l=va(a);l.tag=2,t!=null&&(l.callback=t),t=xa(e,l,a),t!==null&&(dt(t,e,a),an(t,e,a))}};function To(e,t,a,l,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,c):t.prototype&&t.prototype.isPureReactComponent?!Jl(a,l)||!Jl(n,i):!0}function _o(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&mc.enqueueReplaceState(t,t.state,null)}function Ja(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=L({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Ao(e){Kn(e)}function zo(e){console.error(e)}function Oo(e){Kn(e)}function vi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Mo(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function pc(e,t,a){return a=va(a),a.tag=3,a.payload={element:null},a.callback=function(){vi(e,t)},a}function Do(e){return e=va(e),e.tag=3,e}function Co(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var i=l.value;e.payload=function(){return n(i)},e.callback=function(){Mo(t,a,l)}}var c=a.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){Mo(t,a,l),typeof n!="function"&&(ja===null?ja=new Set([this]):ja.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""})})}function fm(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&pl(t,a,n,!0),a=gt.current,a!==null){switch(a.tag){case 31:case 13:return Dt===null?zi():a.alternate===null&&Qe===0&&(Qe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===li?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Lc(e,l,n)),!1;case 22:return a.flags|=65536,l===li?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Lc(e,l,n)),!1}throw Error(f(435,a.tag))}return Lc(e,l,n),zi(),!1}if(ye)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==Ru&&(e=Error(f(422),{cause:l}),Fl(At(e,a)))):(l!==Ru&&(t=Error(f(423),{cause:l}),Fl(At(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=At(l,a),n=pc(e.stateNode,l,n),Vu(e,n),Qe!==4&&(Qe=2)),!1;var i=Error(f(520),{cause:l});if(i=At(i,a),xn===null?xn=[i]:xn.push(i),Qe!==4&&(Qe=2),t===null)return!0;l=At(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=pc(a.stateNode,l,e),Vu(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ja===null||!ja.has(i))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Do(n),Co(n,e,a,l),Vu(a,n),!1}a=a.return}while(a!==null);return!1}var vc=Error(f(461)),Ke=!1;function at(e,t,a,l){t.child=e===null?Ur(t,null,a,l):Za(t,e.child,a,l)}function wo(e,t,a,l,n){a=a.render;var i=t.ref;if("ref"in l){var c={};for(var r in l)r!=="ref"&&(c[r]=l[r])}else c=l;return Qa(t),l=Fu(e,t,a,c,i,n),r=Iu(),e!==null&&!Ke?(Pu(e,t,n),It(e,t,n)):(ye&&r&&Cu(t),t.flags|=1,at(e,t,l,n),t.child)}function Ro(e,t,a,l,n){if(e===null){var i=a.type;return typeof i=="function"&&!Ou(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Uo(e,t,i,l,n)):(e=Fn(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ec(e,n)){var c=i.memoizedProps;if(a=a.compare,a=a!==null?a:Jl,a(c,l)&&e.ref===t.ref)return It(e,t,n)}return t.flags|=1,e=Zt(i,l),e.ref=t.ref,e.return=t,t.child=e}function Uo(e,t,a,l,n){if(e!==null){var i=e.memoizedProps;if(Jl(i,l)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=l=i,Ec(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,It(e,t,n)}return xc(e,t,a,l,n)}function Ho(e,t,a,l){var n=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~i}else l=0,t.child=null;return qo(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ti(t,i!==null?i.cachePool:null),i!==null?Br(t,i):Ku(),Yr(t);else return l=t.lanes=536870912,qo(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(ti(t,i.cachePool),Br(t,i),ga(),t.memoizedState=null):(e!==null&&ti(t,null),Ku(),ga());return at(e,t,n,a),t.child}function on(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qo(e,t,a,l,n){var i=Gu();return i=i===null?null:{parent:Ve._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&ti(t,null),Ku(),Yr(t),e!==null&&pl(e,t,l,!0),t.childLanes=n,null}function xi(e,t){return t=gi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bo(e,t,a){return Za(t,e.child,null,a),e=xi(t,t.pendingProps),e.flags|=2,bt(t),t.memoizedState=null,e}function dm(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ye){if(l.mode==="hidden")return e=xi(t,l),t.lanes=536870912,on(null,e);if($u(t),(e=He)?(e=Ff(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fa!==null?{id:Yt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},a=br(e),a.return=t,t.child=a,et=t,He=null)):e=null,e===null)throw ha(t);return t.lanes=536870912,null}return xi(t,l)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if($u(t),n)if(t.flags&256)t.flags&=-257,t=Bo(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(f(558));else if(Ke||pl(e,t,a,!1),n=(a&e.childLanes)!==0,Ke||n){if(l=Ue,l!==null&&(c=As(l,a),c!==0&&c!==i.retryLane))throw i.retryLane=c,Ba(e,c),dt(l,e,c),vc;zi(),t=Bo(e,t,a)}else e=i.treeContext,He=Ct(c.nextSibling),et=t,ye=!0,da=null,Mt=!1,e!==null&&jr(t,e),t=xi(t,l),t.flags|=4096;return t}return e=Zt(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function yi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(f(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function xc(e,t,a,l,n){return Qa(t),a=Fu(e,t,a,l,void 0,n),l=Iu(),e!==null&&!Ke?(Pu(e,t,n),It(e,t,n)):(ye&&l&&Cu(t),t.flags|=1,at(e,t,a,n),t.child)}function Yo(e,t,a,l,n,i){return Qa(t),t.updateQueue=null,a=Gr(t,l,a,n),Lr(e),l=Iu(),e!==null&&!Ke?(Pu(e,t,i),It(e,t,i)):(ye&&l&&Cu(t),t.flags|=1,at(e,t,a,i),t.child)}function Lo(e,t,a,l,n){if(Qa(t),t.stateNode===null){var i=fl,c=a.contextType;typeof c=="object"&&c!==null&&(i=tt(c)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=mc,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},Xu(t),c=a.contextType,i.context=typeof c=="object"&&c!==null?tt(c):fl,i.state=t.memoizedState,c=a.getDerivedStateFromProps,typeof c=="function"&&(hc(t,a,c,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&mc.enqueueReplaceState(i,i.state,null),nn(t,l,i,n),ln(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var r=t.memoizedProps,o=Ja(a,r);i.props=o;var y=i.context,j=a.contextType;c=fl,typeof j=="object"&&j!==null&&(c=tt(j));var _=a.getDerivedStateFromProps;j=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,j||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||y!==c)&&_o(t,i,l,c),pa=!1;var g=t.memoizedState;i.state=g,nn(t,l,i,n),ln(),y=t.memoizedState,r||g!==y||pa?(typeof _=="function"&&(hc(t,a,_,l),y=t.memoizedState),(o=pa||To(t,a,o,l,g,y,c))?(j||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=y),i.props=l,i.state=y,i.context=c,l=o):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,ku(e,t),c=t.memoizedProps,j=Ja(a,c),i.props=j,_=t.pendingProps,g=i.context,y=a.contextType,o=fl,typeof y=="object"&&y!==null&&(o=tt(y)),r=a.getDerivedStateFromProps,(y=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==_||g!==o)&&_o(t,i,l,o),pa=!1,g=t.memoizedState,i.state=g,nn(t,l,i,n),ln();var S=t.memoizedState;c!==_||g!==S||pa||e!==null&&e.dependencies!==null&&Pn(e.dependencies)?(typeof r=="function"&&(hc(t,a,r,l),S=t.memoizedState),(j=pa||To(t,a,j,l,g,S,o)||e!==null&&e.dependencies!==null&&Pn(e.dependencies))?(y||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,S,o),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,S,o)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=S),i.props=l,i.state=S,i.context=o,l=j):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,yi(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Za(t,e.child,null,n),t.child=Za(t,null,a,n)):at(e,t,a,n),t.memoizedState=i.state,e=t.child):e=It(e,t,n),e}function Go(e,t,a,l){return La(),t.flags|=256,at(e,t,a,l),t.child}var yc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gc(e){return{baseLanes:e,cachePool:Or()}}function bc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Nt),e}function Qo(e,t,a){var l=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(ye){if(n?ya(t):ga(),(e=He)?(e=Ff(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fa!==null?{id:Yt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},a=br(e),a.return=t,t.child=a,et=t,He=null)):e=null,e===null)throw ha(t);return as(e)?t.lanes=32:t.lanes=536870912,null}var r=l.children;return l=l.fallback,n?(ga(),n=t.mode,r=gi({mode:"hidden",children:r},n),l=Ya(l,n,a,null),r.return=t,l.return=t,r.sibling=l,t.child=r,l=t.child,l.memoizedState=gc(a),l.childLanes=bc(e,c,a),t.memoizedState=yc,on(null,l)):(ya(t),Sc(t,r))}var o=e.memoizedState;if(o!==null&&(r=o.dehydrated,r!==null)){if(i)t.flags&256?(ya(t),t.flags&=-257,t=Nc(e,t,a)):t.memoizedState!==null?(ga(),t.child=e.child,t.flags|=128,t=null):(ga(),r=l.fallback,n=t.mode,l=gi({mode:"visible",children:l.children},n),r=Ya(r,n,a,null),r.flags|=2,l.return=t,r.return=t,l.sibling=r,t.child=l,Za(t,e.child,null,a),l=t.child,l.memoizedState=gc(a),l.childLanes=bc(e,c,a),t.memoizedState=yc,t=on(null,l));else if(ya(t),as(r)){if(c=r.nextSibling&&r.nextSibling.dataset,c)var y=c.dgst;c=y,l=Error(f(419)),l.stack="",l.digest=c,Fl({value:l,source:null,stack:null}),t=Nc(e,t,a)}else if(Ke||pl(e,t,a,!1),c=(a&e.childLanes)!==0,Ke||c){if(c=Ue,c!==null&&(l=As(c,a),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ba(e,l),dt(c,e,l),vc;ts(r)||zi(),t=Nc(e,t,a)}else ts(r)?(t.flags|=192,t.child=e.child,t=null):(e=o.treeContext,He=Ct(r.nextSibling),et=t,ye=!0,da=null,Mt=!1,e!==null&&jr(t,e),t=Sc(t,l.children),t.flags|=4096);return t}return n?(ga(),r=l.fallback,n=t.mode,o=e.child,y=o.sibling,l=Zt(o,{mode:"hidden",children:l.children}),l.subtreeFlags=o.subtreeFlags&65011712,y!==null?r=Zt(y,r):(r=Ya(r,n,a,null),r.flags|=2),r.return=t,l.return=t,l.sibling=r,t.child=l,on(null,l),l=t.child,r=e.child.memoizedState,r===null?r=gc(a):(n=r.cachePool,n!==null?(o=Ve._currentValue,n=n.parent!==o?{parent:o,pool:o}:n):n=Or(),r={baseLanes:r.baseLanes|a,cachePool:n}),l.memoizedState=r,l.childLanes=bc(e,c,a),t.memoizedState=yc,on(e.child,l)):(ya(t),a=e.child,e=a.sibling,a=Zt(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=a,t.memoizedState=null,a)}function Sc(e,t){return t=gi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function gi(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function Nc(e,t,a){return Za(t,e.child,null,a),e=Sc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xo(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),qu(e.return,t,a)}function jc(e,t,a,l,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=l,c.tail=a,c.tailMode=n,c.treeForkCount=i)}function ko(e,t,a){var l=t.pendingProps,n=l.revealOrder,i=l.tail;l=l.children;var c=Xe.current,r=(c&2)!==0;if(r?(c=c&1|2,t.flags|=128):c&=1,p(Xe,c),at(e,t,l,a),l=ye?Wl:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xo(e,a,t);else if(e.tag===19)Xo(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&ci(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),jc(t,!1,n,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ci(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}jc(t,!0,a,null,i,l);break;case"together":jc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function It(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Na|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(pl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(f(153));if(t.child!==null){for(e=t.child,a=Zt(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Zt(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ec(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Pn(e)))}function hm(e,t,a){switch(t.tag){case 3:Se(t,t.stateNode.containerInfo),ma(t,Ve,e.memoizedState.cache),La();break;case 27:case 5:ht(t);break;case 4:Se(t,t.stateNode.containerInfo);break;case 10:ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$u(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ya(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Qo(e,t,a):(ya(t),e=It(e,t,a),e!==null?e.sibling:null);ya(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(pl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return ko(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),p(Xe,Xe.current),l)break;return null;case 22:return t.lanes=0,Ho(e,t,a,t.pendingProps);case 24:ma(t,Ve,e.memoizedState.cache)}return It(e,t,a)}function Vo(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Ec(e,a)&&(t.flags&128)===0)return Ke=!1,hm(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,ye&&(t.flags&1048576)!==0&&Nr(t,Wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e=="function")Ou(e)?(l=Ja(e,l),t.tag=1,t=Lo(null,t,e,l,a)):(t.tag=0,t=xc(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===X){t.tag=11,t=wo(null,t,e,l,a);break e}else if(n===U){t.tag=14,t=Ro(null,t,e,l,a);break e}}throw t=Le(e)||e,Error(f(306,t,""))}}return t;case 0:return xc(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=Ja(l,t.pendingProps),Lo(e,t,l,n,a);case 3:e:{if(Se(t,t.stateNode.containerInfo),e===null)throw Error(f(387));l=t.pendingProps;var i=t.memoizedState;n=i.element,ku(e,t),nn(t,l,null,a);var c=t.memoizedState;if(l=c.cache,ma(t,Ve,l),l!==i.cache&&Bu(t,[Ve],a,!0),ln(),l=c.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Go(e,t,l,a);break e}else if(l!==n){n=At(Error(f(424)),t),Fl(n),t=Go(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Ct(e.firstChild),et=t,ye=!0,da=null,Mt=!0,a=Ur(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(La(),l===n){t=It(e,t,a);break e}at(e,t,l,a)}t=t.child}return t;case 26:return yi(e,t),e===null?(a=ld(t.type,null,t.pendingProps,null))?t.memoizedState=a:ye||(a=t.type,e=t.pendingProps,l=Ui(G.current).createElement(a),l[Pe]=t,l[ut]=e,lt(l,a,e),Fe(l),t.stateNode=l):t.memoizedState=ld(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ht(t),e===null&&ye&&(l=t.stateNode=ed(t.type,t.pendingProps,G.current),et=t,Mt=!0,n=He,Aa(t.type)?(ls=n,He=Ct(l.firstChild)):He=n),at(e,t,t.pendingProps.children,a),yi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ye&&((n=l=He)&&(l=Xm(l,t.type,t.pendingProps,Mt),l!==null?(t.stateNode=l,et=t,He=Ct(l.firstChild),Mt=!1,n=!0):n=!1),n||ha(t)),ht(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,l=i.children,Ic(n,i)?l=null:c!==null&&Ic(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Fu(e,t,nm,null,null,a),Tn._currentValue=n),yi(e,t),at(e,t,l,a),t.child;case 6:return e===null&&ye&&((e=a=He)&&(a=km(a,t.pendingProps,Mt),a!==null?(t.stateNode=a,et=t,He=null,e=!0):e=!1),e||ha(t)),null;case 13:return Qo(e,t,a);case 4:return Se(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Za(t,null,l,a):at(e,t,l,a),t.child;case 11:return wo(e,t,t.type,t.pendingProps,a);case 7:return at(e,t,t.pendingProps,a),t.child;case 8:return at(e,t,t.pendingProps.children,a),t.child;case 12:return at(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,ma(t,t.type,l.value),at(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,Qa(t),n=tt(n),l=l(n),t.flags|=1,at(e,t,l,a),t.child;case 14:return Ro(e,t,t.type,t.pendingProps,a);case 15:return Uo(e,t,t.type,t.pendingProps,a);case 19:return ko(e,t,a);case 31:return dm(e,t,a);case 22:return Ho(e,t,a,t.pendingProps);case 24:return Qa(t),l=tt(Ve),e===null?(n=Gu(),n===null&&(n=Ue,i=Yu(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=a),n=i),t.memoizedState={parent:l,cache:n},Xu(t),ma(t,Ve,n)):((e.lanes&a)!==0&&(ku(e,t),nn(t,null,null,a),ln()),n=e.memoizedState,i=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ma(t,Ve,l)):(l=i.cache,ma(t,Ve,l),l!==n.cache&&Bu(t,[Ve],a,!0))),at(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(f(156,t.tag))}function Pt(e){e.flags|=4}function Tc(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(gf())e.flags|=8192;else throw Va=li,Qu}else e.flags&=-16777217}function Zo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!sd(t))if(gf())e.flags|=8192;else throw Va=li,Qu}function bi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Es():536870912,e.lanes|=t,Al|=t)}function fn(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function mm(e,t,a){var l=t.pendingProps;switch(wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),$t(Ve),_e(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ml(t)?Pt(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uu())),qe(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Pt(t),i!==null?(qe(t),Zo(t,i)):(qe(t),Tc(t,n,null,l,a))):i?i!==e.memoizedState?(Pt(t),qe(t),Zo(t,i)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Pt(t),qe(t),Tc(t,n,e,l,a)),null;case 27:if(ca(t),a=G.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Pt(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return qe(t),null}e=A.current,ml(t)?Er(t):(e=ed(n,l,a),t.stateNode=e,Pt(t))}return qe(t),null;case 5:if(ca(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Pt(t);else{if(!l){if(t.stateNode===null)throw Error(f(166));return qe(t),null}if(i=A.current,ml(t))Er(t);else{var c=Ui(G.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}i[Pe]=t,i[ut]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(lt(i,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Pt(t)}}return qe(t),Tc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Pt(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(f(166));if(e=G.current,ml(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=et,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Xf(e.nodeValue,a)),e||ha(t,!0)}else e=Ui(e).createTextNode(l),e[Pe]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=ml(t),a!==null){if(e===null){if(!l)throw Error(f(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(f(557));e[Pe]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(bt(t),t):(bt(t),null);if((t.flags&128)!==0)throw Error(f(558))}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ml(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(f(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(f(317));n[Pe]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),n=!1}else n=Uu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(bt(t),t):(bt(t),null)}return bt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),bi(t,t.updateQueue),qe(t),null);case 4:return _e(),e===null&&Kc(t.stateNode.containerInfo),qe(t),null;case 10:return $t(t.type),qe(t),null;case 19:if(m(Xe),l=t.memoizedState,l===null)return qe(t),null;if(n=(t.flags&128)!==0,i=l.rendering,i===null)if(n)fn(l,!1);else{if(Qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=ci(e),i!==null){for(t.flags|=128,fn(l,!1),e=i.updateQueue,t.updateQueue=e,bi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)gr(a,e),a=a.sibling;return p(Xe,Xe.current&1|2),ye&&Kt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&mt()>Ti&&(t.flags|=128,n=!0,fn(l,!1),t.lanes=4194304)}else{if(!n)if(e=ci(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,bi(t,e),fn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!ye)return qe(t),null}else 2*mt()-l.renderingStartTime>Ti&&a!==536870912&&(t.flags|=128,n=!0,fn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=mt(),e.sibling=null,a=Xe.current,p(Xe,n?a&1|2:a&1),ye&&Kt(t,l.treeForkCount),e):(qe(t),null);case 22:case 23:return bt(t),Ju(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&bi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&m(Xa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),$t(Ve),qe(t),null;case 25:return null;case 30:return null}throw Error(f(156,t.tag))}function pm(e,t){switch(wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $t(Ve),_e(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ca(t),null;case 31:if(t.memoizedState!==null){if(bt(t),t.alternate===null)throw Error(f(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(f(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return m(Xe),null;case 4:return _e(),null;case 10:return $t(t.type),null;case 22:case 23:return bt(t),Ju(),e!==null&&m(Xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $t(Ve),null;case 25:return null;default:return null}}function Ko(e,t){switch(wu(t),t.tag){case 3:$t(Ve),_e();break;case 26:case 27:case 5:ca(t);break;case 4:_e();break;case 31:t.memoizedState!==null&&bt(t);break;case 13:bt(t);break;case 19:m(Xe);break;case 10:$t(t.type);break;case 22:case 23:bt(t),Ju(),e!==null&&m(Xa);break;case 24:$t(Ve)}}function dn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var i=a.create,c=a.inst;l=i(),c.destroy=l}a=a.next}while(a!==n)}}catch(r){Oe(t,t.return,r)}}function ba(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var i=n.next;l=i;do{if((l.tag&e)===e){var c=l.inst,r=c.destroy;if(r!==void 0){c.destroy=void 0,n=t;var o=a,y=r;try{y()}catch(j){Oe(n,o,j)}}}l=l.next}while(l!==i)}}catch(j){Oe(t,t.return,j)}}function Jo(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{qr(t,a)}catch(l){Oe(e,e.return,l)}}}function $o(e,t,a){a.props=Ja(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Oe(e,t,l)}}function hn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){Oe(e,t,n)}}function Gt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){Oe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){Oe(e,t,n)}else a.current=null}function Wo(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){Oe(e,e.return,n)}}function _c(e,t,a){try{var l=e.stateNode;qm(l,e.type,a,t),l[ut]=t}catch(n){Oe(e,e.return,n)}}function Fo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Aa(e.type)||e.tag===4}function Ac(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function zc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=kt));else if(l!==4&&(l===27&&Aa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(zc(e,t,a),e=e.sibling;e!==null;)zc(e,t,a),e=e.sibling}function Si(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Aa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Si(e,t,a),e=e.sibling;e!==null;)Si(e,t,a),e=e.sibling}function Io(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);lt(t,l,a),t[Pe]=e,t[ut]=a}catch(i){Oe(e,e.return,i)}}var ea=!1,Je=!1,Oc=!1,Po=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function vm(e,t){if(e=e.containerInfo,Wc=Qi,e=or(e),Nu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var c=0,r=-1,o=-1,y=0,j=0,_=e,g=null;t:for(;;){for(var S;_!==a||n!==0&&_.nodeType!==3||(r=c+n),_!==i||l!==0&&_.nodeType!==3||(o=c+l),_.nodeType===3&&(c+=_.nodeValue.length),(S=_.firstChild)!==null;)g=_,_=S;for(;;){if(_===e)break t;if(g===a&&++y===n&&(r=c),g===i&&++j===l&&(o=c),(S=_.nextSibling)!==null)break;_=g,g=_.parentNode}_=S}a=r===-1||o===-1?null:{start:r,end:o}}else a=null}a=a||{start:0,end:0}}else a=null;for(Fc={focusedElem:e,selectionRange:a},Qi=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,n=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var V=Ja(a.type,n);e=l.getSnapshotBeforeUpdate(V,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(I){Oe(a,a.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)es(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":es(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(f(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function ef(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:aa(e,a),l&4&&dn(5,a);break;case 1:if(aa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(c){Oe(a,a.return,c)}else{var n=Ja(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Oe(a,a.return,c)}}l&64&&Jo(a),l&512&&hn(a,a.return);break;case 3:if(aa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{qr(e,t)}catch(c){Oe(a,a.return,c)}}break;case 27:t===null&&l&4&&Io(a);case 26:case 5:aa(e,a),t===null&&l&4&&Wo(a),l&512&&hn(a,a.return);break;case 12:aa(e,a);break;case 31:aa(e,a),l&4&&lf(e,a);break;case 13:aa(e,a),l&4&&nf(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Tm.bind(null,a),Vm(e,a))));break;case 22:if(l=a.memoizedState!==null||ea,!l){t=t!==null&&t.memoizedState!==null||Je,n=ea;var i=Je;ea=l,(Je=t)&&!i?la(e,a,(a.subtreeFlags&8772)!==0):aa(e,a),ea=n,Je=i}break;case 30:break;default:aa(e,a)}}function tf(e){var t=e.alternate;t!==null&&(e.alternate=null,tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&iu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,st=!1;function ta(e,t,a){for(a=a.child;a!==null;)af(e,t,a),a=a.sibling}function af(e,t,a){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(Hl,a)}catch{}switch(a.tag){case 26:Je||Gt(a,t),ta(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Je||Gt(a,t);var l=Be,n=st;Aa(a.type)&&(Be=a.stateNode,st=!1),ta(e,t,a),Nn(a.stateNode),Be=l,st=n;break;case 5:Je||Gt(a,t);case 6:if(l=Be,n=st,Be=null,ta(e,t,a),Be=l,st=n,Be!==null)if(st)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(a.stateNode)}catch(i){Oe(a,t,i)}else try{Be.removeChild(a.stateNode)}catch(i){Oe(a,t,i)}break;case 18:Be!==null&&(st?(e=Be,$f(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Ul(e)):$f(Be,a.stateNode));break;case 4:l=Be,n=st,Be=a.stateNode.containerInfo,st=!0,ta(e,t,a),Be=l,st=n;break;case 0:case 11:case 14:case 15:ba(2,a,t),Je||ba(4,a,t),ta(e,t,a);break;case 1:Je||(Gt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&$o(a,t,l)),ta(e,t,a);break;case 21:ta(e,t,a);break;case 22:Je=(l=Je)||a.memoizedState!==null,ta(e,t,a),Je=l;break;default:ta(e,t,a)}}function lf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ul(e)}catch(a){Oe(t,t.return,a)}}}function nf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ul(e)}catch(a){Oe(t,t.return,a)}}function xm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Po),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Po),t;default:throw Error(f(435,e.tag))}}function Ni(e,t){var a=xm(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=_m.bind(null,e,l);l.then(n,n)}})}function rt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],i=e,c=t,r=c;e:for(;r!==null;){switch(r.tag){case 27:if(Aa(r.type)){Be=r.stateNode,st=!1;break e}break;case 5:Be=r.stateNode,st=!1;break e;case 3:case 4:Be=r.stateNode.containerInfo,st=!0;break e}r=r.return}if(Be===null)throw Error(f(160));af(i,c,n),Be=null,st=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)uf(t,e),t=t.sibling}var Ht=null;function uf(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rt(t,e),ot(e),l&4&&(ba(3,e,e.return),dn(3,e),ba(5,e,e.return));break;case 1:rt(t,e),ot(e),l&512&&(Je||a===null||Gt(a,a.return)),l&64&&ea&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Ht;if(rt(t,e),ot(e),l&512&&(Je||a===null||Gt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Yl]||i[Pe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(l),n.head.insertBefore(i,n.querySelector("head > title"))),lt(i,l,a),i[Pe]=e,Fe(i),l=i;break e;case"link":var c=ud("link","href",n).get(l+(a.href||""));if(c){for(var r=0;r<c.length;r++)if(i=c[r],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){c.splice(r,1);break t}}i=n.createElement(l),lt(i,l,a),n.head.appendChild(i);break;case"meta":if(c=ud("meta","content",n).get(l+(a.content||""))){for(r=0;r<c.length;r++)if(i=c[r],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){c.splice(r,1);break t}}i=n.createElement(l),lt(i,l,a),n.head.appendChild(i);break;default:throw Error(f(468,l))}i[Pe]=e,Fe(i),l=i}e.stateNode=l}else cd(n,e.type,e.stateNode);else e.stateNode=id(n,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?cd(n,e.type,e.stateNode):id(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&_c(e,e.memoizedProps,a.memoizedProps)}break;case 27:rt(t,e),ot(e),l&512&&(Je||a===null||Gt(a,a.return)),a!==null&&l&4&&_c(e,e.memoizedProps,a.memoizedProps);break;case 5:if(rt(t,e),ot(e),l&512&&(Je||a===null||Gt(a,a.return)),e.flags&32){n=e.stateNode;try{nl(n,"")}catch(V){Oe(e,e.return,V)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,_c(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Oc=!0);break;case 6:if(rt(t,e),ot(e),l&4){if(e.stateNode===null)throw Error(f(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(V){Oe(e,e.return,V)}}break;case 3:if(Bi=null,n=Ht,Ht=Hi(t.containerInfo),rt(t,e),Ht=n,ot(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(V){Oe(e,e.return,V)}Oc&&(Oc=!1,cf(e));break;case 4:l=Ht,Ht=Hi(e.stateNode.containerInfo),rt(t,e),ot(e),Ht=l;break;case 12:rt(t,e),ot(e);break;case 31:rt(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ni(e,l)));break;case 13:rt(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ei=mt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ni(e,l)));break;case 22:n=e.memoizedState!==null;var o=a!==null&&a.memoizedState!==null,y=ea,j=Je;if(ea=y||n,Je=j||o,rt(t,e),Je=j,ea=y,ot(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||o||ea||Je||$a(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){o=a=t;try{if(i=o.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{r=o.stateNode;var _=o.memoizedProps.style,g=_!=null&&_.hasOwnProperty("display")?_.display:null;r.style.display=g==null||typeof g=="boolean"?"":(""+g).trim()}}catch(V){Oe(o,o.return,V)}}}else if(t.tag===6){if(a===null){o=t;try{o.stateNode.nodeValue=n?"":o.memoizedProps}catch(V){Oe(o,o.return,V)}}}else if(t.tag===18){if(a===null){o=t;try{var S=o.stateNode;n?Wf(S,!0):Wf(o.stateNode,!1)}catch(V){Oe(o,o.return,V)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ni(e,a))));break;case 19:rt(t,e),ot(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ni(e,l)));break;case 30:break;case 21:break;default:rt(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Fo(l)){a=l;break}l=l.return}if(a==null)throw Error(f(160));switch(a.tag){case 27:var n=a.stateNode,i=Ac(e);Si(e,i,n);break;case 5:var c=a.stateNode;a.flags&32&&(nl(c,""),a.flags&=-33);var r=Ac(e);Si(e,r,c);break;case 3:case 4:var o=a.stateNode.containerInfo,y=Ac(e);zc(e,y,o);break;default:throw Error(f(161))}}catch(j){Oe(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ef(e,t.alternate,t),t=t.sibling}function $a(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ba(4,t,t.return),$a(t);break;case 1:Gt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&$o(t,t.return,a),$a(t);break;case 27:Nn(t.stateNode);case 26:case 5:Gt(t,t.return),$a(t);break;case 22:t.memoizedState===null&&$a(t);break;case 30:$a(t);break;default:$a(t)}e=e.sibling}}function la(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:la(n,i,a),dn(4,i);break;case 1:if(la(n,i,a),l=i,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(y){Oe(l,l.return,y)}if(l=i,n=l.updateQueue,n!==null){var r=l.stateNode;try{var o=n.shared.hiddenCallbacks;if(o!==null)for(n.shared.hiddenCallbacks=null,n=0;n<o.length;n++)Hr(o[n],r)}catch(y){Oe(l,l.return,y)}}a&&c&64&&Jo(i),hn(i,i.return);break;case 27:Io(i);case 26:case 5:la(n,i,a),a&&l===null&&c&4&&Wo(i),hn(i,i.return);break;case 12:la(n,i,a);break;case 31:la(n,i,a),a&&c&4&&lf(n,i);break;case 13:la(n,i,a),a&&c&4&&nf(n,i);break;case 22:i.memoizedState===null&&la(n,i,a),hn(i,i.return);break;case 30:break;default:la(n,i,a)}t=t.sibling}}function Mc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Il(a))}function Dc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Il(e))}function qt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sf(e,t,a,l),t=t.sibling}function sf(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:qt(e,t,a,l),n&2048&&dn(9,t);break;case 1:qt(e,t,a,l);break;case 3:qt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Il(e)));break;case 12:if(n&2048){qt(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,r=i.onPostCommit;typeof r=="function"&&r(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(o){Oe(t,t.return,o)}}else qt(e,t,a,l);break;case 31:qt(e,t,a,l);break;case 13:qt(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?qt(e,t,a,l):mn(e,t):i._visibility&2?qt(e,t,a,l):(i._visibility|=2,El(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Mc(c,t);break;case 24:qt(e,t,a,l),n&2048&&Dc(t.alternate,t);break;default:qt(e,t,a,l)}}function El(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,r=a,o=l,y=c.flags;switch(c.tag){case 0:case 11:case 15:El(i,c,r,o,n),dn(8,c);break;case 23:break;case 22:var j=c.stateNode;c.memoizedState!==null?j._visibility&2?El(i,c,r,o,n):mn(i,c):(j._visibility|=2,El(i,c,r,o,n)),n&&y&2048&&Mc(c.alternate,c);break;case 24:El(i,c,r,o,n),n&&y&2048&&Dc(c.alternate,c);break;default:El(i,c,r,o,n)}t=t.sibling}}function mn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:mn(a,l),n&2048&&Mc(l.alternate,l);break;case 24:mn(a,l),n&2048&&Dc(l.alternate,l);break;default:mn(a,l)}t=t.sibling}}var pn=8192;function Tl(e,t,a){if(e.subtreeFlags&pn)for(e=e.child;e!==null;)rf(e,t,a),e=e.sibling}function rf(e,t,a){switch(e.tag){case 26:Tl(e,t,a),e.flags&pn&&e.memoizedState!==null&&l0(a,Ht,e.memoizedState,e.memoizedProps);break;case 5:Tl(e,t,a);break;case 3:case 4:var l=Ht;Ht=Hi(e.stateNode.containerInfo),Tl(e,t,a),Ht=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=pn,pn=16777216,Tl(e,t,a),pn=l):Tl(e,t,a));break;default:Tl(e,t,a)}}function of(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function vn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,df(l,e)}of(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ff(e),e=e.sibling}function ff(e){switch(e.tag){case 0:case 11:case 15:vn(e),e.flags&2048&&ba(9,e,e.return);break;case 3:vn(e);break;case 12:vn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ji(e)):vn(e);break;default:vn(e)}}function ji(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,df(l,e)}of(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ba(8,t,t.return),ji(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ji(t));break;default:ji(t)}e=e.sibling}}function df(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:ba(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Il(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var n=l.sibling,i=l.return;if(tf(l),l===a){Ie=null;break e}if(n!==null){n.return=i,Ie=n;break e}Ie=i}}}var ym={getCacheForType:function(e){var t=tt(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return tt(Ve).controller.signal}},gm=typeof WeakMap=="function"?WeakMap:Map,Te=0,Ue=null,de=null,ve=0,ze=0,St=null,Sa=!1,_l=!1,Cc=!1,na=0,Qe=0,Na=0,Wa=0,wc=0,Nt=0,Al=0,xn=null,ft=null,Rc=!1,Ei=0,hf=0,Ti=1/0,_i=null,ja=null,$e=0,Ea=null,zl=null,ia=0,Uc=0,Hc=null,mf=null,yn=0,qc=null;function jt(){return(Te&2)!==0&&ve!==0?ve&-ve:N.T!==null?Xc():zs()}function pf(){if(Nt===0)if((ve&536870912)===0||ye){var e=Rn;Rn<<=1,(Rn&3932160)===0&&(Rn=262144),Nt=e}else Nt=536870912;return e=gt.current,e!==null&&(e.flags|=32),Nt}function dt(e,t,a){(e===Ue&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(Ol(e,0),Ta(e,ve,Nt,!1)),Bl(e,a),((Te&2)===0||e!==Ue)&&(e===Ue&&((Te&2)===0&&(Wa|=a),Qe===4&&Ta(e,ve,Nt,!1)),Qt(e))}function vf(e,t,a){if((Te&6)!==0)throw Error(f(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ql(e,t),n=l?Nm(e,t):Yc(e,t,!0),i=l;do{if(n===0){_l&&!l&&Ta(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!bm(a)){n=Yc(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var r=e;n=xn;var o=r.current.memoizedState.isDehydrated;if(o&&(Ol(r,c).flags|=256),c=Yc(r,c,!1),c!==2){if(Cc&&!o){r.errorRecoveryDisabledLanes|=i,Wa|=i,n=4;break e}i=ft,ft=n,i!==null&&(ft===null?ft=i:ft.push.apply(ft,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Ol(e,0),Ta(e,t,0,!0);break}e:{switch(l=e,i=n,i){case 0:case 1:throw Error(f(345));case 4:if((t&4194048)!==t)break;case 6:Ta(l,t,Nt,!Sa);break e;case 2:ft=null;break;case 3:case 5:break;default:throw Error(f(329))}if((t&62914560)===t&&(n=Ei+300-mt(),10<n)){if(Ta(l,t,Nt,!Sa),Hn(l,0,!0)!==0)break e;ia=t,l.timeoutHandle=Kf(xf.bind(null,l,a,ft,_i,Rc,t,Nt,Wa,Al,Sa,i,"Throttled",-0,0),n);break e}xf(l,a,ft,_i,Rc,t,Nt,Wa,Al,Sa,i,null,-0,0)}}break}while(!0);Qt(e)}function xf(e,t,a,l,n,i,c,r,o,y,j,_,g,S){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},rf(t,i,_);var V=(i&62914560)===i?Ei-mt():(i&4194048)===i?hf-mt():0;if(V=n0(_,V),V!==null){ia=i,e.cancelPendingCommit=V(Tf.bind(null,e,t,i,a,l,n,c,r,o,j,_,null,g,S)),Ta(e,i,c,!y);return}}Tf(e,t,i,a,l,n,c,r,o)}function bm(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],i=n.getSnapshot;n=n.value;try{if(!xt(i(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Ta(e,t,a,l){t&=~wc,t&=~Wa,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var i=31-vt(n),c=1<<i;l[i]=-1,n&=~c}a!==0&&Ts(e,a,t)}function Ai(){return(Te&6)===0?(gn(0),!1):!0}function Bc(){if(de!==null){if(ze===0)var e=de.return;else e=de,Jt=Ga=null,ec(e),gl=null,en=0,e=de;for(;e!==null;)Ko(e.alternate,e),e=e.return;de=null}}function Ol(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Lm(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ia=0,Bc(),Ue=e,de=a=Zt(e.current,null),ve=t,ze=0,St=null,Sa=!1,_l=ql(e,t),Cc=!1,Al=Nt=wc=Wa=Na=Qe=0,ft=xn=null,Rc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-vt(l),i=1<<n;t|=e[n],l&=~i}return na=t,Jn(),a}function yf(e,t){ne=null,N.H=rn,t===yl||t===ai?(t=Cr(),ze=3):t===Qu?(t=Cr(),ze=4):ze=t===vc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,St=t,de===null&&(Qe=1,vi(e,At(t,e.current)))}function gf(){var e=gt.current;return e===null?!0:(ve&4194048)===ve?Dt===null:(ve&62914560)===ve||(ve&536870912)!==0?e===Dt:!1}function bf(){var e=N.H;return N.H=rn,e===null?rn:e}function Sf(){var e=N.A;return N.A=ym,e}function zi(){Qe=4,Sa||(ve&4194048)!==ve&>.current!==null||(_l=!0),(Na&134217727)===0&&(Wa&134217727)===0||Ue===null||Ta(Ue,ve,Nt,!1)}function Yc(e,t,a){var l=Te;Te|=2;var n=bf(),i=Sf();(Ue!==e||ve!==t)&&(_i=null,Ol(e,t)),t=!1;var c=Qe;e:do try{if(ze!==0&&de!==null){var r=de,o=St;switch(ze){case 8:Bc(),c=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var y=ze;if(ze=0,St=null,Ml(e,r,o,y),a&&_l){c=0;break e}break;default:y=ze,ze=0,St=null,Ml(e,r,o,y)}}Sm(),c=Qe;break}catch(j){yf(e,j)}while(!0);return t&&e.shellSuspendCounter++,Jt=Ga=null,Te=l,N.H=n,N.A=i,de===null&&(Ue=null,ve=0,Jn()),c}function Sm(){for(;de!==null;)Nf(de)}function Nm(e,t){var a=Te;Te|=2;var l=bf(),n=Sf();Ue!==e||ve!==t?(_i=null,Ti=mt()+500,Ol(e,t)):_l=ql(e,t);e:do try{if(ze!==0&&de!==null){t=de;var i=St;t:switch(ze){case 1:ze=0,St=null,Ml(e,t,i,1);break;case 2:case 9:if(Mr(i)){ze=0,St=null,jf(t);break}t=function(){ze!==2&&ze!==9||Ue!==e||(ze=7),Qt(e)},i.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Mr(i)?(ze=0,St=null,jf(t)):(ze=0,St=null,Ml(e,t,i,7));break;case 5:var c=null;switch(de.tag){case 26:c=de.memoizedState;case 5:case 27:var r=de;if(c?sd(c):r.stateNode.complete){ze=0,St=null;var o=r.sibling;if(o!==null)de=o;else{var y=r.return;y!==null?(de=y,Oi(y)):de=null}break t}}ze=0,St=null,Ml(e,t,i,5);break;case 6:ze=0,St=null,Ml(e,t,i,6);break;case 8:Bc(),Qe=6;break e;default:throw Error(f(462))}}jm();break}catch(j){yf(e,j)}while(!0);return Jt=Ga=null,N.H=l,N.A=n,Te=a,de!==null?0:(Ue=null,ve=0,Jn(),Qe)}function jm(){for(;de!==null&&!Zd();)Nf(de)}function Nf(e){var t=Vo(e.alternate,e,na);e.memoizedProps=e.pendingProps,t===null?Oi(e):de=t}function jf(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yo(a,t,t.pendingProps,t.type,void 0,ve);break;case 11:t=Yo(a,t,t.pendingProps,t.type.render,t.ref,ve);break;case 5:ec(t);default:Ko(a,t),t=de=gr(t,na),t=Vo(a,t,na)}e.memoizedProps=e.pendingProps,t===null?Oi(e):de=t}function Ml(e,t,a,l){Jt=Ga=null,ec(t),gl=null,en=0;var n=t.return;try{if(fm(e,n,t,a,ve)){Qe=1,vi(e,At(a,e.current)),de=null;return}}catch(i){if(n!==null)throw de=n,i;Qe=1,vi(e,At(a,e.current)),de=null;return}t.flags&32768?(ye||l===1?e=!0:_l||(ve&536870912)!==0?e=!1:(Sa=e=!0,(l===2||l===9||l===3||l===6)&&(l=gt.current,l!==null&&l.tag===13&&(l.flags|=16384))),Ef(t,e)):Oi(t)}function Oi(e){var t=e;do{if((t.flags&32768)!==0){Ef(t,Sa);return}e=t.return;var a=mm(t.alternate,t,na);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);Qe===0&&(Qe=5)}function Ef(e,t){do{var a=pm(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);Qe=6,de=null}function Tf(e,t,a,l,n,i,c,r,o){e.cancelPendingCommit=null;do Mi();while($e!==0);if((Te&6)!==0)throw Error(f(327));if(t!==null){if(t===e.current)throw Error(f(177));if(i=t.lanes|t.childLanes,i|=Au,ah(e,a,i,c,r,o),e===Ue&&(de=Ue=null,ve=0),zl=t,Ea=e,ia=a,Uc=i,Hc=n,mf=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Am(Cn,function(){return Mf(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,n=Y.p,Y.p=2,c=Te,Te|=4;try{vm(e,t,a)}finally{Te=c,Y.p=n,N.T=l}}$e=1,_f(),Af(),zf()}}function _f(){if($e===1){$e=0;var e=Ea,t=zl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null;var l=Y.p;Y.p=2;var n=Te;Te|=4;try{uf(t,e);var i=Fc,c=or(e.containerInfo),r=i.focusedElem,o=i.selectionRange;if(c!==r&&r&&r.ownerDocument&&rr(r.ownerDocument.documentElement,r)){if(o!==null&&Nu(r)){var y=o.start,j=o.end;if(j===void 0&&(j=y),"selectionStart"in r)r.selectionStart=y,r.selectionEnd=Math.min(j,r.value.length);else{var _=r.ownerDocument||document,g=_&&_.defaultView||window;if(g.getSelection){var S=g.getSelection(),V=r.textContent.length,I=Math.min(o.start,V),Re=o.end===void 0?I:Math.min(o.end,V);!S.extend&&I>Re&&(c=Re,Re=I,I=c);var v=sr(r,I),d=sr(r,Re);if(v&&d&&(S.rangeCount!==1||S.anchorNode!==v.node||S.anchorOffset!==v.offset||S.focusNode!==d.node||S.focusOffset!==d.offset)){var x=_.createRange();x.setStart(v.node,v.offset),S.removeAllRanges(),I>Re?(S.addRange(x),S.extend(d.node,d.offset)):(x.setEnd(d.node,d.offset),S.addRange(x))}}}}for(_=[],S=r;S=S.parentNode;)S.nodeType===1&&_.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<_.length;r++){var E=_[r];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}Qi=!!Wc,Fc=Wc=null}finally{Te=n,Y.p=l,N.T=a}}e.current=t,$e=2}}function Af(){if($e===2){$e=0;var e=Ea,t=zl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=N.T,N.T=null;var l=Y.p;Y.p=2;var n=Te;Te|=4;try{ef(e,t.alternate,t)}finally{Te=n,Y.p=l,N.T=a}}$e=3}}function zf(){if($e===4||$e===3){$e=0,Kd();var e=Ea,t=zl,a=ia,l=mf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,zl=Ea=null,Of(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ja=null),lu(a),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(Hl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=N.T,n=Y.p,Y.p=2,N.T=null;try{for(var i=e.onRecoverableError,c=0;c<l.length;c++){var r=l[c];i(r.value,{componentStack:r.stack})}}finally{N.T=t,Y.p=n}}(ia&3)!==0&&Mi(),Qt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===qc?yn++:(yn=0,qc=e):yn=0,gn(0)}}function Of(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Il(t)))}function Mi(){return _f(),Af(),zf(),Mf()}function Mf(){if($e!==5)return!1;var e=Ea,t=Uc;Uc=0;var a=lu(ia),l=N.T,n=Y.p;try{Y.p=32>a?32:a,N.T=null,a=Hc,Hc=null;var i=Ea,c=ia;if($e=0,zl=Ea=null,ia=0,(Te&6)!==0)throw Error(f(331));var r=Te;if(Te|=4,ff(i.current),sf(i,i.current,c,a),Te=r,gn(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(Hl,i)}catch{}return!0}finally{Y.p=n,N.T=l,Of(e,t)}}function Df(e,t,a){t=At(a,t),t=pc(e.stateNode,t,2),e=xa(e,t,2),e!==null&&(Bl(e,2),Qt(e))}function Oe(e,t,a){if(e.tag===3)Df(e,e,a);else for(;t!==null;){if(t.tag===3){Df(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ja===null||!ja.has(l))){e=At(a,e),a=Do(2),l=xa(t,a,2),l!==null&&(Co(a,l,t,e),Bl(l,2),Qt(l));break}}t=t.return}}function Lc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new gm;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Cc=!0,n.add(a),e=Em.bind(null,e,t,a),t.then(e,e))}function Em(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ve&a)===a&&(Qe===4||Qe===3&&(ve&62914560)===ve&&300>mt()-Ei?(Te&2)===0&&Ol(e,0):wc|=a,Al===ve&&(Al=0)),Qt(e)}function Cf(e,t){t===0&&(t=Es()),e=Ba(e,t),e!==null&&(Bl(e,t),Qt(e))}function Tm(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Cf(e,a)}function _m(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(f(314))}l!==null&&l.delete(t),Cf(e,a)}function Am(e,t){return Pi(e,t)}var Di=null,Dl=null,Gc=!1,Ci=!1,Qc=!1,_a=0;function Qt(e){e!==Dl&&e.next===null&&(Dl===null?Di=Dl=e:Dl=Dl.next=e),Ci=!0,Gc||(Gc=!0,Om())}function gn(e,t){if(!Qc&&Ci){Qc=!0;do for(var a=!1,l=Di;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var i=0;else{var c=l.suspendedLanes,r=l.pingedLanes;i=(1<<31-vt(42|e)+1)-1,i&=n&~(c&~r),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Hf(l,i))}else i=ve,i=Hn(l,l===Ue?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||ql(l,i)||(a=!0,Hf(l,i));l=l.next}while(a);Qc=!1}}function zm(){wf()}function wf(){Ci=Gc=!1;var e=0;_a!==0&&Ym()&&(e=_a);for(var t=mt(),a=null,l=Di;l!==null;){var n=l.next,i=Rf(l,t);i===0?(l.next=null,a===null?Di=n:a.next=n,n===null&&(Dl=a)):(a=l,(e!==0||(i&3)!==0)&&(Ci=!0)),l=n}$e!==0&&$e!==5||gn(e),_a!==0&&(_a=0)}function Rf(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-vt(i),r=1<<c,o=n[c];o===-1?((r&a)===0||(r&l)!==0)&&(n[c]=th(r,t)):o<=t&&(e.expiredLanes|=r),i&=~r}if(t=Ue,a=ve,a=Hn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&eu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ql(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&eu(l),lu(a)){case 2:case 8:a=Ns;break;case 32:a=Cn;break;case 268435456:a=js;break;default:a=Cn}return l=Uf.bind(null,e),a=Pi(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&eu(l),e.callbackPriority=2,e.callbackNode=null,2}function Uf(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Mi()&&e.callbackNode!==a)return null;var l=ve;return l=Hn(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(vf(e,l,t),Rf(e,mt()),e.callbackNode!=null&&e.callbackNode===a?Uf.bind(null,e):null)}function Hf(e,t){if(Mi())return null;vf(e,t,!0)}function Om(){Gm(function(){(Te&6)!==0?Pi(Ss,zm):wf()})}function Xc(){if(_a===0){var e=vl;e===0&&(e=wn,wn<<=1,(wn&261888)===0&&(wn=256)),_a=e}return _a}function qf(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ln(""+e)}function Bf(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Mm(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var i=qf((n[ut]||null).action),c=l.submitter;c&&(t=(t=c[ut]||null)?qf(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var r=new kn("action","action",null,l,n);e.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(_a!==0){var o=c?Bf(n,c):new FormData(n);rc(a,{pending:!0,data:o,method:n.method,action:i},null,o)}}else typeof i=="function"&&(r.preventDefault(),o=c?Bf(n,c):new FormData(n),rc(a,{pending:!0,data:o,method:n.method,action:i},i,o))},currentTarget:n}]})}}for(var kc=0;kc<_u.length;kc++){var Vc=_u[kc],Dm=Vc.toLowerCase(),Cm=Vc[0].toUpperCase()+Vc.slice(1);Ut(Dm,"on"+Cm)}Ut(hr,"onAnimationEnd"),Ut(mr,"onAnimationIteration"),Ut(pr,"onAnimationStart"),Ut("dblclick","onDoubleClick"),Ut("focusin","onFocus"),Ut("focusout","onBlur"),Ut(Jh,"onTransitionRun"),Ut($h,"onTransitionStart"),Ut(Wh,"onTransitionCancel"),Ut(vr,"onTransitionEnd"),al("onMouseEnter",["mouseout","mouseover"]),al("onMouseLeave",["mouseout","mouseover"]),al("onPointerEnter",["pointerout","pointerover"]),al("onPointerLeave",["pointerout","pointerover"]),Ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bn="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(" "),wm=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bn));function Yf(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var c=l.length-1;0<=c;c--){var r=l[c],o=r.instance,y=r.currentTarget;if(r=r.listener,o!==i&&n.isPropagationStopped())break e;i=r,n.currentTarget=y;try{i(n)}catch(j){Kn(j)}n.currentTarget=null,i=o}else for(c=0;c<l.length;c++){if(r=l[c],o=r.instance,y=r.currentTarget,r=r.listener,o!==i&&n.isPropagationStopped())break e;i=r,n.currentTarget=y;try{i(n)}catch(j){Kn(j)}n.currentTarget=null,i=o}}}}function he(e,t){var a=t[nu];a===void 0&&(a=t[nu]=new Set);var l=e+"__bubble";a.has(l)||(Lf(t,e,2,!1),a.add(l))}function Zc(e,t,a){var l=0;t&&(l|=4),Lf(a,e,l,t)}var wi="_reactListening"+Math.random().toString(36).slice(2);function Kc(e){if(!e[wi]){e[wi]=!0,Ds.forEach(function(a){a!=="selectionchange"&&(wm.has(a)||Zc(a,!1,e),Zc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wi]||(t[wi]=!0,Zc("selectionchange",!1,t))}}function Lf(e,t,a,l){switch(pd(t)){case 2:var n=c0;break;case 8:n=s0;break;default:n=ss}a=n.bind(null,t,a,e),n=void 0,!hu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Jc(e,t,a,l,n){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var c=l.tag;if(c===3||c===4){var r=l.stateNode.containerInfo;if(r===n)break;if(c===4)for(c=l.return;c!==null;){var o=c.tag;if((o===3||o===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;r!==null;){if(c=Pa(r),c===null)return;if(o=c.tag,o===5||o===6||o===26||o===27){l=i=c;continue e}r=r.parentNode}}l=l.return}Xs(function(){var y=i,j=fu(a),_=[];e:{var g=xr.get(e);if(g!==void 0){var S=kn,V=e;switch(e){case"keypress":if(Qn(a)===0)break e;case"keydown":case"keyup":S=_h;break;case"focusin":V="focus",S=xu;break;case"focusout":V="blur",S=xu;break;case"beforeblur":case"afterblur":S=xu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":S=Zs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":S=mh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":S=Oh;break;case hr:case mr:case pr:S=xh;break;case vr:S=Dh;break;case"scroll":case"scrollend":S=dh;break;case"wheel":S=wh;break;case"copy":case"cut":case"paste":S=gh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":S=Js;break;case"toggle":case"beforetoggle":S=Uh}var I=(t&4)!==0,Re=!I&&(e==="scroll"||e==="scrollend"),v=I?g!==null?g+"Capture":null:g;I=[];for(var d=y,x;d!==null;){var E=d;if(x=E.stateNode,E=E.tag,E!==5&&E!==26&&E!==27||x===null||v===null||(E=Gl(d,v),E!=null&&I.push(Sn(d,E,x))),Re)break;d=d.return}0<I.length&&(g=new S(g,V,null,a,j),_.push({event:g,listeners:I}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",S=e==="mouseout"||e==="pointerout",g&&a!==ou&&(V=a.relatedTarget||a.fromElement)&&(Pa(V)||V[Ia]))break e;if((S||g)&&(g=j.window===j?j:(g=j.ownerDocument)?g.defaultView||g.parentWindow:window,S?(V=a.relatedTarget||a.toElement,S=y,V=V?Pa(V):null,V!==null&&(Re=O(V),I=V.tag,V!==Re||I!==5&&I!==27&&I!==6)&&(V=null)):(S=null,V=y),S!==V)){if(I=Zs,E="onMouseLeave",v="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(I=Js,E="onPointerLeave",v="onPointerEnter",d="pointer"),Re=S==null?g:Ll(S),x=V==null?g:Ll(V),g=new I(E,d+"leave",S,a,j),g.target=Re,g.relatedTarget=x,E=null,Pa(j)===y&&(I=new I(v,d+"enter",V,a,j),I.target=x,I.relatedTarget=Re,E=I),Re=E,S&&V)t:{for(I=Rm,v=S,d=V,x=0,E=v;E;E=I(E))x++;E=0;for(var W=d;W;W=I(W))E++;for(;0<x-E;)v=I(v),x--;for(;0<E-x;)d=I(d),E--;for(;x--;){if(v===d||d!==null&&v===d.alternate){I=v;break t}v=I(v),d=I(d)}I=null}else I=null;S!==null&&Gf(_,g,S,I,!1),V!==null&&Re!==null&&Gf(_,Re,V,I,!0)}}e:{if(g=y?Ll(y):window,S=g.nodeName&&g.nodeName.toLowerCase(),S==="select"||S==="input"&&g.type==="file")var Ne=ar;else if(er(g))if(lr)Ne=Vh;else{Ne=Xh;var K=Qh}else S=g.nodeName,!S||S.toLowerCase()!=="input"||g.type!=="checkbox"&&g.type!=="radio"?y&&ru(y.elementType)&&(Ne=ar):Ne=kh;if(Ne&&(Ne=Ne(e,y))){tr(_,Ne,a,j);break e}K&&K(e,g,y),e==="focusout"&&y&&g.type==="number"&&y.memoizedProps.value!=null&&su(g,"number",g.value)}switch(K=y?Ll(y):window,e){case"focusin":(er(K)||K.contentEditable==="true")&&(sl=K,ju=y,$l=null);break;case"focusout":$l=ju=sl=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,fr(_,a,j);break;case"selectionchange":if(Kh)break;case"keydown":case"keyup":fr(_,a,j)}var ue;if(gu)e:{switch(e){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else cl?Is(e,a)&&(xe="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(xe="onCompositionStart");xe&&($s&&a.locale!=="ko"&&(cl||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&cl&&(ue=ks()):(oa=j,mu="value"in oa?oa.value:oa.textContent,cl=!0)),K=Ri(y,xe),0<K.length&&(xe=new Ks(xe,e,null,a,j),_.push({event:xe,listeners:K}),ue?xe.data=ue:(ue=Ps(a),ue!==null&&(xe.data=ue)))),(ue=qh?Bh(e,a):Yh(e,a))&&(xe=Ri(y,"onBeforeInput"),0<xe.length&&(K=new Ks("onBeforeInput","beforeinput",null,a,j),_.push({event:K,listeners:xe}),K.data=ue)),Mm(_,e,y,a,j)}Yf(_,t)})}function Sn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ri(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Gl(e,a),n!=null&&l.unshift(Sn(e,n,i)),n=Gl(e,t),n!=null&&l.push(Sn(e,n,i))),e.tag===3)return l;e=e.return}return[]}function Rm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Gf(e,t,a,l,n){for(var i=t._reactName,c=[];a!==null&&a!==l;){var r=a,o=r.alternate,y=r.stateNode;if(r=r.tag,o!==null&&o===l)break;r!==5&&r!==26&&r!==27||y===null||(o=y,n?(y=Gl(a,i),y!=null&&c.unshift(Sn(a,y,o))):n||(y=Gl(a,i),y!=null&&c.push(Sn(a,y,o)))),a=a.return}c.length!==0&&e.push({event:t,listeners:c})}var Um=/\r\n?/g,Hm=/\u0000|\uFFFD/g;function Qf(e){return(typeof e=="string"?e:""+e).replace(Um,`
|
|
49
|
+
`).replace(Hm,"")}function Xf(e,t){return t=Qf(t),Qf(e)===t}function we(e,t,a,l,n,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||nl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&nl(e,""+l);break;case"className":Bn(e,"class",l);break;case"tabIndex":Bn(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Bn(e,a,l);break;case"style":Gs(e,l,i);break;case"data":if(t!=="object"){Bn(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ln(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&we(e,t,"name",n.name,n,null),we(e,t,"formEncType",n.formEncType,n,null),we(e,t,"formMethod",n.formMethod,n,null),we(e,t,"formTarget",n.formTarget,n,null)):(we(e,t,"encType",n.encType,n,null),we(e,t,"method",n.method,n,null),we(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ln(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=kt);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ln(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),qn(e,"popover",l);break;case"xlinkActuate":Xt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Xt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Xt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Xt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Xt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Xt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Xt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":qn(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=oh.get(a)||a,qn(e,a,l))}}function $c(e,t,a,l,n,i){switch(a){case"style":Gs(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(f(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(f(60));e.innerHTML=a}}break;case"children":typeof l=="string"?nl(e,l):(typeof l=="number"||typeof l=="bigint")&&nl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cs.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),i=e[ut]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):qn(e,a,l)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,i;for(i in a)if(a.hasOwnProperty(i)){var c=a[i];if(c!=null)switch(i){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:we(e,t,i,c,a,null)}}n&&we(e,t,"srcSet",a.srcSet,a,null),l&&we(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var r=i=c=n=null,o=null,y=null;for(l in a)if(a.hasOwnProperty(l)){var j=a[l];if(j!=null)switch(l){case"name":n=j;break;case"type":c=j;break;case"checked":o=j;break;case"defaultChecked":y=j;break;case"value":i=j;break;case"defaultValue":r=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(f(137,t));break;default:we(e,t,l,j,a,null)}}qs(e,i,r,o,y,c,n,!1);return;case"select":he("invalid",e),l=c=i=null;for(n in a)if(a.hasOwnProperty(n)&&(r=a[n],r!=null))switch(n){case"value":i=r;break;case"defaultValue":c=r;break;case"multiple":l=r;default:we(e,t,n,r,a,null)}t=i,a=c,e.multiple=!!l,t!=null?ll(e,!!l,t,!1):a!=null&&ll(e,!!l,a,!0);return;case"textarea":he("invalid",e),i=n=l=null;for(c in a)if(a.hasOwnProperty(c)&&(r=a[c],r!=null))switch(c){case"value":l=r;break;case"defaultValue":n=r;break;case"children":i=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(f(91));break;default:we(e,t,c,r,a,null)}Ys(e,l,n,i);return;case"option":for(o in a)if(a.hasOwnProperty(o)&&(l=a[o],l!=null))switch(o){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:we(e,t,o,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<bn.length;l++)he(bn[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(y in a)if(a.hasOwnProperty(y)&&(l=a[y],l!=null))switch(y){case"children":case"dangerouslySetInnerHTML":throw Error(f(137,t));default:we(e,t,y,l,a,null)}return;default:if(ru(t)){for(j in a)a.hasOwnProperty(j)&&(l=a[j],l!==void 0&&$c(e,t,j,l,a,void 0));return}}for(r in a)a.hasOwnProperty(r)&&(l=a[r],l!=null&&we(e,t,r,l,a,null))}function qm(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,r=null,o=null,y=null,j=null;for(S in a){var _=a[S];if(a.hasOwnProperty(S)&&_!=null)switch(S){case"checked":break;case"value":break;case"defaultValue":o=_;default:l.hasOwnProperty(S)||we(e,t,S,null,l,_)}}for(var g in l){var S=l[g];if(_=a[g],l.hasOwnProperty(g)&&(S!=null||_!=null))switch(g){case"type":i=S;break;case"name":n=S;break;case"checked":y=S;break;case"defaultChecked":j=S;break;case"value":c=S;break;case"defaultValue":r=S;break;case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(f(137,t));break;default:S!==_&&we(e,t,g,S,l,_)}}cu(e,c,r,o,y,j,i,n);return;case"select":S=c=r=g=null;for(i in a)if(o=a[i],a.hasOwnProperty(i)&&o!=null)switch(i){case"value":break;case"multiple":S=o;default:l.hasOwnProperty(i)||we(e,t,i,null,l,o)}for(n in l)if(i=l[n],o=a[n],l.hasOwnProperty(n)&&(i!=null||o!=null))switch(n){case"value":g=i;break;case"defaultValue":r=i;break;case"multiple":c=i;default:i!==o&&we(e,t,n,i,l,o)}t=r,a=c,l=S,g!=null?ll(e,!!a,g,!1):!!l!=!!a&&(t!=null?ll(e,!!a,t,!0):ll(e,!!a,a?[]:"",!1));return;case"textarea":S=g=null;for(r in a)if(n=a[r],a.hasOwnProperty(r)&&n!=null&&!l.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:we(e,t,r,null,l,n)}for(c in l)if(n=l[c],i=a[c],l.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":g=n;break;case"defaultValue":S=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(f(91));break;default:n!==i&&we(e,t,c,n,l,i)}Bs(e,g,S);return;case"option":for(var V in a)if(g=a[V],a.hasOwnProperty(V)&&g!=null&&!l.hasOwnProperty(V))switch(V){case"selected":e.selected=!1;break;default:we(e,t,V,null,l,g)}for(o in l)if(g=l[o],S=a[o],l.hasOwnProperty(o)&&g!==S&&(g!=null||S!=null))switch(o){case"selected":e.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:we(e,t,o,g,l,S)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var I in a)g=a[I],a.hasOwnProperty(I)&&g!=null&&!l.hasOwnProperty(I)&&we(e,t,I,null,l,g);for(y in l)if(g=l[y],S=a[y],l.hasOwnProperty(y)&&g!==S&&(g!=null||S!=null))switch(y){case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(f(137,t));break;default:we(e,t,y,g,l,S)}return;default:if(ru(t)){for(var Re in a)g=a[Re],a.hasOwnProperty(Re)&&g!==void 0&&!l.hasOwnProperty(Re)&&$c(e,t,Re,void 0,l,g);for(j in l)g=l[j],S=a[j],!l.hasOwnProperty(j)||g===S||g===void 0&&S===void 0||$c(e,t,j,g,l,S);return}}for(var v in a)g=a[v],a.hasOwnProperty(v)&&g!=null&&!l.hasOwnProperty(v)&&we(e,t,v,null,l,g);for(_ in l)g=l[_],S=a[_],!l.hasOwnProperty(_)||g===S||g==null&&S==null||we(e,t,_,g,l,S)}function kf(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bm(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],i=n.transferSize,c=n.initiatorType,r=n.duration;if(i&&r&&kf(c)){for(c=0,r=n.responseEnd,l+=1;l<a.length;l++){var o=a[l],y=o.startTime;if(y>r)break;var j=o.transferSize,_=o.initiatorType;j&&kf(_)&&(o=o.responseEnd,c+=j*(o<r?1:(r-y)/(o-y)))}if(--l,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Wc=null,Fc=null;function Ui(e){return e.nodeType===9?e:e.ownerDocument}function Vf(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Zf(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ic(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pc=null;function Ym(){var e=window.event;return e&&e.type==="popstate"?e===Pc?!1:(Pc=e,!0):(Pc=null,!1)}var Kf=typeof setTimeout=="function"?setTimeout:void 0,Lm=typeof clearTimeout=="function"?clearTimeout:void 0,Jf=typeof Promise=="function"?Promise:void 0,Gm=typeof queueMicrotask=="function"?queueMicrotask:typeof Jf<"u"?function(e){return Jf.resolve(null).then(e).catch(Qm)}:Kf;function Qm(e){setTimeout(function(){throw e})}function Aa(e){return e==="head"}function $f(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Ul(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Nn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Nn(a);for(var i=a.firstChild;i;){var c=i.nextSibling,r=i.nodeName;i[Yl]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=c}}else a==="body"&&Nn(e.ownerDocument.body);a=n}while(a);Ul(t)}function Wf(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function es(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":es(a),iu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Xm(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Yl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Ct(e.nextSibling),e===null)break}return null}function km(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ct(e.nextSibling),e===null))return null;return e}function Ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ct(e.nextSibling),e===null))return null;return e}function ts(e){return e.data==="$?"||e.data==="$~"}function as(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Vm(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Ct(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var ls=null;function If(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ct(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ed(e,t,a){switch(t=Ui(a),e){case"html":if(e=t.documentElement,!e)throw Error(f(452));return e;case"head":if(e=t.head,!e)throw Error(f(453));return e;case"body":if(e=t.body,!e)throw Error(f(454));return e;default:throw Error(f(451))}}function Nn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);iu(e)}var wt=new Map,td=new Set;function Hi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ua=Y.d;Y.d={f:Zm,r:Km,D:Jm,C:$m,L:Wm,m:Fm,X:Pm,S:Im,M:e0};function Zm(){var e=ua.f(),t=Ai();return e||t}function Km(e){var t=el(e);t!==null&&t.tag===5&&t.type==="form"?xo(t):ua.r(e)}var Cl=typeof document>"u"?null:document;function ad(e,t,a){var l=Cl;if(l&&typeof t=="string"&&t){var n=Tt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),td.has(n)||(td.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),lt(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Jm(e){ua.D(e),ad("dns-prefetch",e,null)}function $m(e,t){ua.C(e,t),ad("preconnect",e,t)}function Wm(e,t,a){ua.L(e,t,a);var l=Cl;if(l&&e&&t){var n='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Tt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Tt(a.imageSizes)+'"]')):n+='[href="'+Tt(e)+'"]';var i=n;switch(t){case"style":i=wl(e);break;case"script":i=Rl(e)}wt.has(i)||(e=L({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),wt.set(i,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(jn(i))||t==="script"&&l.querySelector(En(i))||(t=l.createElement("link"),lt(t,"link",e),Fe(t),l.head.appendChild(t)))}}function Fm(e,t){ua.m(e,t);var a=Cl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Tt(l)+'"][href="'+Tt(e)+'"]',i=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Rl(e)}if(!wt.has(i)&&(e=L({rel:"modulepreload",href:e},t),wt.set(i,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(En(i)))return}l=a.createElement("link"),lt(l,"link",e),Fe(l),a.head.appendChild(l)}}}function Im(e,t,a){ua.S(e,t,a);var l=Cl;if(l&&e){var n=tl(l).hoistableStyles,i=wl(e);t=t||"default";var c=n.get(i);if(!c){var r={loading:0,preload:null};if(c=l.querySelector(jn(i)))r.loading=5;else{e=L({rel:"stylesheet",href:e,"data-precedence":t},a),(a=wt.get(i))&&ns(e,a);var o=c=l.createElement("link");Fe(o),lt(o,"link",e),o._p=new Promise(function(y,j){o.onload=y,o.onerror=j}),o.addEventListener("load",function(){r.loading|=1}),o.addEventListener("error",function(){r.loading|=2}),r.loading|=4,qi(c,t,l)}c={type:"stylesheet",instance:c,count:1,state:r},n.set(i,c)}}}function Pm(e,t){ua.X(e,t);var a=Cl;if(a&&e){var l=tl(a).hoistableScripts,n=Rl(e),i=l.get(n);i||(i=a.querySelector(En(n)),i||(e=L({src:e,async:!0},t),(t=wt.get(n))&&is(e,t),i=a.createElement("script"),Fe(i),lt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function e0(e,t){ua.M(e,t);var a=Cl;if(a&&e){var l=tl(a).hoistableScripts,n=Rl(e),i=l.get(n);i||(i=a.querySelector(En(n)),i||(e=L({src:e,async:!0,type:"module"},t),(t=wt.get(n))&&is(e,t),i=a.createElement("script"),Fe(i),lt(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(n,i))}}function ld(e,t,a,l){var n=(n=G.current)?Hi(n):null;if(!n)throw Error(f(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=wl(a.href),a=tl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=wl(a.href);var i=tl(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(jn(e)))&&!i._p&&(c.instance=i,c.state.loading=5),wt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},wt.set(e,a),i||t0(n,e,a,c.state))),t&&l===null)throw Error(f(528,""));return c}if(t&&l!==null)throw Error(f(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Rl(a),a=tl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(f(444,e))}}function wl(e){return'href="'+Tt(e)+'"'}function jn(e){return'link[rel="stylesheet"]['+e+"]"}function nd(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function t0(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),lt(t,"link",a),Fe(t),e.head.appendChild(t))}function Rl(e){return'[src="'+Tt(e)+'"]'}function En(e){return"script[async]"+e}function id(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Tt(a.href)+'"]');if(l)return t.instance=l,Fe(l),l;var n=L({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Fe(l),lt(l,"style",n),qi(l,a.precedence,e),t.instance=l;case"stylesheet":n=wl(a.href);var i=e.querySelector(jn(n));if(i)return t.state.loading|=4,t.instance=i,Fe(i),i;l=nd(a),(n=wt.get(n))&&ns(l,n),i=(e.ownerDocument||e).createElement("link"),Fe(i);var c=i;return c._p=new Promise(function(r,o){c.onload=r,c.onerror=o}),lt(i,"link",l),t.state.loading|=4,qi(i,a.precedence,e),t.instance=i;case"script":return i=Rl(a.src),(n=e.querySelector(En(i)))?(t.instance=n,Fe(n),n):(l=a,(n=wt.get(i))&&(l=L({},a),is(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),Fe(n),lt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(f(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,qi(l,a.precedence,e));return t.instance}function qi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,i=n,c=0;c<l.length;c++){var r=l[c];if(r.dataset.precedence===t)i=r;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Bi=null;function ud(e,t,a){if(Bi===null){var l=new Map,n=Bi=new Map;n.set(a,l)}else n=Bi,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var i=a[n];if(!(i[Yl]||i[Pe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var r=l.get(c);r?r.push(i):l.set(c,[i])}}return l}function cd(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function a0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function sd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function l0(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=wl(l.href),i=t.querySelector(jn(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Fe(i);return}i=t.ownerDocument||t,l=nd(l),(n=wt.get(n))&&ns(l,n),i=i.createElement("link"),Fe(i);var c=i;c._p=new Promise(function(r,o){c.onload=r,c.onerror=o}),lt(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Yi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var us=0;function n0(e,t){return e.stylesheets&&e.count===0&&Gi(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Gi(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&us===0&&(us=62500*Bm());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Gi(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>us?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function Yi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Gi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Li=null;function Gi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Li=new Map,t.forEach(i0,e),Li=null,Yi.call(e))}function i0(e,t){if(!(t.state.loading&4)){var a=Li.get(e);if(a)var l=a.get(null);else{a=new Map,Li.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(a.set(c.dataset.precedence,c),l=c)}l&&a.set(null,l)}n=t.instance,c=n.getAttribute("data-precedence"),i=a.get(c)||l,i===l&&a.set(null,n),a.set(c,n),this.count++,l=Yi.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Tn={$$typeof:F,Provider:null,Consumer:null,_currentValue:J,_currentValue2:J,_threadCount:0};function u0(e,t,a,l,n,i,c,r,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tu(0),this.hiddenUpdates=tu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function rd(e,t,a,l,n,i,c,r,o,y,j,_){return e=new u0(e,t,a,c,o,y,j,_,r),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=Yu(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},Xu(i),e}function od(e){return e?(e=fl,e):fl}function fd(e,t,a,l,n,i){n=od(n),l.context===null?l.context=n:l.pendingContext=n,l=va(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=xa(e,l,t),a!==null&&(dt(a,e,t),an(a,e,t))}function dd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function cs(e,t){dd(e,t),(e=e.alternate)&&dd(e,t)}function hd(e){if(e.tag===13||e.tag===31){var t=Ba(e,67108864);t!==null&&dt(t,e,67108864),cs(e,67108864)}}function md(e){if(e.tag===13||e.tag===31){var t=jt();t=au(t);var a=Ba(e,t);a!==null&&dt(a,e,t),cs(e,t)}}var Qi=!0;function c0(e,t,a,l){var n=N.T;N.T=null;var i=Y.p;try{Y.p=2,ss(e,t,a,l)}finally{Y.p=i,N.T=n}}function s0(e,t,a,l){var n=N.T;N.T=null;var i=Y.p;try{Y.p=8,ss(e,t,a,l)}finally{Y.p=i,N.T=n}}function ss(e,t,a,l){if(Qi){var n=rs(l);if(n===null)Jc(e,t,l,Xi,a),vd(e,l);else if(o0(n,e,t,a,l))l.stopPropagation();else if(vd(e,l),t&4&&-1<r0.indexOf(e)){for(;n!==null;){var i=el(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=wa(i.pendingLanes);if(c!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;c;){var o=1<<31-vt(c);r.entanglements[1]|=o,c&=~o}Qt(i),(Te&6)===0&&(Ti=mt()+500,gn(0))}}break;case 31:case 13:r=Ba(i,2),r!==null&&dt(r,i,2),Ai(),cs(i,2)}if(i=rs(l),i===null&&Jc(e,t,l,Xi,a),i===n)break;n=i}n!==null&&l.stopPropagation()}else Jc(e,t,l,null,a)}}function rs(e){return e=fu(e),os(e)}var Xi=null;function os(e){if(Xi=null,e=Pa(e),e!==null){var t=O(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=w(t),e!==null)return e;e=null}else if(a===31){if(e=k(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xi=e,null}function pd(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Jd()){case Ss:return 2;case Ns:return 8;case Cn:case $d:return 32;case js:return 268435456;default:return 32}default:return 32}}var fs=!1,za=null,Oa=null,Ma=null,_n=new Map,An=new Map,Da=[],r0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function vd(e,t){switch(e){case"focusin":case"focusout":za=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Ma=null;break;case"pointerover":case"pointerout":_n.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":An.delete(t.pointerId)}}function zn(e,t,a,l,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[n]},t!==null&&(t=el(t),t!==null&&hd(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function o0(e,t,a,l,n){switch(t){case"focusin":return za=zn(za,e,t,a,l,n),!0;case"dragenter":return Oa=zn(Oa,e,t,a,l,n),!0;case"mouseover":return Ma=zn(Ma,e,t,a,l,n),!0;case"pointerover":var i=n.pointerId;return _n.set(i,zn(_n.get(i)||null,e,t,a,l,n)),!0;case"gotpointercapture":return i=n.pointerId,An.set(i,zn(An.get(i)||null,e,t,a,l,n)),!0}return!1}function xd(e){var t=Pa(e.target);if(t!==null){var a=O(t);if(a!==null){if(t=a.tag,t===13){if(t=w(a),t!==null){e.blockedOn=t,Os(e.priority,function(){md(a)});return}}else if(t===31){if(t=k(a),t!==null){e.blockedOn=t,Os(e.priority,function(){md(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ki(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=rs(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);ou=l,a.target.dispatchEvent(l),ou=null}else return t=el(a),t!==null&&hd(t),e.blockedOn=a,!1;t.shift()}return!0}function yd(e,t,a){ki(e)&&a.delete(t)}function f0(){fs=!1,za!==null&&ki(za)&&(za=null),Oa!==null&&ki(Oa)&&(Oa=null),Ma!==null&&ki(Ma)&&(Ma=null),_n.forEach(yd),An.forEach(yd)}function Vi(e,t){e.blockedOn===t&&(e.blockedOn=null,fs||(fs=!0,h.unstable_scheduleCallback(h.unstable_NormalPriority,f0)))}var Zi=null;function gd(e){Zi!==e&&(Zi=e,h.unstable_scheduleCallback(h.unstable_NormalPriority,function(){Zi===e&&(Zi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(os(l||a)===null)continue;break}var i=el(a);i!==null&&(e.splice(t,3),t-=3,rc(i,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Ul(e){function t(o){return Vi(o,e)}za!==null&&Vi(za,e),Oa!==null&&Vi(Oa,e),Ma!==null&&Vi(Ma,e),_n.forEach(t),An.forEach(t);for(var a=0;a<Da.length;a++){var l=Da[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Da.length&&(a=Da[0],a.blockedOn===null);)xd(a),a.blockedOn===null&&Da.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],i=a[l+1],c=n[ut]||null;if(typeof i=="function")c||gd(a);else if(c){var r=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[ut]||null)r=c.formAction;else if(os(n)!==null)continue}else r=c.action;typeof r=="function"?a[l+1]=r:(a.splice(l,3),l-=3),gd(a)}}}function bd(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ds(e){this._internalRoot=e}Ki.prototype.render=ds.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(f(409));var a=t.current,l=jt();fd(a,l,e,t,null,null)},Ki.prototype.unmount=ds.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fd(e.current,2,null,e,null,null),Ai(),t[Ia]=null}};function Ki(e){this._internalRoot=e}Ki.prototype.unstable_scheduleHydration=function(e){if(e){var t=zs();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Da.length&&t!==0&&t<Da[a].priority;a++);Da.splice(a,0,e),a===0&&xd(e)}};var Sd=T.version;if(Sd!=="19.2.7")throw Error(f(527,Sd,"19.2.7"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(f(188)):(e=Object.keys(e).join(","),Error(f(268,e)));return e=b(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e};var d0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ji=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ji.isDisabled&&Ji.supportsFiber)try{Hl=Ji.inject(d0),pt=Ji}catch{}}return Dn.createRoot=function(e,t){if(!D(e))throw Error(f(299));var a=!1,l="",n=Ao,i=zo,c=Oo;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=rd(e,1,!1,null,null,a,l,null,n,i,c,bd),e[Ia]=t.current,Kc(e),new ds(t)},Dn.hydrateRoot=function(e,t,a){if(!D(e))throw Error(f(299));var l=!1,n="",i=Ao,c=zo,r=Oo,o=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(c=a.onCaughtError),a.onRecoverableError!==void 0&&(r=a.onRecoverableError),a.formState!==void 0&&(o=a.formState)),t=rd(e,1,!0,t,a??null,l,n,o,i,c,r,bd),t.context=od(null),a=t.current,l=jt(),l=au(l),n=va(l),n.callback=null,xa(a,n,l),a=l,t.current.lanes=a,Bl(t,a),Qt(t),e[Ia]=t.current,Kc(e),new Ki(t)},Dn.version="19.2.7",Dn}var Dd;function j0(){if(Dd)return ps.exports;Dd=1;function h(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h)}catch(T){console.error(T)}}return h(),ps.exports=N0(),ps.exports}var E0=j0();/**
|
|
50
|
+
* @license lucide-react v0.546.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const T0=h=>h.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_0=h=>h.replace(/^([A-Z])|[\s-_]+(\w)/g,(T,C,f)=>f?f.toUpperCase():C.toLowerCase()),Cd=h=>{const T=_0(h);return T.charAt(0).toUpperCase()+T.slice(1)},qd=(...h)=>h.filter((T,C,f)=>!!T&&T.trim()!==""&&f.indexOf(T)===C).join(" ").trim(),A0=h=>{for(const T in h)if(T.startsWith("aria-")||T==="role"||T==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.546.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var z0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
60
|
+
* @license lucide-react v0.546.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const O0=z.forwardRef(({color:h="currentColor",size:T=24,strokeWidth:C=2,absoluteStrokeWidth:f,className:D="",children:O,iconNode:w,...k},H)=>z.createElement("svg",{ref:H,...z0,width:T,height:T,stroke:h,strokeWidth:f?Number(C)*24/Number(T):C,className:qd("lucide",D),...!O&&!A0(k)&&{"aria-hidden":"true"},...k},[...w.map(([b,B])=>z.createElement(b,B)),...Array.isArray(O)?O:[O]]));/**
|
|
65
|
+
* @license lucide-react v0.546.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const be=(h,T)=>{const C=z.forwardRef(({className:f,...D},O)=>z.createElement(O0,{ref:O,iconNode:T,className:qd(`lucide-${T0(Cd(h))}`,`lucide-${h}`,f),...D}));return C.displayName=Cd(h),C};/**
|
|
70
|
+
* @license lucide-react v0.546.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const M0=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],D0=be("archive",M0);/**
|
|
75
|
+
* @license lucide-react v0.546.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const C0=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],w0=be("arrow-right",C0);/**
|
|
80
|
+
* @license lucide-react v0.546.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const R0=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],U0=be("book-open",R0);/**
|
|
85
|
+
* @license lucide-react v0.546.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const H0=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],wd=be("bot",H0);/**
|
|
90
|
+
* @license lucide-react v0.546.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const q0=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],B0=be("calendar",q0);/**
|
|
95
|
+
* @license lucide-react v0.546.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Y0=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Fi=be("check",Y0);/**
|
|
100
|
+
* @license lucide-react v0.546.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const L0=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Bd=be("chevron-down",L0);/**
|
|
105
|
+
* @license lucide-react v0.546.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const G0=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Q0=be("chevron-up",G0);/**
|
|
110
|
+
* @license lucide-react v0.546.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const X0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],k0=be("circle-alert",X0);/**
|
|
115
|
+
* @license lucide-react v0.546.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const V0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Z0=be("circle-question-mark",V0);/**
|
|
120
|
+
* @license lucide-react v0.546.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const K0=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],J0=be("external-link",K0);/**
|
|
125
|
+
* @license lucide-react v0.546.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const $0=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Yd=be("file-text",$0);/**
|
|
130
|
+
* @license lucide-react v0.546.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const W0=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],F0=be("folder-open",W0);/**
|
|
135
|
+
* @license lucide-react v0.546.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const I0=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],bs=be("key",I0);/**
|
|
140
|
+
* @license lucide-react v0.546.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const P0=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],ep=be("layout-grid",P0);/**
|
|
145
|
+
* @license lucide-react v0.546.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const tp=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],ap=be("link-2",tp);/**
|
|
150
|
+
* @license lucide-react v0.546.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const lp=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],np=be("map",lp);/**
|
|
155
|
+
* @license lucide-react v0.546.0 - ISC
|
|
156
|
+
*
|
|
157
|
+
* This source code is licensed under the ISC license.
|
|
158
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
159
|
+
*/const ip=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],up=be("menu",ip);/**
|
|
160
|
+
* @license lucide-react v0.546.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const cp=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ld=be("message-square",cp);/**
|
|
165
|
+
* @license lucide-react v0.546.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/const sp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],rp=be("plus",sp);/**
|
|
170
|
+
* @license lucide-react v0.546.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const op=[["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"}]],Ii=be("refresh-cw",op);/**
|
|
175
|
+
* @license lucide-react v0.546.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const fp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Rd=be("search",fp);/**
|
|
180
|
+
* @license lucide-react v0.546.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const dp=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],hp=be("send",dp);/**
|
|
185
|
+
* @license lucide-react v0.546.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const mp=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pp=be("settings",mp);/**
|
|
190
|
+
* @license lucide-react v0.546.0 - ISC
|
|
191
|
+
*
|
|
192
|
+
* This source code is licensed under the ISC license.
|
|
193
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
194
|
+
*/const vp=[["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"}]],xp=be("shield-check",vp);/**
|
|
195
|
+
* @license lucide-react v0.546.0 - ISC
|
|
196
|
+
*
|
|
197
|
+
* This source code is licensed under the ISC license.
|
|
198
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
199
|
+
*/const yp=[["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"}]],Gd=be("shield",yp);/**
|
|
200
|
+
* @license lucide-react v0.546.0 - ISC
|
|
201
|
+
*
|
|
202
|
+
* This source code is licensed under the ISC license.
|
|
203
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
204
|
+
*/const gp=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],bp=be("sparkles",gp);/**
|
|
205
|
+
* @license lucide-react v0.546.0 - ISC
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the ISC license.
|
|
208
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/const Sp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Np=be("target",Sp);/**
|
|
210
|
+
* @license lucide-react v0.546.0 - ISC
|
|
211
|
+
*
|
|
212
|
+
* This source code is licensed under the ISC license.
|
|
213
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
214
|
+
*/const jp=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Qd=be("trash-2",jp);/**
|
|
215
|
+
* @license lucide-react v0.546.0 - ISC
|
|
216
|
+
*
|
|
217
|
+
* This source code is licensed under the ISC license.
|
|
218
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
219
|
+
*/const Ep=[["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"}]],Tp=be("triangle-alert",Ep);/**
|
|
220
|
+
* @license lucide-react v0.546.0 - ISC
|
|
221
|
+
*
|
|
222
|
+
* This source code is licensed under the ISC license.
|
|
223
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
224
|
+
*/const _p=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ap=be("user",_p);/**
|
|
225
|
+
* @license lucide-react v0.546.0 - ISC
|
|
226
|
+
*
|
|
227
|
+
* This source code is licensed under the ISC license.
|
|
228
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
+
*/const zp=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Op=be("users",zp);/**
|
|
230
|
+
* @license lucide-react v0.546.0 - ISC
|
|
231
|
+
*
|
|
232
|
+
* This source code is licensed under the ISC license.
|
|
233
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
234
|
+
*/const Mp=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Xd=be("x",Mp);function Dp({currentTab:h,setCurrentTab:T,deductionProbability:C,onOpenSettings:f}){const[D,O]=z.useState(!1),[w,k]=z.useState(""),H="Autonomous OSINT Investigation";z.useEffect(()=>{let B=0;k("");const L=setInterval(()=>{B<H.length?(k(Q=>Q+H.charAt(B)),B++):clearInterval(L)},40);return()=>clearInterval(L)},[]);const b=[{id:"chat",label:"Investigate",icon:Ld},{id:"board",label:"Case Board",icon:ep},{id:"map",label:"Evidence Map",icon:np},{id:"osint",label:"OSINT Decoder",icon:U0},{id:"personnel",label:"Personnel",icon:Op}];return u.jsxs("aside",{id:"watson-sidebar",className:"fixed left-0 top-0 h-screen w-64 bg-surface-container-low border-r border-outline-variant flex flex-col p-4 z-40 pt-24 hidden lg:flex",children:[u.jsxs("div",{className:"mb-6 px-2",children:[u.jsx("div",{className:"font-label-caps text-primary text-[11px] mb-1 tracking-wider uppercase",children:"Watson v1"}),u.jsxs("div",{className:"font-body-sm text-on-surface-variant italic min-h-[40px] text-xs leading-relaxed",children:[w,u.jsx("span",{className:"animate-pulse ml-0.5 font-bold text-primary",children:"|"})]})]}),u.jsxs("nav",{className:"flex-1 space-y-1.5 overflow-y-auto pr-1",children:[u.jsx("div",{className:"text-[10px] font-label-caps text-outline/50 px-3 mb-2 tracking-widest",children:"NAVIGATION"}),b.map(B=>{const L=B.icon,Q=h===B.id;return u.jsxs("button",{onClick:()=>T(B.id),className:`w-full flex items-center gap-3 p-2.5 rounded transition-all font-label-caps text-xs text-left cursor-pointer border ${Q?"bg-surface-container-high border-primary/40 text-primary":"bg-transparent border-transparent text-on-surface-variant hover:bg-surface-container hover:text-on-surface"}`,children:[u.jsx(L,{size:16,className:Q?"text-primary":"text-on-surface-variant/70"}),B.label]},B.id)}),u.jsx("div",{className:"pt-4 mt-4 border-t border-outline-variant/40",children:u.jsxs("button",{onClick:()=>f?f():O(!D),className:"w-full flex items-center justify-between p-2.5 text-primary font-label-caps text-xs cursor-pointer hover:bg-surface-container rounded",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx(bs,{size:16}),u.jsx("span",{children:"API Vault"})]}),u.jsx(Bd,{size:14,className:`transition-transform duration-300 ${D?"rotate-180":""}`})]})})]}),u.jsxs("div",{className:"mt-auto pt-4 space-y-3 border-t border-outline-variant/40",children:[u.jsxs("div",{className:"px-1 text-[10px] font-technical text-on-surface-variant/50 flex justify-between",children:[u.jsxs("span",{children:["VERIFIABILITY: ",C,"%"]}),u.jsx("span",{className:"animate-pulse text-emerald-500",children:"β ACTIVE"})]}),u.jsxs("div",{className:"flex justify-between px-2 pt-1",children:[u.jsx("button",{title:"Archives",onClick:()=>T("osint"),className:"text-on-surface-variant hover:text-primary transition-colors cursor-pointer",children:u.jsx(F0,{size:18})}),u.jsx("button",{title:"Help",onClick:()=>alert(`Watson OSINT:
|
|
235
|
+
|
|
236
|
+
1. Enter a target in the Investigate tab
|
|
237
|
+
2. Watson runs 7-phase autonomous investigation
|
|
238
|
+
3. Findings stream live into the chat
|
|
239
|
+
4. Switch to Case Board to see evidence cards
|
|
240
|
+
5. Connect clues with red twine
|
|
241
|
+
6. API keys: Settings β API Vault`),className:"text-on-surface-variant hover:text-primary transition-colors cursor-pointer",children:u.jsx(Z0,{size:18})})]})]})]})}function Cp({clues:h,onAddClue:T,onDeleteClue:C,onConnectClues:f,selectedForTwin:D=[],onToggleTwin:O,onTwinInvestigate:w,twinLoading:k=!1,twinResult:H=null}){var s,m;const[b,B]=z.useState("all"),[L,Q]=z.useState(!1),[Z,R]=z.useState(null),[P,oe]=z.useState(!1),[ie,te]=z.useState(""),[F,X]=z.useState(""),[M,me]=z.useState("physical"),[U,ce]=z.useState(""),[Ee,We]=z.useState(""),[$,se]=z.useState(""),[Me,Le]=z.useState("ip"),[De,N]=z.useState(""),Y=h.filter(p=>b==="all"||p.type===b),J=async p=>{R(p.id),oe(!0),te("");try{const A=localStorage.getItem("WATSON_DEEPSEEK_KEY")||"",G=await(await fetch("/api/osint/scan",{method:"POST",headers:{"Content-Type":"application/json",...A?{"x-deepseek-key":A}:{}},body:JSON.stringify({queryType:p.type==="location"?"domain":"username",queryValue:p.title})})).json();G.error?te(`WATSON DIAGNOSTICS FAILURE:
|
|
242
|
+
|
|
243
|
+
${G.error}
|
|
244
|
+
|
|
245
|
+
Ensure DeepSeek API key configured in Settings.`):te(`WATSON FORENSIC DEEP-DIVE REPORT
|
|
246
|
+
=================================
|
|
247
|
+
TARGET: ${p.title} (${p.exhibitCode||"EX-N/A"})
|
|
248
|
+
ASSOCIATED FOOTPRINT: ${G.associatedEntity||"Unknown Threat"}
|
|
249
|
+
THREAT SCORE: ${G.threatScore} / 100
|
|
250
|
+
|
|
251
|
+
WATSON ANALYSIS:
|
|
252
|
+
${G.rawOutput}
|
|
253
|
+
|
|
254
|
+
INTELLIGENCE DEDUCTIONS:
|
|
255
|
+
`+G.deductions.map((ee,Se)=>` [${Se+1}] ${ee}`).join(`
|
|
256
|
+
`))}catch(A){te(`CONNECTION ABORTED:
|
|
257
|
+
Unable to synchronize telegraph trace to Watson mainframes. ${A.message}`)}finally{oe(!1)}},fe=p=>{O&&O(p)},pe=p=>{if(p.preventDefault(),!F||!U)return;const A={};De&&(A[Me]=De);const q={id:"clue_"+Date.now(),title:F,type:M,description:U,exhibitCode:Ee||"EX-"+Math.floor(100+Math.random()*900),quote:$||void 0,connections:[],metadata:A};T(q),Q(!1),X(""),ce(""),We(""),se(""),N("")};return u.jsxs("div",{className:"p-4 lg:p-6 space-y-6 h-full overflow-y-auto pb-32",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-outline-variant/40 pb-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"font-headline-md text-primary text-2xl lg:text-3xl leading-none",children:"Evidence Pinboard"}),u.jsx("p",{className:"font-body-sm text-xs text-on-surface-variant italic mt-1",children:'"Pin clues, trace threads, and draw connections."'})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[u.jsxs("button",{onClick:()=>O&&O(""),className:`px-3 py-1.5 text-xs font-label-caps rounded border transition-all flex items-center gap-1.5 cursor-pointer ${D.length>0?"bg-secondary-container border-red-500 text-on-secondary-container animate-pulse":"bg-surface-container border-outline-variant text-primary hover:bg-surface-container-high"}`,children:[u.jsx(ap,{size:13}),D.length===0?"Twin connections":D.length===1?"Select 2nd finding...":"2 selected β Investigate below"]}),u.jsxs("button",{onClick:()=>Q(!0),className:"px-3 py-1.5 text-xs font-label-caps bg-primary text-background-dark font-bold hover:brightness-110 rounded flex items-center gap-1.5 cursor-pointer transition-all active:scale-95 shadow-md",children:[u.jsx(rp,{size:14}),u.jsx("span",{children:"Add Clue"})]})]})]}),u.jsx("div",{className:"flex flex-wrap items-center gap-1.5 border-b border-outline-variant/20 pb-3",children:["all","physical","digital","witness","location","osint"].map(p=>u.jsx("button",{onClick:()=>B(p),className:`px-3 py-1 rounded-full text-[10px] font-label-caps uppercase tracking-wider transition-all cursor-pointer ${b===p?"bg-primary text-background-dark font-bold":"bg-surface-container/40 text-on-surface-variant hover:bg-surface-container hover:text-on-surface"}`,children:p},p))}),D.length>0&&u.jsxs("div",{className:"bg-secondary-container/30 border border-red-950 p-3 rounded text-xs font-body-sm text-on-secondary-container flex items-center justify-between",children:[u.jsxs("span",{children:["β οΈ ",u.jsx("span",{className:"font-bold",children:"Twin Mode:"})," ",D.length===1?`Selected: "${(s=h.find(p=>p.id===D[0]))==null?void 0:s.title}". Click a second finding.`:D.length===2?"Two findings selected. Ready to investigate the connection.":""]}),u.jsxs("div",{className:"flex gap-2",children:[D.length===2&&u.jsx("button",{onClick:w,disabled:k,className:"px-3 py-1 bg-primary text-background-dark font-bold rounded text-[10px] uppercase hover:brightness-110 disabled:opacity-50 cursor-pointer",children:k?"Investigating...":"Deep Investigate"}),u.jsx("button",{onClick:()=>D.forEach(p=>O&&O(p)),className:"underline font-bold text-[10px] uppercase hover:text-white cursor-pointer",children:"Clear"})]})]}),H&&u.jsxs("div",{className:"bg-surface-container border border-primary/30 p-3 rounded text-xs",children:[u.jsx("span",{className:"font-bold text-primary",children:"Twin investigation complete"})," ",u.jsxs("span",{className:"text-on-surface-variant",children:[((m=H.findings)==null?void 0:m.length)||0," new findings added to the board."]})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6",children:Y.length===0?u.jsxs("div",{className:"col-span-full py-12 text-center bg-surface-container-low/30 border border-dashed border-outline-variant rounded p-6",children:[u.jsx(Yd,{size:32,className:"mx-auto text-on-surface-variant/35 mb-2"}),u.jsx("p",{className:"font-headline-md text-lg text-primary",children:"No clues in ledger category."}),u.jsx("p",{className:"font-body-sm text-xs text-on-surface-variant italic mt-1",children:"Pin new coordinates or execute digital scans to gather evidence."})]}):Y.map(p=>{const A=D.includes(p.id);return u.jsxs("div",{onClick:()=>fe(p.id),className:`tactile-paper p-5 flex flex-col justify-between transition-all duration-300 relative group cursor-pointer shadow-lg ${A?"ring-2 ring-red-500/90 border-red-500":"hover:-translate-y-1 hover:shadow-xl hover:border-primary/50"}`,children:[u.jsx("div",{className:"absolute top-1 left-1/2 transform -translate-x-1/2 z-10",children:u.jsx("div",{className:"w-3 h-3 bg-red-800 rounded-full shadow border border-red-950 relative flex items-center justify-center",children:u.jsx("div",{className:"w-0.5 h-0.5 bg-white rounded-full opacity-60 absolute top-0.5 left-0.5"})})}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"flex justify-between items-start border-b border-outline-variant/30 pb-2",children:[u.jsxs("div",{children:[u.jsx("span",{className:"font-technical text-[9px] text-primary uppercase tracking-widest block mb-0.5",children:p.exhibitCode||"LEDGER TRACE"}),u.jsx("h3",{className:"font-headline-md text-base lg:text-lg text-on-surface leading-tight font-bold group-hover:text-primary transition-colors",children:p.title})]}),u.jsx("span",{className:"font-technical text-[9px] px-1.5 py-0.5 rounded uppercase border border-outline-variant bg-surface-container-low text-on-surface-variant",children:p.type})]}),u.jsx("p",{className:"font-body-sm text-xs text-on-surface-variant leading-relaxed line-clamp-4",children:p.description}),p.quote&&u.jsxs("div",{className:"font-body-sm text-xs italic bg-surface-dark/40 border-l border-primary/30 pl-2.5 py-1 text-on-surface-variant/80",children:['"',p.quote,'"']}),p.connections.length>0&&u.jsxs("div",{className:"pt-2 border-t border-outline-variant/20 flex flex-wrap gap-1 items-center",children:[u.jsx("span",{className:"font-technical text-[8px] text-on-surface-variant/40 mr-1 uppercase",children:"CONNECTED:"}),p.connections.map(q=>{const G=h.find(ee=>ee.id===q);return G?u.jsx("span",{className:"bg-red-950/40 border border-red-900 text-[8px] font-technical text-on-secondary-container px-1 rounded hover:brightness-125",title:G.title,children:G.exhibitCode||"EX"},q):null})]})]}),u.jsxs("div",{className:"pt-4 mt-4 border-t border-outline-variant/30 flex items-center justify-between",children:[u.jsxs("button",{onClick:q=>{q.stopPropagation(),J(p)},className:"text-[10px] font-label-caps bg-primary/10 border border-primary/20 text-primary py-1 px-2.5 rounded hover:bg-primary/20 active:scale-95 transition-all flex items-center gap-1 cursor-pointer",children:[u.jsx(bp,{size:11,className:"text-primary animate-pulse"}),u.jsx("span",{children:"Watson Deep-Dive"})]}),u.jsx("button",{onClick:q=>{q.stopPropagation(),C(p.id)},title:"Incinerate Clue",className:"text-on-surface-variant/60 hover:text-red-500 p-1 rounded hover:bg-red-500/10 cursor-pointer transition-colors",children:u.jsx(Qd,{size:13})})]})]},p.id)})}),Z&&u.jsx("div",{className:"fixed inset-0 bg-black/85 z-50 flex items-center justify-center p-4",children:u.jsxs("div",{className:"bg-surface-container border border-outline-variant max-w-2xl w-full p-6 rounded shadow-2xl space-y-4 flex flex-col max-h-[85vh]",children:[u.jsxs("div",{className:"border-b border-outline-variant pb-3 flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"font-headline-md text-primary text-xl",children:"Watson Detective Deep-Dive"}),u.jsx("p",{className:"font-technical text-[10px] text-on-surface-variant uppercase mt-1",children:"SECURE AI INFERENCE TELEGRAPHY"})]}),u.jsx("button",{onClick:()=>R(null),className:"text-on-surface-variant hover:text-white font-label-caps text-xs px-2.5 py-1 bg-surface-container-high border border-outline-variant rounded cursor-pointer",children:"Close"})]}),u.jsx("div",{className:"flex-1 overflow-y-auto bg-surface-dark border border-outline-variant rounded p-4 font-mono text-xs leading-relaxed text-emerald-400 select-text",children:P?u.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center space-y-3",children:[u.jsx(Ii,{className:"animate-spin text-primary",size:24}),u.jsx("span",{className:"font-technical text-[10px] text-primary uppercase tracking-widest",children:"Watson is decrypting telegraph packet archives..."})]}):u.jsx("pre",{className:"whitespace-pre-wrap font-mono text-[11px] leading-relaxed",children:ie})}),u.jsx("div",{className:"border-t border-outline-variant pt-3 flex justify-end",children:u.jsx("button",{onClick:()=>R(null),className:"px-4 py-2 text-xs font-label-caps bg-primary text-background-dark font-bold hover:brightness-110 rounded cursor-pointer transition-all",children:"File Report in Ledger"})})]})}),L&&u.jsx("div",{className:"fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4",children:u.jsxs("form",{onSubmit:pe,className:"bg-surface-container border border-outline-variant max-w-md w-full p-6 rounded shadow-2xl space-y-4 font-body-md",children:[u.jsxs("div",{className:"border-b border-outline-variant pb-3",children:[u.jsx("h3",{className:"font-headline-md text-primary text-xl",children:"Secure New Evidence"}),u.jsx("p",{className:"font-technical text-[10px] text-on-surface-variant uppercase mt-1",children:"Pin hand-logged intelligence to the corkboard"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Clue Title"}),u.jsx("input",{type:"text",required:!0,placeholder:"e.g. Grimpen Mire Boot",value:F,onChange:p=>X(p.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-primary focus:ring-1 focus:ring-primary outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Evidence Type"}),u.jsxs("select",{value:M,onChange:p=>me(p.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-label-caps text-primary focus:ring-1 focus:ring-primary outline-none cursor-pointer",children:[u.jsx("option",{value:"physical",children:"Physical"}),u.jsx("option",{value:"digital",children:"Digital"}),u.jsx("option",{value:"witness",children:"Witness"}),u.jsx("option",{value:"location",children:"Location"})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Evidence Description"}),u.jsx("textarea",{required:!0,rows:3,placeholder:"Summarize the core facts, threat significance, and suspect behaviors...",value:U,onChange:p=>ce(p.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-on-surface focus:ring-1 focus:ring-primary outline-none resize-none"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Exhibit Ref"}),u.jsx("input",{type:"text",placeholder:"EXHIBIT Z-9",value:Ee,onChange:p=>We(p.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-technical text-primary focus:ring-1 focus:ring-primary outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Authentic Quote"}),u.jsx("input",{type:"text",placeholder:"He wants Sir Henry's scent...",value:$,onChange:p=>se(p.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-on-surface-variant focus:ring-1 focus:ring-primary outline-none"})]})]}),u.jsxs("div",{className:"p-3 bg-surface-container-low border border-outline-variant/60 rounded",children:[u.jsx("div",{className:"text-[9px] font-label-caps text-primary mb-2 uppercase tracking-wider",children:"OSINT Metadata Footprint (Optional)"}),u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[u.jsxs("select",{value:Me,onChange:p=>Le(p.target.value),className:"bg-surface-dark border border-outline-variant rounded p-1.5 text-[10px] font-technical text-on-surface-variant outline-none",children:[u.jsx("option",{value:"ip",children:"IP"}),u.jsx("option",{value:"domain",children:"Domain"}),u.jsx("option",{value:"email",children:"Email"}),u.jsx("option",{value:"source",children:"Source"})]}),u.jsx("input",{type:"text",placeholder:"e.g. 192.168.1.1",value:De,onChange:p=>N(p.target.value),className:"col-span-2 bg-surface-dark border border-outline-variant rounded p-1.5 text-xs font-technical text-primary focus:ring-1 focus:ring-primary outline-none"})]})]})]}),u.jsxs("div",{className:"flex justify-end gap-3 pt-3 border-t border-outline-variant",children:[u.jsx("button",{type:"button",onClick:()=>Q(!1),className:"px-4 py-2 text-xs font-label-caps border border-outline-variant text-on-surface-variant hover:text-on-surface rounded cursor-pointer",children:"Cancel"}),u.jsx("button",{type:"submit",className:"px-4 py-2 text-xs font-label-caps bg-primary text-background-dark font-bold hover:brightness-110 rounded cursor-pointer",children:"Pin Clue"})]})]})})]})}const $i={person:{fill:"#D97706",glow:"rgba(217,119,6,0.3)",ring:"rgba(217,119,6,0.5)"},domain:{fill:"#60A5FA",glow:"rgba(96,165,250,0.3)",ring:"rgba(96,165,250,0.5)"},ip_address:{fill:"#34D399",glow:"rgba(52,211,153,0.3)",ring:"rgba(52,211,153,0.5)"},organization:{fill:"#A78BFA",glow:"rgba(167,139,250,0.3)",ring:"rgba(167,139,250,0.5)"},email:{fill:"#F87171",glow:"rgba(248,113,113,0.3)",ring:"rgba(248,113,113,0.5)"},location:{fill:"#FBBF24",glow:"rgba(251,191,36,0.3)",ring:"rgba(251,191,36,0.5)"},website:{fill:"#22D3EE",glow:"rgba(34,211,238,0.3)",ring:"rgba(34,211,238,0.5)"},document:{fill:"#9CA3AF",glow:"rgba(156,163,175,0.3)",ring:"rgba(156,163,175,0.5)"},unknown:{fill:"#6B7280",glow:"rgba(107,114,128,0.3)",ring:"rgba(107,114,128,0.5)"}},wp={person:18,domain:14,ip_address:11,organization:15,email:11,location:13,website:12,document:10,unknown:11},Rp={person:"π€",domain:"π",ip_address:"π’",organization:"π’",email:"β",location:"π",website:"π₯",document:"π",unknown:"β"};function Up(h,T,C,f){var L,Q;const D={},O=h.find(Z=>Z.source==="primary_target")||h.reduce((Z,R)=>Z.confidence>R.confidence?Z:R,h[0]),w={};for(const Z of T)(w[L=Z.source_id]??(w[L]=[])).push(Z.target_id),(w[Q=Z.target_id]??(w[Q]=[])).push(Z.source_id);const k={[O.id]:0},H=[O.id],b=new Set([O.id]);for(;H.length>0;){const Z=H.shift();for(const R of w[Z]||[])b.has(R)||(b.add(R),k[R]=(k[Z]||0)+1,H.push(R))}const B={};for(const Z of h){const R=k[Z.id]??99;(B[R]??(B[R]=[])).push(Z.id)}Math.max(...Object.keys(B).map(Number),1);for(const[Z,R]of Object.entries(B)){const P=Number(Z),oe=P===0?0:12+P*16;R.forEach((ie,te)=>{if(P===0)D[ie]={x:C,y:f};else{const F=2*Math.PI*te/R.length-Math.PI/2;D[ie]={x:C+oe*Math.cos(F),y:f+oe*Math.sin(F)}}})}for(const Z of h)D[Z.id]||(D[Z.id]={x:C-30+Math.random()*60,y:f-30+Math.random()*60});return D}function kd({entities:h,relations:T,compact:C=!1,onEntityClick:f,onEntityDoubleClick:D}){var fe,pe;const O=z.useRef(null),w=z.useRef(null),[k,H]=z.useState({x:0,y:0,w:100,h:100}),[b,B]=z.useState(null),[L,Q]=z.useState(null),[Z,R]=z.useState(!1),[P,oe]=z.useState({x:0,y:0}),[ie,te]=z.useState({x:0,y:0}),[F,X]=z.useState(null),[M,me]=z.useState({}),[U,ce]=z.useState({});z.useEffect(()=>{if(h.length===0)return;const p=Up(h,T,50,48);me(p),ce({}),B(null),H({x:0,y:0,w:100,h:100})},[h,T]);const Ee=z.useCallback((s,m)=>{if(!O.current)return{x:0,y:0};const p=O.current.getBoundingClientRect(),A=(s-p.left)/p.width*k.w+k.x,q=(m-p.top)/p.height*k.h+k.y;return{x:A,y:q}},[k]),We=z.useCallback(s=>{s.preventDefault();const m=s.deltaY>0?1.15:.87,{x:p,y:A}=Ee(s.clientX,s.clientY);H(q=>{const G=q.w*m,ee=q.h*m,Se=p-(p-q.x)*(G/q.w),_e=A-(A-q.y)*(ee/q.h);return{x:Math.max(-20,Math.min(120,Se)),y:Math.max(-20,Math.min(120,_e)),w:Math.max(20,Math.min(400,G)),h:Math.max(20,Math.min(400,ee))}})},[Ee]),$=z.useCallback(s=>{(s.target===O.current||s.target.classList.contains("bg-layer"))&&(R(!0),oe({x:s.clientX,y:s.clientY}))},[]),se=z.useCallback(s=>{var m,p;if(Z){const A=(P.x-s.clientX)/(((m=O.current)==null?void 0:m.clientWidth)||1)*k.w,q=(P.y-s.clientY)/(((p=O.current)==null?void 0:p.clientHeight)||1)*k.h;H(G=>({...G,x:G.x+A,y:G.y+q})),oe({x:s.clientX,y:s.clientY});return}if(L&&O.current){const{x:A,y:q}=Ee(s.clientX,s.clientY);ce(G=>({...G,[L]:{x:A-ie.x,y:q-ie.y}}))}},[Z,L,P,ie,Ee,k]),Me=z.useCallback(()=>{R(!1),Q(null)},[]),Le=z.useCallback((s,m)=>{s.stopPropagation();const p=De(m);p&&(Q(m),te({x:p.x,y:p.y}))},[]),De=s=>{const m=M[s];if(!m)return null;const p=U[s]||{x:0,y:0};return{x:m.x+p.x,y:m.y+p.y}},N=s=>{const m=new Set;for(const p of T)p.source_id===s&&m.add(p.target_id),p.target_id===s&&m.add(p.source_id);return m},Y=C?280:420,J=((fe=h.find(s=>s.source==="primary_target"))==null?void 0:fe.id)||((pe=h[0])==null?void 0:pe.id);return h.length===0?null:u.jsxs("div",{ref:w,className:"relative bg-surface-container-low border border-outline-variant/40 rounded overflow-hidden select-none",style:{height:Y},children:[u.jsxs("svg",{ref:O,className:"absolute inset-0 w-full h-full cursor-grab active:cursor-grabbing",viewBox:`${k.x} ${k.y} ${k.w} ${k.h}`,onWheel:We,onMouseDown:$,onMouseMove:se,onMouseUp:Me,onMouseLeave:Me,children:[u.jsx("rect",{className:"bg-layer",x:k.x-50,y:k.y-50,width:k.w+100,height:k.h+100,fill:"transparent"}),T.map((s,m)=>{const p=De(s.source_id),A=De(s.target_id);if(!p||!A)return null;const q=b===s.source_id||b===s.target_id||F===s.source_id||F===s.target_id;return u.jsx("line",{x1:p.x,y1:p.y,x2:A.x,y2:A.y,stroke:q?"rgba(239,68,68,0.4)":"rgba(156,163,175,0.2)",strokeWidth:q?.5:.25},`rel-${m}`)}),h.map(s=>{var _e;const m=De(s.id);if(!m)return null;const p=$i[s.type]||$i.unknown,A=(wp[s.type]||11)*(C?.85:1),q=b===s.id,G=F===s.id,ee=s.id===J,Se=b?N(b).has(s.id):!1;return u.jsxs("g",{className:"cursor-pointer",onMouseDown:ht=>Le(ht,s.id),onClick:ht=>{ht.stopPropagation(),B(s.id),f==null||f(s)},onDoubleClick:ht=>{ht.stopPropagation(),D==null||D(s)},onMouseEnter:()=>X(s.id),onMouseLeave:()=>X(null),children:[ee&&u.jsx("circle",{cx:m.x,cy:m.y,r:A+4,fill:"none",stroke:p.glow,strokeWidth:.6,opacity:.4,className:"animate-pulse"}),(q||G)&&u.jsx("circle",{cx:m.x,cy:m.y,r:A+2.5,fill:"none",stroke:q?"#EF4444":"rgba(255,255,255,0.3)",strokeWidth:.5,opacity:.8}),Se&&!q&&u.jsx("circle",{cx:m.x,cy:m.y,r:A+1.5,fill:"none",stroke:"rgba(239,68,68,0.3)",strokeWidth:.3}),u.jsx("circle",{cx:m.x,cy:m.y,r:A,fill:p.fill,opacity:q?1:G?.95:.8,className:"transition-opacity duration-200"}),u.jsx("text",{x:m.x,y:m.y+(C?0:.3),textAnchor:"middle",dominantBaseline:"middle",fill:"#fff",fontSize:A*(C?.7:.55),className:"pointer-events-none",style:{fontFamily:"system-ui"},children:Rp[s.type]||"β"}),u.jsx("text",{x:m.x,y:m.y+A+(C?2.2:3),textAnchor:"middle",fill:"rgba(255,255,255,0.6)",fontSize:C?1.8:2.2,className:"pointer-events-none font-technical",children:((_e=s.label)==null?void 0:_e.length)>(C?12:18)?s.label.slice(0,C?11:17)+"β¦":s.label})]},s.id)})]}),u.jsxs("div",{className:"absolute bottom-2 right-2 flex gap-0.5 z-10",children:[u.jsx("button",{onClick:()=>H(s=>({...s,w:s.w*.8,h:s.h*.8})),className:"w-6 h-6 bg-surface-container-highest/80 border border-outline-variant/60 rounded-l text-on-surface-variant text-xs hover:text-primary flex items-center justify-center",children:"+"}),u.jsx("button",{onClick:()=>H(s=>({...s,w:s.w*1.25,h:s.h*1.25})),className:"w-6 h-6 bg-surface-container-highest/80 border border-outline-variant/60 rounded-r text-on-surface-variant text-xs hover:text-primary flex items-center justify-center",children:"β"}),u.jsx("button",{onClick:()=>{H({x:0,y:0,w:100,h:100}),ce({})},className:"w-7 h-6 bg-surface-container-highest/80 border border-outline-variant/60 rounded text-on-surface-variant text-[9px] hover:text-primary flex items-center justify-center ml-1",title:"Reset view",children:"βΊ"})]}),b&&(()=>{const s=h.find(p=>p.id===b);if(!s)return null;const m=$i[s.type]||$i.unknown;return u.jsxs("div",{className:"absolute bottom-10 left-2 right-16 bg-surface-container-highest/95 backdrop-blur border border-outline-variant/60 rounded p-2.5 z-10 max-w-[220px]",children:[u.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[u.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:m.fill}}),u.jsx("span",{className:"font-technical text-[9px] text-primary uppercase tracking-wider",children:s.type}),u.jsx("button",{onClick:()=>B(null),className:"ml-auto text-on-surface-variant/50 hover:text-on-surface text-[10px]",children:"Γ"})]}),u.jsx("p",{className:"font-body-sm text-[11px] text-on-surface font-medium leading-tight",children:s.label||s.value}),u.jsxs("div",{className:"mt-1 space-y-0.5 font-technical text-[8px] text-on-surface-variant/70",children:[u.jsxs("div",{children:["Source: ",s.source]}),u.jsxs("div",{children:["Confidence: ",(s.confidence*100).toFixed(0),"%"]})]})]})})()]})}function Hp({clues:h,suspects:T,onAddClue:C,onDeleteClue:f,deductionProbability:D,graphData:O}){const[w,k]=z.useState("clue_jack_stapleton"),[H,b]=z.useState(!1),[B,L]=z.useState(null),[Q,Z]=z.useState(""),[R,P]=z.useState(""),[oe,ie]=z.useState(""),[te,F]=z.useState(""),X=z.useRef(null),[M,me]=z.useState({width:0,height:0}),U=h.find($=>$.id===w)||h[0],ce=O&&O.entities.length>0;z.useEffect(()=>{if(!X.current)return;const $=()=>{X.current&&me({width:X.current.clientWidth,height:X.current.clientHeight})};$(),window.addEventListener("resize",$);const se=new ResizeObserver($);return se.observe(X.current),()=>{window.removeEventListener("resize",$),se.disconnect()}},[]);const Ee=$=>{if(H)return;const se=$.currentTarget.getBoundingClientRect(),Me=Math.round(($.clientX-se.left)/se.width*100),Le=Math.round(($.clientY-se.top)/se.height*100);L({x:Me,y:Le}),Z("Custom Coordinate Footprint"),P("A localized OSINT trace logged at grid coordinate x:"+Me+", y:"+Le),ie("EXHIBIT MAP-"+Me+Le),F("A fresh link pinned to the web of twine..."),b(!0)},We=$=>{if($.preventDefault(),!B||!Q)return;const se={id:"clue_custom_"+Date.now(),title:Q,type:"location",description:R,exhibitCode:oe||void 0,quote:te||void 0,coordinates:B,connections:[w],metadata:{source:"Manual Map Pin",threat:"MEDIUM",timestamp:new Date().toISOString().split("T")[0]}};C(se),k(se.id),b(!1),L(null)};return u.jsxs("div",{className:"p-4 lg:p-6 space-y-6 h-full overflow-y-auto pb-32",children:[u.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center border-b border-outline-variant/40 pb-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"font-headline-md text-primary text-2xl lg:text-3xl leading-none",children:"Evidence Map"}),u.jsx("p",{className:"font-body-sm text-xs text-on-surface-variant italic mt-1",children:ce?`Entity graph: ${O.entities.length} nodes, ${O.relations.length} connections`:'"We must map the crimson twine through London and Dartmoor."'})]}),u.jsxs("div",{className:"flex items-center gap-2 bg-surface-container-high border border-outline-variant px-3 py-1.5 rounded text-xs font-technical",children:[u.jsx("span",{className:ce?"text-emerald-500":"text-emerald-500 animate-pulse",children:"β"}),u.jsx("span",{className:"text-on-surface-variant",children:"Active Sector:"}),u.jsx("span",{className:"text-primary font-bold",children:ce?"Entity Graph":"Dartmoor & Districts"})]})]}),ce?u.jsxs("div",{className:"bg-surface-container/60 backdrop-blur border border-outline-variant/60 rounded overflow-hidden",children:[u.jsxs("div",{className:"px-4 py-2 border-b border-outline-variant/40 flex items-center justify-between",children:[u.jsx("span",{className:"font-technical text-xs text-primary uppercase tracking-wider",children:"Entity Graph"}),u.jsxs("span",{className:"font-technical text-[10px] text-on-surface-variant",children:[O.entities.length," entities Β· ",O.relations.length," relations"]})]}),u.jsx(kd,{entities:O.entities,relations:O.relations})]}):u.jsxs("div",{className:"bg-surface-container/60 backdrop-blur border border-outline-variant/60 rounded overflow-hidden",children:[u.jsxs("div",{className:"px-4 py-2 border-b border-outline-variant/40 flex items-center justify-between",children:[u.jsx("span",{className:"font-technical text-xs text-primary uppercase tracking-wider",children:"Entity Graph"}),u.jsx("span",{className:"font-technical text-[10px] text-on-surface-variant animate-pulse",children:"Waiting for graph dataβ¦"})]}),u.jsx("div",{className:"h-[400px] bg-surface-container-low flex items-center justify-center",children:u.jsxs("div",{className:"text-center space-y-3",children:[u.jsx("div",{className:"text-4xl opacity-30",children:"πΈοΈ"}),u.jsxs("p",{className:"font-technical text-xs text-on-surface-variant/60 max-w-xs",children:["Start an investigation from the ",u.jsx("span",{className:"text-primary",children:"Investigate"})," tab.",u.jsx("br",{}),"Entities will appear here when the graph engine discovers connections."]}),u.jsxs("div",{className:"flex gap-1.5 justify-center",children:[u.jsx("span",{className:"w-2 h-2 rounded-full bg-primary/40 animate-pulse",style:{animationDelay:"0s"}}),u.jsx("span",{className:"w-2 h-2 rounded-full bg-primary/40 animate-pulse",style:{animationDelay:"0.2s"}}),u.jsx("span",{className:"w-2 h-2 rounded-full bg-primary/40 animate-pulse",style:{animationDelay:"0.4s"}})]})]})})]}),u.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6 items-start",children:[u.jsxs("div",{className:"xl:col-span-8 flex flex-col gap-4",children:[u.jsxs("div",{className:"text-xs font-body-sm text-on-surface-variant italic",children:["π‘ ",u.jsx("span",{className:"text-primary font-bold",children:"Tip:"})," Click anywhere on the map to pin custom coordinates and twine them into the network!"]}),u.jsxs("div",{ref:X,onClick:Ee,className:"relative h-[450px] bg-surface-container-low border border-outline-variant rounded overflow-hidden shadow-2xl cursor-crosshair group select-none",children:[u.jsx("div",{className:"absolute inset-0 bg-radial-[circle_at_center,rgba(0,0,0,0.2)_0%,rgba(0,0,0,0.8)_100%] pointer-events-none z-10"}),u.jsx("img",{alt:"Vintage London Map",className:"absolute inset-0 w-full h-full object-cover opacity-35 grayscale contrast-125 mix-blend-luminosity",src:"https://lh3.googleusercontent.com/aida-public/AB6AXuC874Rcp9KTx6vonWy1w57JNjJHDeOf2q-7ZqK-t1jnlvwMeYmv7mpT6iqzmSYYR_tsYCSd16RYodGizpZqWZcqO_mkrp5AGxsicZn6sCgooCtvJdKzC80WfqdpqpDoGD1E7O6FSUDWe14GoeIhn_ANtyyWph21_72BRxcNts8z3zPpO5Bxmvk_g0w_7TGNPrJOkMedaiXflrvG7rUYSwQgeRmVIVSOiO5poF0T65LES8auzsrMmkljZRbPd6C5RCd0ydHVbVw-LrcM"}),u.jsx("svg",{className:"absolute inset-0 w-full h-full pointer-events-none z-10",style:{width:M.width,height:M.height},children:u.jsx("g",{className:"connections-group",children:h.map($=>{if(!$.coordinates)return null;const se=$.coordinates.x/100*M.width,Me=$.coordinates.y/100*M.height;return $.connections.map(Le=>{const De=h.find(pe=>pe.id===Le);if(!De||!De.coordinates)return null;const N=De.coordinates.x/100*M.width,Y=De.coordinates.y/100*M.height,J=(se+N)/2,fe=(Me+Y)/2-40;return u.jsx("path",{className:"red-string",d:`M${se},${Me} Q${J},${fe} ${N},${Y}`,fill:"none"},`${$.id}-${Le}`)})})})}),h.map($=>{if(!$.coordinates)return null;const se=$.id===w;return u.jsxs("div",{onClick:Me=>{Me.stopPropagation(),k($.id)},style:{left:`${$.coordinates.x}%`,top:`${$.coordinates.y}%`},className:"absolute transform -translate-x-1/2 -translate-y-1/2 z-20 cursor-pointer group",children:[u.jsx("div",{className:`w-3.5 h-3.5 rounded-full relative flex items-center justify-center transition-all ${se?"bg-red-600 ring-4 ring-red-800/60 scale-125 shadow-[0_0_12px_#ef4444]":"bg-primary hover:bg-red-500 ring-2 ring-primary/30 group-hover:scale-110 shadow-md"}`,children:u.jsx("div",{className:"w-1 h-1 bg-white rounded-full opacity-70 absolute top-0.5 left-0.5"})}),se&&f&&u.jsx("button",{onClick:Me=>{Me.stopPropagation(),f($.id),k("")},className:"absolute -top-1 -right-1 w-4 h-4 bg-red-800 text-white rounded-full text-[8px] flex items-center justify-center hover:bg-red-600 z-40 cursor-pointer",title:"Remove pin",children:"Γ"}),u.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 top-5 bg-surface-container-highest border border-outline-variant text-[10px] font-technical text-primary py-0.5 px-2 rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap z-30 pointer-events-none",children:[$.exhibitCode||"FOOTPRINT"," : ",$.title]})]},$.id)}),u.jsx("div",{className:"absolute bottom-2 right-2 z-10 font-technical text-[10px] text-on-surface-variant/40 bg-surface-container-low/80 py-0.5 px-1.5 rounded",children:"SECTOR: 50.55Β°N | 3.91Β°W"})]})]}),u.jsxs("div",{className:"xl:col-span-4 space-y-6",children:[u.jsxs("div",{className:"bg-surface-container/60 backdrop-blur border border-outline-variant/60 p-4 rounded flex flex-col items-center justify-center text-center shadow-lg relative floating-node",style:{animationDelay:"-2s"},children:[u.jsxs("div",{className:"text-primary font-technical text-4xl font-bold leading-none mb-0.5",children:[D,"%"]}),u.jsx("div",{className:"font-label-caps text-[9px] text-on-surface-variant tracking-wider mb-2.5 uppercase",children:"Deduction Probability"}),u.jsx("div",{className:"w-full bg-surface-container-highest rounded-full h-1 overflow-hidden",children:u.jsx("div",{className:"bg-primary h-full transition-all duration-1000",style:{width:`${D}%`}})})]}),u.jsxs("div",{className:"tactile-paper p-6 flex flex-col transform -rotate-1 hover:rotate-0 transition-transform duration-500 shadow-2xl relative floating-node",style:{animationDelay:"-4s"},children:[u.jsx("div",{className:"absolute top-0.5 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-30",children:u.jsx("div",{className:"w-3.5 h-3.5 bg-red-800 rounded-full shadow-inner border border-red-950 relative flex items-center justify-center",children:u.jsx("div",{className:"w-1 h-1 bg-white rounded-full opacity-60 absolute top-0.5 left-0.5"})})}),u.jsxs("div",{className:"flex justify-between items-start mb-4",children:[u.jsxs("div",{children:[u.jsx("h2",{className:"font-headline-md text-on-surface leading-tight text-xl font-bold",children:U==null?void 0:U.title}),u.jsxs("span",{className:"font-technical text-[10px] text-primary bg-primary/10 border border-primary/20 px-2 py-0.5 rounded uppercase mt-1 inline-block",children:[U==null?void 0:U.type," trace"]})]}),u.jsx("div",{className:"w-2.5 h-2.5 bg-red-800 rounded-full shadow-md mt-1"})]}),U!=null&&U.image?u.jsx("div",{className:"w-full h-44 bg-surface-dark mb-4 border border-outline-variant overflow-hidden shadow-inner",children:u.jsx("img",{alt:U==null?void 0:U.title,className:"w-full h-full object-cover grayscale contrast-125 mix-blend-multiply opacity-85 hover:opacity-100 transition-opacity",src:U.image,referrerPolicy:"no-referrer"})}):u.jsxs("div",{className:"w-full h-24 bg-surface-dark/50 mb-4 border border-dashed border-outline-variant flex flex-col items-center justify-center text-center p-3",children:[u.jsx(Gd,{size:24,className:"text-on-surface-variant/40 mb-1"}),u.jsx("span",{className:"font-technical text-[9px] text-on-surface-variant/60 uppercase",children:"Forensic Material Logged"})]}),u.jsxs("div",{className:"space-y-3 font-body-sm text-xs text-on-surface-variant flex-1 leading-relaxed",children:[u.jsxs("p",{className:"border-b border-outline-variant/30 pb-1.5",children:[u.jsx("span",{className:"font-bold text-primary",children:"Exhibit Reference:"})," ",(U==null?void 0:U.exhibitCode)||"EX-NONE"]}),u.jsx("p",{className:"text-on-surface text-[13px] leading-relaxed",children:U==null?void 0:U.description}),(U==null?void 0:U.quote)&&u.jsxs("div",{className:"bg-black/10 border-l-2 border-primary/40 pl-3 py-1 font-body-sm italic text-on-surface-variant/90 text-center my-2",children:['"',U.quote,'"']}),(U==null?void 0:U.metadata)&&u.jsxs("div",{className:"pt-2 border-t border-outline-variant/30 font-technical text-[9px] space-y-1 text-primary/80",children:[U.metadata.source&&u.jsxs("div",{children:["SRC: ",U.metadata.source]}),U.metadata.threat&&u.jsxs("div",{children:["THREAT: ",U.metadata.threat]}),U.metadata.ip&&u.jsxs("div",{children:["IP: ",U.metadata.ip]}),U.metadata.domain&&u.jsxs("div",{children:["DOMAIN: ",U.metadata.domain]}),U.metadata.email&&u.jsxs("div",{children:["EMAIL: ",U.metadata.email]})]})]})]}),u.jsxs("div",{className:"tactile-paper p-5 border border-outline-variant transform rotate-1 hover:rotate-0 transition-transform duration-500 shadow-xl relative floating-node",style:{animationDelay:"-6s"},children:[u.jsx("div",{className:"font-label-caps text-primary border-b border-outline-variant/40 mb-2 pb-1 text-[10px] tracking-widest uppercase",children:"COORDINATES WEB"}),u.jsx("p",{className:"font-body-sm italic text-xs leading-relaxed text-on-surface text-center",children:ce?`"The graph reveals ${O.entities.length} connected entities across the digital landscape. Follow the threads, Watson, and you shall uncover the architecture of the network."`:'"Every thread on the board points to the Mire. Follow the coordinates, Watson, and you shall locate the hound."'})]})]})]}),H&&B&&u.jsx("div",{className:"fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4",children:u.jsxs("form",{onSubmit:We,className:"bg-surface-container border border-outline-variant max-w-md w-full p-6 rounded shadow-2xl space-y-4 font-body-md",children:[u.jsxs("div",{className:"border-b border-outline-variant pb-3",children:[u.jsx("h3",{className:"font-headline-md text-primary text-xl",children:"Pin Coordinate trace"}),u.jsxs("p",{className:"font-technical text-[10px] text-on-surface-variant uppercase mt-1",children:["LOCATION GRID: X ",B.x,"% | Y ",B.y,"%"]})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Trace Title"}),u.jsx("input",{type:"text",required:!0,value:Q,onChange:$=>Z($.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-primary focus:ring-1 focus:ring-primary outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Forensic Description"}),u.jsx("textarea",{required:!0,rows:3,value:R,onChange:$=>P($.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-on-surface focus:ring-1 focus:ring-primary outline-none resize-none"})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Exhibit Ref"}),u.jsx("input",{type:"text",value:oe,onChange:$=>ie($.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-technical text-primary focus:ring-1 focus:ring-primary outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Quote Key"}),u.jsx("input",{type:"text",value:te,onChange:$=>F($.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-technical text-primary focus:ring-1 focus:ring-primary outline-none"})]})]})]}),u.jsxs("div",{className:"flex justify-end gap-3 pt-2 border-t border-outline-variant/40",children:[u.jsx("button",{type:"button",onClick:()=>b(!1),className:"px-4 py-2 border border-outline-variant text-on-surface-variant text-xs rounded hover:bg-surface-container-high cursor-pointer",children:"Cancel"}),u.jsx("button",{type:"submit",className:"px-4 py-2 bg-primary text-white text-xs font-bold rounded hover:bg-red-700 cursor-pointer",children:"Pin to Map"})]})]})})]})}function qp(){const[h,T]=z.useState([]),[C,f]=z.useState(!0),[D,O]=z.useState(null),[w,k]=z.useState(""),[H,b]=z.useState(""),B=async()=>{f(!0),b("");try{const P=await(await fetch("/api/cases?limit=50")).json();T(P.cases||[])}catch{b("Failed to load cases")}finally{f(!1)}};z.useEffect(()=>{B()},[]);const L=async R=>{if(D===R){O(null),k("");return}O(R);try{const oe=await(await fetch(`/api/cases/${R}`)).text();k(oe)}catch{k("Failed to load case.")}},Q=R=>R<1024?`${R}B`:R<1024*1024?`${(R/1024).toFixed(1)}KB`:`${(R/(1024*1024)).toFixed(1)}MB`,Z=R=>{const P=parseInt(R);return P>=50?"text-green-400":P>=25?"text-yellow-400":"text-red-400"};return u.jsxs("div",{className:"p-4 lg:p-6 space-y-6 h-full overflow-y-auto pb-32 max-w-5xl mx-auto",children:[u.jsxs("div",{className:"border-b border-outline-variant/40 pb-4 flex justify-between items-center",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"font-headline-md text-primary text-2xl lg:text-3xl leading-none",children:"Investigation Archives"}),u.jsx("p",{className:"text-on-surface-variant text-sm mt-1",children:"Saved OSINT investigation briefs"})]}),u.jsxs("button",{onClick:B,disabled:C,className:"flex items-center gap-2 px-3 py-2 rounded-lg bg-surface-container hover:bg-surface-container-high text-on-surface text-sm transition-colors cursor-pointer disabled:opacity-50",children:[u.jsx(Ii,{size:14,className:C?"animate-spin":""}),"Refresh"]})]}),H&&u.jsx("div",{className:"bg-error-container/20 border border-error/30 rounded-lg p-4 text-error text-sm",children:H}),C&&h.length===0&&u.jsxs("div",{className:"flex items-center justify-center py-12 text-on-surface-variant",children:[u.jsx(Ii,{size:20,className:"animate-spin mr-2"}),"Loading archives..."]}),!C&&h.length===0&&u.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-on-surface-variant space-y-3",children:[u.jsx(D0,{size:48,className:"opacity-30"}),u.jsx("p",{className:"text-lg font-headline-md",children:"No cases archived yet"}),u.jsxs("p",{className:"text-sm max-w-xs text-center",children:["Run an investigation in the ",u.jsx("strong",{children:"Investigate"}),' tab, then click "Save to Archives" when the brief is ready.']})]}),h.length>0&&u.jsx("div",{className:"space-y-3",children:h.map(R=>u.jsxs("div",{children:[u.jsx("button",{onClick:()=>L(R.id),className:`w-full text-left p-4 rounded-xl border transition-all cursor-pointer ${D===R.id?"border-primary bg-primary/5":"border-outline-variant/30 bg-surface-container hover:border-outline-variant/60 hover:bg-surface-container-high"}`,children:u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx(Np,{size:14,className:"text-primary shrink-0"}),u.jsx("span",{className:"font-headline-md text-primary truncate",children:R.target||"Unknown target"}),u.jsx("span",{className:"text-xs px-2 py-0.5 rounded-full bg-surface-container-high text-on-surface-variant shrink-0",children:R.target_type||"unknown"})]}),u.jsxs("div",{className:"flex items-center gap-4 text-xs text-on-surface-variant mt-2",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(B0,{size:12}),R.date||"Unknown date"]}),u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Yd,{size:12}),R.findings," findings",R.confirmed>0&&u.jsxs("span",{className:"text-green-400 ml-1",children:["(",R.confirmed," confirmed)"]})]}),R.verifiability&&u.jsxs("span",{className:`flex items-center gap-1 ${Z(R.verifiability)}`,children:[u.jsx(xp,{size:12}),R.verifiability]}),u.jsx("span",{className:"text-outline-variant/60",children:Q(R.size)})]})]}),u.jsx(J0,{size:16,className:`shrink-0 mt-1 transition-transform ${D===R.id?"text-primary rotate-90":"text-on-surface-variant"}`})]})}),D===R.id&&w&&u.jsx("div",{className:"mt-2 ml-4 p-4 border-l-2 border-primary/30 bg-surface-container-low rounded-r-lg overflow-x-auto max-h-[60vh] overflow-y-auto",children:u.jsx("pre",{className:"text-on-surface text-xs font-mono whitespace-pre-wrap leading-relaxed",children:w})})]},R.id))}),h.length>0&&u.jsxs("div",{className:"text-center text-xs text-on-surface-variant/60 pt-4 border-t border-outline-variant/20",children:[h.length," case",h.length!==1?"s":""," archived Β·"," ",h.reduce((R,P)=>R+P.findings,0)," total findings"]})]})}function Bp({suspects:h,onAddSuspect:T}){const[C,f]=z.useState("All"),[D,O]=z.useState(!1),[w,k]=z.useState(""),[H,b]=z.useState("Suspect"),[B,L]=z.useState("Medium"),[Q,Z]=z.useState(""),[R,P]=z.useState(""),[oe,ie]=z.useState(""),te=h.filter(X=>C==="All"||X.status===C),F=X=>{if(X.preventDefault(),!w||!R)return;const me={id:"sus_"+Date.now(),name:w,occupation:Q||"Gentleman of London",status:H,threatLevel:B,image:"https://lh3.googleusercontent.com/aida-public/AB6AXuBQ8u2qbeHTYvYPXb36MOW1qUR-8LTVkK54d6NmMKZ9V0NnVHwgOqQfrwwe9x3POchDC87DTI1Gl2sC3vjIqTqyinSu2NTNbKE9tpPb0z3DdLSy9IHy9tMlvfGYYYnAIem1ZuWd5WCGKNure9GtbUJhvdsiQgXfqrTm-F7iPiPoz_VMsCwnXTOePnFiaMuC6rBE8OunQ0_w0yZhmt7GrH8vRb5lJcxyVYQzYPvcv2V9ZS4GhW5Te6-oVZJj5xtT5v9QgEgG1pGgF1eF",quote:oe?`"${oe}"`:'"A mystery cloaked in carbon shadows..."',bio:R,connections:[]};T(me),O(!1),k(""),Z(""),P(""),ie("")};return u.jsxs("div",{className:"p-4 lg:p-6 space-y-6 h-full overflow-y-auto pb-32",children:[u.jsxs("div",{className:"flex flex-col sm:flex-row justify-between items-start sm:items-center border-b border-outline-variant/40 pb-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"font-headline-md text-primary text-2xl lg:text-3xl leading-none",children:"Personnel Dossiers"}),u.jsx("p",{className:"font-body-sm text-xs text-on-surface-variant italic mt-1",children:'"Identify suspects, document testimonies, and analyze motives."'})]}),u.jsx("button",{onClick:()=>O(!0),className:"px-3 py-1.5 text-xs font-label-caps bg-primary text-background-dark font-bold hover:brightness-110 rounded cursor-pointer active:scale-95 transition-all shadow-md",children:"Add Dossier"})]}),u.jsx("div",{className:"flex flex-wrap items-center gap-1.5 border-b border-outline-variant/20 pb-3",children:["All","Suspect","Informant","Ally"].map(X=>u.jsx("button",{onClick:()=>f(X),className:`px-3.5 py-1 rounded-full text-[10px] font-label-caps uppercase tracking-wider transition-all cursor-pointer ${C===X?"bg-primary text-background-dark font-bold":"bg-surface-container/40 text-on-surface-variant hover:bg-surface-container hover:text-on-surface"}`,children:X==="All"?"All Dossiers":X+"s"},X))}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:te.map(X=>{const M=X.threatLevel==="Critical"||X.threatLevel==="High"?"bg-red-950/45 border-red-900 text-red-400":X.threatLevel==="Medium"?"bg-yellow-950/35 border-yellow-800 text-yellow-400":"bg-emerald-950/45 border-emerald-900 text-emerald-400";return u.jsxs("div",{className:"tactile-paper p-6 rounded shadow-lg flex flex-col md:flex-row gap-6 relative overflow-hidden transform hover:-rotate-0.5 transition-transform duration-300",children:[u.jsx("div",{className:"absolute top-1 left-4 z-10",children:u.jsx("div",{className:"w-2.5 h-2.5 bg-red-800 rounded-full shadow border border-red-950"})}),u.jsx("div",{className:"w-full md:w-36 flex-shrink-0",children:u.jsxs("div",{className:"w-full h-44 md:h-48 bg-surface-dark border border-outline-variant rounded overflow-hidden shadow-inner relative group",children:[u.jsx("img",{alt:X.name,className:"w-full h-full object-cover grayscale contrast-125 hover:contrast-100 transition-all mix-blend-multiply opacity-80 group-hover:opacity-100",src:X.image,referrerPolicy:"no-referrer"}),u.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_center,rgba(0,0,0,0)_20%,rgba(0,0,0,0.5)_100%)] pointer-events-none"})]})}),u.jsxs("div",{className:"flex-1 flex flex-col justify-between space-y-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex justify-between items-start gap-2",children:[u.jsxs("div",{children:[u.jsx("h3",{className:"font-headline-md text-xl text-on-surface leading-tight font-bold",children:X.name}),u.jsx("p",{className:"font-body-sm text-xs text-primary italic",children:X.occupation})]}),u.jsx("span",{className:"font-technical text-[8px] tracking-wider uppercase bg-surface-container-highest/80 border border-outline-variant px-1.5 py-0.5 rounded text-on-surface-variant",children:X.status})]}),u.jsx("p",{className:"font-body-sm text-[12px] leading-relaxed text-on-surface-variant text-justify",children:X.bio}),u.jsx("div",{className:"font-body-sm text-xs italic text-primary/70 border-l border-primary/20 pl-2 py-0.5",children:X.quote})]}),u.jsxs("div",{className:"pt-3 border-t border-outline-variant/20 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"font-technical text-[9px] text-on-surface-variant/40 uppercase",children:"Threat Status:"}),u.jsx("span",{className:`font-technical text-[9px] font-bold px-2 py-0.5 rounded border uppercase ${M}`,children:X.threatLevel})]}),X.connections.length>0&&u.jsxs("span",{className:"font-technical text-[8px] text-on-surface-variant/60 uppercase bg-surface-container-low border border-outline-variant/30 py-0.5 px-1.5 rounded",children:["Linked to ",X.connections.length," leads"]})]})]})]},X.id)})}),D&&u.jsx("div",{className:"fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4",children:u.jsxs("form",{onSubmit:F,className:"bg-surface-container border border-outline-variant max-w-md w-full p-6 rounded shadow-2xl space-y-4 font-body-md",children:[u.jsxs("div",{className:"border-b border-outline-variant pb-3",children:[u.jsx("h3",{className:"font-headline-md text-primary text-xl",children:"Compile New Dossier"}),u.jsx("p",{className:"font-technical text-[10px] text-on-surface-variant uppercase mt-1",children:"Document vital intelligence coordinates of key suspects"})]}),u.jsxs("div",{className:"space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Subject Name"}),u.jsx("input",{type:"text",required:!0,placeholder:"e.g. John Frankland",value:w,onChange:X=>k(X.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-primary focus:ring-1 focus:ring-primary outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Occupation"}),u.jsx("input",{type:"text",placeholder:"e.g. Amateur Astronomer",value:Q,onChange:X=>Z(X.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-on-surface focus:ring-1 focus:ring-primary outline-none"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Dossier Status"}),u.jsxs("select",{value:H,onChange:X=>b(X.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-label-caps text-primary focus:ring-1 focus:ring-primary outline-none cursor-pointer",children:[u.jsx("option",{value:"Suspect",children:"Suspect"}),u.jsx("option",{value:"Informant",children:"Informant"}),u.jsx("option",{value:"Ally",children:"Ally"}),u.jsx("option",{value:"Victim",children:"Victim"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Threat Assessment"}),u.jsxs("select",{value:B,onChange:X=>L(X.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-label-caps text-primary focus:ring-1 focus:ring-primary outline-none cursor-pointer",children:[u.jsx("option",{value:"Low",children:"Low"}),u.jsx("option",{value:"Medium",children:"Medium"}),u.jsx("option",{value:"High",children:"High"}),u.jsx("option",{value:"Critical",children:"Critical"})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Witness Quote / Testimony"}),u.jsx("input",{type:"text",placeholder:'e.g. "I saw Barrymore signaling on the moor..."',value:oe,onChange:X=>ie(X.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-on-surface focus:ring-1 focus:ring-primary outline-none"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] font-label-caps text-on-surface-variant mb-1",children:"Forensic Biography & Scrutiny"}),u.jsx("textarea",{required:!0,rows:4,placeholder:"Record full details, movements on the moor, family links, and suspicious behaviors...",value:R,onChange:X=>P(X.target.value),className:"w-full bg-surface-dark border border-outline-variant rounded p-2 text-xs font-body-sm text-on-surface focus:ring-1 focus:ring-primary outline-none resize-none"})]})]}),u.jsxs("div",{className:"flex justify-end gap-3 pt-3 border-t border-outline-variant",children:[u.jsx("button",{type:"button",onClick:()=>O(!1),className:"px-4 py-2 text-xs font-label-caps border border-outline-variant text-on-surface-variant hover:text-on-surface rounded cursor-pointer",children:"Cancel"}),u.jsx("button",{type:"submit",className:"px-4 py-2 text-xs font-label-caps bg-primary text-background-dark font-bold hover:brightness-110 rounded cursor-pointer",children:"Compile File"})]})]})})]})}const Ud=['"It is a capital mistake to theorize before one has data."','"The world is full of obvious things which nobody by any chance ever observes."','"There is nothing more deceptive than an obvious fact."','"You see, but you do not observe."',`"Data! Data! Data! I can't make bricks without clay."`,'"When you have eliminated the impossible, whatever remains, however improbable, must be the truth."','"The little things are infinitely the most important."','"What one man can invent, another can discover."'],Yp=()=>`π΅οΈ Greetings, Detective. I am Watson β your autonomous OSINT investigation engine.
|
|
258
|
+
|
|
259
|
+
${Ud[Math.floor(Math.random()*Ud.length)]}
|
|
260
|
+
|
|
261
|
+
**To begin, type a target below.** I investigate people, companies, domains, emails, crypto wallets, and more.
|
|
262
|
+
|
|
263
|
+
**What happens next:**
|
|
264
|
+
1. I run a 7-phase investigation pipeline β from surface collection to deep OSINT.
|
|
265
|
+
2. Findings appear in real-time with source URLs and confidence scores.
|
|
266
|
+
3. Results flow into your **Case Board**, **Evidence Map**, and **Personnel** tabs.
|
|
267
|
+
4. You can connect two findings and I'll investigate their hidden relationship.
|
|
268
|
+
|
|
269
|
+
**Every finding is evidence-backed.** I never fabricate data.
|
|
270
|
+
|
|
271
|
+
Try one of the suggested targets below, or type your own.`;function Lp({onFindings:h,onBriefEntities:T,twinQuery:C,onTwinComplete:f,onGraphData:D}){const[O,w]=z.useState([]),[k,H]=z.useState(""),[b,B]=z.useState(!1),[L,Q]=z.useState(null),[Z,R]=z.useState([]),[P,oe]=z.useState(""),[ie,te]=z.useState(""),[F,X]=z.useState(()=>localStorage.getItem("WATSON_MODE")||"background_check"),[M,me]=z.useState(()=>localStorage.getItem("WATSON_PUBLISH_GRAPH")==="true"),[U,ce]=z.useState({connected:!1,configured:!1,reason:"Checking..."}),[Ee,We]=z.useState([]),[$,se]=z.useState([]),[Me,Le]=z.useState(!0),De=z.useRef(null),N=z.useRef(null);z.useEffect(()=>()=>{var s;(s=N.current)==null||s.close()},[]),z.useEffect(()=>{fetch("/api/graph/status").then(s=>s.json()).then(s=>ce({connected:s.connected??s.configured??!1,configured:s.configured??!1,reason:s.reason||""})).catch(()=>ce({connected:!1,configured:!1,reason:"Cannot reach API"}))},[]),z.useEffect(()=>{const s=localStorage.getItem("WATSON_CHAT_HISTORY");w(s?JSON.parse(s):[{id:"welcome",role:"watson",text:Yp(),timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}])},[]),z.useEffect(()=>{O.length>0&&localStorage.setItem("WATSON_CHAT_HISTORY",JSON.stringify(O.slice(-50)))},[O]),z.useEffect(()=>{var s;(s=De.current)==null||s.scrollIntoView({behavior:"smooth"})},[O,b,Z]);const Y=z.useRef(!1);z.useEffect(()=>{if(!C||Y.current)return;Y.current=!0,(async()=>{Q(null),R([]),B(!0);const m={id:"twin_"+Date.now(),role:"user",text:`π Twin Investigation
|
|
272
|
+
${C}`,timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})};w(p=>[...p,m]);try{const p=await fetch("/api/agent/investigate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:C,context:"",depth:1,mode:"twin_connection"})});if(!p.ok)throw new Error(`HTTP ${p.status}`);const q=(await p.json()).client_id;oe(q)}catch(p){Q(p.message||"Twin investigation failed"),B(!1),f&&f()}})()},[C]);const J=()=>{window.confirm("Clear entire investigation history?")&&(w([{id:"welcome",role:"watson",text:"Archive cleared. The slate is clean, Detective. Enter a target to investigate.",timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}]),localStorage.removeItem("WATSON_CHAT_HISTORY"))},fe=async(s,m)=>{w(p=>p.map(A=>A.id===m?{...A,saveError:void 0}:A));try{const p=await fetch(`/api/cases/${s}/save`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({consent_publish:!0})});if(!p.ok)throw new Error(`HTTP ${p.status}`);w(A=>A.map(q=>q.id===m?{...q,saved:!0}:q))}catch(p){w(A=>A.map(q=>q.id===m?{...q,saveError:p.message}:q))}},pe=async s=>{if(s.preventDefault(),!k.trim())return;Q(null),R([]);const m={id:"user_"+Date.now(),role:"user",text:k.trim(),timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})};w(A=>[...A,m]);const p=k.trim();H(""),B(!0);try{const A=await fetch("/api/agent/investigate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:p,context:"",depth:2,mode:F,publish_to_graph:M})});if(!A.ok)throw new Error(`HTTP ${A.status}: ${A.statusText}`);const G=(await A.json()).client_id;oe(G);const ee=[];let Se=null,_e=null,ht="";await new Promise((ca,Rt)=>{var Fa;(Fa=N.current)==null||Fa.close();const Ye=new EventSource(`/api/agent/stream/${G}`);N.current=Ye;const Bt=setTimeout(()=>{Ye.close(),N.current=null,Rt(new Error("Investigation timed out after 600s (10 minutes)"))},6e5);Ye.addEventListener("progress",ge=>{try{const le=JSON.parse(ge.data);R(re=>[...re,le.message||""])}catch{}}),Ye.addEventListener("phase_start",ge=>{try{const le=JSON.parse(ge.data);R(re=>[...re,`ββ ${le.label||le.phase} ββ`])}catch{}}),Ye.addEventListener("phase_done",ge=>{try{const le=JSON.parse(ge.data);le.finding_count>0&&R(re=>[...re,` β ${le.finding_count} findings collected`])}catch{}}),Ye.addEventListener("target_profile",ge=>{try{_e=JSON.parse(ge.data)}catch{}}),Ye.addEventListener("finding",ge=>{try{const le=JSON.parse(ge.data);ee.push(le),w(re=>re.map(Ae=>Ae.id==="watson_active"?{...Ae,findings:[...ee]}:Ae))}catch{}}),Ye.addEventListener("entity_resolution",ge=>{var le;try{const re=JSON.parse(ge.data);(le=re.entities)!=null&&le.length&&R(Ae=>[...Ae,` π ${re.total} entities resolved`])}catch{}}),Ye.addEventListener("cross_reference",ge=>{var le;try{const re=JSON.parse(ge.data);(le=re.patterns)!=null&&le.length&&R(Ae=>[...Ae,` π ${re.total} cross-references found`])}catch{}}),Ye.addEventListener("brief",ge=>{var le;try{Se=JSON.parse(ge.data),w(re=>re.map(Ae=>Ae.id==="watson_active"?{...Ae,brief:Se}:Ae)),T&&((le=Se==null?void 0:Se.notable_entities)!=null&&le.length)&&T(Se.notable_entities)}catch{}}),Ye.addEventListener("report",ge=>{try{const le=JSON.parse(ge.data);ht=le.markdown||"",le.published_to_graph!==void 0&&ce(re=>({...re,reason:le.published_to_graph?"Publishing...":""}))}catch{}}),Ye.addEventListener("graph_published",ge=>{try{const le=JSON.parse(ge.data);ce(re=>({...re,connected:!0,configured:!0,reason:"β Published to graph"})),R(re=>[...re,`β Published to community graph β ${le.case_id}`])}catch{}}),Ye.addEventListener("graph_error",ge=>{try{const le=JSON.parse(ge.data);ce(re=>({...re,reason:`β ${le.message}`})),R(re=>[...re,`β Graph publish failed: ${le.message}`])}catch{}}),Ye.addEventListener("graph_entities",ge=>{try{const le=JSON.parse(ge.data),re=le.entities||[];We(re),se(Ae=>(D&&D({entities:re,relations:Ae}),Ae)),R(Ae=>[...Ae,` π ${le.total} entities mapped in graph`])}catch{}}),Ye.addEventListener("graph_relations",ge=>{try{const le=JSON.parse(ge.data),re=le.relations||[];se(re),We(Ae=>(D&&D({entities:Ae,relations:re}),Ae)),R(Ae=>[...Ae,` β° ${le.total} relationships discovered`])}catch{}}),Ye.addEventListener("investigation_complete",ge=>{try{const le=JSON.parse(ge.data);R(re=>[...re,`β Investigation complete: ${le.total_findings} findings, ${le.confirmed} confirmed, ${le.verifiability} verifiability`]),w(re=>re.map(Ae=>Ae.id==="watson_active"?{...Ae,caseId:le.case_id}:Ae))}catch{}}),Ye.addEventListener("error",ge=>{clearTimeout(Bt),Ye.close(),N.current=null;try{const le=JSON.parse(ge.data);Rt(new Error(le.message||"Stream error"))}catch{Rt(new Error("Stream error"))}}),Ye.addEventListener("_close",()=>{clearTimeout(Bt),Ye.close(),N.current=null,ca()})}),w(ca=>ca.map(Rt=>Rt.id==="watson_active"?{...Rt,text:(Se==null?void 0:Se.executive_summary)||`Investigation complete. ${ee.length} findings collected.`,findings:ee,brief:Se||void 0,targetProfile:_e||void 0,isInvestigation:!0}:Rt)),h&&ee.length>0&&h(ee)}catch(A){console.error("Investigation failed:",A),Q(A.message||"Investigation failed"),w(q=>q.filter(G=>G.id!=="watson_active")),f&&f()}finally{B(!1),R([])}};return z.useEffect(()=>{b&&!O.find(s=>s.id==="watson_active")&&w(s=>[...s,{id:"watson_active",role:"watson",text:"Investigating...",timestamp:new Date().toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),findings:[]}])},[b]),u.jsxs("div",{className:"p-4 lg:p-6 space-y-6 h-full flex flex-col pb-32 max-w-5xl mx-auto",children:[u.jsxs("div",{className:"border-b border-outline-variant/40 pb-4 flex justify-between items-center",children:[u.jsxs("div",{children:[u.jsx("h1",{className:"font-headline-md text-primary text-2xl lg:text-3xl leading-none",children:"Watson Investigation"}),u.jsx("p",{className:"font-body-sm text-xs text-on-surface-variant italic mt-1",children:'"Enter a target β person, company, domain, email, crypto wallet. Watson investigates autonomously."'})]}),u.jsxs("button",{onClick:J,className:"px-3 py-1.5 text-xs font-label-caps border border-outline-variant text-on-surface-variant hover:text-red-400 hover:bg-red-500/10 rounded flex items-center gap-1.5 transition-all cursor-pointer",children:[u.jsx(Qd,{size:13}),u.jsx("span",{className:"hidden sm:inline",children:"Clear History"})]})]}),u.jsx("div",{className:"flex items-center justify-center gap-0",children:["background_check","due_diligence","deep_investigation"].map(s=>{const m={background_check:{icon:"β‘",label:"Quick Check",desc:"30-60s Β· Identity, sanctions, PEP"},due_diligence:{icon:"π",label:"Due Diligence",desc:"2-5 min Β· Business, financial, media"},deep_investigation:{icon:"π¬",label:"Deep",desc:"5-15 min Β· Full dossier, all languages"}},p=F===s;return u.jsxs("button",{onClick:()=>{X(s),localStorage.setItem("WATSON_MODE",s)},title:m[s].desc,className:`px-3 py-1.5 text-[11px] font-medium border transition-all cursor-pointer
|
|
273
|
+
${p?"bg-primary/20 border-primary text-primary font-bold":"bg-transparent border-outline-variant/40 text-on-surface-variant/60 hover:text-on-surface-variant hover:border-outline-variant"}
|
|
274
|
+
${s==="background_check"?"rounded-l-md":""}
|
|
275
|
+
${s==="deep_investigation"?"rounded-r-md":""}
|
|
276
|
+
`,children:[u.jsxs("span",{className:"hidden sm:inline",children:[m[s].icon," "]}),m[s].label]},s)})}),u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-1",children:[u.jsxs("label",{className:"flex items-center gap-2 text-[10px] text-on-surface-variant cursor-pointer select-none",children:[u.jsx("input",{type:"checkbox",checked:M,onChange:s=>{me(s.target.checked),localStorage.setItem("WATSON_PUBLISH_GRAPH",String(s.target.checked))},className:"w-3 h-3 accent-primary cursor-pointer"}),"Publish to community graph"]}),u.jsx("span",{className:`inline-block w-2 h-2 rounded-full ${U.connected?"bg-green-500":U.configured?"bg-yellow-500":"bg-red-500/50"}`,title:U.reason}),u.jsx("span",{className:"text-[9px] text-on-surface-variant/60 hidden sm:inline",children:U.connected?"connected":U.configured?"local":"not configured"})]}),u.jsxs("div",{className:"flex-1 flex flex-col border border-outline-variant rounded bg-surface-container/40 overflow-hidden shadow-2xl h-[55vh] min-h-[400px]",children:[u.jsxs("div",{className:"flex-1 overflow-y-auto p-5 space-y-6 select-text",children:[O.map(s=>{var p,A,q;const m=s.role==="watson";return u.jsxs("div",{className:`flex gap-4 max-w-3xl ${m?"mr-12":"ml-auto flex-row-reverse pl-12"}`,children:[u.jsx("div",{className:`w-8 h-8 rounded border flex items-center justify-center flex-shrink-0 shadow ${m?"bg-primary/10 border-primary/30 text-primary":"bg-surface-container-high border-outline-variant text-on-surface-variant"}`,children:m?u.jsx(wd,{size:15}):u.jsx(Ap,{size:15})}),u.jsxs("div",{className:"space-y-2 flex-1",children:[u.jsxs("div",{className:`flex items-center gap-1.5 text-[9px] font-technical tracking-wider text-on-surface-variant/50 ${!m&&"justify-end"}`,children:[u.jsx("span",{children:m?"WATSON":"DETECTIVE"}),u.jsx("span",{children:"β’"}),u.jsx("span",{children:s.timestamp})]}),u.jsxs("div",{className:`tactile-paper p-4 rounded text-xs leading-relaxed space-y-3 relative shadow-md ${m?"bg-surface-container-high border-outline-variant text-on-surface":"bg-surface-container border-primary/20 text-on-surface"}`,children:[m&&u.jsx("div",{className:"absolute top-1 left-2",children:u.jsx("div",{className:"w-1.5 h-1.5 bg-red-800 rounded-full border border-red-950 opacity-40"})}),s.targetProfile&&u.jsxs("div",{className:"bg-surface-dark/60 border border-outline-variant/40 rounded p-3 mb-2",children:[u.jsx("div",{className:"font-label-caps text-[10px] text-primary mb-1",children:"TARGET PROFILE"}),u.jsxs("div",{className:"font-bold text-sm",children:[s.targetProfile.target_type.toUpperCase()," β ",s.targetProfile.primary_name]}),s.targetProfile.wikidata_label&&u.jsxs("div",{className:"text-[10px] text-on-surface-variant",children:[s.targetProfile.wikidata_label,": ",s.targetProfile.wikidata_description]}),((p=s.targetProfile.associated_orgs)==null?void 0:p.length)>0&&u.jsxs("div",{className:"text-[10px] text-on-surface-variant",children:["Orgs: ",s.targetProfile.associated_orgs.join(", ")]})]}),u.jsx("div",{className:"whitespace-pre-wrap font-body-sm text-[12px] leading-relaxed",children:s.text}),s.findings&&s.findings.length>0&&u.jsxs("div",{className:"space-y-2 mt-3 pt-3 border-t border-outline-variant/30",children:[u.jsxs("div",{className:"font-label-caps text-[10px] text-primary",children:["FINDINGS (",s.findings.length,")"]}),s.findings.slice(-5).map((G,ee)=>u.jsxs("div",{className:"bg-surface-dark/40 border-l-2 border-primary/40 pl-3 py-2",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:`text-[9px] font-bold uppercase ${G.tier==="CONFIRMED"?"text-emerald-400":G.tier==="PROBABLE"?"text-primary":G.tier==="POSSIBLE"?"text-yellow-500":"text-on-surface-variant"}`,children:G.tier}),u.jsx("span",{className:"text-[9px] text-on-surface-variant",children:G.source_tier}),G.source_type&&G.source_type!=="web_search"&&u.jsx("span",{className:"text-[9px] text-primary bg-primary/10 px-1 rounded",children:G.source_type})]}),u.jsx("div",{className:"text-[11px] font-bold text-on-surface",children:G.title}),u.jsx("div",{className:"text-[10px] text-on-surface-variant line-clamp-2",children:G.description}),G.source_url&&u.jsxs("a",{href:G.source_url,target:"_blank",rel:"noopener noreferrer",className:"text-[9px] text-primary hover:underline mt-1 inline-block",children:[G.source_url.substring(0,60),"..."]})]},ee)),s.findings.length>5&&u.jsxs("div",{className:"text-[10px] text-on-surface-variant italic",children:["+ ",s.findings.length-5," more findings..."]})]}),s.brief&&u.jsxs("div",{className:"bg-surface-dark/60 border border-outline-variant/40 rounded p-3 mt-2",children:[u.jsx("div",{className:"font-label-caps text-[10px] text-primary mb-1",children:"INTELLIGENCE BRIEF"}),(A=s.brief.risk_themes)==null?void 0:A.map((G,ee)=>u.jsxs("div",{className:"flex items-center gap-2 text-[10px] mb-1",children:[u.jsx("span",{className:G.severity==="HIGH"?"text-red-400":G.severity==="MEDIUM"?"text-yellow-500":"text-on-surface-variant",children:"β"}),u.jsx("span",{className:"font-bold",children:G.theme}),u.jsxs("span",{className:"text-on-surface-variant",children:["β ",G.severity]})]},ee)),((q=s.brief.evidence_gaps)==null?void 0:q.length)>0&&u.jsxs("div",{className:"text-[10px] text-on-surface-variant mt-2",children:[u.jsx("span",{className:"text-primary",children:"Evidence gaps:"})," ",s.brief.evidence_gaps.length]})]}),s.isInvestigation&&s.caseId&&!s.saved&&u.jsxs("div",{className:"mt-3 pt-3 border-t border-outline-variant/30",children:[u.jsx("button",{onClick:()=>fe(s.caseId,s.id),className:"px-3 py-1.5 bg-primary text-background-dark rounded font-label-caps font-bold text-[10px] hover:brightness-110 transition-all cursor-pointer",children:"π Save to Archive & Publish to MCP"}),s.saveError&&u.jsxs("div",{className:"text-[10px] text-red-400 mt-1",children:["Save failed: ",s.saveError]})]}),s.saved&&u.jsx("div",{className:"mt-3 pt-3 border-t border-outline-variant/30",children:u.jsx("div",{className:"text-[10px] text-emerald-400 font-label-caps",children:"β
Archived & Published to MCP Community"})})]})]})]},s.id)}),b&&u.jsxs("div",{className:"flex gap-4 max-w-3xl mr-12",children:[u.jsx("div",{className:"w-8 h-8 rounded border border-primary/30 bg-primary/10 flex items-center justify-center flex-shrink-0 animate-pulse text-primary",children:u.jsx(wd,{size:15})}),u.jsxs("div",{className:"space-y-1 flex-1",children:[u.jsx("div",{className:"text-[9px] font-technical text-primary uppercase tracking-widest animate-pulse",children:"Watson is investigating..."}),Z.length>0&&u.jsx("div",{className:"bg-surface-container-high border border-outline-variant/60 rounded p-3 max-h-32 overflow-y-auto",children:Z.slice(-8).map((s,m)=>u.jsx("div",{className:"font-mono text-[10px] text-on-surface-variant leading-relaxed",children:s.startsWith("ββ")?u.jsx("span",{className:"text-primary font-bold",children:s}):s},m))}),u.jsxs("div",{className:"bg-surface-container-high border border-outline-variant/60 rounded p-2 inline-flex items-center gap-2",children:[u.jsx(Ii,{className:"animate-spin text-primary",size:14}),u.jsx("span",{className:"font-mono text-[10px] text-on-surface-variant",children:"Running 7-phase OSINT pipeline..."})]})]})]}),b&&P&&u.jsx("div",{className:"sticky bottom-2 mx-2",children:u.jsxs("form",{onSubmit:async s=>{if(s.preventDefault(),!!ie.trim())try{await fetch(`/api/agent/investigate/${P}/interrupt`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"context",text:ie})}),R(m=>[...m,`π Steered: ${ie}`]),te("")}catch{}},className:"flex items-center gap-2",children:[u.jsx("input",{type:"text",value:ie,onChange:s=>te(s.target.value),placeholder:"Steer: focus on sanctions, skip dark web, stop...",className:"flex-1 bg-surface-dark border border-primary/30 rounded p-2 text-[11px] font-technical text-primary focus:ring-1 focus:ring-primary outline-none"}),u.jsx("button",{type:"submit",disabled:!ie.trim(),className:"px-3 py-2 bg-primary/20 border border-primary/50 text-primary rounded text-[10px] font-bold hover:bg-primary/30 disabled:opacity-40 cursor-pointer transition-all",children:"STEER"}),u.jsx("button",{type:"button",onClick:async()=>{try{await fetch(`/api/agent/investigate/${P}/interrupt`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"stop",text:"stop"})}),R(s=>[...s,"βΉ Stop requested..."])}catch{}},className:"px-3 py-2 bg-red-500/10 border border-red-500/30 text-red-400 rounded text-[10px] font-bold hover:bg-red-500/20 cursor-pointer transition-all",children:"STOP"})]})}),L&&u.jsxs("div",{className:"sticky bottom-2 mx-auto max-w-sm bg-red-950/60 border border-red-500/50 p-2.5 rounded flex items-center justify-between text-[11px] font-technical text-red-400 gap-2 backdrop-blur-md",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(k0,{size:14}),u.jsx("span",{children:L})]}),u.jsx("button",{onClick:()=>Q(null),className:"hover:text-white uppercase font-bold text-[9px] cursor-pointer",children:"Dismiss"})]}),u.jsx("div",{ref:De})]}),Ee.length>0&&u.jsxs("div",{className:"border-t border-outline-variant/40 bg-surface-container-low/50",children:[u.jsxs("div",{className:"flex items-center justify-between px-4 py-2 cursor-pointer hover:bg-surface-container/50 transition-colors",onClick:()=>Le(!Me),children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-technical text-[10px] text-primary uppercase tracking-wider",children:"Entity Graph"}),u.jsxs("span",{className:"font-technical text-[9px] text-on-surface-variant",children:[Ee.length," entities Β· ",$.length," relations"]})]}),u.jsx("button",{className:"text-on-surface-variant hover:text-primary",children:Me?u.jsx(Bd,{size:14}):u.jsx(Q0,{size:14})})]}),Me&&u.jsx("div",{className:"px-4 pb-3",children:u.jsx(kd,{entities:Ee,relations:$,compact:!0})})]}),u.jsxs("form",{onSubmit:pe,className:"p-3 bg-surface-container-low border-t border-outline-variant flex items-center gap-2",children:[u.jsx(Rd,{size:15,className:"text-primary ml-2 flex-shrink-0"}),u.jsx("input",{type:"text",value:k,onChange:s=>H(s.target.value),placeholder:"Investigate: person, company, domain, email, crypto wallet...",className:"flex-1 bg-surface-dark border border-outline-variant/80 rounded p-2.5 text-xs text-on-surface font-body-sm focus:ring-1 focus:ring-primary focus:border-primary outline-none"}),u.jsxs("button",{type:"submit",disabled:b||!k.trim(),className:"px-4 py-2.5 bg-primary text-background-dark rounded font-label-caps font-bold text-xs hover:brightness-110 active:scale-95 disabled:opacity-50 disabled:pointer-events-none transition-all flex items-center gap-1.5 cursor-pointer shadow-md",children:[u.jsx(hp,{size:12}),u.jsx("span",{className:"hidden sm:inline",children:"INVESTIGATE"})]})]})]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-3",children:[{text:"Elon Musk",label:"Person"},{text:"stripe.com",label:"Domain"},{text:"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",label:"Crypto Wallet"},{text:"Binance",label:"Company"}].map((s,m)=>u.jsxs("button",{type:"button",onClick:()=>H(s.text),className:"text-left p-2.5 bg-surface-container-low/40 hover:bg-surface-container-high/60 border border-outline-variant/30 rounded transition-all text-xs flex justify-between items-center group cursor-pointer",children:[u.jsxs("div",{className:"truncate pr-2",children:[u.jsx("div",{className:"font-technical text-[9px] text-primary uppercase group-hover:underline",children:s.label}),u.jsx("div",{className:"text-[11px] font-body-sm text-on-surface-variant truncate italic mt-0.5",children:s.text})]}),u.jsx(Rd,{size:11,className:"text-primary/40 group-hover:text-primary animate-pulse flex-shrink-0"})]},m))})]})}function Gp({isOpen:h,onClose:T}){var X;const[C,f]=z.useState([]),[D,O]=z.useState({}),[w,k]=z.useState({}),[H,b]=z.useState(!0),[B,L]=z.useState("deepseek"),[Q,Z]=z.useState(""),R=C.filter(M=>M.category==="llm");z.useEffect(()=>{h&&fetch("/api/settings/keys").then(M=>M.json()).then(M=>{const me=M.keys||[];f(me);const U=localStorage.getItem("WATSON_LLM_PROVIDER")||"deepseek";L(U);const ce=localStorage.getItem("WATSON_LLM_KEY")||"";Z(ce);const Ee={};me.forEach(We=>{Ee[We.slug]=""}),O(Ee),b(!1)}).catch(()=>b(!1))},[h]);const P=async M=>{const me=D[M]||"";try{await fetch("/api/settings/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:M,value:me})}),k(Ee=>({...Ee,[M]:!0}));const ce=await(await fetch("/api/settings/keys")).json();f(ce.keys||[]),setTimeout(()=>k(Ee=>({...Ee,[M]:!1})),2e3)}catch(U){console.error("Failed to save key:",U)}},oe=async()=>{localStorage.setItem("WATSON_LLM_PROVIDER",B),localStorage.setItem("WATSON_LLM_KEY",Q);try{await fetch("/api/settings/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:B,value:Q})})}catch{}k(M=>({...M,llm:!0})),setTimeout(()=>k(M=>({...M,llm:!1})),2e3)},ie=async M=>{try{await fetch(`/api/settings/keys/${M}`,{method:"DELETE"}),O(ce=>({...ce,[M]:""}));const U=await(await fetch("/api/settings/keys")).json();f(U.keys||[])}catch(me){console.error("Failed to delete key:",me)}};if(!h)return null;const te=C.filter(M=>M.tier==="free"),F=C.filter(M=>M.tier==="paid");return u.jsx("div",{className:"fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4 overflow-y-auto",onClick:T,children:u.jsxs("div",{onClick:M=>M.stopPropagation(),className:"bg-surface-container border border-outline-variant max-w-lg w-full p-6 rounded shadow-2xl space-y-5 font-body-md max-h-[85vh] overflow-y-auto",children:[u.jsxs("div",{className:"border-b border-outline-variant pb-3 flex justify-between items-start",children:[u.jsxs("div",{children:[u.jsxs("h3",{className:"font-headline-md text-primary text-xl flex items-center gap-2",children:[u.jsx(bs,{size:18})," API Vault"]}),u.jsx("p",{className:"font-technical text-[10px] text-on-surface-variant uppercase mt-1",children:"Keys stored locally in ~/.watson/api_keys.json β never sent to third parties"})]}),u.jsx("button",{type:"button",onClick:T,className:"text-on-surface-variant hover:text-white cursor-pointer",children:u.jsx(Xd,{size:18})})]}),u.jsxs("div",{className:"bg-surface-dark/30 border border-primary/20 rounded p-3",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx("span",{className:"text-primary text-[9px] font-bold uppercase tracking-wider bg-primary/10 px-1.5 py-0.5 rounded",children:"REQUIRED"}),u.jsx("label",{className:"font-technical text-[10px] text-primary uppercase tracking-wider",children:"LLM Provider β Reasoning Engine"})]}),u.jsxs("div",{className:"flex gap-2 mb-2",children:[u.jsx("select",{value:B,onChange:M=>L(M.target.value),className:"bg-surface-dark border border-outline-variant/60 rounded p-2 text-[11px] font-technical text-primary focus:ring-1 focus:ring-primary focus:border-primary outline-none cursor-pointer",children:R.map(M=>u.jsx("option",{value:M.slug,children:M.label},M.slug))}),u.jsx("input",{type:"password",placeholder:"Paste your API keyβ¦",value:Q,onChange:M=>Z(M.target.value),className:"flex-1 bg-surface-dark border border-outline-variant/60 rounded p-2 text-[11px] font-technical text-primary focus:ring-1 focus:ring-primary focus:border-primary outline-none"}),u.jsx("button",{type:"button",onClick:oe,className:"px-3 py-1 text-[10px] font-bold bg-primary text-background-dark hover:brightness-110 rounded cursor-pointer flex items-center gap-1 transition-all shrink-0",children:w.llm?u.jsxs(u.Fragment,{children:[u.jsx(Fi,{size:10})," SAVED"]}):"SAVE"})]}),u.jsxs("p",{className:"text-[9px] text-on-surface-variant",children:["Watson is provider-agnostic. DeepSeek is the default (cheapest). OpenAI, Anthropic, or local Hermes also work.",((X=R.find(M=>M.slug===B))==null?void 0:X.get_key_url)&&u.jsxs(u.Fragment,{children:[" ",u.jsx("a",{href:R.find(M=>M.slug===B).get_key_url,target:"_blank",className:"text-primary hover:underline",children:"Get a key β"})]})]})]}),H?u.jsx("div",{className:"text-[10px] text-on-surface-variant text-center py-4",children:"Loading available toolsβ¦"}):u.jsxs(u.Fragment,{children:[te.length>0&&u.jsxs("div",{className:"space-y-3",children:[u.jsxs("label",{className:"block font-technical text-[9px] text-green-400/70 mb-1 uppercase tracking-wider flex items-center gap-1",children:[u.jsx(Gd,{size:10})," Free Tier β Optional keys unlock higher rate limits"]}),te.map(M=>u.jsxs("div",{className:"bg-surface-dark/20 border border-outline-variant/30 rounded p-3",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsxs("div",{children:[u.jsx("span",{className:"font-technical text-[10px] text-primary uppercase tracking-wider",children:M.label}),M.configured&&u.jsx("span",{className:"ml-2 text-[9px] text-green-400 bg-green-400/10 px-1.5 py-0.5 rounded",children:M.preview})]}),M.configured&&u.jsx("button",{onClick:()=>ie(M.slug),className:"text-[9px] text-red-400 hover:text-red-300 cursor-pointer",children:"Remove"})]}),u.jsx("p",{className:"text-[10px] text-on-surface-variant mb-2",children:M.description}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"password",placeholder:M.configured?"β’β’β’β’β’β’β’β’ (stored)":"Enter keyβ¦",value:D[M.slug]||"",onChange:me=>O(U=>({...U,[M.slug]:me.target.value})),className:"flex-1 bg-surface-dark border border-outline-variant/60 rounded p-1.5 text-[10px] font-technical text-primary focus:ring-1 focus:ring-primary focus:border-primary outline-none"}),u.jsx("button",{type:"button",onClick:()=>P(M.slug),disabled:!D[M.slug],className:"px-3 py-1 text-[10px] font-bold bg-primary text-background-dark hover:brightness-110 rounded cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed flex items-center gap-1 transition-all shrink-0",children:w[M.slug]?u.jsxs(u.Fragment,{children:[u.jsx(Fi,{size:10})," SAVED"]}):"SAVE"})]}),u.jsx("a",{href:M.get_key_url,target:"_blank",className:"text-[9px] text-primary hover:underline mt-1 inline-block",children:"Get a key β"})]},M.slug))]}),F.length>0&&u.jsxs("div",{className:"space-y-3",children:[u.jsxs("label",{className:"block font-technical text-[9px] text-amber-400/70 mb-1 uppercase tracking-wider flex items-center gap-1",children:[u.jsx(Tp,{size:10})," Paid APIs β Optional premium intelligence sources"]}),F.map(M=>u.jsxs("div",{className:"bg-surface-dark/20 border border-outline-variant/30 rounded p-3",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsxs("div",{children:[u.jsx("span",{className:"font-technical text-[10px] text-primary uppercase tracking-wider",children:M.label}),M.configured&&u.jsx("span",{className:"ml-2 text-[9px] text-green-400 bg-green-400/10 px-1.5 py-0.5 rounded",children:M.preview})]}),M.configured&&u.jsx("button",{onClick:()=>ie(M.slug),className:"text-[9px] text-red-400 hover:text-red-300 cursor-pointer",children:"Remove"})]}),u.jsx("p",{className:"text-[10px] text-on-surface-variant mb-2",children:M.description}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{type:"password",placeholder:M.configured?"β’β’β’β’β’β’β’β’ (stored)":"Enter keyβ¦",value:D[M.slug]||"",onChange:me=>O(U=>({...U,[M.slug]:me.target.value})),className:"flex-1 bg-surface-dark border border-outline-variant/60 rounded p-1.5 text-[10px] font-technical text-primary focus:ring-1 focus:ring-primary focus:border-primary outline-none"}),u.jsx("button",{type:"button",onClick:()=>P(M.slug),disabled:!D[M.slug],className:"px-3 py-1 text-[10px] font-bold bg-primary text-background-dark hover:brightness-110 rounded cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed flex items-center gap-1 transition-all shrink-0",children:w[M.slug]?u.jsxs(u.Fragment,{children:[u.jsx(Fi,{size:10})," SAVED"]}):"SAVE"})]}),u.jsx("a",{href:M.get_key_url,target:"_blank",className:"text-[9px] text-primary hover:underline mt-1 inline-block",children:"Get a key β"})]},M.slug))]})]}),u.jsxs("div",{className:"border-t border-outline-variant/30 pt-3",children:[u.jsx("label",{className:"block font-technical text-[9px] text-on-surface-variant mb-1 uppercase tracking-wider",children:"Free Tools (No key needed)"}),u.jsxs("div",{className:"text-[10px] text-on-surface-variant space-y-1 mt-1",children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-green-400",children:"β"}),u.jsxs("span",{children:[u.jsx("strong",{children:"Wikidata SPARQL"})," β Corporate ownership, subsidiaries, key people, sanctions."]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-green-400",children:"β"}),u.jsxs("span",{children:[u.jsx("strong",{children:"DuckDuckGo / Web Search"})," β Multi-engine search across Google, Yandex, Brave, Startpage."]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-green-400",children:"β"}),u.jsxs("span",{children:[u.jsx("strong",{children:"crt.sh / DNS / Wayback"})," β Certificate transparency, domain records, web archives."]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-green-400",children:"β"}),u.jsxs("span",{children:[u.jsx("strong",{children:"OpenStreetMap / Overpass"})," β Geocoding, infrastructure mapping (ports, mines, military)."]})]}),u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx("span",{className:"text-green-400",children:"β"}),u.jsxs("span",{children:[u.jsx("strong",{children:"ransomware.live / RansomWatch"})," β Dark web ransomware group monitoring."]})]})]})]})]})})}const Qp="/assets/watson-logo-Dk9tawHb.png",Hd=['"It is a capital mistake to theorize before one has data."','"The world is full of obvious things which nobody by any chance ever observes."','"There is nothing more deceptive than an obvious fact."','"You see, but you do not observe."',`"Data! Data! Data! I can't make bricks without clay."`,'"When you have eliminated the impossible, whatever remains, however improbable, must be the truth."','"The little things are infinitely the most important."','"What one man can invent, another can discover."'],Xp=()=>Hd[Math.floor(Math.random()*Hd.length)],Wi=[{title:"Investigate Anything",body:"Type a person, company, domain, email, crypto wallet, or research topic. Watson investigates autonomously across 7 phases β surface collection, identifier pivoting, deep investigation, cross-referencing, synthesis, and report."},{title:"Connect the Dots",body:'Findings flow into the Case Board and Evidence Map automatically. Select two findings on the Case Board and click "Deep Investigate" to explore hidden connections between them.'},{title:"Personnel Dossiers",body:"When Watson identifies notable people or organizations in an investigation, they automatically appear in the Personnel tab. You can also add suspects manually."},{title:"Configure Your LLM Key",body:"Watson needs an LLM provider to generate intelligence. DeepSeek is free β get a key at platform.deepseek.com, then paste it here. Without a key, investigations produce nothing.",isSetup:!0},{title:"Evidence-Backed",body:"Every finding carries a source URL and confidence score. Watson never fabricates data. Verifiability scores tell you how solid the evidence is β aim for 70%+."}];function kp({onComplete:h,onOpenSettings:T}){const[C,f]=z.useState(0),[D,O]=z.useState(!1);z.useEffect(()=>{const L=setTimeout(()=>O(!0),200);return()=>clearTimeout(L)},[]);const w=Wi[C],k=C===Wi.length-1,H=w.isSetup,[b]=z.useState(Xp),B=()=>{H&&T(),k?h():f(C+1)};return u.jsx("div",{className:`fixed inset-0 z-50 bg-black/90 flex items-center justify-center p-4 transition-opacity duration-500 ${D?"opacity-100":"opacity-0"}`,children:u.jsxs("div",{className:"bg-surface-container border border-outline-variant max-w-lg w-full rounded-xl shadow-2xl overflow-hidden",children:[u.jsx("div",{className:"h-1 bg-surface-container-highest",children:u.jsx("div",{className:"h-full bg-primary transition-all duration-500 ease-out",style:{width:`${(C+1)/Wi.length*100}%`}})}),u.jsxs("div",{className:"p-8 text-center space-y-5",children:[u.jsx("div",{className:"mx-auto w-24 h-24 rounded-xl flex items-center justify-center overflow-hidden",children:u.jsx("img",{src:Qp,alt:"Watson",className:"w-full h-full object-contain"})}),C===0&&u.jsx("p",{className:"text-amber-400/80 italic text-sm font-serif leading-relaxed px-2",children:b}),u.jsxs("div",{children:[u.jsx("h2",{className:"font-headline-md text-primary text-xl font-bold mb-2",children:w.title}),u.jsx("p",{className:"font-body-sm text-sm text-on-surface-variant leading-relaxed",children:w.body})]})]}),u.jsxs("div",{className:"px-8 pb-6 flex items-center justify-between",children:[u.jsx("div",{className:"flex gap-1.5",children:Wi.map((L,Q)=>u.jsx("div",{className:`w-2 h-2 rounded-full transition-colors ${Q<=C?"bg-primary":"bg-outline-variant/40"}`},Q))}),u.jsxs("div",{className:"flex gap-2",children:[C>0&&u.jsx("button",{onClick:()=>f(C-1),className:"px-4 py-2 text-xs font-label-caps text-on-surface-variant hover:text-primary transition-colors cursor-pointer",children:"Back"}),u.jsx("button",{onClick:B,className:"px-5 py-2 bg-primary text-background-dark font-label-caps font-bold rounded-lg hover:brightness-110 transition-all text-xs flex items-center gap-2 cursor-pointer",children:H?u.jsxs(u.Fragment,{children:[u.jsx(bs,{size:14}),"Configure API Key"]}):k?u.jsxs(u.Fragment,{children:[u.jsx(Fi,{size:14}),"Get Started"]}):u.jsxs(u.Fragment,{children:["Next",u.jsx(w0,{size:14})]})})]})]})]})})}const Vp={clues:[],suspects:[],selectedForTwin:[],twinLoading:!1,twinResult:null,activeCaseId:null,investigationMode:"deep_investigation",deductionProbability:40,settingsOpen:!1,deductionOpen:!1,twinQuery:null};function Zp(h,T){var C;switch(T.type){case"LOAD_FROM_STORAGE":return{...h,clues:T.clues,suspects:T.suspects};case"ADD_FINDINGS":{const f=new Set(h.clues.map(w=>w.id)),D=T.findings.filter(w=>w.id&&!f.has(w.id)).map((w,k)=>({id:w.id||`clue_${Date.now()}_${k}`,title:w.title||"Untitled finding",type:w.source_type&&w.source_type!=="web_search"?"digital":"osint",description:w.description||"",exhibitCode:w.phase?`EX-${w.phase.toUpperCase().slice(0,3)}`:`EX-${String(k+1).padStart(3,"0")}`,quote:w.source_url||"",metadata:{source:w.source_type||"unknown",source_url:w.source_url||"",confidence:w.confidence||.5,tier:w.tier||"POSSIBLE",phase:w.phase||"",threat:w.tier==="CONFIRMED"?"HIGH":w.tier==="PROBABLE"?"MEDIUM":"LOW",timestamp:w.timestamp||new Date().toISOString()},connections:[]}));if(D.length===0)return h;const O=[...D,...h.clues];return{...h,clues:O}}case"ADD_CLUE":return{...h,clues:[T.clue,...h.clues]};case"DELETE_CLUE":return{...h,clues:h.clues.filter(f=>f.id!==T.id).map(f=>({...f,connections:f.connections.filter(D=>D!==T.id)})),selectedForTwin:h.selectedForTwin.filter(f=>f!==T.id)};case"CONNECT_CLUES":return{...h,clues:h.clues.map(f=>f.id===T.id1&&!f.connections.includes(T.id2)?{...f,connections:[...f.connections,T.id2]}:f.id===T.id2&&!f.connections.includes(T.id1)?{...f,connections:[...f.connections,T.id1]}:f)};case"TOGGLE_TWIN_SELECTION":return h.selectedForTwin.includes(T.id)?{...h,selectedForTwin:h.selectedForTwin.filter(D=>D!==T.id)}:h.selectedForTwin.length>=2?{...h,selectedForTwin:[h.selectedForTwin[1],T.id]}:{...h,selectedForTwin:[...h.selectedForTwin,T.id]};case"CLEAR_TWIN_SELECTION":return{...h,selectedForTwin:[],twinResult:null};case"TWIN_LOADING":return{...h,twinLoading:T.loading};case"TWIN_RESULT":return{...h,twinLoading:!1,twinResult:T.result,clues:(C=T.result)!=null&&C.findings?[...T.result.findings.map((f,D)=>({id:f.id||`twin_${Date.now()}_${D}`,title:f.title||"Twin finding",type:"osint",description:f.description||"",exhibitCode:`TWIN-${String(D+1).padStart(3,"0")}`,quote:f.source_url||"",metadata:{source:"twin_investigation",source_url:f.source_url||"",confidence:f.confidence||.5,tier:f.tier||"POSSIBLE",phase:"deep",threat:"MEDIUM",timestamp:new Date().toISOString()},connections:[]})),...h.clues]:h.clues};case"ADD_SUSPECTS_FROM_BRIEF":{const f=new Set(h.suspects.map(O=>O.name.toLowerCase())),D=T.entities.filter(O=>O.name&&!f.has(O.name.toLowerCase())).map(O=>({id:`suspect_${Date.now()}_${Math.random().toString(36).slice(2,8)}`,name:O.name,role:O.role||"unknown",context:O.context||"",occupation:O.role||"Unknown",status:"Suspect",threatLevel:"Medium",image:"",quote:`"${O.context||"Entity from synthesis brief"}"`,bio:O.context||`Identified as ${O.role||"entity"} in investigation brief.`,connections:[]}));return D.length===0?h:{...h,suspects:[...D,...h.suspects]}}case"ADD_SUSPECT":return{...h,suspects:[T.suspect,...h.suspects]};case"DELETE_SUSPECT":return{...h,suspects:h.suspects.filter(f=>f.id!==T.id)};case"SET_CASE_ID":return{...h,activeCaseId:T.caseId};case"SET_MODE":return{...h,investigationMode:T.mode};case"SET_SETTINGS_OPEN":return{...h,settingsOpen:T.open};case"SET_DEDUCTION_OPEN":return{...h,deductionOpen:T.open};case"SET_TWIN_QUERY":return{...h,twinQuery:T.query,twinLoading:T.query!==null};case"RECALC_PROBABILITY":{const f=h.clues.reduce((O,w)=>O+w.connections.length,0),D=Math.min(100,40+f*4+h.clues.length*2);return{...h,deductionProbability:D}}default:return h}}const Vd=z.createContext(null);function Kp({children:h}){const[T,C]=z.useReducer(Zp,Vp),f=z.useRef(!1);z.useEffect(()=>{if(!f.current){f.current=!0;try{const Q=localStorage.getItem("WATSON_CLUES_LEDGER"),Z=localStorage.getItem("WATSON_SUSPECTS_LEDGER");(Q||Z)&&C({type:"LOAD_FROM_STORAGE",clues:Q?JSON.parse(Q):[],suspects:Z?JSON.parse(Z):[]})}catch{}}},[]),z.useEffect(()=>{f.current&&localStorage.setItem("WATSON_CLUES_LEDGER",JSON.stringify(T.clues.slice(0,200)))},[T.clues]),z.useEffect(()=>{f.current&&localStorage.setItem("WATSON_SUSPECTS_LEDGER",JSON.stringify(T.suspects.slice(0,100)))},[T.suspects]),z.useEffect(()=>{C({type:"RECALC_PROBABILITY"})},[T.clues.length]);const D=z.useCallback(Q=>{C({type:"ADD_FINDINGS",findings:Q})},[]),O=z.useCallback(Q=>{C({type:"ADD_SUSPECTS_FROM_BRIEF",entities:Q})},[]),w=z.useCallback((Q,Z)=>{C({type:"CONNECT_CLUES",id1:Q,id2:Z})},[]),k=z.useCallback(Q=>{C({type:"TOGGLE_TWIN_SELECTION",id:Q})},[]),H=z.useCallback(()=>{if(T.selectedForTwin.length<2)return;const[Q,Z]=T.selectedForTwin,R=T.clues.find(te=>te.id===Q),P=T.clues.find(te=>te.id===Z),oe=(te,F)=>{if(!te)return`(${F}) [unknown]`;const X=[];if(X.push(`TITLE: ${te.title}`),te.description&&X.push(`DESCRIPTION: ${te.description}`),te.exhibitCode&&X.push(`EXHIBIT: ${te.exhibitCode}`),te.type&&X.push(`TYPE: ${te.type}`),te.metadata){const M=te.metadata;M.source_url&&X.push(`SOURCE URL: ${M.source_url}`),M.ip&&X.push(`IP: ${M.ip}`),M.domain&&X.push(`DOMAIN: ${M.domain}`),M.email&&X.push(`EMAIL: ${M.email}`),M.source&&M.source!=="unknown"&&X.push(`SOURCE: ${M.source}`),M.tier&&X.push(`CONFIDENCE TIER: ${M.tier}`)}return te.quote&&X.push(`QUOTE: "${te.quote}"`),X.join(" | ")},ie=["Investigate the hidden connection between these two findings:",`[FINDING A] ${oe(R,"A")}`,`[FINDING B] ${oe(P,"B")}`,"Identify overlaps in entities, domains, IPs, people, locations, or patterns. What links them? Report specific evidence with source URLs."].join(`
|
|
277
|
+
|
|
278
|
+
`);C({type:"SET_TWIN_QUERY",query:ie})},[T.selectedForTwin,T.clues]),b=z.useCallback(Q=>{C({type:"DELETE_CLUE",id:Q})},[]),B=z.useCallback(Q=>{C({type:"ADD_SUSPECT",suspect:Q})},[]),L={state:T,dispatch:C,handleFindings:D,handleBriefEntities:O,handleConnectClues:w,handleToggleTwin:k,handleTwinInvestigate:H,handleDeleteClue:b,handleAddSuspect:B};return u.jsx(Vd.Provider,{value:L,children:h})}function Jp(){const h=z.useContext(Vd);if(!h)throw new Error("useWatsonStore must be used within WatsonStoreProvider");return h}function $p(){const{state:h,dispatch:T,handleFindings:C,handleBriefEntities:f,handleConnectClues:D,handleToggleTwin:O,handleTwinInvestigate:w,handleDeleteClue:k,handleAddSuspect:H}=Jp(),[b,B]=Mn.useState("chat"),[L,Q]=Mn.useState(!1),[Z,R]=Mn.useState(()=>!localStorage.getItem("WATSON_ONBOARDED")),[P,oe]=Mn.useState({entities:[],relations:[]});Mn.useEffect(()=>{h.twinQuery&&B("chat")},[h.twinQuery]);const ie=()=>{switch(b){case"board":return u.jsx(Cp,{clues:h.clues,onAddClue:F=>T({type:"ADD_CLUE",clue:F}),onDeleteClue:k,onConnectClues:D,selectedForTwin:h.selectedForTwin,onToggleTwin:O,onTwinInvestigate:w,twinLoading:h.twinLoading,twinResult:h.twinResult});case"osint":return u.jsx(qp,{});case"personnel":return u.jsx(Bp,{suspects:h.suspects,onAddSuspect:H});case"chat":case"map":default:return null}},te=[{id:"chat",label:"Investigate"},{id:"board",label:"Case Board"},{id:"map",label:"Evidence Map"},{id:"osint",label:"Archives"},{id:"personnel",label:"Personnel"}];return u.jsxs("div",{className:"bg-background-dark text-on-surface font-body-md min-h-screen relative overflow-x-hidden",children:[u.jsxs("header",{className:"fixed top-0 w-full z-50 bg-surface-container border-b border-outline-variant/60 flex justify-between items-center px-6 py-4 lg:px-8",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("button",{onClick:()=>Q(!L),className:"lg:hidden text-primary hover:opacity-80 cursor-pointer",children:L?u.jsx(Xd,{size:20}):u.jsx(up,{size:20})}),u.jsx("div",{className:"font-headline-md text-primary tracking-tight font-bold text-xl lg:text-2xl",children:"Watson"})]}),u.jsx("nav",{className:"hidden md:flex items-center gap-8 font-label-caps text-xs",children:te.map(F=>u.jsx("button",{onClick:()=>B(F.id),className:`cursor-pointer transition-colors pb-1 ${b===F.id?"text-primary border-b-2 border-primary":"text-on-surface-variant hover:text-primary"}`,children:F.label},F.id))}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx("button",{onClick:()=>B("chat"),className:"text-primary hover:opacity-80 transition-opacity cursor-pointer",children:u.jsx(Ld,{size:18,className:"animate-pulse"})}),u.jsx("button",{onClick:()=>T({type:"SET_SETTINGS_OPEN",open:!0}),className:"text-primary hover:opacity-80 transition-opacity cursor-pointer",children:u.jsx(pp,{size:18})})]})]}),L&&u.jsx("div",{className:"fixed inset-0 bg-black/95 z-40 pt-24 px-6 flex flex-col space-y-4 lg:hidden",children:te.map(F=>u.jsx("button",{onClick:()=>{B(F.id),Q(!1)},className:"text-left py-3 text-lg border-b border-outline-variant/40 font-headline-md text-primary",children:F.label},F.id))}),u.jsx(Dp,{currentTab:b,setCurrentTab:B,deductionProbability:h.deductionProbability,onOpenSettings:()=>T({type:"SET_SETTINGS_OPEN",open:!0})}),u.jsxs("main",{className:"lg:ml-64 pt-20 min-h-screen relative bg-background-dark select-none",children:[ie(),u.jsx("div",{style:{display:b==="chat"?"block":"none"},children:u.jsx(Lp,{onFindings:C,onBriefEntities:f,onGraphData:oe,twinQuery:h.twinQuery,onTwinComplete:()=>T({type:"SET_TWIN_QUERY",query:null})})}),u.jsx("div",{style:{display:b==="map"?"block":"none"},children:u.jsx(Hp,{clues:h.clues,suspects:h.suspects,onAddClue:F=>T({type:"ADD_CLUE",clue:F}),onDeleteClue:k,deductionProbability:h.deductionProbability,graphData:P})})]}),h.settingsOpen&&u.jsx(Gp,{isOpen:h.settingsOpen,onClose:()=>T({type:"SET_SETTINGS_OPEN",open:!1})}),Z&&u.jsx(kp,{onComplete:()=>{localStorage.setItem("WATSON_ONBOARDED","true"),R(!1)},onOpenSettings:()=>T({type:"SET_SETTINGS_OPEN",open:!0})})]})}function Wp(){return u.jsx(Kp,{children:u.jsx($p,{})})}E0.createRoot(document.getElementById("root")).render(u.jsx(z.StrictMode,{children:u.jsx(Wp,{})}));
|