zugzbot 1.0.13 → 1.0.15

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.
@@ -0,0 +1,291 @@
1
+ var d0=Object.defineProperty;var h0=(d,c,f)=>c in d?d0(d,c,{enumerable:!0,configurable:!0,writable:!0,value:f}):d[c]=f;var Ee=(d,c,f)=>h0(d,typeof c!="symbol"?c+"":c,f);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))s(h);new MutationObserver(h=>{for(const b of h)if(b.type==="childList")for(const A of b.addedNodes)A.tagName==="LINK"&&A.rel==="modulepreload"&&s(A)}).observe(document,{childList:!0,subtree:!0});function f(h){const b={};return h.integrity&&(b.integrity=h.integrity),h.referrerPolicy&&(b.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?b.credentials="include":h.crossOrigin==="anonymous"?b.credentials="omit":b.credentials="same-origin",b}function s(h){if(h.ep)return;h.ep=!0;const b=f(h);fetch(h.href,b)}})();var Sr={exports:{}},Ei={};/**
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 Ah;function p0(){if(Ah)return Ei;Ah=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function f(s,h,b){var A=null;if(b!==void 0&&(A=""+b),h.key!==void 0&&(A=""+h.key),"key"in h){b={};for(var w in h)w!=="key"&&(b[w]=h[w])}else b=h;return h=b.ref,{$$typeof:d,type:s,key:A,ref:h!==void 0?h:null,props:b}}return Ei.Fragment=c,Ei.jsx=f,Ei.jsxs=f,Ei}var _h;function m0(){return _h||(_h=1,Sr.exports=p0()),Sr.exports}var r=m0(),zr={exports:{}},P={};/**
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 kh;function g0(){if(kh)return P;kh=1;var d=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),A=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),H=Symbol.iterator;function ne(x){return x===null||typeof x!="object"?null:(x=H&&x[H]||x["@@iterator"],typeof x=="function"?x:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},he=Object.assign,se={};function Ge(x,C,G){this.props=x,this.context=C,this.refs=se,this.updater=G||B}Ge.prototype.isReactComponent={},Ge.prototype.setState=function(x,C){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,C,"setState")},Ge.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Ie(){}Ie.prototype=Ge.prototype;function we(x,C,G){this.props=x,this.context=C,this.refs=se,this.updater=G||B}var F=we.prototype=new Ie;F.constructor=we,he(F,Ge.prototype),F.isPureReactComponent=!0;var Re=Array.isArray;function Ue(){}var ie={H:null,A:null,T:null,S:null},ct=Object.prototype.hasOwnProperty;function dt(x,C,G){var Z=G.ref;return{$$typeof:d,type:x,key:C,ref:Z!==void 0?Z:null,props:G}}function Dl(x,C){return dt(x.type,C,x.props)}function Le(x){return typeof x=="object"&&x!==null&&x.$$typeof===d}function Qe(x){var C={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return C[G]})}var Xt=/\/+/g;function st(x,C){return typeof x=="object"&&x!==null&&x.key!=null?Qe(""+x.key):C.toString(36)}function De(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(Ue,Ue):(x.status="pending",x.then(function(C){x.status==="pending"&&(x.status="fulfilled",x.value=C)},function(C){x.status==="pending"&&(x.status="rejected",x.reason=C)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function _(x,C,G,Z,W){var ae=typeof x;(ae==="undefined"||ae==="boolean")&&(x=null);var oe=!1;if(x===null)oe=!0;else switch(ae){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(x.$$typeof){case d:case c:oe=!0;break;case k:return oe=x._init,_(oe(x._payload),C,G,Z,W)}}if(oe)return W=W(x),oe=Z===""?"."+st(x,0):Z,Re(W)?(G="",oe!=null&&(G=oe.replace(Xt,"$&/")+"/"),_(W,C,G,"",function(Cl){return Cl})):W!=null&&(Le(W)&&(W=Dl(W,G+(W.key==null||x&&x.key===W.key?"":(""+W.key).replace(Xt,"$&/")+"/")+oe)),C.push(W)),1;oe=0;var tt=Z===""?".":Z+":";if(Re(x))for(var ke=0;ke<x.length;ke++)Z=x[ke],ae=tt+st(Z,ke),oe+=_(Z,C,G,ae,W);else if(ke=ne(x),typeof ke=="function")for(x=ke.call(x),ke=0;!(Z=x.next()).done;)Z=Z.value,ae=tt+st(Z,ke++),oe+=_(Z,C,G,ae,W);else if(ae==="object"){if(typeof x.then=="function")return _(De(x),C,G,Z,W);throw C=String(x),Error("Objects are not valid as a React child (found: "+(C==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}return oe}function L(x,C,G){if(x==null)return x;var Z=[],W=0;return _(x,Z,"","",function(ae){return C.call(G,ae,W++)}),Z}function K(x){if(x._status===-1){var C=x._result;C=C(),C.then(function(G){(x._status===0||x._status===-1)&&(x._status=1,x._result=G)},function(G){(x._status===0||x._status===-1)&&(x._status=2,x._result=G)}),x._status===-1&&(x._status=0,x._result=C)}if(x._status===1)return x._result.default;throw x._result}var ye=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var C=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(C))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},xe={map:L,forEach:function(x,C,G){L(x,function(){C.apply(this,arguments)},G)},count:function(x){var C=0;return L(x,function(){C++}),C},toArray:function(x){return L(x,function(C){return C})||[]},only:function(x){if(!Le(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return P.Activity=R,P.Children=xe,P.Component=Ge,P.Fragment=f,P.Profiler=h,P.PureComponent=we,P.StrictMode=s,P.Suspense=g,P.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ie,P.__COMPILER_RUNTIME={__proto__:null,c:function(x){return ie.H.useMemoCache(x)}},P.cache=function(x){return function(){return x.apply(null,arguments)}},P.cacheSignal=function(){return null},P.cloneElement=function(x,C,G){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=he({},x.props),W=x.key;if(C!=null)for(ae in C.key!==void 0&&(W=""+C.key),C)!ct.call(C,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&C.ref===void 0||(Z[ae]=C[ae]);var ae=arguments.length-2;if(ae===1)Z.children=G;else if(1<ae){for(var oe=Array(ae),tt=0;tt<ae;tt++)oe[tt]=arguments[tt+2];Z.children=oe}return dt(x.type,W,Z)},P.createContext=function(x){return x={$$typeof:A,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:b,_context:x},x},P.createElement=function(x,C,G){var Z,W={},ae=null;if(C!=null)for(Z in C.key!==void 0&&(ae=""+C.key),C)ct.call(C,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(W[Z]=C[Z]);var oe=arguments.length-2;if(oe===1)W.children=G;else if(1<oe){for(var tt=Array(oe),ke=0;ke<oe;ke++)tt[ke]=arguments[ke+2];W.children=tt}if(x&&x.defaultProps)for(Z in oe=x.defaultProps,oe)W[Z]===void 0&&(W[Z]=oe[Z]);return dt(x,ae,W)},P.createRef=function(){return{current:null}},P.forwardRef=function(x){return{$$typeof:w,render:x}},P.isValidElement=Le,P.lazy=function(x){return{$$typeof:k,_payload:{_status:-1,_result:x},_init:K}},P.memo=function(x,C){return{$$typeof:v,type:x,compare:C===void 0?null:C}},P.startTransition=function(x){var C=ie.T,G={};ie.T=G;try{var Z=x(),W=ie.S;W!==null&&W(G,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(Ue,ye)}catch(ae){ye(ae)}finally{C!==null&&G.types!==null&&(C.types=G.types),ie.T=C}},P.unstable_useCacheRefresh=function(){return ie.H.useCacheRefresh()},P.use=function(x){return ie.H.use(x)},P.useActionState=function(x,C,G){return ie.H.useActionState(x,C,G)},P.useCallback=function(x,C){return ie.H.useCallback(x,C)},P.useContext=function(x){return ie.H.useContext(x)},P.useDebugValue=function(){},P.useDeferredValue=function(x,C){return ie.H.useDeferredValue(x,C)},P.useEffect=function(x,C){return ie.H.useEffect(x,C)},P.useEffectEvent=function(x){return ie.H.useEffectEvent(x)},P.useId=function(){return ie.H.useId()},P.useImperativeHandle=function(x,C,G){return ie.H.useImperativeHandle(x,C,G)},P.useInsertionEffect=function(x,C){return ie.H.useInsertionEffect(x,C)},P.useLayoutEffect=function(x,C){return ie.H.useLayoutEffect(x,C)},P.useMemo=function(x,C){return ie.H.useMemo(x,C)},P.useOptimistic=function(x,C){return ie.H.useOptimistic(x,C)},P.useReducer=function(x,C,G){return ie.H.useReducer(x,C,G)},P.useRef=function(x){return ie.H.useRef(x)},P.useState=function(x){return ie.H.useState(x)},P.useSyncExternalStore=function(x,C,G){return ie.H.useSyncExternalStore(x,C,G)},P.useTransition=function(){return ie.H.useTransition()},P.version="19.2.7",P}var wh;function Hr(){return wh||(wh=1,zr.exports=g0()),zr.exports}var Q=Hr(),jr={exports:{}},Ai={},Nr={exports:{}},Tr={};/**
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 Oh;function y0(){return Oh||(Oh=1,(function(d){function c(_,L){var K=_.length;_.push(L);e:for(;0<K;){var ye=K-1>>>1,xe=_[ye];if(0<h(xe,L))_[ye]=L,_[K]=xe,K=ye;else break e}}function f(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var L=_[0],K=_.pop();if(K!==L){_[0]=K;e:for(var ye=0,xe=_.length,x=xe>>>1;ye<x;){var C=2*(ye+1)-1,G=_[C],Z=C+1,W=_[Z];if(0>h(G,K))Z<xe&&0>h(W,G)?(_[ye]=W,_[Z]=K,ye=Z):(_[ye]=G,_[C]=K,ye=C);else if(Z<xe&&0>h(W,K))_[ye]=W,_[Z]=K,ye=Z;else break e}}return L}function h(_,L){var K=_.sortIndex-L.sortIndex;return K!==0?K:_.id-L.id}if(d.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var b=performance;d.unstable_now=function(){return b.now()}}else{var A=Date,w=A.now();d.unstable_now=function(){return A.now()-w}}var g=[],v=[],k=1,R=null,H=3,ne=!1,B=!1,he=!1,se=!1,Ge=typeof setTimeout=="function"?setTimeout:null,Ie=typeof clearTimeout=="function"?clearTimeout:null,we=typeof setImmediate<"u"?setImmediate:null;function F(_){for(var L=f(v);L!==null;){if(L.callback===null)s(v);else if(L.startTime<=_)s(v),L.sortIndex=L.expirationTime,c(g,L);else break;L=f(v)}}function Re(_){if(he=!1,F(_),!B)if(f(g)!==null)B=!0,Ue||(Ue=!0,Qe());else{var L=f(v);L!==null&&De(Re,L.startTime-_)}}var Ue=!1,ie=-1,ct=5,dt=-1;function Dl(){return se?!0:!(d.unstable_now()-dt<ct)}function Le(){if(se=!1,Ue){var _=d.unstable_now();dt=_;var L=!0;try{e:{B=!1,he&&(he=!1,Ie(ie),ie=-1),ne=!0;var K=H;try{t:{for(F(_),R=f(g);R!==null&&!(R.expirationTime>_&&Dl());){var ye=R.callback;if(typeof ye=="function"){R.callback=null,H=R.priorityLevel;var xe=ye(R.expirationTime<=_);if(_=d.unstable_now(),typeof xe=="function"){R.callback=xe,F(_),L=!0;break t}R===f(g)&&s(g),F(_)}else s(g);R=f(g)}if(R!==null)L=!0;else{var x=f(v);x!==null&&De(Re,x.startTime-_),L=!1}}break e}finally{R=null,H=K,ne=!1}L=void 0}}finally{L?Qe():Ue=!1}}}var Qe;if(typeof we=="function")Qe=function(){we(Le)};else if(typeof MessageChannel<"u"){var Xt=new MessageChannel,st=Xt.port2;Xt.port1.onmessage=Le,Qe=function(){st.postMessage(null)}}else Qe=function(){Ge(Le,0)};function De(_,L){ie=Ge(function(){_(d.unstable_now())},L)}d.unstable_IdlePriority=5,d.unstable_ImmediatePriority=1,d.unstable_LowPriority=4,d.unstable_NormalPriority=3,d.unstable_Profiling=null,d.unstable_UserBlockingPriority=2,d.unstable_cancelCallback=function(_){_.callback=null},d.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ct=0<_?Math.floor(1e3/_):5},d.unstable_getCurrentPriorityLevel=function(){return H},d.unstable_next=function(_){switch(H){case 1:case 2:case 3:var L=3;break;default:L=H}var K=H;H=L;try{return _()}finally{H=K}},d.unstable_requestPaint=function(){se=!0},d.unstable_runWithPriority=function(_,L){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var K=H;H=_;try{return L()}finally{H=K}},d.unstable_scheduleCallback=function(_,L,K){var ye=d.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ye+K:ye):K=ye,_){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=K+xe,_={id:k++,callback:L,priorityLevel:_,startTime:K,expirationTime:xe,sortIndex:-1},K>ye?(_.sortIndex=K,c(v,_),f(g)===null&&_===f(v)&&(he?(Ie(ie),ie=-1):he=!0,De(Re,K-ye))):(_.sortIndex=xe,c(g,_),B||ne||(B=!0,Ue||(Ue=!0,Qe()))),_},d.unstable_shouldYield=Dl,d.unstable_wrapCallback=function(_){var L=H;return function(){var K=H;H=L;try{return _.apply(this,arguments)}finally{H=K}}}})(Tr)),Tr}var Mh;function x0(){return Mh||(Mh=1,Nr.exports=y0()),Nr.exports}var Er={exports:{}},ft={};/**
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 Dh;function b0(){if(Dh)return ft;Dh=1;var d=Hr();function c(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)v+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var s={d:{f,r:function(){throw Error(c(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function b(g,v,k){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:g,containerInfo:v,implementation:k}}var A=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ft.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ft.createPortal=function(g,v){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(c(299));return b(g,v,null,k)},ft.flushSync=function(g){var v=A.T,k=s.p;try{if(A.T=null,s.p=2,g)return g()}finally{A.T=v,s.p=k,s.d.f()}},ft.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,s.d.C(g,v))},ft.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},ft.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var k=v.as,R=w(k,v.crossOrigin),H=typeof v.integrity=="string"?v.integrity:void 0,ne=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;k==="style"?s.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:R,integrity:H,fetchPriority:ne}):k==="script"&&s.d.X(g,{crossOrigin:R,integrity:H,fetchPriority:ne,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ft.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var k=w(v.as,v.crossOrigin);s.d.M(g,{crossOrigin:k,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&s.d.M(g)},ft.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var k=v.as,R=w(k,v.crossOrigin);s.d.L(g,k,{crossOrigin:R,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ft.preloadModule=function(g,v){if(typeof g=="string")if(v){var k=w(v.as,v.crossOrigin);s.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:k,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else s.d.m(g)},ft.requestFormReset=function(g){s.d.r(g)},ft.unstable_batchedUpdates=function(g,v){return g(v)},ft.useFormState=function(g,v,k){return A.H.useFormState(g,v,k)},ft.useFormStatus=function(){return A.H.useHostTransitionStatus()},ft.version="19.2.7",ft}var Ch;function v0(){if(Ch)return Er.exports;Ch=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(c){console.error(c)}}return d(),Er.exports=b0(),Er.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 Rh;function S0(){if(Rh)return Ai;Rh=1;var d=x0(),c=Hr(),f=v0();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function b(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function A(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 w(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 g(e){if(b(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=b(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return g(n),e;if(i===a)return g(n),t;i=i.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=i;else{for(var u=!1,o=n.child;o;){if(o===l){u=!0,l=n,a=i;break}if(o===a){u=!0,a=n,l=i;break}o=o.sibling}if(!u){for(o=i.child;o;){if(o===l){u=!0,l=i,a=n;break}if(o===a){u=!0,a=i,l=n;break}o=o.sibling}if(!u)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function k(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=k(e),t!==null)return t;e=e.sibling}return null}var R=Object.assign,H=Symbol.for("react.element"),ne=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),he=Symbol.for("react.fragment"),se=Symbol.for("react.strict_mode"),Ge=Symbol.for("react.profiler"),Ie=Symbol.for("react.consumer"),we=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),Re=Symbol.for("react.suspense"),Ue=Symbol.for("react.suspense_list"),ie=Symbol.for("react.memo"),ct=Symbol.for("react.lazy"),dt=Symbol.for("react.activity"),Dl=Symbol.for("react.memo_cache_sentinel"),Le=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=Le&&e[Le]||e["@@iterator"],typeof e=="function"?e:null)}var Xt=Symbol.for("react.client.reference");function st(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case he:return"Fragment";case Ge:return"Profiler";case se:return"StrictMode";case Re:return"Suspense";case Ue:return"SuspenseList";case dt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case we:return e.displayName||"Context";case Ie:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ie:return t=e.displayName||null,t!==null?t:st(e.type)||"Memo";case ct:t=e._payload,e=e._init;try{return st(e(t))}catch{}}return null}var De=Array.isArray,_=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ye=[],xe=-1;function x(e){return{current:e}}function C(e){0>xe||(e.current=ye[xe],ye[xe]=null,xe--)}function G(e,t){xe++,ye[xe]=e.current,e.current=t}var Z=x(null),W=x(null),ae=x(null),oe=x(null);function tt(e,t){switch(G(ae,t),G(W,e),G(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Wd(t),e=Fd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}C(Z),G(Z,e)}function ke(){C(Z),C(W),C(ae)}function Cl(e){e.memoizedState!==null&&G(oe,e);var t=Z.current,l=Fd(t,e.type);t!==l&&(G(W,e),G(Z,l))}function Ba(e){W.current===e&&(C(Z),C(W)),oe.current===e&&(C(oe),zi._currentValue=K)}var Ya,Mi;function tl(e){if(Ya===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ya=t&&t[1]||"",Mi=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ya+e+Mi}var Rl=!1;function Ga(e,t){if(!e||Rl)return"";Rl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(T){var N=T}Reflect.construct(e,[],D)}else{try{D.call()}catch(T){N=T}e.call(D.prototype)}}else{try{throw Error()}catch(T){N=T}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(T){if(T&&N&&typeof T.stack=="string")return[T.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),u=i[0],o=i[1];if(u&&o){var m=u.split(`
44
+ `),j=o.split(`
45
+ `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<j.length&&!j[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===j.length)for(a=m.length-1,n=j.length-1;1<=a&&0<=n&&m[a]!==j[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==j[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==j[n]){var O=`
46
+ `+m[a].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),O}while(1<=a&&0<=n);break}}}finally{Rl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?tl(l):""}function Dn(e,t){switch(e.tag){case 26:case 27:case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return e.child!==t&&t!==null?tl("Suspense Fallback"):tl("Suspense");case 19:return tl("SuspenseList");case 0:case 15:return Ga(e.type,!1);case 11:return Ga(e.type.render,!1);case 1:return Ga(e.type,!0);case 31:return tl("Activity");default:return""}}function Di(e){try{var t="",l=null;do t+=Dn(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var ol=Object.prototype.hasOwnProperty,Cn=d.unstable_scheduleCallback,La=d.unstable_cancelCallback,Ci=d.unstable_shouldYield,Ul=d.unstable_requestPaint,lt=d.unstable_now,fc=d.unstable_getCurrentPriorityLevel,Ri=d.unstable_ImmediatePriority,Ui=d.unstable_UserBlockingPriority,Hl=d.unstable_NormalPriority,Vt=d.unstable_LowPriority,Qa=d.unstable_IdlePriority,Rn=d.log,oc=d.unstable_setDisableYieldValue,ql=null,ht=null;function ll(e){if(typeof Rn=="function"&&oc(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(ql,e)}catch{}}var pt=Math.clz32?Math.clz32:Hi,dc=Math.log,hc=Math.LN2;function Hi(e){return e>>>=0,e===0?32:31-(dc(e)/hc|0)|0}var dl=256,Za=262144,ga=4194304;function al(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 Xa(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?n=al(a):(u&=o,u!==0?n=al(u):l||(l=o&~e,l!==0&&(n=al(l))))):(o=a&~i,o!==0?n=al(o):u!==0?n=al(u):l||(l=a&~e,l!==0&&(n=al(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function ya(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pc(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 Jt(){var e=ga;return ga<<=1,(ga&62914560)===0&&(ga=4194304),e}function Va(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Bl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yl(e,t,l,a,n,i){var u=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,m=e.expirationTimes,j=e.hiddenUpdates;for(l=u&~l;0<l;){var O=31-pt(l),D=1<<O;o[O]=0,m[O]=-1;var N=j[O];if(N!==null)for(j[O]=null,O=0;O<N.length;O++){var T=N[O];T!==null&&(T.lane&=-536870913)}l&=~D}a!==0&&xa(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(u&~t))}function xa(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function qi(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-pt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Ja(e,t){var l=t&-t;return l=(l&42)!==0?1:Nt(l),(l&(e.suspendedLanes|t))!==0?0:l}function Nt(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 hl(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ka(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:vh(e.type))}function pl(e,t){var l=L.p;try{return L.p=e,t()}finally{L.p=l}}var Tt=Math.random().toString(36).slice(2),$e="__reactFiber$"+Tt,rt="__reactProps$"+Tt,Gl="__reactContainer$"+Tt,ba="__reactEvents$"+Tt,mc="__reactListeners$"+Tt,gc="__reactHandles$"+Tt,Bi="__reactResources$"+Tt,nl="__reactMarker$"+Tt;function Kt(e){delete e[$e],delete e[rt],delete e[ba],delete e[mc],delete e[gc]}function Dt(e){var t=e[$e];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Gl]||l[$e]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=nh(e);e!==null;){if(l=e[$e])return l;e=nh(e)}return t}e=l,l=e.parentNode}return null}function Ct(e){if(e=e[$e]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ll(e){var t=e[Bi];return t||(t=e[Bi]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ze(e){e[nl]=!0}var Yi=new Set,Un={};function ml(e,t){Ql(e,t),Ql(e+"Capture",t)}function Ql(e,t){for(Un[e]=t,e=0;e<t.length;e++)Yi.add(t[e])}var yc=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]*$"),Gi={},Li={};function Qi(e){return ol.call(Li,e)?!0:ol.call(Gi,e)?!1:yc.test(e)?Li[e]=!0:(Gi[e]=!0,!1)}function gl(e,t,l){if(Qi(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function $a(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Rt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zi(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xc(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(u){l=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wa(e){if(!e._valueTracker){var t=Zi(e)?"checked":"value";e._valueTracker=xc(e,t,""+e[t])}}function Xi(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Zi(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Zl(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 Hn=/[\n"\\]/g;function mt(e){return e.replace(Hn,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function p(e,t,l,a,n,i,u,o){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+yt(t)):e.value!==""+yt(t)&&(e.value=""+yt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?U(e,u,yt(t)):l!=null?U(e,u,yt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+yt(o):e.removeAttribute("name")}function E(e,t,l,a,n,i,u,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Wa(e);return}l=l!=null?""+yt(l):"",t=t!=null?""+yt(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u),Wa(e)}function U(e,t,l){t==="number"&&Zl(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Y(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+yt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function q(e,t,l){if(t!=null&&(t=""+yt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+yt(l):""}function I(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(De(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=yt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Wa(e)}function te(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var We=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 Pe(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||We.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ut(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Pe(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Pe(e,i,t[i])}function Fa(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 Vi=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"]]),Ji=/^[\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 Xl(e){return Ji.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var qn=null;function bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ia=null,Pa=null;function Jr(e){var t=Ct(e);if(t&&(e=t.stateNode)){var l=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(p(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[rt]||null;if(!n)throw Error(s(90));p(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Xi(a)}break e;case"textarea":q(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Y(e,!!l.multiple,t,!1)}}}var vc=!1;function Kr(e,t,l){if(vc)return e(t,l);vc=!0;try{var a=e(t);return a}finally{if(vc=!1,(Ia!==null||Pa!==null)&&(Cu(),Ia&&(t=Ia,e=Pa,Pa=Ia=null,Jr(t),e)))for(t=0;t<e.length;t++)Jr(e[t])}}function Bn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[rt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var yl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sc=!1;if(yl)try{var Yn={};Object.defineProperty(Yn,"passive",{get:function(){Sc=!0}}),window.addEventListener("test",Yn,Yn),window.removeEventListener("test",Yn,Yn)}catch{Sc=!1}var Vl=null,zc=null,Ki=null;function $r(){if(Ki)return Ki;var e,t=zc,l=t.length,a,n="value"in Vl?Vl.value:Vl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var u=l-e;for(a=1;a<=u&&t[l-a]===n[i-a];a++);return Ki=n.slice(e,1<a?1-a:void 0)}function $i(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 Wi(){return!0}function Wr(){return!1}function xt(e){function t(l,a,n,i,u){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wi:Wr,this.isPropagationStopped=Wr,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Wi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Wi)},persist:function(){},isPersistent:Wi}),t}var va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=xt(va),Gn=R({},va,{view:0,detail:0}),fp=xt(Gn),jc,Nc,Ln,Ii=R({},Gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,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!==Ln&&(Ln&&e.type==="mousemove"?(jc=e.screenX-Ln.screenX,Nc=e.screenY-Ln.screenY):Nc=jc=0,Ln=e),jc)},movementY:function(e){return"movementY"in e?e.movementY:Nc}}),Fr=xt(Ii),op=R({},Ii,{dataTransfer:0}),dp=xt(op),hp=R({},Gn,{relatedTarget:0}),Tc=xt(hp),pp=R({},va,{animationName:0,elapsedTime:0,pseudoElement:0}),mp=xt(pp),gp=R({},va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yp=xt(gp),xp=R({},va,{data:0}),Ir=xt(xp),bp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vp={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"},Sp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sp[e])?!!t[e]:!1}function Ec(){return zp}var jp=R({},Gn,{key:function(e){if(e.key){var t=bp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$i(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(e){return e.type==="keypress"?$i(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$i(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Np=xt(jp),Tp=R({},Ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=xt(Tp),Ep=R({},Gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),Ap=xt(Ep),_p=R({},va,{propertyName:0,elapsedTime:0,pseudoElement:0}),kp=xt(_p),wp=R({},Ii,{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}),Op=xt(wp),Mp=R({},va,{newState:0,oldState:0}),Dp=xt(Mp),Cp=[9,13,27,32],Ac=yl&&"CompositionEvent"in window,Qn=null;yl&&"documentMode"in document&&(Qn=document.documentMode);var Rp=yl&&"TextEvent"in window&&!Qn,ef=yl&&(!Ac||Qn&&8<Qn&&11>=Qn),tf=" ",lf=!1;function af(e,t){switch(e){case"keyup":return Cp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var en=!1;function Up(e,t){switch(e){case"compositionend":return nf(t);case"keypress":return t.which!==32?null:(lf=!0,tf);case"textInput":return e=t.data,e===tf&&lf?null:e;default:return null}}function Hp(e,t){if(en)return e==="compositionend"||!Ac&&af(e,t)?(e=$r(),Ki=zc=Vl=null,en=!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 ef&&t.locale!=="ko"?null:t.data;default:return null}}var qp={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 uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qp[e.type]:t==="textarea"}function cf(e,t,l,a){Ia?Pa?Pa.push(a):Pa=[a]:Ia=a,t=Gu(t,"onChange"),0<t.length&&(l=new Fi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Zn=null,Xn=null;function Bp(e){Zd(e,0)}function Pi(e){var t=il(e);if(Xi(t))return e}function sf(e,t){if(e==="change")return t}var rf=!1;if(yl){var _c;if(yl){var kc="oninput"in document;if(!kc){var ff=document.createElement("div");ff.setAttribute("oninput","return;"),kc=typeof ff.oninput=="function"}_c=kc}else _c=!1;rf=_c&&(!document.documentMode||9<document.documentMode)}function of(){Zn&&(Zn.detachEvent("onpropertychange",df),Xn=Zn=null)}function df(e){if(e.propertyName==="value"&&Pi(Xn)){var t=[];cf(t,Xn,e,bc(e)),Kr(Bp,t)}}function Yp(e,t,l){e==="focusin"?(of(),Zn=t,Xn=l,Zn.attachEvent("onpropertychange",df)):e==="focusout"&&of()}function Gp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pi(Xn)}function Lp(e,t){if(e==="click")return Pi(t)}function Qp(e,t){if(e==="input"||e==="change")return Pi(t)}function Zp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:Zp;function Vn(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!ol.call(t,n)||!Et(e[n],t[n]))return!1}return!0}function hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pf(e,t){var l=hf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=hf(l)}}function mf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zl(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Zl(e.document)}return t}function wc(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 Xp=yl&&"documentMode"in document&&11>=document.documentMode,tn=null,Oc=null,Jn=null,Mc=!1;function yf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Mc||tn==null||tn!==Zl(a)||(a=tn,"selectionStart"in a&&wc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Jn&&Vn(Jn,a)||(Jn=a,a=Gu(Oc,"onSelect"),0<a.length&&(t=new Fi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=tn)))}function Sa(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ln={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},Dc={},xf={};yl&&(xf=document.createElement("div").style,"AnimationEvent"in window||(delete ln.animationend.animation,delete ln.animationiteration.animation,delete ln.animationstart.animation),"TransitionEvent"in window||delete ln.transitionend.transition);function za(e){if(Dc[e])return Dc[e];if(!ln[e])return e;var t=ln[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in xf)return Dc[e]=t[l];return e}var bf=za("animationend"),vf=za("animationiteration"),Sf=za("animationstart"),Vp=za("transitionrun"),Jp=za("transitionstart"),Kp=za("transitioncancel"),zf=za("transitionend"),jf=new Map,Cc="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(" ");Cc.push("scrollEnd");function Wt(e,t){jf.set(e,t),ml(t,[e])}var eu=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)},Ht=[],an=0,Rc=0;function tu(){for(var e=an,t=Rc=an=0;t<e;){var l=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var i=Ht[t];if(Ht[t++]=null,a!==null&&n!==null){var u=a.pending;u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n}i!==0&&Nf(l,n,i)}}function lu(e,t,l,a){Ht[an++]=e,Ht[an++]=t,Ht[an++]=l,Ht[an++]=a,Rc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Uc(e,t,l,a){return lu(e,t,l,a),au(e)}function ja(e,t){return lu(e,null,null,t),au(e)}function Nf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-pt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function au(e){if(50<mi)throw mi=0,Xs=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nn={};function $p(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,l,a){return new $p(e,t,l,a)}function Hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xl(e,t){var l=e.alternate;return l===null?(l=At(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Tf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function nu(e,t,l,a,n,i){var u=0;if(a=e,typeof e=="function")Hc(e)&&(u=1);else if(typeof e=="string")u=e0(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case dt:return e=At(31,l,t,n),e.elementType=dt,e.lanes=i,e;case he:return Na(l.children,n,i,t);case se:u=8,n|=24;break;case Ge:return e=At(12,l,t,n|2),e.elementType=Ge,e.lanes=i,e;case Re:return e=At(13,l,t,n),e.elementType=Re,e.lanes=i,e;case Ue:return e=At(19,l,t,n),e.elementType=Ue,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case we:u=10;break e;case Ie:u=9;break e;case F:u=11;break e;case ie:u=14;break e;case ct:u=16,a=null;break e}u=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=At(u,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Na(e,t,l,a){return e=At(7,e,a,t),e.lanes=l,e}function qc(e,t,l){return e=At(6,e,null,t),e.lanes=l,e}function Ef(e){var t=At(18,null,null,0);return t.stateNode=e,t}function Bc(e,t,l){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Af=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=Af.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Di(t)},Af.set(e,t),t)}return{value:e,source:t,stack:Di(t)}}var un=[],cn=0,iu=null,Kn=0,Bt=[],Yt=0,Jl=null,ul=1,cl="";function bl(e,t){un[cn++]=Kn,un[cn++]=iu,iu=e,Kn=t}function _f(e,t,l){Bt[Yt++]=ul,Bt[Yt++]=cl,Bt[Yt++]=Jl,Jl=e;var a=ul;e=cl;var n=32-pt(a)-1;a&=~(1<<n),l+=1;var i=32-pt(t)+n;if(30<i){var u=n-n%5;i=(a&(1<<u)-1).toString(32),a>>=u,n-=u,ul=1<<32-pt(t)+n|l<<n|a,cl=i+e}else ul=1<<i|l<<n|a,cl=e}function Yc(e){e.return!==null&&(bl(e,1),_f(e,1,0))}function Gc(e){for(;e===iu;)iu=un[--cn],un[cn]=null,Kn=un[--cn],un[cn]=null;for(;e===Jl;)Jl=Bt[--Yt],Bt[Yt]=null,cl=Bt[--Yt],Bt[Yt]=null,ul=Bt[--Yt],Bt[Yt]=null}function kf(e,t){Bt[Yt++]=ul,Bt[Yt++]=cl,Bt[Yt++]=Jl,ul=t.id,cl=t.overflow,Jl=e}var at=null,Oe=null,de=!1,Kl=null,Gt=!1,Lc=Error(s(519));function $l(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $n(qt(t,e)),Lc}function wf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[$e]=e,t[rt]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<yi.length;l++)ce(yi[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),E(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),I(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Kd(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||$l(e,!0)}function Of(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:at=at.return}}function sn(e){if(e!==at)return!1;if(!de)return Of(e),de=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||ur(e.type,e.memoizedProps)),l=!l),l&&Oe&&$l(e),Of(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Oe=ah(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Oe=ah(e)}else t===27?(t=Oe,ra(e.type)?(e=or,or=null,Oe=e):Oe=t):Oe=at?Qt(e.stateNode.nextSibling):null;return!0}function Ta(){Oe=at=null,de=!1}function Qc(){var e=Kl;return e!==null&&(zt===null?zt=e:zt.push.apply(zt,e),Kl=null),e}function $n(e){Kl===null?Kl=[e]:Kl.push(e)}var Zc=x(null),Ea=null,vl=null;function Wl(e,t,l){G(Zc,t._currentValue),t._currentValue=l}function Sl(e){e._currentValue=Zc.current,C(Zc)}function Xc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Vc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var u=n.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=n;for(var m=0;m<t.length;m++)if(o.context===t[m]){i.lanes|=l,o=i.alternate,o!==null&&(o.lanes|=l),Xc(i.return,l,e),a||(u=null);break e}i=o.next}}else if(n.tag===18){if(u=n.return,u===null)throw Error(s(341));u.lanes|=l,i=u.alternate,i!==null&&(i.lanes|=l),Xc(u,l,e),u=null}else u=n.child;if(u!==null)u.return=n;else for(u=n;u!==null;){if(u===e){u=null;break}if(n=u.sibling,n!==null){n.return=u.return,u=n;break}u=u.return}n=u}}function rn(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var u=n.alternate;if(u===null)throw Error(s(387));if(u=u.memoizedProps,u!==null){var o=n.type;Et(n.pendingProps.value,u.value)||(e!==null?e.push(o):e=[o])}}else if(n===oe.current){if(u=n.alternate,u===null)throw Error(s(387));u.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}n=n.return}e!==null&&Vc(t,e,l,a),t.flags|=262144}function uu(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){Ea=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nt(e){return Mf(Ea,e)}function cu(e,t){return Ea===null&&Aa(e),Mf(e,t)}function Mf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vl===null){if(e===null)throw Error(s(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return l}var Wp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Fp=d.unstable_scheduleCallback,Ip=d.unstable_NormalPriority,Xe={$$typeof:we,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jc(){return{controller:new Wp,data:new Map,refCount:0}}function Wn(e){e.refCount--,e.refCount===0&&Fp(Ip,function(){e.controller.abort()})}var Fn=null,Kc=0,fn=0,on=null;function Pp(e,t){if(Fn===null){var l=Fn=[];Kc=0,fn=Fs(),on={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Kc++,t.then(Df,Df),t}function Df(){if(--Kc===0&&Fn!==null){on!==null&&(on.status="fulfilled");var e=Fn;Fn=null,fn=0,on=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function em(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Cf=_.S;_.S=function(e,t){xd=lt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Pp(e,t),Cf!==null&&Cf(e,t)};var _a=x(null);function $c(){var e=_a.current;return e!==null?e:_e.pooledCache}function su(e,t){t===null?G(_a,_a.current):G(_a,t.pool)}function Rf(){var e=$c();return e===null?null:{parent:Xe._currentValue,pool:e}}var dn=Error(s(460)),Wc=Error(s(474)),ru=Error(s(542)),fu={then:function(){}};function Uf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then($t,$t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bf(e),e}throw wa=t,dn}}function ka(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,dn):l}}var wa=null;function qf(){if(wa===null)throw Error(s(459));var e=wa;return wa=null,e}function Bf(e){if(e===dn||e===ru)throw Error(s(483))}var hn=null,In=0;function ou(e){var t=In;return In+=1,hn===null&&(hn=[]),Hf(hn,e,t)}function Pn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function du(e,t){throw t.$$typeof===H?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yf(e){function t(S,y){if(e){var z=S.deletions;z===null?(S.deletions=[y],S.flags|=16):z.push(y)}}function l(S,y){if(!e)return null;for(;y!==null;)t(S,y),y=y.sibling;return null}function a(S){for(var y=new Map;S!==null;)S.key!==null?y.set(S.key,S):y.set(S.index,S),S=S.sibling;return y}function n(S,y){return S=xl(S,y),S.index=0,S.sibling=null,S}function i(S,y,z){return S.index=z,e?(z=S.alternate,z!==null?(z=z.index,z<y?(S.flags|=67108866,y):z):(S.flags|=67108866,y)):(S.flags|=1048576,y)}function u(S){return e&&S.alternate===null&&(S.flags|=67108866),S}function o(S,y,z,M){return y===null||y.tag!==6?(y=qc(z,S.mode,M),y.return=S,y):(y=n(y,z),y.return=S,y)}function m(S,y,z,M){var J=z.type;return J===he?O(S,y,z.props.children,M,z.key):y!==null&&(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ct&&ka(J)===y.type)?(y=n(y,z.props),Pn(y,z),y.return=S,y):(y=nu(z.type,z.key,z.props,null,S.mode,M),Pn(y,z),y.return=S,y)}function j(S,y,z,M){return y===null||y.tag!==4||y.stateNode.containerInfo!==z.containerInfo||y.stateNode.implementation!==z.implementation?(y=Bc(z,S.mode,M),y.return=S,y):(y=n(y,z.children||[]),y.return=S,y)}function O(S,y,z,M,J){return y===null||y.tag!==7?(y=Na(z,S.mode,M,J),y.return=S,y):(y=n(y,z),y.return=S,y)}function D(S,y,z){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=qc(""+y,S.mode,z),y.return=S,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ne:return z=nu(y.type,y.key,y.props,null,S.mode,z),Pn(z,y),z.return=S,z;case B:return y=Bc(y,S.mode,z),y.return=S,y;case ct:return y=ka(y),D(S,y,z)}if(De(y)||Qe(y))return y=Na(y,S.mode,z,null),y.return=S,y;if(typeof y.then=="function")return D(S,ou(y),z);if(y.$$typeof===we)return D(S,cu(S,y),z);du(S,y)}return null}function N(S,y,z,M){var J=y!==null?y.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return J!==null?null:o(S,y,""+z,M);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case ne:return z.key===J?m(S,y,z,M):null;case B:return z.key===J?j(S,y,z,M):null;case ct:return z=ka(z),N(S,y,z,M)}if(De(z)||Qe(z))return J!==null?null:O(S,y,z,M,null);if(typeof z.then=="function")return N(S,y,ou(z),M);if(z.$$typeof===we)return N(S,y,cu(S,z),M);du(S,z)}return null}function T(S,y,z,M,J){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return S=S.get(z)||null,o(y,S,""+M,J);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case ne:return S=S.get(M.key===null?z:M.key)||null,m(y,S,M,J);case B:return S=S.get(M.key===null?z:M.key)||null,j(y,S,M,J);case ct:return M=ka(M),T(S,y,z,M,J)}if(De(M)||Qe(M))return S=S.get(z)||null,O(y,S,M,J,null);if(typeof M.then=="function")return T(S,y,z,ou(M),J);if(M.$$typeof===we)return T(S,y,z,cu(y,M),J);du(y,M)}return null}function X(S,y,z,M){for(var J=null,me=null,V=y,le=y=0,fe=null;V!==null&&le<z.length;le++){V.index>le?(fe=V,V=null):fe=V.sibling;var ge=N(S,V,z[le],M);if(ge===null){V===null&&(V=fe);break}e&&V&&ge.alternate===null&&t(S,V),y=i(ge,y,le),me===null?J=ge:me.sibling=ge,me=ge,V=fe}if(le===z.length)return l(S,V),de&&bl(S,le),J;if(V===null){for(;le<z.length;le++)V=D(S,z[le],M),V!==null&&(y=i(V,y,le),me===null?J=V:me.sibling=V,me=V);return de&&bl(S,le),J}for(V=a(V);le<z.length;le++)fe=T(V,S,le,z[le],M),fe!==null&&(e&&fe.alternate!==null&&V.delete(fe.key===null?le:fe.key),y=i(fe,y,le),me===null?J=fe:me.sibling=fe,me=fe);return e&&V.forEach(function(pa){return t(S,pa)}),de&&bl(S,le),J}function $(S,y,z,M){if(z==null)throw Error(s(151));for(var J=null,me=null,V=y,le=y=0,fe=null,ge=z.next();V!==null&&!ge.done;le++,ge=z.next()){V.index>le?(fe=V,V=null):fe=V.sibling;var pa=N(S,V,ge.value,M);if(pa===null){V===null&&(V=fe);break}e&&V&&pa.alternate===null&&t(S,V),y=i(pa,y,le),me===null?J=pa:me.sibling=pa,me=pa,V=fe}if(ge.done)return l(S,V),de&&bl(S,le),J;if(V===null){for(;!ge.done;le++,ge=z.next())ge=D(S,ge.value,M),ge!==null&&(y=i(ge,y,le),me===null?J=ge:me.sibling=ge,me=ge);return de&&bl(S,le),J}for(V=a(V);!ge.done;le++,ge=z.next())ge=T(V,S,le,ge.value,M),ge!==null&&(e&&ge.alternate!==null&&V.delete(ge.key===null?le:ge.key),y=i(ge,y,le),me===null?J=ge:me.sibling=ge,me=ge);return e&&V.forEach(function(o0){return t(S,o0)}),de&&bl(S,le),J}function Te(S,y,z,M){if(typeof z=="object"&&z!==null&&z.type===he&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case ne:e:{for(var J=z.key;y!==null;){if(y.key===J){if(J=z.type,J===he){if(y.tag===7){l(S,y.sibling),M=n(y,z.props.children),M.return=S,S=M;break e}}else if(y.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===ct&&ka(J)===y.type){l(S,y.sibling),M=n(y,z.props),Pn(M,z),M.return=S,S=M;break e}l(S,y);break}else t(S,y);y=y.sibling}z.type===he?(M=Na(z.props.children,S.mode,M,z.key),M.return=S,S=M):(M=nu(z.type,z.key,z.props,null,S.mode,M),Pn(M,z),M.return=S,S=M)}return u(S);case B:e:{for(J=z.key;y!==null;){if(y.key===J)if(y.tag===4&&y.stateNode.containerInfo===z.containerInfo&&y.stateNode.implementation===z.implementation){l(S,y.sibling),M=n(y,z.children||[]),M.return=S,S=M;break e}else{l(S,y);break}else t(S,y);y=y.sibling}M=Bc(z,S.mode,M),M.return=S,S=M}return u(S);case ct:return z=ka(z),Te(S,y,z,M)}if(De(z))return X(S,y,z,M);if(Qe(z)){if(J=Qe(z),typeof J!="function")throw Error(s(150));return z=J.call(z),$(S,y,z,M)}if(typeof z.then=="function")return Te(S,y,ou(z),M);if(z.$$typeof===we)return Te(S,y,cu(S,z),M);du(S,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,y!==null&&y.tag===6?(l(S,y.sibling),M=n(y,z),M.return=S,S=M):(l(S,y),M=qc(z,S.mode,M),M.return=S,S=M),u(S)):l(S,y)}return function(S,y,z,M){try{In=0;var J=Te(S,y,z,M);return hn=null,J}catch(V){if(V===dn||V===ru)throw V;var me=At(29,V,null,S.mode);return me.lanes=M,me.return=S,me}finally{}}}var Oa=Yf(!0),Gf=Yf(!1),Fl=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ic(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 Il(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(be&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=au(e),Nf(e,null,l),t}return lu(e,a,t,l),au(e)}function ei(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,qi(e,l)}}function Pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var u={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=u:i=i.next=u,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var es=!1;function ti(){if(es){var e=on;if(e!==null)throw e}}function li(e,t,l,a){es=!1;var n=e.updateQueue;Fl=!1;var i=n.firstBaseUpdate,u=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var m=o,j=m.next;m.next=null,u===null?i=j:u.next=j,u=m;var O=e.alternate;O!==null&&(O=O.updateQueue,o=O.lastBaseUpdate,o!==u&&(o===null?O.firstBaseUpdate=j:o.next=j,O.lastBaseUpdate=m))}if(i!==null){var D=n.baseState;u=0,O=j=m=null,o=i;do{var N=o.lane&-536870913,T=N!==o.lane;if(T?(re&N)===N:(a&N)===N){N!==0&&N===fn&&(es=!0),O!==null&&(O=O.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var X=e,$=o;N=t;var Te=l;switch($.tag){case 1:if(X=$.payload,typeof X=="function"){D=X.call(Te,D,N);break e}D=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=$.payload,N=typeof X=="function"?X.call(Te,D,N):X,N==null)break e;D=R({},D,N);break e;case 2:Fl=!0}}N=o.callback,N!==null&&(e.flags|=64,T&&(e.flags|=8192),T=n.callbacks,T===null?n.callbacks=[N]:T.push(N))}else T={lane:N,tag:o.tag,payload:o.payload,callback:o.callback,next:null},O===null?(j=O=T,m=D):O=O.next=T,u|=N;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;T=o,o=T.next,T.next=null,n.lastBaseUpdate=T,n.shared.pending=null}}while(!0);O===null&&(m=D),n.baseState=m,n.firstBaseUpdate=j,n.lastBaseUpdate=O,i===null&&(n.shared.lanes=0),na|=u,e.lanes=u,e.memoizedState=D}}function Lf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Qf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Lf(l[e],t)}var pn=x(null),hu=x(0);function Zf(e,t){e=wl,G(hu,e),G(pn,t),wl=e|t.baseLanes}function ts(){G(hu,wl),G(pn,pn.current)}function ls(){wl=hu.current,C(pn),C(hu)}var _t=x(null),Lt=null;function ea(e){var t=e.alternate;G(Be,Be.current&1),G(_t,e),Lt===null&&(t===null||pn.current!==null||t.memoizedState!==null)&&(Lt=e)}function as(e){G(Be,Be.current),G(_t,e),Lt===null&&(Lt=e)}function Xf(e){e.tag===22?(G(Be,Be.current),G(_t,e),Lt===null&&(Lt=e)):ta()}function ta(){G(Be,Be.current),G(_t,_t.current)}function kt(e){C(_t),Lt===e&&(Lt=null),C(Be)}var Be=x(0);function pu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||rr(l)||fr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zl=0,ee=null,je=null,Ve=null,mu=!1,mn=!1,Ma=!1,gu=0,ai=0,gn=null,tm=0;function He(){throw Error(s(321))}function ns(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Et(e[l],t[l]))return!1;return!0}function is(e,t,l,a,n,i){return zl=i,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_.H=e===null||e.memoizedState===null?ko:vs,Ma=!1,i=l(a,n),Ma=!1,mn&&(i=Jf(t,l,a,n)),Vf(e),i}function Vf(e){_.H=ui;var t=je!==null&&je.next!==null;if(zl=0,Ve=je=ee=null,mu=!1,ai=0,gn=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&uu(e)&&(Je=!0))}function Jf(e,t,l,a){ee=e;var n=0;do{if(mn&&(gn=null),ai=0,mn=!1,25<=n)throw Error(s(301));if(n+=1,Ve=je=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}_.H=wo,i=t(l,a)}while(mn);return i}function lm(){var e=_.H,t=e.useState()[0];return t=typeof t.then=="function"?ni(t):t,e=e.useState()[0],(je!==null?je.memoizedState:null)!==e&&(ee.flags|=1024),t}function us(){var e=gu!==0;return gu=0,e}function cs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ss(e){if(mu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mu=!1}zl=0,Ve=je=ee=null,mn=!1,ai=gu=0,gn=null}function gt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?ee.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ye(){if(je===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=je.next;var t=Ve===null?ee.memoizedState:Ve.next;if(t!==null)Ve=t,je=e;else{if(e===null)throw ee.alternate===null?Error(s(467)):Error(s(310));je=e,e={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ve===null?ee.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function yu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ni(e){var t=ai;return ai+=1,gn===null&&(gn=[]),e=Hf(gn,e,t),t=ee,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,_.H=t===null||t.memoizedState===null?ko:vs),e}function xu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ni(e);if(e.$$typeof===we)return nt(e)}throw Error(s(438,String(e)))}function rs(e){var t=null,l=ee.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ee.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=yu(),ee.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Dl;return t.index++,l}function jl(e,t){return typeof t=="function"?t(e):t}function bu(e){var t=Ye();return fs(t,je,e)}function fs(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var u=n.next;n.next=i.next,i.next=u}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var o=u=null,m=null,j=t,O=!1;do{var D=j.lane&-536870913;if(D!==j.lane?(re&D)===D:(zl&D)===D){var N=j.revertLane;if(N===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),D===fn&&(O=!0);else if((zl&N)===N){j=j.next,N===fn&&(O=!0);continue}else D={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(o=m=D,u=i):m=m.next=D,ee.lanes|=N,na|=N;D=j.action,Ma&&l(i,D),i=j.hasEagerState?j.eagerState:l(i,D)}else N={lane:D,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},m===null?(o=m=N,u=i):m=m.next=N,ee.lanes|=D,na|=D;j=j.next}while(j!==null&&j!==t);if(m===null?u=i:m.next=o,!Et(i,e.memoizedState)&&(Je=!0,O&&(l=on,l!==null)))throw l;e.memoizedState=i,e.baseState=u,e.baseQueue=m,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function os(e){var t=Ye(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var u=n=n.next;do i=e(i,u.action),u=u.next;while(u!==n);Et(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Kf(e,t,l){var a=ee,n=Ye(),i=de;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=t();var u=!Et((je||n).memoizedState,l);if(u&&(n.memoizedState=l,Je=!0),n=n.queue,ps(Ff.bind(null,a,n,e),[e]),n.getSnapshot!==t||u||Ve!==null&&Ve.memoizedState.tag&1){if(a.flags|=2048,yn(9,{destroy:void 0},Wf.bind(null,a,n,l,t),null),_e===null)throw Error(s(349));i||(zl&127)!==0||$f(a,t,l)}return l}function $f(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ee.updateQueue,t===null?(t=yu(),ee.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Wf(e,t,l,a){t.value=l,t.getSnapshot=a,If(t)&&Pf(e)}function Ff(e,t,l){return l(function(){If(t)&&Pf(e)})}function If(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Et(e,l)}catch{return!0}}function Pf(e){var t=ja(e,2);t!==null&&jt(t,e,2)}function ds(e){var t=gt();if(typeof e=="function"){var l=e;if(e=l(),Ma){ll(!0);try{l()}finally{ll(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:e},t}function eo(e,t,l,a){return e.baseState=l,fs(e,je,typeof a=="function"?a:jl)}function am(e,t,l,a,n){if(zu(e))throw Error(s(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){i.listeners.push(u)}};_.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,to(t,i)):(i.next=l.next,t.pending=l.next=i)}}function to(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=_.T,u={};_.T=u;try{var o=l(n,a),m=_.S;m!==null&&m(u,o),lo(e,t,o)}catch(j){hs(e,t,j)}finally{i!==null&&u.types!==null&&(i.types=u.types),_.T=i}}else try{i=l(n,a),lo(e,t,i)}catch(j){hs(e,t,j)}}function lo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){ao(e,t,a)},function(a){return hs(e,t,a)}):ao(e,t,l)}function ao(e,t,l){t.status="fulfilled",t.value=l,no(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,to(e,l)))}function hs(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,no(t),t=t.next;while(t!==a)}e.action=null}function no(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function io(e,t){return t}function uo(e,t){if(de){var l=_e.formState;if(l!==null){e:{var a=ee;if(de){if(Oe){t:{for(var n=Oe,i=Gt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Oe=Qt(n.nextSibling),a=n.data==="F!";break e}}$l(a)}a=!1}a&&(t=l[0])}}return l=gt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:io,lastRenderedState:t},l.queue=a,l=Eo.bind(null,ee,a),a.dispatch=l,a=ds(!1),i=bs.bind(null,ee,!1,a.queue),a=gt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=am.bind(null,ee,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function co(e){var t=Ye();return so(t,je,e)}function so(e,t,l){if(t=fs(e,t,io)[0],e=bu(jl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=ni(t)}catch(u){throw u===dn?ru:u}else a=t;t=Ye();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ee.flags|=2048,yn(9,{destroy:void 0},nm.bind(null,n,l),null)),[a,i,e]}function nm(e,t){e.action=t}function ro(e){var t=Ye(),l=je;if(l!==null)return so(t,l,e);Ye(),t=t.memoizedState,l=Ye();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function yn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ee.updateQueue,t===null&&(t=yu(),ee.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function fo(){return Ye().memoizedState}function vu(e,t,l,a){var n=gt();ee.flags|=e,n.memoizedState=yn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Su(e,t,l,a){var n=Ye();a=a===void 0?null:a;var i=n.memoizedState.inst;je!==null&&a!==null&&ns(a,je.memoizedState.deps)?n.memoizedState=yn(t,i,l,a):(ee.flags|=e,n.memoizedState=yn(1|t,i,l,a))}function oo(e,t){vu(8390656,8,e,t)}function ps(e,t){Su(2048,8,e,t)}function im(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=yu(),ee.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ho(e){var t=Ye().memoizedState;return im({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function po(e,t){return Su(4,2,e,t)}function mo(e,t){return Su(4,4,e,t)}function go(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function yo(e,t,l){l=l!=null?l.concat([e]):null,Su(4,4,go.bind(null,t,e),l)}function ms(){}function xo(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&ns(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function bo(e,t){var l=Ye();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&ns(t,a[1]))return a[0];if(a=e(),Ma){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a}function gs(e,t,l){return l===void 0||(zl&1073741824)!==0&&(re&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=vd(),ee.lanes|=e,na|=e,l)}function vo(e,t,l,a){return Et(l,t)?l:pn.current!==null?(e=gs(e,l,a),Et(e,t)||(Je=!0),e):(zl&42)===0||(zl&1073741824)!==0&&(re&261930)===0?(Je=!0,e.memoizedState=l):(e=vd(),ee.lanes|=e,na|=e,t)}function So(e,t,l,a,n){var i=L.p;L.p=i!==0&&8>i?i:8;var u=_.T,o={};_.T=o,bs(e,!1,t,l);try{var m=n(),j=_.S;if(j!==null&&j(o,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var O=em(m,a);ii(e,t,O,Mt(e))}else ii(e,t,a,Mt(e))}catch(D){ii(e,t,{then:function(){},status:"rejected",reason:D},Mt())}finally{L.p=i,u!==null&&o.types!==null&&(u.types=o.types),_.T=u}}function um(){}function ys(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=zo(e).queue;So(e,n,t,K,l===null?um:function(){return jo(e),l(a)})}function zo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:K},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:jl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function jo(e){var t=zo(e);t.next===null&&(t=e.alternate.memoizedState),ii(e,t.next.queue,{},Mt())}function xs(){return nt(zi)}function No(){return Ye().memoizedState}function To(){return Ye().memoizedState}function cm(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Mt();e=Il(l);var a=Pl(t,e,l);a!==null&&(jt(a,t,l),ei(a,t,l)),t={cache:Jc()},e.payload=t;return}t=t.return}}function sm(e,t,l){var a=Mt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},zu(e)?Ao(t,l):(l=Uc(e,t,l,a),l!==null&&(jt(l,e,a),_o(l,t,a)))}function Eo(e,t,l){var a=Mt();ii(e,t,l,a)}function ii(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(zu(e))Ao(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,o=i(u,l);if(n.hasEagerState=!0,n.eagerState=o,Et(o,u))return lu(e,t,n,0),_e===null&&tu(),!1}catch{}finally{}if(l=Uc(e,t,n,a),l!==null)return jt(l,e,a),_o(l,t,a),!0}return!1}function bs(e,t,l,a){if(a={lane:2,revertLane:Fs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},zu(e)){if(t)throw Error(s(479))}else t=Uc(e,l,a,2),t!==null&&jt(t,e,2)}function zu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Ao(e,t){mn=mu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function _o(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,qi(e,l)}}var ui={readContext:nt,use:xu,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};ui.useEffectEvent=He;var ko={readContext:nt,use:xu,useCallback:function(e,t){return gt().memoizedState=[e,t===void 0?null:t],e},useContext:nt,useEffect:oo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,vu(4194308,4,go.bind(null,t,e),l)},useLayoutEffect:function(e,t){return vu(4194308,4,e,t)},useInsertionEffect:function(e,t){vu(4,2,e,t)},useMemo:function(e,t){var l=gt();t=t===void 0?null:t;var a=e();if(Ma){ll(!0);try{e()}finally{ll(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=gt();if(l!==void 0){var n=l(t);if(Ma){ll(!0);try{l(t)}finally{ll(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=sm.bind(null,ee,e),[a.memoizedState,e]},useRef:function(e){var t=gt();return e={current:e},t.memoizedState=e},useState:function(e){e=ds(e);var t=e.queue,l=Eo.bind(null,ee,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ms,useDeferredValue:function(e,t){var l=gt();return gs(l,e,t)},useTransition:function(){var e=ds(!1);return e=So.bind(null,ee,e.queue,!0,!1),gt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ee,n=gt();if(de){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),_e===null)throw Error(s(349));(re&127)!==0||$f(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,oo(Ff.bind(null,a,i,e),[e]),a.flags|=2048,yn(9,{destroy:void 0},Wf.bind(null,a,i,l,t),null),l},useId:function(){var e=gt(),t=_e.identifierPrefix;if(de){var l=cl,a=ul;l=(a&~(1<<32-pt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=gu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=tm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:xs,useFormState:uo,useActionState:uo,useOptimistic:function(e){var t=gt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=bs.bind(null,ee,!0,l),l.dispatch=t,[e,t]},useMemoCache:rs,useCacheRefresh:function(){return gt().memoizedState=cm.bind(null,ee)},useEffectEvent:function(e){var t=gt(),l={impl:e};return t.memoizedState=l,function(){if((be&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},vs={readContext:nt,use:xu,useCallback:xo,useContext:nt,useEffect:ps,useImperativeHandle:yo,useInsertionEffect:po,useLayoutEffect:mo,useMemo:bo,useReducer:bu,useRef:fo,useState:function(){return bu(jl)},useDebugValue:ms,useDeferredValue:function(e,t){var l=Ye();return vo(l,je.memoizedState,e,t)},useTransition:function(){var e=bu(jl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Kf,useId:No,useHostTransitionStatus:xs,useFormState:co,useActionState:co,useOptimistic:function(e,t){var l=Ye();return eo(l,je,e,t)},useMemoCache:rs,useCacheRefresh:To};vs.useEffectEvent=ho;var wo={readContext:nt,use:xu,useCallback:xo,useContext:nt,useEffect:ps,useImperativeHandle:yo,useInsertionEffect:po,useLayoutEffect:mo,useMemo:bo,useReducer:os,useRef:fo,useState:function(){return os(jl)},useDebugValue:ms,useDeferredValue:function(e,t){var l=Ye();return je===null?gs(l,e,t):vo(l,je.memoizedState,e,t)},useTransition:function(){var e=os(jl)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:ni(e),t]},useSyncExternalStore:Kf,useId:No,useHostTransitionStatus:xs,useFormState:ro,useActionState:ro,useOptimistic:function(e,t){var l=Ye();return je!==null?eo(l,je,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:rs,useCacheRefresh:To};wo.useEffectEvent=ho;function Ss(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:R({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var zs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Mt(),n=Il(a);n.payload=t,l!=null&&(n.callback=l),t=Pl(e,n,a),t!==null&&(jt(t,e,a),ei(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Mt(),n=Il(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=Pl(e,n,a),t!==null&&(jt(t,e,a),ei(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Mt(),a=Il(l);a.tag=2,t!=null&&(a.callback=t),t=Pl(e,a,l),t!==null&&(jt(t,e,l),ei(t,e,l))}};function Oo(e,t,l,a,n,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,u):t.prototype&&t.prototype.isPureReactComponent?!Vn(l,a)||!Vn(n,i):!0}function Mo(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&zs.enqueueReplaceState(t,t.state,null)}function Da(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=R({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Do(e){eu(e)}function Co(e){console.error(e)}function Ro(e){eu(e)}function ju(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Uo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function js(e,t,l){return l=Il(l),l.tag=3,l.payload={element:null},l.callback=function(){ju(e,t)},l}function Ho(e){return e=Il(e),e.tag=3,e}function qo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){Uo(t,l,a)}}var u=l.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Uo(t,l,a),typeof n!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function rm(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&rn(t,l,n,!0),l=_t.current,l!==null){switch(l.tag){case 31:case 13:return Lt===null?Ru():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===fu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Ks(e,a,n)),!1;case 22:return l.flags|=65536,a===fu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Ks(e,a,n)),!1}throw Error(s(435,l.tag))}return Ks(e,a,n),Ru(),!1}if(de)return t=_t.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Lc&&(e=Error(s(422),{cause:a}),$n(qt(e,l)))):(a!==Lc&&(t=Error(s(423),{cause:a}),$n(qt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=qt(a,l),n=js(e.stateNode,a,n),Pc(e,n),qe!==4&&(qe=2)),!1;var i=Error(s(520),{cause:a});if(i=qt(i,l),pi===null?pi=[i]:pi.push(i),qe!==4&&(qe=2),t===null)return!0;a=qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=js(l.stateNode,a,e),Pc(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ia===null||!ia.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ho(n),qo(n,e,l,a),Pc(l,n),!1}l=l.return}while(l!==null);return!1}var Ns=Error(s(461)),Je=!1;function it(e,t,l,a){t.child=e===null?Gf(t,null,l,a):Oa(t,e.child,l,a)}function Bo(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var u={};for(var o in a)o!=="ref"&&(u[o]=a[o])}else u=a;return Aa(t),a=is(e,t,l,u,i,n),o=us(),e!==null&&!Je?(cs(e,t,n),Nl(e,t,n)):(de&&o&&Yc(t),t.flags|=1,it(e,t,a,n),t.child)}function Yo(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Hc(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Go(e,t,i,a,n)):(e=nu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Ms(e,n)){var u=i.memoizedProps;if(l=l.compare,l=l!==null?l:Vn,l(u,a)&&e.ref===t.ref)return Nl(e,t,n)}return t.flags|=1,e=xl(i,a),e.ref=t.ref,e.return=t,t.child=e}function Go(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(Vn(i,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=i,Ms(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,Nl(e,t,n)}return Ts(e,t,l,a,n)}function Lo(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Qo(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&su(t,i!==null?i.cachePool:null),i!==null?Zf(t,i):ts(),Xf(t);else return a=t.lanes=536870912,Qo(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(su(t,i.cachePool),Zf(t,i),ta(),t.memoizedState=null):(e!==null&&su(t,null),ts(),ta());return it(e,t,n,l),t.child}function ci(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,l,a,n){var i=$c();return i=i===null?null:{parent:Xe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&su(t,null),ts(),Xf(t),e!==null&&rn(e,t,a,!0),t.childLanes=n,null}function Nu(e,t){return t=Eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zo(e,t,l){return Oa(t,e.child,null,l),e=Nu(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function fm(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(de){if(a.mode==="hidden")return e=Nu(t,a),t.lanes=536870912,ci(null,e);if(as(t),(e=Oe)?(e=lh(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jl!==null?{id:ul,overflow:cl}:null,retryLane:536870912,hydrationErrors:null},l=Ef(e),l.return=t,t.child=l,at=t,Oe=null)):e=null,e===null)throw $l(t);return t.lanes=536870912,null}return Nu(t,a)}var i=e.memoizedState;if(i!==null){var u=i.dehydrated;if(as(t),n)if(t.flags&256)t.flags&=-257,t=Zo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Je||rn(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=_e,a!==null&&(u=Ja(a,l),u!==0&&u!==i.retryLane))throw i.retryLane=u,ja(e,u),jt(a,e,u),Ns;Ru(),t=Zo(e,t,l)}else e=i.treeContext,Oe=Qt(u.nextSibling),at=t,de=!0,Kl=null,Gt=!1,e!==null&&kf(t,e),t=Nu(t,a),t.flags|=4096;return t}return e=xl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Ts(e,t,l,a,n){return Aa(t),l=is(e,t,l,a,void 0,n),a=us(),e!==null&&!Je?(cs(e,t,n),Nl(e,t,n)):(de&&a&&Yc(t),t.flags|=1,it(e,t,l,n),t.child)}function Xo(e,t,l,a,n,i){return Aa(t),t.updateQueue=null,l=Jf(t,a,l,n),Vf(e),a=us(),e!==null&&!Je?(cs(e,t,i),Nl(e,t,i)):(de&&a&&Yc(t),t.flags|=1,it(e,t,l,i),t.child)}function Vo(e,t,l,a,n){if(Aa(t),t.stateNode===null){var i=nn,u=l.contextType;typeof u=="object"&&u!==null&&(i=nt(u)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=zs,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Fc(t),u=l.contextType,i.context=typeof u=="object"&&u!==null?nt(u):nn,i.state=t.memoizedState,u=l.getDerivedStateFromProps,typeof u=="function"&&(Ss(t,l,u,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(u=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),u!==i.state&&zs.enqueueReplaceState(i,i.state,null),li(t,a,i,n),ti(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,m=Da(l,o);i.props=m;var j=i.context,O=l.contextType;u=nn,typeof O=="object"&&O!==null&&(u=nt(O));var D=l.getDerivedStateFromProps;O=typeof D=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,O||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||j!==u)&&Mo(t,i,a,u),Fl=!1;var N=t.memoizedState;i.state=N,li(t,a,i,n),ti(),j=t.memoizedState,o||N!==j||Fl?(typeof D=="function"&&(Ss(t,l,D,a),j=t.memoizedState),(m=Fl||Oo(t,l,m,a,N,j,u))?(O||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=j),i.props=a,i.state=j,i.context=u,a=m):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Ic(e,t),u=t.memoizedProps,O=Da(l,u),i.props=O,D=t.pendingProps,N=i.context,j=l.contextType,m=nn,typeof j=="object"&&j!==null&&(m=nt(j)),o=l.getDerivedStateFromProps,(j=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==D||N!==m)&&Mo(t,i,a,m),Fl=!1,N=t.memoizedState,i.state=N,li(t,a,i,n),ti();var T=t.memoizedState;u!==D||N!==T||Fl||e!==null&&e.dependencies!==null&&uu(e.dependencies)?(typeof o=="function"&&(Ss(t,l,o,a),T=t.memoizedState),(O=Fl||Oo(t,l,O,a,N,T,m)||e!==null&&e.dependencies!==null&&uu(e.dependencies))?(j||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,T,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,T,m)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=T),i.props=a,i.state=T,i.context=m,a=O):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Tu(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Oa(t,e.child,null,n),t.child=Oa(t,null,l,n)):it(e,t,l,n),t.memoizedState=i.state,e=t.child):e=Nl(e,t,n),e}function Jo(e,t,l,a){return Ta(),t.flags|=256,it(e,t,l,a),t.child}var Es={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function As(e){return{baseLanes:e,cachePool:Rf()}}function _s(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Ot),e}function Ko(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),u&&(n=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(de){if(n?ea(t):ta(),(e=Oe)?(e=lh(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Jl!==null?{id:ul,overflow:cl}:null,retryLane:536870912,hydrationErrors:null},l=Ef(e),l.return=t,t.child=l,at=t,Oe=null)):e=null,e===null)throw $l(t);return fr(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(ta(),n=t.mode,o=Eu({mode:"hidden",children:o},n),a=Na(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=As(l),a.childLanes=_s(e,u,l),t.memoizedState=Es,ci(null,a)):(ea(t),ks(t,o))}var m=e.memoizedState;if(m!==null&&(o=m.dehydrated,o!==null)){if(i)t.flags&256?(ea(t),t.flags&=-257,t=ws(e,t,l)):t.memoizedState!==null?(ta(),t.child=e.child,t.flags|=128,t=null):(ta(),o=a.fallback,n=t.mode,a=Eu({mode:"visible",children:a.children},n),o=Na(o,n,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,Oa(t,e.child,null,l),a=t.child,a.memoizedState=As(l),a.childLanes=_s(e,u,l),t.memoizedState=Es,t=ci(null,a));else if(ea(t),fr(o)){if(u=o.nextSibling&&o.nextSibling.dataset,u)var j=u.dgst;u=j,a=Error(s(419)),a.stack="",a.digest=u,$n({value:a,source:null,stack:null}),t=ws(e,t,l)}else if(Je||rn(e,t,l,!1),u=(l&e.childLanes)!==0,Je||u){if(u=_e,u!==null&&(a=Ja(u,l),a!==0&&a!==m.retryLane))throw m.retryLane=a,ja(e,a),jt(u,e,a),Ns;rr(o)||Ru(),t=ws(e,t,l)}else rr(o)?(t.flags|=192,t.child=e.child,t=null):(e=m.treeContext,Oe=Qt(o.nextSibling),at=t,de=!0,Kl=null,Gt=!1,e!==null&&kf(t,e),t=ks(t,a.children),t.flags|=4096);return t}return n?(ta(),o=a.fallback,n=t.mode,m=e.child,j=m.sibling,a=xl(m,{mode:"hidden",children:a.children}),a.subtreeFlags=m.subtreeFlags&65011712,j!==null?o=xl(j,o):(o=Na(o,n,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,ci(null,a),a=t.child,o=e.child.memoizedState,o===null?o=As(l):(n=o.cachePool,n!==null?(m=Xe._currentValue,n=n.parent!==m?{parent:m,pool:m}:n):n=Rf(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=_s(e,u,l),t.memoizedState=Es,ci(e.child,a)):(ea(t),l=e.child,e=l.sibling,l=xl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=l,t.memoizedState=null,l)}function ks(e,t){return t=Eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Eu(e,t){return e=At(22,e,null,t),e.lanes=0,e}function ws(e,t,l){return Oa(t,e.child,null,l),e=ks(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $o(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Xc(e.return,t,l)}function Os(e,t,l,a,n,i){var u=e.memoizedState;u===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(u.isBackwards=t,u.rendering=null,u.renderingStartTime=0,u.last=a,u.tail=l,u.tailMode=n,u.treeForkCount=i)}function Wo(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var u=Be.current,o=(u&2)!==0;if(o?(u=u&1|2,t.flags|=128):u&=1,G(Be,u),it(e,t,a,l),a=de?Kn:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$o(e,l,t);else if(e.tag===19)$o(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&pu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Os(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&pu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Os(t,!0,l,null,i,a);break;case"together":Os(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Nl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),na|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(rn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=xl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=xl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Ms(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&uu(e)))}function om(e,t,l){switch(t.tag){case 3:tt(t,t.stateNode.containerInfo),Wl(t,Xe,e.memoizedState.cache),Ta();break;case 27:case 5:Cl(t);break;case 4:tt(t,t.stateNode.containerInfo);break;case 10:Wl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,as(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(ea(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Ko(e,t,l):(ea(t),e=Nl(e,t,l),e!==null?e.sibling:null);ea(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(rn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Wo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Be,Be.current),a)break;return null;case 22:return t.lanes=0,Lo(e,t,l,t.pendingProps);case 24:Wl(t,Xe,e.memoizedState.cache)}return Nl(e,t,l)}function Fo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Ms(e,l)&&(t.flags&128)===0)return Je=!1,om(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,de&&(t.flags&1048576)!==0&&_f(t,Kn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e=="function")Hc(e)?(a=Da(e,a),t.tag=1,t=Vo(null,t,e,a,l)):(t.tag=0,t=Ts(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===F){t.tag=11,t=Bo(null,t,e,a,l);break e}else if(n===ie){t.tag=14,t=Yo(null,t,e,a,l);break e}}throw t=st(e)||e,Error(s(306,t,""))}}return t;case 0:return Ts(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Da(a,t.pendingProps),Vo(e,t,a,n,l);case 3:e:{if(tt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Ic(e,t),li(t,a,null,l);var u=t.memoizedState;if(a=u.cache,Wl(t,Xe,a),a!==i.cache&&Vc(t,[Xe],l,!0),ti(),a=u.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Jo(e,t,a,l);break e}else if(a!==n){n=qt(Error(s(424)),t),$n(n),t=Jo(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Oe=Qt(e.firstChild),at=t,de=!0,Kl=null,Gt=!0,l=Gf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ta(),a===n){t=Nl(e,t,l);break e}it(e,t,a,l)}t=t.child}return t;case 26:return Tu(e,t),e===null?(l=sh(t.type,null,t.pendingProps,null))?t.memoizedState=l:de||(l=t.type,e=t.pendingProps,a=Lu(ae.current).createElement(l),a[$e]=t,a[rt]=e,ut(a,l,e),Ze(a),t.stateNode=a):t.memoizedState=sh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Cl(t),e===null&&de&&(a=t.stateNode=ih(t.type,t.pendingProps,ae.current),at=t,Gt=!0,n=Oe,ra(t.type)?(or=n,Oe=Qt(a.firstChild)):Oe=n),it(e,t,t.pendingProps.children,l),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&de&&((n=a=Oe)&&(a=Gm(a,t.type,t.pendingProps,Gt),a!==null?(t.stateNode=a,at=t,Oe=Qt(a.firstChild),Gt=!1,n=!0):n=!1),n||$l(t)),Cl(t),n=t.type,i=t.pendingProps,u=e!==null?e.memoizedProps:null,a=i.children,ur(n,i)?a=null:u!==null&&ur(n,u)&&(t.flags|=32),t.memoizedState!==null&&(n=is(e,t,lm,null,null,l),zi._currentValue=n),Tu(e,t),it(e,t,a,l),t.child;case 6:return e===null&&de&&((e=l=Oe)&&(l=Lm(l,t.pendingProps,Gt),l!==null?(t.stateNode=l,at=t,Oe=null,e=!0):e=!1),e||$l(t)),null;case 13:return Ko(e,t,l);case 4:return tt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Oa(t,null,a,l):it(e,t,a,l),t.child;case 11:return Bo(e,t,t.type,t.pendingProps,l);case 7:return it(e,t,t.pendingProps,l),t.child;case 8:return it(e,t,t.pendingProps.children,l),t.child;case 12:return it(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Wl(t,t.type,a.value),it(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Aa(t),n=nt(n),a=a(n),t.flags|=1,it(e,t,a,l),t.child;case 14:return Yo(e,t,t.type,t.pendingProps,l);case 15:return Go(e,t,t.type,t.pendingProps,l);case 19:return Wo(e,t,l);case 31:return fm(e,t,l);case 22:return Lo(e,t,l,t.pendingProps);case 24:return Aa(t),a=nt(Xe),e===null?(n=$c(),n===null&&(n=_e,i=Jc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Fc(t),Wl(t,Xe,n)):((e.lanes&l)!==0&&(Ic(e,t),li(t,null,null,l),ti()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Wl(t,Xe,a)):(a=i.cache,Wl(t,Xe,a),a!==n.cache&&Vc(t,[Xe],l,!0))),it(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function Tl(e){e.flags|=4}function Ds(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Nd())e.flags|=8192;else throw wa=fu,Wc}else e.flags&=-16777217}function Io(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!hh(t))if(Nd())e.flags|=8192;else throw wa=fu,Wc}function Au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jt():536870912,e.lanes|=t,Sn|=t)}function si(e,t){if(!de)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Me(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function dm(e,t,l){var a=t.pendingProps;switch(Gc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Me(t),null;case 1:return Me(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Sl(Xe),ke(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(sn(t)?Tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Qc())),Me(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(Tl(t),i!==null?(Me(t),Io(t,i)):(Me(t),Ds(t,n,null,a,l))):i?i!==e.memoizedState?(Tl(t),Me(t),Io(t,i)):(Me(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Tl(t),Me(t),Ds(t,n,e,a,l)),null;case 27:if(Ba(t),l=ae.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Me(t),null}e=Z.current,sn(t)?wf(t):(e=ih(n,a,l),t.stateNode=e,Tl(t))}return Me(t),null;case 5:if(Ba(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Tl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return Me(t),null}if(i=Z.current,sn(t))wf(t);else{var u=Lu(ae.current);switch(i){case 1:i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=u.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=u.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=u.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?u.createElement("select",{is:a.is}):u.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?u.createElement(n,{is:a.is}):u.createElement(n)}}i[$e]=t,i[rt]=a;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)i.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=i;e:switch(ut(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Tl(t)}}return Me(t),Ds(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,sn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=at,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[$e]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Kd(e.nodeValue,l)),e||$l(t,!0)}else e=Lu(e).createTextNode(a),e[$e]=t,t.stateNode=e}return Me(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=sn(t),l!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[$e]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),e=!1}else l=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Me(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=sn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[$e]=t}else Ta(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Me(t),n=!1}else n=Qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Au(t,t.updateQueue),Me(t),null);case 4:return ke(),e===null&&tr(t.stateNode.containerInfo),Me(t),null;case 10:return Sl(t.type),Me(t),null;case 19:if(C(Be),a=t.memoizedState,a===null)return Me(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)si(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=pu(e),i!==null){for(t.flags|=128,si(a,!1),e=i.updateQueue,t.updateQueue=e,Au(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Tf(l,e),l=l.sibling;return G(Be,Be.current&1|2),de&&bl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&lt()>Mu&&(t.flags|=128,n=!0,si(a,!1),t.lanes=4194304)}else{if(!n)if(e=pu(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Au(t,e),si(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!de)return Me(t),null}else 2*lt()-a.renderingStartTime>Mu&&l!==536870912&&(t.flags|=128,n=!0,si(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=lt(),e.sibling=null,l=Be.current,G(Be,n?l&1|2:l&1),de&&bl(t,a.treeForkCount),e):(Me(t),null);case 22:case 23:return kt(t),ls(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Me(t),t.subtreeFlags&6&&(t.flags|=8192)):Me(t),l=t.updateQueue,l!==null&&Au(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&C(_a),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sl(Xe),Me(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function hm(e,t){switch(Gc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sl(Xe),ke(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ba(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(s(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ta()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return C(Be),null;case 4:return ke(),null;case 10:return Sl(t.type),null;case 22:case 23:return kt(t),ls(),e!==null&&C(_a),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sl(Xe),null;case 25:return null;default:return null}}function Po(e,t){switch(Gc(t),t.tag){case 3:Sl(Xe),ke();break;case 26:case 27:case 5:Ba(t);break;case 4:ke();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:C(Be);break;case 10:Sl(t.type);break;case 22:case 23:kt(t),ls(),e!==null&&C(_a);break;case 24:Sl(Xe)}}function ri(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,u=l.inst;a=i(),u.destroy=a}l=l.next}while(l!==n)}}catch(o){Se(t,t.return,o)}}function la(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var u=a.inst,o=u.destroy;if(o!==void 0){u.destroy=void 0,n=t;var m=l,j=o;try{j()}catch(O){Se(n,m,O)}}}a=a.next}while(a!==i)}}catch(O){Se(t,t.return,O)}}function ed(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Qf(t,l)}catch(a){Se(e,e.return,a)}}}function td(e,t,l){l.props=Da(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Se(e,t,a)}}function fi(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Se(e,t,n)}}function sl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Se(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Se(e,t,n)}else l.current=null}function ld(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Se(e,e.return,n)}}function Cs(e,t,l){try{var a=e.stateNode;Rm(a,e.type,l,t),a[rt]=t}catch(n){Se(e,e.return,n)}}function ad(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ra(e.type)||e.tag===4}function Rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ad(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&&ra(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 Us(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=$t));else if(a!==4&&(a===27&&ra(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Us(e,t,l),e=e.sibling;e!==null;)Us(e,t,l),e=e.sibling}function _u(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&ra(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(_u(e,t,l),e=e.sibling;e!==null;)_u(e,t,l),e=e.sibling}function nd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ut(t,a,l),t[$e]=e,t[rt]=l}catch(i){Se(e,e.return,i)}}var El=!1,Ke=!1,Hs=!1,id=typeof WeakSet=="function"?WeakSet:Set,et=null;function pm(e,t){if(e=e.containerInfo,nr=$u,e=gf(e),wc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var u=0,o=-1,m=-1,j=0,O=0,D=e,N=null;t:for(;;){for(var T;D!==l||n!==0&&D.nodeType!==3||(o=u+n),D!==i||a!==0&&D.nodeType!==3||(m=u+a),D.nodeType===3&&(u+=D.nodeValue.length),(T=D.firstChild)!==null;)N=D,D=T;for(;;){if(D===e)break t;if(N===l&&++j===n&&(o=u),N===i&&++O===a&&(m=u),(T=D.nextSibling)!==null)break;D=N,N=D.parentNode}D=T}l=o===-1||m===-1?null:{start:o,end:m}}else l=null}l=l||{start:0,end:0}}else l=null;for(ir={focusedElem:e,selectionRange:l},$u=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var X=Da(l.type,n);e=a.getSnapshotBeforeUpdate(X,i),a.__reactInternalSnapshotBeforeUpdate=e}catch($){Se(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)sr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sr(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function ud(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:_l(e,l),a&4&&ri(5,l);break;case 1:if(_l(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(u){Se(l,l.return,u)}else{var n=Da(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(u){Se(l,l.return,u)}}a&64&&ed(l),a&512&&fi(l,l.return);break;case 3:if(_l(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Qf(e,t)}catch(u){Se(l,l.return,u)}}break;case 27:t===null&&a&4&&nd(l);case 26:case 5:_l(e,l),t===null&&a&4&&ld(l),a&512&&fi(l,l.return);break;case 12:_l(e,l);break;case 31:_l(e,l),a&4&&rd(e,l);break;case 13:_l(e,l),a&4&&fd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=jm.bind(null,l),Qm(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Ke,n=El;var i=Ke;El=a,(Ke=t)&&!i?kl(e,l,(l.subtreeFlags&8772)!==0):_l(e,l),El=n,Ke=i}break;case 30:break;default:_l(e,l)}}function cd(e){var t=e.alternate;t!==null&&(e.alternate=null,cd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Kt(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 Ce=null,bt=!1;function Al(e,t,l){for(l=l.child;l!==null;)sd(e,t,l),l=l.sibling}function sd(e,t,l){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(ql,l)}catch{}switch(l.tag){case 26:Ke||sl(l,t),Al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ke||sl(l,t);var a=Ce,n=bt;ra(l.type)&&(Ce=l.stateNode,bt=!1),Al(e,t,l),bi(l.stateNode),Ce=a,bt=n;break;case 5:Ke||sl(l,t);case 6:if(a=Ce,n=bt,Ce=null,Al(e,t,l),Ce=a,bt=n,Ce!==null)if(bt)try{(Ce.nodeType===9?Ce.body:Ce.nodeName==="HTML"?Ce.ownerDocument.body:Ce).removeChild(l.stateNode)}catch(i){Se(l,t,i)}else try{Ce.removeChild(l.stateNode)}catch(i){Se(l,t,i)}break;case 18:Ce!==null&&(bt?(e=Ce,eh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),kn(e)):eh(Ce,l.stateNode));break;case 4:a=Ce,n=bt,Ce=l.stateNode.containerInfo,bt=!0,Al(e,t,l),Ce=a,bt=n;break;case 0:case 11:case 14:case 15:la(2,l,t),Ke||la(4,l,t),Al(e,t,l);break;case 1:Ke||(sl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&td(l,t,a)),Al(e,t,l);break;case 21:Al(e,t,l);break;case 22:Ke=(a=Ke)||l.memoizedState!==null,Al(e,t,l),Ke=a;break;default:Al(e,t,l)}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{kn(e)}catch(l){Se(t,t.return,l)}}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kn(e)}catch(l){Se(t,t.return,l)}}function mm(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new id),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new id),t;default:throw Error(s(435,e.tag))}}function ku(e,t){var l=mm(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Nm.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,u=t,o=u;e:for(;o!==null;){switch(o.tag){case 27:if(ra(o.type)){Ce=o.stateNode,bt=!1;break e}break;case 5:Ce=o.stateNode,bt=!1;break e;case 3:case 4:Ce=o.stateNode.containerInfo,bt=!0;break e}o=o.return}if(Ce===null)throw Error(s(160));sd(i,u,n),Ce=null,bt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)od(t,e),t=t.sibling}var Ft=null;function od(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),St(e),a&4&&(la(3,e,e.return),ri(3,e),la(5,e,e.return));break;case 1:vt(t,e),St(e),a&512&&(Ke||l===null||sl(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ft;if(vt(t,e),St(e),a&512&&(Ke||l===null||sl(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[nl]||i[$e]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),ut(i,a,l),i[$e]=e,Ze(i),a=i;break e;case"link":var u=oh("link","href",n).get(a+(l.href||""));if(u){for(var o=0;o<u.length;o++)if(i=u[o],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){u.splice(o,1);break t}}i=n.createElement(a),ut(i,a,l),n.head.appendChild(i);break;case"meta":if(u=oh("meta","content",n).get(a+(l.content||""))){for(o=0;o<u.length;o++)if(i=u[o],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){u.splice(o,1);break t}}i=n.createElement(a),ut(i,a,l),n.head.appendChild(i);break;default:throw Error(s(468,a))}i[$e]=e,Ze(i),a=i}e.stateNode=a}else dh(n,e.type,e.stateNode);else e.stateNode=fh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?dh(n,e.type,e.stateNode):fh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Cs(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),St(e),a&512&&(Ke||l===null||sl(l,l.return)),l!==null&&a&4&&Cs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),St(e),a&512&&(Ke||l===null||sl(l,l.return)),e.flags&32){n=e.stateNode;try{te(n,"")}catch(X){Se(e,e.return,X)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Cs(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Hs=!0);break;case 6:if(vt(t,e),St(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(X){Se(e,e.return,X)}}break;case 3:if(Xu=null,n=Ft,Ft=Qu(t.containerInfo),vt(t,e),Ft=n,St(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{kn(t.containerInfo)}catch(X){Se(e,e.return,X)}Hs&&(Hs=!1,dd(e));break;case 4:a=Ft,Ft=Qu(e.stateNode.containerInfo),vt(t,e),St(e),Ft=a;break;case 12:vt(t,e),St(e);break;case 31:vt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 13:vt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ou=lt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 22:n=e.memoizedState!==null;var m=l!==null&&l.memoizedState!==null,j=El,O=Ke;if(El=j||n,Ke=O||m,vt(t,e),Ke=O,El=j,St(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||m||El||Ke||Ca(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){m=l=t;try{if(i=m.stateNode,n)u=i.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{o=m.stateNode;var D=m.memoizedProps.style,N=D!=null&&D.hasOwnProperty("display")?D.display:null;o.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(X){Se(m,m.return,X)}}}else if(t.tag===6){if(l===null){m=t;try{m.stateNode.nodeValue=n?"":m.memoizedProps}catch(X){Se(m,m.return,X)}}}else if(t.tag===18){if(l===null){m=t;try{var T=m.stateNode;n?th(T,!0):th(m.stateNode,!1)}catch(X){Se(m,m.return,X)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ku(e,l))));break;case 19:vt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 30:break;case 21:break;default:vt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ad(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,i=Rs(e);_u(e,i,n);break;case 5:var u=l.stateNode;l.flags&32&&(te(u,""),l.flags&=-33);var o=Rs(e);_u(e,o,u);break;case 3:case 4:var m=l.stateNode.containerInfo,j=Rs(e);Us(e,j,m);break;default:throw Error(s(161))}}catch(O){Se(e,e.return,O)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _l(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ud(e,t.alternate,t),t=t.sibling}function Ca(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:la(4,t,t.return),Ca(t);break;case 1:sl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&td(t,t.return,l),Ca(t);break;case 27:bi(t.stateNode);case 26:case 5:sl(t,t.return),Ca(t);break;case 22:t.memoizedState===null&&Ca(t);break;case 30:Ca(t);break;default:Ca(t)}e=e.sibling}}function kl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,u=i.flags;switch(i.tag){case 0:case 11:case 15:kl(n,i,l),ri(4,i);break;case 1:if(kl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(j){Se(a,a.return,j)}if(a=i,n=a.updateQueue,n!==null){var o=a.stateNode;try{var m=n.shared.hiddenCallbacks;if(m!==null)for(n.shared.hiddenCallbacks=null,n=0;n<m.length;n++)Lf(m[n],o)}catch(j){Se(a,a.return,j)}}l&&u&64&&ed(i),fi(i,i.return);break;case 27:nd(i);case 26:case 5:kl(n,i,l),l&&a===null&&u&4&&ld(i),fi(i,i.return);break;case 12:kl(n,i,l);break;case 31:kl(n,i,l),l&&u&4&&rd(n,i);break;case 13:kl(n,i,l),l&&u&4&&fd(n,i);break;case 22:i.memoizedState===null&&kl(n,i,l),fi(i,i.return);break;case 30:break;default:kl(n,i,l)}t=t.sibling}}function qs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Wn(l))}function Bs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wn(e))}function It(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hd(e,t,l,a),t=t.sibling}function hd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:It(e,t,l,a),n&2048&&ri(9,t);break;case 1:It(e,t,l,a);break;case 3:It(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wn(e)));break;case 12:if(n&2048){It(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,u=i.id,o=i.onPostCommit;typeof o=="function"&&o(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(m){Se(t,t.return,m)}}else It(e,t,l,a);break;case 31:It(e,t,l,a);break;case 13:It(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,u=t.alternate,t.memoizedState!==null?i._visibility&2?It(e,t,l,a):oi(e,t):i._visibility&2?It(e,t,l,a):(i._visibility|=2,xn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&qs(u,t);break;case 24:It(e,t,l,a),n&2048&&Bs(t.alternate,t);break;default:It(e,t,l,a)}}function xn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,u=t,o=l,m=a,j=u.flags;switch(u.tag){case 0:case 11:case 15:xn(i,u,o,m,n),ri(8,u);break;case 23:break;case 22:var O=u.stateNode;u.memoizedState!==null?O._visibility&2?xn(i,u,o,m,n):oi(i,u):(O._visibility|=2,xn(i,u,o,m,n)),n&&j&2048&&qs(u.alternate,u);break;case 24:xn(i,u,o,m,n),n&&j&2048&&Bs(u.alternate,u);break;default:xn(i,u,o,m,n)}t=t.sibling}}function oi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:oi(l,a),n&2048&&qs(a.alternate,a);break;case 24:oi(l,a),n&2048&&Bs(a.alternate,a);break;default:oi(l,a)}t=t.sibling}}var di=8192;function bn(e,t,l){if(e.subtreeFlags&di)for(e=e.child;e!==null;)pd(e,t,l),e=e.sibling}function pd(e,t,l){switch(e.tag){case 26:bn(e,t,l),e.flags&di&&e.memoizedState!==null&&t0(l,Ft,e.memoizedState,e.memoizedProps);break;case 5:bn(e,t,l);break;case 3:case 4:var a=Ft;Ft=Qu(e.stateNode.containerInfo),bn(e,t,l),Ft=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=di,di=16777216,bn(e,t,l),di=a):bn(e,t,l));break;default:bn(e,t,l)}}function md(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 hi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];et=a,yd(a,e)}md(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gd(e),e=e.sibling}function gd(e){switch(e.tag){case 0:case 11:case 15:hi(e),e.flags&2048&&la(9,e,e.return);break;case 3:hi(e);break;case 12:hi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wu(e)):hi(e);break;default:hi(e)}}function wu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];et=a,yd(a,e)}md(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:la(8,t,t.return),wu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,wu(t));break;default:wu(t)}e=e.sibling}}function yd(e,t){for(;et!==null;){var l=et;switch(l.tag){case 0:case 11:case 15:la(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Wn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,et=a;else e:for(l=e;et!==null;){a=et;var n=a.sibling,i=a.return;if(cd(a),a===l){et=null;break e}if(n!==null){n.return=i,et=n;break e}et=i}}}var gm={getCacheForType:function(e){var t=nt(Xe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return nt(Xe).controller.signal}},ym=typeof WeakMap=="function"?WeakMap:Map,be=0,_e=null,ue=null,re=0,ve=0,wt=null,aa=!1,vn=!1,Ys=!1,wl=0,qe=0,na=0,Ra=0,Gs=0,Ot=0,Sn=0,pi=null,zt=null,Ls=!1,Ou=0,xd=0,Mu=1/0,Du=null,ia=null,Fe=0,ua=null,zn=null,Ol=0,Qs=0,Zs=null,bd=null,mi=0,Xs=null;function Mt(){return(be&2)!==0&&re!==0?re&-re:_.T!==null?Fs():Ka()}function vd(){if(Ot===0)if((re&536870912)===0||de){var e=Za;Za<<=1,(Za&3932160)===0&&(Za=262144),Ot=e}else Ot=536870912;return e=_t.current,e!==null&&(e.flags|=32),Ot}function jt(e,t,l){(e===_e&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(jn(e,0),ca(e,re,Ot,!1)),Bl(e,l),((be&2)===0||e!==_e)&&(e===_e&&((be&2)===0&&(Ra|=l),qe===4&&ca(e,re,Ot,!1)),rl(e))}function Sd(e,t,l){if((be&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ya(e,t),n=a?vm(e,t):Js(e,t,!0),i=a;do{if(n===0){vn&&!a&&ca(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!xm(l)){n=Js(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var o=e;n=pi;var m=o.current.memoizedState.isDehydrated;if(m&&(jn(o,u).flags|=256),u=Js(o,u,!1),u!==2){if(Ys&&!m){o.errorRecoveryDisabledLanes|=i,Ra|=i,n=4;break e}i=zt,zt=n,i!==null&&(zt===null?zt=i:zt.push.apply(zt,i))}n=u}if(i=!1,n!==2)continue}}if(n===1){jn(e,0),ca(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:ca(a,t,Ot,!aa);break e;case 2:zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=Ou+300-lt(),10<n)){if(ca(a,t,Ot,!aa),Xa(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=Id(zd.bind(null,a,l,zt,Du,Ls,t,Ot,Ra,Sn,aa,i,"Throttled",-0,0),n);break e}zd(a,l,zt,Du,Ls,t,Ot,Ra,Sn,aa,i,null,-0,0)}}break}while(!0);rl(e)}function zd(e,t,l,a,n,i,u,o,m,j,O,D,N,T){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},pd(t,i,D);var X=(i&62914560)===i?Ou-lt():(i&4194048)===i?xd-lt():0;if(X=l0(D,X),X!==null){Ol=i,e.cancelPendingCommit=X(wd.bind(null,e,t,i,l,a,n,u,o,m,O,D,null,N,T)),ca(e,i,u,!j);return}}wd(e,t,i,l,a,n,u,o,m)}function xm(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!Et(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ca(e,t,l,a){t&=~Gs,t&=~Ra,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-pt(n),u=1<<i;a[i]=-1,n&=~u}l!==0&&xa(e,l,t)}function Cu(){return(be&6)===0?(gi(0),!1):!0}function Vs(){if(ue!==null){if(ve===0)var e=ue.return;else e=ue,vl=Ea=null,ss(e),hn=null,In=0,e=ue;for(;e!==null;)Po(e.alternate,e),e=e.return;ue=null}}function jn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,qm(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ol=0,Vs(),_e=e,ue=l=xl(e.current,null),re=t,ve=0,wt=null,aa=!1,vn=ya(e,t),Ys=!1,Sn=Ot=Gs=Ra=na=qe=0,zt=pi=null,Ls=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-pt(a),i=1<<n;t|=e[n],a&=~i}return wl=t,tu(),l}function jd(e,t){ee=null,_.H=ui,t===dn||t===ru?(t=qf(),ve=3):t===Wc?(t=qf(),ve=4):ve=t===Ns?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,wt=t,ue===null&&(qe=1,ju(e,qt(t,e.current)))}function Nd(){var e=_t.current;return e===null?!0:(re&4194048)===re?Lt===null:(re&62914560)===re||(re&536870912)!==0?e===Lt:!1}function Td(){var e=_.H;return _.H=ui,e===null?ui:e}function Ed(){var e=_.A;return _.A=gm,e}function Ru(){qe=4,aa||(re&4194048)!==re&&_t.current!==null||(vn=!0),(na&134217727)===0&&(Ra&134217727)===0||_e===null||ca(_e,re,Ot,!1)}function Js(e,t,l){var a=be;be|=2;var n=Td(),i=Ed();(_e!==e||re!==t)&&(Du=null,jn(e,t)),t=!1;var u=qe;e:do try{if(ve!==0&&ue!==null){var o=ue,m=wt;switch(ve){case 8:Vs(),u=6;break e;case 3:case 2:case 9:case 6:_t.current===null&&(t=!0);var j=ve;if(ve=0,wt=null,Nn(e,o,m,j),l&&vn){u=0;break e}break;default:j=ve,ve=0,wt=null,Nn(e,o,m,j)}}bm(),u=qe;break}catch(O){jd(e,O)}while(!0);return t&&e.shellSuspendCounter++,vl=Ea=null,be=a,_.H=n,_.A=i,ue===null&&(_e=null,re=0,tu()),u}function bm(){for(;ue!==null;)Ad(ue)}function vm(e,t){var l=be;be|=2;var a=Td(),n=Ed();_e!==e||re!==t?(Du=null,Mu=lt()+500,jn(e,t)):vn=ya(e,t);e:do try{if(ve!==0&&ue!==null){t=ue;var i=wt;t:switch(ve){case 1:ve=0,wt=null,Nn(e,t,i,1);break;case 2:case 9:if(Uf(i)){ve=0,wt=null,_d(t);break}t=function(){ve!==2&&ve!==9||_e!==e||(ve=7),rl(e)},i.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Uf(i)?(ve=0,wt=null,_d(t)):(ve=0,wt=null,Nn(e,t,i,7));break;case 5:var u=null;switch(ue.tag){case 26:u=ue.memoizedState;case 5:case 27:var o=ue;if(u?hh(u):o.stateNode.complete){ve=0,wt=null;var m=o.sibling;if(m!==null)ue=m;else{var j=o.return;j!==null?(ue=j,Uu(j)):ue=null}break t}}ve=0,wt=null,Nn(e,t,i,5);break;case 6:ve=0,wt=null,Nn(e,t,i,6);break;case 8:Vs(),qe=6;break e;default:throw Error(s(462))}}Sm();break}catch(O){jd(e,O)}while(!0);return vl=Ea=null,_.H=a,_.A=n,be=l,ue!==null?0:(_e=null,re=0,tu(),qe)}function Sm(){for(;ue!==null&&!Ci();)Ad(ue)}function Ad(e){var t=Fo(e.alternate,e,wl);e.memoizedProps=e.pendingProps,t===null?Uu(e):ue=t}function _d(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xo(l,t,t.pendingProps,t.type,void 0,re);break;case 11:t=Xo(l,t,t.pendingProps,t.type.render,t.ref,re);break;case 5:ss(t);default:Po(l,t),t=ue=Tf(t,wl),t=Fo(l,t,wl)}e.memoizedProps=e.pendingProps,t===null?Uu(e):ue=t}function Nn(e,t,l,a){vl=Ea=null,ss(t),hn=null,In=0;var n=t.return;try{if(rm(e,n,t,l,re)){qe=1,ju(e,qt(l,e.current)),ue=null;return}}catch(i){if(n!==null)throw ue=n,i;qe=1,ju(e,qt(l,e.current)),ue=null;return}t.flags&32768?(de||a===1?e=!0:vn||(re&536870912)!==0?e=!1:(aa=e=!0,(a===2||a===9||a===3||a===6)&&(a=_t.current,a!==null&&a.tag===13&&(a.flags|=16384))),kd(t,e)):Uu(t)}function Uu(e){var t=e;do{if((t.flags&32768)!==0){kd(t,aa);return}e=t.return;var l=dm(t.alternate,t,wl);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);qe===0&&(qe=5)}function kd(e,t){do{var l=hm(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);qe=6,ue=null}function wd(e,t,l,a,n,i,u,o,m){e.cancelPendingCommit=null;do Hu();while(Fe!==0);if((be&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,i|=Rc,Yl(e,l,i,u,o,m),e===_e&&(ue=_e=null,re=0),zn=t,ua=e,Ol=l,Qs=i,Zs=n,bd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tm(Hl,function(){return Rd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=_.T,_.T=null,n=L.p,L.p=2,u=be,be|=4;try{pm(e,t,l)}finally{be=u,L.p=n,_.T=a}}Fe=1,Od(),Md(),Dd()}}function Od(){if(Fe===1){Fe=0;var e=ua,t=zn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=_.T,_.T=null;var a=L.p;L.p=2;var n=be;be|=4;try{od(t,e);var i=ir,u=gf(e.containerInfo),o=i.focusedElem,m=i.selectionRange;if(u!==o&&o&&o.ownerDocument&&mf(o.ownerDocument.documentElement,o)){if(m!==null&&wc(o)){var j=m.start,O=m.end;if(O===void 0&&(O=j),"selectionStart"in o)o.selectionStart=j,o.selectionEnd=Math.min(O,o.value.length);else{var D=o.ownerDocument||document,N=D&&D.defaultView||window;if(N.getSelection){var T=N.getSelection(),X=o.textContent.length,$=Math.min(m.start,X),Te=m.end===void 0?$:Math.min(m.end,X);!T.extend&&$>Te&&(u=Te,Te=$,$=u);var S=pf(o,$),y=pf(o,Te);if(S&&y&&(T.rangeCount!==1||T.anchorNode!==S.node||T.anchorOffset!==S.offset||T.focusNode!==y.node||T.focusOffset!==y.offset)){var z=D.createRange();z.setStart(S.node,S.offset),T.removeAllRanges(),$>Te?(T.addRange(z),T.extend(y.node,y.offset)):(z.setEnd(y.node,y.offset),T.addRange(z))}}}}for(D=[],T=o;T=T.parentNode;)T.nodeType===1&&D.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<D.length;o++){var M=D[o];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}$u=!!nr,ir=nr=null}finally{be=n,L.p=a,_.T=l}}e.current=t,Fe=2}}function Md(){if(Fe===2){Fe=0;var e=ua,t=zn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=_.T,_.T=null;var a=L.p;L.p=2;var n=be;be|=4;try{ud(e,t.alternate,t)}finally{be=n,L.p=a,_.T=l}}Fe=3}}function Dd(){if(Fe===4||Fe===3){Fe=0,Ul();var e=ua,t=zn,l=Ol,a=bd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,zn=ua=null,Cd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(ia=null),hl(l),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(ql,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=_.T,n=L.p,L.p=2,_.T=null;try{for(var i=e.onRecoverableError,u=0;u<a.length;u++){var o=a[u];i(o.value,{componentStack:o.stack})}}finally{_.T=t,L.p=n}}(Ol&3)!==0&&Hu(),rl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Xs?mi++:(mi=0,Xs=e):mi=0,gi(0)}}function Cd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wn(t)))}function Hu(){return Od(),Md(),Dd(),Rd()}function Rd(){if(Fe!==5)return!1;var e=ua,t=Qs;Qs=0;var l=hl(Ol),a=_.T,n=L.p;try{L.p=32>l?32:l,_.T=null,l=Zs,Zs=null;var i=ua,u=Ol;if(Fe=0,zn=ua=null,Ol=0,(be&6)!==0)throw Error(s(331));var o=be;if(be|=4,gd(i.current),hd(i,i.current,u,l),be=o,gi(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(ql,i)}catch{}return!0}finally{L.p=n,_.T=a,Cd(e,t)}}function Ud(e,t,l){t=qt(l,t),t=js(e.stateNode,t,2),e=Pl(e,t,2),e!==null&&(Bl(e,2),rl(e))}function Se(e,t,l){if(e.tag===3)Ud(e,e,l);else for(;t!==null;){if(t.tag===3){Ud(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ia===null||!ia.has(a))){e=qt(l,e),l=Ho(2),a=Pl(t,l,2),a!==null&&(qo(l,a,t,e),Bl(a,2),rl(a));break}}t=t.return}}function Ks(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new ym;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ys=!0,n.add(l),e=zm.bind(null,e,t,l),t.then(e,e))}function zm(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,_e===e&&(re&l)===l&&(qe===4||qe===3&&(re&62914560)===re&&300>lt()-Ou?(be&2)===0&&jn(e,0):Gs|=l,Sn===re&&(Sn=0)),rl(e)}function Hd(e,t){t===0&&(t=Jt()),e=ja(e,t),e!==null&&(Bl(e,t),rl(e))}function jm(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(e,l)}function Nm(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Hd(e,l)}function Tm(e,t){return Cn(e,t)}var qu=null,Tn=null,$s=!1,Bu=!1,Ws=!1,sa=0;function rl(e){e!==Tn&&e.next===null&&(Tn===null?qu=Tn=e:Tn=Tn.next=e),Bu=!0,$s||($s=!0,Am())}function gi(e,t){if(!Ws&&Bu){Ws=!0;do for(var l=!1,a=qu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var u=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-pt(42|e)+1)-1,i&=n&~(u&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Gd(a,i))}else i=re,i=Xa(a,a===_e?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||ya(a,i)||(l=!0,Gd(a,i));a=a.next}while(l);Ws=!1}}function Em(){qd()}function qd(){Bu=$s=!1;var e=0;sa!==0&&Hm()&&(e=sa);for(var t=lt(),l=null,a=qu;a!==null;){var n=a.next,i=Bd(a,t);i===0?(a.next=null,l===null?qu=n:l.next=n,n===null&&(Tn=l)):(l=a,(e!==0||(i&3)!==0)&&(Bu=!0)),a=n}Fe!==0&&Fe!==5||gi(e),sa!==0&&(sa=0)}function Bd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var u=31-pt(i),o=1<<u,m=n[u];m===-1?((o&l)===0||(o&a)!==0)&&(n[u]=pc(o,t)):m<=t&&(e.expiredLanes|=o),i&=~o}if(t=_e,l=re,l=Xa(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&La(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ya(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&La(a),hl(l)){case 2:case 8:l=Ui;break;case 32:l=Hl;break;case 268435456:l=Qa;break;default:l=Hl}return a=Yd.bind(null,e),l=Cn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&La(a),e.callbackPriority=2,e.callbackNode=null,2}function Yd(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Hu()&&e.callbackNode!==l)return null;var a=re;return a=Xa(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Sd(e,a,t),Bd(e,lt()),e.callbackNode!=null&&e.callbackNode===l?Yd.bind(null,e):null)}function Gd(e,t){if(Hu())return null;Sd(e,t,!0)}function Am(){Bm(function(){(be&6)!==0?Cn(Ri,Em):qd()})}function Fs(){if(sa===0){var e=fn;e===0&&(e=dl,dl<<=1,(dl&261888)===0&&(dl=256)),sa=e}return sa}function Ld(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xl(""+e)}function Qd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function _m(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Ld((n[rt]||null).action),u=a.submitter;u&&(t=(t=u[rt]||null)?Ld(t.formAction):u.getAttribute("formAction"),t!==null&&(i=t,u=null));var o=new Fi("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(sa!==0){var m=u?Qd(n,u):new FormData(n);ys(l,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(o.preventDefault(),m=u?Qd(n,u):new FormData(n),ys(l,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var Is=0;Is<Cc.length;Is++){var Ps=Cc[Is],km=Ps.toLowerCase(),wm=Ps[0].toUpperCase()+Ps.slice(1);Wt(km,"on"+wm)}Wt(bf,"onAnimationEnd"),Wt(vf,"onAnimationIteration"),Wt(Sf,"onAnimationStart"),Wt("dblclick","onDoubleClick"),Wt("focusin","onFocus"),Wt("focusout","onBlur"),Wt(Vp,"onTransitionRun"),Wt(Jp,"onTransitionStart"),Wt(Kp,"onTransitionCancel"),Wt(zf,"onTransitionEnd"),Ql("onMouseEnter",["mouseout","mouseover"]),Ql("onMouseLeave",["mouseout","mouseover"]),Ql("onPointerEnter",["pointerout","pointerover"]),Ql("onPointerLeave",["pointerout","pointerover"]),ml("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ml("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ml("onBeforeInput",["compositionend","keypress","textInput","paste"]),ml("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ml("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yi="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(" "),Om=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yi));function Zd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var u=a.length-1;0<=u;u--){var o=a[u],m=o.instance,j=o.currentTarget;if(o=o.listener,m!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=j;try{i(n)}catch(O){eu(O)}n.currentTarget=null,i=m}else for(u=0;u<a.length;u++){if(o=a[u],m=o.instance,j=o.currentTarget,o=o.listener,m!==i&&n.isPropagationStopped())break e;i=o,n.currentTarget=j;try{i(n)}catch(O){eu(O)}n.currentTarget=null,i=m}}}}function ce(e,t){var l=t[ba];l===void 0&&(l=t[ba]=new Set);var a=e+"__bubble";l.has(a)||(Xd(t,e,2,!1),l.add(a))}function er(e,t,l){var a=0;t&&(a|=4),Xd(l,e,a,t)}var Yu="_reactListening"+Math.random().toString(36).slice(2);function tr(e){if(!e[Yu]){e[Yu]=!0,Yi.forEach(function(l){l!=="selectionchange"&&(Om.has(l)||er(l,!1,e),er(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yu]||(t[Yu]=!0,er("selectionchange",!1,t))}}function Xd(e,t,l,a){switch(vh(t)){case 2:var n=i0;break;case 8:n=u0;break;default:n=gr}l=n.bind(null,t,l,e),n=void 0,!Sc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function lr(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var u=a.tag;if(u===3||u===4){var o=a.stateNode.containerInfo;if(o===n)break;if(u===4)for(u=a.return;u!==null;){var m=u.tag;if((m===3||m===4)&&u.stateNode.containerInfo===n)return;u=u.return}for(;o!==null;){if(u=Dt(o),u===null)return;if(m=u.tag,m===5||m===6||m===26||m===27){a=i=u;continue e}o=o.parentNode}}a=a.return}Kr(function(){var j=i,O=bc(l),D=[];e:{var N=jf.get(e);if(N!==void 0){var T=Fi,X=e;switch(e){case"keypress":if($i(l)===0)break e;case"keydown":case"keyup":T=Np;break;case"focusin":X="focus",T=Tc;break;case"focusout":X="blur",T=Tc;break;case"beforeblur":case"afterblur":T=Tc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Fr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Ap;break;case bf:case vf:case Sf:T=mp;break;case zf:T=kp;break;case"scroll":case"scrollend":T=fp;break;case"wheel":T=Op;break;case"copy":case"cut":case"paste":T=yp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Pr;break;case"toggle":case"beforetoggle":T=Dp}var $=(t&4)!==0,Te=!$&&(e==="scroll"||e==="scrollend"),S=$?N!==null?N+"Capture":null:N;$=[];for(var y=j,z;y!==null;){var M=y;if(z=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||z===null||S===null||(M=Bn(y,S),M!=null&&$.push(xi(y,M,z))),Te)break;y=y.return}0<$.length&&(N=new T(N,X,null,l,O),D.push({event:N,listeners:$}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",N&&l!==qn&&(X=l.relatedTarget||l.fromElement)&&(Dt(X)||X[Gl]))break e;if((T||N)&&(N=O.window===O?O:(N=O.ownerDocument)?N.defaultView||N.parentWindow:window,T?(X=l.relatedTarget||l.toElement,T=j,X=X?Dt(X):null,X!==null&&(Te=b(X),$=X.tag,X!==Te||$!==5&&$!==27&&$!==6)&&(X=null)):(T=null,X=j),T!==X)){if($=Fr,M="onMouseLeave",S="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&($=Pr,M="onPointerLeave",S="onPointerEnter",y="pointer"),Te=T==null?N:il(T),z=X==null?N:il(X),N=new $(M,y+"leave",T,l,O),N.target=Te,N.relatedTarget=z,M=null,Dt(O)===j&&($=new $(S,y+"enter",X,l,O),$.target=z,$.relatedTarget=Te,M=$),Te=M,T&&X)t:{for($=Mm,S=T,y=X,z=0,M=S;M;M=$(M))z++;M=0;for(var J=y;J;J=$(J))M++;for(;0<z-M;)S=$(S),z--;for(;0<M-z;)y=$(y),M--;for(;z--;){if(S===y||y!==null&&S===y.alternate){$=S;break t}S=$(S),y=$(y)}$=null}else $=null;T!==null&&Vd(D,N,T,$,!1),X!==null&&Te!==null&&Vd(D,Te,X,$,!0)}}e:{if(N=j?il(j):window,T=N.nodeName&&N.nodeName.toLowerCase(),T==="select"||T==="input"&&N.type==="file")var me=sf;else if(uf(N))if(rf)me=Qp;else{me=Gp;var V=Yp}else T=N.nodeName,!T||T.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?j&&Fa(j.elementType)&&(me=sf):me=Lp;if(me&&(me=me(e,j))){cf(D,me,l,O);break e}V&&V(e,N,j),e==="focusout"&&j&&N.type==="number"&&j.memoizedProps.value!=null&&U(N,"number",N.value)}switch(V=j?il(j):window,e){case"focusin":(uf(V)||V.contentEditable==="true")&&(tn=V,Oc=j,Jn=null);break;case"focusout":Jn=Oc=tn=null;break;case"mousedown":Mc=!0;break;case"contextmenu":case"mouseup":case"dragend":Mc=!1,yf(D,l,O);break;case"selectionchange":if(Xp)break;case"keydown":case"keyup":yf(D,l,O)}var le;if(Ac)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else en?af(e,l)&&(fe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(fe="onCompositionStart");fe&&(ef&&l.locale!=="ko"&&(en||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&en&&(le=$r()):(Vl=O,zc="value"in Vl?Vl.value:Vl.textContent,en=!0)),V=Gu(j,fe),0<V.length&&(fe=new Ir(fe,e,null,l,O),D.push({event:fe,listeners:V}),le?fe.data=le:(le=nf(l),le!==null&&(fe.data=le)))),(le=Rp?Up(e,l):Hp(e,l))&&(fe=Gu(j,"onBeforeInput"),0<fe.length&&(V=new Ir("onBeforeInput","beforeinput",null,l,O),D.push({event:V,listeners:fe}),V.data=le)),_m(D,e,j,l,O)}Zd(D,t)})}function xi(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Gu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Bn(e,l),n!=null&&a.unshift(xi(e,n,i)),n=Bn(e,t),n!=null&&a.push(xi(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Mm(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,l,a,n){for(var i=t._reactName,u=[];l!==null&&l!==a;){var o=l,m=o.alternate,j=o.stateNode;if(o=o.tag,m!==null&&m===a)break;o!==5&&o!==26&&o!==27||j===null||(m=j,n?(j=Bn(l,i),j!=null&&u.unshift(xi(l,j,m))):n||(j=Bn(l,i),j!=null&&u.push(xi(l,j,m)))),l=l.return}u.length!==0&&e.push({event:t,listeners:u})}var Dm=/\r\n?/g,Cm=/\u0000|\uFFFD/g;function Jd(e){return(typeof e=="string"?e:""+e).replace(Dm,`
49
+ `).replace(Cm,"")}function Kd(e,t){return t=Jd(t),Jd(e)===t}function Ne(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||te(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&te(e,""+a);break;case"className":$a(e,"class",a);break;case"tabIndex":$a(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$a(e,l,a);break;case"style":Ut(e,a,i);break;case"data":if(t!=="object"){$a(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Xl(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(l==="formAction"?(t!=="input"&&Ne(e,t,"name",n.name,n,null),Ne(e,t,"formEncType",n.formEncType,n,null),Ne(e,t,"formMethod",n.formMethod,n,null),Ne(e,t,"formTarget",n.formTarget,n,null)):(Ne(e,t,"encType",n.encType,n,null),Ne(e,t,"method",n.method,n,null),Ne(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Xl(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=$t);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Xl(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ce("beforetoggle",e),ce("toggle",e),gl(e,"popover",a);break;case"xlinkActuate":Rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Rt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Rt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Rt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Rt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":gl(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Vi.get(l)||l,gl(e,l,a))}}function ar(e,t,l,a,n,i){switch(l){case"style":Ut(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?te(e,a):(typeof a=="number"||typeof a=="bigint")&&te(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Un.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[rt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):gl(e,l,a)}}}function ut(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var u=l[i];if(u!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ne(e,t,i,u,l,null)}}n&&Ne(e,t,"srcSet",l.srcSet,l,null),a&&Ne(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var o=i=u=n=null,m=null,j=null;for(a in l)if(l.hasOwnProperty(a)){var O=l[a];if(O!=null)switch(a){case"name":n=O;break;case"type":u=O;break;case"checked":m=O;break;case"defaultChecked":j=O;break;case"value":i=O;break;case"defaultValue":o=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(137,t));break;default:Ne(e,t,a,O,l,null)}}E(e,i,o,m,j,u,n,!1);return;case"select":ce("invalid",e),a=u=i=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":i=o;break;case"defaultValue":u=o;break;case"multiple":a=o;default:Ne(e,t,n,o,l,null)}t=i,l=u,e.multiple=!!a,t!=null?Y(e,!!a,t,!1):l!=null&&Y(e,!!a,l,!0);return;case"textarea":ce("invalid",e),i=n=a=null;for(u in l)if(l.hasOwnProperty(u)&&(o=l[u],o!=null))switch(u){case"value":a=o;break;case"defaultValue":n=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Ne(e,t,u,o,l,null)}I(e,a,n,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ne(e,t,m,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<yi.length;a++)ce(yi[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(j in l)if(l.hasOwnProperty(j)&&(a=l[j],a!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ne(e,t,j,a,l,null)}return;default:if(Fa(t)){for(O in l)l.hasOwnProperty(O)&&(a=l[O],a!==void 0&&ar(e,t,O,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Ne(e,t,o,a,l,null))}function Rm(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,u=null,o=null,m=null,j=null,O=null;for(T in l){var D=l[T];if(l.hasOwnProperty(T)&&D!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":m=D;default:a.hasOwnProperty(T)||Ne(e,t,T,null,a,D)}}for(var N in a){var T=a[N];if(D=l[N],a.hasOwnProperty(N)&&(T!=null||D!=null))switch(N){case"type":i=T;break;case"name":n=T;break;case"checked":j=T;break;case"defaultChecked":O=T;break;case"value":u=T;break;case"defaultValue":o=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(137,t));break;default:T!==D&&Ne(e,t,N,T,a,D)}}p(e,u,o,m,j,O,i,n);return;case"select":T=u=o=N=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":T=m;default:a.hasOwnProperty(i)||Ne(e,t,i,null,a,m)}for(n in a)if(i=a[n],m=l[n],a.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":N=i;break;case"defaultValue":o=i;break;case"multiple":u=i;default:i!==m&&Ne(e,t,n,i,a,m)}t=o,l=u,a=T,N!=null?Y(e,!!l,N,!1):!!a!=!!l&&(t!=null?Y(e,!!l,t,!0):Y(e,!!l,l?[]:"",!1));return;case"textarea":T=N=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ne(e,t,o,null,a,n)}for(u in a)if(n=a[u],i=l[u],a.hasOwnProperty(u)&&(n!=null||i!=null))switch(u){case"value":N=n;break;case"defaultValue":T=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==i&&Ne(e,t,u,n,a,i)}q(e,N,T);return;case"option":for(var X in l)if(N=l[X],l.hasOwnProperty(X)&&N!=null&&!a.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:Ne(e,t,X,null,a,N)}for(m in a)if(N=a[m],T=l[m],a.hasOwnProperty(m)&&N!==T&&(N!=null||T!=null))switch(m){case"selected":e.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:Ne(e,t,m,N,a,T)}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 $ in l)N=l[$],l.hasOwnProperty($)&&N!=null&&!a.hasOwnProperty($)&&Ne(e,t,$,null,a,N);for(j in a)if(N=a[j],T=l[j],a.hasOwnProperty(j)&&N!==T&&(N!=null||T!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Ne(e,t,j,N,a,T)}return;default:if(Fa(t)){for(var Te in l)N=l[Te],l.hasOwnProperty(Te)&&N!==void 0&&!a.hasOwnProperty(Te)&&ar(e,t,Te,void 0,a,N);for(O in a)N=a[O],T=l[O],!a.hasOwnProperty(O)||N===T||N===void 0&&T===void 0||ar(e,t,O,N,a,T);return}}for(var S in l)N=l[S],l.hasOwnProperty(S)&&N!=null&&!a.hasOwnProperty(S)&&Ne(e,t,S,null,a,N);for(D in a)N=a[D],T=l[D],!a.hasOwnProperty(D)||N===T||N==null&&T==null||Ne(e,t,D,N,a,T)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Um(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,u=n.initiatorType,o=n.duration;if(i&&o&&$d(u)){for(u=0,o=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],j=m.startTime;if(j>o)break;var O=m.transferSize,D=m.initiatorType;O&&$d(D)&&(m=m.responseEnd,u+=O*(m<o?1:(o-j)/(m-j)))}if(--a,t+=8*(i+u)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var nr=null,ir=null;function Lu(e){return e.nodeType===9?e:e.ownerDocument}function Wd(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 Fd(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 ur(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 cr=null;function Hm(){var e=window.event;return e&&e.type==="popstate"?e===cr?!1:(cr=e,!0):(cr=null,!1)}var Id=typeof setTimeout=="function"?setTimeout:void 0,qm=typeof clearTimeout=="function"?clearTimeout:void 0,Pd=typeof Promise=="function"?Promise:void 0,Bm=typeof queueMicrotask=="function"?queueMicrotask:typeof Pd<"u"?function(e){return Pd.resolve(null).then(e).catch(Ym)}:Id;function Ym(e){setTimeout(function(){throw e})}function ra(e){return e==="head"}function eh(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),kn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")bi(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,bi(l);for(var i=l.firstChild;i;){var u=i.nextSibling,o=i.nodeName;i[nl]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=u}}else l==="body"&&bi(e.ownerDocument.body);l=n}while(l);kn(t)}function th(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function sr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":sr(l),Kt(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Gm(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nl])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=Qt(e.nextSibling),e===null)break}return null}function Lm(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Qt(e.nextSibling),e===null))return null;return e}function lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function rr(e){return e.data==="$?"||e.data==="$~"}function fr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Qm(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Qt(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 or=null;function ah(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function nh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function ih(e,t,l){switch(t=Lu(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function bi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Kt(e)}var Zt=new Map,uh=new Set;function Qu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ml=L.d;L.d={f:Zm,r:Xm,D:Vm,C:Jm,L:Km,m:$m,X:Fm,S:Wm,M:Im};function Zm(){var e=Ml.f(),t=Cu();return e||t}function Xm(e){var t=Ct(e);t!==null&&t.tag===5&&t.type==="form"?jo(t):Ml.r(e)}var En=typeof document>"u"?null:document;function ch(e,t,l){var a=En;if(a&&typeof t=="string"&&t){var n=mt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),uh.has(n)||(uh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),ut(t,"link",e),Ze(t),a.head.appendChild(t)))}}function Vm(e){Ml.D(e),ch("dns-prefetch",e,null)}function Jm(e,t){Ml.C(e,t),ch("preconnect",e,t)}function Km(e,t,l){Ml.L(e,t,l);var a=En;if(a&&e&&t){var n='link[rel="preload"][as="'+mt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+mt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+mt(l.imageSizes)+'"]')):n+='[href="'+mt(e)+'"]';var i=n;switch(t){case"style":i=An(e);break;case"script":i=_n(e)}Zt.has(i)||(e=R({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Zt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(vi(i))||t==="script"&&a.querySelector(Si(i))||(t=a.createElement("link"),ut(t,"link",e),Ze(t),a.head.appendChild(t)))}}function $m(e,t){Ml.m(e,t);var l=En;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+mt(a)+'"][href="'+mt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=_n(e)}if(!Zt.has(i)&&(e=R({rel:"modulepreload",href:e},t),Zt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Si(i)))return}a=l.createElement("link"),ut(a,"link",e),Ze(a),l.head.appendChild(a)}}}function Wm(e,t,l){Ml.S(e,t,l);var a=En;if(a&&e){var n=Ll(a).hoistableStyles,i=An(e);t=t||"default";var u=n.get(i);if(!u){var o={loading:0,preload:null};if(u=a.querySelector(vi(i)))o.loading=5;else{e=R({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Zt.get(i))&&dr(e,l);var m=u=a.createElement("link");Ze(m),ut(m,"link",e),m._p=new Promise(function(j,O){m.onload=j,m.onerror=O}),m.addEventListener("load",function(){o.loading|=1}),m.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Zu(u,t,a)}u={type:"stylesheet",instance:u,count:1,state:o},n.set(i,u)}}}function Fm(e,t){Ml.X(e,t);var l=En;if(l&&e){var a=Ll(l).hoistableScripts,n=_n(e),i=a.get(n);i||(i=l.querySelector(Si(n)),i||(e=R({src:e,async:!0},t),(t=Zt.get(n))&&hr(e,t),i=l.createElement("script"),Ze(i),ut(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Im(e,t){Ml.M(e,t);var l=En;if(l&&e){var a=Ll(l).hoistableScripts,n=_n(e),i=a.get(n);i||(i=l.querySelector(Si(n)),i||(e=R({src:e,async:!0,type:"module"},t),(t=Zt.get(n))&&hr(e,t),i=l.createElement("script"),Ze(i),ut(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sh(e,t,l,a){var n=(n=ae.current)?Qu(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=An(l.href),l=Ll(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=An(l.href);var i=Ll(n).hoistableStyles,u=i.get(e);if(u||(n=n.ownerDocument||n,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,u),(i=n.querySelector(vi(e)))&&!i._p&&(u.instance=i,u.state.loading=5),Zt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Zt.set(e,l),i||Pm(n,e,l,u.state))),t&&a===null)throw Error(s(528,""));return u}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=_n(l),l=Ll(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function An(e){return'href="'+mt(e)+'"'}function vi(e){return'link[rel="stylesheet"]['+e+"]"}function rh(e){return R({},e,{"data-precedence":e.precedence,precedence:null})}function Pm(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ut(t,"link",l),Ze(t),e.head.appendChild(t))}function _n(e){return'[src="'+mt(e)+'"]'}function Si(e){return"script[async]"+e}function fh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+mt(l.href)+'"]');if(a)return t.instance=a,Ze(a),a;var n=R({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ze(a),ut(a,"style",n),Zu(a,l.precedence,e),t.instance=a;case"stylesheet":n=An(l.href);var i=e.querySelector(vi(n));if(i)return t.state.loading|=4,t.instance=i,Ze(i),i;a=rh(l),(n=Zt.get(n))&&dr(a,n),i=(e.ownerDocument||e).createElement("link"),Ze(i);var u=i;return u._p=new Promise(function(o,m){u.onload=o,u.onerror=m}),ut(i,"link",a),t.state.loading|=4,Zu(i,l.precedence,e),t.instance=i;case"script":return i=_n(l.src),(n=e.querySelector(Si(i)))?(t.instance=n,Ze(n),n):(a=l,(n=Zt.get(i))&&(a=R({},l),hr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ze(n),ut(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Zu(a,l.precedence,e));return t.instance}function Zu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,u=0;u<a.length;u++){var o=a[u];if(o.dataset.precedence===t)i=o;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function dr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xu=null;function oh(e,t,l){if(Xu===null){var a=new Map,n=Xu=new Map;n.set(l,a)}else n=Xu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[nl]||i[$e]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var u=i.getAttribute(t)||"";u=e+u;var o=a.get(u);o?o.push(i):a.set(u,[i])}}return a}function dh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function e0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function hh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function t0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=An(a.href),i=t.querySelector(vi(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Vu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,Ze(i);return}i=t.ownerDocument||t,a=rh(a),(n=Zt.get(n))&&dr(a,n),i=i.createElement("link"),Ze(i);var u=i;u._p=new Promise(function(o,m){u.onload=o,u.onerror=m}),ut(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Vu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var pr=0;function l0(e,t){return e.stylesheets&&e.count===0&&Ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&pr===0&&(pr=62500*Um());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ku(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>pr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Vu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ju=null;function Ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ju=new Map,t.forEach(a0,e),Ju=null,Vu.call(e))}function a0(e,t){if(!(t.state.loading&4)){var l=Ju.get(e);if(l)var a=l.get(null);else{l=new Map,Ju.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var u=n[i];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(l.set(u.dataset.precedence,u),a=u)}a&&l.set(null,a)}n=t.instance,u=n.getAttribute("data-precedence"),i=l.get(u)||a,i===a&&l.set(null,n),l.set(u,n),this.count++,a=Vu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var zi={$$typeof:we,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function n0(e,t,l,a,n,i,u,o,m){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=Va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Va(0),this.hiddenUpdates=Va(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function ph(e,t,l,a,n,i,u,o,m,j,O,D){return e=new n0(e,t,l,u,m,j,O,D,o),t=1,i===!0&&(t|=24),i=At(3,null,null,t),e.current=i,i.stateNode=e,t=Jc(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Fc(i),e}function mh(e){return e?(e=nn,e):nn}function gh(e,t,l,a,n,i){n=mh(n),a.context===null?a.context=n:a.pendingContext=n,a=Il(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=Pl(e,a,t),l!==null&&(jt(l,e,t),ei(l,e,t))}function yh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function mr(e,t){yh(e,t),(e=e.alternate)&&yh(e,t)}function xh(e){if(e.tag===13||e.tag===31){var t=ja(e,67108864);t!==null&&jt(t,e,67108864),mr(e,67108864)}}function bh(e){if(e.tag===13||e.tag===31){var t=Mt();t=Nt(t);var l=ja(e,t);l!==null&&jt(l,e,t),mr(e,t)}}var $u=!0;function i0(e,t,l,a){var n=_.T;_.T=null;var i=L.p;try{L.p=2,gr(e,t,l,a)}finally{L.p=i,_.T=n}}function u0(e,t,l,a){var n=_.T;_.T=null;var i=L.p;try{L.p=8,gr(e,t,l,a)}finally{L.p=i,_.T=n}}function gr(e,t,l,a){if($u){var n=yr(a);if(n===null)lr(e,t,a,Wu,l),Sh(e,a);else if(s0(n,e,t,l,a))a.stopPropagation();else if(Sh(e,a),t&4&&-1<c0.indexOf(e)){for(;n!==null;){var i=Ct(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var u=al(i.pendingLanes);if(u!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;u;){var m=1<<31-pt(u);o.entanglements[1]|=m,u&=~m}rl(i),(be&6)===0&&(Mu=lt()+500,gi(0))}}break;case 31:case 13:o=ja(i,2),o!==null&&jt(o,i,2),Cu(),mr(i,2)}if(i=yr(a),i===null&&lr(e,t,a,Wu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else lr(e,t,a,null,l)}}function yr(e){return e=bc(e),xr(e)}var Wu=null;function xr(e){if(Wu=null,e=Dt(e),e!==null){var t=b(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=A(t),e!==null)return e;e=null}else if(l===31){if(e=w(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Wu=e,null}function vh(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(fc()){case Ri:return 2;case Ui:return 8;case Hl:case Vt:return 32;case Qa:return 268435456;default:return 32}default:return 32}}var br=!1,fa=null,oa=null,da=null,ji=new Map,Ni=new Map,ha=[],c0="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 Sh(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(t.pointerId)}}function Ti(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Ct(t),t!==null&&xh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function s0(e,t,l,a,n){switch(t){case"focusin":return fa=Ti(fa,e,t,l,a,n),!0;case"dragenter":return oa=Ti(oa,e,t,l,a,n),!0;case"mouseover":return da=Ti(da,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return ji.set(i,Ti(ji.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Ni.set(i,Ti(Ni.get(i)||null,e,t,l,a,n)),!0}return!1}function zh(e){var t=Dt(e.target);if(t!==null){var l=b(t);if(l!==null){if(t=l.tag,t===13){if(t=A(l),t!==null){e.blockedOn=t,pl(e.priority,function(){bh(l)});return}}else if(t===31){if(t=w(l),t!==null){e.blockedOn=t,pl(e.priority,function(){bh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=yr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);qn=a,l.target.dispatchEvent(a),qn=null}else return t=Ct(l),t!==null&&xh(t),e.blockedOn=l,!1;t.shift()}return!0}function jh(e,t,l){Fu(e)&&l.delete(t)}function r0(){br=!1,fa!==null&&Fu(fa)&&(fa=null),oa!==null&&Fu(oa)&&(oa=null),da!==null&&Fu(da)&&(da=null),ji.forEach(jh),Ni.forEach(jh)}function Iu(e,t){e.blockedOn===t&&(e.blockedOn=null,br||(br=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,r0)))}var Pu=null;function Nh(e){Pu!==e&&(Pu=e,d.unstable_scheduleCallback(d.unstable_NormalPriority,function(){Pu===e&&(Pu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(xr(a||l)===null)continue;break}var i=Ct(l);i!==null&&(e.splice(t,3),t-=3,ys(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function kn(e){function t(m){return Iu(m,e)}fa!==null&&Iu(fa,e),oa!==null&&Iu(oa,e),da!==null&&Iu(da,e),ji.forEach(t),Ni.forEach(t);for(var l=0;l<ha.length;l++){var a=ha[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ha.length&&(l=ha[0],l.blockedOn===null);)zh(l),l.blockedOn===null&&ha.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],u=n[rt]||null;if(typeof i=="function")u||Nh(l);else if(u){var o=null;if(i&&i.hasAttribute("formAction")){if(n=i,u=i[rt]||null)o=u.formAction;else if(xr(n)!==null)continue}else o=u.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),Nh(l)}}}function Th(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(u){return n=u})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function vr(e){this._internalRoot=e}ec.prototype.render=vr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=Mt();gh(l,a,e,t,null,null)},ec.prototype.unmount=vr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gh(e.current,2,null,e,null,null),Cu(),t[Gl]=null}};function ec(e){this._internalRoot=e}ec.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ka();e={blockedOn:null,target:e,priority:t};for(var l=0;l<ha.length&&t!==0&&t<ha[l].priority;l++);ha.splice(l,0,e),l===0&&zh(e)}};var Eh=c.version;if(Eh!=="19.2.7")throw Error(s(527,Eh,"19.2.7"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?k(e):null,e=e===null?null:e.stateNode,e};var f0={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tc.isDisabled&&tc.supportsFiber)try{ql=tc.inject(f0),ht=tc}catch{}}return Ai.createRoot=function(e,t){if(!h(e))throw Error(s(299));var l=!1,a="",n=Do,i=Co,u=Ro;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=ph(e,1,!1,null,null,l,a,null,n,i,u,Th),e[Gl]=t.current,tr(e),new vr(t)},Ai.hydrateRoot=function(e,t,l){if(!h(e))throw Error(s(299));var a=!1,n="",i=Do,u=Co,o=Ro,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(u=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),t=ph(e,1,!0,t,l??null,a,n,m,i,u,o,Th),t.context=mh(null),l=t.current,a=Mt(),a=Nt(a),n=Il(a),n.callback=null,Pl(l,n,a),l=a,t.current.lanes=l,Bl(t,l),rl(t),e[Gl]=t.current,tr(e),new ec(t)},Ai.version="19.2.7",Ai}var Uh;function z0(){if(Uh)return jr.exports;Uh=1;function d(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(d)}catch(c){console.error(c)}}return d(),jr.exports=S0(),jr.exports}var j0=z0();function qr(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var qa=qr();function Ph(d){qa=d}var Ua={exec:()=>null};function wn(d){let c=[];return f=>{let s=Math.max(0,Math.min(3,f-1)),h=c[s];return h||(h=d(s),c[s]=h),h}}function pe(d,c=""){let f=typeof d=="string"?d:d.source,s={replace:(h,b)=>{let A=typeof b=="string"?b:b.source;return A=A.replace(ot.caret,"$1"),f=f.replace(h,A),s},getRegex:()=>new RegExp(f,c)};return s}var N0=((d="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+d)}catch{return!1}})(),ot={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:d=>new RegExp(`^( {0,3}${d})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:wn(d=>new RegExp(`^ {0,${d}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:wn(d=>new RegExp(`^ {0,${d}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:wn(d=>new RegExp(`^ {0,${d}}(?:\`\`\`|~~~)`)),headingBeginRegex:wn(d=>new RegExp(`^ {0,${d}}#`)),htmlBeginRegex:wn(d=>new RegExp(`^ {0,${d}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:wn(d=>new RegExp(`^ {0,${d}}>`))},T0=/^(?:[ \t]*(?:\n|$))+/,E0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,A0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Oi=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Br=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,ep=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,tp=pe(ep).replace(/bull/g,Br).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),k0=pe(ep).replace(/bull/g,Br).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Yr=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,w0=/^[^\n]+/,Gr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,O0=pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Gr).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M0=pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Br).getRegex(),sc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Lr=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,D0=pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Lr).replace("tag",sc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lp=pe(Yr).replace("hr",Oi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sc).getRegex(),C0=pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lp).getRegex(),Qr={blockquote:C0,code:E0,def:O0,fences:A0,heading:_0,hr:Oi,html:D0,lheading:tp,list:M0,newline:T0,paragraph:lp,table:Ua,text:w0},Hh=pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Oi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sc).getRegex(),R0={...Qr,lheading:k0,table:Hh,paragraph:pe(Yr).replace("hr",Oi).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Hh).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",sc).getRegex()},U0={...Qr,html:pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Lr).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ua,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pe(Yr).replace("hr",Oi).replace("heading",` *#{1,6} *[^
50
+ ]`).replace("lheading",tp).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},H0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,q0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ap=/^( {2,}|\\)\n(?!\s*$)/,B0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Mn=/[\p{P}\p{S}]/u,rc=/[\s\p{P}\p{S}]/u,Zr=/[^\s\p{P}\p{S}]/u,Y0=pe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,rc).getRegex(),np=/(?!~)[\p{P}\p{S}]/u,G0=/(?!~)[\s\p{P}\p{S}]/u,L0=/(?:[^\s\p{P}\p{S}]|~)/u,Q0=pe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",N0?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ip=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Z0=pe(ip,"u").replace(/punct/g,Mn).getRegex(),X0=pe(ip,"u").replace(/punct/g,np).getRegex(),up="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",V0=pe(up,"gu").replace(/notPunctSpace/g,Zr).replace(/punctSpace/g,rc).replace(/punct/g,Mn).getRegex(),J0=pe(up,"gu").replace(/notPunctSpace/g,L0).replace(/punctSpace/g,G0).replace(/punct/g,np).getRegex(),K0=pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zr).replace(/punctSpace/g,rc).replace(/punct/g,Mn).getRegex(),$0=pe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Mn).getRegex(),W0="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",F0=pe(W0,"gu").replace(/notPunctSpace/g,Zr).replace(/punctSpace/g,rc).replace(/punct/g,Mn).getRegex(),I0=pe(/\\(punct)/,"gu").replace(/punct/g,Mn).getRegex(),P0=pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),e1=pe(Lr).replace("(?:-->|$)","-->").getRegex(),t1=pe("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",e1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ic=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,l1=pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ic).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),cp=pe(/^!?\[(label)\]\[(ref)\]/).replace("label",ic).replace("ref",Gr).getRegex(),sp=pe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Gr).getRegex(),a1=pe("reflink|nolink(?!\\()","g").replace("reflink",cp).replace("nolink",sp).getRegex(),qh=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Xr={_backpedal:Ua,anyPunctuation:I0,autolink:P0,blockSkip:Q0,br:ap,code:q0,del:Ua,delLDelim:Ua,delRDelim:Ua,emStrongLDelim:Z0,emStrongRDelimAst:V0,emStrongRDelimUnd:K0,escape:H0,link:l1,nolink:sp,punctuation:Y0,reflink:cp,reflinkSearch:a1,tag:t1,text:B0,url:Ua},n1={...Xr,link:pe(/^!?\[(label)\]\((.*?)\)/).replace("label",ic).getRegex(),reflink:pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ic).getRegex()},Cr={...Xr,emStrongRDelimAst:J0,emStrongLDelim:X0,delLDelim:$0,delRDelim:F0,url:pe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qh).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:pe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qh).getRegex()},i1={...Cr,br:pe(ap).replace("{2,}","*").getRegex(),text:pe(Cr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},lc={normal:Qr,gfm:R0,pedantic:U0},_i={normal:Xr,gfm:Cr,breaks:i1,pedantic:n1},u1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Bh=d=>u1[d];function fl(d,c){if(c){if(ot.escapeTest.test(d))return d.replace(ot.escapeReplace,Bh)}else if(ot.escapeTestNoEncode.test(d))return d.replace(ot.escapeReplaceNoEncode,Bh);return d}function Yh(d){try{d=encodeURI(d).replace(ot.percentDecode,"%")}catch{return null}return d}function Gh(d,c){var b;let f=d.replace(ot.findPipe,(A,w,g)=>{let v=!1,k=w;for(;--k>=0&&g[k]==="\\";)v=!v;return v?"|":" |"}),s=f.split(ot.splitPipe),h=0;if(s[0].trim()||s.shift(),s.length>0&&!((b=s.at(-1))!=null&&b.trim())&&s.pop(),c)if(s.length>c)s.splice(c);else for(;s.length<c;)s.push("");for(;h<s.length;h++)s[h]=s[h].trim().replace(ot.slashPipe,"|");return s}function ma(d,c,f){let s=d.length;if(s===0)return"";let h=0;for(;h<s&&d.charAt(s-h-1)===c;)h++;return d.slice(0,s-h)}function Lh(d){let c=d.split(`
51
+ `),f=c.length-1;for(;f>=0&&ot.blankLine.test(c[f]);)f--;return c.length-f<=2?d:c.slice(0,f+1).join(`
52
+ `)}function c1(d,c){if(d.indexOf(c[1])===-1)return-1;let f=0;for(let s=0;s<d.length;s++)if(d[s]==="\\")s++;else if(d[s]===c[0])f++;else if(d[s]===c[1]&&(f--,f<0))return s;return f>0?-2:-1}function s1(d,c=0){let f=c,s="";for(let h of d)if(h===" "){let b=4-f%4;s+=" ".repeat(b),f+=b}else s+=h,f++;return s}function Qh(d,c,f,s,h){let b=c.href,A=c.title||null,w=d[1].replace(h.other.outputLinkReplace,"$1");s.state.inLink=!0;let g={type:d[0].charAt(0)==="!"?"image":"link",raw:f,href:b,title:A,text:w,tokens:s.inlineTokens(w)};return s.state.inLink=!1,g}function r1(d,c,f){let s=d.match(f.other.indentCodeCompensation);if(s===null)return c;let h=s[1];return c.split(`
53
+ `).map(b=>{let A=b.match(f.other.beginningSpace);if(A===null)return b;let[w]=A;return w.length>=h.length?b.slice(h.length):b}).join(`
54
+ `)}var uc=class{constructor(d){Ee(this,"options");Ee(this,"rules");Ee(this,"lexer");this.options=d||qa}space(d){let c=this.rules.block.newline.exec(d);if(c&&c[0].length>0)return{type:"space",raw:c[0]}}code(d){let c=this.rules.block.code.exec(d);if(c){let f=this.options.pedantic?c[0]:Lh(c[0]),s=f.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:f,codeBlockStyle:"indented",text:s}}}fences(d){let c=this.rules.block.fences.exec(d);if(c){let f=c[0],s=r1(f,c[3]||"",this.rules);return{type:"code",raw:f,lang:c[2]?c[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):c[2],text:s}}}heading(d){let c=this.rules.block.heading.exec(d);if(c){let f=c[2].trim();if(this.rules.other.endingHash.test(f)){let s=ma(f,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(f=s.trim())}return{type:"heading",raw:ma(c[0],`
55
+ `),depth:c[1].length,text:f,tokens:this.lexer.inline(f)}}}hr(d){let c=this.rules.block.hr.exec(d);if(c)return{type:"hr",raw:ma(c[0],`
56
+ `)}}blockquote(d){let c=this.rules.block.blockquote.exec(d);if(c){let f=ma(c[0],`
57
+ `).split(`
58
+ `),s="",h="",b=[];for(;f.length>0;){let A=!1,w=[],g;for(g=0;g<f.length;g++)if(this.rules.other.blockquoteStart.test(f[g]))w.push(f[g]),A=!0;else if(!A)w.push(f[g]);else break;f=f.slice(g);let v=w.join(`
59
+ `),k=v.replace(this.rules.other.blockquoteSetextReplace,`
60
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
61
+ ${v}`:v,h=h?`${h}
62
+ ${k}`:k;let R=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(k,b,!0),this.lexer.state.top=R,f.length===0)break;let H=b.at(-1);if((H==null?void 0:H.type)==="code")break;if((H==null?void 0:H.type)==="blockquote"){let ne=H,B=ne.raw+`
63
+ `+f.join(`
64
+ `),he=this.blockquote(B);b[b.length-1]=he,s=s.substring(0,s.length-ne.raw.length)+he.raw,h=h.substring(0,h.length-ne.text.length)+he.text;break}else if((H==null?void 0:H.type)==="list"){let ne=H,B=ne.raw+`
65
+ `+f.join(`
66
+ `),he=this.list(B);b[b.length-1]=he,s=s.substring(0,s.length-H.raw.length)+he.raw,h=h.substring(0,h.length-ne.raw.length)+he.raw,f=B.substring(b.at(-1).raw.length).split(`
67
+ `);continue}}return{type:"blockquote",raw:s,tokens:b,text:h}}}list(d){let c=this.rules.block.list.exec(d);if(c){let f=c[1].trim(),s=f.length>1,h={type:"list",raw:"",ordered:s,start:s?+f.slice(0,-1):"",loose:!1,items:[]};f=s?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=s?f:"[*+-]");let b=this.rules.other.listItemRegex(f),A=!1;for(;d;){let g=!1,v="",k="";if(!(c=b.exec(d))||this.rules.block.hr.test(d))break;v=c[0],d=d.substring(v.length);let R=s1(c[2].split(`
68
+ `,1)[0],c[1].length),H=d.split(`
69
+ `,1)[0],ne=!R.trim(),B=0;if(this.options.pedantic?(B=2,k=R.trimStart()):ne?B=c[1].length+1:(B=R.search(this.rules.other.nonSpaceChar),B=B>4?1:B,k=R.slice(B),B+=c[1].length),ne&&this.rules.other.blankLine.test(H)&&(v+=H+`
70
+ `,d=d.substring(H.length+1),g=!0),!g){let he=this.rules.other.nextBulletRegex(B),se=this.rules.other.hrRegex(B),Ge=this.rules.other.fencesBeginRegex(B),Ie=this.rules.other.headingBeginRegex(B),we=this.rules.other.htmlBeginRegex(B),F=this.rules.other.blockquoteBeginRegex(B);for(;d;){let Re=d.split(`
71
+ `,1)[0],Ue;if(H=Re,this.options.pedantic?(H=H.replace(this.rules.other.listReplaceNesting," "),Ue=H):Ue=H.replace(this.rules.other.tabCharGlobal," "),Ge.test(H)||Ie.test(H)||we.test(H)||F.test(H)||he.test(H)||se.test(H))break;if(Ue.search(this.rules.other.nonSpaceChar)>=B||!H.trim())k+=`
72
+ `+Ue.slice(B);else{if(ne||R.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Ge.test(R)||Ie.test(R)||se.test(R))break;k+=`
73
+ `+H}ne=!H.trim(),v+=Re+`
74
+ `,d=d.substring(Re.length+1),R=Ue.slice(B)}}h.loose||(A?h.loose=!0:this.rules.other.doubleBlankLine.test(v)&&(A=!0)),h.items.push({type:"list_item",raw:v,task:!!this.options.gfm&&this.rules.other.listIsTask.test(k),loose:!1,text:k,tokens:[]}),h.raw+=v}let w=h.items.at(-1);if(w)w.raw=w.raw.trimEnd(),w.text=w.text.trimEnd();else return;h.raw=h.raw.trimEnd();for(let g of h.items){this.lexer.state.top=!1,g.tokens=this.lexer.blockTokens(g.text,[]);let v=g.tokens[0];if(g.task&&((v==null?void 0:v.type)==="text"||(v==null?void 0:v.type)==="paragraph")){g.text=g.text.replace(this.rules.other.listReplaceTask,""),v.raw=v.raw.replace(this.rules.other.listReplaceTask,""),v.text=v.text.replace(this.rules.other.listReplaceTask,"");for(let R=this.lexer.inlineQueue.length-1;R>=0;R--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[R].src)){this.lexer.inlineQueue[R].src=this.lexer.inlineQueue[R].src.replace(this.rules.other.listReplaceTask,"");break}let k=this.rules.other.listTaskCheckbox.exec(g.raw);if(k){let R={type:"checkbox",raw:k[0]+" ",checked:k[0]!=="[ ]"};g.checked=R.checked,h.loose?g.tokens[0]&&["paragraph","text"].includes(g.tokens[0].type)&&"tokens"in g.tokens[0]&&g.tokens[0].tokens?(g.tokens[0].raw=R.raw+g.tokens[0].raw,g.tokens[0].text=R.raw+g.tokens[0].text,g.tokens[0].tokens.unshift(R)):g.tokens.unshift({type:"paragraph",raw:R.raw,text:R.raw,tokens:[R]}):g.tokens.unshift(R)}}else g.task&&(g.task=!1);if(!h.loose){let k=g.tokens.filter(H=>H.type==="space"),R=k.length>0&&k.some(H=>this.rules.other.anyLine.test(H.raw));h.loose=R}}if(h.loose)for(let g of h.items){g.loose=!0;for(let v of g.tokens)v.type==="text"&&(v.type="paragraph")}return h}}html(d){let c=this.rules.block.html.exec(d);if(c){let f=Lh(c[0]);return{type:"html",block:!0,raw:f,pre:c[1]==="pre"||c[1]==="script"||c[1]==="style",text:f}}}def(d){let c=this.rules.block.def.exec(d);if(c){let f=c[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=c[2]?c[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",h=c[3]?c[3].substring(1,c[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):c[3];return{type:"def",tag:f,raw:ma(c[0],`
75
+ `),href:s,title:h}}}table(d){var A;let c=this.rules.block.table.exec(d);if(!c||!this.rules.other.tableDelimiter.test(c[2]))return;let f=Gh(c[1]),s=c[2].replace(this.rules.other.tableAlignChars,"").split("|"),h=(A=c[3])!=null&&A.trim()?c[3].replace(this.rules.other.tableRowBlankLine,"").split(`
76
+ `):[],b={type:"table",raw:ma(c[0],`
77
+ `),header:[],align:[],rows:[]};if(f.length===s.length){for(let w of s)this.rules.other.tableAlignRight.test(w)?b.align.push("right"):this.rules.other.tableAlignCenter.test(w)?b.align.push("center"):this.rules.other.tableAlignLeft.test(w)?b.align.push("left"):b.align.push(null);for(let w=0;w<f.length;w++)b.header.push({text:f[w],tokens:this.lexer.inline(f[w]),header:!0,align:b.align[w]});for(let w of h)b.rows.push(Gh(w,b.header.length).map((g,v)=>({text:g,tokens:this.lexer.inline(g),header:!1,align:b.align[v]})));return b}}lheading(d){let c=this.rules.block.lheading.exec(d);if(c){let f=c[1].trim();return{type:"heading",raw:ma(c[0],`
78
+ `),depth:c[2].charAt(0)==="="?1:2,text:f,tokens:this.lexer.inline(f)}}}paragraph(d){let c=this.rules.block.paragraph.exec(d);if(c){let f=c[1].charAt(c[1].length-1)===`
79
+ `?c[1].slice(0,-1):c[1];return{type:"paragraph",raw:c[0],text:f,tokens:this.lexer.inline(f)}}}text(d){let c=this.rules.block.text.exec(d);if(c)return{type:"text",raw:c[0],text:c[0],tokens:this.lexer.inline(c[0])}}escape(d){let c=this.rules.inline.escape.exec(d);if(c)return{type:"escape",raw:c[0],text:c[1]}}tag(d){let c=this.rules.inline.tag.exec(d);if(c)return!this.lexer.state.inLink&&this.rules.other.startATag.test(c[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(c[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(c[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(c[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:c[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:c[0]}}link(d){let c=this.rules.inline.link.exec(d);if(c){let f=c[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(f)){if(!this.rules.other.endAngleBracket.test(f))return;let b=ma(f.slice(0,-1),"\\");if((f.length-b.length)%2===0)return}else{let b=c1(c[2],"()");if(b===-2)return;if(b>-1){let A=(c[0].indexOf("!")===0?5:4)+c[1].length+b;c[2]=c[2].substring(0,b),c[0]=c[0].substring(0,A).trim(),c[3]=""}}let s=c[2],h="";if(this.options.pedantic){let b=this.rules.other.pedanticHrefTitle.exec(s);b&&(s=b[1],h=b[3])}else h=c[3]?c[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(f)?s=s.slice(1):s=s.slice(1,-1)),Qh(c,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:h&&h.replace(this.rules.inline.anyPunctuation,"$1")},c[0],this.lexer,this.rules)}}reflink(d,c){let f;if((f=this.rules.inline.reflink.exec(d))||(f=this.rules.inline.nolink.exec(d))){let s=(f[2]||f[1]).replace(this.rules.other.multipleSpaceGlobal," "),h=c[s.toLowerCase()];if(!h){let b=f[0].charAt(0);return{type:"text",raw:b,text:b}}return Qh(f,h,f[0],this.lexer,this.rules)}}emStrong(d,c,f=""){let s=this.rules.inline.emStrongLDelim.exec(d);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&f.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!f||this.rules.inline.punctuation.exec(f))){let h=[...s[0]].length-1,b,A,w=h,g=0,v=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,c=c.slice(-1*d.length+h);(s=v.exec(c))!==null;){if(b=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!b)continue;if(A=[...b].length,s[3]||s[4]){w+=A;continue}else if((s[5]||s[6])&&h%3&&!((h+A)%3)){g+=A;continue}if(w-=A,w>0)continue;A=Math.min(A,A+w+g);let k=[...s[0]][0].length,R=d.slice(0,h+s.index+k+A);if(Math.min(h,A)%2){let ne=R.slice(1,-1);return{type:"em",raw:R,text:ne,tokens:this.lexer.inlineTokens(ne)}}let H=R.slice(2,-2);return{type:"strong",raw:R,text:H,tokens:this.lexer.inlineTokens(H)}}}}codespan(d){let c=this.rules.inline.code.exec(d);if(c){let f=c[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(f),h=this.rules.other.startingSpaceChar.test(f)&&this.rules.other.endingSpaceChar.test(f);return s&&h&&(f=f.substring(1,f.length-1)),{type:"codespan",raw:c[0],text:f}}}br(d){let c=this.rules.inline.br.exec(d);if(c)return{type:"br",raw:c[0]}}del(d,c,f=""){let s=this.rules.inline.delLDelim.exec(d);if(s&&(!s[1]||!f||this.rules.inline.punctuation.exec(f))){let h=[...s[0]].length-1,b,A,w=h,g=this.rules.inline.delRDelim;for(g.lastIndex=0,c=c.slice(-1*d.length+h);(s=g.exec(c))!==null;){if(b=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!b||(A=[...b].length,A!==h))continue;if(s[3]||s[4]){w+=A;continue}if(w-=A,w>0)continue;A=Math.min(A,A+w);let v=[...s[0]][0].length,k=d.slice(0,h+s.index+v+A),R=k.slice(h,-h);return{type:"del",raw:k,text:R,tokens:this.lexer.inlineTokens(R)}}}}autolink(d){let c=this.rules.inline.autolink.exec(d);if(c){let f,s;return c[2]==="@"?(f=c[1],s="mailto:"+f):(f=c[1],s=f),{type:"link",raw:c[0],text:f,href:s,tokens:[{type:"text",raw:f,text:f}]}}}url(d){var f;let c;if(c=this.rules.inline.url.exec(d)){let s,h;if(c[2]==="@")s=c[0],h="mailto:"+s;else{let b;do b=c[0],c[0]=((f=this.rules.inline._backpedal.exec(c[0]))==null?void 0:f[0])??"";while(b!==c[0]);s=c[0],c[1]==="www."?h="http://"+c[0]:h=c[0]}return{type:"link",raw:c[0],text:s,href:h,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(d){let c=this.rules.inline.text.exec(d);if(c){let f=this.lexer.state.inRawBlock;return{type:"text",raw:c[0],text:c[0],escaped:f}}}},Pt=class Rr{constructor(c){Ee(this,"tokens");Ee(this,"options");Ee(this,"state");Ee(this,"inlineQueue");Ee(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=c||qa,this.options.tokenizer=this.options.tokenizer||new uc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let f={other:ot,block:lc.normal,inline:_i.normal};this.options.pedantic?(f.block=lc.pedantic,f.inline=_i.pedantic):this.options.gfm&&(f.block=lc.gfm,this.options.breaks?f.inline=_i.breaks:f.inline=_i.gfm),this.tokenizer.rules=f}static get rules(){return{block:lc,inline:_i}}static lex(c,f){return new Rr(f).lex(c)}static lexInline(c,f){return new Rr(f).inlineTokens(c)}lex(c){c=c.replace(ot.carriageReturn,`
80
+ `),this.blockTokens(c,this.tokens);for(let f=0;f<this.inlineQueue.length;f++){let s=this.inlineQueue[f];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(c,f=[],s=!1){var b,A,w;this.tokenizer.lexer=this,this.options.pedantic&&(c=c.replace(ot.tabCharGlobal," ").replace(ot.spaceLine,""));let h=1/0;for(;c;){if(c.length<h)h=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}let g;if((A=(b=this.options.extensions)==null?void 0:b.block)!=null&&A.some(k=>(g=k.call({lexer:this},c,f))?(c=c.substring(g.raw.length),f.push(g),!0):!1))continue;if(g=this.tokenizer.space(c)){c=c.substring(g.raw.length);let k=f.at(-1);g.raw.length===1&&k!==void 0?k.raw+=`
81
+ `:f.push(g);continue}if(g=this.tokenizer.code(c)){c=c.substring(g.raw.length);let k=f.at(-1);(k==null?void 0:k.type)==="paragraph"||(k==null?void 0:k.type)==="text"?(k.raw+=(k.raw.endsWith(`
82
+ `)?"":`
83
+ `)+g.raw,k.text+=`
84
+ `+g.text,this.inlineQueue.at(-1).src=k.text):f.push(g);continue}if(g=this.tokenizer.fences(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.heading(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.hr(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.blockquote(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.list(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.html(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.def(c)){c=c.substring(g.raw.length);let k=f.at(-1);(k==null?void 0:k.type)==="paragraph"||(k==null?void 0:k.type)==="text"?(k.raw+=(k.raw.endsWith(`
85
+ `)?"":`
86
+ `)+g.raw,k.text+=`
87
+ `+g.raw,this.inlineQueue.at(-1).src=k.text):this.tokens.links[g.tag]||(this.tokens.links[g.tag]={href:g.href,title:g.title},f.push(g));continue}if(g=this.tokenizer.table(c)){c=c.substring(g.raw.length),f.push(g);continue}if(g=this.tokenizer.lheading(c)){c=c.substring(g.raw.length),f.push(g);continue}let v=c;if((w=this.options.extensions)!=null&&w.startBlock){let k=1/0,R=c.slice(1),H;this.options.extensions.startBlock.forEach(ne=>{H=ne.call({lexer:this},R),typeof H=="number"&&H>=0&&(k=Math.min(k,H))}),k<1/0&&k>=0&&(v=c.substring(0,k+1))}if(this.state.top&&(g=this.tokenizer.paragraph(v))){let k=f.at(-1);s&&(k==null?void 0:k.type)==="paragraph"?(k.raw+=(k.raw.endsWith(`
88
+ `)?"":`
89
+ `)+g.raw,k.text+=`
90
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=k.text):f.push(g),s=v.length!==c.length,c=c.substring(g.raw.length);continue}if(g=this.tokenizer.text(c)){c=c.substring(g.raw.length);let k=f.at(-1);(k==null?void 0:k.type)==="text"?(k.raw+=(k.raw.endsWith(`
91
+ `)?"":`
92
+ `)+g.raw,k.text+=`
93
+ `+g.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=k.text):f.push(g);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return this.state.top=!0,f}inline(c,f=[]){return this.inlineQueue.push({src:c,tokens:f}),f}inlineTokens(c,f=[]){var v,k,R,H,ne;this.tokenizer.lexer=this;let s=c,h=null;if(this.tokens.links){let B=Object.keys(this.tokens.links);if(B.length>0)for(;(h=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)B.includes(h[0].slice(h[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,h.index)+"["+"a".repeat(h[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(h=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,h.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let b;for(;(h=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)b=h[2]?h[2].length:0,s=s.slice(0,h.index+b)+"["+"a".repeat(h[0].length-b-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((k=(v=this.options.hooks)==null?void 0:v.emStrongMask)==null?void 0:k.call({lexer:this},s))??s;let A=!1,w="",g=1/0;for(;c;){if(c.length<g)g=c.length;else{this.infiniteLoopError(c.charCodeAt(0));break}A||(w=""),A=!1;let B;if((H=(R=this.options.extensions)==null?void 0:R.inline)!=null&&H.some(se=>(B=se.call({lexer:this},c,f))?(c=c.substring(B.raw.length),f.push(B),!0):!1))continue;if(B=this.tokenizer.escape(c)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.tag(c)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.link(c)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.reflink(c,this.tokens.links)){c=c.substring(B.raw.length);let se=f.at(-1);B.type==="text"&&(se==null?void 0:se.type)==="text"?(se.raw+=B.raw,se.text+=B.text):f.push(B);continue}if(B=this.tokenizer.emStrong(c,s,w)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.codespan(c)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.br(c)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.del(c,s,w)){c=c.substring(B.raw.length),f.push(B);continue}if(B=this.tokenizer.autolink(c)){c=c.substring(B.raw.length),f.push(B);continue}if(!this.state.inLink&&(B=this.tokenizer.url(c))){c=c.substring(B.raw.length),f.push(B);continue}let he=c;if((ne=this.options.extensions)!=null&&ne.startInline){let se=1/0,Ge=c.slice(1),Ie;this.options.extensions.startInline.forEach(we=>{Ie=we.call({lexer:this},Ge),typeof Ie=="number"&&Ie>=0&&(se=Math.min(se,Ie))}),se<1/0&&se>=0&&(he=c.substring(0,se+1))}if(B=this.tokenizer.inlineText(he)){c=c.substring(B.raw.length),B.raw.slice(-1)!=="_"&&(w=B.raw.slice(-1)),A=!0;let se=f.at(-1);(se==null?void 0:se.type)==="text"?(se.raw+=B.raw,se.text+=B.text):f.push(B);continue}if(c){this.infiniteLoopError(c.charCodeAt(0));break}}return f}infiniteLoopError(c){let f="Infinite loop on byte: "+c;if(this.options.silent)console.error(f);else throw new Error(f)}},cc=class{constructor(d){Ee(this,"options");Ee(this,"parser");this.options=d||qa}space(d){return""}code({text:d,lang:c,escaped:f}){var b;let s=(b=(c||"").match(ot.notSpaceStart))==null?void 0:b[0],h=d.replace(ot.endingNewline,"")+`
94
+ `;return s?'<pre><code class="language-'+fl(s)+'">'+(f?h:fl(h,!0))+`</code></pre>
95
+ `:"<pre><code>"+(f?h:fl(h,!0))+`</code></pre>
96
+ `}blockquote({tokens:d}){return`<blockquote>
97
+ ${this.parser.parse(d)}</blockquote>
98
+ `}html({text:d}){return d}def(d){return""}heading({tokens:d,depth:c}){return`<h${c}>${this.parser.parseInline(d)}</h${c}>
99
+ `}hr(d){return`<hr>
100
+ `}list(d){let c=d.ordered,f=d.start,s="";for(let A=0;A<d.items.length;A++){let w=d.items[A];s+=this.listitem(w)}let h=c?"ol":"ul",b=c&&f!==1?' start="'+f+'"':"";return"<"+h+b+`>
101
+ `+s+"</"+h+`>
102
+ `}listitem(d){return`<li>${this.parser.parse(d.tokens)}</li>
103
+ `}checkbox({checked:d}){return"<input "+(d?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:d}){return`<p>${this.parser.parseInline(d)}</p>
104
+ `}table(d){let c="",f="";for(let h=0;h<d.header.length;h++)f+=this.tablecell(d.header[h]);c+=this.tablerow({text:f});let s="";for(let h=0;h<d.rows.length;h++){let b=d.rows[h];f="";for(let A=0;A<b.length;A++)f+=this.tablecell(b[A]);s+=this.tablerow({text:f})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
105
+ <thead>
106
+ `+c+`</thead>
107
+ `+s+`</table>
108
+ `}tablerow({text:d}){return`<tr>
109
+ ${d}</tr>
110
+ `}tablecell(d){let c=this.parser.parseInline(d.tokens),f=d.header?"th":"td";return(d.align?`<${f} align="${d.align}">`:`<${f}>`)+c+`</${f}>
111
+ `}strong({tokens:d}){return`<strong>${this.parser.parseInline(d)}</strong>`}em({tokens:d}){return`<em>${this.parser.parseInline(d)}</em>`}codespan({text:d}){return`<code>${fl(d,!0)}</code>`}br(d){return"<br>"}del({tokens:d}){return`<del>${this.parser.parseInline(d)}</del>`}link({href:d,title:c,tokens:f}){let s=this.parser.parseInline(f),h=Yh(d);if(h===null)return s;d=h;let b='<a href="'+d+'"';return c&&(b+=' title="'+fl(c)+'"'),b+=">"+s+"</a>",b}image({href:d,title:c,text:f,tokens:s}){s&&(f=this.parser.parseInline(s,this.parser.textRenderer));let h=Yh(d);if(h===null)return fl(f);d=h;let b=`<img src="${d}" alt="${fl(f)}"`;return c&&(b+=` title="${fl(c)}"`),b+=">",b}text(d){return"tokens"in d&&d.tokens?this.parser.parseInline(d.tokens):"escaped"in d&&d.escaped?d.text:fl(d.text)}},Vr=class{strong({text:d}){return d}em({text:d}){return d}codespan({text:d}){return d}del({text:d}){return d}html({text:d}){return d}text({text:d}){return d}link({text:d}){return""+d}image({text:d}){return""+d}br(){return""}checkbox({raw:d}){return d}},el=class Ur{constructor(c){Ee(this,"options");Ee(this,"renderer");Ee(this,"textRenderer");this.options=c||qa,this.options.renderer=this.options.renderer||new cc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Vr}static parse(c,f){return new Ur(f).parse(c)}static parseInline(c,f){return new Ur(f).parseInline(c)}parse(c){var s,h;this.renderer.parser=this;let f="";for(let b=0;b<c.length;b++){let A=c[b];if((h=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&h[A.type]){let g=A,v=this.options.extensions.renderers[g.type].call({parser:this},g);if(v!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(g.type)){f+=v||"";continue}}let w=A;switch(w.type){case"space":{f+=this.renderer.space(w);break}case"hr":{f+=this.renderer.hr(w);break}case"heading":{f+=this.renderer.heading(w);break}case"code":{f+=this.renderer.code(w);break}case"table":{f+=this.renderer.table(w);break}case"blockquote":{f+=this.renderer.blockquote(w);break}case"list":{f+=this.renderer.list(w);break}case"checkbox":{f+=this.renderer.checkbox(w);break}case"html":{f+=this.renderer.html(w);break}case"def":{f+=this.renderer.def(w);break}case"paragraph":{f+=this.renderer.paragraph(w);break}case"text":{f+=this.renderer.text(w);break}default:{let g='Token with "'+w.type+'" type was not found.';if(this.options.silent)return console.error(g),"";throw new Error(g)}}}return f}parseInline(c,f=this.renderer){var h,b;this.renderer.parser=this;let s="";for(let A=0;A<c.length;A++){let w=c[A];if((b=(h=this.options.extensions)==null?void 0:h.renderers)!=null&&b[w.type]){let v=this.options.extensions.renderers[w.type].call({parser:this},w);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(w.type)){s+=v||"";continue}}let g=w;switch(g.type){case"escape":{s+=f.text(g);break}case"html":{s+=f.html(g);break}case"link":{s+=f.link(g);break}case"image":{s+=f.image(g);break}case"checkbox":{s+=f.checkbox(g);break}case"strong":{s+=f.strong(g);break}case"em":{s+=f.em(g);break}case"codespan":{s+=f.codespan(g);break}case"br":{s+=f.br(g);break}case"del":{s+=f.del(g);break}case"text":{s+=f.text(g);break}default:{let v='Token with "'+g.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return s}},nc,wi=(nc=class{constructor(d){Ee(this,"options");Ee(this,"block");this.options=d||qa}preprocess(d){return d}postprocess(d){return d}processAllTokens(d){return d}emStrongMask(d){return d}provideLexer(d=this.block){return d?Pt.lex:Pt.lexInline}provideParser(d=this.block){return d?el.parse:el.parseInline}},Ee(nc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ee(nc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),nc),f1=class{constructor(...d){Ee(this,"defaults",qr());Ee(this,"options",this.setOptions);Ee(this,"parse",this.parseMarkdown(!0));Ee(this,"parseInline",this.parseMarkdown(!1));Ee(this,"Parser",el);Ee(this,"Renderer",cc);Ee(this,"TextRenderer",Vr);Ee(this,"Lexer",Pt);Ee(this,"Tokenizer",uc);Ee(this,"Hooks",wi);this.use(...d)}walkTokens(d,c){var s,h;let f=[];for(let b of d)switch(f=f.concat(c.call(this,b)),b.type){case"table":{let A=b;for(let w of A.header)f=f.concat(this.walkTokens(w.tokens,c));for(let w of A.rows)for(let g of w)f=f.concat(this.walkTokens(g.tokens,c));break}case"list":{let A=b;f=f.concat(this.walkTokens(A.items,c));break}default:{let A=b;(h=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&h[A.type]?this.defaults.extensions.childTokens[A.type].forEach(w=>{let g=A[w].flat(1/0);f=f.concat(this.walkTokens(g,c))}):A.tokens&&(f=f.concat(this.walkTokens(A.tokens,c)))}}return f}use(...d){let c=this.defaults.extensions||{renderers:{},childTokens:{}};return d.forEach(f=>{let s={...f};if(s.async=this.defaults.async||s.async||!1,f.extensions&&(f.extensions.forEach(h=>{if(!h.name)throw new Error("extension name required");if("renderer"in h){let b=c.renderers[h.name];b?c.renderers[h.name]=function(...A){let w=h.renderer.apply(this,A);return w===!1&&(w=b.apply(this,A)),w}:c.renderers[h.name]=h.renderer}if("tokenizer"in h){if(!h.level||h.level!=="block"&&h.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let b=c[h.level];b?b.unshift(h.tokenizer):c[h.level]=[h.tokenizer],h.start&&(h.level==="block"?c.startBlock?c.startBlock.push(h.start):c.startBlock=[h.start]:h.level==="inline"&&(c.startInline?c.startInline.push(h.start):c.startInline=[h.start]))}"childTokens"in h&&h.childTokens&&(c.childTokens[h.name]=h.childTokens)}),s.extensions=c),f.renderer){let h=this.defaults.renderer||new cc(this.defaults);for(let b in f.renderer){if(!(b in h))throw new Error(`renderer '${b}' does not exist`);if(["options","parser"].includes(b))continue;let A=b,w=f.renderer[A],g=h[A];h[A]=(...v)=>{let k=w.apply(h,v);return k===!1&&(k=g.apply(h,v)),k||""}}s.renderer=h}if(f.tokenizer){let h=this.defaults.tokenizer||new uc(this.defaults);for(let b in f.tokenizer){if(!(b in h))throw new Error(`tokenizer '${b}' does not exist`);if(["options","rules","lexer"].includes(b))continue;let A=b,w=f.tokenizer[A],g=h[A];h[A]=(...v)=>{let k=w.apply(h,v);return k===!1&&(k=g.apply(h,v)),k}}s.tokenizer=h}if(f.hooks){let h=this.defaults.hooks||new wi;for(let b in f.hooks){if(!(b in h))throw new Error(`hook '${b}' does not exist`);if(["options","block"].includes(b))continue;let A=b,w=f.hooks[A],g=h[A];wi.passThroughHooks.has(b)?h[A]=v=>{if(this.defaults.async&&wi.passThroughHooksRespectAsync.has(b))return(async()=>{let R=await w.call(h,v);return g.call(h,R)})();let k=w.call(h,v);return g.call(h,k)}:h[A]=(...v)=>{if(this.defaults.async)return(async()=>{let R=await w.apply(h,v);return R===!1&&(R=await g.apply(h,v)),R})();let k=w.apply(h,v);return k===!1&&(k=g.apply(h,v)),k}}s.hooks=h}if(f.walkTokens){let h=this.defaults.walkTokens,b=f.walkTokens;s.walkTokens=function(A){let w=[];return w.push(b.call(this,A)),h&&(w=w.concat(h.call(this,A))),w}}this.defaults={...this.defaults,...s}}),this}setOptions(d){return this.defaults={...this.defaults,...d},this}lexer(d,c){return Pt.lex(d,c??this.defaults)}parser(d,c){return el.parse(d,c??this.defaults)}parseMarkdown(d){return(c,f)=>{let s={...f},h={...this.defaults,...s},b=this.onError(!!h.silent,!!h.async);if(this.defaults.async===!0&&s.async===!1)return b(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof c>"u"||c===null)return b(new Error("marked(): input parameter is undefined or null"));if(typeof c!="string")return b(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(c)+", string expected"));if(h.hooks&&(h.hooks.options=h,h.hooks.block=d),h.async)return(async()=>{let A=h.hooks?await h.hooks.preprocess(c):c,w=await(h.hooks?await h.hooks.provideLexer(d):d?Pt.lex:Pt.lexInline)(A,h),g=h.hooks?await h.hooks.processAllTokens(w):w;h.walkTokens&&await Promise.all(this.walkTokens(g,h.walkTokens));let v=await(h.hooks?await h.hooks.provideParser(d):d?el.parse:el.parseInline)(g,h);return h.hooks?await h.hooks.postprocess(v):v})().catch(b);try{h.hooks&&(c=h.hooks.preprocess(c));let A=(h.hooks?h.hooks.provideLexer(d):d?Pt.lex:Pt.lexInline)(c,h);h.hooks&&(A=h.hooks.processAllTokens(A)),h.walkTokens&&this.walkTokens(A,h.walkTokens);let w=(h.hooks?h.hooks.provideParser(d):d?el.parse:el.parseInline)(A,h);return h.hooks&&(w=h.hooks.postprocess(w)),w}catch(A){return b(A)}}}onError(d,c){return f=>{if(f.message+=`
112
+ Please report this to https://github.com/markedjs/marked.`,d){let s="<p>An error occurred:</p><pre>"+fl(f.message+"",!0)+"</pre>";return c?Promise.resolve(s):s}if(c)return Promise.reject(f);throw f}}},Ha=new f1;function ze(d,c){return Ha.parse(d,c)}ze.options=ze.setOptions=function(d){return Ha.setOptions(d),ze.defaults=Ha.defaults,Ph(ze.defaults),ze};ze.getDefaults=qr;ze.defaults=qa;ze.use=function(...d){return Ha.use(...d),ze.defaults=Ha.defaults,Ph(ze.defaults),ze};ze.walkTokens=function(d,c){return Ha.walkTokens(d,c)};ze.parseInline=Ha.parseInline;ze.Parser=el;ze.parser=el.parse;ze.Renderer=cc;ze.TextRenderer=Vr;ze.Lexer=Pt;ze.lexer=Pt.lex;ze.Tokenizer=uc;ze.Hooks=wi;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;el.parse;Pt.lex;/**
113
+ * @license lucide-react v1.20.0 - ISC
114
+ *
115
+ * This source code is licensed under the ISC license.
116
+ * See the LICENSE file in the root directory of this source tree.
117
+ */const rp=(...d)=>d.filter((c,f,s)=>!!c&&c.trim()!==""&&s.indexOf(c)===f).join(" ").trim();/**
118
+ * @license lucide-react v1.20.0 - ISC
119
+ *
120
+ * This source code is licensed under the ISC license.
121
+ * See the LICENSE file in the root directory of this source tree.
122
+ */const o1=d=>d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
123
+ * @license lucide-react v1.20.0 - ISC
124
+ *
125
+ * This source code is licensed under the ISC license.
126
+ * See the LICENSE file in the root directory of this source tree.
127
+ */const d1=d=>d.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,f,s)=>s?s.toUpperCase():f.toLowerCase());/**
128
+ * @license lucide-react v1.20.0 - ISC
129
+ *
130
+ * This source code is licensed under the ISC license.
131
+ * See the LICENSE file in the root directory of this source tree.
132
+ */const Zh=d=>{const c=d1(d);return c.charAt(0).toUpperCase()+c.slice(1)};/**
133
+ * @license lucide-react v1.20.0 - ISC
134
+ *
135
+ * This source code is licensed under the ISC license.
136
+ * See the LICENSE file in the root directory of this source tree.
137
+ */var Ar={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"};/**
138
+ * @license lucide-react v1.20.0 - ISC
139
+ *
140
+ * This source code is licensed under the ISC license.
141
+ * See the LICENSE file in the root directory of this source tree.
142
+ */const h1=d=>{for(const c in d)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1},p1=Q.createContext({}),m1=()=>Q.useContext(p1),g1=Q.forwardRef(({color:d,size:c,strokeWidth:f,absoluteStrokeWidth:s,className:h="",children:b,iconNode:A,...w},g)=>{const{size:v=24,strokeWidth:k=2,absoluteStrokeWidth:R=!1,color:H="currentColor",className:ne=""}=m1()??{},B=s??R?Number(f??k)*24/Number(c??v):f??k;return Q.createElement("svg",{ref:g,...Ar,width:c??v??Ar.width,height:c??v??Ar.height,stroke:d??H,strokeWidth:B,className:rp("lucide",ne,h),...!b&&!h1(w)&&{"aria-hidden":"true"},...w},[...A.map(([he,se])=>Q.createElement(he,se)),...Array.isArray(b)?b:[b]])});/**
143
+ * @license lucide-react v1.20.0 - ISC
144
+ *
145
+ * This source code is licensed under the ISC license.
146
+ * See the LICENSE file in the root directory of this source tree.
147
+ */const Ae=(d,c)=>{const f=Q.forwardRef(({className:s,...h},b)=>Q.createElement(g1,{ref:b,iconNode:c,className:rp(`lucide-${o1(Zh(d))}`,`lucide-${d}`,s),...h}));return f.displayName=Zh(d),f};/**
148
+ * @license lucide-react v1.20.0 - ISC
149
+ *
150
+ * This source code is licensed under the ISC license.
151
+ * See the LICENSE file in the root directory of this source tree.
152
+ */const y1=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],x1=Ae("arrow-up",y1);/**
153
+ * @license lucide-react v1.20.0 - ISC
154
+ *
155
+ * This source code is licensed under the ISC license.
156
+ * See the LICENSE file in the root directory of this source tree.
157
+ */const b1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],v1=Ae("bell-off",b1);/**
158
+ * @license lucide-react v1.20.0 - ISC
159
+ *
160
+ * This source code is licensed under the ISC license.
161
+ * See the LICENSE file in the root directory of this source tree.
162
+ */const S1=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],z1=Ae("bell",S1);/**
163
+ * @license lucide-react v1.20.0 - ISC
164
+ *
165
+ * This source code is licensed under the ISC license.
166
+ * See the LICENSE file in the root directory of this source tree.
167
+ */const j1=[["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"}]],Xh=Ae("bot",j1);/**
168
+ * @license lucide-react v1.20.0 - ISC
169
+ *
170
+ * This source code is licensed under the ISC license.
171
+ * See the LICENSE file in the root directory of this source tree.
172
+ */const N1=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_r=Ae("check",N1);/**
173
+ * @license lucide-react v1.20.0 - ISC
174
+ *
175
+ * This source code is licensed under the ISC license.
176
+ * See the LICENSE file in the root directory of this source tree.
177
+ */const T1=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],On=Ae("chevron-down",T1);/**
178
+ * @license lucide-react v1.20.0 - ISC
179
+ *
180
+ * This source code is licensed under the ISC license.
181
+ * See the LICENSE file in the root directory of this source tree.
182
+ */const E1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],kr=Ae("chevron-up",E1);/**
183
+ * @license lucide-react v1.20.0 - ISC
184
+ *
185
+ * This source code is licensed under the ISC license.
186
+ * See the LICENSE file in the root directory of this source tree.
187
+ */const A1=[["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"}]],wr=Ae("circle-alert",A1);/**
188
+ * @license lucide-react v1.20.0 - ISC
189
+ *
190
+ * This source code is licensed under the ISC license.
191
+ * See the LICENSE file in the root directory of this source tree.
192
+ */const _1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],k1=Ae("clock",_1);/**
193
+ * @license lucide-react v1.20.0 - ISC
194
+ *
195
+ * This source code is licensed under the ISC license.
196
+ * See the LICENSE file in the root directory of this source tree.
197
+ */const w1=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Vh=Ae("code",w1);/**
198
+ * @license lucide-react v1.20.0 - ISC
199
+ *
200
+ * This source code is licensed under the ISC license.
201
+ * See the LICENSE file in the root directory of this source tree.
202
+ */const O1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}]],M1=Ae("compass",O1);/**
203
+ * @license lucide-react v1.20.0 - ISC
204
+ *
205
+ * This source code is licensed under the ISC license.
206
+ * See the LICENSE file in the root directory of this source tree.
207
+ */const D1=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Jh=Ae("copy",D1);/**
208
+ * @license lucide-react v1.20.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const C1=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],R1=Ae("corner-down-right",C1);/**
213
+ * @license lucide-react v1.20.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const U1=[["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"}]],H1=Ae("external-link",U1);/**
218
+ * @license lucide-react v1.20.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const q1=[["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"}]],Kh=Ae("folder-open",q1);/**
223
+ * @license lucide-react v1.20.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const B1=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Y1=Ae("folder",B1);/**
228
+ * @license lucide-react v1.20.0 - ISC
229
+ *
230
+ * This source code is licensed under the ISC license.
231
+ * See the LICENSE file in the root directory of this source tree.
232
+ */const G1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],L1=Ae("globe",G1);/**
233
+ * @license lucide-react v1.20.0 - ISC
234
+ *
235
+ * This source code is licensed under the ISC license.
236
+ * See the LICENSE file in the root directory of this source tree.
237
+ */const Q1=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Z1=Ae("house",Q1);/**
238
+ * @license lucide-react v1.20.0 - ISC
239
+ *
240
+ * This source code is licensed under the ISC license.
241
+ * See the LICENSE file in the root directory of this source tree.
242
+ */const X1=[["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"}]],V1=Ae("message-square",X1);/**
243
+ * @license lucide-react v1.20.0 - ISC
244
+ *
245
+ * This source code is licensed under the ISC license.
246
+ * See the LICENSE file in the root directory of this source tree.
247
+ */const J1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],$h=Ae("play",J1);/**
248
+ * @license lucide-react v1.20.0 - ISC
249
+ *
250
+ * This source code is licensed under the ISC license.
251
+ * See the LICENSE file in the root directory of this source tree.
252
+ */const K1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ac=Ae("plus",K1);/**
253
+ * @license lucide-react v1.20.0 - ISC
254
+ *
255
+ * This source code is licensed under the ISC license.
256
+ * See the LICENSE file in the root directory of this source tree.
257
+ */const $1=[["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"}]],ki=Ae("refresh-cw",$1);/**
258
+ * @license lucide-react v1.20.0 - ISC
259
+ *
260
+ * This source code is licensed under the ISC license.
261
+ * See the LICENSE file in the root directory of this source tree.
262
+ */const W1=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],F1=Ae("server",W1);/**
263
+ * @license lucide-react v1.20.0 - ISC
264
+ *
265
+ * This source code is licensed under the ISC license.
266
+ * See the LICENSE file in the root directory of this source tree.
267
+ */const I1=[["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"}]],Wh=Ae("settings",I1);/**
268
+ * @license lucide-react v1.20.0 - ISC
269
+ *
270
+ * This source code is licensed under the ISC license.
271
+ * See the LICENSE file in the root directory of this source tree.
272
+ */const P1=[["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"}]],Or=Ae("sparkles",P1);/**
273
+ * @license lucide-react v1.20.0 - ISC
274
+ *
275
+ * This source code is licensed under the ISC license.
276
+ * See the LICENSE file in the root directory of this source tree.
277
+ */const eg=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Mr=Ae("square",eg);/**
278
+ * @license lucide-react v1.20.0 - ISC
279
+ *
280
+ * This source code is licensed under the ISC license.
281
+ * See the LICENSE file in the root directory of this source tree.
282
+ */const tg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Fh=Ae("terminal",tg);/**
283
+ * @license lucide-react v1.20.0 - ISC
284
+ *
285
+ * This source code is licensed under the ISC license.
286
+ * See the LICENSE file in the root directory of this source tree.
287
+ */const lg=[["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"}]],ag=Ae("user",lg),Ih=[{id:"default",name:"🤖 Modelo por defecto"},{id:"deepseek/deepseek-chat",name:"⚡️ DeepSeek v4 (Chat rápido)"},{id:"deepseek/deepseek-reasoner",name:"💭 DeepSeek R1 (Pensamiento/Razonamiento)"},{id:"google/gemini-3.5-flash",name:"♊️ Gemini 3.5 Flash"},{id:"google/gemini-3.1-pro-preview",name:"🧠 Gemini 3.1 Pro (Complejo)"},{id:"opencode/deepseek-v4-flash-free",name:"🆓 DeepSeek v4 (Flash Gratis)"},{id:"opencode/nemotron-3-ultra-free",name:"🆓 Nemotron 3 Ultra (Gratis)"}],Dr=[{id:"build",name:"🛠️ Build",description:"Agente de desarrollo estándar. Tiene todas las herramientas de lectura, escritura y bash habilitadas para programar.",color:"#3b82f6"},{id:"plan",name:"📋 Plan",description:"Agente de solo lectura/planificación. Útil para analizar el código base y planificar cambios de forma segura sin editarlos directamente.",color:"#a855f7"},{id:"sdd-orchestrator",name:"🤖 Sdd-Orchestrator",description:"Coordinador principal del flujo SDD (Spec-Driven Development). Automatiza los subagentes spec-writer, coder y tester.",color:"#10b981"}];function ng(){var mt;const[d,c]=Q.useState([]),[f,s]=Q.useState(""),h=Q.useRef("");Q.useEffect(()=>{h.current=f},[f]);const[b,A]=Q.useState(null),[w,g]=Q.useState([]),[v,k]=Q.useState(""),[R,H]=Q.useState(!1),[ne,B]=Q.useState(()=>typeof Notification<"u"&&Notification.permission==="granted"),[he,se]=Q.useState(""),[Ge,Ie]=Q.useState({}),[we,F]=Q.useState(""),[Re,Ue]=Q.useState(""),[ie,ct]=Q.useState([]),[dt,Dl]=Q.useState(4096),[Le,Qe]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_projects");if(p)try{return JSON.parse(p)}catch{}return[]}),[Xt,st]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_session_mappings");if(p)try{return JSON.parse(p)}catch{}return{}}),[De,_]=Q.useState(()=>localStorage.getItem("zugzweb_active_project_id")||"workspace_raiz"),[L,K]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_expanded_projects");if(p)try{return JSON.parse(p)}catch{}return{workspace_raiz:!0}}),[ye,xe]=Q.useState(!1),[x,C]=Q.useState(""),[G,Z]=Q.useState("");Q.useEffect(()=>{localStorage.setItem("zugzweb_projects",JSON.stringify(Le))},[Le]),Q.useEffect(()=>{localStorage.setItem("zugzweb_session_mappings",JSON.stringify(Xt))},[Xt]);const[W,ae]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_custom_session_titles");if(p)try{return JSON.parse(p)}catch{}return{}});Q.useEffect(()=>{localStorage.setItem("zugzweb_custom_session_titles",JSON.stringify(W))},[W]),Q.useEffect(()=>{localStorage.setItem("zugzweb_active_project_id",De)},[De]),Q.useEffect(()=>{localStorage.setItem("zugzweb_expanded_projects",JSON.stringify(L))},[L]);const[oe,tt]=Q.useState(()=>{const p=localStorage.getItem("zugzweb_sidebar_width");return p?parseInt(p,10):320});Q.useEffect(()=>{localStorage.setItem("zugzweb_sidebar_width",String(oe))},[oe]);const[ke,Cl]=Q.useState("default"),[Ba,Ya]=Q.useState(""),[Mi,tl]=Q.useState(()=>window.location.pathname==="/new"),[Rl,Ga]=Q.useState(()=>window.location.pathname==="/new"?`Sesión Web ${new Date().toLocaleString([],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}`:""),[Dn,Di]=Q.useState("sdd-orchestrator"),[ol,Cn]=Q.useState("default"),[La,Ci]=Q.useState(""),[Ul,lt]=Q.useState("sdd-orchestrator"),[fc,Ri]=Q.useState(()=>localStorage.getItem("zugzweb_setup_completed")==="true"),[Ui,Hl]=Q.useState(!1),[Vt,Qa]=Q.useState(""),[Rn,oc]=Q.useState(null),[ql,ht]=Q.useState([]),[ll,pt]=Q.useState(""),[dc,hc]=Q.useState(""),[Hi,dl]=Q.useState(""),[Za,ga]=Q.useState(!1),[al,Xa]=Q.useState(null),[ya,pc]=Q.useState("Seleccionar Carpeta"),Jt=async p=>{ga(!0),dl("");try{const E=p?`?path=${encodeURIComponent(p)}`:"",U=await fetch(`/api-custom/list-dir${E}`);if(U.ok){const Y=await U.json();Qa(Y.currentPath),oc(Y.parentPath),ht(Y.directories||[]),pt(Y.home||""),hc(Y.cwd||""),dl("")}else{const Y=await U.json();dl(Y.error||"No se pudo leer el directorio")}}catch(E){dl("Error de red al conectar con el servidor: "+E.message)}finally{ga(!1)}},Va=(p,E,U)=>{pc(p),Xa(()=>U),Hl(!0),Jt(E||Re)};Q.useEffect(()=>{Re&&!Vt&&(Qa(Re),Jt(Re))},[Re]);const Bl=p=>r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{type:"text",value:Vt,onChange:E=>Qa(E.target.value),onKeyDown:E=>{E.key==="Enter"&&Jt(Vt)},className:"flex-1 bg-[#121215] border border-[#27272a] focus:border-[#3f3f46] rounded-xl px-3.5 py-2 text-xs font-mono text-white outline-none transition",placeholder:"Ruta absoluta..."}),r.jsx("button",{type:"button",onClick:()=>Jt(Vt),className:"px-3 py-2 bg-white text-[#09090b] text-xs font-bold rounded-xl hover:bg-[#e4e4e7] transition cursor-pointer",children:"Ir"})]}),r.jsxs("div",{className:"flex gap-2 items-center flex-wrap",children:[r.jsxs("button",{type:"button",disabled:!Rn,onClick:()=>Rn&&Jt(Rn),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#1c1c1f] hover:bg-[#27272a] disabled:opacity-40 disabled:hover:bg-[#1c1c1f] border border-[#2e2e33] rounded-lg text-xs text-white transition cursor-pointer font-medium",title:"Subir un nivel",children:[r.jsx(x1,{size:12}),r.jsx("span",{children:"Subir Nivel"})]}),r.jsxs("button",{type:"button",onClick:()=>Jt(ll),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#1c1c1f] hover:bg-[#27272a] border border-[#2e2e33] rounded-lg text-xs text-white transition cursor-pointer font-medium",title:"Carpeta Home",children:[r.jsx(Z1,{size:12}),r.jsx("span",{children:"Home"})]}),r.jsxs("button",{type:"button",onClick:()=>Jt(dc),className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#1c1c1f] hover:bg-[#27272a] border border-[#2e2e33] rounded-lg text-xs text-white transition cursor-pointer font-medium",title:"Directorio Raíz del Servidor",children:[r.jsx(M1,{size:12}),r.jsx("span",{children:"CWD Servidor"})]})]})]}),Hi&&r.jsxs("div",{className:"p-3 bg-red-950/40 border border-red-900/50 rounded-xl flex items-center gap-2 text-red-400 text-xs animate-pulse",children:[r.jsx(wr,{size:14,className:"shrink-0"}),r.jsx("span",{children:Hi})]}),r.jsxs("div",{className:"border border-[#1f1f23] rounded-xl bg-[#070709] overflow-hidden",children:[r.jsx("div",{className:"p-2 border-b border-[#1f1f23] bg-[#0c0c0e]/60 text-[10px] text-[#71717a] font-bold uppercase tracking-wider select-none",children:"Subcarpetas en este directorio:"}),r.jsx("div",{className:"max-h-64 overflow-y-auto p-2 space-y-1 scrollbar-thin",children:Za?r.jsxs("div",{className:"py-8 flex flex-col items-center justify-center text-[#71717a] space-y-2",children:[r.jsx(ki,{size:18,className:"animate-spin text-white/60"}),r.jsx("span",{className:"text-xs",children:"Cargando carpetas..."})]}):ql.length===0?r.jsx("div",{className:"py-8 text-center text-xs text-[#52525b] italic",children:"No se encontraron subcarpetas visibles en este directorio."}):r.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-1.5",children:ql.map((E,U)=>r.jsxs("button",{type:"button",onClick:()=>{const Y=Vt.includes("\\")?"\\":"/",q=Vt.endsWith(Y)?Vt+E:Vt+Y+E;Jt(q)},className:"flex items-center gap-2 p-2 rounded-lg bg-[#0c0c0e]/40 border border-[#1c1c1f] hover:border-[#27272a] hover:bg-[#121215] text-left text-xs text-white transition cursor-pointer outline-none truncate",children:[r.jsx(Y1,{size:14,className:"text-amber-500 shrink-0"}),r.jsx("span",{className:"truncate font-medium",children:E})]},U))})})]}),r.jsx("div",{className:"flex justify-end pt-2",children:r.jsxs("button",{type:"button",onClick:()=>p(Vt),className:"flex items-center gap-1.5 px-4 py-2.5 bg-emerald-500 hover:bg-emerald-400 text-[#09090b] text-xs font-bold rounded-xl transition cursor-pointer shadow-md",children:[r.jsx(_r,{size:14,strokeWidth:2.5}),r.jsx("span",{children:"Confirmar Selección"})]})})]}),Yl=Q.useRef(null),xa=Q.useRef(!1),[qi,Ja]=Q.useState(!1),Nt=p=>{if(window.history.pushState(null,"",p),tl(p==="/new"),p==="/new"){const E=new Date().toLocaleString([],{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"});Ga(`Sesión Web ${E}`)}};Q.useEffect(()=>{gc(),Bi(),nl(),Kt();const p=()=>{tl(window.location.pathname==="/new")};window.addEventListener("popstate",p);const E=setInterval(()=>{nl(),Kt()},5e3);return()=>{window.removeEventListener("popstate",p),clearInterval(E)}},[]);const hl=()=>{f&&(Ct(f),il(),Dt(f,!0))};Q.useEffect(()=>{f&&hl()},[f,dt]);const Ka=Q.useRef(0),pl=Q.useRef(null),Tt=p=>{if(!p)return;const E=Date.now(),U=200;if(pl.current)return;const Y=U-(E-Ka.current);Y<=0?(Ct(p),Ka.current=E):pl.current=setTimeout(()=>{Ct(p),Ka.current=Date.now(),pl.current=null},Y)};Q.useEffect(()=>{if(!f)return;const p=new EventSource("/api/event"),E=q=>{var I,te;try{const We=JSON.parse(q.data),Pe=We.type||q.type,Ut=((I=We.properties)==null?void 0:I.sessionID)||((te=We.properties)==null?void 0:te.sessionId)||We.sessionId||We.session_id;Pe.startsWith("message.")&&(!Ut||Ut===f)?Tt(f):Pe.startsWith("session.")&&(!Ut||Ut===f)&&(il(),Dt(f),Tt(f))}catch{Tt(f)}};p.addEventListener("message",E),["message.part.updated","message.part.removed","message.updated","session.status","session.idle","session.updated","session.created"].forEach(q=>{p.addEventListener(q,E)}),p.onerror=()=>{};const Y=setInterval(()=>{il(),Tt(f),Dt(f)},6e3);return()=>{p.close(),pl.current&&(clearTimeout(pl.current),pl.current=null),clearInterval(Y)}},[f,dt]),Q.useEffect(()=>{!qi&&Yl.current&&(Yl.current.scrollTop=Yl.current.scrollHeight)},[w]);const $e=()=>{if(Yl.current){const{scrollTop:p,scrollHeight:E,clientHeight:U}=Yl.current,Y=E-p-U<120;Ja(!Y)}},rt=p=>{try{return{__html:ze.parse(p,{gfm:!0,breaks:!0})}}catch{return{__html:p}}},Gl=async()=>{if(ne){B(!1);return}await Notification.requestPermission()==="granted"?(B(!0),ba("¡Notificaciones activadas!","Te avisaremos cuando tus flujos en Opencode terminen.")):alert("Permiso de notificación denegado por el navegador.")},ba=(p,E)=>{Notification.permission==="granted"&&new Notification(p,{body:E,icon:"/favicon.ico"})},mc=(p,E)=>{navigator.clipboard.writeText(p).then(()=>{Ya(E),setTimeout(()=>Ya(""),2e3)})};async function gc(){try{const p=await fetch("/api-custom/tunnel-status");if(p.ok){const E=await p.json();se(E.url||"")}}catch(p){console.error("Error obteniendo estado del túnel:",p)}}async function Bi(){try{const p=await fetch("/api-custom/cwd");if(p.ok){const E=await p.json();E.cwd&&(Ue(E.cwd),Qe(U=>!localStorage.getItem("zugzweb_projects")||U.length===0?[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:E.cwd}]:U.some(I=>I.id==="workspace_raiz")?U.map(I=>I.id==="workspace_raiz"?{...I,name:"Carpeta Base Zugz",path:E.cwd}:I):[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:E.cwd},...U]))}}catch(p){console.error("Error al obtener cwd:",p)}}async function nl(){try{const p=await fetch("/api-custom/instances");if(p.ok){const E=await p.json();ct(E.instances||[]),Dl(E.currentPort||4096)}}catch(p){console.error("Error obteniendo instancias de Opencode:",p)}}async function Kt(){try{const p=await fetch("/api/session");if(p.ok){const E=await p.json(),U=Array.isArray(E)?E:E.sessions||[];if(c(U),st(Y=>{let q=!1;const I={...Y};for(const te of U)I[te.id]||(I[te.id]=De,q=!0);return q?I:Y}),F(""),U.length>0){const Y=U.some(q=>q.id===h.current);(!h.current||!Y)&&s(U[0].id)}else Nt("/new")}else{const E=await p.json().catch(()=>({}));F(E.message||'No se pudo conectar con Opencode. ¿Has iniciado "opencode serve"?')}}catch{F("No se pudo conectar al Daemon local de Opencode")}}async function Dt(p,E=!1){try{const U=await fetch(`/api/session/${p}`);if(U.ok){const Y=await U.json();A(Y),Y.agent&&E&&lt(Y.agent),F("")}else s(""),A(null)}catch(U){console.error(U)}}async function Ct(p){try{const E=await fetch(`/api/session/${p}/message`);if(E.ok){const U=await E.json(),Y=Array.isArray(U)?U:U.messages||[];g(Y),F("")}else{const U=await E.json().catch(()=>({}));F(U.message||"No se pudieron recuperar los mensajes")}}catch(E){console.error(E)}}async function il(){try{const p=await fetch("/api/session/status");if(p.ok){const E=await p.json();if(f&&E[f]){const U=E[f];U==="thinking"||U==="running_tools"||U==="busy"?H(q=>xa.current?!1:q||!0):(xa.current=!1,H(q=>q&&(ba("Opencode: ¡Ejecución Completada! 🎉","El agente ha finalizado el procesamiento de tu solicitud con éxito."),Ct(f),Dt(f),!1)))}F("")}else{const E=await p.json().catch(()=>({}));F(E.message||"No se pudo comprobar el estado de Opencode")}}catch(p){console.error(p)}}const Ll=async p=>{if(p.preventDefault(),!x.trim()||!G.trim())return;let E=G.trim();if(!E.startsWith("/")){const q=Le.find(te=>te.id==="workspace_raiz");E=`${q?q.path:Re}/${E}`}const U=`project_${Date.now()}`,Y={id:U,name:x.trim(),path:E};try{await fetch("/api-custom/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:E})})}catch(q){console.error("Error al solicitar creación de carpeta física:",q)}Qe(q=>[...q,Y]),K(q=>({...q,[U]:!0})),_(U),C(""),Z(""),xe(!1)},Ze=p=>{if(p==="workspace_raiz"){alert("No puedes eliminar el proyecto raíz principal.");return}confirm("¿Estás seguro de que quieres eliminar este proyecto? Las sesiones asociadas se moverán al Inbox / Sin Clasificar.")&&(Qe(E=>E.filter(U=>U.id!==p)),st(E=>{const U={...E};for(const Y in U)U[Y]===p&&delete U[Y];return U}),De===p&&_("workspace_raiz"))},Yi=p=>{K(E=>({...E,[p]:!E[p]}))},Un=async(p,E)=>{const U=Le.find(Y=>Y.id===E);if(U)if(De!==E){H(!0),F(`Activando entorno de "${U.name}"...`);try{const Y=await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:U.path})});if(Y.ok)_(E),c([]),s(""),A(null),g([]),await Kt(),s(p),F(""),Nt("/");else{const q=await Y.json().catch(()=>({}));F(q.error||"Error al activar el proyecto para esta sesión")}}catch{F("Error de conexión al activar el proyecto de la sesión")}finally{H(!1)}}else s(p),F(""),Nt("/")},ml=async p=>{const E=Le.find(U=>U.id===p);if(E){H(!0),F("Activando entorno de proyecto en segundo plano...");try{const U=await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:E.path})});if(U.ok)_(p),c([]),s(""),A(null),g([]),await Kt(),F("");else{const Y=await U.json().catch(()=>({}));F(Y.error||"Error al activar el proyecto")}}catch{F("No se pudo conectar con el Daemon para activar el proyecto")}finally{H(!1)}}},Ql=async p=>{const E=Le.find(Y=>Y.id===p);if(!E)return;if(De!==p){H(!0),F(`Activando entorno de "${E.name}"...`);try{if((await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:E.path})})).ok)_(p),c([]),s(""),A(null),g([]),F("");else{alert(`No se pudo activar el proyecto: ${E.name}`),H(!1);return}}catch{alert(`Error al conectar al Daemon para activar el proyecto: ${E.name}`),H(!1);return}}const U=prompt(`Introduce el título de la nueva sesión para "${E.name}":`,`Sesión ${new Date().toLocaleDateString()}`);if(!(!U||!U.trim())){H(!0),F("Iniciando sesión...");try{const Y=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:U.trim()})});if(Y.ok){const q=await Y.json();c(I=>[q,...I]),s(q.id),A(q),g([]),ae(I=>({...I,[q.id]:U.trim()})),st(I=>({...I,[q.id]:p})),Nt("/")}else alert("Error al crear la sesión en Opencode")}catch{alert("Error de conexión al crear sesión")}finally{H(!1),F("")}}},yc=async(p,E)=>{if(E.stopPropagation(),!!confirm("¿Estás seguro de que quieres eliminar esta sesión y todos sus mensajes permanentemente?"))try{(await fetch(`/api/session/${p}`,{method:"DELETE"})).ok?(c(Y=>Y.filter(q=>q.id!==p)),st(Y=>{const q={...Y};return delete q[p],q}),f===p&&(s(""),A(null),g([]))):alert("No se pudo eliminar la sesión de Opencode")}catch{alert("Error de red al eliminar la sesión")}},Gi=p=>{p.preventDefault();const E=p.clientX,U=oe,Y=I=>{const te=I.clientX-E,We=Math.max(220,Math.min(500,U+te));tt(We)},q=()=>{document.removeEventListener("mousemove",Y),document.removeEventListener("mouseup",q)};document.addEventListener("mousemove",Y),document.addEventListener("mouseup",q)},Li=async p=>{if(p&&p.preventDefault(),!Rl.trim()){alert("Por favor introduce un título para la sesión");return}try{H(!0);const E=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:Rl.trim()})});if(!E.ok)throw new Error("Error al crear sesión");const U=await E.json();c(te=>[U,...te]),s(U.id),A(U),g([]),ae(te=>({...te,[U.id]:Rl.trim()})),st(te=>({...te,[U.id]:De})),lt(Dn),Cl(ol);const Y=Le.find(te=>te.id===De);let q="";Y&&Y.id!=="workspace_raiz"&&(q=`[SISTEMA: Directorio de trabajo del proyecto: ${Y.path}. Por favor, realiza todas tus operaciones de archivos, edits, y ejecuciones de comandos de bash estrictamente dentro de esta subcarpeta usando el parámetro "workdir" o comandos relativos a la misma. No escribas archivos en la raíz del repositorio central de Zugzbot a menos que sea explícitamente necesario.]
288
+
289
+ `);const I=(q+La.trim()).trim();if(I){const te={parts:[{type:"text",text:I}],agent:Dn};if(ol&&ol!=="default"){const[We,Pe]=ol.split("/");te.model={providerID:We,modelID:Pe}}await fetch(`/api/session/${U.id}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(te)}),Ci("")}Nt("/"),hl()}catch{alert("Error al iniciar la nueva sesión")}finally{H(!1)}},Qi=async p=>{if(p.preventDefault(),!v.trim()||!f)return;const E=v.trim();k(""),H(!0),Ja(!1);const U={info:{id:`temp-${Date.now()}`,session_id:f,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:E}]};g(Y=>[...Y,U]);try{if(E.startsWith("/")){const Y=E.split(" "),q=Y[0].substring(1),I=Y.slice(1).join(" ");if(!(await fetch(`/api/session/${f}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:q,arguments:I,agent:Ul})})).ok)throw new Error("Error al ejecutar comando")}else{const Y={parts:[{type:"text",text:E}],agent:Ul};if(ke&&ke!=="default"){const[I,te]=ke.split("/");Y.model={providerID:I,modelID:te}}if(!(await fetch(`/api/session/${f}/prompt_async`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Y)})).ok)throw new Error("Error al enviar prompt")}hl()}catch{F("Error al conectar. Comprueba el estado de Opencode."),H(!1)}},gl=async(p,E="")=>{if(!f)return;H(!0),Ja(!1);const U=`/${p} ${E}`.trim(),Y={info:{id:`temp-${Date.now()}`,session_id:f,role:"user",time:{created:Date.now()}},parts:[{type:"text",text:U}]};g(q=>[...q,Y]);try{if(!(await fetch(`/api/session/${f}/command`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({command:p,arguments:E,agent:Ul})})).ok)throw new Error("Error al ejecutar comando rápido");hl()}catch{F("No se pudo ejecutar el comando rápido."),H(!1)}},$a=async()=>{if(f){xa.current=!0,H(!1);try{(await fetch(`/api/session/${f}/abort`,{method:"POST"})).ok&&(ba("Opencode: Abortado","La sesión en ejecución ha sido cancelada forzadamente."),hl())}catch(p){console.error(p)}finally{setTimeout(()=>{xa.current=!1},2500)}}},Rt=p=>{Ie(E=>({...E,[p]:!E[p]}))},yt=p=>{if(!p)return"default";if(typeof p=="string")return p.split("/").pop()||p;if(typeof p=="object"&&p!==null){const E=p;return typeof E.modelID=="string"?E.modelID:typeof E.id=="string"?E.id:JSON.stringify(p).substring(0,20)}return"default"},Zi=p=>{var U;const E=((U=p==null?void 0:p.time)==null?void 0:U.created)||(p==null?void 0:p.time_created);if(!E)return"En curso...";try{const Y=new Date(E);return isNaN(Y.getTime())?"En curso...":Y.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}catch{return"En curso..."}},xc=d.filter(p=>!p.parent_id&&!p.parentID),Wa=p=>d.filter(E=>E.parent_id===p||E.parentID===p),Xi=p=>xc.filter(E=>{const U=Xt[E.id];return U&&Le.some(Y=>Y.id===U)?U===p:De===p}),Zl=[],Hn=ie.find(p=>p.port===dt);return fc?r.jsxs("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] overflow-hidden antialiased font-sans select-none",children:[r.jsxs("div",{style:{width:`${oe}px`},className:"bg-[#0c0c0e] border-r border-[#1f1f23] flex flex-col justify-between shrink-0 relative",children:[r.jsxs("div",{className:"p-4 border-b border-[#1f1f23] flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"p-1.5 bg-[#ffffff] rounded-md text-[#09090b]",children:r.jsx(Fh,{size:18,className:"font-bold animate-pulse"})}),r.jsx("span",{className:"font-bold tracking-tight text-lg",children:"ZugzWeb"})]}),r.jsx("button",{onClick:()=>Nt("/new"),className:"p-1.5 bg-[#27272a] hover:bg-[#3f3f46] text-[#fafafa] rounded-md transition duration-200 cursor-pointer",title:"Nueva Sesión",children:r.jsx(ac,{size:16})})]}),r.jsxs("div",{className:"p-3 border-b border-[#1f1f23] flex items-center justify-between bg-[#09090b]/40",children:[r.jsxs("span",{className:"text-[10px] text-[#fafafa] uppercase font-extrabold tracking-wider flex items-center gap-1.5 select-none",children:[r.jsx(F1,{size:11,className:"text-emerald-400"}),r.jsx("span",{children:"📁 GESTOR DE PROYECTOS"})]}),r.jsxs("button",{onClick:()=>xe(!ye),className:"text-[10px] bg-[#1c1c1f] hover:bg-[#27272a] text-[#a1a1aa] hover:text-white px-2 py-1 rounded border border-[#2e2e33] transition duration-200 cursor-pointer flex items-center gap-1 font-bold",title:"Añadir Proyecto Local",children:[r.jsx(ac,{size:10,strokeWidth:2.5}),r.jsx("span",{children:"Proyecto"})]})]}),ye&&r.jsxs("form",{onSubmit:Ll,className:"p-3 bg-[#121215] border-b border-[#1f1f23] space-y-2.5",children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Nombre del Proyecto"}),r.jsx("input",{type:"text",required:!0,value:x,onChange:p=>C(p.target.value),placeholder:"Ej. Proyecto ROOT",className:"w-full bg-[#0c0c0e] border border-[#27272a] rounded-lg px-2.5 py-1.5 text-xs text-white outline-none focus:border-[#3f3f46]"})]}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("label",{className:"text-[9px] font-bold text-[#71717a] uppercase",children:"Subcarpeta o Ruta Absoluta"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("input",{type:"text",required:!0,value:G,onChange:p=>Z(p.target.value),placeholder:"Ej. mi-proyecto o /Users/nombre/mi-proyecto",className:"flex-1 bg-[#0c0c0e] border border-[#27272a] rounded-lg px-2.5 py-1.5 text-xs text-white outline-none focus:border-[#3f3f46] font-mono"}),r.jsx("button",{type:"button",onClick:()=>Va("Buscar Carpeta del Proyecto",G||Re,p=>Z(p)),className:"px-2.5 py-1 bg-[#1c1c1f] hover:bg-[#27272a] border border-[#2e2e33] text-[10px] rounded-lg text-white font-semibold transition cursor-pointer shrink-0",children:"Buscar..."})]}),r.jsxs("div",{className:"text-[9px] text-[#71717a] bg-[#09090b]/40 p-2 rounded border border-[#1f1f23] font-mono break-all leading-normal mt-1",children:[r.jsx("span",{className:"text-[#a1a1aa] font-semibold",children:"📁 Ruta Destino: "}),r.jsx("span",{className:"text-emerald-400",children:G.trim().startsWith("/")?G.trim():`${Re}/${G.trim()||"mi-proyecto"}`})]})]}),r.jsxs("div",{className:"flex gap-2 justify-end pt-1",children:[r.jsx("button",{type:"button",onClick:()=>xe(!1),className:"px-2 py-1 text-[10px] text-[#71717a] hover:text-white transition cursor-pointer",children:"Cancelar"}),r.jsx("button",{type:"submit",className:"px-2.5 py-1 text-[10px] bg-white text-[#09090b] font-bold rounded hover:bg-[#e4e4e7] transition cursor-pointer",children:"Crear e Instalar"})]})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto p-2 space-y-3",children:[Le.map(p=>{const E=p.id===De,U=Xi(p.id),Y=!!L[p.id];return r.jsxs("div",{className:"space-y-1 border border-transparent rounded-lg p-1 bg-[#09090b]/20",children:[r.jsxs("div",{className:`flex items-center justify-between p-2 rounded-md transition duration-150 ${E?"bg-[#18181c] border border-[#2e2e33]/70":"hover:bg-[#121215]/50"}`,children:[r.jsxs("button",{onClick:()=>Yi(p.id),className:"flex-1 flex items-center gap-2 text-left cursor-pointer outline-none min-w-0",children:[r.jsx("span",{className:"text-[#a1a1aa] shrink-0",children:Y?r.jsx(On,{size:12}):r.jsx(kr,{size:12})}),r.jsxs("div",{className:"truncate",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsxs("span",{className:"text-white text-xs font-extrabold truncate",children:["📁 ",p.name]}),E&&r.jsx("span",{className:"text-[8px] bg-emerald-950 text-emerald-400 border border-emerald-900/50 px-1 rounded font-bold uppercase shrink-0 tracking-wider",children:"Activo"})]}),r.jsx("span",{className:"text-[9px] text-[#52525b] block truncate font-mono mt-0.5",children:p.path})]})]}),r.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-1",children:[p.id!=="workspace_raiz"&&r.jsx("button",{onClick:()=>Ql(p.id),className:"p-1 hover:bg-[#27272a] text-emerald-500 hover:text-emerald-400 rounded transition cursor-pointer",title:"Crear Sesión en este proyecto",children:r.jsx(ac,{size:10,strokeWidth:3})}),r.jsx("button",{onClick:()=>{Va(`Carpeta para: ${p.name}`,p.path,async q=>{if(Qe(I=>I.map(te=>te.id===p.id?{...te,path:q}:te)),p.id===De){H(!0),F("Re-activando proyecto en nueva ruta...");try{await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:q})}),Kt()}catch(I){console.error(I)}finally{H(!1),F("")}}})},className:"p-1 hover:bg-[#27272a] text-[#71717a] hover:text-white rounded transition cursor-pointer",title:"Explorar/Cambiar Carpeta del Proyecto",children:r.jsx(Kh,{size:10})}),!E&&p.id!=="workspace_raiz"&&r.jsx("button",{onClick:()=>ml(p.id),className:"p-1 hover:bg-[#27272a] text-[#71717a] hover:text-white rounded transition cursor-pointer",title:"Activar Proyecto",children:r.jsx($h,{size:10,className:"fill-current"})}),p.id!=="workspace_raiz"&&r.jsx("button",{onClick:()=>Ze(p.id),className:"p-1 hover:bg-red-950/40 text-[#71717a] hover:text-red-400 rounded transition cursor-pointer",title:"Eliminar Proyecto",children:r.jsx(Mr,{size:10})})]})]}),Y&&r.jsx("div",{className:"ml-3 pl-2.5 border-l border-[#1f1f23] space-y-1 pt-1.5 pb-0.5",children:p.id==="workspace_raiz"?r.jsxs("div",{className:"text-[10px] text-[#71717a] py-1 pl-1 space-y-1 pr-2 leading-relaxed",children:[r.jsx("span",{className:"block font-bold text-amber-500/90",children:"📁 Carpeta Base Central"}),r.jsxs("p",{className:"text-[#8e8e93]",children:["Para iniciar chats de desarrollo, crea primero un subproyecto con el botón ",r.jsx("strong",{className:"text-white",children:'"+ Proyecto"'})," de arriba."]})]}):U.length===0?r.jsx("div",{className:"text-[10px] text-[#52525b] italic py-1 pl-1",children:"No hay sesiones en este proyecto. Haz clic en el botón + de arriba para iniciar una."}):U.map(q=>{const I=q.id===f,te=Wa(q.id),We=te.length>0;return r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:`w-full group/sess flex items-center justify-between rounded-lg p-1.5 transition duration-200 ${I?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[r.jsxs("button",{onClick:()=>{Un(q.id,p.id)},className:"flex-1 text-left cursor-pointer outline-none min-w-0",children:[r.jsxs("span",{className:"font-semibold truncate text-[11px] block",children:["💬 ",W[q.id]||q.title||`Sesión: ${q.id.substring(0,8)}`]}),r.jsxs("div",{className:"flex items-center justify-between text-[9px] text-[#52525b] mt-0.5",children:[r.jsx("span",{children:q.agent||"sdd-orchestrator"}),r.jsx("span",{children:yt(q.model)})]})]}),r.jsx("button",{onClick:Pe=>yc(q.id,Pe),className:"opacity-0 group-hover/sess:opacity-100 p-1 hover:bg-red-950/40 text-[#71717a] hover:text-red-400 rounded transition cursor-pointer shrink-0 ml-1",title:"Eliminar Sesión",children:r.jsx(Mr,{size:10})})]}),We&&r.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:te.map(Pe=>{const Ut=Pe.id===f;return r.jsx("button",{onClick:()=>{Un(Pe.id,p.id)},className:`w-full text-left p-1.5 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${Ut?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:r.jsxs("div",{className:"flex items-center gap-1 font-medium truncate",children:[r.jsx(R1,{size:10,className:"text-[#71717a] shrink-0"}),r.jsxs("span",{className:"truncate",children:["🤖 ",Pe.title||`Sub: ${Pe.id.substring(0,5)}`]})]})},Pe.id)})})]},q.id)})})]},p.id)}),Zl.length>0&&r.jsxs("div",{className:"space-y-1 border border-dashed border-[#1f1f23] rounded-lg p-1 bg-[#09090b]/10 mt-2",children:[r.jsxs("div",{className:"p-2 flex items-center justify-between",children:[r.jsx("span",{className:"text-xs font-bold text-amber-500/80 flex items-center gap-1.5",children:"📥 Inbox / Sin Clasificar"}),r.jsx("span",{className:"text-[9px] bg-amber-950/40 text-amber-500 border border-amber-900/40 px-1.5 py-0.5 rounded-full font-bold",children:Zl.length})]}),r.jsx("div",{className:"ml-1 pl-1 space-y-1 pt-1",children:Zl.map(p=>{const E=p.id===f,U=Wa(p.id),Y=U.length>0;return r.jsxs("div",{className:"space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsxs("button",{onClick:()=>{s(p.id),F(""),Nt("/")},className:`flex-1 text-left p-2 rounded-lg flex flex-col gap-0.5 transition duration-200 cursor-pointer ${E?"bg-[#1c1c1f] border border-[#2e2e33] text-white shadow-sm":"hover:bg-[#121215] text-[#a1a1aa] hover:text-white"}`,children:[r.jsxs("span",{className:"font-semibold truncate text-[11px]",children:["💬 ",W[p.id]||p.title||`Sesión: ${p.id.substring(0,8)}`]}),r.jsx("div",{className:"flex items-center justify-between text-[9px] text-[#52525b]",children:r.jsx("span",{children:p.agent||"sdd-orchestrator"})})]}),r.jsx("button",{onClick:()=>{st(q=>({...q,[p.id]:De}))},className:"p-1 hover:bg-[#1c1c1f] text-[#71717a] hover:text-white rounded border border-[#1f1f23] transition cursor-pointer text-[9px] font-bold",title:"Mover al Proyecto Activo",children:"Mapear"})]}),Y&&r.jsx("div",{className:"ml-3 pl-2 border-l border-[#1f1f23]/60 space-y-1 py-0.5",children:U.map(q=>{const I=q.id===f;return r.jsx("button",{onClick:()=>{s(q.id),F(""),Nt("/")},className:`w-full text-left p-1 rounded-md flex flex-col gap-0.5 transition duration-150 cursor-pointer text-[10px] ${I?"bg-[#18181c] border border-[#2e2e33]/40 text-white":"hover:bg-[#0f0f12] text-[#71717a] hover:text-[#a1a1aa]"}`,children:r.jsxs("span",{className:"truncate",children:["🤖 ",q.title||`Sub: ${q.id.substring(0,5)}`]})},q.id)})})]},p.id)})})]})]}),r.jsxs("div",{className:"p-4 bg-[#09090b] border-t border-[#1f1f23] space-y-3",children:[r.jsx("button",{onClick:Gl,className:`w-full flex items-center justify-center gap-2 py-2 px-3 rounded-md text-xs font-medium border transition cursor-pointer ${ne?"bg-transparent border-[#22c55e]/30 hover:border-[#22c55e]/50 text-[#22c55e]":"bg-transparent border-[#27272a] hover:border-[#3f3f46] text-[#a1a1aa]"}`,children:ne?r.jsxs(r.Fragment,{children:[r.jsx(z1,{size:14}),r.jsx("span",{children:"Notificaciones Activas"})]}):r.jsxs(r.Fragment,{children:[r.jsx(v1,{size:14}),r.jsx("span",{children:"Activar Alertas Navegador"})]})}),he&&r.jsxs("div",{className:"p-2 bg-[#1c1c1f]/50 border border-[#2e2e33] rounded-lg space-y-1",children:[r.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] text-[#a1a1aa] font-medium",children:[r.jsx(L1,{size:11,className:"text-[#3b82f6] animate-pulse"}),r.jsx("span",{children:"Túnel Remoto Activo"})]}),r.jsxs("a",{href:he,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-[#3b82f6] hover:underline flex items-center gap-1 font-mono break-all",children:[he,r.jsx(H1,{size:8})]})]})]})]}),r.jsx("div",{onMouseDown:Gi,className:"w-1.5 hover:w-2 active:w-2 h-full bg-[#1f1f23]/80 hover:bg-[#3b82f6]/60 active:bg-[#3b82f6] cursor-col-resize shrink-0 transition-all duration-150 z-50 relative flex items-center justify-center group",children:r.jsx("div",{className:"w-[1px] h-8 bg-transparent group-hover:bg-white/40 group-active:bg-white/60 transition"})}),r.jsx("div",{className:"flex-1 flex flex-col bg-[#09090b] relative overflow-hidden",children:Mi?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"h-14 border-b border-[#1f1f23] flex items-center justify-between px-6 bg-[#09090b]/80 backdrop-blur-md z-10 shrink-0",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Or,{size:16,className:"text-emerald-400 animate-pulse"}),r.jsx("h1",{className:"text-sm font-bold text-[#fafafa]",children:"Crear Nueva Sesión de Desarrollo"})]}),d.length>0&&r.jsx("button",{onClick:()=>Nt("/"),className:"text-xs text-[#71717a] hover:text-white border border-[#1f1f23] hover:border-[#27272a] px-2.5 py-1 rounded-md transition cursor-pointer",children:"Cancelar"})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto p-8 max-w-2xl mx-auto w-full space-y-6",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("h2",{className:"text-xl font-bold tracking-tight text-white flex items-center gap-2",children:r.jsx("span",{children:"🚀 Comenzar un nuevo flujo"})}),r.jsx("p",{className:"text-xs text-[#71717a]",children:"Elige el agente y modelo adecuados para estructurar tu especificación, codificar o auditar tu aplicación de forma guiada y asíncrona."})]}),r.jsxs("form",{onSubmit:Li,className:"space-y-5",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Título de la Sesión"}),r.jsx("input",{type:"text",value:Rl,onChange:p=>Ga(p.target.value),placeholder:"Ej. Crear Login Form, Refactorizar Auth...",className:"w-full bg-[#0c0c0e] border border-[#27272a] focus:border-[#3f3f46] rounded-xl px-4 py-3 text-sm text-[#fafafa] placeholder-[#52525b] outline-none transition font-medium",required:!0})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Agente Primario Inicial"}),r.jsx("div",{className:"grid grid-cols-1 gap-2.5",children:Dr.map(p=>{const E=Dn===p.id;return r.jsxs("button",{type:"button",onClick:()=>Di(p.id),className:`w-full text-left p-3.5 rounded-xl border transition-all duration-200 flex gap-3 cursor-pointer relative ${E?"bg-[#121215] border-white/60 shadow-[0_0_12px_rgba(255,255,255,0.05)]":"bg-[#0c0c0e] border-[#1f1f23] hover:border-[#27272a]"}`,children:[r.jsx("div",{className:"h-8 w-8 rounded-lg flex items-center justify-center shrink-0",style:{backgroundColor:`${p.color}15`,color:p.color},children:p.id==="build"?r.jsx(Wh,{size:16}):p.id==="plan"?r.jsx(Vh,{size:16}):r.jsx(Or,{size:16})}),r.jsxs("div",{className:"space-y-0.5",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs font-bold text-white",children:p.name}),p.id==="sdd-orchestrator"&&r.jsx("span",{className:"text-[9px] bg-white/10 text-white/80 font-mono px-1 rounded uppercase tracking-wider",children:"Por defecto"})]}),r.jsx("p",{className:"text-[11px] text-[#71717a] leading-relaxed",children:p.description})]}),E&&r.jsx("div",{className:"absolute right-4 top-4 h-4 w-4 bg-white rounded-full flex items-center justify-center text-[#09090b]",children:r.jsx(_r,{size:10,strokeWidth:3})})]},p.id)})})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Modelo Objetivo"}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:ol,onChange:p=>Cn(p.target.value),className:"w-full bg-[#0c0c0e] border border-[#27272a] rounded-xl py-3 pl-4 pr-10 text-sm text-[#fafafa] hover:border-[#27272a] focus:border-[#3f3f46] outline-none transition cursor-pointer appearance-none font-medium",children:Ih.map(p=>r.jsx("option",{value:p.id,children:p.name},p.id))}),r.jsx("div",{className:"absolute inset-y-0 right-4 flex items-center pointer-events-none text-[#71717a]",children:r.jsx(On,{size:16})})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("label",{className:"text-xs font-bold text-[#a1a1aa] uppercase tracking-wider",children:"Primera Instrucción (Opcional)"}),r.jsx("span",{className:"text-[10px] text-[#52525b]",children:"Arranca de inmediato"})]}),r.jsx("textarea",{value:La,onChange:p=>Ci(p.target.value),placeholder:"Ej. @sdd-spec-writer Crea un contrato para una calculadora...",className:"w-full bg-[#0c0c0e] border border-[#27272a] focus:border-[#3f3f46] rounded-xl px-4 py-3 text-sm text-[#fafafa] placeholder-[#52525b] outline-none transition h-24 resize-none"})]}),r.jsxs("button",{type:"submit",disabled:R,className:"w-full bg-white hover:bg-[#e4e4e7] text-[#09090b] disabled:bg-[#18181b] disabled:text-[#71717a] font-bold py-3 px-4 rounded-xl transition duration-200 cursor-pointer text-sm shadow-md flex items-center justify-center gap-2",children:[R?r.jsx(ki,{size:14,className:"animate-spin"}):r.jsx(ac,{size:14,strokeWidth:2.5}),r.jsx("span",{children:R?"Iniciando sesión...":"Crear e Iniciar Sesión"})]})]})]})]}):r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"h-14 border-b border-[#1f1f23] flex items-center justify-between px-6 bg-[#09090b]/80 backdrop-blur-md z-10 shrink-0",children:[r.jsxs("div",{className:"flex flex-col",children:[r.jsxs("h1",{className:"text-sm font-bold m-0 p-0 text-[#fafafa] flex items-center gap-2",children:[b&&W[b.id]||(b==null?void 0:b.title)||"Cargando sesión...",R&&r.jsxs("span",{className:"flex h-2 w-2 relative",children:[r.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#22c55e] opacity-75"}),r.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#22c55e]"})]})]}),b&&r.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-[#71717a] mt-0.5",children:[r.jsxs("span",{children:["ID: ",r.jsx("code",{className:"text-[10px] font-mono bg-transparent p-0",children:b.id})]}),r.jsx("span",{children:"•"}),r.jsxs("span",{children:["Costo: ",r.jsxs("span",{className:"text-[#22c55e] font-mono",children:["$",(b.cost||0).toFixed(6)]})]}),r.jsx("span",{children:"•"}),r.jsxs("span",{children:["Tokens: In: ",b.tokens_input||0," | Out: ",b.tokens_output||0]})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[we&&r.jsxs("span",{className:"text-xs text-red-400 bg-red-950/40 border border-red-900/50 py-1 px-3 rounded-md animate-pulse flex items-center gap-1",children:[r.jsx(wr,{size:12}),we]}),r.jsx("button",{onClick:()=>{f&&(Ct(f),Dt(f),il())},className:"p-1.5 bg-[#1c1c1f] border border-[#2e2e33] hover:bg-[#27272a] text-[#a1a1aa] hover:text-[#ffffff] rounded-md transition duration-200 cursor-pointer",title:"Actualizar",children:r.jsx(ki,{size:14,className:R?"animate-spin":""})})]})]}),f&&r.jsxs("div",{className:"bg-[#0c0c0e]/60 border-b border-[#1f1f23] px-6 py-2 flex items-center gap-2 overflow-x-auto shrink-0 scrollbar-none",children:[r.jsxs("span",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider shrink-0 mr-1 flex items-center gap-1 select-none",children:[r.jsx(Vh,{size:11}),r.jsx("span",{children:"Comandos Rápidos:"})]}),r.jsx("button",{onClick:()=>gl("status"),className:"py-1 px-2.5 bg-[#121215] hover:bg-[#1c1c1f] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md transition cursor-pointer shrink-0 font-medium font-mono",children:"/status"}),r.jsx("button",{onClick:()=>gl("undo"),className:"py-1 px-2.5 bg-[#121215] hover:bg-[#1c1c1f] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md transition cursor-pointer shrink-0 font-medium font-mono",title:"Deshacer última edición de archivo",children:"/undo"}),r.jsx("button",{onClick:()=>gl("reset"),className:"py-1 px-2.5 bg-[#121215] hover:bg-[#1c1c1f] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md transition cursor-pointer shrink-0 font-medium font-mono",title:"Reiniciar y limpiar sesión",children:"/reset"}),r.jsxs("button",{onClick:()=>gl("loop",prompt("Introduce la tarea para el loop autónomo:","")||""),className:"py-1 px-2.5 bg-[#ffffff] hover:bg-[#e4e4e7] text-[#09090b] text-[11px] font-bold rounded-md transition cursor-pointer shrink-0 flex items-center gap-1",children:[r.jsx(Or,{size:10}),r.jsx("span",{children:"Iniciar Autopiloto (/loop)"})]})]}),r.jsxs("div",{ref:Yl,onScroll:$e,className:"flex-1 overflow-y-auto p-6 space-y-6",children:[b?w.length===0?r.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-[#71717a] space-y-3",children:[r.jsx(V1,{size:36,className:"text-[#27272a]"}),r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"text-sm font-medium",children:"No hay mensajes en esta sesión"}),r.jsx("p",{className:"text-xs mt-0.5",children:"Escribe una instrucción, comando o inicia un loop de desarrollo abajo."})]})]}):w.map((p,E)=>{const U=p.info.role==="user",Y=p.parts.filter(q=>q.type==="text").map(q=>q.text).join(`
290
+
291
+ `);return r.jsxs("div",{className:`flex gap-4 max-w-4xl mx-auto ${U?"justify-end":"justify-start"}`,children:[!U&&r.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:r.jsx(Xh,{size:16})}),r.jsxs("div",{className:`rounded-xl px-4 py-3 space-y-3 max-w-[85%] border shadow-sm group relative ${U?"bg-[#18181b] text-[#ffffff] border-[#2e2e33]":"bg-[#0c0c0e] text-[#f4f4f5] border-[#1f1f23]"}`,children:[r.jsxs("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:[r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{children:U?"TÚ":"AGENTE"}),r.jsx("span",{children:"•"}),r.jsxs("span",{className:"flex items-center gap-1 font-mono",children:[r.jsx(k1,{size:10}),Zi(p.info)]})]}),Y&&r.jsx("button",{onClick:()=>mc(Y,p.info.id||String(E)),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-[#1f1f23] text-[#a1a1aa] hover:text-white rounded transition cursor-pointer",title:"Copiar texto",children:Ba===(p.info.id||String(E))?r.jsx(_r,{size:12,className:"text-green-500"}):r.jsx(Jh,{size:12})})]}),r.jsx("div",{className:"space-y-3",children:p.parts.map((q,I)=>{var Pe,Ut,Fa,Vi,Ji;const te=`${p.info.id||E}-${I}`,We=Ge[te];if(q.type==="text")return r.jsx("div",{className:"text-sm leading-relaxed prose prose-invert max-w-none text-[#e4e4e7] markdown-content",dangerouslySetInnerHTML:rt(q.text||"")},I);if(q.type==="reasoning")return r.jsxs("div",{className:"border border-[#2e2e33]/50 rounded-lg overflow-hidden bg-[#121215]/30",children:[r.jsxs("button",{onClick:()=>Rt(te),className:"w-full flex items-center justify-between p-2 text-xs font-medium text-[#a1a1aa] hover:text-[#fafafa] hover:bg-[#1c1c1f]/30 transition duration-200 cursor-pointer",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-[#a855f7] animate-pulse"}),r.jsx("span",{children:"Pensamiento del modelo"})]}),We?r.jsx(kr,{size:14}):r.jsx(On,{size:14})]}),We&&r.jsx("div",{className:"p-3 border-t border-[#1f1f23] text-xs font-mono text-[#a1a1aa] bg-[#0c0c0e]/80 whitespace-pre-wrap leading-relaxed max-h-60 overflow-y-auto",children:q.text})]},I);if(q.type==="tool"){const Xl=((Pe=q.state)==null?void 0:Pe.status)||"unknown",$t=q.tool||"Desconocido",qn=!!((Ut=q.state)!=null&&Ut.output);return r.jsxs("div",{className:"border border-[#1f1f23] rounded-lg overflow-hidden bg-[#0a0a0c]",children:[r.jsxs("button",{onClick:()=>Rt(te),className:"w-full flex items-center justify-between p-2.5 text-xs font-mono text-[#e4e4e7] hover:bg-[#121215] transition duration-200 cursor-pointer",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(Wh,{size:13,className:"text-amber-500 animate-spin",style:{animationDuration:"3s"}}),r.jsxs("span",{className:"font-semibold text-amber-400",children:["Herramienta: ",$t]}),r.jsx("span",{className:`text-[10px] px-1.5 py-0.5 rounded border ${Xl==="success"||Xl==="completed"?"bg-green-950/20 text-green-400 border-green-900/50":"bg-yellow-950/20 text-yellow-500 border-yellow-900/50"}`,children:Xl})]}),We?r.jsx(kr,{size:14}):r.jsx(On,{size:14})]}),We&&r.jsxs("div",{className:"p-3 border-t border-[#1f1f23] bg-[#09090b] text-xs font-mono space-y-3",children:[r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Entrada / Parámetros:"}),r.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-40",children:JSON.stringify(((Fa=q.state)==null?void 0:Fa.input)||{},null,2)})]}),qn&&r.jsxs("div",{children:[r.jsx("div",{className:"text-[10px] text-[#71717a] font-bold uppercase tracking-wider mb-1",children:"Salida / Resultado:"}),r.jsx("pre",{className:"p-2 bg-[#0c0c0e] rounded border border-[#1f1f23] text-[#fafafa] overflow-x-auto max-h-60 overflow-y-auto",children:typeof((Vi=q.state)==null?void 0:Vi.output)=="string"?q.state.output:JSON.stringify((Ji=q.state)==null?void 0:Ji.output,null,2)})]})]})]},I)}return null})})]}),U&&r.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#ffffff] flex items-center justify-center text-[#09090b] shrink-0",children:r.jsx(ag,{size:16})})]},p.info.id||E)}):r.jsx("div",{className:"h-full flex flex-col items-center justify-center text-center max-w-md mx-auto space-y-6 p-4",children:we?r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"h-14 w-14 rounded-full bg-red-950/40 border border-red-900/50 flex items-center justify-center text-red-400",children:r.jsx(wr,{size:28})}),r.jsxs("div",{className:"space-y-2",children:[r.jsx("h2",{className:"text-lg font-bold text-white",children:"Conexión con Opencode Pendiente"}),r.jsx("p",{className:"text-xs text-[#a1a1aa] leading-relaxed",children:we})]}),r.jsxs("div",{className:"w-full bg-[#0c0c0e] border border-[#1f1f23] rounded-xl p-4 text-left space-y-3",children:[r.jsx("p",{className:"text-[11px] font-bold text-[#fafafa] uppercase tracking-wider",children:"💡 ¿Cómo solucionarlo?"}),r.jsx("p",{className:"text-xs text-[#71717a] leading-relaxed",children:"Abre otra ventana de terminal en la carpeta raíz del proyecto y ejecuta el servidor de Opencode:"}),r.jsxs("div",{className:"bg-[#18181b] border border-[#2e2e33] p-2.5 rounded-lg flex items-center justify-between font-mono text-xs text-white",children:[r.jsx("span",{children:"opencode serve"}),r.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("opencode serve")},className:"text-[#a1a1aa] hover:text-white transition cursor-pointer",title:"Copiar comando",children:r.jsx(Jh,{size:12})})]}),r.jsx("p",{className:"text-[11px] text-[#71717a]",children:"Una vez levantado, ZugzWeb se conectará automáticamente y podrás controlar tu sesión."})]}),r.jsxs("button",{type:"button",onClick:()=>{Kt(),nl()},className:"py-2 px-4 bg-white hover:bg-[#e4e4e7] text-[#09090b] font-bold rounded-lg text-xs transition duration-200 cursor-pointer shadow-md flex items-center gap-1.5",children:[r.jsx(ki,{size:12}),r.jsx("span",{children:"Volver a intentar conexión"})]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"h-12 w-12 rounded-full border border-white/10 flex items-center justify-center text-[#71717a] animate-spin",children:r.jsx(ki,{size:20})}),r.jsxs("div",{className:"space-y-1",children:[r.jsx("h2",{className:"text-sm font-semibold text-white",children:"Cargando sesión activa..."}),r.jsx("p",{className:"text-xs text-[#71717a]",children:"Estableciendo canal seguro con tu arnés Opencode local"})]})]})}),R&&w.length>0&&w[w.length-1].info.role==="user"&&r.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto justify-start",children:[r.jsx("div",{className:"h-8 w-8 rounded-full border border-[#2e2e33] bg-[#18181b] flex items-center justify-center text-[#fafafa] shrink-0",children:r.jsx(Xh,{size:16,className:"animate-spin text-emerald-400",style:{animationDuration:"4s"}})}),r.jsxs("div",{className:"rounded-xl px-4 py-3 bg-[#0c0c0e] text-[#f4f4f5] border border-[#1f1f23] max-w-[85%] shadow-sm space-y-1",children:[r.jsx("div",{className:"flex justify-between items-start border-b border-[#1f1f23]/40 pb-1 text-[11px] text-[#71717a] font-medium gap-2",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{children:"AGENTE"}),r.jsx("span",{children:"•"}),r.jsx("span",{className:"text-[10px] text-emerald-500 font-bold animate-pulse",children:"PENSANDO..."})]})}),r.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-[#a1a1aa] py-1.5",children:[r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"0ms"}}),r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"150ms"}}),r.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-bounce",style:{animationDelay:"300ms"}}),r.jsx("span",{className:"ml-1 text-xs text-[#a1a1aa] font-medium",children:"Conectando con el modelo de IA..."})]})]})]})]}),r.jsx("div",{className:"p-4 border-t border-[#1f1f23] bg-[#09090b] shrink-0",children:r.jsxs("form",{onSubmit:Qi,className:"max-w-4xl mx-auto space-y-3",children:[r.jsxs("div",{className:"flex items-center gap-4 px-1 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Agente Activo:"}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:Ul,onChange:p=>lt(p.target.value),className:"bg-[#121215] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md py-1 pl-2 pr-6 outline-none hover:border-[#27272a] transition cursor-pointer appearance-none font-semibold",children:Dr.map(p=>r.jsx("option",{value:p.id,children:p.name},p.id))}),r.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:r.jsx(On,{size:11})})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-[10px] text-[#71717a] uppercase font-bold tracking-wider select-none",children:"Modelo Objetivo:"}),r.jsxs("div",{className:"relative",children:[r.jsx("select",{value:ke,onChange:p=>Cl(p.target.value),className:"bg-[#121215] border border-[#1f1f23] text-[11px] text-[#e4e4e7] rounded-md py-1 pl-2 pr-6 outline-none hover:border-[#27272a] transition cursor-pointer appearance-none font-semibold",children:Ih.map(p=>r.jsx("option",{value:p.id,children:p.name},p.id))}),r.jsx("div",{className:"absolute inset-y-0 right-1.5 flex items-center pointer-events-none text-[#71717a]",children:r.jsx(On,{size:11})})]})]})]}),r.jsxs("div",{className:"relative border border-[#27272a] focus-within:border-[#3f3f46] rounded-xl bg-[#0c0c0e] overflow-hidden shadow-lg transition duration-200",children:[r.jsx("textarea",{value:v,onChange:p=>k(p.target.value),disabled:!f,onKeyDown:p=>{p.key==="Enter"&&!p.shiftKey&&(p.preventDefault(),Qi(p))},placeholder:f?v.startsWith("/")?"Escribe los argumentos para el comando... (ej. /loop Crear login)":`Instrucción para ${(Hn==null?void 0:Hn.name)||"Opencode"} usando ${((mt=Dr.find(p=>p.id===Ul))==null?void 0:mt.name)||Ul}... (Escribe / para ver comandos, Shift+Enter para nueva línea)`:"Debe haber una sesión activa de Opencode para enviar prompts. Por favor, inicia conexión o crea una sesión.",className:"w-full bg-transparent px-4 py-3.5 pr-24 text-sm text-[#f4f4f5] placeholder-[#71717a] outline-none border-none resize-none h-14 max-h-40 min-h-[56px] focus:ring-0 font-medium disabled:cursor-not-allowed"}),r.jsx("div",{className:"absolute right-3 bottom-3 flex items-center gap-2",children:R?r.jsxs("button",{type:"button",onClick:$a,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#ef4444] hover:bg-[#dc2626] text-white rounded-lg text-xs font-semibold transition cursor-pointer shadow animate-pulse",title:"Abortar ejecución",children:[r.jsx(Mr,{size:12,className:"fill-current"}),r.jsx("span",{children:"Abortar"})]}):r.jsxs("button",{type:"submit",disabled:!v.trim()||!f,className:"flex items-center gap-1.5 px-3 py-1.5 bg-[#ffffff] hover:bg-[#e4e4e7] disabled:bg-[#18181b] text-[#09090b] disabled:text-[#71717a] rounded-lg text-xs font-bold transition cursor-pointer shadow disabled:cursor-not-allowed",children:[r.jsx($h,{size:10,className:"fill-current"}),r.jsx("span",{children:"Enviar"})]})})]}),r.jsxs("div",{className:"flex justify-between items-center text-[11px] text-[#71717a] px-1",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("span",{className:"flex items-center gap-1",children:[r.jsx("span",{className:`h-1.5 w-1.5 rounded-full ${R?"bg-amber-500 animate-pulse":"bg-green-500"}`}),r.jsx("span",{children:R?"Procesando comando/loop":"Listo"})]}),r.jsx("span",{children:"•"}),r.jsxs("span",{children:["Enlazado al puerto :",dt," de Opencode"]})]}),r.jsx("span",{className:"font-mono",children:"v1.2.0-web"})]})]})})]})}),Ui&&r.jsx("div",{className:"fixed inset-0 bg-black/70 backdrop-blur-sm flex items-center justify-center p-4 z-[9999] animate-fadeIn",children:r.jsxs("div",{className:"w-full max-w-xl bg-[#0c0c0e] border border-[#1f1f23] rounded-2xl shadow-2xl p-6 space-y-4 flex flex-col max-h-[85vh]",children:[r.jsxs("div",{className:"flex items-center justify-between shrink-0 border-b border-[#1f1f23] pb-3",children:[r.jsxs("h3",{className:"text-sm font-bold text-white flex items-center gap-2",children:[r.jsx(Kh,{size:16,className:"text-[#3b82f6]"}),r.jsx("span",{children:ya})]}),r.jsx("button",{type:"button",onClick:()=>Hl(!1),className:"text-xs text-[#71717a] hover:text-white border border-[#1f1f23] hover:border-[#27272a] px-2.5 py-1 rounded-md transition cursor-pointer",children:"Cerrar"})]}),r.jsx("div",{className:"flex-1 overflow-y-auto scrollbar-none py-1",children:Bl(p=>{al&&al(p),Hl(!1)})})]})})]}):r.jsx("div",{className:"flex h-screen bg-[#09090b] text-[#f4f4f5] items-center justify-center p-4 overflow-hidden select-none",children:r.jsxs("div",{className:"w-full max-w-2xl bg-[#0c0c0e] border border-[#1f1f23] rounded-2xl shadow-2xl p-6 md:p-8 space-y-6 flex flex-col max-h-[90vh]",children:[r.jsxs("div",{className:"text-center space-y-2 shrink-0",children:[r.jsx("div",{className:"inline-flex p-3 bg-white text-[#09090b] rounded-2xl shadow-md mb-2",children:r.jsx(Fh,{size:28,className:"font-bold animate-pulse"})}),r.jsxs("h1",{className:"text-2xl font-black tracking-tight text-white flex items-center justify-center gap-2",children:[r.jsx("span",{children:"Bienvenido a ZugzWeb"}),r.jsx("span",{className:"text-[10px] bg-emerald-950 text-emerald-400 border border-emerald-900/50 px-1.5 py-0.5 rounded font-bold uppercase tracking-wider",children:"Harness v1.2"})]}),r.jsx("p",{className:"text-xs text-[#a1a1aa] max-w-md mx-auto leading-relaxed",children:"Para comenzar a programar de forma autónoma con tu arnés SDD, necesitamos que selecciones la carpeta de tu computadora que servirá como tu espacio de trabajo inicial."})]}),r.jsx("div",{className:"flex-1 overflow-y-auto py-1 scrollbar-none",children:Bl(async p=>{const E=[{id:"workspace_raiz",name:"Carpeta Base Zugz",path:p}];Qe(E),localStorage.setItem("zugzweb_projects",JSON.stringify(E)),_("workspace_raiz"),localStorage.setItem("zugzweb_active_project_id","workspace_raiz"),H(!0),F("Activando entorno de desarrollo inicial...");try{await fetch("/api-custom/create-folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:p})}),await fetch("/api-custom/activate-project",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:p})}),localStorage.setItem("zugzweb_setup_completed","true"),Ri(!0),setTimeout(()=>{Kt(),nl()},1e3)}catch(U){console.error(U)}finally{H(!1),F("")}})}),r.jsx("div",{className:"text-center text-[10px] text-[#52525b] border-t border-[#1f1f23]/60 pt-4 shrink-0",children:"Podrás añadir, explorar o alternar más carpetas de proyectos en cualquier momento desde la barra lateral."})]})})}j0.createRoot(document.getElementById("root")).render(r.jsx(Q.StrictMode,{children:r.jsx(ng,{})}));