@chosengeneration/light-code 0.59.6 → 0.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
- "use strict";(()=>{var VI=Object.create;var Zm=Object.defineProperty;var HI=Object.getOwnPropertyDescriptor;var qI=Object.getOwnPropertyNames;var GI=Object.getPrototypeOf,YI=Object.prototype.hasOwnProperty;var zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gi=(e,t)=>{for(var n in t)Zm(e,n,{get:t[n],enumerable:!0})},WI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qI(t))!YI.call(e,i)&&i!==n&&Zm(e,i,{get:()=>t[i],enumerable:!(r=HI(t,i))||r.enumerable});return e};var N=(e,t,n)=>(n=e!=null?VI(GI(e)):{},WI(t||!e||!e.__esModule?Zm(n,"default",{value:e,enumerable:!0}):n,e));var w0=zi(Pc=>{"use strict";var JI=Symbol.for("react.transitional.element"),XI=Symbol.for("react.fragment");function k0(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:JI,type:e,key:r,ref:t!==void 0?t:null,props:n}}Pc.Fragment=XI;Pc.jsx=k0;Pc.jsxs=k0});var ne=zi((EM,_0)=>{"use strict";_0.exports=w0()});var Z_=zi(Se=>{"use strict";var ob=Symbol.for("react.transitional.element"),dO=Symbol.for("react.portal"),fO=Symbol.for("react.fragment"),mO=Symbol.for("react.strict_mode"),hO=Symbol.for("react.profiler"),pO=Symbol.for("react.consumer"),gO=Symbol.for("react.context"),yO=Symbol.for("react.forward_ref"),vO=Symbol.for("react.suspense"),bO=Symbol.for("react.memo"),N_=Symbol.for("react.lazy"),xO=Symbol.for("react.activity"),A_=Symbol.iterator;function SO(e){return e===null||typeof e!="object"?null:(e=A_&&e[A_]||e["@@iterator"],typeof e=="function"?e:null)}var R_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M_=Object.assign,B_={};function Na(e,t,n){this.props=e,this.context=t,this.refs=B_,this.updater=n||R_}Na.prototype.isReactComponent={};Na.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L_(){}L_.prototype=Na.prototype;function ab(e,t,n){this.props=e,this.context=t,this.refs=B_,this.updater=n||R_}var lb=ab.prototype=new L_;lb.constructor=ab;M_(lb,Na.prototype);lb.isPureReactComponent=!0;var j_=Array.isArray;function rb(){}var ut={H:null,A:null,T:null,S:null},P_=Object.prototype.hasOwnProperty;function sb(e,t,n){var r=n.ref;return{$$typeof:ob,type:e,key:t,ref:r!==void 0?r:null,props:n}}function kO(e,t){return sb(e.type,t,e.props)}function cb(e){return typeof e=="object"&&e!==null&&e.$$typeof===ob}function wO(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var O_=/\/+/g;function ib(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wO(""+e.key):t.toString(36)}function _O(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(rb,rb):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ua(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ob:case dO:a=!0;break;case N_:return a=e._init,Ua(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+ib(e,0):r,j_(i)?(n="",a!=null&&(n=a.replace(O_,"$&/")+"/"),Ua(i,t,n,"",function(u){return u})):i!=null&&(cb(i)&&(i=kO(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(O_,"$&/")+"/")+a)),t.push(i)),1;a=0;var l=r===""?".":r+":";if(j_(e))for(var c=0;c<e.length;c++)r=e[c],o=l+ib(r,c),a+=Ua(r,t,n,o,i);else if(c=SO(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,o=l+ib(r,c++),a+=Ua(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return Ua(_O(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Ad(e,t,n){if(e==null)return e;var r=[],i=0;return Ua(e,r,"","",function(o){return t.call(n,o,i++)}),r}function $O(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var U_=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)},zO={map:Ad,forEach:function(e,t,n){Ad(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ad(e,function(){t++}),t},toArray:function(e){return Ad(e,function(t){return t})||[]},only:function(e){if(!cb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Activity=xO;Se.Children=zO;Se.Component=Na;Se.Fragment=fO;Se.Profiler=hO;Se.PureComponent=ab;Se.StrictMode=mO;Se.Suspense=vO;Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ut;Se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ut.H.useMemoCache(e)}};Se.cache=function(e){return function(){return e.apply(null,arguments)}};Se.cacheSignal=function(){return null};Se.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=M_({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!P_.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];r.children=a}return sb(e.type,i,r)};Se.createContext=function(e){return e={$$typeof:gO,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:pO,_context:e},e};Se.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)P_.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return sb(e,o,i)};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:yO,render:e}};Se.isValidElement=cb;Se.lazy=function(e){return{$$typeof:N_,_payload:{_status:-1,_result:e},_init:$O}};Se.memo=function(e,t){return{$$typeof:bO,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=ut.T,n={};ut.T=n;try{var r=e(),i=ut.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(rb,U_)}catch(o){U_(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),ut.T=t}};Se.unstable_useCacheRefresh=function(){return ut.H.useCacheRefresh()};Se.use=function(e){return ut.H.use(e)};Se.useActionState=function(e,t,n){return ut.H.useActionState(e,t,n)};Se.useCallback=function(e,t){return ut.H.useCallback(e,t)};Se.useContext=function(e){return ut.H.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e,t){return ut.H.useDeferredValue(e,t)};Se.useEffect=function(e,t){return ut.H.useEffect(e,t)};Se.useEffectEvent=function(e){return ut.H.useEffectEvent(e)};Se.useId=function(){return ut.H.useId()};Se.useImperativeHandle=function(e,t,n){return ut.H.useImperativeHandle(e,t,n)};Se.useInsertionEffect=function(e,t){return ut.H.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return ut.H.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return ut.H.useMemo(e,t)};Se.useOptimistic=function(e,t){return ut.H.useOptimistic(e,t)};Se.useReducer=function(e,t,n){return ut.H.useReducer(e,t,n)};Se.useRef=function(e){return ut.H.useRef(e)};Se.useState=function(e){return ut.H.useState(e)};Se.useSyncExternalStore=function(e,t,n){return ut.H.useSyncExternalStore(e,t,n)};Se.useTransition=function(){return ut.H.useTransition()};Se.version="19.2.8"});var pe=zi((h5,F_)=>{"use strict";F_.exports=Z_()});var w$=zi(pn=>{"use strict";var BO=pe();function k$(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Nr(){}var hn={d:{f:Nr,r:function(){throw Error(k$(522))},D:Nr,C:Nr,L:Nr,m:Nr,X:Nr,S:Nr,M:Nr},p:0,findDOMNode:null},LO=Symbol.for("react.portal");function PO(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:LO,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Ds=BO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Od(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=hn;pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(k$(299));return PO(e,t,null,n)};pn.flushSync=function(e){var t=Ds.T,n=hn.p;try{if(Ds.T=null,hn.p=2,e)return e()}finally{Ds.T=t,hn.p=n,hn.d.f()}};pn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,hn.d.C(e,t))};pn.prefetchDNS=function(e){typeof e=="string"&&hn.d.D(e)};pn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Od(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?hn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&hn.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};pn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Od(t.as,t.crossOrigin);hn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&hn.d.M(e)};pn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Od(n,t.crossOrigin);hn.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};pn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Od(t.as,t.crossOrigin);hn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else hn.d.m(e)};pn.requestFormReset=function(e){hn.d.r(e)};pn.unstable_batchedUpdates=function(e,t){return e(t)};pn.useFormState=function(e,t,n){return Ds.H.useFormState(e,t,n)};pn.useFormStatus=function(){return Ds.H.useHostTransitionStatus()};pn.version="19.2.8"});var bb=zi((I5,$$)=>{"use strict";function _$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_$)}catch(e){console.error(e)}}_$(),$$.exports=w$()});var cT=zi(pt=>{"use strict";function sx(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<tf(i,t))e[r]=t,e[n]=i,n=r;else break e}}function Bi(e){return e.length===0?null:e[0]}function rf(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>tf(l,n))c<i&&0>tf(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else if(c<i&&0>tf(u,n))e[r]=u,e[c]=n,r=c;else break e}}return t}function tf(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}pt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(eT=performance,pt.unstable_now=function(){return eT.now()}):(ox=Date,tT=ox.now(),pt.unstable_now=function(){return ox.now()-tT});var eT,ox,tT,rr=[],Vr=[],tN=1,ii=null,sn=3,cx=!1,Bs=!1,Ls=!1,ux=!1,rT=typeof setTimeout=="function"?setTimeout:null,oT=typeof clearTimeout=="function"?clearTimeout:null,nT=typeof setImmediate<"u"?setImmediate:null;function nf(e){for(var t=Bi(Vr);t!==null;){if(t.callback===null)rf(Vr);else if(t.startTime<=e)rf(Vr),t.sortIndex=t.expirationTime,sx(rr,t);else break;t=Bi(Vr)}}function dx(e){if(Ls=!1,nf(e),!Bs)if(Bi(rr)!==null)Bs=!0,el||(el=!0,Qa());else{var t=Bi(Vr);t!==null&&fx(dx,t.startTime-e)}}var el=!1,Ps=-1,aT=5,lT=-1;function sT(){return ux?!0:!(pt.unstable_now()-lT<aT)}function ax(){if(ux=!1,el){var e=pt.unstable_now();lT=e;var t=!0;try{e:{Bs=!1,Ls&&(Ls=!1,oT(Ps),Ps=-1),cx=!0;var n=sn;try{t:{for(nf(e),ii=Bi(rr);ii!==null&&!(ii.expirationTime>e&&sT());){var r=ii.callback;if(typeof r=="function"){ii.callback=null,sn=ii.priorityLevel;var i=r(ii.expirationTime<=e);if(e=pt.unstable_now(),typeof i=="function"){ii.callback=i,nf(e),t=!0;break t}ii===Bi(rr)&&rf(rr),nf(e)}else rf(rr);ii=Bi(rr)}if(ii!==null)t=!0;else{var o=Bi(Vr);o!==null&&fx(dx,o.startTime-e),t=!1}}break e}finally{ii=null,sn=n,cx=!1}t=void 0}}finally{t?Qa():el=!1}}}var Qa;typeof nT=="function"?Qa=function(){nT(ax)}:typeof MessageChannel<"u"?(lx=new MessageChannel,iT=lx.port2,lx.port1.onmessage=ax,Qa=function(){iT.postMessage(null)}):Qa=function(){rT(ax,0)};var lx,iT;function fx(e,t){Ps=rT(function(){e(pt.unstable_now())},t)}pt.unstable_IdlePriority=5;pt.unstable_ImmediatePriority=1;pt.unstable_LowPriority=4;pt.unstable_NormalPriority=3;pt.unstable_Profiling=null;pt.unstable_UserBlockingPriority=2;pt.unstable_cancelCallback=function(e){e.callback=null};pt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):aT=0<e?Math.floor(1e3/e):5};pt.unstable_getCurrentPriorityLevel=function(){return sn};pt.unstable_next=function(e){switch(sn){case 1:case 2:case 3:var t=3;break;default:t=sn}var n=sn;sn=t;try{return e()}finally{sn=n}};pt.unstable_requestPaint=function(){ux=!0};pt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=sn;sn=e;try{return t()}finally{sn=n}};pt.unstable_scheduleCallback=function(e,t,n){var r=pt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:tN++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,sx(Vr,e),Bi(rr)===null&&e===Bi(Vr)&&(Ls?(oT(Ps),Ps=-1):Ls=!0,fx(dx,n-r))):(e.sortIndex=i,sx(rr,e),Bs||cx||(Bs=!0,el||(el=!0,Qa()))),e};pt.unstable_shouldYield=sT;pt.unstable_wrapCallback=function(e){var t=sn;return function(){var n=sn;sn=t;try{return e.apply(this,arguments)}finally{sn=n}}}});var dT=zi((xF,uT)=>{"use strict";uT.exports=cT()});var w6=zi(Em=>{"use strict";var Rt=dT(),R2=pe(),nN=bb();function j(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function M2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function B2(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 L2(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 fT(e){if(Tc(e)!==e)throw Error(j(188))}function iN(e){var t=e.alternate;if(!t){if(t=Tc(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return fT(i),e;if(o===r)return fT(i),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function P2(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=P2(e),t!==null)return t;e=e.sibling}return null}var ht=Object.assign,rN=Symbol.for("react.element"),of=Symbol.for("react.transitional.element"),Ws=Symbol.for("react.portal"),al=Symbol.for("react.fragment"),Z2=Symbol.for("react.strict_mode"),qx=Symbol.for("react.profiler"),F2=Symbol.for("react.consumer"),fr=Symbol.for("react.context"),P1=Symbol.for("react.forward_ref"),Gx=Symbol.for("react.suspense"),Yx=Symbol.for("react.suspense_list"),Z1=Symbol.for("react.memo"),Hr=Symbol.for("react.lazy"),Wx=Symbol.for("react.activity"),oN=Symbol.for("react.memo_cache_sentinel"),mT=Symbol.iterator;function Zs(e){return e===null||typeof e!="object"?null:(e=mT&&e[mT]||e["@@iterator"],typeof e=="function"?e:null)}var aN=Symbol.for("react.client.reference");function Jx(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===aN?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case al:return"Fragment";case qx:return"Profiler";case Z2:return"StrictMode";case Gx:return"Suspense";case Yx:return"SuspenseList";case Wx:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ws:return"Portal";case fr:return e.displayName||"Context";case F2:return(e._context.displayName||"Context")+".Consumer";case P1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z1:return t=e.displayName||null,t!==null?t:Jx(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return Jx(e(t))}catch{}}return null}var Js=Array.isArray,ge=R2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pe=nN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Lo={pending:!1,data:null,method:null,action:null},Xx=[],ll=-1;function Vi(e){return{current:e}}function Zt(e){0>ll||(e.current=Xx[ll],Xx[ll]=null,ll--)}function st(e,t){ll++,Xx[ll]=e.current,e.current=t}var Fi=Vi(null),mc=Vi(null),no=Vi(null),Mf=Vi(null);function Bf(e,t){switch(st(no,t),st(mc,e),st(Fi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?x2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=x2(t),e=c6(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Zt(Fi),st(Fi,e)}function $l(){Zt(Fi),Zt(mc),Zt(no)}function Kx(e){e.memoizedState!==null&&st(Mf,e);var t=Fi.current,n=c6(t,e.type);t!==n&&(st(mc,e),st(Fi,n))}function Lf(e){mc.current===e&&(Zt(Fi),Zt(mc)),Mf.current===e&&(Zt(Mf),_c._currentValue=Lo)}var mx,hT;function No(e){if(mx===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mx=t&&t[1]||"",hT=-1<n.stack.indexOf(`
1
+ "use strict";(()=>{var VI=Object.create;var Zm=Object.defineProperty;var HI=Object.getOwnPropertyDescriptor;var qI=Object.getOwnPropertyNames;var GI=Object.getPrototypeOf,YI=Object.prototype.hasOwnProperty;var zi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gi=(e,t)=>{for(var n in t)Zm(e,n,{get:t[n],enumerable:!0})},WI=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qI(t))!YI.call(e,i)&&i!==n&&Zm(e,i,{get:()=>t[i],enumerable:!(r=HI(t,i))||r.enumerable});return e};var N=(e,t,n)=>(n=e!=null?VI(GI(e)):{},WI(t||!e||!e.__esModule?Zm(n,"default",{value:e,enumerable:!0}):n,e));var w0=zi(Pc=>{"use strict";var JI=Symbol.for("react.transitional.element"),XI=Symbol.for("react.fragment");function k0(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:JI,type:e,key:r,ref:t!==void 0?t:null,props:n}}Pc.Fragment=XI;Pc.jsx=k0;Pc.jsxs=k0});var ne=zi((EM,_0)=>{"use strict";_0.exports=w0()});var Z_=zi(Se=>{"use strict";var ob=Symbol.for("react.transitional.element"),dO=Symbol.for("react.portal"),fO=Symbol.for("react.fragment"),mO=Symbol.for("react.strict_mode"),hO=Symbol.for("react.profiler"),pO=Symbol.for("react.consumer"),gO=Symbol.for("react.context"),yO=Symbol.for("react.forward_ref"),vO=Symbol.for("react.suspense"),bO=Symbol.for("react.memo"),N_=Symbol.for("react.lazy"),xO=Symbol.for("react.activity"),A_=Symbol.iterator;function SO(e){return e===null||typeof e!="object"?null:(e=A_&&e[A_]||e["@@iterator"],typeof e=="function"?e:null)}var R_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M_=Object.assign,B_={};function Na(e,t,n){this.props=e,this.context=t,this.refs=B_,this.updater=n||R_}Na.prototype.isReactComponent={};Na.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Na.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function L_(){}L_.prototype=Na.prototype;function ab(e,t,n){this.props=e,this.context=t,this.refs=B_,this.updater=n||R_}var lb=ab.prototype=new L_;lb.constructor=ab;M_(lb,Na.prototype);lb.isPureReactComponent=!0;var j_=Array.isArray;function rb(){}var ut={H:null,A:null,T:null,S:null},P_=Object.prototype.hasOwnProperty;function sb(e,t,n){var r=n.ref;return{$$typeof:ob,type:e,key:t,ref:r!==void 0?r:null,props:n}}function kO(e,t){return sb(e.type,t,e.props)}function cb(e){return typeof e=="object"&&e!==null&&e.$$typeof===ob}function wO(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var O_=/\/+/g;function ib(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wO(""+e.key):t.toString(36)}function _O(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(rb,rb):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ua(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ob:case dO:a=!0;break;case N_:return a=e._init,Ua(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+ib(e,0):r,j_(i)?(n="",a!=null&&(n=a.replace(O_,"$&/")+"/"),Ua(i,t,n,"",function(u){return u})):i!=null&&(cb(i)&&(i=kO(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(O_,"$&/")+"/")+a)),t.push(i)),1;a=0;var l=r===""?".":r+":";if(j_(e))for(var c=0;c<e.length;c++)r=e[c],o=l+ib(r,c),a+=Ua(r,t,n,o,i);else if(c=SO(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,o=l+ib(r,c++),a+=Ua(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return Ua(_O(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Ad(e,t,n){if(e==null)return e;var r=[],i=0;return Ua(e,r,"","",function(o){return t.call(n,o,i++)}),r}function $O(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var U_=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)},zO={map:Ad,forEach:function(e,t,n){Ad(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ad(e,function(){t++}),t},toArray:function(e){return Ad(e,function(t){return t})||[]},only:function(e){if(!cb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Se.Activity=xO;Se.Children=zO;Se.Component=Na;Se.Fragment=fO;Se.Profiler=hO;Se.PureComponent=ab;Se.StrictMode=mO;Se.Suspense=vO;Se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ut;Se.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ut.H.useMemoCache(e)}};Se.cache=function(e){return function(){return e.apply(null,arguments)}};Se.cacheSignal=function(){return null};Se.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=M_({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!P_.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];r.children=a}return sb(e.type,i,r)};Se.createContext=function(e){return e={$$typeof:gO,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:pO,_context:e},e};Se.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)P_.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return sb(e,o,i)};Se.createRef=function(){return{current:null}};Se.forwardRef=function(e){return{$$typeof:yO,render:e}};Se.isValidElement=cb;Se.lazy=function(e){return{$$typeof:N_,_payload:{_status:-1,_result:e},_init:$O}};Se.memo=function(e,t){return{$$typeof:bO,type:e,compare:t===void 0?null:t}};Se.startTransition=function(e){var t=ut.T,n={};ut.T=n;try{var r=e(),i=ut.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(rb,U_)}catch(o){U_(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),ut.T=t}};Se.unstable_useCacheRefresh=function(){return ut.H.useCacheRefresh()};Se.use=function(e){return ut.H.use(e)};Se.useActionState=function(e,t,n){return ut.H.useActionState(e,t,n)};Se.useCallback=function(e,t){return ut.H.useCallback(e,t)};Se.useContext=function(e){return ut.H.useContext(e)};Se.useDebugValue=function(){};Se.useDeferredValue=function(e,t){return ut.H.useDeferredValue(e,t)};Se.useEffect=function(e,t){return ut.H.useEffect(e,t)};Se.useEffectEvent=function(e){return ut.H.useEffectEvent(e)};Se.useId=function(){return ut.H.useId()};Se.useImperativeHandle=function(e,t,n){return ut.H.useImperativeHandle(e,t,n)};Se.useInsertionEffect=function(e,t){return ut.H.useInsertionEffect(e,t)};Se.useLayoutEffect=function(e,t){return ut.H.useLayoutEffect(e,t)};Se.useMemo=function(e,t){return ut.H.useMemo(e,t)};Se.useOptimistic=function(e,t){return ut.H.useOptimistic(e,t)};Se.useReducer=function(e,t,n){return ut.H.useReducer(e,t,n)};Se.useRef=function(e){return ut.H.useRef(e)};Se.useState=function(e){return ut.H.useState(e)};Se.useSyncExternalStore=function(e,t,n){return ut.H.useSyncExternalStore(e,t,n)};Se.useTransition=function(){return ut.H.useTransition()};Se.version="19.2.8"});var pe=zi((hL,F_)=>{"use strict";F_.exports=Z_()});var w$=zi(pn=>{"use strict";var BO=pe();function k$(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Nr(){}var hn={d:{f:Nr,r:function(){throw Error(k$(522))},D:Nr,C:Nr,L:Nr,m:Nr,X:Nr,S:Nr,M:Nr},p:0,findDOMNode:null},LO=Symbol.for("react.portal");function PO(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:LO,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Ds=BO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Od(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=hn;pn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(k$(299));return PO(e,t,null,n)};pn.flushSync=function(e){var t=Ds.T,n=hn.p;try{if(Ds.T=null,hn.p=2,e)return e()}finally{Ds.T=t,hn.p=n,hn.d.f()}};pn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,hn.d.C(e,t))};pn.prefetchDNS=function(e){typeof e=="string"&&hn.d.D(e)};pn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Od(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?hn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&hn.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};pn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Od(t.as,t.crossOrigin);hn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&hn.d.M(e)};pn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Od(n,t.crossOrigin);hn.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};pn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Od(t.as,t.crossOrigin);hn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else hn.d.m(e)};pn.requestFormReset=function(e){hn.d.r(e)};pn.unstable_batchedUpdates=function(e,t){return e(t)};pn.useFormState=function(e,t,n){return Ds.H.useFormState(e,t,n)};pn.useFormStatus=function(){return Ds.H.useHostTransitionStatus()};pn.version="19.2.8"});var bb=zi((IL,$$)=>{"use strict";function _$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_$)}catch(e){console.error(e)}}_$(),$$.exports=w$()});var cT=zi(pt=>{"use strict";function sx(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<tf(i,t))e[r]=t,e[n]=i,n=r;else break e}}function Bi(e){return e.length===0?null:e[0]}function rf(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>tf(l,n))c<i&&0>tf(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else if(c<i&&0>tf(u,n))e[r]=u,e[c]=n,r=c;else break e}}return t}function tf(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}pt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(eT=performance,pt.unstable_now=function(){return eT.now()}):(ox=Date,tT=ox.now(),pt.unstable_now=function(){return ox.now()-tT});var eT,ox,tT,rr=[],Vr=[],tN=1,ii=null,sn=3,cx=!1,Bs=!1,Ls=!1,ux=!1,rT=typeof setTimeout=="function"?setTimeout:null,oT=typeof clearTimeout=="function"?clearTimeout:null,nT=typeof setImmediate<"u"?setImmediate:null;function nf(e){for(var t=Bi(Vr);t!==null;){if(t.callback===null)rf(Vr);else if(t.startTime<=e)rf(Vr),t.sortIndex=t.expirationTime,sx(rr,t);else break;t=Bi(Vr)}}function dx(e){if(Ls=!1,nf(e),!Bs)if(Bi(rr)!==null)Bs=!0,el||(el=!0,Qa());else{var t=Bi(Vr);t!==null&&fx(dx,t.startTime-e)}}var el=!1,Ps=-1,aT=5,lT=-1;function sT(){return ux?!0:!(pt.unstable_now()-lT<aT)}function ax(){if(ux=!1,el){var e=pt.unstable_now();lT=e;var t=!0;try{e:{Bs=!1,Ls&&(Ls=!1,oT(Ps),Ps=-1),cx=!0;var n=sn;try{t:{for(nf(e),ii=Bi(rr);ii!==null&&!(ii.expirationTime>e&&sT());){var r=ii.callback;if(typeof r=="function"){ii.callback=null,sn=ii.priorityLevel;var i=r(ii.expirationTime<=e);if(e=pt.unstable_now(),typeof i=="function"){ii.callback=i,nf(e),t=!0;break t}ii===Bi(rr)&&rf(rr),nf(e)}else rf(rr);ii=Bi(rr)}if(ii!==null)t=!0;else{var o=Bi(Vr);o!==null&&fx(dx,o.startTime-e),t=!1}}break e}finally{ii=null,sn=n,cx=!1}t=void 0}}finally{t?Qa():el=!1}}}var Qa;typeof nT=="function"?Qa=function(){nT(ax)}:typeof MessageChannel<"u"?(lx=new MessageChannel,iT=lx.port2,lx.port1.onmessage=ax,Qa=function(){iT.postMessage(null)}):Qa=function(){rT(ax,0)};var lx,iT;function fx(e,t){Ps=rT(function(){e(pt.unstable_now())},t)}pt.unstable_IdlePriority=5;pt.unstable_ImmediatePriority=1;pt.unstable_LowPriority=4;pt.unstable_NormalPriority=3;pt.unstable_Profiling=null;pt.unstable_UserBlockingPriority=2;pt.unstable_cancelCallback=function(e){e.callback=null};pt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):aT=0<e?Math.floor(1e3/e):5};pt.unstable_getCurrentPriorityLevel=function(){return sn};pt.unstable_next=function(e){switch(sn){case 1:case 2:case 3:var t=3;break;default:t=sn}var n=sn;sn=t;try{return e()}finally{sn=n}};pt.unstable_requestPaint=function(){ux=!0};pt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=sn;sn=e;try{return t()}finally{sn=n}};pt.unstable_scheduleCallback=function(e,t,n){var r=pt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:tN++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,sx(Vr,e),Bi(rr)===null&&e===Bi(Vr)&&(Ls?(oT(Ps),Ps=-1):Ls=!0,fx(dx,n-r))):(e.sortIndex=i,sx(rr,e),Bs||cx||(Bs=!0,el||(el=!0,Qa()))),e};pt.unstable_shouldYield=sT;pt.unstable_wrapCallback=function(e){var t=sn;return function(){var n=sn;sn=t;try{return e.apply(this,arguments)}finally{sn=n}}}});var dT=zi((xF,uT)=>{"use strict";uT.exports=cT()});var w6=zi(Em=>{"use strict";var Rt=dT(),R2=pe(),nN=bb();function j(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function M2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function B2(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 L2(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 fT(e){if(Tc(e)!==e)throw Error(j(188))}function iN(e){var t=e.alternate;if(!t){if(t=Tc(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return fT(i),e;if(o===r)return fT(i),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function P2(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=P2(e),t!==null)return t;e=e.sibling}return null}var ht=Object.assign,rN=Symbol.for("react.element"),of=Symbol.for("react.transitional.element"),Ws=Symbol.for("react.portal"),al=Symbol.for("react.fragment"),Z2=Symbol.for("react.strict_mode"),qx=Symbol.for("react.profiler"),F2=Symbol.for("react.consumer"),fr=Symbol.for("react.context"),P1=Symbol.for("react.forward_ref"),Gx=Symbol.for("react.suspense"),Yx=Symbol.for("react.suspense_list"),Z1=Symbol.for("react.memo"),Hr=Symbol.for("react.lazy"),Wx=Symbol.for("react.activity"),oN=Symbol.for("react.memo_cache_sentinel"),mT=Symbol.iterator;function Zs(e){return e===null||typeof e!="object"?null:(e=mT&&e[mT]||e["@@iterator"],typeof e=="function"?e:null)}var aN=Symbol.for("react.client.reference");function Jx(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===aN?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case al:return"Fragment";case qx:return"Profiler";case Z2:return"StrictMode";case Gx:return"Suspense";case Yx:return"SuspenseList";case Wx:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ws:return"Portal";case fr:return e.displayName||"Context";case F2:return(e._context.displayName||"Context")+".Consumer";case P1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z1:return t=e.displayName||null,t!==null?t:Jx(e.type)||"Memo";case Hr:t=e._payload,e=e._init;try{return Jx(e(t))}catch{}}return null}var Js=Array.isArray,ge=R2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pe=nN.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Lo={pending:!1,data:null,method:null,action:null},Xx=[],ll=-1;function Vi(e){return{current:e}}function Zt(e){0>ll||(e.current=Xx[ll],Xx[ll]=null,ll--)}function st(e,t){ll++,Xx[ll]=e.current,e.current=t}var Fi=Vi(null),mc=Vi(null),no=Vi(null),Mf=Vi(null);function Bf(e,t){switch(st(no,t),st(mc,e),st(Fi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?x2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=x2(t),e=c6(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Zt(Fi),st(Fi,e)}function $l(){Zt(Fi),Zt(mc),Zt(no)}function Kx(e){e.memoizedState!==null&&st(Mf,e);var t=Fi.current,n=c6(t,e.type);t!==n&&(st(mc,e),st(Fi,n))}function Lf(e){mc.current===e&&(Zt(Fi),Zt(mc)),Mf.current===e&&(Zt(Mf),_c._currentValue=Lo)}var mx,hT;function No(e){if(mx===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mx=t&&t[1]||"",hT=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
3
  `+mx+e+hT}var hx=!1;function px(e,t){if(!e||hx)return"";hx=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(f){var m=f}Reflect.construct(e,[],h)}else{try{h.call()}catch(f){m=f}e.call(h.prototype)}}else{try{throw Error()}catch(f){m=f}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(f){if(f&&m&&typeof f.stack=="string")return[f.stack,m.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var c=a.split(`
4
4
  `),u=l.split(`
5
5
  `);for(i=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===c.length||i===u.length)for(r=c.length-1,i=u.length-1;1<=r&&0<=i&&c[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==u[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==u[i]){var d=`
6
6
  `+c[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=i);break}}}finally{hx=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?No(n):""}function lN(e,t){switch(e.tag){case 26:case 27:case 5:return No(e.type);case 16:return No("Lazy");case 13:return e.child!==t&&t!==null?No("Suspense Fallback"):No("Suspense");case 19:return No("SuspenseList");case 0:case 15:return px(e.type,!1);case 11:return px(e.type.render,!1);case 1:return px(e.type,!0);case 31:return No("Activity");default:return""}}function pT(e){try{var t="",n=null;do t+=lN(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
7
7
  Error generating stack: `+r.message+`
8
- `+r.stack}}var Qx=Object.prototype.hasOwnProperty,F1=Rt.unstable_scheduleCallback,gx=Rt.unstable_cancelCallback,sN=Rt.unstable_shouldYield,cN=Rt.unstable_requestPaint,Zn=Rt.unstable_now,uN=Rt.unstable_getCurrentPriorityLevel,V2=Rt.unstable_ImmediatePriority,H2=Rt.unstable_UserBlockingPriority,Pf=Rt.unstable_NormalPriority,dN=Rt.unstable_LowPriority,q2=Rt.unstable_IdlePriority,fN=Rt.log,mN=Rt.unstable_setDisableYieldValue,Cc=null,Fn=null;function Xr(e){if(typeof fN=="function"&&mN(e),Fn&&typeof Fn.setStrictMode=="function")try{Fn.setStrictMode(Cc,e)}catch{}}var Vn=Math.clz32?Math.clz32:gN,hN=Math.log,pN=Math.LN2;function gN(e){return e>>>=0,e===0?32:31-(hN(e)/pN|0)|0}var af=256,lf=262144,sf=4194304;function Ro(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 mm(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~o,r!==0?i=Ro(r):(a&=l,a!==0?i=Ro(a):n||(n=l&~e,n!==0&&(i=Ro(n))))):(l=r&~o,l!==0?i=Ro(l):a!==0?i=Ro(a):n||(n=r&~e,n!==0&&(i=Ro(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Ec(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yN(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 G2(){var e=sf;return sf<<=1,(sf&62914560)===0&&(sf=4194304),e}function yx(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ic(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vN(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var d=31-Vn(n),h=1<<d;l[d]=0,c[d]=-1;var m=u[d];if(m!==null)for(u[d]=null,d=0;d<m.length;d++){var f=m[d];f!==null&&(f.lane&=-536870913)}n&=~h}r!==0&&Y2(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function Y2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Vn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function W2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function J2(e,t){var n=t&-t;return n=(n&42)!==0?1:V1(n),(n&(e.suspendedLanes|t))!==0?0:n}function V1(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 H1(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function X2(){var e=Pe.p;return e!==0?e:(e=window.event,e===void 0?32:x6(e.type))}function gT(e,t){var n=Pe.p;try{return Pe.p=e,t()}finally{Pe.p=n}}var go=Math.random().toString(36).slice(2),Jt="__reactFiber$"+go,An="__reactProps$"+go,Nl="__reactContainer$"+go,e1="__reactEvents$"+go,bN="__reactListeners$"+go,xN="__reactHandles$"+go,yT="__reactResources$"+go,Dc="__reactMarker$"+go;function q1(e){delete e[Jt],delete e[An],delete e[e1],delete e[bN],delete e[xN]}function sl(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nl]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$2(e);e!==null;){if(n=e[Jt])return n;e=$2(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){if(e=e[Jt]||e[Nl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function vl(e){var t=e[yT];return t||(t=e[yT]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pt(e){e[Dc]=!0}var K2=new Set,Q2={};function Jo(e,t){zl(e,t),zl(e+"Capture",t)}function zl(e,t){for(Q2[e]=t,e=0;e<t.length;e++)K2.add(t[e])}var SN=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]*$"),vT={},bT={};function kN(e){return Qx.call(bT,e)?!0:Qx.call(vT,e)?!1:SN.test(e)?bT[e]=!0:(vT[e]=!0,!1)}function wf(e,t,n){if(kN(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function or(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function oi(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function e4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wN(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function t1(e){if(!e._valueTracker){var t=e4(e)?"checked":"value";e._valueTracker=wN(e,t,""+e[t])}}function t4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e4(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zf(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 _N=/[\n"\\]/g;function si(e){return e.replace(_N,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function n1(e,t,n,r,i,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+oi(t)):e.value!==""+oi(t)&&(e.value=""+oi(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?i1(e,a,oi(t)):n!=null?i1(e,a,oi(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+oi(l):e.removeAttribute("name")}function n4(e,t,n,r,i,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){t1(e);return}n=n!=null?""+oi(n):"",t=t!=null?""+oi(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),t1(e)}function i1(e,t,n){t==="number"&&Zf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function i4(e,t,n){if(t!=null&&(t=""+oi(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+oi(n):""}function r4(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(j(92));if(Js(r)){if(1<r.length)throw Error(j(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=oi(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),t1(e)}function Tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $N=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 xT(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||$N.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function o4(e,t,n){if(t!=null&&typeof t!="object")throw Error(j(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&xT(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&xT(e,o,t[o])}function G1(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 zN=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"]]),TN=/^[\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 _f(e){return TN.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mr(){}var r1=null;function Y1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cl=null,xl=null;function ST(e){var t=Rl(e);if(t&&(e=t.stateNode)){var n=e[An]||null;e:switch(e=t.stateNode,t.type){case"input":if(n1(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+si(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[An]||null;if(!i)throw Error(j(90));n1(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&t4(r)}break e;case"textarea":i4(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&bl(e,!!n.multiple,t,!1)}}}var vx=!1;function a4(e,t,n){if(vx)return e(t,n);vx=!0;try{var r=e(t);return r}finally{if(vx=!1,(cl!==null||xl!==null)&&($m(),cl&&(t=cl,e=xl,xl=cl=null,ST(t),e)))for(t=0;t<e.length;t++)ST(e[t])}}function hc(e,t){var n=e.stateNode;if(n===null)return null;var r=n[An]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),o1=!1;if(vr)try{tl={},Object.defineProperty(tl,"passive",{get:function(){o1=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{o1=!1}var tl,Kr=null,W1=null,$f=null;function l4(){if($f)return $f;var e,t=W1,n=t.length,r,i="value"in Kr?Kr.value:Kr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return $f=i.slice(e,1<r?1-r:void 0)}function zf(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 uf(){return!0}function kT(){return!1}function jn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uf:kT,this.isPropagationStopped=kT,this}return ht(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uf)},persist:function(){},isPersistent:uf}),t}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hm=jn(Xo),Ac=ht({},Xo,{view:0,detail:0}),CN=jn(Ac),bx,xx,Fs,pm=ht({},Ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J1,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!==Fs&&(Fs&&e.type==="mousemove"?(bx=e.screenX-Fs.screenX,xx=e.screenY-Fs.screenY):xx=bx=0,Fs=e),bx)},movementY:function(e){return"movementY"in e?e.movementY:xx}}),wT=jn(pm),EN=ht({},pm,{dataTransfer:0}),IN=jn(EN),DN=ht({},Ac,{relatedTarget:0}),Sx=jn(DN),AN=ht({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),jN=jn(AN),ON=ht({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UN=jn(ON),NN=ht({},Xo,{data:0}),_T=jn(NN),RN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MN={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"},BN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BN[e])?!!t[e]:!1}function J1(){return LN}var PN=ht({},Ac,{key:function(e){if(e.key){var t=RN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?MN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J1,charCode:function(e){return e.type==="keypress"?zf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ZN=jn(PN),FN=ht({},pm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$T=jn(FN),VN=ht({},Ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J1}),HN=jn(VN),qN=ht({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),GN=jn(qN),YN=ht({},pm,{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}),WN=jn(YN),JN=ht({},Xo,{newState:0,oldState:0}),XN=jn(JN),KN=[9,13,27,32],X1=vr&&"CompositionEvent"in window,ec=null;vr&&"documentMode"in document&&(ec=document.documentMode);var QN=vr&&"TextEvent"in window&&!ec,s4=vr&&(!X1||ec&&8<ec&&11>=ec),zT=" ",TT=!1;function c4(e,t){switch(e){case"keyup":return KN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function u4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ul=!1;function eR(e,t){switch(e){case"compositionend":return u4(t);case"keypress":return t.which!==32?null:(TT=!0,zT);case"textInput":return e=t.data,e===zT&&TT?null:e;default:return null}}function tR(e,t){if(ul)return e==="compositionend"||!X1&&c4(e,t)?(e=l4(),$f=W1=Kr=null,ul=!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 s4&&t.locale!=="ko"?null:t.data;default:return null}}var nR={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 CT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nR[e.type]:t==="textarea"}function d4(e,t,n,r){cl?xl?xl.push(r):xl=[r]:cl=r,t=am(t,"onChange"),0<t.length&&(n=new hm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tc=null,pc=null;function iR(e){a6(e,0)}function gm(e){var t=Xs(e);if(t4(t))return e}function ET(e,t){if(e==="change")return t}var f4=!1;vr&&(vr?(ff="oninput"in document,ff||(kx=document.createElement("div"),kx.setAttribute("oninput","return;"),ff=typeof kx.oninput=="function"),df=ff):df=!1,f4=df&&(!document.documentMode||9<document.documentMode));var df,ff,kx;function IT(){tc&&(tc.detachEvent("onpropertychange",m4),pc=tc=null)}function m4(e){if(e.propertyName==="value"&&gm(pc)){var t=[];d4(t,pc,e,Y1(e)),a4(iR,t)}}function rR(e,t,n){e==="focusin"?(IT(),tc=t,pc=n,tc.attachEvent("onpropertychange",m4)):e==="focusout"&&IT()}function oR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gm(pc)}function aR(e,t){if(e==="click")return gm(t)}function lR(e,t){if(e==="input"||e==="change")return gm(t)}function sR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qn=typeof Object.is=="function"?Object.is:sR;function gc(e,t){if(qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Qx.call(t,i)||!qn(e[i],t[i]))return!1}return!0}function DT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function AT(e,t){var n=DT(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=DT(n)}}function h4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?h4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function p4(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zf(e.document)}return t}function K1(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 cR=vr&&"documentMode"in document&&11>=document.documentMode,dl=null,a1=null,nc=null,l1=!1;function jT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;l1||dl==null||dl!==Zf(r)||(r=dl,"selectionStart"in r&&K1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nc&&gc(nc,r)||(nc=r,r=am(a1,"onSelect"),0<r.length&&(t=new hm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dl)))}function Uo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fl={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionrun:Uo("Transition","TransitionRun"),transitionstart:Uo("Transition","TransitionStart"),transitioncancel:Uo("Transition","TransitionCancel"),transitionend:Uo("Transition","TransitionEnd")},wx={},g4={};vr&&(g4=document.createElement("div").style,"AnimationEvent"in window||(delete fl.animationend.animation,delete fl.animationiteration.animation,delete fl.animationstart.animation),"TransitionEvent"in window||delete fl.transitionend.transition);function Ko(e){if(wx[e])return wx[e];if(!fl[e])return e;var t=fl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in g4)return wx[e]=t[n];return e}var y4=Ko("animationend"),v4=Ko("animationiteration"),b4=Ko("animationstart"),uR=Ko("transitionrun"),dR=Ko("transitionstart"),fR=Ko("transitioncancel"),x4=Ko("transitionend"),S4=new Map,s1="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(" ");s1.push("scrollEnd");function wi(e,t){S4.set(e,t),Jo(t,[e])}var Ff=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)},ri=[],ml=0,Q1=0;function ym(){for(var e=ml,t=Q1=ml=0;t<e;){var n=ri[t];ri[t++]=null;var r=ri[t];ri[t++]=null;var i=ri[t];ri[t++]=null;var o=ri[t];if(ri[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&k4(n,i,o)}}function vm(e,t,n,r){ri[ml++]=e,ri[ml++]=t,ri[ml++]=n,ri[ml++]=r,Q1|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function eS(e,t,n,r){return vm(e,t,n,r),Vf(e)}function Qo(e,t){return vm(e,null,null,t),Vf(e)}function k4(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Vn(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function Vf(e){if(50<dc)throw dc=0,E1=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hl={};function mR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(e,t,n,r){return new mR(e,t,n,r)}function tS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pr(e,t){var n=e.alternate;return n===null?(n=Ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function w4(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Tf(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")tS(e)&&(a=1);else if(typeof e=="string")a=gM(e,n,Fi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Wx:return e=Ln(31,n,t,i),e.elementType=Wx,e.lanes=o,e;case al:return Po(n.children,i,o,t);case Z2:a=8,i|=24;break;case qx:return e=Ln(12,n,t,i|2),e.elementType=qx,e.lanes=o,e;case Gx:return e=Ln(13,n,t,i),e.elementType=Gx,e.lanes=o,e;case Yx:return e=Ln(19,n,t,i),e.elementType=Yx,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fr:a=10;break e;case F2:a=9;break e;case P1:a=11;break e;case Z1:a=14;break e;case Hr:a=16,r=null;break e}a=29,n=Error(j(130,e===null?"null":typeof e,"")),r=null}return t=Ln(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Po(e,t,n,r){return e=Ln(7,e,r,t),e.lanes=n,e}function _x(e,t,n){return e=Ln(6,e,null,t),e.lanes=n,e}function _4(e){var t=Ln(18,null,null,0);return t.stateNode=e,t}function $x(e,t,n){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var OT=new WeakMap;function ci(e,t){if(typeof e=="object"&&e!==null){var n=OT.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pT(t)},OT.set(e,t),t)}return{value:e,source:t,stack:pT(t)}}var pl=[],gl=0,Hf=null,yc=0,ai=[],li=0,fo=null,Li=1,Pi="";function ur(e,t){pl[gl++]=yc,pl[gl++]=Hf,Hf=e,yc=t}function $4(e,t,n){ai[li++]=Li,ai[li++]=Pi,ai[li++]=fo,fo=e;var r=Li;e=Pi;var i=32-Vn(r)-1;r&=~(1<<i),n+=1;var o=32-Vn(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Li=1<<32-Vn(t)+i|n<<i|r,Pi=o+e}else Li=1<<o|n<<i|r,Pi=e}function nS(e){e.return!==null&&(ur(e,1),$4(e,1,0))}function iS(e){for(;e===Hf;)Hf=pl[--gl],pl[gl]=null,yc=pl[--gl],pl[gl]=null;for(;e===fo;)fo=ai[--li],ai[li]=null,Pi=ai[--li],ai[li]=null,Li=ai[--li],ai[li]=null}function z4(e,t){ai[li++]=Li,ai[li++]=Pi,ai[li++]=fo,Li=t.id,Pi=t.overflow,fo=e}var Xt=null,mt=null,Ue=!1,io=null,ui=!1,c1=Error(j(519));function mo(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vc(ci(t,e)),c1}function UT(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Jt]=e,t[An]=r,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<kc.length;n++)Ee(kc[n],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),n4(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),r4(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||s6(t.textContent,n)?(r.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),r.onScroll!=null&&Ee("scroll",t),r.onScrollEnd!=null&&Ee("scrollend",t),r.onClick!=null&&(t.onclick=mr),t=!0):t=!1,t||mo(e,!0)}function NT(e){for(Xt=e.return;Xt;)switch(Xt.tag){case 5:case 31:case 13:ui=!1;return;case 27:case 3:ui=!0;return;default:Xt=Xt.return}}function nl(e){if(e!==Xt)return!1;if(!Ue)return NT(e),Ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||O1(e.type,e.memoizedProps)),n=!n),n&&mt&&mo(e),NT(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));mt=_2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));mt=_2(e)}else t===27?(t=mt,yo(e.type)?(e=M1,M1=null,mt=e):mt=t):mt=Xt?fi(e.stateNode.nextSibling):null;return!0}function Ho(){mt=Xt=null,Ue=!1}function zx(){var e=io;return e!==null&&(In===null?In=e:In.push.apply(In,e),io=null),e}function vc(e){io===null?io=[e]:io.push(e)}var u1=Vi(null),ea=null,hr=null;function Gr(e,t,n){st(u1,t._currentValue),t._currentValue=n}function gr(e){e._currentValue=u1.current,Zt(u1)}function d1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function f1(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),d1(o.return,n,e),r||(a=null);break e}o=l.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(j(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),d1(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Ml(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(j(387));if(a=a.memoizedProps,a!==null){var l=i.type;qn(i.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(i===Mf.current){if(a=i.alternate,a===null)throw Error(j(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(_c):e=[_c])}i=i.return}e!==null&&f1(t,e,n,r),t.flags|=262144}function qf(e){for(e=e.firstContext;e!==null;){if(!qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qo(e){ea=e,hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return T4(ea,e)}function mf(e,t){return ea===null&&qo(e),T4(e,t)}function T4(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hr===null){if(e===null)throw Error(j(308));hr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hr=hr.next=t;return n}var hR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},pR=Rt.unstable_scheduleCallback,gR=Rt.unstable_NormalPriority,It={$$typeof:fr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rS(){return{controller:new hR,data:new Map,refCount:0}}function jc(e){e.refCount--,e.refCount===0&&pR(gR,function(){e.controller.abort()})}var ic=null,m1=0,Cl=0,Sl=null;function yR(e,t){if(ic===null){var n=ic=[];m1=0,Cl=ES(),Sl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return m1++,t.then(RT,RT),t}function RT(){if(--m1===0&&ic!==null){Sl!==null&&(Sl.status="fulfilled");var e=ic;ic=null,Cl=0,Sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vR(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var MT=ge.S;ge.S=function(e,t){PC=Zn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yR(e,t),MT!==null&&MT(e,t)};var Zo=Vi(null);function oS(){var e=Zo.current;return e!==null?e:it.pooledCache}function Cf(e,t){t===null?st(Zo,Zo.current):st(Zo,t.pool)}function C4(){var e=oS();return e===null?null:{parent:It._currentValue,pool:e}}var Bl=Error(j(460)),aS=Error(j(474)),bm=Error(j(542)),Gf={then:function(){}};function BT(e){return e=e.status,e==="fulfilled"||e==="rejected"}function E4(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mr,mr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,PT(e),e;default:if(typeof t.status=="string")t.then(mr,mr);else{if(e=it,e!==null&&100<e.shellSuspendCounter)throw Error(j(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,PT(e),e}throw Fo=t,Bl}}function Mo(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fo=n,Bl):n}}var Fo=null;function LT(){if(Fo===null)throw Error(j(459));var e=Fo;return Fo=null,e}function PT(e){if(e===Bl||e===bm)throw Error(j(483))}var kl=null,bc=0;function hf(e){var t=bc;return bc+=1,kl===null&&(kl=[]),E4(kl,e,t)}function Vs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pf(e,t){throw t.$$typeof===rN?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function I4(e){function t(g,b){if(e){var S=g.deletions;S===null?(g.deletions=[b],g.flags|=16):S.push(b)}}function n(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function r(g){for(var b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function i(g,b){return g=pr(g,b),g.index=0,g.sibling=null,g}function o(g,b,S){return g.index=S,e?(S=g.alternate,S!==null?(S=S.index,S<b?(g.flags|=67108866,b):S):(g.flags|=67108866,b)):(g.flags|=1048576,b)}function a(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,b,S,v){return b===null||b.tag!==6?(b=_x(S,g.mode,v),b.return=g,b):(b=i(b,S),b.return=g,b)}function c(g,b,S,v){var C=S.type;return C===al?d(g,b,S.props.children,v,S.key):b!==null&&(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Hr&&Mo(C)===b.type)?(b=i(b,S.props),Vs(b,S),b.return=g,b):(b=Tf(S.type,S.key,S.props,null,g.mode,v),Vs(b,S),b.return=g,b)}function u(g,b,S,v){return b===null||b.tag!==4||b.stateNode.containerInfo!==S.containerInfo||b.stateNode.implementation!==S.implementation?(b=$x(S,g.mode,v),b.return=g,b):(b=i(b,S.children||[]),b.return=g,b)}function d(g,b,S,v,C){return b===null||b.tag!==7?(b=Po(S,g.mode,v,C),b.return=g,b):(b=i(b,S),b.return=g,b)}function h(g,b,S){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=_x(""+b,g.mode,S),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case of:return S=Tf(b.type,b.key,b.props,null,g.mode,S),Vs(S,b),S.return=g,S;case Ws:return b=$x(b,g.mode,S),b.return=g,b;case Hr:return b=Mo(b),h(g,b,S)}if(Js(b)||Zs(b))return b=Po(b,g.mode,S,null),b.return=g,b;if(typeof b.then=="function")return h(g,hf(b),S);if(b.$$typeof===fr)return h(g,mf(g,b),S);pf(g,b)}return null}function m(g,b,S,v){var C=b!==null?b.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return C!==null?null:l(g,b,""+S,v);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case of:return S.key===C?c(g,b,S,v):null;case Ws:return S.key===C?u(g,b,S,v):null;case Hr:return S=Mo(S),m(g,b,S,v)}if(Js(S)||Zs(S))return C!==null?null:d(g,b,S,v,null);if(typeof S.then=="function")return m(g,b,hf(S),v);if(S.$$typeof===fr)return m(g,b,mf(g,S),v);pf(g,S)}return null}function f(g,b,S,v,C){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(S)||null,l(b,g,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case of:return g=g.get(v.key===null?S:v.key)||null,c(b,g,v,C);case Ws:return g=g.get(v.key===null?S:v.key)||null,u(b,g,v,C);case Hr:return v=Mo(v),f(g,b,S,v,C)}if(Js(v)||Zs(v))return g=g.get(S)||null,d(b,g,v,C,null);if(typeof v.then=="function")return f(g,b,S,hf(v),C);if(v.$$typeof===fr)return f(g,b,S,mf(b,v),C);pf(b,v)}return null}function y(g,b,S,v){for(var C=null,K=null,q=b,w=b=0,R=null;q!==null&&w<S.length;w++){q.index>w?(R=q,q=null):R=q.sibling;var ce=m(g,q,S[w],v);if(ce===null){q===null&&(q=R);break}e&&q&&ce.alternate===null&&t(g,q),b=o(ce,b,w),K===null?C=ce:K.sibling=ce,K=ce,q=R}if(w===S.length)return n(g,q),Ue&&ur(g,w),C;if(q===null){for(;w<S.length;w++)q=h(g,S[w],v),q!==null&&(b=o(q,b,w),K===null?C=q:K.sibling=q,K=q);return Ue&&ur(g,w),C}for(q=r(q);w<S.length;w++)R=f(q,g,w,S[w],v),R!==null&&(e&&R.alternate!==null&&q.delete(R.key===null?w:R.key),b=o(R,b,w),K===null?C=R:K.sibling=R,K=R);return e&&q.forEach(function(Me){return t(g,Me)}),Ue&&ur(g,w),C}function k(g,b,S,v){if(S==null)throw Error(j(151));for(var C=null,K=null,q=b,w=b=0,R=null,ce=S.next();q!==null&&!ce.done;w++,ce=S.next()){q.index>w?(R=q,q=null):R=q.sibling;var Me=m(g,q,ce.value,v);if(Me===null){q===null&&(q=R);break}e&&q&&Me.alternate===null&&t(g,q),b=o(Me,b,w),K===null?C=Me:K.sibling=Me,K=Me,q=R}if(ce.done)return n(g,q),Ue&&ur(g,w),C;if(q===null){for(;!ce.done;w++,ce=S.next())ce=h(g,ce.value,v),ce!==null&&(b=o(ce,b,w),K===null?C=ce:K.sibling=ce,K=ce);return Ue&&ur(g,w),C}for(q=r(q);!ce.done;w++,ce=S.next())ce=f(q,g,w,ce.value,v),ce!==null&&(e&&ce.alternate!==null&&q.delete(ce.key===null?w:ce.key),b=o(ce,b,w),K===null?C=ce:K.sibling=ce,K=ce);return e&&q.forEach(function(ct){return t(g,ct)}),Ue&&ur(g,w),C}function E(g,b,S,v){if(typeof S=="object"&&S!==null&&S.type===al&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case of:e:{for(var C=S.key;b!==null;){if(b.key===C){if(C=S.type,C===al){if(b.tag===7){n(g,b.sibling),v=i(b,S.props.children),v.return=g,g=v;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Hr&&Mo(C)===b.type){n(g,b.sibling),v=i(b,S.props),Vs(v,S),v.return=g,g=v;break e}n(g,b);break}else t(g,b);b=b.sibling}S.type===al?(v=Po(S.props.children,g.mode,v,S.key),v.return=g,g=v):(v=Tf(S.type,S.key,S.props,null,g.mode,v),Vs(v,S),v.return=g,g=v)}return a(g);case Ws:e:{for(C=S.key;b!==null;){if(b.key===C)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(g,b.sibling),v=i(b,S.children||[]),v.return=g,g=v;break e}else{n(g,b);break}else t(g,b);b=b.sibling}v=$x(S,g.mode,v),v.return=g,g=v}return a(g);case Hr:return S=Mo(S),E(g,b,S,v)}if(Js(S))return y(g,b,S,v);if(Zs(S)){if(C=Zs(S),typeof C!="function")throw Error(j(150));return S=C.call(S),k(g,b,S,v)}if(typeof S.then=="function")return E(g,b,hf(S),v);if(S.$$typeof===fr)return E(g,b,mf(g,S),v);pf(g,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,b!==null&&b.tag===6?(n(g,b.sibling),v=i(b,S),v.return=g,g=v):(n(g,b),v=_x(S,g.mode,v),v.return=g,g=v),a(g)):n(g,b)}return function(g,b,S,v){try{bc=0;var C=E(g,b,S,v);return kl=null,C}catch(q){if(q===Bl||q===bm)throw q;var K=Ln(29,q,null,g.mode);return K.lanes=v,K.return=g,K}}}var Go=I4(!0),D4=I4(!1),qr=!1;function lS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function h1(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 ro(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Le&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Vf(e),k4(e,null,n),t}return vm(e,r,t,n),Vf(e)}function rc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,W2(e,n)}}function Tx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var p1=!1;function oc(){if(p1){var e=Sl;if(e!==null)throw e}}function ac(e,t,n,r){p1=!1;var i=e.updateQueue;qr=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var h=i.baseState;a=0,d=u=c=null,l=o;do{var m=l.lane&-536870913,f=m!==l.lane;if(f?(De&m)===m:(r&m)===m){m!==0&&m===Cl&&(p1=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,k=l;m=t;var E=n;switch(k.tag){case 1:if(y=k.payload,typeof y=="function"){h=y.call(E,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,m=typeof y=="function"?y.call(E,h,m):y,m==null)break e;h=ht({},h,m);break e;case 2:qr=!0}}m=l.callback,m!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[m]:f.push(m))}else f={lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,c=h):d=d.next=f,a|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,o===null&&(i.shared.lanes=0),po|=a,e.lanes=a,e.memoizedState=h}}function A4(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function j4(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)A4(n[e],t)}var El=Vi(null),Yf=Vi(0);function ZT(e,t){e=kr,st(Yf,e),st(El,t),kr=e|t.baseLanes}function g1(){st(Yf,kr),st(El,El.current)}function sS(){kr=Yf.current,Zt(El),Zt(Yf)}var Gn=Vi(null),di=null;function Yr(e){var t=e.alternate;st($t,$t.current&1),st(Gn,e),di===null&&(t===null||El.current!==null||t.memoizedState!==null)&&(di=e)}function y1(e){st($t,$t.current),st(Gn,e),di===null&&(di=e)}function O4(e){e.tag===22?(st($t,$t.current),st(Gn,e),di===null&&(di=e)):Wr(e)}function Wr(){st($t,$t.current),st(Gn,Gn.current)}function Bn(e){Zt(Gn),di===e&&(di=null),Zt($t)}var $t=Vi(0);function Wf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||N1(n)||R1(n)))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 br=0,we=null,Qe=null,Ct=null,Jf=!1,wl=!1,Yo=!1,Xf=0,xc=0,_l=null,bR=0;function St(){throw Error(j(321))}function cS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qn(e[n],t[n]))return!1;return!0}function uS(e,t,n,r,i,o){return br=o,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?dC:SS,Yo=!1,o=n(r,i),Yo=!1,wl&&(o=N4(t,n,r,i)),U4(e),o}function U4(e){ge.H=Sc;var t=Qe!==null&&Qe.next!==null;if(br=0,Ct=Qe=we=null,Jf=!1,xc=0,_l=null,t)throw Error(j(300));e===null||Dt||(e=e.dependencies,e!==null&&qf(e)&&(Dt=!0))}function N4(e,t,n,r){we=e;var i=0;do{if(wl&&(_l=null),xc=0,wl=!1,25<=i)throw Error(j(301));if(i+=1,Ct=Qe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ge.H=fC,o=t(n,r)}while(wl);return o}function xR(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Oc(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(we.flags|=1024),t}function dS(){var e=Xf!==0;return Xf=0,e}function fS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function mS(e){if(Jf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jf=!1}br=0,Ct=Qe=we=null,wl=!1,xc=Xf=0,_l=null}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?we.memoizedState=Ct=e:Ct=Ct.next=e,Ct}function zt(){if(Qe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=Ct===null?we.memoizedState:Ct.next;if(t!==null)Ct=t,Qe=e;else{if(e===null)throw we.alternate===null?Error(j(467)):Error(j(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Ct===null?we.memoizedState=Ct=e:Ct=Ct.next=e}return Ct}function xm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oc(e){var t=xc;return xc+=1,_l===null&&(_l=[]),e=E4(_l,e,t),t=we,(Ct===null?t.memoizedState:Ct.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?dC:SS),e}function Sm(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Oc(e);if(e.$$typeof===fr)return Kt(e)}throw Error(j(438,String(e)))}function hS(e){var t=null,n=we.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=we.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xm(),we.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=oN;return t.index++,n}function xr(e,t){return typeof t=="function"?t(e):t}function Ef(e){var t=zt();return pS(t,Qe,e)}function pS(e,t,n){var r=e.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var l=a=null,c=null,u=t,d=!1;do{var h=u.lane&-536870913;if(h!==u.lane?(De&h)===h:(br&h)===h){var m=u.revertLane;if(m===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Cl&&(d=!0);else if((br&m)===m){u=u.next,m===Cl&&(d=!0);continue}else h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=h,a=o):c=c.next=h,we.lanes|=m,po|=m;h=u.action,Yo&&n(o,h),o=u.hasEagerState?u.eagerState:n(o,h)}else m={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=m,a=o):c=c.next=m,we.lanes|=h,po|=h;u=u.next}while(u!==null&&u!==t);if(c===null?a=o:c.next=l,!qn(o,e.memoizedState)&&(Dt=!0,d&&(n=Sl,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=c,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Cx(e){var t=zt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);qn(o,t.memoizedState)||(Dt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function R4(e,t,n){var r=we,i=zt(),o=Ue;if(o){if(n===void 0)throw Error(j(407));n=n()}else n=t();var a=!qn((Qe||i).memoizedState,n);if(a&&(i.memoizedState=n,Dt=!0),i=i.queue,gS(L4.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||Ct!==null&&Ct.memoizedState.tag&1){if(r.flags|=2048,Il(9,{destroy:void 0},B4.bind(null,r,i,n,t),null),it===null)throw Error(j(349));o||(br&127)!==0||M4(r,t,n)}return n}function M4(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t=xm(),we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function B4(e,t,n,r){t.value=n,t.getSnapshot=r,P4(t)&&Z4(e)}function L4(e,t,n){return n(function(){P4(t)&&Z4(e)})}function P4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qn(e,n)}catch{return!0}}function Z4(e){var t=Qo(e,2);t!==null&&Dn(t,e,2)}function v1(e){var t=bn();if(typeof e=="function"){var n=e;if(e=n(),Yo){Xr(!0);try{n()}finally{Xr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:e},t}function F4(e,t,n,r){return e.baseState=n,pS(e,Qe,typeof r=="function"?r:xr)}function SR(e,t,n,r,i){if(wm(e))throw Error(j(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};ge.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,V4(t,o)):(o.next=n.next,t.pending=n.next=o)}}function V4(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=ge.T,a={};ge.T=a;try{var l=n(i,r),c=ge.S;c!==null&&c(a,l),FT(e,t,l)}catch(u){b1(e,t,u)}finally{o!==null&&a.types!==null&&(o.types=a.types),ge.T=o}}else try{o=n(i,r),FT(e,t,o)}catch(u){b1(e,t,u)}}function FT(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){VT(e,t,r)},function(r){return b1(e,t,r)}):VT(e,t,n)}function VT(e,t,n){t.status="fulfilled",t.value=n,H4(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,V4(e,n)))}function b1(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,H4(t),t=t.next;while(t!==r)}e.action=null}function H4(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function q4(e,t){return t}function HT(e,t){if(Ue){var n=it.formState;if(n!==null){e:{var r=we;if(Ue){if(mt){t:{for(var i=mt,o=ui;i.nodeType!==8;){if(!o){i=null;break t}if(i=fi(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){mt=fi(i.nextSibling),r=i.data==="F!";break e}}mo(r)}r=!1}r&&(t=n[0])}}return n=bn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:q4,lastRenderedState:t},n.queue=r,n=sC.bind(null,we,r),r.dispatch=n,r=v1(!1),o=xS.bind(null,we,!1,r.queue),r=bn(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=SR.bind(null,we,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function qT(e){var t=zt();return G4(t,Qe,e)}function G4(e,t,n){if(t=pS(e,t,q4)[0],e=Ef(xr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Oc(t)}catch(a){throw a===Bl?bm:a}else r=t;t=zt();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(we.flags|=2048,Il(9,{destroy:void 0},kR.bind(null,i,n),null)),[r,o,e]}function kR(e,t){e.action=t}function GT(e){var t=zt(),n=Qe;if(n!==null)return G4(t,n,e);zt(),t=t.memoizedState,n=zt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Il(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=we.updateQueue,t===null&&(t=xm(),we.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Y4(){return zt().memoizedState}function If(e,t,n,r){var i=bn();we.flags|=e,i.memoizedState=Il(1|t,{destroy:void 0},n,r===void 0?null:r)}function km(e,t,n,r){var i=zt();r=r===void 0?null:r;var o=i.memoizedState.inst;Qe!==null&&r!==null&&cS(r,Qe.memoizedState.deps)?i.memoizedState=Il(t,o,n,r):(we.flags|=e,i.memoizedState=Il(1|t,o,n,r))}function YT(e,t){If(8390656,8,e,t)}function gS(e,t){km(2048,8,e,t)}function wR(e){we.flags|=4;var t=we.updateQueue;if(t===null)t=xm(),we.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function W4(e){var t=zt().memoizedState;return wR({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function J4(e,t){return km(4,2,e,t)}function X4(e,t){return km(4,4,e,t)}function K4(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Q4(e,t,n){n=n!=null?n.concat([e]):null,km(4,4,K4.bind(null,t,e),n)}function yS(){}function eC(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&cS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function tC(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&cS(t,r[1]))return r[0];if(r=e(),Yo){Xr(!0);try{e()}finally{Xr(!1)}}return n.memoizedState=[r,t],r}function vS(e,t,n){return n===void 0||(br&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=FC(),we.lanes|=e,po|=e,n)}function nC(e,t,n,r){return qn(n,t)?n:El.current!==null?(e=vS(e,n,r),qn(e,t)||(Dt=!0),e):(br&42)===0||(br&1073741824)!==0&&(De&261930)===0?(Dt=!0,e.memoizedState=n):(e=FC(),we.lanes|=e,po|=e,t)}function iC(e,t,n,r,i){var o=Pe.p;Pe.p=o!==0&&8>o?o:8;var a=ge.T,l={};ge.T=l,xS(e,!1,t,n);try{var c=i(),u=ge.S;if(u!==null&&u(l,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=vR(c,r);lc(e,t,d,Hn(e))}else lc(e,t,r,Hn(e))}catch(h){lc(e,t,{then:function(){},status:"rejected",reason:h},Hn())}finally{Pe.p=o,a!==null&&l.types!==null&&(a.types=l.types),ge.T=a}}function _R(){}function x1(e,t,n,r){if(e.tag!==5)throw Error(j(476));var i=rC(e).queue;iC(e,i,t,Lo,n===null?_R:function(){return oC(e),n(r)})}function rC(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Lo,baseState:Lo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:Lo},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oC(e){var t=rC(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Hn())}function bS(){return Kt(_c)}function aC(){return zt().memoizedState}function lC(){return zt().memoizedState}function $R(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Hn();e=ro(n);var r=oo(t,e,n);r!==null&&(Dn(r,t,n),rc(r,t,n)),t={cache:rS()},e.payload=t;return}t=t.return}}function zR(e,t,n){var r=Hn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wm(e)?cC(t,n):(n=eS(e,t,n,r),n!==null&&(Dn(n,e,r),uC(n,t,r)))}function sC(e,t,n){var r=Hn();lc(e,t,n,r)}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wm(e))cC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,qn(l,a))return vm(e,t,i,0),it===null&&ym(),!1}catch{}if(n=eS(e,t,i,r),n!==null)return Dn(n,e,r),uC(n,t,r),!0}return!1}function xS(e,t,n,r){if(r={lane:2,revertLane:ES(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},wm(e)){if(t)throw Error(j(479))}else t=eS(e,n,r,2),t!==null&&Dn(t,e,2)}function wm(e){var t=e.alternate;return e===we||t!==null&&t===we}function cC(e,t){wl=Jf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uC(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,W2(e,n)}}var Sc={readContext:Kt,use:Sm,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};Sc.useEffectEvent=St;var dC={readContext:Kt,use:Sm,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:YT,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,If(4194308,4,K4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return If(4194308,4,e,t)},useInsertionEffect:function(e,t){If(4,2,e,t)},useMemo:function(e,t){var n=bn();t=t===void 0?null:t;var r=e();if(Yo){Xr(!0);try{e()}finally{Xr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bn();if(n!==void 0){var i=n(t);if(Yo){Xr(!0);try{n(t)}finally{Xr(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=zR.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=bn();return e={current:e},t.memoizedState=e},useState:function(e){e=v1(e);var t=e.queue,n=sC.bind(null,we,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yS,useDeferredValue:function(e,t){var n=bn();return vS(n,e,t)},useTransition:function(){var e=v1(!1);return e=iC.bind(null,we,e.queue,!0,!1),bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=we,i=bn();if(Ue){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),it===null)throw Error(j(349));(De&127)!==0||M4(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,YT(L4.bind(null,r,o,e),[e]),r.flags|=2048,Il(9,{destroy:void 0},B4.bind(null,r,o,n,t),null),n},useId:function(){var e=bn(),t=it.identifierPrefix;if(Ue){var n=Pi,r=Li;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xf++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bR++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bS,useFormState:HT,useActionState:HT,useOptimistic:function(e){var t=bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xS.bind(null,we,!0,n),n.dispatch=t,[e,t]},useMemoCache:hS,useCacheRefresh:function(){return bn().memoizedState=$R.bind(null,we)},useEffectEvent:function(e){var t=bn(),n={impl:e};return t.memoizedState=n,function(){if((Le&2)!==0)throw Error(j(440));return n.impl.apply(void 0,arguments)}}},SS={readContext:Kt,use:Sm,useCallback:eC,useContext:Kt,useEffect:gS,useImperativeHandle:Q4,useInsertionEffect:J4,useLayoutEffect:X4,useMemo:tC,useReducer:Ef,useRef:Y4,useState:function(){return Ef(xr)},useDebugValue:yS,useDeferredValue:function(e,t){var n=zt();return nC(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Ef(xr)[0],t=zt().memoizedState;return[typeof e=="boolean"?e:Oc(e),t]},useSyncExternalStore:R4,useId:aC,useHostTransitionStatus:bS,useFormState:qT,useActionState:qT,useOptimistic:function(e,t){var n=zt();return F4(n,Qe,e,t)},useMemoCache:hS,useCacheRefresh:lC};SS.useEffectEvent=W4;var fC={readContext:Kt,use:Sm,useCallback:eC,useContext:Kt,useEffect:gS,useImperativeHandle:Q4,useInsertionEffect:J4,useLayoutEffect:X4,useMemo:tC,useReducer:Cx,useRef:Y4,useState:function(){return Cx(xr)},useDebugValue:yS,useDeferredValue:function(e,t){var n=zt();return Qe===null?vS(n,e,t):nC(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Cx(xr)[0],t=zt().memoizedState;return[typeof e=="boolean"?e:Oc(e),t]},useSyncExternalStore:R4,useId:aC,useHostTransitionStatus:bS,useFormState:GT,useActionState:GT,useOptimistic:function(e,t){var n=zt();return Qe!==null?F4(n,Qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:hS,useCacheRefresh:lC};fC.useEffectEvent=W4;function Ex(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ht({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var S1={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hn(),i=ro(r);i.payload=t,n!=null&&(i.callback=n),t=oo(e,i,r),t!==null&&(Dn(t,e,r),rc(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hn(),i=ro(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=oo(e,i,r),t!==null&&(Dn(t,e,r),rc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hn(),r=ro(n);r.tag=2,t!=null&&(r.callback=t),t=oo(e,r,n),t!==null&&(Dn(t,e,n),rc(t,e,n))}};function WT(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!gc(n,r)||!gc(i,o):!0}function JT(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&S1.enqueueReplaceState(t,t.state,null)}function Wo(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=ht({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function mC(e){Ff(e)}function hC(e){console.error(e)}function pC(e){Ff(e)}function Kf(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function XT(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function k1(e,t,n){return n=ro(n),n.tag=3,n.payload={element:null},n.callback=function(){Kf(e,t)},n}function gC(e){return e=ro(e),e.tag=3,e}function yC(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){XT(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){XT(t,n,r),typeof i!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function TR(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Ml(t,n,i,!0),n=Gn.current,n!==null){switch(n.tag){case 31:case 13:return di===null?im():n.alternate===null&&kt===0&&(kt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Gf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Lx(e,r,i)),!1;case 22:return n.flags|=65536,r===Gf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Lx(e,r,i)),!1}throw Error(j(435,n.tag))}return Lx(e,r,i),im(),!1}if(Ue)return t=Gn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==c1&&(e=Error(j(422),{cause:r}),vc(ci(e,n)))):(r!==c1&&(t=Error(j(423),{cause:r}),vc(ci(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ci(r,n),i=k1(e.stateNode,r,i),Tx(e,i),kt!==4&&(kt=2)),!1;var o=Error(j(520),{cause:r});if(o=ci(o,n),uc===null?uc=[o]:uc.push(o),kt!==4&&(kt=2),t===null)return!0;r=ci(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=k1(n.stateNode,r,e),Tx(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ao===null||!ao.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=gC(i),yC(i,e,n,r),Tx(n,i),!1}n=n.return}while(n!==null);return!1}var kS=Error(j(461)),Dt=!1;function Wt(e,t,n,r){t.child=e===null?D4(t,null,n,r):Go(t,e.child,n,r)}function KT(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}else a=r;return qo(t),r=uS(e,t,n,a,o,i),l=dS(),e!==null&&!Dt?(fS(e,t,i),Sr(e,t,i)):(Ue&&l&&nS(t),t.flags|=1,Wt(e,t,r,i),t.child)}function QT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!tS(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,vC(e,t,o,r,i)):(e=Tf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!wS(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:gc,n(a,r)&&e.ref===t.ref)return Sr(e,t,i)}return t.flags|=1,e=pr(o,r),e.ref=t.ref,e.return=t,t.child=e}function vC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(gc(o,r)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=r=o,wS(e,i))(e.flags&131072)!==0&&(Dt=!0);else return t.lanes=e.lanes,Sr(e,t,i)}return w1(e,t,n,r,i)}function bC(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return e2(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cf(t,o!==null?o.cachePool:null),o!==null?ZT(t,o):g1(),O4(t);else return r=t.lanes=536870912,e2(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(Cf(t,o.cachePool),ZT(t,o),Wr(t),t.memoizedState=null):(e!==null&&Cf(t,null),g1(),Wr(t));return Wt(e,t,i,n),t.child}function Ks(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function e2(e,t,n,r,i){var o=oS();return o=o===null?null:{parent:It._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Cf(t,null),g1(),O4(t),e!==null&&Ml(e,t,r,!0),t.childLanes=i,null}function Df(e,t){return t=Qf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function t2(e,t,n){return Go(t,e.child,null,n),e=Df(t,t.pendingProps),e.flags|=2,Bn(t),t.memoizedState=null,e}function CR(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(r.mode==="hidden")return e=Df(t,r),t.lanes=536870912,Ks(null,e);if(y1(t),(e=mt)?(e=d6(e,ui),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fo!==null?{id:Li,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},n=_4(e),n.return=t,t.child=n,Xt=t,mt=null)):e=null,e===null)throw mo(t);return t.lanes=536870912,null}return Df(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(y1(t),i)if(t.flags&256)t.flags&=-257,t=t2(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if(Dt||Ml(e,t,n,!1),i=(n&e.childLanes)!==0,Dt||i){if(r=it,r!==null&&(a=J2(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,Qo(e,a),Dn(r,e,a),kS;im(),t=t2(e,t,n)}else e=o.treeContext,mt=fi(a.nextSibling),Xt=t,Ue=!0,io=null,ui=!1,e!==null&&z4(t,e),t=Df(t,r),t.flags|=4096;return t}return e=pr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Af(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(j(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function w1(e,t,n,r,i){return qo(t),n=uS(e,t,n,r,void 0,i),r=dS(),e!==null&&!Dt?(fS(e,t,i),Sr(e,t,i)):(Ue&&r&&nS(t),t.flags|=1,Wt(e,t,n,i),t.child)}function n2(e,t,n,r,i,o){return qo(t),t.updateQueue=null,n=N4(t,r,n,i),U4(e),r=dS(),e!==null&&!Dt?(fS(e,t,o),Sr(e,t,o)):(Ue&&r&&nS(t),t.flags|=1,Wt(e,t,n,o),t.child)}function i2(e,t,n,r,i){if(qo(t),t.stateNode===null){var o=hl,a=n.contextType;typeof a=="object"&&a!==null&&(o=Kt(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=S1,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},lS(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?Kt(a):hl,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(Ex(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&S1.enqueueReplaceState(o,o.state,null),ac(t,r,o,i),oc(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,c=Wo(n,l);o.props=c;var u=o.context,d=n.contextType;a=hl,typeof d=="object"&&d!==null&&(a=Kt(d));var h=n.getDerivedStateFromProps;d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==a)&&JT(t,o,r,a),qr=!1;var m=t.memoizedState;o.state=m,ac(t,r,o,i),oc(),u=t.memoizedState,l||m!==u||qr?(typeof h=="function"&&(Ex(t,n,h,r),u=t.memoizedState),(c=qr||WT(t,n,c,r,m,u,a))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,h1(e,t),a=t.memoizedProps,d=Wo(n,a),o.props=d,h=t.pendingProps,m=o.context,u=n.contextType,c=hl,typeof u=="object"&&u!==null&&(c=Kt(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||m!==c)&&JT(t,o,r,c),qr=!1,m=t.memoizedState,o.state=m,ac(t,r,o,i),oc();var f=t.memoizedState;a!==h||m!==f||qr||e!==null&&e.dependencies!==null&&qf(e.dependencies)?(typeof l=="function"&&(Ex(t,n,l,r),f=t.memoizedState),(d=qr||WT(t,n,d,r,m,f,c)||e!==null&&e.dependencies!==null&&qf(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Af(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=Go(t,e.child,null,i),t.child=Go(t,null,n,i)):Wt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Sr(e,t,i),e}function r2(e,t,n,r){return Ho(),t.flags|=256,Wt(e,t,n,r),t.child}var Ix={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dx(e){return{baseLanes:e,cachePool:C4()}}function Ax(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Pn),e}function xC(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:($t.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(i?Yr(t):Wr(t),(e=mt)?(e=d6(e,ui),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fo!==null?{id:Li,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},n=_4(e),n.return=t,t.child=n,Xt=t,mt=null)):e=null,e===null)throw mo(t);return R1(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,i?(Wr(t),i=t.mode,l=Qf({mode:"hidden",children:l},i),r=Po(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Dx(n),r.childLanes=Ax(e,a,n),t.memoizedState=Ix,Ks(null,r)):(Yr(t),_1(t,l))}var c=e.memoizedState;if(c!==null&&(l=c.dehydrated,l!==null)){if(o)t.flags&256?(Yr(t),t.flags&=-257,t=jx(e,t,n)):t.memoizedState!==null?(Wr(t),t.child=e.child,t.flags|=128,t=null):(Wr(t),l=r.fallback,i=t.mode,r=Qf({mode:"visible",children:r.children},i),l=Po(l,i,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,Go(t,e.child,null,n),r=t.child,r.memoizedState=Dx(n),r.childLanes=Ax(e,a,n),t.memoizedState=Ix,t=Ks(null,r));else if(Yr(t),R1(l)){if(a=l.nextSibling&&l.nextSibling.dataset,a)var u=a.dgst;a=u,r=Error(j(419)),r.stack="",r.digest=a,vc({value:r,source:null,stack:null}),t=jx(e,t,n)}else if(Dt||Ml(e,t,n,!1),a=(n&e.childLanes)!==0,Dt||a){if(a=it,a!==null&&(r=J2(a,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,Qo(e,r),Dn(a,e,r),kS;N1(l)||im(),t=jx(e,t,n)}else N1(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,mt=fi(l.nextSibling),Xt=t,Ue=!0,io=null,ui=!1,e!==null&&z4(t,e),t=_1(t,r.children),t.flags|=4096);return t}return i?(Wr(t),l=r.fallback,i=t.mode,c=e.child,u=c.sibling,r=pr(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,u!==null?l=pr(u,l):(l=Po(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Ks(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Dx(n):(i=l.cachePool,i!==null?(c=It._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=C4(),l={baseLanes:l.baseLanes|n,cachePool:i}),r.memoizedState=l,r.childLanes=Ax(e,a,n),t.memoizedState=Ix,Ks(e.child,r)):(Yr(t),n=e.child,e=n.sibling,n=pr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function _1(e,t){return t=Qf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qf(e,t){return e=Ln(22,e,null,t),e.lanes=0,e}function jx(e,t,n){return Go(t,e.child,null,n),e=_1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function o2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),d1(e.return,t,n)}function Ox(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function SC(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=$t.current,l=(a&2)!==0;if(l?(a=a&1|2,t.flags|=128):a&=1,st($t,a),Wt(e,t,r,n),r=Ue?yc:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&o2(e,n,t);else if(e.tag===19)o2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wf(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ox(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wf(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ox(t,!0,n,null,o,r);break;case"together":Ox(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Sr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),po|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=pr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wS(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qf(e)))}function ER(e,t,n){switch(t.tag){case 3:Bf(t,t.stateNode.containerInfo),Gr(t,It,e.memoizedState.cache),Ho();break;case 27:case 5:Kx(t);break;case 4:Bf(t,t.stateNode.containerInfo);break;case 10:Gr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,y1(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Yr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?xC(e,t,n):(Yr(t),e=Sr(e,t,n),e!==null?e.sibling:null);Yr(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Ml(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return SC(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),st($t,$t.current),r)break;return null;case 22:return t.lanes=0,bC(e,t,n,t.pendingProps);case 24:Gr(t,It,e.memoizedState.cache)}return Sr(e,t,n)}function kC(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Dt=!0;else{if(!wS(e,n)&&(t.flags&128)===0)return Dt=!1,ER(e,t,n);Dt=(e.flags&131072)!==0}else Dt=!1,Ue&&(t.flags&1048576)!==0&&$4(t,yc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Mo(t.elementType),t.type=e,typeof e=="function")tS(e)?(r=Wo(e,r),t.tag=1,t=i2(null,t,e,r,n)):(t.tag=0,t=w1(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===P1){t.tag=11,t=KT(null,t,e,r,n);break e}else if(i===Z1){t.tag=14,t=QT(null,t,e,r,n);break e}}throw t=Jx(e)||e,Error(j(306,t,""))}}return t;case 0:return w1(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Wo(r,t.pendingProps),i2(e,t,r,i,n);case 3:e:{if(Bf(t,t.stateNode.containerInfo),e===null)throw Error(j(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,h1(e,t),ac(t,r,null,n);var a=t.memoizedState;if(r=a.cache,Gr(t,It,r),r!==o.cache&&f1(t,[It],n,!0),oc(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=r2(e,t,r,n);break e}else if(r!==i){i=ci(Error(j(424)),t),vc(i),t=r2(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,mt=fi(e.firstChild),Xt=t,Ue=!0,io=null,ui=!0,n=D4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ho(),r===i){t=Sr(e,t,n);break e}Wt(e,t,r,n)}t=t.child}return t;case 26:return Af(e,t),e===null?(n=T2(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,r=lm(no.current).createElement(n),r[Jt]=t,r[An]=e,Qt(r,n,e),Pt(r),t.stateNode=r):t.memoizedState=T2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kx(t),e===null&&Ue&&(r=t.stateNode=f6(t.type,t.pendingProps,no.current),Xt=t,ui=!0,i=mt,yo(t.type)?(M1=i,mt=fi(r.firstChild)):mt=i),Wt(e,t,t.pendingProps.children,n),Af(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((i=r=mt)&&(r=iM(r,t.type,t.pendingProps,ui),r!==null?(t.stateNode=r,Xt=t,mt=fi(r.firstChild),ui=!1,i=!0):i=!1),i||mo(t)),Kx(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,O1(i,o)?r=null:a!==null&&O1(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=uS(e,t,xR,null,null,n),_c._currentValue=i),Af(e,t),Wt(e,t,r,n),t.child;case 6:return e===null&&Ue&&((e=n=mt)&&(n=rM(n,t.pendingProps,ui),n!==null?(t.stateNode=n,Xt=t,mt=null,e=!0):e=!1),e||mo(t)),null;case 13:return xC(e,t,n);case 4:return Bf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Go(t,null,r,n):Wt(e,t,r,n),t.child;case 11:return KT(e,t,t.type,t.pendingProps,n);case 7:return Wt(e,t,t.pendingProps,n),t.child;case 8:return Wt(e,t,t.pendingProps.children,n),t.child;case 12:return Wt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gr(t,t.type,r.value),Wt(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,qo(t),i=Kt(i),r=r(i),t.flags|=1,Wt(e,t,r,n),t.child;case 14:return QT(e,t,t.type,t.pendingProps,n);case 15:return vC(e,t,t.type,t.pendingProps,n);case 19:return SC(e,t,n);case 31:return CR(e,t,n);case 22:return bC(e,t,n,t.pendingProps);case 24:return qo(t),r=Kt(It),e===null?(i=oS(),i===null&&(i=it,o=rS(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},lS(t),Gr(t,It,i)):((e.lanes&n)!==0&&(h1(e,t),ac(t,null,null,n),oc()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gr(t,It,r)):(r=o.cache,Gr(t,It,r),r!==i.cache&&f1(t,[It],n,!0))),Wt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function ar(e){e.flags|=4}function Ux(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(qC())e.flags|=8192;else throw Fo=Gf,aS}else e.flags&=-16777217}function a2(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!p6(t))if(qC())e.flags|=8192;else throw Fo=Gf,aS}function gf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?G2():536870912,e.lanes|=t,Dl|=t)}function Hs(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function IR(e,t,n){var r=t.pendingProps;switch(iS(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),gr(It),$l(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(nl(t)?ar(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zx())),ft(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(ar(t),o!==null?(ft(t),a2(t,o)):(ft(t),Ux(t,i,null,r,n))):o?o!==e.memoizedState?(ar(t),ft(t),a2(t,o)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ar(t),ft(t),Ux(t,i,e,r,n)),null;case 27:if(Lf(t),n=no.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ar(t);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ft(t),null}e=Fi.current,nl(t)?UT(t,e):(e=f6(i,r,n),t.stateNode=e,ar(t))}return ft(t),null;case 5:if(Lf(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ar(t);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ft(t),null}if(o=Fi.current,nl(t))UT(t,o);else{var a=lm(no.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[Jt]=t,o[An]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(Qt(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ar(t)}}return ft(t),Ux(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ar(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(e=no.current,nl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Xt,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Jt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||s6(e.nodeValue,n)),e||mo(t,!0)}else e=lm(e).createTextNode(r),e[Jt]=t,t.stateNode=e}return ft(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=nl(t),n!==null){if(e===null){if(!r)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[Jt]=t}else Ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else n=zx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bn(t),t):(Bn(t),null);if((t.flags&128)!==0)throw Error(j(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[Jt]=t}else Ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),i=!1}else i=zx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Bn(t),t):(Bn(t),null)}return Bn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gf(t,t.updateQueue),ft(t),null);case 4:return $l(),e===null&&IS(t.stateNode.containerInfo),ft(t),null;case 10:return gr(t.type),ft(t),null;case 19:if(Zt($t),r=t.memoizedState,r===null)return ft(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Hs(r,!1);else{if(kt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Wf(e),o!==null){for(t.flags|=128,Hs(r,!1),e=o.updateQueue,t.updateQueue=e,gf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)w4(n,e),n=n.sibling;return st($t,$t.current&1|2),Ue&&ur(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Zn()>tm&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304)}else{if(!i)if(e=Wf(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,gf(t,e),Hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Ue)return ft(t),null}else 2*Zn()-r.renderingStartTime>tm&&n!==536870912&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Zn(),e.sibling=null,n=$t.current,st($t,i?n&1|2:n&1),Ue&&ur(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return Bn(t),sS(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),n=t.updateQueue,n!==null&&gf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Zt(Zo),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gr(It),ft(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function DR(e,t){switch(iS(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gr(It),$l(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Lf(t),null;case 31:if(t.memoizedState!==null){if(Bn(t),t.alternate===null)throw Error(j(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zt($t),null;case 4:return $l(),null;case 10:return gr(t.type),null;case 22:case 23:return Bn(t),sS(),e!==null&&Zt(Zo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gr(It),null;case 25:return null;default:return null}}function wC(e,t){switch(iS(t),t.tag){case 3:gr(It),$l();break;case 26:case 27:case 5:Lf(t);break;case 4:$l();break;case 31:t.memoizedState!==null&&Bn(t);break;case 13:Bn(t);break;case 19:Zt($t);break;case 10:gr(t.type);break;case 22:case 23:Bn(t),sS(),e!==null&&Zt(Zo);break;case 24:gr(It)}}function Uc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(l){We(t,t.return,l)}}function ho(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,i=t;var c=n,u=l;try{u()}catch(d){We(i,c,d)}}}r=r.next}while(r!==o)}}catch(d){We(t,t.return,d)}}function _C(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{j4(t,n)}catch(r){We(e,e.return,r)}}}function $C(e,t,n){n.props=Wo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){We(e,t,r)}}function sc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){We(e,t,i)}}function Zi(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){We(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){We(e,t,i)}else n.current=null}function zC(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){We(e,e.return,i)}}function Nx(e,t,n){try{var r=e.stateNode;XR(r,e.type,n,t),r[An]=t}catch(i){We(e,e.return,i)}}function TC(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&yo(e.type)||e.tag===4}function Rx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TC(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&&yo(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 $1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mr));else if(r!==4&&(r===27&&yo(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($1(e,t,n),e=e.sibling;e!==null;)$1(e,t,n),e=e.sibling}function em(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&yo(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(em(e,t,n),e=e.sibling;e!==null;)em(e,t,n),e=e.sibling}function CC(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Qt(t,r,n),t[Jt]=e,t[An]=n}catch(o){We(e,e.return,o)}}var dr=!1,Et=!1,Mx=!1,l2=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function AR(e,t){if(e=e.containerInfo,A1=dm,e=p4(e),K1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==n||i!==0&&h.nodeType!==3||(l=a+i),h!==o||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===n&&++u===i&&(l=a),m===o&&++d===r&&(c=a),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(j1={focusedElem:e,selectionRange:n},dm=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){switch(t=Lt,o=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(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var y=Wo(n.type,i);e=r.getSnapshotBeforeUpdate(y,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(k){We(n,n.return,k)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)U1(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":U1(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(j(163))}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}}function EC(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sr(e,n),r&4&&Uc(5,n);break;case 1:if(sr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){We(n,n.return,a)}else{var i=Wo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){We(n,n.return,a)}}r&64&&_C(n),r&512&&sc(n,n.return);break;case 3:if(sr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{j4(e,t)}catch(a){We(n,n.return,a)}}break;case 27:t===null&&r&4&&CC(n);case 26:case 5:sr(e,n),t===null&&r&4&&zC(n),r&512&&sc(n,n.return);break;case 12:sr(e,n);break;case 31:sr(e,n),r&4&&AC(e,n);break;case 13:sr(e,n),r&4&&jC(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=PR.bind(null,n),oM(e,n))));break;case 22:if(r=n.memoizedState!==null||dr,!r){t=t!==null&&t.memoizedState!==null||Et,i=dr;var o=Et;dr=r,(Et=t)&&!o?cr(e,n,(n.subtreeFlags&8772)!==0):sr(e,n),dr=i,Et=o}break;case 30:break;default:sr(e,n)}}function IC(e){var t=e.alternate;t!==null&&(e.alternate=null,IC(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&q1(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 gt=null,En=!1;function lr(e,t,n){for(n=n.child;n!==null;)DC(e,t,n),n=n.sibling}function DC(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Cc,n)}catch{}switch(n.tag){case 26:Et||Zi(n,t),lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Et||Zi(n,t);var r=gt,i=En;yo(n.type)&&(gt=n.stateNode,En=!1),lr(e,t,n),fc(n.stateNode),gt=r,En=i;break;case 5:Et||Zi(n,t);case 6:if(r=gt,i=En,gt=null,lr(e,t,n),gt=r,En=i,gt!==null)if(En)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(n.stateNode)}catch(o){We(n,t,o)}else try{gt.removeChild(n.stateNode)}catch(o){We(n,t,o)}break;case 18:gt!==null&&(En?(e=gt,k2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ul(e)):k2(gt,n.stateNode));break;case 4:r=gt,i=En,gt=n.stateNode.containerInfo,En=!0,lr(e,t,n),gt=r,En=i;break;case 0:case 11:case 14:case 15:ho(2,n,t),Et||ho(4,n,t),lr(e,t,n);break;case 1:Et||(Zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&$C(n,t,r)),lr(e,t,n);break;case 21:lr(e,t,n);break;case 22:Et=(r=Et)||n.memoizedState!==null,lr(e,t,n),Et=r;break;default:lr(e,t,n)}}function AC(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ul(e)}catch(n){We(t,t.return,n)}}}function jC(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ul(e)}catch(n){We(t,t.return,n)}}function jR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new l2),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new l2),t;default:throw Error(j(435,e.tag))}}function yf(e,t){var n=jR(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=ZR.bind(null,e,r);r.then(i,i)}})}function Tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:if(yo(l.type)){gt=l.stateNode,En=!1;break e}break;case 5:gt=l.stateNode,En=!1;break e;case 3:case 4:gt=l.stateNode.containerInfo,En=!0;break e}l=l.return}if(gt===null)throw Error(j(160));DC(o,a,i),gt=null,En=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)OC(t,e),t=t.sibling}var ki=null;function OC(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tn(t,e),Cn(e),r&4&&(ho(3,e,e.return),Uc(3,e),ho(5,e,e.return));break;case 1:Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),r&64&&dr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=ki;if(Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Dc]||o[Jt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Qt(o,r,n),o[Jt]=e,Pt(o),r=o;break e;case"link":var a=E2("link","href",i).get(r+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=i.createElement(r),Qt(o,r,n),i.head.appendChild(o);break;case"meta":if(a=E2("meta","content",i).get(r+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=i.createElement(r),Qt(o,r,n),i.head.appendChild(o);break;default:throw Error(j(468,r))}o[Jt]=e,Pt(o),r=o}e.stateNode=r}else I2(i,e.type,e.stateNode);else e.stateNode=C2(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?I2(i,e.type,e.stateNode):C2(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Nx(e,e.memoizedProps,n.memoizedProps)}break;case 27:Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),n!==null&&r&4&&Nx(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),e.flags&32){i=e.stateNode;try{Tl(i,"")}catch(y){We(e,e.return,y)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Nx(e,i,n!==null?n.memoizedProps:i)),r&1024&&(Mx=!0);break;case 6:if(Tn(t,e),Cn(e),r&4){if(e.stateNode===null)throw Error(j(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(y){We(e,e.return,y)}}break;case 3:if(Uf=null,i=ki,ki=sm(t.containerInfo),Tn(t,e),ki=i,Cn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(y){We(e,e.return,y)}Mx&&(Mx=!1,UC(e));break;case 4:r=ki,ki=sm(e.stateNode.containerInfo),Tn(t,e),Cn(e),ki=r;break;case 12:Tn(t,e),Cn(e);break;case 31:Tn(t,e),Cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yf(e,r)));break;case 13:Tn(t,e),Cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_m=Zn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yf(e,r)));break;case 22:i=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=dr,d=Et;if(dr=u||i,Et=d||c,Tn(t,e),Et=d,dr=u,Cn(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||c||dr||Et||Bo(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(o=c.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{l=c.stateNode;var h=c.memoizedProps.style,m=h!=null&&h.hasOwnProperty("display")?h.display:null;l.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(y){We(c,c.return,y)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(y){We(c,c.return,y)}}}else if(t.tag===18){if(n===null){c=t;try{var f=c.stateNode;i?w2(f,!0):w2(c.stateNode,!1)}catch(y){We(c,c.return,y)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,yf(e,n))));break;case 19:Tn(t,e),Cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yf(e,r)));break;case 30:break;case 21:break;default:Tn(t,e),Cn(e)}}function Cn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(TC(r)){n=r;break}r=r.return}if(n==null)throw Error(j(160));switch(n.tag){case 27:var i=n.stateNode,o=Rx(e);em(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(Tl(a,""),n.flags&=-33);var l=Rx(e);em(e,l,a);break;case 3:case 4:var c=n.stateNode.containerInfo,u=Rx(e);$1(e,u,c);break;default:throw Error(j(161))}}catch(d){We(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function UC(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;UC(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)EC(e,t.alternate,t),t=t.sibling}function Bo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ho(4,t,t.return),Bo(t);break;case 1:Zi(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$C(t,t.return,n),Bo(t);break;case 27:fc(t.stateNode);case 26:case 5:Zi(t,t.return),Bo(t);break;case 22:t.memoizedState===null&&Bo(t);break;case 30:Bo(t);break;default:Bo(t)}e=e.sibling}}function cr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:cr(i,o,n),Uc(4,o);break;case 1:if(cr(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){We(r,r.return,u)}if(r=o,i=r.updateQueue,i!==null){var l=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)A4(c[i],l)}catch(u){We(r,r.return,u)}}n&&a&64&&_C(o),sc(o,o.return);break;case 27:CC(o);case 26:case 5:cr(i,o,n),n&&r===null&&a&4&&zC(o),sc(o,o.return);break;case 12:cr(i,o,n);break;case 31:cr(i,o,n),n&&a&4&&AC(i,o);break;case 13:cr(i,o,n),n&&a&4&&jC(i,o);break;case 22:o.memoizedState===null&&cr(i,o,n),sc(o,o.return);break;case 30:break;default:cr(i,o,n)}t=t.sibling}}function _S(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&jc(n))}function $S(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jc(e))}function Si(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)NC(e,t,n,r),t=t.sibling}function NC(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Si(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Si(e,t,n,r);break;case 3:Si(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jc(e)));break;case 12:if(i&2048){Si(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){We(t,t.return,c)}}else Si(e,t,n,r);break;case 31:Si(e,t,n,r);break;case 13:Si(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?Si(e,t,n,r):cc(e,t):o._visibility&2?Si(e,t,n,r):(o._visibility|=2,rl(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&_S(a,t);break;case 24:Si(e,t,n,r),i&2048&&$S(t.alternate,t);break;default:Si(e,t,n,r)}}function rl(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,l=n,c=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:rl(o,a,l,c,i),Uc(8,a);break;case 23:break;case 22:var d=a.stateNode;a.memoizedState!==null?d._visibility&2?rl(o,a,l,c,i):cc(o,a):(d._visibility|=2,rl(o,a,l,c,i)),i&&u&2048&&_S(a.alternate,a);break;case 24:rl(o,a,l,c,i),i&&u&2048&&$S(a.alternate,a);break;default:rl(o,a,l,c,i)}t=t.sibling}}function cc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:cc(n,r),i&2048&&_S(r.alternate,r);break;case 24:cc(n,r),i&2048&&$S(r.alternate,r);break;default:cc(n,r)}t=t.sibling}}var Qs=8192;function il(e,t,n){if(e.subtreeFlags&Qs)for(e=e.child;e!==null;)RC(e,t,n),e=e.sibling}function RC(e,t,n){switch(e.tag){case 26:il(e,t,n),e.flags&Qs&&e.memoizedState!==null&&yM(n,ki,e.memoizedState,e.memoizedProps);break;case 5:il(e,t,n);break;case 3:case 4:var r=ki;ki=sm(e.stateNode.containerInfo),il(e,t,n),ki=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Qs,Qs=16777216,il(e,t,n),Qs=r):il(e,t,n));break;default:il(e,t,n)}}function MC(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 qs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Lt=r,LC(r,e)}MC(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)BC(e),e=e.sibling}function BC(e){switch(e.tag){case 0:case 11:case 15:qs(e),e.flags&2048&&ho(9,e,e.return);break;case 3:qs(e);break;case 12:qs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jf(e)):qs(e);break;default:qs(e)}}function jf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Lt=r,LC(r,e)}MC(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ho(8,t,t.return),jf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jf(t));break;default:jf(t)}e=e.sibling}}function LC(e,t){for(;Lt!==null;){var n=Lt;switch(n.tag){case 0:case 11:case 15:ho(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:jc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Lt=r;else e:for(n=e;Lt!==null;){r=Lt;var i=r.sibling,o=r.return;if(IC(r),r===n){Lt=null;break e}if(i!==null){i.return=o,Lt=i;break e}Lt=o}}}var OR={getCacheForType:function(e){var t=Kt(It),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Kt(It).controller.signal}},UR=typeof WeakMap=="function"?WeakMap:Map,Le=0,it=null,Ie=null,De=0,Ye=0,Mn=null,Qr=!1,Ll=!1,zS=!1,kr=0,kt=0,po=0,Vo=0,TS=0,Pn=0,Dl=0,uc=null,In=null,z1=!1,_m=0,PC=0,tm=1/0,nm=null,ao=null,Nt=0,lo=null,Al=null,yr=0,T1=0,C1=null,ZC=null,dc=0,E1=null;function Hn(){return(Le&2)!==0&&De!==0?De&-De:ge.T!==null?ES():X2()}function FC(){if(Pn===0)if((De&536870912)===0||Ue){var e=lf;lf<<=1,(lf&3932160)===0&&(lf=262144),Pn=e}else Pn=536870912;return e=Gn.current,e!==null&&(e.flags|=32),Pn}function Dn(e,t,n){(e===it&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(jl(e,0),eo(e,De,Pn,!1)),Ic(e,n),((Le&2)===0||e!==it)&&(e===it&&((Le&2)===0&&(Vo|=n),kt===4&&eo(e,De,Pn,!1)),Hi(e))}function VC(e,t,n){if((Le&6)!==0)throw Error(j(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ec(e,t),i=r?MR(e,t):Bx(e,t,!0),o=r;do{if(i===0){Ll&&!r&&eo(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!NR(n)){i=Bx(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;i=uc;var c=l.current.memoizedState.isDehydrated;if(c&&(jl(l,a).flags|=256),a=Bx(l,a,!1),a!==2){if(zS&&!c){l.errorRecoveryDisabledLanes|=o,Vo|=o,i=4;break e}o=In,In=i,o!==null&&(In===null?In=o:In.push.apply(In,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){jl(e,0),eo(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(j(345));case 4:if((t&4194048)!==t)break;case 6:eo(r,t,Pn,!Qr);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(i=_m+300-Zn(),10<i)){if(eo(r,t,Pn,!Qr),mm(r,0,!0)!==0)break e;yr=t,r.timeoutHandle=u6(s2.bind(null,r,n,In,nm,z1,t,Pn,Vo,Dl,Qr,o,"Throttled",-0,0),i);break e}s2(r,n,In,nm,z1,t,Pn,Vo,Dl,Qr,o,null,-0,0)}}break}while(!0);Hi(e)}function s2(e,t,n,r,i,o,a,l,c,u,d,h,m,f){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mr},RC(t,o,h);var y=(o&62914560)===o?_m-Zn():(o&4194048)===o?PC-Zn():0;if(y=vM(h,y),y!==null){yr=o,e.cancelPendingCommit=y(u2.bind(null,e,t,o,n,r,i,a,l,c,d,h,null,m,f)),eo(e,o,a,!u);return}}u2(e,t,o,n,r,i,a,l,c)}function NR(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!qn(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eo(e,t,n,r){t&=~TS,t&=~Vo,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-Vn(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&Y2(e,n,t)}function $m(){return(Le&6)===0?(Nc(0,!1),!1):!0}function CS(){if(Ie!==null){if(Ye===0)var e=Ie.return;else e=Ie,hr=ea=null,mS(e),kl=null,bc=0,e=Ie;for(;e!==null;)wC(e.alternate,e),e=e.return;Ie=null}}function jl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,eM(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yr=0,CS(),it=e,Ie=n=pr(e.current,null),De=t,Ye=0,Mn=null,Qr=!1,Ll=Ec(e,t),zS=!1,Dl=Pn=TS=Vo=po=kt=0,In=uc=null,z1=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Vn(r),o=1<<i;t|=e[i],r&=~o}return kr=t,ym(),n}function HC(e,t){we=null,ge.H=Sc,t===Bl||t===bm?(t=LT(),Ye=3):t===aS?(t=LT(),Ye=4):Ye=t===kS?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mn=t,Ie===null&&(kt=1,Kf(e,ci(t,e.current)))}function qC(){var e=Gn.current;return e===null?!0:(De&4194048)===De?di===null:(De&62914560)===De||(De&536870912)!==0?e===di:!1}function GC(){var e=ge.H;return ge.H=Sc,e===null?Sc:e}function YC(){var e=ge.A;return ge.A=OR,e}function im(){kt=4,Qr||(De&4194048)!==De&&Gn.current!==null||(Ll=!0),(po&134217727)===0&&(Vo&134217727)===0||it===null||eo(it,De,Pn,!1)}function Bx(e,t,n){var r=Le;Le|=2;var i=GC(),o=YC();(it!==e||De!==t)&&(nm=null,jl(e,t)),t=!1;var a=kt;e:do try{if(Ye!==0&&Ie!==null){var l=Ie,c=Mn;switch(Ye){case 8:CS(),a=6;break e;case 3:case 2:case 9:case 6:Gn.current===null&&(t=!0);var u=Ye;if(Ye=0,Mn=null,yl(e,l,c,u),n&&Ll){a=0;break e}break;default:u=Ye,Ye=0,Mn=null,yl(e,l,c,u)}}RR(),a=kt;break}catch(d){HC(e,d)}while(!0);return t&&e.shellSuspendCounter++,hr=ea=null,Le=r,ge.H=i,ge.A=o,Ie===null&&(it=null,De=0,ym()),a}function RR(){for(;Ie!==null;)WC(Ie)}function MR(e,t){var n=Le;Le|=2;var r=GC(),i=YC();it!==e||De!==t?(nm=null,tm=Zn()+500,jl(e,t)):Ll=Ec(e,t);e:do try{if(Ye!==0&&Ie!==null){t=Ie;var o=Mn;t:switch(Ye){case 1:Ye=0,Mn=null,yl(e,t,o,1);break;case 2:case 9:if(BT(o)){Ye=0,Mn=null,c2(t);break}t=function(){Ye!==2&&Ye!==9||it!==e||(Ye=7),Hi(e)},o.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:BT(o)?(Ye=0,Mn=null,c2(t)):(Ye=0,Mn=null,yl(e,t,o,7));break;case 5:var a=null;switch(Ie.tag){case 26:a=Ie.memoizedState;case 5:case 27:var l=Ie;if(a?p6(a):l.stateNode.complete){Ye=0,Mn=null;var c=l.sibling;if(c!==null)Ie=c;else{var u=l.return;u!==null?(Ie=u,zm(u)):Ie=null}break t}}Ye=0,Mn=null,yl(e,t,o,5);break;case 6:Ye=0,Mn=null,yl(e,t,o,6);break;case 8:CS(),kt=6;break e;default:throw Error(j(462))}}BR();break}catch(d){HC(e,d)}while(!0);return hr=ea=null,ge.H=r,ge.A=i,Le=n,Ie!==null?0:(it=null,De=0,ym(),kt)}function BR(){for(;Ie!==null&&!sN();)WC(Ie)}function WC(e){var t=kC(e.alternate,e,kr);e.memoizedProps=e.pendingProps,t===null?zm(e):Ie=t}function c2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=n2(n,t,t.pendingProps,t.type,void 0,De);break;case 11:t=n2(n,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:mS(t);default:wC(n,t),t=Ie=w4(t,kr),t=kC(n,t,kr)}e.memoizedProps=e.pendingProps,t===null?zm(e):Ie=t}function yl(e,t,n,r){hr=ea=null,mS(t),kl=null,bc=0;var i=t.return;try{if(TR(e,i,t,n,De)){kt=1,Kf(e,ci(n,e.current)),Ie=null;return}}catch(o){if(i!==null)throw Ie=i,o;kt=1,Kf(e,ci(n,e.current)),Ie=null;return}t.flags&32768?(Ue||r===1?e=!0:Ll||(De&536870912)!==0?e=!1:(Qr=e=!0,(r===2||r===9||r===3||r===6)&&(r=Gn.current,r!==null&&r.tag===13&&(r.flags|=16384))),JC(t,e)):zm(t)}function zm(e){var t=e;do{if((t.flags&32768)!==0){JC(t,Qr);return}e=t.return;var n=IR(t.alternate,t,kr);if(n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);kt===0&&(kt=5)}function JC(e,t){do{var n=DR(e.alternate,e);if(n!==null){n.flags&=32767,Ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=n}while(e!==null);kt=6,Ie=null}function u2(e,t,n,r,i,o,a,l,c){e.cancelPendingCommit=null;do Tm();while(Nt!==0);if((Le&6)!==0)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(o=t.lanes|t.childLanes,o|=Q1,vN(e,n,o,a,l,c),e===it&&(Ie=it=null,De=0),Al=t,lo=e,yr=n,T1=o,C1=i,ZC=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,FR(Pf,function(){return t6(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=ge.T,ge.T=null,i=Pe.p,Pe.p=2,a=Le,Le|=4;try{AR(e,t,n)}finally{Le=a,Pe.p=i,ge.T=r}}Nt=1,XC(),KC(),QC()}}function XC(){if(Nt===1){Nt=0;var e=lo,t=Al,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ge.T,ge.T=null;var r=Pe.p;Pe.p=2;var i=Le;Le|=4;try{OC(t,e);var o=j1,a=p4(e.containerInfo),l=o.focusedElem,c=o.selectionRange;if(a!==l&&l&&l.ownerDocument&&h4(l.ownerDocument.documentElement,l)){if(c!==null&&K1(l)){var u=c.start,d=c.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var h=l.ownerDocument||document,m=h&&h.defaultView||window;if(m.getSelection){var f=m.getSelection(),y=l.textContent.length,k=Math.min(c.start,y),E=c.end===void 0?k:Math.min(c.end,y);!f.extend&&k>E&&(a=E,E=k,k=a);var g=AT(l,k),b=AT(l,E);if(g&&b&&(f.rangeCount!==1||f.anchorNode!==g.node||f.anchorOffset!==g.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var S=h.createRange();S.setStart(g.node,g.offset),f.removeAllRanges(),k>E?(f.addRange(S),f.extend(b.node,b.offset)):(S.setEnd(b.node,b.offset),f.addRange(S))}}}}for(h=[],f=l;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<h.length;l++){var v=h[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}dm=!!A1,j1=A1=null}finally{Le=i,Pe.p=r,ge.T=n}}e.current=t,Nt=2}}function KC(){if(Nt===2){Nt=0;var e=lo,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ge.T,ge.T=null;var r=Pe.p;Pe.p=2;var i=Le;Le|=4;try{EC(e,t.alternate,t)}finally{Le=i,Pe.p=r,ge.T=n}}Nt=3}}function QC(){if(Nt===4||Nt===3){Nt=0,cN();var e=lo,t=Al,n=yr,r=ZC;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,Al=lo=null,e6(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ao=null),H1(n),t=t.stateNode,Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(Cc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ge.T,i=Pe.p,Pe.p=2,ge.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];o(l.value,{componentStack:l.stack})}}finally{ge.T=t,Pe.p=i}}(yr&3)!==0&&Tm(),Hi(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===E1?dc++:(dc=0,E1=e):dc=0,Nc(0,!1)}}function e6(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,jc(t)))}function Tm(){return XC(),KC(),QC(),t6()}function t6(){if(Nt!==5)return!1;var e=lo,t=T1;T1=0;var n=H1(yr),r=ge.T,i=Pe.p;try{Pe.p=32>n?32:n,ge.T=null,n=C1,C1=null;var o=lo,a=yr;if(Nt=0,Al=lo=null,yr=0,(Le&6)!==0)throw Error(j(331));var l=Le;if(Le|=4,BC(o.current),NC(o,o.current,a,n),Le=l,Nc(0,!1),Fn&&typeof Fn.onPostCommitFiberRoot=="function")try{Fn.onPostCommitFiberRoot(Cc,o)}catch{}return!0}finally{Pe.p=i,ge.T=r,e6(e,t)}}function d2(e,t,n){t=ci(n,t),t=k1(e.stateNode,t,2),e=oo(e,t,2),e!==null&&(Ic(e,2),Hi(e))}function We(e,t,n){if(e.tag===3)d2(e,e,n);else for(;t!==null;){if(t.tag===3){d2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ao===null||!ao.has(r))){e=ci(n,e),n=gC(2),r=oo(t,n,2),r!==null&&(yC(n,r,t,e),Ic(r,2),Hi(r));break}}t=t.return}}function Lx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new UR;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(zS=!0,i.add(n),e=LR.bind(null,e,t,n),t.then(e,e))}function LR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,it===e&&(De&n)===n&&(kt===4||kt===3&&(De&62914560)===De&&300>Zn()-_m?(Le&2)===0&&jl(e,0):TS|=n,Dl===De&&(Dl=0)),Hi(e)}function n6(e,t){t===0&&(t=G2()),e=Qo(e,t),e!==null&&(Ic(e,t),Hi(e))}function PR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),n6(e,n)}function ZR(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(j(314))}r!==null&&r.delete(t),n6(e,n)}function FR(e,t){return F1(e,t)}var rm=null,ol=null,I1=!1,om=!1,Px=!1,to=0;function Hi(e){e!==ol&&e.next===null&&(ol===null?rm=ol=e:ol=ol.next=e),om=!0,I1||(I1=!0,HR())}function Nc(e,t){if(!Px&&om){Px=!0;do for(var n=!1,r=rm;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-Vn(42|e)+1)-1,o&=i&~(a&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,f2(r,o))}else o=De,o=mm(r,r===it?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Ec(r,o)||(n=!0,f2(r,o));r=r.next}while(n);Px=!1}}function VR(){i6()}function i6(){om=I1=!1;var e=0;to!==0&&QR()&&(e=to);for(var t=Zn(),n=null,r=rm;r!==null;){var i=r.next,o=r6(r,t);o===0?(r.next=null,n===null?rm=i:n.next=i,i===null&&(ol=n)):(n=r,(e!==0||(o&3)!==0)&&(om=!0)),r=i}Nt!==0&&Nt!==5||Nc(e,!1),to!==0&&(to=0)}function r6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-Vn(o),l=1<<a,c=i[a];c===-1?((l&n)===0||(l&r)!==0)&&(i[a]=yN(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}if(t=it,n=De,n=mm(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&gx(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ec(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&gx(r),H1(n)){case 2:case 8:n=H2;break;case 32:n=Pf;break;case 268435456:n=q2;break;default:n=Pf}return r=o6.bind(null,e),n=F1(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&gx(r),e.callbackPriority=2,e.callbackNode=null,2}function o6(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Tm()&&e.callbackNode!==n)return null;var r=De;return r=mm(e,e===it?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(VC(e,r,t),r6(e,Zn()),e.callbackNode!=null&&e.callbackNode===n?o6.bind(null,e):null)}function f2(e,t){if(Tm())return null;VC(e,t,!0)}function HR(){tM(function(){(Le&6)!==0?F1(V2,VR):i6()})}function ES(){if(to===0){var e=Cl;e===0&&(e=af,af<<=1,(af&261888)===0&&(af=256)),to=e}return to}function m2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_f(""+e)}function h2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function qR(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=m2((i[An]||null).action),a=r.submitter;a&&(t=(t=a[An]||null)?m2(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new hm("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(to!==0){var c=a?h2(i,a):new FormData(i);x1(n,{pending:!0,data:c,method:i.method,action:o},null,c)}}else typeof o=="function"&&(l.preventDefault(),c=a?h2(i,a):new FormData(i),x1(n,{pending:!0,data:c,method:i.method,action:o},o,c))},currentTarget:i}]})}}for(vf=0;vf<s1.length;vf++)bf=s1[vf],p2=bf.toLowerCase(),g2=bf[0].toUpperCase()+bf.slice(1),wi(p2,"on"+g2);var bf,p2,g2,vf;wi(y4,"onAnimationEnd");wi(v4,"onAnimationIteration");wi(b4,"onAnimationStart");wi("dblclick","onDoubleClick");wi("focusin","onFocus");wi("focusout","onBlur");wi(uR,"onTransitionRun");wi(dR,"onTransitionStart");wi(fR,"onTransitionCancel");wi(x4,"onTransitionEnd");zl("onMouseEnter",["mouseout","mouseover"]);zl("onMouseLeave",["mouseout","mouseover"]);zl("onPointerEnter",["pointerout","pointerover"]);zl("onPointerLeave",["pointerout","pointerover"]);Jo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kc="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(" "),GR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kc));function a6(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Ff(d)}i.currentTarget=null,o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Ff(d)}i.currentTarget=null,o=c}}}}function Ee(e,t){var n=t[e1];n===void 0&&(n=t[e1]=new Set);var r=e+"__bubble";n.has(r)||(l6(t,e,2,!1),n.add(r))}function Zx(e,t,n){var r=0;t&&(r|=4),l6(n,e,r,t)}var xf="_reactListening"+Math.random().toString(36).slice(2);function IS(e){if(!e[xf]){e[xf]=!0,K2.forEach(function(n){n!=="selectionchange"&&(GR.has(n)||Zx(n,!1,e),Zx(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xf]||(t[xf]=!0,Zx("selectionchange",!1,t))}}function l6(e,t,n,r){switch(x6(t)){case 2:var i=SM;break;case 8:i=kM;break;default:i=OS}n=i.bind(null,t,n,e),i=void 0,!o1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Fx(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;l!==null;){if(a=sl(l),a===null)return;if(c=a.tag,c===5||c===6||c===26||c===27){r=o=a;continue e}l=l.parentNode}}r=r.return}a4(function(){var u=o,d=Y1(n),h=[];e:{var m=S4.get(e);if(m!==void 0){var f=hm,y=e;switch(e){case"keypress":if(zf(n)===0)break e;case"keydown":case"keyup":f=ZN;break;case"focusin":y="focus",f=Sx;break;case"focusout":y="blur",f=Sx;break;case"beforeblur":case"afterblur":f=Sx;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=wT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=IN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=HN;break;case y4:case v4:case b4:f=jN;break;case x4:f=GN;break;case"scroll":case"scrollend":f=CN;break;case"wheel":f=WN;break;case"copy":case"cut":case"paste":f=UN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=$T;break;case"toggle":case"beforetoggle":f=XN}var k=(t&4)!==0,E=!k&&(e==="scroll"||e==="scrollend"),g=k?m!==null?m+"Capture":null:m;k=[];for(var b=u,S;b!==null;){var v=b;if(S=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||S===null||g===null||(v=hc(b,g),v!=null&&k.push(wc(b,v,S))),E)break;b=b.return}0<k.length&&(m=new f(m,y,null,n,d),h.push({event:m,listeners:k}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==r1&&(y=n.relatedTarget||n.fromElement)&&(sl(y)||y[Nl]))break e;if((f||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,f?(y=n.relatedTarget||n.toElement,f=u,y=y?sl(y):null,y!==null&&(E=Tc(y),k=y.tag,y!==E||k!==5&&k!==27&&k!==6)&&(y=null)):(f=null,y=u),f!==y)){if(k=wT,v="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(k=$T,v="onPointerLeave",g="onPointerEnter",b="pointer"),E=f==null?m:Xs(f),S=y==null?m:Xs(y),m=new k(v,b+"leave",f,n,d),m.target=E,m.relatedTarget=S,v=null,sl(d)===u&&(k=new k(g,b+"enter",y,n,d),k.target=S,k.relatedTarget=E,v=k),E=v,f&&y)t:{for(k=YR,g=f,b=y,S=0,v=g;v;v=k(v))S++;v=0;for(var C=b;C;C=k(C))v++;for(;0<S-v;)g=k(g),S--;for(;0<v-S;)b=k(b),v--;for(;S--;){if(g===b||b!==null&&g===b.alternate){k=g;break t}g=k(g),b=k(b)}k=null}else k=null;f!==null&&y2(h,m,f,k,!1),y!==null&&E!==null&&y2(h,E,y,k,!0)}}e:{if(m=u?Xs(u):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var K=ET;else if(CT(m))if(f4)K=lR;else{K=oR;var q=rR}else f=m.nodeName,!f||f.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?u&&G1(u.elementType)&&(K=ET):K=aR;if(K&&(K=K(e,u))){d4(h,K,n,d);break e}q&&q(e,m,u),e==="focusout"&&u&&m.type==="number"&&u.memoizedProps.value!=null&&i1(m,"number",m.value)}switch(q=u?Xs(u):window,e){case"focusin":(CT(q)||q.contentEditable==="true")&&(dl=q,a1=u,nc=null);break;case"focusout":nc=a1=dl=null;break;case"mousedown":l1=!0;break;case"contextmenu":case"mouseup":case"dragend":l1=!1,jT(h,n,d);break;case"selectionchange":if(cR)break;case"keydown":case"keyup":jT(h,n,d)}var w;if(X1)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ul?c4(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(s4&&n.locale!=="ko"&&(ul||R!=="onCompositionStart"?R==="onCompositionEnd"&&ul&&(w=l4()):(Kr=d,W1="value"in Kr?Kr.value:Kr.textContent,ul=!0)),q=am(u,R),0<q.length&&(R=new _T(R,e,null,n,d),h.push({event:R,listeners:q}),w?R.data=w:(w=u4(n),w!==null&&(R.data=w)))),(w=QN?eR(e,n):tR(e,n))&&(R=am(u,"onBeforeInput"),0<R.length&&(q=new _T("onBeforeInput","beforeinput",null,n,d),h.push({event:q,listeners:R}),q.data=w)),qR(h,e,u,n,d)}a6(h,t)})}function wc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function am(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=hc(e,n),i!=null&&r.unshift(wc(e,i,o)),i=hc(e,t),i!=null&&r.push(wc(e,i,o))),e.tag===3)return r;e=e.return}return[]}function YR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function y2(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(l=l.tag,c!==null&&c===r)break;l!==5&&l!==26&&l!==27||u===null||(c=u,i?(u=hc(n,o),u!=null&&a.unshift(wc(n,u,c))):i||(u=hc(n,o),u!=null&&a.push(wc(n,u,c)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var WR=/\r\n?/g,JR=/\u0000|\uFFFD/g;function v2(e){return(typeof e=="string"?e:""+e).replace(WR,`
9
- `).replace(JR,"")}function s6(e,t){return t=v2(t),v2(e)===t}function Ke(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Tl(e,""+r);break;case"className":cf(e,"class",r);break;case"tabIndex":cf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":cf(e,n,r);break;case"style":o4(e,r,o);break;case"data":if(t!=="object"){cf(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=_f(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",i.name,i,null),Ke(e,t,"formEncType",i.formEncType,i,null),Ke(e,t,"formMethod",i.formMethod,i,null),Ke(e,t,"formTarget",i.formTarget,i,null)):(Ke(e,t,"encType",i.encType,i,null),Ke(e,t,"method",i.method,i,null),Ke(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=_f(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=mr);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(j(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(j(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=_f(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),wf(e,"popover",r);break;case"xlinkActuate":or(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":or(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":or(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":or(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":or(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":or(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":or(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":or(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":or(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":wf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zN.get(n)||n,wf(e,n,r))}}function D1(e,t,n,r,i,o){switch(n){case"style":o4(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(j(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(j(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&Tl(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Q2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[An]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):wf(e,n,r)}}}function Qt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ke(e,t,o,a,n,null)}}i&&Ke(e,t,"srcSet",n.srcSet,n,null),r&&Ke(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var l=o=a=i=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":i=d;break;case"type":a=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(j(137,t));break;default:Ke(e,t,r,d,n,null)}}n4(e,o,l,c,u,a,i,!1);return;case"select":Ee("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":r=l;default:Ke(e,t,i,l,n,null)}t=o,n=a,e.multiple=!!r,t!=null?bl(e,!!r,t,!1):n!=null&&bl(e,!!r,n,!0);return;case"textarea":Ee("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":r=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(j(91));break;default:Ke(e,t,a,l,n,null)}r4(e,r,i,o);return;case"option":for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null)&&(c==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ke(e,t,c,r,n,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<kc.length;r++)Ee(kc[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ke(e,t,u,r,n,null)}return;default:if(G1(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&D1(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Ke(e,t,l,r,n,null))}function XR(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,c=null,u=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&h!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":c=h;default:r.hasOwnProperty(f)||Ke(e,t,f,null,r,h)}}for(var m in r){var f=r[m];if(h=n[m],r.hasOwnProperty(m)&&(f!=null||h!=null))switch(m){case"type":o=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(j(137,t));break;default:f!==h&&Ke(e,t,m,f,r,h)}}n1(e,a,l,c,u,d,o,i);return;case"select":f=a=l=m=null;for(o in n)if(c=n[o],n.hasOwnProperty(o)&&c!=null)switch(o){case"value":break;case"multiple":f=c;default:r.hasOwnProperty(o)||Ke(e,t,o,null,r,c)}for(i in r)if(o=r[i],c=n[i],r.hasOwnProperty(i)&&(o!=null||c!=null))switch(i){case"value":m=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==c&&Ke(e,t,i,o,r,c)}t=l,n=a,r=f,m!=null?bl(e,!!n,m,!1):!!r!=!!n&&(t!=null?bl(e,!!n,t,!0):bl(e,!!n,n?[]:"",!1));return;case"textarea":f=m=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Ke(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":m=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(j(91));break;default:i!==o&&Ke(e,t,a,i,r,o)}i4(e,m,f);return;case"option":for(var y in n)m=n[y],n.hasOwnProperty(y)&&m!=null&&!r.hasOwnProperty(y)&&(y==="selected"?e.selected=!1:Ke(e,t,y,null,r,m));for(c in r)m=r[c],f=n[c],r.hasOwnProperty(c)&&m!==f&&(m!=null||f!=null)&&(c==="selected"?e.selected=m&&typeof m!="function"&&typeof m!="symbol":Ke(e,t,c,m,r,f));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 k in n)m=n[k],n.hasOwnProperty(k)&&m!=null&&!r.hasOwnProperty(k)&&Ke(e,t,k,null,r,m);for(u in r)if(m=r[u],f=n[u],r.hasOwnProperty(u)&&m!==f&&(m!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(j(137,t));break;default:Ke(e,t,u,m,r,f)}return;default:if(G1(t)){for(var E in n)m=n[E],n.hasOwnProperty(E)&&m!==void 0&&!r.hasOwnProperty(E)&&D1(e,t,E,void 0,r,m);for(d in r)m=r[d],f=n[d],!r.hasOwnProperty(d)||m===f||m===void 0&&f===void 0||D1(e,t,d,m,r,f);return}}for(var g in n)m=n[g],n.hasOwnProperty(g)&&m!=null&&!r.hasOwnProperty(g)&&Ke(e,t,g,null,r,m);for(h in r)m=r[h],f=n[h],!r.hasOwnProperty(h)||m===f||m==null&&f==null||Ke(e,t,h,m,r,f)}function b2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function KR(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&b2(a)){for(a=0,l=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>l)break;var d=c.transferSize,h=c.initiatorType;d&&b2(h)&&(c=c.responseEnd,a+=d*(c<l?1:(l-u)/(c-u)))}if(--r,t+=8*(o+a)/(i.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 A1=null,j1=null;function lm(e){return e.nodeType===9?e:e.ownerDocument}function x2(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 c6(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 O1(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 Vx=null;function QR(){var e=window.event;return e&&e.type==="popstate"?e===Vx?!1:(Vx=e,!0):(Vx=null,!1)}var u6=typeof setTimeout=="function"?setTimeout:void 0,eM=typeof clearTimeout=="function"?clearTimeout:void 0,S2=typeof Promise=="function"?Promise:void 0,tM=typeof queueMicrotask=="function"?queueMicrotask:typeof S2<"u"?function(e){return S2.resolve(null).then(e).catch(nM)}:u6;function nM(e){setTimeout(function(){throw e})}function yo(e){return e==="head"}function k2(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),Ul(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")fc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,fc(n);for(var o=n.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[Dc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&fc(e.ownerDocument.body);n=i}while(n);Ul(t)}function w2(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function U1(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":U1(n),q1(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iM(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Dc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=fi(e.nextSibling),e===null)break}return null}function rM(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=fi(e.nextSibling),e===null))return null;return e}function d6(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fi(e.nextSibling),e===null))return null;return e}function N1(e){return e.data==="$?"||e.data==="$~"}function R1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oM(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function fi(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 M1=null;function _2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return fi(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function f6(e,t,n){switch(t=lm(n),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function fc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);q1(e)}var mi=new Map,z2=new Set;function sm(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wr=Pe.d;Pe.d={f:aM,r:lM,D:sM,C:cM,L:uM,m:dM,X:mM,S:fM,M:hM};function aM(){var e=wr.f(),t=$m();return e||t}function lM(e){var t=Rl(e);t!==null&&t.tag===5&&t.type==="form"?oC(t):wr.r(e)}var Pl=typeof document>"u"?null:document;function m6(e,t,n){var r=Pl;if(r&&typeof t=="string"&&t){var i=si(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),z2.has(i)||(z2.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Qt(t,"link",e),Pt(t),r.head.appendChild(t)))}}function sM(e){wr.D(e),m6("dns-prefetch",e,null)}function cM(e,t){wr.C(e,t),m6("preconnect",e,t)}function uM(e,t,n){wr.L(e,t,n);var r=Pl;if(r&&e&&t){var i='link[rel="preload"][as="'+si(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+si(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+si(n.imageSizes)+'"]')):i+='[href="'+si(e)+'"]';var o=i;switch(t){case"style":o=Ol(e);break;case"script":o=Zl(e)}mi.has(o)||(e=ht({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),mi.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Rc(o))||t==="script"&&r.querySelector(Mc(o))||(t=r.createElement("link"),Qt(t,"link",e),Pt(t),r.head.appendChild(t)))}}function dM(e,t){wr.m(e,t);var n=Pl;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+si(r)+'"][href="'+si(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Zl(e)}if(!mi.has(o)&&(e=ht({rel:"modulepreload",href:e},t),mi.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mc(o)))return}r=n.createElement("link"),Qt(r,"link",e),Pt(r),n.head.appendChild(r)}}}function fM(e,t,n){wr.S(e,t,n);var r=Pl;if(r&&e){var i=vl(r).hoistableStyles,o=Ol(e);t=t||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Rc(o)))l.loading=5;else{e=ht({rel:"stylesheet",href:e,"data-precedence":t},n),(n=mi.get(o))&&DS(e,n);var c=a=r.createElement("link");Pt(c),Qt(c,"link",e),c._p=new Promise(function(u,d){c.onload=u,c.onerror=d}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Of(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},i.set(o,a)}}}function mM(e,t){wr.X(e,t);var n=Pl;if(n&&e){var r=vl(n).hoistableScripts,i=Zl(e),o=r.get(i);o||(o=n.querySelector(Mc(i)),o||(e=ht({src:e,async:!0},t),(t=mi.get(i))&&AS(e,t),o=n.createElement("script"),Pt(o),Qt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function hM(e,t){wr.M(e,t);var n=Pl;if(n&&e){var r=vl(n).hoistableScripts,i=Zl(e),o=r.get(i);o||(o=n.querySelector(Mc(i)),o||(e=ht({src:e,async:!0,type:"module"},t),(t=mi.get(i))&&AS(e,t),o=n.createElement("script"),Pt(o),Qt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function T2(e,t,n,r){var i=(i=no.current)?sm(i):null;if(!i)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=vl(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ol(n.href);var o=vl(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(Rc(e)))&&!o._p&&(a.instance=o,a.state.loading=5),mi.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mi.set(e,n),o||pM(i,e,n,a.state))),t&&r===null)throw Error(j(528,""));return a}if(t&&r!==null)throw Error(j(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(n),n=vl(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function Ol(e){return'href="'+si(e)+'"'}function Rc(e){return'link[rel="stylesheet"]['+e+"]"}function h6(e){return ht({},e,{"data-precedence":e.precedence,precedence:null})}function pM(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Qt(t,"link",n),Pt(t),e.head.appendChild(t))}function Zl(e){return'[src="'+si(e)+'"]'}function Mc(e){return"script[async]"+e}function C2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+si(n.href)+'"]');if(r)return t.instance=r,Pt(r),r;var i=ht({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Pt(r),Qt(r,"style",i),Of(r,n.precedence,e),t.instance=r;case"stylesheet":i=Ol(n.href);var o=e.querySelector(Rc(i));if(o)return t.state.loading|=4,t.instance=o,Pt(o),o;r=h6(n),(i=mi.get(i))&&DS(r,i),o=(e.ownerDocument||e).createElement("link"),Pt(o);var a=o;return a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Qt(o,"link",r),t.state.loading|=4,Of(o,n.precedence,e),t.instance=o;case"script":return o=Zl(n.src),(i=e.querySelector(Mc(o)))?(t.instance=i,Pt(i),i):(r=n,(i=mi.get(o))&&(r=ht({},n),AS(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Pt(i),Qt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Of(r,n.precedence,e));return t.instance}function Of(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function DS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function AS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Uf=null;function E2(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Dc]||o[Jt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(o):r.set(a,[o])}}return r}function I2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function gM(e,t,n){if(n===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 p6(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yM(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ol(r.href),o=t.querySelector(Rc(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cm.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Pt(o);return}o=t.ownerDocument||t,r=h6(r),(i=mi.get(i))&&DS(r,i),o=o.createElement("link"),Pt(o);var a=o;a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Qt(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=cm.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hx=0;function vM(e,t){return e.stylesheets&&e.count===0&&Nf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Nf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Hx===0&&(Hx=62500*KR());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Nf(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Hx?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function cm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var um=null;function Nf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,um=new Map,t.forEach(bM,e),um=null,cm.call(e))}function bM(e,t){if(!(t.state.loading&4)){var n=um.get(e);if(n)var r=n.get(null);else{n=new Map,um.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=cm.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var _c={$$typeof:fr,Provider:null,Consumer:null,_currentValue:Lo,_currentValue2:Lo,_threadCount:0};function xM(e,t,n,r,i,o,a,l,c){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=yx(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yx(0),this.hiddenUpdates=yx(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function g6(e,t,n,r,i,o,a,l,c,u,d,h){return e=new xM(e,t,n,a,c,u,d,h,l),t=1,o===!0&&(t|=24),o=Ln(3,null,null,t),e.current=o,o.stateNode=e,t=rS(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},lS(o),e}function y6(e){return e?(e=hl,e):hl}function v6(e,t,n,r,i,o){i=y6(i),r.context===null?r.context=i:r.pendingContext=i,r=ro(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=oo(e,r,t),n!==null&&(Dn(n,e,t),rc(n,e,t))}function D2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jS(e,t){D2(e,t),(e=e.alternate)&&D2(e,t)}function b6(e){if(e.tag===13||e.tag===31){var t=Qo(e,67108864);t!==null&&Dn(t,e,67108864),jS(e,67108864)}}function A2(e){if(e.tag===13||e.tag===31){var t=Hn();t=V1(t);var n=Qo(e,t);n!==null&&Dn(n,e,t),jS(e,t)}}var dm=!0;function SM(e,t,n,r){var i=ge.T;ge.T=null;var o=Pe.p;try{Pe.p=2,OS(e,t,n,r)}finally{Pe.p=o,ge.T=i}}function kM(e,t,n,r){var i=ge.T;ge.T=null;var o=Pe.p;try{Pe.p=8,OS(e,t,n,r)}finally{Pe.p=o,ge.T=i}}function OS(e,t,n,r){if(dm){var i=B1(r);if(i===null)Fx(e,t,r,fm,n),j2(e,r);else if(_M(i,e,t,n,r))r.stopPropagation();else if(j2(e,r),t&4&&-1<wM.indexOf(e)){for(;i!==null;){var o=Rl(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Ro(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var c=1<<31-Vn(a);l.entanglements[1]|=c,a&=~c}Hi(o),(Le&6)===0&&(tm=Zn()+500,Nc(0,!1))}}break;case 31:case 13:l=Qo(o,2),l!==null&&Dn(l,o,2),$m(),jS(o,2)}if(o=B1(r),o===null&&Fx(e,t,r,fm,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Fx(e,t,r,null,n)}}function B1(e){return e=Y1(e),US(e)}var fm=null;function US(e){if(fm=null,e=sl(e),e!==null){var t=Tc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=B2(t),e!==null)return e;e=null}else if(n===31){if(e=L2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fm=e,null}function x6(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(uN()){case V2:return 2;case H2:return 8;case Pf:case dN:return 32;case q2:return 268435456;default:return 32}default:return 32}}var L1=!1,so=null,co=null,uo=null,$c=new Map,zc=new Map,Jr=[],wM="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 j2(e,t){switch(e){case"focusin":case"focusout":so=null;break;case"dragenter":case"dragleave":co=null;break;case"mouseover":case"mouseout":uo=null;break;case"pointerover":case"pointerout":$c.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zc.delete(t.pointerId)}}function Gs(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Rl(t),t!==null&&b6(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _M(e,t,n,r,i){switch(t){case"focusin":return so=Gs(so,e,t,n,r,i),!0;case"dragenter":return co=Gs(co,e,t,n,r,i),!0;case"mouseover":return uo=Gs(uo,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return $c.set(o,Gs($c.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zc.set(o,Gs(zc.get(o)||null,e,t,n,r,i)),!0}return!1}function S6(e){var t=sl(e.target);if(t!==null){var n=Tc(t);if(n!==null){if(t=n.tag,t===13){if(t=B2(n),t!==null){e.blockedOn=t,gT(e.priority,function(){A2(n)});return}}else if(t===31){if(t=L2(n),t!==null){e.blockedOn=t,gT(e.priority,function(){A2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=B1(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);r1=r,n.target.dispatchEvent(r),r1=null}else return t=Rl(n),t!==null&&b6(t),e.blockedOn=n,!1;t.shift()}return!0}function O2(e,t,n){Rf(e)&&n.delete(t)}function $M(){L1=!1,so!==null&&Rf(so)&&(so=null),co!==null&&Rf(co)&&(co=null),uo!==null&&Rf(uo)&&(uo=null),$c.forEach(O2),zc.forEach(O2)}function Sf(e,t){e.blockedOn===t&&(e.blockedOn=null,L1||(L1=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,$M)))}var kf=null;function U2(e){kf!==e&&(kf=e,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,function(){kf===e&&(kf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(US(r||n)===null)continue;break}var o=Rl(n);o!==null&&(e.splice(t,3),t-=3,x1(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ul(e){function t(c){return Sf(c,e)}so!==null&&Sf(so,e),co!==null&&Sf(co,e),uo!==null&&Sf(uo,e),$c.forEach(t),zc.forEach(t);for(var n=0;n<Jr.length;n++){var r=Jr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Jr.length&&(n=Jr[0],n.blockedOn===null);)S6(n),n.blockedOn===null&&Jr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[An]||null;if(typeof o=="function")a||U2(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[An]||null)l=a.formAction;else if(US(i)!==null)continue}else l=a.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),U2(n)}}}function k6(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function NS(e){this._internalRoot=e}Cm.prototype.render=NS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var n=t.current,r=Hn();v6(n,r,e,t,null,null)};Cm.prototype.unmount=NS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;v6(e.current,2,null,e,null,null),$m(),t[Nl]=null}};function Cm(e){this._internalRoot=e}Cm.prototype.unstable_scheduleHydration=function(e){if(e){var t=X2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jr.length&&t!==0&&t<Jr[n].priority;n++);Jr.splice(n,0,e),n===0&&S6(e)}};var N2=R2.version;if(N2!=="19.2.8")throw Error(j(527,N2,"19.2.8"));Pe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=iN(t),e=e!==null?P2(e):null,e=e===null?null:e.stateNode,e};var zM={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ys.isDisabled&&Ys.supportsFiber))try{Cc=Ys.inject(zM),Fn=Ys}catch{}var Ys;Em.createRoot=function(e,t){if(!M2(e))throw Error(j(299));var n=!1,r="",i=mC,o=hC,a=pC;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=g6(e,1,!1,null,null,n,r,null,i,o,a,k6),e[Nl]=t.current,IS(e),new NS(t)};Em.hydrateRoot=function(e,t,n){if(!M2(e))throw Error(j(299));var r=!1,i="",o=mC,a=hC,l=pC,c=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=g6(e,1,!0,t,n??null,r,i,c,o,a,l,k6),t.context=y6(null),n=t.current,r=Hn(),r=V1(r),i=ro(r),i.callback=null,oo(n,i,r),n=r,t.current.lanes=n,Ic(t,n),Hi(t),e[Nl]=t.current,IS(e),new Cm(t)};Em.version="19.2.8"});var z6=zi((kF,$6)=>{"use strict";function _6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_6)}catch(e){console.error(e)}}_6(),$6.exports=w6()});var Ve=N(ne(),1);var Zc={id:"code",name:"Code",description:"Full access: read, edit, run commands, and use MCP tools.",groups:["read","edit","command","mcp","always"]},$0={id:"ask",name:"Ask",description:"Read-only: inspect the workspace and answer questions. Cannot edit or run commands.",groups:["read","mcp","always"]},z0={id:"agent-team",name:"Agent team",description:"You lead; specialists you assign are consulted as needed. Requires at least one agent.",groups:["read","edit","command","mcp","always"],requiresExpert:!0},Fc=[Zc,$0,z0],Fm=Zc.id,KI={junior:z0.id};function Vm(e){let t=e!==void 0?KI[e]??e:e;return Fc.find(n=>n.id===t)??Zc}var _={};Gi(_,{$brand:()=>qm,$input:()=>mg,$output:()=>fg,NEVER:()=>Hm,TimePrecision:()=>yg,ZodAny:()=>av,ZodArray:()=>uv,ZodBase64:()=>gd,ZodBase64URL:()=>yd,ZodBigInt:()=>Oa,ZodBigIntFormat:()=>xd,ZodBoolean:()=>ja,ZodCIDRv4:()=>hd,ZodCIDRv6:()=>pd,ZodCUID:()=>ld,ZodCUID2:()=>sd,ZodCatch:()=>Av,ZodCodec:()=>_s,ZodCustom:()=>$s,ZodCustomStringFormat:()=>Da,ZodDate:()=>bs,ZodDefault:()=>zv,ZodDiscriminatedUnion:()=>fv,ZodE164:()=>vd,ZodEmail:()=>rd,ZodEmoji:()=>od,ZodEnum:()=>Ea,ZodError:()=>Ej,ZodExactOptional:()=>wv,ZodFile:()=>Sv,ZodFirstPartyTypeKind:()=>Hv,ZodFunction:()=>Zv,ZodGUID:()=>hs,ZodIPv4:()=>fd,ZodIPv6:()=>md,ZodISODate:()=>Ku,ZodISODateTime:()=>Xu,ZodISODuration:()=>ed,ZodISOTime:()=>Qu,ZodIntersection:()=>mv,ZodIssueCode:()=>Dj,ZodJWT:()=>bd,ZodKSUID:()=>dd,ZodLazy:()=>Bv,ZodLiteral:()=>xv,ZodMAC:()=>Qy,ZodMap:()=>vv,ZodNaN:()=>Ov,ZodNanoID:()=>ad,ZodNever:()=>sv,ZodNonOptional:()=>zd,ZodNull:()=>rv,ZodNullable:()=>$v,ZodNumber:()=>Aa,ZodNumberFormat:()=>Co,ZodObject:()=>Ss,ZodOptional:()=>$d,ZodPipe:()=>ws,ZodPrefault:()=>Cv,ZodPreprocess:()=>Uv,ZodPromise:()=>Pv,ZodReadonly:()=>Nv,ZodRealError:()=>kn,ZodRecord:()=>Ca,ZodSet:()=>bv,ZodString:()=>Ia,ZodStringFormat:()=>Xe,ZodSuccess:()=>Dv,ZodSymbol:()=>nv,ZodTemplateLiteral:()=>Mv,ZodTransform:()=>kv,ZodTuple:()=>pv,ZodType:()=>ke,ZodULID:()=>cd,ZodURL:()=>vs,ZodUUID:()=>Ii,ZodUndefined:()=>iv,ZodUnion:()=>ks,ZodUnknown:()=>lv,ZodVoid:()=>cv,ZodXID:()=>ud,ZodXor:()=>dv,_ZodString:()=>id,_default:()=>Tv,_function:()=>h_,any:()=>Hw,array:()=>xs,base64:()=>Cw,base64url:()=>Ew,bigint:()=>Lw,boolean:()=>tv,catch:()=>jv,check:()=>p_,cidrv4:()=>zw,cidrv6:()=>Tw,clone:()=>un,codec:()=>u_,coerce:()=>qv,config:()=>bt,core:()=>Ji,cuid:()=>vw,cuid2:()=>bw,custom:()=>g_,date:()=>Gw,decode:()=>qy,decodeAsync:()=>Yy,describe:()=>y_,discriminatedUnion:()=>Qw,e164:()=>Iw,email:()=>sw,emoji:()=>gw,encode:()=>Hy,encodeAsync:()=>Gy,endsWith:()=>va,enum:()=>wd,exactOptional:()=>_v,file:()=>a_,flattenError:()=>es,float32:()=>Nw,float64:()=>Rw,formatError:()=>ts,fromJSONSchema:()=>__,function:()=>h_,getErrorMap:()=>jj,globalRegistry:()=>Vt,gt:()=>Ci,gte:()=>fn,guid:()=>cw,hash:()=>Uw,hex:()=>Ow,hostname:()=>jw,httpUrl:()=>pw,includes:()=>ga,instanceof:()=>b_,int:()=>td,int32:()=>Mw,int64:()=>Pw,intersection:()=>hv,invertCodec:()=>d_,ipv4:()=>ww,ipv6:()=>$w,iso:()=>Ta,json:()=>S_,jwt:()=>Dw,keyof:()=>Yw,ksuid:()=>kw,lazy:()=>Lv,length:()=>zo,literal:()=>o_,locales:()=>cs,looseObject:()=>Xw,looseRecord:()=>t_,lowercase:()=>ha,lt:()=>Ti,lte:()=>Un,mac:()=>_w,map:()=>n_,maxLength:()=>$o,maxSize:()=>Ir,meta:()=>v_,mime:()=>ba,minLength:()=>Wi,minSize:()=>Ei,multipleOf:()=>Er,nan:()=>c_,nanoid:()=>yw,nativeEnum:()=>r_,negative:()=>Pu,never:()=>Sd,nonnegative:()=>Fu,nonoptional:()=>Iv,nonpositive:()=>Zu,normalize:()=>xa,null:()=>ov,nullable:()=>gs,nullish:()=>l_,number:()=>ev,object:()=>Ww,optional:()=>ps,overwrite:()=>yi,parse:()=>Py,parseAsync:()=>Zy,partialRecord:()=>e_,pipe:()=>nd,positive:()=>Lu,prefault:()=>Ev,preprocess:()=>k_,prettifyError:()=>oh,promise:()=>m_,property:()=>Vu,readonly:()=>Rv,record:()=>yv,refine:()=>Fv,regex:()=>ma,regexes:()=>On,registry:()=>bu,safeDecode:()=>Jy,safeDecodeAsync:()=>Ky,safeEncode:()=>Wy,safeEncodeAsync:()=>Xy,safeParse:()=>Fy,safeParseAsync:()=>Vy,set:()=>i_,setErrorMap:()=>Aj,size:()=>_o,slugify:()=>_a,startsWith:()=>ya,strictObject:()=>Jw,string:()=>ms,stringFormat:()=>Aw,stringbool:()=>x_,success:()=>s_,superRefine:()=>Vv,symbol:()=>Fw,templateLiteral:()=>f_,toJSONSchema:()=>Yu,toLowerCase:()=>ka,toUpperCase:()=>wa,transform:()=>_d,treeifyError:()=>rh,trim:()=>Sa,tuple:()=>gv,uint32:()=>Bw,uint64:()=>Zw,ulid:()=>xw,undefined:()=>Vw,union:()=>kd,unknown:()=>To,uppercase:()=>pa,url:()=>hw,util:()=>Z,uuid:()=>uw,uuidv4:()=>dw,uuidv6:()=>fw,uuidv7:()=>mw,void:()=>qw,xid:()=>Sw,xor:()=>Kw});var Ji={};Gi(Ji,{$ZodAny:()=>Op,$ZodArray:()=>Bp,$ZodAsyncError:()=>gi,$ZodBase64:()=>_p,$ZodBase64URL:()=>$p,$ZodBigInt:()=>du,$ZodBigIntFormat:()=>Ip,$ZodBoolean:()=>os,$ZodCIDRv4:()=>Sp,$ZodCIDRv6:()=>kp,$ZodCUID:()=>cp,$ZodCUID2:()=>up,$ZodCatch:()=>ig,$ZodCheck:()=>tt,$ZodCheckBigIntFormat:()=>Bh,$ZodCheckEndsWith:()=>Xh,$ZodCheckGreaterThan:()=>ou,$ZodCheckIncludes:()=>Wh,$ZodCheckLengthEquals:()=>Hh,$ZodCheckLessThan:()=>ru,$ZodCheckLowerCase:()=>Gh,$ZodCheckMaxLength:()=>Fh,$ZodCheckMaxSize:()=>Lh,$ZodCheckMimeType:()=>Qh,$ZodCheckMinLength:()=>Vh,$ZodCheckMinSize:()=>Ph,$ZodCheckMultipleOf:()=>Rh,$ZodCheckNumberFormat:()=>Mh,$ZodCheckOverwrite:()=>ep,$ZodCheckProperty:()=>Kh,$ZodCheckRegex:()=>qh,$ZodCheckSizeEquals:()=>Zh,$ZodCheckStartsWith:()=>Jh,$ZodCheckStringFormat:()=>da,$ZodCheckUpperCase:()=>Yh,$ZodCodec:()=>ls,$ZodCustom:()=>dg,$ZodCustomStringFormat:()=>Cp,$ZodDate:()=>Mp,$ZodDefault:()=>Qp,$ZodDiscriminatedUnion:()=>Zp,$ZodE164:()=>zp,$ZodEmail:()=>op,$ZodEmoji:()=>lp,$ZodEncodeError:()=>_r,$ZodEnum:()=>Gp,$ZodError:()=>Ql,$ZodExactOptional:()=>Xp,$ZodFile:()=>Wp,$ZodFunction:()=>sg,$ZodGUID:()=>ip,$ZodIPv4:()=>vp,$ZodIPv6:()=>bp,$ZodISODate:()=>pp,$ZodISODateTime:()=>hp,$ZodISODuration:()=>yp,$ZodISOTime:()=>gp,$ZodIntersection:()=>Fp,$ZodJWT:()=>Tp,$ZodKSUID:()=>mp,$ZodLazy:()=>ug,$ZodLiteral:()=>Yp,$ZodMAC:()=>xp,$ZodMap:()=>Hp,$ZodNaN:()=>rg,$ZodNanoID:()=>sp,$ZodNever:()=>Np,$ZodNonOptional:()=>tg,$ZodNull:()=>jp,$ZodNullable:()=>Kp,$ZodNumber:()=>uu,$ZodNumberFormat:()=>Ep,$ZodObject:()=>ik,$ZodObjectJIT:()=>Lp,$ZodOptional:()=>mu,$ZodPipe:()=>hu,$ZodPrefault:()=>eg,$ZodPreprocess:()=>og,$ZodPromise:()=>cg,$ZodReadonly:()=>ag,$ZodRealError:()=>Sn,$ZodRecord:()=>Vp,$ZodRegistry:()=>vu,$ZodSet:()=>qp,$ZodString:()=>wo,$ZodStringFormat:()=>Je,$ZodSuccess:()=>ng,$ZodSymbol:()=>Dp,$ZodTemplateLiteral:()=>lg,$ZodTransform:()=>Jp,$ZodTuple:()=>fu,$ZodType:()=>ve,$ZodULID:()=>dp,$ZodURL:()=>ap,$ZodUUID:()=>rp,$ZodUndefined:()=>Ap,$ZodUnion:()=>as,$ZodUnknown:()=>Up,$ZodVoid:()=>Rp,$ZodXID:()=>fp,$ZodXor:()=>Pp,$brand:()=>qm,$constructor:()=>$,$input:()=>mg,$output:()=>fg,Doc:()=>rs,JSONSchema:()=>ow,JSONSchemaGenerator:()=>Wu,NEVER:()=>Hm,TimePrecision:()=>yg,_any:()=>Mg,_array:()=>Hg,_base64:()=>Nu,_base64url:()=>Ru,_bigint:()=>Dg,_boolean:()=>Eg,_catch:()=>Sj,_check:()=>rw,_cidrv4:()=>Ou,_cidrv6:()=>Uu,_coercedBigint:()=>Ag,_coercedBoolean:()=>Ig,_coercedDate:()=>Fg,_coercedNumber:()=>wg,_coercedString:()=>pg,_cuid:()=>Tu,_cuid2:()=>Cu,_custom:()=>Gg,_date:()=>Zg,_decode:()=>Wc,_decodeAsync:()=>Xc,_default:()=>vj,_discriminatedUnion:()=>aj,_e164:()=>Mu,_email:()=>xu,_emoji:()=>$u,_encode:()=>Yc,_encodeAsync:()=>Jc,_endsWith:()=>va,_enum:()=>fj,_file:()=>qg,_float32:()=>$g,_float64:()=>zg,_gt:()=>Ci,_gte:()=>fn,_guid:()=>us,_includes:()=>ga,_int:()=>_g,_int32:()=>Tg,_int64:()=>jg,_intersection:()=>lj,_ipv4:()=>Au,_ipv6:()=>ju,_isoDate:()=>bg,_isoDateTime:()=>vg,_isoDuration:()=>Sg,_isoTime:()=>xg,_jwt:()=>Bu,_ksuid:()=>Du,_lazy:()=>$j,_length:()=>zo,_literal:()=>hj,_lowercase:()=>ha,_lt:()=>Ti,_lte:()=>Un,_mac:()=>gg,_map:()=>uj,_max:()=>Un,_maxLength:()=>$o,_maxSize:()=>Ir,_mime:()=>ba,_min:()=>fn,_minLength:()=>Wi,_minSize:()=>Ei,_multipleOf:()=>Er,_nan:()=>Vg,_nanoid:()=>zu,_nativeEnum:()=>mj,_negative:()=>Pu,_never:()=>Lg,_nonnegative:()=>Fu,_nonoptional:()=>bj,_nonpositive:()=>Zu,_normalize:()=>xa,_null:()=>Rg,_nullable:()=>yj,_number:()=>kg,_optional:()=>gj,_overwrite:()=>yi,_parse:()=>la,_parseAsync:()=>sa,_pipe:()=>kj,_positive:()=>Lu,_promise:()=>zj,_property:()=>Vu,_readonly:()=>wj,_record:()=>cj,_refine:()=>Yg,_regex:()=>ma,_safeDecode:()=>Qc,_safeDecodeAsync:()=>tu,_safeEncode:()=>Kc,_safeEncodeAsync:()=>eu,_safeParse:()=>ca,_safeParseAsync:()=>ua,_set:()=>dj,_size:()=>_o,_slugify:()=>_a,_startsWith:()=>ya,_string:()=>hg,_stringFormat:()=>$a,_stringbool:()=>Kg,_success:()=>xj,_superRefine:()=>Wg,_symbol:()=>Ug,_templateLiteral:()=>_j,_toLowerCase:()=>ka,_toUpperCase:()=>wa,_transform:()=>pj,_trim:()=>Sa,_tuple:()=>sj,_uint32:()=>Cg,_uint64:()=>Og,_ulid:()=>Eu,_undefined:()=>Ng,_union:()=>rj,_unknown:()=>Bg,_uppercase:()=>pa,_url:()=>ds,_uuid:()=>Su,_uuidv4:()=>ku,_uuidv6:()=>wu,_uuidv7:()=>_u,_void:()=>Pg,_xid:()=>Iu,_xor:()=>oj,clone:()=>un,config:()=>bt,createStandardJSONSchemaMethod:()=>za,createToJSONSchemaMethod:()=>Qg,decode:()=>zD,decodeAsync:()=>CD,describe:()=>Jg,encode:()=>$D,encodeAsync:()=>TD,extractDefs:()=>Ar,finalize:()=>jr,flattenError:()=>es,formatError:()=>ts,globalConfig:()=>xo,globalRegistry:()=>Vt,initializeContext:()=>Dr,isValidBase64:()=>wp,isValidBase64URL:()=>Q0,isValidJWT:()=>ek,locales:()=>cs,meta:()=>Xg,parse:()=>qc,parseAsync:()=>Gc,prettifyError:()=>oh,process:()=>Ze,regexes:()=>On,registry:()=>bu,safeDecode:()=>ID,safeDecodeAsync:()=>AD,safeEncode:()=>ED,safeEncodeAsync:()=>DD,safeParse:()=>ah,safeParseAsync:()=>lh,toDotPath:()=>A0,toJSONSchema:()=>Yu,treeifyError:()=>rh,util:()=>Z,version:()=>tp});var T0,Hm=Object.freeze({status:"aborted"});function $(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);let u=a.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){let m=d[h];m in l||(l[m]=u[m].bind(l))}}let i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(l){var c;let u=n?.Parent?new o:this;r(u,l),(c=u._zod).deferred??(c.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var qm=Symbol("zod_brand"),gi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},_r=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(T0=globalThis).__zod_globalConfig??(T0.__zod_globalConfig={});var xo=globalThis.__zod_globalConfig;function bt(e){return e&&Object.assign(xo,e),xo}var Z={};Gi(Z,{BIGINT_FORMAT_RANGES:()=>nh,Class:()=>Ym,NUMBER_FORMAT_RANGES:()=>th,aborted:()=>Cr,allowsEval:()=>Xm,assert:()=>iD,assertEqual:()=>QI,assertIs:()=>tD,assertNever:()=>nD,assertNotEqual:()=>eD,assignProp:()=>zr,base64ToUint8Array:()=>E0,base64urlToUint8Array:()=>xD,cached:()=>oa,captureStackTrace:()=>Hc,cleanEnum:()=>bD,cleanRegex:()=>Wl,clone:()=>un,cloneDef:()=>oD,createTransparentProxy:()=>dD,defineLazy:()=>_e,esc:()=>Vc,escapeRegex:()=>Xn,explicitlyAborted:()=>ih,extend:()=>hD,finalizeIssue:()=>dn,floatSafeRemainder:()=>Wm,getElementAtPath:()=>aD,getEnumValues:()=>Yl,getLengthableOrigin:()=>Kl,getParsedType:()=>uD,getSizableOrigin:()=>Xl,hexToUint8Array:()=>kD,isObject:()=>So,isPlainObject:()=>Tr,issue:()=>aa,joinValues:()=>T,jsonStringifyReplacer:()=>ra,merge:()=>gD,mergeDefs:()=>Yi,normalizeParams:()=>G,nullish:()=>$r,numKeys:()=>cD,objectClone:()=>rD,omit:()=>mD,optionalKeys:()=>eh,parsedType:()=>B,partial:()=>yD,pick:()=>fD,prefixIssues:()=>xn,primitiveTypes:()=>Qm,promiseAllObject:()=>lD,propertyKeyTypes:()=>Jl,randomString:()=>sD,required:()=>vD,safeExtend:()=>pD,shallowClone:()=>Km,slugify:()=>Jm,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>I0,uint8ArrayToBase64url:()=>SD,uint8ArrayToHex:()=>wD,unwrapMessage:()=>Gl});function QI(e){return e}function eD(e){return e}function tD(e){}function nD(e){throw new Error("Unexpected value in exhaustive check")}function iD(e){}function Yl(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function T(e,t="|"){return e.map(n=>M(n)).join(t)}function ra(e,t){return typeof t=="bigint"?t.toString():t}function oa(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function $r(e){return e==null}function Wl(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Wm(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var C0=Symbol("evaluating");function _e(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==C0)return r===void 0&&(r=C0,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function rD(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function zr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Yi(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function oD(e){return Yi(e._zod.def)}function aD(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function lD(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return i})}function sD(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Vc(e){return JSON.stringify(e)}function Jm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Hc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function So(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xm=oa(()=>{if(xo.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Tr(e){if(So(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(So(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Km(e){return Tr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function cD(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var uD=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Jl=new Set(["string","number","symbol"]),Qm=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function un(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function dD(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,o){return t??(t=e()),Reflect.set(t,r,i,o)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function eh(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var th={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},nh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function fD(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Yi(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return zr(this,"shape",a),a},checks:[]});return un(e,o)}function mD(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Yi(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return zr(this,"shape",a),a},checks:[]});return un(e,o)}function hD(e,t){if(!Tr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=Yi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return zr(this,"shape",o),o}});return un(e,i)}function pD(e,t){if(!Tr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Yi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return zr(this,"shape",r),r}});return un(e,n)}function gD(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=Yi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return zr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return un(e,n)}function yD(e,t,n){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Yi(t._zod.def,{get shape(){let l=t._zod.def.shape,c={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)c[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return zr(this,"shape",c),c},checks:[]});return un(t,a)}function vD(e,t,n){let r=Yi(t._zod.def,{get shape(){let i=t._zod.def.shape,o={...i};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(let a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return zr(this,"shape",o),o}});return un(t,r)}function Cr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ih(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function xn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Gl(e){return typeof e=="string"?e:e?.message}function dn(e,t,n){let r=e.message?e.message:Gl(e.inst?._zod.def?.error?.(e))??Gl(t?.error?.(e))??Gl(n.customError?.(e))??Gl(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...l}=e;return l.path??(l.path=[]),l.message=r,t?.reportInput&&(l.input=a),l}function Xl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Kl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function B(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function aa(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function bD(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function E0(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function I0(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function xD(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return E0(t+n)}function SD(e){return I0(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function kD(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function wD(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Ym=class{constructor(...t){}};var D0=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ra,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ql=$("$ZodError",D0),Sn=$("$ZodError",D0,{Parent:Error});function es(e,t=n=>n.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ts(e,t=n=>n.message){let n={_errors:[]},r=(i,o=[])=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>r({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(t(a));else{let c=n,u=0;for(;u<l.length;){let d=l[u];u===l.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(a))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}}};return r(e),n}function rh(e,t=n=>n.message){let n={errors:[]},r=(i,o=[])=>{var a,l;for(let c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>r({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")r({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")r({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){n.errors.push(t(c));continue}let d=n,h=0;for(;h<u.length;){let m=u[h],f=h===u.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(l=d.items)[m]??(l[m]={errors:[]}),d=d.items[m]),f&&d.errors.push(t(c)),h++}}};return r(e),n}function A0(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function oh(e){let t=[],n=[...e.issues].sort((r,i)=>(r.path??[]).length-(i.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${A0(r.path)}`);return t.join(`
8
+ `+r.stack}}var Qx=Object.prototype.hasOwnProperty,F1=Rt.unstable_scheduleCallback,gx=Rt.unstable_cancelCallback,sN=Rt.unstable_shouldYield,cN=Rt.unstable_requestPaint,Zn=Rt.unstable_now,uN=Rt.unstable_getCurrentPriorityLevel,V2=Rt.unstable_ImmediatePriority,H2=Rt.unstable_UserBlockingPriority,Pf=Rt.unstable_NormalPriority,dN=Rt.unstable_LowPriority,q2=Rt.unstable_IdlePriority,fN=Rt.log,mN=Rt.unstable_setDisableYieldValue,Cc=null,Fn=null;function Xr(e){if(typeof fN=="function"&&mN(e),Fn&&typeof Fn.setStrictMode=="function")try{Fn.setStrictMode(Cc,e)}catch{}}var Vn=Math.clz32?Math.clz32:gN,hN=Math.log,pN=Math.LN2;function gN(e){return e>>>=0,e===0?32:31-(hN(e)/pN|0)|0}var af=256,lf=262144,sf=4194304;function Ro(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 mm(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~o,r!==0?i=Ro(r):(a&=l,a!==0?i=Ro(a):n||(n=l&~e,n!==0&&(i=Ro(n))))):(l=r&~o,l!==0?i=Ro(l):a!==0?i=Ro(a):n||(n=r&~e,n!==0&&(i=Ro(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Ec(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yN(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 G2(){var e=sf;return sf<<=1,(sf&62914560)===0&&(sf=4194304),e}function yx(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ic(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function vN(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var d=31-Vn(n),h=1<<d;l[d]=0,c[d]=-1;var m=u[d];if(m!==null)for(u[d]=null,d=0;d<m.length;d++){var f=m[d];f!==null&&(f.lane&=-536870913)}n&=~h}r!==0&&Y2(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function Y2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Vn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function W2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Vn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function J2(e,t){var n=t&-t;return n=(n&42)!==0?1:V1(n),(n&(e.suspendedLanes|t))!==0?0:n}function V1(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 H1(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function X2(){var e=Pe.p;return e!==0?e:(e=window.event,e===void 0?32:x6(e.type))}function gT(e,t){var n=Pe.p;try{return Pe.p=e,t()}finally{Pe.p=n}}var go=Math.random().toString(36).slice(2),Jt="__reactFiber$"+go,An="__reactProps$"+go,Nl="__reactContainer$"+go,e1="__reactEvents$"+go,bN="__reactListeners$"+go,xN="__reactHandles$"+go,yT="__reactResources$"+go,Dc="__reactMarker$"+go;function q1(e){delete e[Jt],delete e[An],delete e[e1],delete e[bN],delete e[xN]}function sl(e){var t=e[Jt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Nl]||n[Jt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$2(e);e!==null;){if(n=e[Jt])return n;e=$2(e)}return t}e=n,n=e.parentNode}return null}function Rl(e){if(e=e[Jt]||e[Nl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function vl(e){var t=e[yT];return t||(t=e[yT]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Pt(e){e[Dc]=!0}var K2=new Set,Q2={};function Jo(e,t){zl(e,t),zl(e+"Capture",t)}function zl(e,t){for(Q2[e]=t,e=0;e<t.length;e++)K2.add(t[e])}var SN=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]*$"),vT={},bT={};function kN(e){return Qx.call(bT,e)?!0:Qx.call(vT,e)?!1:SN.test(e)?bT[e]=!0:(vT[e]=!0,!1)}function wf(e,t,n){if(kN(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cf(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function or(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function oi(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function eC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function wN(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function t1(e){if(!e._valueTracker){var t=eC(e)?"checked":"value";e._valueTracker=wN(e,t,""+e[t])}}function tC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=eC(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zf(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 _N=/[\n"\\]/g;function si(e){return e.replace(_N,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function n1(e,t,n,r,i,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+oi(t)):e.value!==""+oi(t)&&(e.value=""+oi(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?i1(e,a,oi(t)):n!=null?i1(e,a,oi(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+oi(l):e.removeAttribute("name")}function nC(e,t,n,r,i,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){t1(e);return}n=n!=null?""+oi(n):"",t=t!=null?""+oi(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),t1(e)}function i1(e,t,n){t==="number"&&Zf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function iC(e,t,n){if(t!=null&&(t=""+oi(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+oi(n):""}function rC(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(j(92));if(Js(r)){if(1<r.length)throw Error(j(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=oi(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),t1(e)}function Tl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var $N=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 xT(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||$N.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function oC(e,t,n){if(t!=null&&typeof t!="object")throw Error(j(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&xT(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&xT(e,o,t[o])}function G1(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 zN=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"]]),TN=/^[\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 _f(e){return TN.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function mr(){}var r1=null;function Y1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cl=null,xl=null;function ST(e){var t=Rl(e);if(t&&(e=t.stateNode)){var n=e[An]||null;e:switch(e=t.stateNode,t.type){case"input":if(n1(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+si(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[An]||null;if(!i)throw Error(j(90));n1(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&tC(r)}break e;case"textarea":iC(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&bl(e,!!n.multiple,t,!1)}}}var vx=!1;function aC(e,t,n){if(vx)return e(t,n);vx=!0;try{var r=e(t);return r}finally{if(vx=!1,(cl!==null||xl!==null)&&($m(),cl&&(t=cl,e=xl,xl=cl=null,ST(t),e)))for(t=0;t<e.length;t++)ST(e[t])}}function hc(e,t){var n=e.stateNode;if(n===null)return null;var r=n[An]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),o1=!1;if(vr)try{tl={},Object.defineProperty(tl,"passive",{get:function(){o1=!0}}),window.addEventListener("test",tl,tl),window.removeEventListener("test",tl,tl)}catch{o1=!1}var tl,Kr=null,W1=null,$f=null;function lC(){if($f)return $f;var e,t=W1,n=t.length,r,i="value"in Kr?Kr.value:Kr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return $f=i.slice(e,1<r?1-r:void 0)}function zf(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 uf(){return!0}function kT(){return!1}function jn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?uf:kT,this.isPropagationStopped=kT,this}return ht(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=uf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=uf)},persist:function(){},isPersistent:uf}),t}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hm=jn(Xo),Ac=ht({},Xo,{view:0,detail:0}),CN=jn(Ac),bx,xx,Fs,pm=ht({},Ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:J1,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!==Fs&&(Fs&&e.type==="mousemove"?(bx=e.screenX-Fs.screenX,xx=e.screenY-Fs.screenY):xx=bx=0,Fs=e),bx)},movementY:function(e){return"movementY"in e?e.movementY:xx}}),wT=jn(pm),EN=ht({},pm,{dataTransfer:0}),IN=jn(EN),DN=ht({},Ac,{relatedTarget:0}),Sx=jn(DN),AN=ht({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),jN=jn(AN),ON=ht({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UN=jn(ON),NN=ht({},Xo,{data:0}),_T=jn(NN),RN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},MN={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"},BN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BN[e])?!!t[e]:!1}function J1(){return LN}var PN=ht({},Ac,{key:function(e){if(e.key){var t=RN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?MN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:J1,charCode:function(e){return e.type==="keypress"?zf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ZN=jn(PN),FN=ht({},pm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$T=jn(FN),VN=ht({},Ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:J1}),HN=jn(VN),qN=ht({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),GN=jn(qN),YN=ht({},pm,{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}),WN=jn(YN),JN=ht({},Xo,{newState:0,oldState:0}),XN=jn(JN),KN=[9,13,27,32],X1=vr&&"CompositionEvent"in window,ec=null;vr&&"documentMode"in document&&(ec=document.documentMode);var QN=vr&&"TextEvent"in window&&!ec,sC=vr&&(!X1||ec&&8<ec&&11>=ec),zT=" ",TT=!1;function cC(e,t){switch(e){case"keyup":return KN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ul=!1;function eR(e,t){switch(e){case"compositionend":return uC(t);case"keypress":return t.which!==32?null:(TT=!0,zT);case"textInput":return e=t.data,e===zT&&TT?null:e;default:return null}}function tR(e,t){if(ul)return e==="compositionend"||!X1&&cC(e,t)?(e=lC(),$f=W1=Kr=null,ul=!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 sC&&t.locale!=="ko"?null:t.data;default:return null}}var nR={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 CT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nR[e.type]:t==="textarea"}function dC(e,t,n,r){cl?xl?xl.push(r):xl=[r]:cl=r,t=am(t,"onChange"),0<t.length&&(n=new hm("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var tc=null,pc=null;function iR(e){a6(e,0)}function gm(e){var t=Xs(e);if(tC(t))return e}function ET(e,t){if(e==="change")return t}var fC=!1;vr&&(vr?(ff="oninput"in document,ff||(kx=document.createElement("div"),kx.setAttribute("oninput","return;"),ff=typeof kx.oninput=="function"),df=ff):df=!1,fC=df&&(!document.documentMode||9<document.documentMode));var df,ff,kx;function IT(){tc&&(tc.detachEvent("onpropertychange",mC),pc=tc=null)}function mC(e){if(e.propertyName==="value"&&gm(pc)){var t=[];dC(t,pc,e,Y1(e)),aC(iR,t)}}function rR(e,t,n){e==="focusin"?(IT(),tc=t,pc=n,tc.attachEvent("onpropertychange",mC)):e==="focusout"&&IT()}function oR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gm(pc)}function aR(e,t){if(e==="click")return gm(t)}function lR(e,t){if(e==="input"||e==="change")return gm(t)}function sR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qn=typeof Object.is=="function"?Object.is:sR;function gc(e,t){if(qn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Qx.call(t,i)||!qn(e[i],t[i]))return!1}return!0}function DT(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function AT(e,t){var n=DT(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=DT(n)}}function hC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pC(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zf(e.document)}return t}function K1(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 cR=vr&&"documentMode"in document&&11>=document.documentMode,dl=null,a1=null,nc=null,l1=!1;function jT(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;l1||dl==null||dl!==Zf(r)||(r=dl,"selectionStart"in r&&K1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),nc&&gc(nc,r)||(nc=r,r=am(a1,"onSelect"),0<r.length&&(t=new hm("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=dl)))}function Uo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fl={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionrun:Uo("Transition","TransitionRun"),transitionstart:Uo("Transition","TransitionStart"),transitioncancel:Uo("Transition","TransitionCancel"),transitionend:Uo("Transition","TransitionEnd")},wx={},gC={};vr&&(gC=document.createElement("div").style,"AnimationEvent"in window||(delete fl.animationend.animation,delete fl.animationiteration.animation,delete fl.animationstart.animation),"TransitionEvent"in window||delete fl.transitionend.transition);function Ko(e){if(wx[e])return wx[e];if(!fl[e])return e;var t=fl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in gC)return wx[e]=t[n];return e}var yC=Ko("animationend"),vC=Ko("animationiteration"),bC=Ko("animationstart"),uR=Ko("transitionrun"),dR=Ko("transitionstart"),fR=Ko("transitioncancel"),xC=Ko("transitionend"),SC=new Map,s1="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(" ");s1.push("scrollEnd");function wi(e,t){SC.set(e,t),Jo(t,[e])}var Ff=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)},ri=[],ml=0,Q1=0;function ym(){for(var e=ml,t=Q1=ml=0;t<e;){var n=ri[t];ri[t++]=null;var r=ri[t];ri[t++]=null;var i=ri[t];ri[t++]=null;var o=ri[t];if(ri[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&kC(n,i,o)}}function vm(e,t,n,r){ri[ml++]=e,ri[ml++]=t,ri[ml++]=n,ri[ml++]=r,Q1|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function eS(e,t,n,r){return vm(e,t,n,r),Vf(e)}function Qo(e,t){return vm(e,null,null,t),Vf(e)}function kC(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-Vn(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function Vf(e){if(50<dc)throw dc=0,E1=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hl={};function mR(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ln(e,t,n,r){return new mR(e,t,n,r)}function tS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pr(e,t){var n=e.alternate;return n===null?(n=Ln(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function wC(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Tf(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")tS(e)&&(a=1);else if(typeof e=="string")a=gM(e,n,Fi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Wx:return e=Ln(31,n,t,i),e.elementType=Wx,e.lanes=o,e;case al:return Po(n.children,i,o,t);case Z2:a=8,i|=24;break;case qx:return e=Ln(12,n,t,i|2),e.elementType=qx,e.lanes=o,e;case Gx:return e=Ln(13,n,t,i),e.elementType=Gx,e.lanes=o,e;case Yx:return e=Ln(19,n,t,i),e.elementType=Yx,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fr:a=10;break e;case F2:a=9;break e;case P1:a=11;break e;case Z1:a=14;break e;case Hr:a=16,r=null;break e}a=29,n=Error(j(130,e===null?"null":typeof e,"")),r=null}return t=Ln(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Po(e,t,n,r){return e=Ln(7,e,r,t),e.lanes=n,e}function _x(e,t,n){return e=Ln(6,e,null,t),e.lanes=n,e}function _C(e){var t=Ln(18,null,null,0);return t.stateNode=e,t}function $x(e,t,n){return t=Ln(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var OT=new WeakMap;function ci(e,t){if(typeof e=="object"&&e!==null){var n=OT.get(e);return n!==void 0?n:(t={value:e,source:t,stack:pT(t)},OT.set(e,t),t)}return{value:e,source:t,stack:pT(t)}}var pl=[],gl=0,Hf=null,yc=0,ai=[],li=0,fo=null,Li=1,Pi="";function ur(e,t){pl[gl++]=yc,pl[gl++]=Hf,Hf=e,yc=t}function $C(e,t,n){ai[li++]=Li,ai[li++]=Pi,ai[li++]=fo,fo=e;var r=Li;e=Pi;var i=32-Vn(r)-1;r&=~(1<<i),n+=1;var o=32-Vn(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Li=1<<32-Vn(t)+i|n<<i|r,Pi=o+e}else Li=1<<o|n<<i|r,Pi=e}function nS(e){e.return!==null&&(ur(e,1),$C(e,1,0))}function iS(e){for(;e===Hf;)Hf=pl[--gl],pl[gl]=null,yc=pl[--gl],pl[gl]=null;for(;e===fo;)fo=ai[--li],ai[li]=null,Pi=ai[--li],ai[li]=null,Li=ai[--li],ai[li]=null}function zC(e,t){ai[li++]=Li,ai[li++]=Pi,ai[li++]=fo,Li=t.id,Pi=t.overflow,fo=e}var Xt=null,mt=null,Ue=!1,io=null,ui=!1,c1=Error(j(519));function mo(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vc(ci(t,e)),c1}function UT(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Jt]=e,t[An]=r,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<kc.length;n++)Ee(kc[n],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),nC(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),rC(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||s6(t.textContent,n)?(r.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),r.onScroll!=null&&Ee("scroll",t),r.onScrollEnd!=null&&Ee("scrollend",t),r.onClick!=null&&(t.onclick=mr),t=!0):t=!1,t||mo(e,!0)}function NT(e){for(Xt=e.return;Xt;)switch(Xt.tag){case 5:case 31:case 13:ui=!1;return;case 27:case 3:ui=!0;return;default:Xt=Xt.return}}function nl(e){if(e!==Xt)return!1;if(!Ue)return NT(e),Ue=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||O1(e.type,e.memoizedProps)),n=!n),n&&mt&&mo(e),NT(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));mt=_2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));mt=_2(e)}else t===27?(t=mt,yo(e.type)?(e=M1,M1=null,mt=e):mt=t):mt=Xt?fi(e.stateNode.nextSibling):null;return!0}function Ho(){mt=Xt=null,Ue=!1}function zx(){var e=io;return e!==null&&(In===null?In=e:In.push.apply(In,e),io=null),e}function vc(e){io===null?io=[e]:io.push(e)}var u1=Vi(null),ea=null,hr=null;function Gr(e,t,n){st(u1,t._currentValue),t._currentValue=n}function gr(e){e._currentValue=u1.current,Zt(u1)}function d1(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function f1(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),d1(o.return,n,e),r||(a=null);break e}o=l.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(j(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),d1(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Ml(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(j(387));if(a=a.memoizedProps,a!==null){var l=i.type;qn(i.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(i===Mf.current){if(a=i.alternate,a===null)throw Error(j(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(_c):e=[_c])}i=i.return}e!==null&&f1(t,e,n,r),t.flags|=262144}function qf(e){for(e=e.firstContext;e!==null;){if(!qn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function qo(e){ea=e,hr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return TC(ea,e)}function mf(e,t){return ea===null&&qo(e),TC(e,t)}function TC(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hr===null){if(e===null)throw Error(j(308));hr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hr=hr.next=t;return n}var hR=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},pR=Rt.unstable_scheduleCallback,gR=Rt.unstable_NormalPriority,It={$$typeof:fr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rS(){return{controller:new hR,data:new Map,refCount:0}}function jc(e){e.refCount--,e.refCount===0&&pR(gR,function(){e.controller.abort()})}var ic=null,m1=0,Cl=0,Sl=null;function yR(e,t){if(ic===null){var n=ic=[];m1=0,Cl=ES(),Sl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return m1++,t.then(RT,RT),t}function RT(){if(--m1===0&&ic!==null){Sl!==null&&(Sl.status="fulfilled");var e=ic;ic=null,Cl=0,Sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vR(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var MT=ge.S;ge.S=function(e,t){P4=Zn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&yR(e,t),MT!==null&&MT(e,t)};var Zo=Vi(null);function oS(){var e=Zo.current;return e!==null?e:it.pooledCache}function Cf(e,t){t===null?st(Zo,Zo.current):st(Zo,t.pool)}function CC(){var e=oS();return e===null?null:{parent:It._currentValue,pool:e}}var Bl=Error(j(460)),aS=Error(j(474)),bm=Error(j(542)),Gf={then:function(){}};function BT(e){return e=e.status,e==="fulfilled"||e==="rejected"}function EC(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(mr,mr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,PT(e),e;default:if(typeof t.status=="string")t.then(mr,mr);else{if(e=it,e!==null&&100<e.shellSuspendCounter)throw Error(j(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,PT(e),e}throw Fo=t,Bl}}function Mo(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fo=n,Bl):n}}var Fo=null;function LT(){if(Fo===null)throw Error(j(459));var e=Fo;return Fo=null,e}function PT(e){if(e===Bl||e===bm)throw Error(j(483))}var kl=null,bc=0;function hf(e){var t=bc;return bc+=1,kl===null&&(kl=[]),EC(kl,e,t)}function Vs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function pf(e,t){throw t.$$typeof===rN?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function IC(e){function t(g,b){if(e){var S=g.deletions;S===null?(g.deletions=[b],g.flags|=16):S.push(b)}}function n(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function r(g){for(var b=new Map;g!==null;)g.key!==null?b.set(g.key,g):b.set(g.index,g),g=g.sibling;return b}function i(g,b){return g=pr(g,b),g.index=0,g.sibling=null,g}function o(g,b,S){return g.index=S,e?(S=g.alternate,S!==null?(S=S.index,S<b?(g.flags|=67108866,b):S):(g.flags|=67108866,b)):(g.flags|=1048576,b)}function a(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,b,S,v){return b===null||b.tag!==6?(b=_x(S,g.mode,v),b.return=g,b):(b=i(b,S),b.return=g,b)}function c(g,b,S,v){var C=S.type;return C===al?d(g,b,S.props.children,v,S.key):b!==null&&(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Hr&&Mo(C)===b.type)?(b=i(b,S.props),Vs(b,S),b.return=g,b):(b=Tf(S.type,S.key,S.props,null,g.mode,v),Vs(b,S),b.return=g,b)}function u(g,b,S,v){return b===null||b.tag!==4||b.stateNode.containerInfo!==S.containerInfo||b.stateNode.implementation!==S.implementation?(b=$x(S,g.mode,v),b.return=g,b):(b=i(b,S.children||[]),b.return=g,b)}function d(g,b,S,v,C){return b===null||b.tag!==7?(b=Po(S,g.mode,v,C),b.return=g,b):(b=i(b,S),b.return=g,b)}function h(g,b,S){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=_x(""+b,g.mode,S),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case of:return S=Tf(b.type,b.key,b.props,null,g.mode,S),Vs(S,b),S.return=g,S;case Ws:return b=$x(b,g.mode,S),b.return=g,b;case Hr:return b=Mo(b),h(g,b,S)}if(Js(b)||Zs(b))return b=Po(b,g.mode,S,null),b.return=g,b;if(typeof b.then=="function")return h(g,hf(b),S);if(b.$$typeof===fr)return h(g,mf(g,b),S);pf(g,b)}return null}function m(g,b,S,v){var C=b!==null?b.key:null;if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return C!==null?null:l(g,b,""+S,v);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case of:return S.key===C?c(g,b,S,v):null;case Ws:return S.key===C?u(g,b,S,v):null;case Hr:return S=Mo(S),m(g,b,S,v)}if(Js(S)||Zs(S))return C!==null?null:d(g,b,S,v,null);if(typeof S.then=="function")return m(g,b,hf(S),v);if(S.$$typeof===fr)return m(g,b,mf(g,S),v);pf(g,S)}return null}function f(g,b,S,v,C){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(S)||null,l(b,g,""+v,C);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case of:return g=g.get(v.key===null?S:v.key)||null,c(b,g,v,C);case Ws:return g=g.get(v.key===null?S:v.key)||null,u(b,g,v,C);case Hr:return v=Mo(v),f(g,b,S,v,C)}if(Js(v)||Zs(v))return g=g.get(S)||null,d(b,g,v,C,null);if(typeof v.then=="function")return f(g,b,S,hf(v),C);if(v.$$typeof===fr)return f(g,b,S,mf(b,v),C);pf(b,v)}return null}function y(g,b,S,v){for(var C=null,K=null,q=b,w=b=0,R=null;q!==null&&w<S.length;w++){q.index>w?(R=q,q=null):R=q.sibling;var ce=m(g,q,S[w],v);if(ce===null){q===null&&(q=R);break}e&&q&&ce.alternate===null&&t(g,q),b=o(ce,b,w),K===null?C=ce:K.sibling=ce,K=ce,q=R}if(w===S.length)return n(g,q),Ue&&ur(g,w),C;if(q===null){for(;w<S.length;w++)q=h(g,S[w],v),q!==null&&(b=o(q,b,w),K===null?C=q:K.sibling=q,K=q);return Ue&&ur(g,w),C}for(q=r(q);w<S.length;w++)R=f(q,g,w,S[w],v),R!==null&&(e&&R.alternate!==null&&q.delete(R.key===null?w:R.key),b=o(R,b,w),K===null?C=R:K.sibling=R,K=R);return e&&q.forEach(function(Me){return t(g,Me)}),Ue&&ur(g,w),C}function k(g,b,S,v){if(S==null)throw Error(j(151));for(var C=null,K=null,q=b,w=b=0,R=null,ce=S.next();q!==null&&!ce.done;w++,ce=S.next()){q.index>w?(R=q,q=null):R=q.sibling;var Me=m(g,q,ce.value,v);if(Me===null){q===null&&(q=R);break}e&&q&&Me.alternate===null&&t(g,q),b=o(Me,b,w),K===null?C=Me:K.sibling=Me,K=Me,q=R}if(ce.done)return n(g,q),Ue&&ur(g,w),C;if(q===null){for(;!ce.done;w++,ce=S.next())ce=h(g,ce.value,v),ce!==null&&(b=o(ce,b,w),K===null?C=ce:K.sibling=ce,K=ce);return Ue&&ur(g,w),C}for(q=r(q);!ce.done;w++,ce=S.next())ce=f(q,g,w,ce.value,v),ce!==null&&(e&&ce.alternate!==null&&q.delete(ce.key===null?w:ce.key),b=o(ce,b,w),K===null?C=ce:K.sibling=ce,K=ce);return e&&q.forEach(function(ct){return t(g,ct)}),Ue&&ur(g,w),C}function E(g,b,S,v){if(typeof S=="object"&&S!==null&&S.type===al&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case of:e:{for(var C=S.key;b!==null;){if(b.key===C){if(C=S.type,C===al){if(b.tag===7){n(g,b.sibling),v=i(b,S.props.children),v.return=g,g=v;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Hr&&Mo(C)===b.type){n(g,b.sibling),v=i(b,S.props),Vs(v,S),v.return=g,g=v;break e}n(g,b);break}else t(g,b);b=b.sibling}S.type===al?(v=Po(S.props.children,g.mode,v,S.key),v.return=g,g=v):(v=Tf(S.type,S.key,S.props,null,g.mode,v),Vs(v,S),v.return=g,g=v)}return a(g);case Ws:e:{for(C=S.key;b!==null;){if(b.key===C)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){n(g,b.sibling),v=i(b,S.children||[]),v.return=g,g=v;break e}else{n(g,b);break}else t(g,b);b=b.sibling}v=$x(S,g.mode,v),v.return=g,g=v}return a(g);case Hr:return S=Mo(S),E(g,b,S,v)}if(Js(S))return y(g,b,S,v);if(Zs(S)){if(C=Zs(S),typeof C!="function")throw Error(j(150));return S=C.call(S),k(g,b,S,v)}if(typeof S.then=="function")return E(g,b,hf(S),v);if(S.$$typeof===fr)return E(g,b,mf(g,S),v);pf(g,S)}return typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint"?(S=""+S,b!==null&&b.tag===6?(n(g,b.sibling),v=i(b,S),v.return=g,g=v):(n(g,b),v=_x(S,g.mode,v),v.return=g,g=v),a(g)):n(g,b)}return function(g,b,S,v){try{bc=0;var C=E(g,b,S,v);return kl=null,C}catch(q){if(q===Bl||q===bm)throw q;var K=Ln(29,q,null,g.mode);return K.lanes=v,K.return=g,K}}}var Go=IC(!0),DC=IC(!1),qr=!1;function lS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function h1(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 ro(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Le&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Vf(e),kC(e,null,n),t}return vm(e,r,t,n),Vf(e)}function rc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,W2(e,n)}}function Tx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var p1=!1;function oc(){if(p1){var e=Sl;if(e!==null)throw e}}function ac(e,t,n,r){p1=!1;var i=e.updateQueue;qr=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var h=i.baseState;a=0,d=u=c=null,l=o;do{var m=l.lane&-536870913,f=m!==l.lane;if(f?(De&m)===m:(r&m)===m){m!==0&&m===Cl&&(p1=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,k=l;m=t;var E=n;switch(k.tag){case 1:if(y=k.payload,typeof y=="function"){h=y.call(E,h,m);break e}h=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=k.payload,m=typeof y=="function"?y.call(E,h,m):y,m==null)break e;h=ht({},h,m);break e;case 2:qr=!0}}m=l.callback,m!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[m]:f.push(m))}else f={lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,c=h):d=d.next=f,a|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,o===null&&(i.shared.lanes=0),po|=a,e.lanes=a,e.memoizedState=h}}function AC(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function jC(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)AC(n[e],t)}var El=Vi(null),Yf=Vi(0);function ZT(e,t){e=kr,st(Yf,e),st(El,t),kr=e|t.baseLanes}function g1(){st(Yf,kr),st(El,El.current)}function sS(){kr=Yf.current,Zt(El),Zt(Yf)}var Gn=Vi(null),di=null;function Yr(e){var t=e.alternate;st($t,$t.current&1),st(Gn,e),di===null&&(t===null||El.current!==null||t.memoizedState!==null)&&(di=e)}function y1(e){st($t,$t.current),st(Gn,e),di===null&&(di=e)}function OC(e){e.tag===22?(st($t,$t.current),st(Gn,e),di===null&&(di=e)):Wr(e)}function Wr(){st($t,$t.current),st(Gn,Gn.current)}function Bn(e){Zt(Gn),di===e&&(di=null),Zt($t)}var $t=Vi(0);function Wf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||N1(n)||R1(n)))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 br=0,we=null,Qe=null,Ct=null,Jf=!1,wl=!1,Yo=!1,Xf=0,xc=0,_l=null,bR=0;function St(){throw Error(j(321))}function cS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qn(e[n],t[n]))return!1;return!0}function uS(e,t,n,r,i,o){return br=o,we=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?d4:SS,Yo=!1,o=n(r,i),Yo=!1,wl&&(o=NC(t,n,r,i)),UC(e),o}function UC(e){ge.H=Sc;var t=Qe!==null&&Qe.next!==null;if(br=0,Ct=Qe=we=null,Jf=!1,xc=0,_l=null,t)throw Error(j(300));e===null||Dt||(e=e.dependencies,e!==null&&qf(e)&&(Dt=!0))}function NC(e,t,n,r){we=e;var i=0;do{if(wl&&(_l=null),xc=0,wl=!1,25<=i)throw Error(j(301));if(i+=1,Ct=Qe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ge.H=f4,o=t(n,r)}while(wl);return o}function xR(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Oc(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(we.flags|=1024),t}function dS(){var e=Xf!==0;return Xf=0,e}function fS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function mS(e){if(Jf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Jf=!1}br=0,Ct=Qe=we=null,wl=!1,xc=Xf=0,_l=null}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ct===null?we.memoizedState=Ct=e:Ct=Ct.next=e,Ct}function zt(){if(Qe===null){var e=we.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=Ct===null?we.memoizedState:Ct.next;if(t!==null)Ct=t,Qe=e;else{if(e===null)throw we.alternate===null?Error(j(467)):Error(j(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Ct===null?we.memoizedState=Ct=e:Ct=Ct.next=e}return Ct}function xm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oc(e){var t=xc;return xc+=1,_l===null&&(_l=[]),e=EC(_l,e,t),t=we,(Ct===null?t.memoizedState:Ct.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?d4:SS),e}function Sm(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Oc(e);if(e.$$typeof===fr)return Kt(e)}throw Error(j(438,String(e)))}function hS(e){var t=null,n=we.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=we.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=xm(),we.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=oN;return t.index++,n}function xr(e,t){return typeof t=="function"?t(e):t}function Ef(e){var t=zt();return pS(t,Qe,e)}function pS(e,t,n){var r=e.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var l=a=null,c=null,u=t,d=!1;do{var h=u.lane&-536870913;if(h!==u.lane?(De&h)===h:(br&h)===h){var m=u.revertLane;if(m===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===Cl&&(d=!0);else if((br&m)===m){u=u.next,m===Cl&&(d=!0);continue}else h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=h,a=o):c=c.next=h,we.lanes|=m,po|=m;h=u.action,Yo&&n(o,h),o=u.hasEagerState?u.eagerState:n(o,h)}else m={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=m,a=o):c=c.next=m,we.lanes|=h,po|=h;u=u.next}while(u!==null&&u!==t);if(c===null?a=o:c.next=l,!qn(o,e.memoizedState)&&(Dt=!0,d&&(n=Sl,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=c,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Cx(e){var t=zt(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);qn(o,t.memoizedState)||(Dt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function RC(e,t,n){var r=we,i=zt(),o=Ue;if(o){if(n===void 0)throw Error(j(407));n=n()}else n=t();var a=!qn((Qe||i).memoizedState,n);if(a&&(i.memoizedState=n,Dt=!0),i=i.queue,gS(LC.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||Ct!==null&&Ct.memoizedState.tag&1){if(r.flags|=2048,Il(9,{destroy:void 0},BC.bind(null,r,i,n,t),null),it===null)throw Error(j(349));o||(br&127)!==0||MC(r,t,n)}return n}function MC(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=we.updateQueue,t===null?(t=xm(),we.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function BC(e,t,n,r){t.value=n,t.getSnapshot=r,PC(t)&&ZC(e)}function LC(e,t,n){return n(function(){PC(t)&&ZC(e)})}function PC(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qn(e,n)}catch{return!0}}function ZC(e){var t=Qo(e,2);t!==null&&Dn(t,e,2)}function v1(e){var t=bn();if(typeof e=="function"){var n=e;if(e=n(),Yo){Xr(!0);try{n()}finally{Xr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:e},t}function FC(e,t,n,r){return e.baseState=n,pS(e,Qe,typeof r=="function"?r:xr)}function SR(e,t,n,r,i){if(wm(e))throw Error(j(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};ge.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,VC(t,o)):(o.next=n.next,t.pending=n.next=o)}}function VC(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=ge.T,a={};ge.T=a;try{var l=n(i,r),c=ge.S;c!==null&&c(a,l),FT(e,t,l)}catch(u){b1(e,t,u)}finally{o!==null&&a.types!==null&&(o.types=a.types),ge.T=o}}else try{o=n(i,r),FT(e,t,o)}catch(u){b1(e,t,u)}}function FT(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){VT(e,t,r)},function(r){return b1(e,t,r)}):VT(e,t,n)}function VT(e,t,n){t.status="fulfilled",t.value=n,HC(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,VC(e,n)))}function b1(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,HC(t),t=t.next;while(t!==r)}e.action=null}function HC(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qC(e,t){return t}function HT(e,t){if(Ue){var n=it.formState;if(n!==null){e:{var r=we;if(Ue){if(mt){t:{for(var i=mt,o=ui;i.nodeType!==8;){if(!o){i=null;break t}if(i=fi(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){mt=fi(i.nextSibling),r=i.data==="F!";break e}}mo(r)}r=!1}r&&(t=n[0])}}return n=bn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qC,lastRenderedState:t},n.queue=r,n=s4.bind(null,we,r),r.dispatch=n,r=v1(!1),o=xS.bind(null,we,!1,r.queue),r=bn(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=SR.bind(null,we,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function qT(e){var t=zt();return GC(t,Qe,e)}function GC(e,t,n){if(t=pS(e,t,qC)[0],e=Ef(xr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Oc(t)}catch(a){throw a===Bl?bm:a}else r=t;t=zt();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(we.flags|=2048,Il(9,{destroy:void 0},kR.bind(null,i,n),null)),[r,o,e]}function kR(e,t){e.action=t}function GT(e){var t=zt(),n=Qe;if(n!==null)return GC(t,n,e);zt(),t=t.memoizedState,n=zt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Il(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=we.updateQueue,t===null&&(t=xm(),we.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function YC(){return zt().memoizedState}function If(e,t,n,r){var i=bn();we.flags|=e,i.memoizedState=Il(1|t,{destroy:void 0},n,r===void 0?null:r)}function km(e,t,n,r){var i=zt();r=r===void 0?null:r;var o=i.memoizedState.inst;Qe!==null&&r!==null&&cS(r,Qe.memoizedState.deps)?i.memoizedState=Il(t,o,n,r):(we.flags|=e,i.memoizedState=Il(1|t,o,n,r))}function YT(e,t){If(8390656,8,e,t)}function gS(e,t){km(2048,8,e,t)}function wR(e){we.flags|=4;var t=we.updateQueue;if(t===null)t=xm(),we.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function WC(e){var t=zt().memoizedState;return wR({ref:t,nextImpl:e}),function(){if((Le&2)!==0)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function JC(e,t){return km(4,2,e,t)}function XC(e,t){return km(4,4,e,t)}function KC(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function QC(e,t,n){n=n!=null?n.concat([e]):null,km(4,4,KC.bind(null,t,e),n)}function yS(){}function e4(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&cS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function t4(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&cS(t,r[1]))return r[0];if(r=e(),Yo){Xr(!0);try{e()}finally{Xr(!1)}}return n.memoizedState=[r,t],r}function vS(e,t,n){return n===void 0||(br&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=F4(),we.lanes|=e,po|=e,n)}function n4(e,t,n,r){return qn(n,t)?n:El.current!==null?(e=vS(e,n,r),qn(e,t)||(Dt=!0),e):(br&42)===0||(br&1073741824)!==0&&(De&261930)===0?(Dt=!0,e.memoizedState=n):(e=F4(),we.lanes|=e,po|=e,t)}function i4(e,t,n,r,i){var o=Pe.p;Pe.p=o!==0&&8>o?o:8;var a=ge.T,l={};ge.T=l,xS(e,!1,t,n);try{var c=i(),u=ge.S;if(u!==null&&u(l,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=vR(c,r);lc(e,t,d,Hn(e))}else lc(e,t,r,Hn(e))}catch(h){lc(e,t,{then:function(){},status:"rejected",reason:h},Hn())}finally{Pe.p=o,a!==null&&l.types!==null&&(a.types=l.types),ge.T=a}}function _R(){}function x1(e,t,n,r){if(e.tag!==5)throw Error(j(476));var i=r4(e).queue;i4(e,i,t,Lo,n===null?_R:function(){return o4(e),n(r)})}function r4(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Lo,baseState:Lo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:Lo},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xr,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function o4(e){var t=r4(e);t.next===null&&(t=e.alternate.memoizedState),lc(e,t.next.queue,{},Hn())}function bS(){return Kt(_c)}function a4(){return zt().memoizedState}function l4(){return zt().memoizedState}function $R(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Hn();e=ro(n);var r=oo(t,e,n);r!==null&&(Dn(r,t,n),rc(r,t,n)),t={cache:rS()},e.payload=t;return}t=t.return}}function zR(e,t,n){var r=Hn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},wm(e)?c4(t,n):(n=eS(e,t,n,r),n!==null&&(Dn(n,e,r),u4(n,t,r)))}function s4(e,t,n){var r=Hn();lc(e,t,n,r)}function lc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(wm(e))c4(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,qn(l,a))return vm(e,t,i,0),it===null&&ym(),!1}catch{}if(n=eS(e,t,i,r),n!==null)return Dn(n,e,r),u4(n,t,r),!0}return!1}function xS(e,t,n,r){if(r={lane:2,revertLane:ES(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},wm(e)){if(t)throw Error(j(479))}else t=eS(e,n,r,2),t!==null&&Dn(t,e,2)}function wm(e){var t=e.alternate;return e===we||t!==null&&t===we}function c4(e,t){wl=Jf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function u4(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,W2(e,n)}}var Sc={readContext:Kt,use:Sm,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useLayoutEffect:St,useInsertionEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useSyncExternalStore:St,useId:St,useHostTransitionStatus:St,useFormState:St,useActionState:St,useOptimistic:St,useMemoCache:St,useCacheRefresh:St};Sc.useEffectEvent=St;var d4={readContext:Kt,use:Sm,useCallback:function(e,t){return bn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:YT,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,If(4194308,4,KC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return If(4194308,4,e,t)},useInsertionEffect:function(e,t){If(4,2,e,t)},useMemo:function(e,t){var n=bn();t=t===void 0?null:t;var r=e();if(Yo){Xr(!0);try{e()}finally{Xr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bn();if(n!==void 0){var i=n(t);if(Yo){Xr(!0);try{n(t)}finally{Xr(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=zR.bind(null,we,e),[r.memoizedState,e]},useRef:function(e){var t=bn();return e={current:e},t.memoizedState=e},useState:function(e){e=v1(e);var t=e.queue,n=s4.bind(null,we,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yS,useDeferredValue:function(e,t){var n=bn();return vS(n,e,t)},useTransition:function(){var e=v1(!1);return e=i4.bind(null,we,e.queue,!0,!1),bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=we,i=bn();if(Ue){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),it===null)throw Error(j(349));(De&127)!==0||MC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,YT(LC.bind(null,r,o,e),[e]),r.flags|=2048,Il(9,{destroy:void 0},BC.bind(null,r,o,n,t),null),n},useId:function(){var e=bn(),t=it.identifierPrefix;if(Ue){var n=Pi,r=Li;n=(r&~(1<<32-Vn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Xf++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=bR++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:bS,useFormState:HT,useActionState:HT,useOptimistic:function(e){var t=bn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xS.bind(null,we,!0,n),n.dispatch=t,[e,t]},useMemoCache:hS,useCacheRefresh:function(){return bn().memoizedState=$R.bind(null,we)},useEffectEvent:function(e){var t=bn(),n={impl:e};return t.memoizedState=n,function(){if((Le&2)!==0)throw Error(j(440));return n.impl.apply(void 0,arguments)}}},SS={readContext:Kt,use:Sm,useCallback:e4,useContext:Kt,useEffect:gS,useImperativeHandle:QC,useInsertionEffect:JC,useLayoutEffect:XC,useMemo:t4,useReducer:Ef,useRef:YC,useState:function(){return Ef(xr)},useDebugValue:yS,useDeferredValue:function(e,t){var n=zt();return n4(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Ef(xr)[0],t=zt().memoizedState;return[typeof e=="boolean"?e:Oc(e),t]},useSyncExternalStore:RC,useId:a4,useHostTransitionStatus:bS,useFormState:qT,useActionState:qT,useOptimistic:function(e,t){var n=zt();return FC(n,Qe,e,t)},useMemoCache:hS,useCacheRefresh:l4};SS.useEffectEvent=WC;var f4={readContext:Kt,use:Sm,useCallback:e4,useContext:Kt,useEffect:gS,useImperativeHandle:QC,useInsertionEffect:JC,useLayoutEffect:XC,useMemo:t4,useReducer:Cx,useRef:YC,useState:function(){return Cx(xr)},useDebugValue:yS,useDeferredValue:function(e,t){var n=zt();return Qe===null?vS(n,e,t):n4(n,Qe.memoizedState,e,t)},useTransition:function(){var e=Cx(xr)[0],t=zt().memoizedState;return[typeof e=="boolean"?e:Oc(e),t]},useSyncExternalStore:RC,useId:a4,useHostTransitionStatus:bS,useFormState:GT,useActionState:GT,useOptimistic:function(e,t){var n=zt();return Qe!==null?FC(n,Qe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:hS,useCacheRefresh:l4};f4.useEffectEvent=WC;function Ex(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ht({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var S1={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Hn(),i=ro(r);i.payload=t,n!=null&&(i.callback=n),t=oo(e,i,r),t!==null&&(Dn(t,e,r),rc(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Hn(),i=ro(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=oo(e,i,r),t!==null&&(Dn(t,e,r),rc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Hn(),r=ro(n);r.tag=2,t!=null&&(r.callback=t),t=oo(e,r,n),t!==null&&(Dn(t,e,n),rc(t,e,n))}};function WT(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!gc(n,r)||!gc(i,o):!0}function JT(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&S1.enqueueReplaceState(t,t.state,null)}function Wo(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=ht({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function m4(e){Ff(e)}function h4(e){console.error(e)}function p4(e){Ff(e)}function Kf(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function XT(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function k1(e,t,n){return n=ro(n),n.tag=3,n.payload={element:null},n.callback=function(){Kf(e,t)},n}function g4(e){return e=ro(e),e.tag=3,e}function y4(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){XT(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){XT(t,n,r),typeof i!="function"&&(ao===null?ao=new Set([this]):ao.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function TR(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Ml(t,n,i,!0),n=Gn.current,n!==null){switch(n.tag){case 31:case 13:return di===null?im():n.alternate===null&&kt===0&&(kt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Gf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Lx(e,r,i)),!1;case 22:return n.flags|=65536,r===Gf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Lx(e,r,i)),!1}throw Error(j(435,n.tag))}return Lx(e,r,i),im(),!1}if(Ue)return t=Gn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==c1&&(e=Error(j(422),{cause:r}),vc(ci(e,n)))):(r!==c1&&(t=Error(j(423),{cause:r}),vc(ci(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=ci(r,n),i=k1(e.stateNode,r,i),Tx(e,i),kt!==4&&(kt=2)),!1;var o=Error(j(520),{cause:r});if(o=ci(o,n),uc===null?uc=[o]:uc.push(o),kt!==4&&(kt=2),t===null)return!0;r=ci(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=k1(n.stateNode,r,e),Tx(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(ao===null||!ao.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=g4(i),y4(i,e,n,r),Tx(n,i),!1}n=n.return}while(n!==null);return!1}var kS=Error(j(461)),Dt=!1;function Wt(e,t,n,r){t.child=e===null?DC(t,null,n,r):Go(t,e.child,n,r)}function KT(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}else a=r;return qo(t),r=uS(e,t,n,a,o,i),l=dS(),e!==null&&!Dt?(fS(e,t,i),Sr(e,t,i)):(Ue&&l&&nS(t),t.flags|=1,Wt(e,t,r,i),t.child)}function QT(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!tS(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,v4(e,t,o,r,i)):(e=Tf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!wS(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:gc,n(a,r)&&e.ref===t.ref)return Sr(e,t,i)}return t.flags|=1,e=pr(o,r),e.ref=t.ref,e.return=t,t.child=e}function v4(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(gc(o,r)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=r=o,wS(e,i))(e.flags&131072)!==0&&(Dt=!0);else return t.lanes=e.lanes,Sr(e,t,i)}return w1(e,t,n,r,i)}function b4(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return e2(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cf(t,o!==null?o.cachePool:null),o!==null?ZT(t,o):g1(),OC(t);else return r=t.lanes=536870912,e2(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(Cf(t,o.cachePool),ZT(t,o),Wr(t),t.memoizedState=null):(e!==null&&Cf(t,null),g1(),Wr(t));return Wt(e,t,i,n),t.child}function Ks(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function e2(e,t,n,r,i){var o=oS();return o=o===null?null:{parent:It._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Cf(t,null),g1(),OC(t),e!==null&&Ml(e,t,r,!0),t.childLanes=i,null}function Df(e,t){return t=Qf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function t2(e,t,n){return Go(t,e.child,null,n),e=Df(t,t.pendingProps),e.flags|=2,Bn(t),t.memoizedState=null,e}function CR(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(r.mode==="hidden")return e=Df(t,r),t.lanes=536870912,Ks(null,e);if(y1(t),(e=mt)?(e=d6(e,ui),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fo!==null?{id:Li,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},n=_C(e),n.return=t,t.child=n,Xt=t,mt=null)):e=null,e===null)throw mo(t);return t.lanes=536870912,null}return Df(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(y1(t),i)if(t.flags&256)t.flags&=-257,t=t2(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if(Dt||Ml(e,t,n,!1),i=(n&e.childLanes)!==0,Dt||i){if(r=it,r!==null&&(a=J2(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,Qo(e,a),Dn(r,e,a),kS;im(),t=t2(e,t,n)}else e=o.treeContext,mt=fi(a.nextSibling),Xt=t,Ue=!0,io=null,ui=!1,e!==null&&zC(t,e),t=Df(t,r),t.flags|=4096;return t}return e=pr(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Af(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(j(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function w1(e,t,n,r,i){return qo(t),n=uS(e,t,n,r,void 0,i),r=dS(),e!==null&&!Dt?(fS(e,t,i),Sr(e,t,i)):(Ue&&r&&nS(t),t.flags|=1,Wt(e,t,n,i),t.child)}function n2(e,t,n,r,i,o){return qo(t),t.updateQueue=null,n=NC(t,r,n,i),UC(e),r=dS(),e!==null&&!Dt?(fS(e,t,o),Sr(e,t,o)):(Ue&&r&&nS(t),t.flags|=1,Wt(e,t,n,o),t.child)}function i2(e,t,n,r,i){if(qo(t),t.stateNode===null){var o=hl,a=n.contextType;typeof a=="object"&&a!==null&&(o=Kt(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=S1,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},lS(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?Kt(a):hl,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(Ex(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&S1.enqueueReplaceState(o,o.state,null),ac(t,r,o,i),oc(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,c=Wo(n,l);o.props=c;var u=o.context,d=n.contextType;a=hl,typeof d=="object"&&d!==null&&(a=Kt(d));var h=n.getDerivedStateFromProps;d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==a)&&JT(t,o,r,a),qr=!1;var m=t.memoizedState;o.state=m,ac(t,r,o,i),oc(),u=t.memoizedState,l||m!==u||qr?(typeof h=="function"&&(Ex(t,n,h,r),u=t.memoizedState),(c=qr||WT(t,n,c,r,m,u,a))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,h1(e,t),a=t.memoizedProps,d=Wo(n,a),o.props=d,h=t.pendingProps,m=o.context,u=n.contextType,c=hl,typeof u=="object"&&u!==null&&(c=Kt(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==h||m!==c)&&JT(t,o,r,c),qr=!1,m=t.memoizedState,o.state=m,ac(t,r,o,i),oc();var f=t.memoizedState;a!==h||m!==f||qr||e!==null&&e.dependencies!==null&&qf(e.dependencies)?(typeof l=="function"&&(Ex(t,n,l,r),f=t.memoizedState),(d=qr||WT(t,n,d,r,m,f,c)||e!==null&&e.dependencies!==null&&qf(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Af(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=Go(t,e.child,null,i),t.child=Go(t,null,n,i)):Wt(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Sr(e,t,i),e}function r2(e,t,n,r){return Ho(),t.flags|=256,Wt(e,t,n,r),t.child}var Ix={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dx(e){return{baseLanes:e,cachePool:CC()}}function Ax(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Pn),e}function x4(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:($t.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(i?Yr(t):Wr(t),(e=mt)?(e=d6(e,ui),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:fo!==null?{id:Li,overflow:Pi}:null,retryLane:536870912,hydrationErrors:null},n=_C(e),n.return=t,t.child=n,Xt=t,mt=null)):e=null,e===null)throw mo(t);return R1(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,i?(Wr(t),i=t.mode,l=Qf({mode:"hidden",children:l},i),r=Po(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Dx(n),r.childLanes=Ax(e,a,n),t.memoizedState=Ix,Ks(null,r)):(Yr(t),_1(t,l))}var c=e.memoizedState;if(c!==null&&(l=c.dehydrated,l!==null)){if(o)t.flags&256?(Yr(t),t.flags&=-257,t=jx(e,t,n)):t.memoizedState!==null?(Wr(t),t.child=e.child,t.flags|=128,t=null):(Wr(t),l=r.fallback,i=t.mode,r=Qf({mode:"visible",children:r.children},i),l=Po(l,i,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,Go(t,e.child,null,n),r=t.child,r.memoizedState=Dx(n),r.childLanes=Ax(e,a,n),t.memoizedState=Ix,t=Ks(null,r));else if(Yr(t),R1(l)){if(a=l.nextSibling&&l.nextSibling.dataset,a)var u=a.dgst;a=u,r=Error(j(419)),r.stack="",r.digest=a,vc({value:r,source:null,stack:null}),t=jx(e,t,n)}else if(Dt||Ml(e,t,n,!1),a=(n&e.childLanes)!==0,Dt||a){if(a=it,a!==null&&(r=J2(a,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,Qo(e,r),Dn(a,e,r),kS;N1(l)||im(),t=jx(e,t,n)}else N1(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,mt=fi(l.nextSibling),Xt=t,Ue=!0,io=null,ui=!1,e!==null&&zC(t,e),t=_1(t,r.children),t.flags|=4096);return t}return i?(Wr(t),l=r.fallback,i=t.mode,c=e.child,u=c.sibling,r=pr(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,u!==null?l=pr(u,l):(l=Po(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Ks(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Dx(n):(i=l.cachePool,i!==null?(c=It._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=CC(),l={baseLanes:l.baseLanes|n,cachePool:i}),r.memoizedState=l,r.childLanes=Ax(e,a,n),t.memoizedState=Ix,Ks(e.child,r)):(Yr(t),n=e.child,e=n.sibling,n=pr(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function _1(e,t){return t=Qf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Qf(e,t){return e=Ln(22,e,null,t),e.lanes=0,e}function jx(e,t,n){return Go(t,e.child,null,n),e=_1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function o2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),d1(e.return,t,n)}function Ox(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function S4(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=$t.current,l=(a&2)!==0;if(l?(a=a&1|2,t.flags|=128):a&=1,st($t,a),Wt(e,t,r,n),r=Ue?yc:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&o2(e,n,t);else if(e.tag===19)o2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Wf(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ox(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Wf(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ox(t,!0,n,null,o,r);break;case"together":Ox(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Sr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),po|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ml(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=pr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=pr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wS(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&qf(e)))}function ER(e,t,n){switch(t.tag){case 3:Bf(t,t.stateNode.containerInfo),Gr(t,It,e.memoizedState.cache),Ho();break;case 27:case 5:Kx(t);break;case 4:Bf(t,t.stateNode.containerInfo);break;case 10:Gr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,y1(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Yr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?x4(e,t,n):(Yr(t),e=Sr(e,t,n),e!==null?e.sibling:null);Yr(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Ml(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return S4(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),st($t,$t.current),r)break;return null;case 22:return t.lanes=0,b4(e,t,n,t.pendingProps);case 24:Gr(t,It,e.memoizedState.cache)}return Sr(e,t,n)}function k4(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Dt=!0;else{if(!wS(e,n)&&(t.flags&128)===0)return Dt=!1,ER(e,t,n);Dt=(e.flags&131072)!==0}else Dt=!1,Ue&&(t.flags&1048576)!==0&&$C(t,yc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Mo(t.elementType),t.type=e,typeof e=="function")tS(e)?(r=Wo(e,r),t.tag=1,t=i2(null,t,e,r,n)):(t.tag=0,t=w1(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===P1){t.tag=11,t=KT(null,t,e,r,n);break e}else if(i===Z1){t.tag=14,t=QT(null,t,e,r,n);break e}}throw t=Jx(e)||e,Error(j(306,t,""))}}return t;case 0:return w1(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Wo(r,t.pendingProps),i2(e,t,r,i,n);case 3:e:{if(Bf(t,t.stateNode.containerInfo),e===null)throw Error(j(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,h1(e,t),ac(t,r,null,n);var a=t.memoizedState;if(r=a.cache,Gr(t,It,r),r!==o.cache&&f1(t,[It],n,!0),oc(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=r2(e,t,r,n);break e}else if(r!==i){i=ci(Error(j(424)),t),vc(i),t=r2(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,mt=fi(e.firstChild),Xt=t,Ue=!0,io=null,ui=!0,n=DC(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ho(),r===i){t=Sr(e,t,n);break e}Wt(e,t,r,n)}t=t.child}return t;case 26:return Af(e,t),e===null?(n=T2(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ue||(n=t.type,e=t.pendingProps,r=lm(no.current).createElement(n),r[Jt]=t,r[An]=e,Qt(r,n,e),Pt(r),t.stateNode=r):t.memoizedState=T2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kx(t),e===null&&Ue&&(r=t.stateNode=f6(t.type,t.pendingProps,no.current),Xt=t,ui=!0,i=mt,yo(t.type)?(M1=i,mt=fi(r.firstChild)):mt=i),Wt(e,t,t.pendingProps.children,n),Af(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((i=r=mt)&&(r=iM(r,t.type,t.pendingProps,ui),r!==null?(t.stateNode=r,Xt=t,mt=fi(r.firstChild),ui=!1,i=!0):i=!1),i||mo(t)),Kx(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,O1(i,o)?r=null:a!==null&&O1(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=uS(e,t,xR,null,null,n),_c._currentValue=i),Af(e,t),Wt(e,t,r,n),t.child;case 6:return e===null&&Ue&&((e=n=mt)&&(n=rM(n,t.pendingProps,ui),n!==null?(t.stateNode=n,Xt=t,mt=null,e=!0):e=!1),e||mo(t)),null;case 13:return x4(e,t,n);case 4:return Bf(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Go(t,null,r,n):Wt(e,t,r,n),t.child;case 11:return KT(e,t,t.type,t.pendingProps,n);case 7:return Wt(e,t,t.pendingProps,n),t.child;case 8:return Wt(e,t,t.pendingProps.children,n),t.child;case 12:return Wt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Gr(t,t.type,r.value),Wt(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,qo(t),i=Kt(i),r=r(i),t.flags|=1,Wt(e,t,r,n),t.child;case 14:return QT(e,t,t.type,t.pendingProps,n);case 15:return v4(e,t,t.type,t.pendingProps,n);case 19:return S4(e,t,n);case 31:return CR(e,t,n);case 22:return b4(e,t,n,t.pendingProps);case 24:return qo(t),r=Kt(It),e===null?(i=oS(),i===null&&(i=it,o=rS(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},lS(t),Gr(t,It,i)):((e.lanes&n)!==0&&(h1(e,t),ac(t,null,null,n),oc()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Gr(t,It,r)):(r=o.cache,Gr(t,It,r),r!==i.cache&&f1(t,[It],n,!0))),Wt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function ar(e){e.flags|=4}function Ux(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(q4())e.flags|=8192;else throw Fo=Gf,aS}else e.flags&=-16777217}function a2(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!p6(t))if(q4())e.flags|=8192;else throw Fo=Gf,aS}function gf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?G2():536870912,e.lanes|=t,Dl|=t)}function Hs(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function IR(e,t,n){var r=t.pendingProps;switch(iS(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),gr(It),$l(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(nl(t)?ar(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,zx())),ft(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(ar(t),o!==null?(ft(t),a2(t,o)):(ft(t),Ux(t,i,null,r,n))):o?o!==e.memoizedState?(ar(t),ft(t),a2(t,o)):(ft(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ar(t),ft(t),Ux(t,i,e,r,n)),null;case 27:if(Lf(t),n=no.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ar(t);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ft(t),null}e=Fi.current,nl(t)?UT(t,e):(e=f6(i,r,n),t.stateNode=e,ar(t))}return ft(t),null;case 5:if(Lf(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ar(t);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ft(t),null}if(o=Fi.current,nl(t))UT(t,o);else{var a=lm(no.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[Jt]=t,o[An]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(Qt(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ar(t)}}return ft(t),Ux(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ar(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(e=no.current,nl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Xt,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Jt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||s6(e.nodeValue,n)),e||mo(t,!0)}else e=lm(e).createTextNode(r),e[Jt]=t,t.stateNode=e}return ft(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=nl(t),n!==null){if(e===null){if(!r)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[Jt]=t}else Ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),e=!1}else n=zx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bn(t),t):(Bn(t),null);if((t.flags&128)!==0)throw Error(j(558))}return ft(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=nl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(j(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(j(317));i[Jt]=t}else Ho(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),i=!1}else i=zx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Bn(t),t):(Bn(t),null)}return Bn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),gf(t,t.updateQueue),ft(t),null);case 4:return $l(),e===null&&IS(t.stateNode.containerInfo),ft(t),null;case 10:return gr(t.type),ft(t),null;case 19:if(Zt($t),r=t.memoizedState,r===null)return ft(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Hs(r,!1);else{if(kt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Wf(e),o!==null){for(t.flags|=128,Hs(r,!1),e=o.updateQueue,t.updateQueue=e,gf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)wC(n,e),n=n.sibling;return st($t,$t.current&1|2),Ue&&ur(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Zn()>tm&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304)}else{if(!i)if(e=Wf(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,gf(t,e),Hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!Ue)return ft(t),null}else 2*Zn()-r.renderingStartTime>tm&&n!==536870912&&(t.flags|=128,i=!0,Hs(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Zn(),e.sibling=null,n=$t.current,st($t,i?n&1|2:n&1),Ue&&ur(t,r.treeForkCount),e):(ft(t),null);case 22:case 23:return Bn(t),sS(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),n=t.updateQueue,n!==null&&gf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Zt(Zo),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),gr(It),ft(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function DR(e,t){switch(iS(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return gr(It),$l(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Lf(t),null;case 31:if(t.memoizedState!==null){if(Bn(t),t.alternate===null)throw Error(j(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Ho()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Zt($t),null;case 4:return $l(),null;case 10:return gr(t.type),null;case 22:case 23:return Bn(t),sS(),e!==null&&Zt(Zo),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return gr(It),null;case 25:return null;default:return null}}function w4(e,t){switch(iS(t),t.tag){case 3:gr(It),$l();break;case 26:case 27:case 5:Lf(t);break;case 4:$l();break;case 31:t.memoizedState!==null&&Bn(t);break;case 13:Bn(t);break;case 19:Zt($t);break;case 10:gr(t.type);break;case 22:case 23:Bn(t),sS(),e!==null&&Zt(Zo);break;case 24:gr(It)}}function Uc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(l){We(t,t.return,l)}}function ho(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,i=t;var c=n,u=l;try{u()}catch(d){We(i,c,d)}}}r=r.next}while(r!==o)}}catch(d){We(t,t.return,d)}}function _4(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{jC(t,n)}catch(r){We(e,e.return,r)}}}function $4(e,t,n){n.props=Wo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){We(e,t,r)}}function sc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){We(e,t,i)}}function Zi(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){We(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){We(e,t,i)}else n.current=null}function z4(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){We(e,e.return,i)}}function Nx(e,t,n){try{var r=e.stateNode;XR(r,e.type,n,t),r[An]=t}catch(i){We(e,e.return,i)}}function T4(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&yo(e.type)||e.tag===4}function Rx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||T4(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&&yo(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 $1(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=mr));else if(r!==4&&(r===27&&yo(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($1(e,t,n),e=e.sibling;e!==null;)$1(e,t,n),e=e.sibling}function em(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&yo(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(em(e,t,n),e=e.sibling;e!==null;)em(e,t,n),e=e.sibling}function C4(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Qt(t,r,n),t[Jt]=e,t[An]=n}catch(o){We(e,e.return,o)}}var dr=!1,Et=!1,Mx=!1,l2=typeof WeakSet=="function"?WeakSet:Set,Lt=null;function AR(e,t){if(e=e.containerInfo,A1=dm,e=pC(e),K1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,h=e,m=null;t:for(;;){for(var f;h!==n||i!==0&&h.nodeType!==3||(l=a+i),h!==o||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)m=h,h=f;for(;;){if(h===e)break t;if(m===n&&++u===i&&(l=a),m===o&&++d===r&&(c=a),(f=h.nextSibling)!==null)break;h=m,m=h.parentNode}h=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(j1={focusedElem:e,selectionRange:n},dm=!1,Lt=t;Lt!==null;)if(t=Lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Lt=e;else for(;Lt!==null;){switch(t=Lt,o=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(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var y=Wo(n.type,i);e=r.getSnapshotBeforeUpdate(y,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(k){We(n,n.return,k)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)U1(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":U1(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(j(163))}if(e=t.sibling,e!==null){e.return=t.return,Lt=e;break}Lt=t.return}}function E4(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sr(e,n),r&4&&Uc(5,n);break;case 1:if(sr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){We(n,n.return,a)}else{var i=Wo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){We(n,n.return,a)}}r&64&&_4(n),r&512&&sc(n,n.return);break;case 3:if(sr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{jC(e,t)}catch(a){We(n,n.return,a)}}break;case 27:t===null&&r&4&&C4(n);case 26:case 5:sr(e,n),t===null&&r&4&&z4(n),r&512&&sc(n,n.return);break;case 12:sr(e,n);break;case 31:sr(e,n),r&4&&A4(e,n);break;case 13:sr(e,n),r&4&&j4(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=PR.bind(null,n),oM(e,n))));break;case 22:if(r=n.memoizedState!==null||dr,!r){t=t!==null&&t.memoizedState!==null||Et,i=dr;var o=Et;dr=r,(Et=t)&&!o?cr(e,n,(n.subtreeFlags&8772)!==0):sr(e,n),dr=i,Et=o}break;case 30:break;default:sr(e,n)}}function I4(e){var t=e.alternate;t!==null&&(e.alternate=null,I4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&q1(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 gt=null,En=!1;function lr(e,t,n){for(n=n.child;n!==null;)D4(e,t,n),n=n.sibling}function D4(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Cc,n)}catch{}switch(n.tag){case 26:Et||Zi(n,t),lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Et||Zi(n,t);var r=gt,i=En;yo(n.type)&&(gt=n.stateNode,En=!1),lr(e,t,n),fc(n.stateNode),gt=r,En=i;break;case 5:Et||Zi(n,t);case 6:if(r=gt,i=En,gt=null,lr(e,t,n),gt=r,En=i,gt!==null)if(En)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(n.stateNode)}catch(o){We(n,t,o)}else try{gt.removeChild(n.stateNode)}catch(o){We(n,t,o)}break;case 18:gt!==null&&(En?(e=gt,k2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ul(e)):k2(gt,n.stateNode));break;case 4:r=gt,i=En,gt=n.stateNode.containerInfo,En=!0,lr(e,t,n),gt=r,En=i;break;case 0:case 11:case 14:case 15:ho(2,n,t),Et||ho(4,n,t),lr(e,t,n);break;case 1:Et||(Zi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&$4(n,t,r)),lr(e,t,n);break;case 21:lr(e,t,n);break;case 22:Et=(r=Et)||n.memoizedState!==null,lr(e,t,n),Et=r;break;default:lr(e,t,n)}}function A4(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ul(e)}catch(n){We(t,t.return,n)}}}function j4(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ul(e)}catch(n){We(t,t.return,n)}}function jR(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new l2),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new l2),t;default:throw Error(j(435,e.tag))}}function yf(e,t){var n=jR(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=ZR.bind(null,e,r);r.then(i,i)}})}function Tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:if(yo(l.type)){gt=l.stateNode,En=!1;break e}break;case 5:gt=l.stateNode,En=!1;break e;case 3:case 4:gt=l.stateNode.containerInfo,En=!0;break e}l=l.return}if(gt===null)throw Error(j(160));D4(o,a,i),gt=null,En=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)O4(t,e),t=t.sibling}var ki=null;function O4(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Tn(t,e),Cn(e),r&4&&(ho(3,e,e.return),Uc(3,e),ho(5,e,e.return));break;case 1:Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),r&64&&dr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=ki;if(Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Dc]||o[Jt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),Qt(o,r,n),o[Jt]=e,Pt(o),r=o;break e;case"link":var a=E2("link","href",i).get(r+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=i.createElement(r),Qt(o,r,n),i.head.appendChild(o);break;case"meta":if(a=E2("meta","content",i).get(r+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=i.createElement(r),Qt(o,r,n),i.head.appendChild(o);break;default:throw Error(j(468,r))}o[Jt]=e,Pt(o),r=o}e.stateNode=r}else I2(i,e.type,e.stateNode);else e.stateNode=C2(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?I2(i,e.type,e.stateNode):C2(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Nx(e,e.memoizedProps,n.memoizedProps)}break;case 27:Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),n!==null&&r&4&&Nx(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Tn(t,e),Cn(e),r&512&&(Et||n===null||Zi(n,n.return)),e.flags&32){i=e.stateNode;try{Tl(i,"")}catch(y){We(e,e.return,y)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,Nx(e,i,n!==null?n.memoizedProps:i)),r&1024&&(Mx=!0);break;case 6:if(Tn(t,e),Cn(e),r&4){if(e.stateNode===null)throw Error(j(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(y){We(e,e.return,y)}}break;case 3:if(Uf=null,i=ki,ki=sm(t.containerInfo),Tn(t,e),ki=i,Cn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(y){We(e,e.return,y)}Mx&&(Mx=!1,U4(e));break;case 4:r=ki,ki=sm(e.stateNode.containerInfo),Tn(t,e),Cn(e),ki=r;break;case 12:Tn(t,e),Cn(e);break;case 31:Tn(t,e),Cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yf(e,r)));break;case 13:Tn(t,e),Cn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_m=Zn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yf(e,r)));break;case 22:i=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=dr,d=Et;if(dr=u||i,Et=d||c,Tn(t,e),Et=d,dr=u,Cn(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||c||dr||Et||Bo(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(o=c.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{l=c.stateNode;var h=c.memoizedProps.style,m=h!=null&&h.hasOwnProperty("display")?h.display:null;l.style.display=m==null||typeof m=="boolean"?"":(""+m).trim()}}catch(y){We(c,c.return,y)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(y){We(c,c.return,y)}}}else if(t.tag===18){if(n===null){c=t;try{var f=c.stateNode;i?w2(f,!0):w2(c.stateNode,!1)}catch(y){We(c,c.return,y)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,yf(e,n))));break;case 19:Tn(t,e),Cn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,yf(e,r)));break;case 30:break;case 21:break;default:Tn(t,e),Cn(e)}}function Cn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(T4(r)){n=r;break}r=r.return}if(n==null)throw Error(j(160));switch(n.tag){case 27:var i=n.stateNode,o=Rx(e);em(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(Tl(a,""),n.flags&=-33);var l=Rx(e);em(e,l,a);break;case 3:case 4:var c=n.stateNode.containerInfo,u=Rx(e);$1(e,u,c);break;default:throw Error(j(161))}}catch(d){We(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function U4(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;U4(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)E4(e,t.alternate,t),t=t.sibling}function Bo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ho(4,t,t.return),Bo(t);break;case 1:Zi(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&$4(t,t.return,n),Bo(t);break;case 27:fc(t.stateNode);case 26:case 5:Zi(t,t.return),Bo(t);break;case 22:t.memoizedState===null&&Bo(t);break;case 30:Bo(t);break;default:Bo(t)}e=e.sibling}}function cr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:cr(i,o,n),Uc(4,o);break;case 1:if(cr(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){We(r,r.return,u)}if(r=o,i=r.updateQueue,i!==null){var l=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)AC(c[i],l)}catch(u){We(r,r.return,u)}}n&&a&64&&_4(o),sc(o,o.return);break;case 27:C4(o);case 26:case 5:cr(i,o,n),n&&r===null&&a&4&&z4(o),sc(o,o.return);break;case 12:cr(i,o,n);break;case 31:cr(i,o,n),n&&a&4&&A4(i,o);break;case 13:cr(i,o,n),n&&a&4&&j4(i,o);break;case 22:o.memoizedState===null&&cr(i,o,n),sc(o,o.return);break;case 30:break;default:cr(i,o,n)}t=t.sibling}}function _S(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&jc(n))}function $S(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jc(e))}function Si(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)N4(e,t,n,r),t=t.sibling}function N4(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Si(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Si(e,t,n,r);break;case 3:Si(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&jc(e)));break;case 12:if(i&2048){Si(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){We(t,t.return,c)}}else Si(e,t,n,r);break;case 31:Si(e,t,n,r);break;case 13:Si(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?Si(e,t,n,r):cc(e,t):o._visibility&2?Si(e,t,n,r):(o._visibility|=2,rl(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&_S(a,t);break;case 24:Si(e,t,n,r),i&2048&&$S(t.alternate,t);break;default:Si(e,t,n,r)}}function rl(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,l=n,c=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:rl(o,a,l,c,i),Uc(8,a);break;case 23:break;case 22:var d=a.stateNode;a.memoizedState!==null?d._visibility&2?rl(o,a,l,c,i):cc(o,a):(d._visibility|=2,rl(o,a,l,c,i)),i&&u&2048&&_S(a.alternate,a);break;case 24:rl(o,a,l,c,i),i&&u&2048&&$S(a.alternate,a);break;default:rl(o,a,l,c,i)}t=t.sibling}}function cc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:cc(n,r),i&2048&&_S(r.alternate,r);break;case 24:cc(n,r),i&2048&&$S(r.alternate,r);break;default:cc(n,r)}t=t.sibling}}var Qs=8192;function il(e,t,n){if(e.subtreeFlags&Qs)for(e=e.child;e!==null;)R4(e,t,n),e=e.sibling}function R4(e,t,n){switch(e.tag){case 26:il(e,t,n),e.flags&Qs&&e.memoizedState!==null&&yM(n,ki,e.memoizedState,e.memoizedProps);break;case 5:il(e,t,n);break;case 3:case 4:var r=ki;ki=sm(e.stateNode.containerInfo),il(e,t,n),ki=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Qs,Qs=16777216,il(e,t,n),Qs=r):il(e,t,n));break;default:il(e,t,n)}}function M4(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 qs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Lt=r,L4(r,e)}M4(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)B4(e),e=e.sibling}function B4(e){switch(e.tag){case 0:case 11:case 15:qs(e),e.flags&2048&&ho(9,e,e.return);break;case 3:qs(e);break;case 12:qs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jf(e)):qs(e);break;default:qs(e)}}function jf(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Lt=r,L4(r,e)}M4(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ho(8,t,t.return),jf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,jf(t));break;default:jf(t)}e=e.sibling}}function L4(e,t){for(;Lt!==null;){var n=Lt;switch(n.tag){case 0:case 11:case 15:ho(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:jc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Lt=r;else e:for(n=e;Lt!==null;){r=Lt;var i=r.sibling,o=r.return;if(I4(r),r===n){Lt=null;break e}if(i!==null){i.return=o,Lt=i;break e}Lt=o}}}var OR={getCacheForType:function(e){var t=Kt(It),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Kt(It).controller.signal}},UR=typeof WeakMap=="function"?WeakMap:Map,Le=0,it=null,Ie=null,De=0,Ye=0,Mn=null,Qr=!1,Ll=!1,zS=!1,kr=0,kt=0,po=0,Vo=0,TS=0,Pn=0,Dl=0,uc=null,In=null,z1=!1,_m=0,P4=0,tm=1/0,nm=null,ao=null,Nt=0,lo=null,Al=null,yr=0,T1=0,C1=null,Z4=null,dc=0,E1=null;function Hn(){return(Le&2)!==0&&De!==0?De&-De:ge.T!==null?ES():X2()}function F4(){if(Pn===0)if((De&536870912)===0||Ue){var e=lf;lf<<=1,(lf&3932160)===0&&(lf=262144),Pn=e}else Pn=536870912;return e=Gn.current,e!==null&&(e.flags|=32),Pn}function Dn(e,t,n){(e===it&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(jl(e,0),eo(e,De,Pn,!1)),Ic(e,n),((Le&2)===0||e!==it)&&(e===it&&((Le&2)===0&&(Vo|=n),kt===4&&eo(e,De,Pn,!1)),Hi(e))}function V4(e,t,n){if((Le&6)!==0)throw Error(j(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ec(e,t),i=r?MR(e,t):Bx(e,t,!0),o=r;do{if(i===0){Ll&&!r&&eo(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!NR(n)){i=Bx(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;i=uc;var c=l.current.memoizedState.isDehydrated;if(c&&(jl(l,a).flags|=256),a=Bx(l,a,!1),a!==2){if(zS&&!c){l.errorRecoveryDisabledLanes|=o,Vo|=o,i=4;break e}o=In,In=i,o!==null&&(In===null?In=o:In.push.apply(In,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){jl(e,0),eo(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(j(345));case 4:if((t&4194048)!==t)break;case 6:eo(r,t,Pn,!Qr);break e;case 2:In=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(i=_m+300-Zn(),10<i)){if(eo(r,t,Pn,!Qr),mm(r,0,!0)!==0)break e;yr=t,r.timeoutHandle=u6(s2.bind(null,r,n,In,nm,z1,t,Pn,Vo,Dl,Qr,o,"Throttled",-0,0),i);break e}s2(r,n,In,nm,z1,t,Pn,Vo,Dl,Qr,o,null,-0,0)}}break}while(!0);Hi(e)}function s2(e,t,n,r,i,o,a,l,c,u,d,h,m,f){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:mr},R4(t,o,h);var y=(o&62914560)===o?_m-Zn():(o&4194048)===o?P4-Zn():0;if(y=vM(h,y),y!==null){yr=o,e.cancelPendingCommit=y(u2.bind(null,e,t,o,n,r,i,a,l,c,d,h,null,m,f)),eo(e,o,a,!u);return}}u2(e,t,o,n,r,i,a,l,c)}function NR(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!qn(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function eo(e,t,n,r){t&=~TS,t&=~Vo,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-Vn(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&Y2(e,n,t)}function $m(){return(Le&6)===0?(Nc(0,!1),!1):!0}function CS(){if(Ie!==null){if(Ye===0)var e=Ie.return;else e=Ie,hr=ea=null,mS(e),kl=null,bc=0,e=Ie;for(;e!==null;)w4(e.alternate,e),e=e.return;Ie=null}}function jl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,eM(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),yr=0,CS(),it=e,Ie=n=pr(e.current,null),De=t,Ye=0,Mn=null,Qr=!1,Ll=Ec(e,t),zS=!1,Dl=Pn=TS=Vo=po=kt=0,In=uc=null,z1=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Vn(r),o=1<<i;t|=e[i],r&=~o}return kr=t,ym(),n}function H4(e,t){we=null,ge.H=Sc,t===Bl||t===bm?(t=LT(),Ye=3):t===aS?(t=LT(),Ye=4):Ye=t===kS?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mn=t,Ie===null&&(kt=1,Kf(e,ci(t,e.current)))}function q4(){var e=Gn.current;return e===null?!0:(De&4194048)===De?di===null:(De&62914560)===De||(De&536870912)!==0?e===di:!1}function G4(){var e=ge.H;return ge.H=Sc,e===null?Sc:e}function Y4(){var e=ge.A;return ge.A=OR,e}function im(){kt=4,Qr||(De&4194048)!==De&&Gn.current!==null||(Ll=!0),(po&134217727)===0&&(Vo&134217727)===0||it===null||eo(it,De,Pn,!1)}function Bx(e,t,n){var r=Le;Le|=2;var i=G4(),o=Y4();(it!==e||De!==t)&&(nm=null,jl(e,t)),t=!1;var a=kt;e:do try{if(Ye!==0&&Ie!==null){var l=Ie,c=Mn;switch(Ye){case 8:CS(),a=6;break e;case 3:case 2:case 9:case 6:Gn.current===null&&(t=!0);var u=Ye;if(Ye=0,Mn=null,yl(e,l,c,u),n&&Ll){a=0;break e}break;default:u=Ye,Ye=0,Mn=null,yl(e,l,c,u)}}RR(),a=kt;break}catch(d){H4(e,d)}while(!0);return t&&e.shellSuspendCounter++,hr=ea=null,Le=r,ge.H=i,ge.A=o,Ie===null&&(it=null,De=0,ym()),a}function RR(){for(;Ie!==null;)W4(Ie)}function MR(e,t){var n=Le;Le|=2;var r=G4(),i=Y4();it!==e||De!==t?(nm=null,tm=Zn()+500,jl(e,t)):Ll=Ec(e,t);e:do try{if(Ye!==0&&Ie!==null){t=Ie;var o=Mn;t:switch(Ye){case 1:Ye=0,Mn=null,yl(e,t,o,1);break;case 2:case 9:if(BT(o)){Ye=0,Mn=null,c2(t);break}t=function(){Ye!==2&&Ye!==9||it!==e||(Ye=7),Hi(e)},o.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:BT(o)?(Ye=0,Mn=null,c2(t)):(Ye=0,Mn=null,yl(e,t,o,7));break;case 5:var a=null;switch(Ie.tag){case 26:a=Ie.memoizedState;case 5:case 27:var l=Ie;if(a?p6(a):l.stateNode.complete){Ye=0,Mn=null;var c=l.sibling;if(c!==null)Ie=c;else{var u=l.return;u!==null?(Ie=u,zm(u)):Ie=null}break t}}Ye=0,Mn=null,yl(e,t,o,5);break;case 6:Ye=0,Mn=null,yl(e,t,o,6);break;case 8:CS(),kt=6;break e;default:throw Error(j(462))}}BR();break}catch(d){H4(e,d)}while(!0);return hr=ea=null,ge.H=r,ge.A=i,Le=n,Ie!==null?0:(it=null,De=0,ym(),kt)}function BR(){for(;Ie!==null&&!sN();)W4(Ie)}function W4(e){var t=k4(e.alternate,e,kr);e.memoizedProps=e.pendingProps,t===null?zm(e):Ie=t}function c2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=n2(n,t,t.pendingProps,t.type,void 0,De);break;case 11:t=n2(n,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:mS(t);default:w4(n,t),t=Ie=wC(t,kr),t=k4(n,t,kr)}e.memoizedProps=e.pendingProps,t===null?zm(e):Ie=t}function yl(e,t,n,r){hr=ea=null,mS(t),kl=null,bc=0;var i=t.return;try{if(TR(e,i,t,n,De)){kt=1,Kf(e,ci(n,e.current)),Ie=null;return}}catch(o){if(i!==null)throw Ie=i,o;kt=1,Kf(e,ci(n,e.current)),Ie=null;return}t.flags&32768?(Ue||r===1?e=!0:Ll||(De&536870912)!==0?e=!1:(Qr=e=!0,(r===2||r===9||r===3||r===6)&&(r=Gn.current,r!==null&&r.tag===13&&(r.flags|=16384))),J4(t,e)):zm(t)}function zm(e){var t=e;do{if((t.flags&32768)!==0){J4(t,Qr);return}e=t.return;var n=IR(t.alternate,t,kr);if(n!==null){Ie=n;return}if(t=t.sibling,t!==null){Ie=t;return}Ie=t=e}while(t!==null);kt===0&&(kt=5)}function J4(e,t){do{var n=DR(e.alternate,e);if(n!==null){n.flags&=32767,Ie=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ie=e;return}Ie=e=n}while(e!==null);kt=6,Ie=null}function u2(e,t,n,r,i,o,a,l,c){e.cancelPendingCommit=null;do Tm();while(Nt!==0);if((Le&6)!==0)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(o=t.lanes|t.childLanes,o|=Q1,vN(e,n,o,a,l,c),e===it&&(Ie=it=null,De=0),Al=t,lo=e,yr=n,T1=o,C1=i,Z4=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,FR(Pf,function(){return t6(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=ge.T,ge.T=null,i=Pe.p,Pe.p=2,a=Le,Le|=4;try{AR(e,t,n)}finally{Le=a,Pe.p=i,ge.T=r}}Nt=1,X4(),K4(),Q4()}}function X4(){if(Nt===1){Nt=0;var e=lo,t=Al,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ge.T,ge.T=null;var r=Pe.p;Pe.p=2;var i=Le;Le|=4;try{O4(t,e);var o=j1,a=pC(e.containerInfo),l=o.focusedElem,c=o.selectionRange;if(a!==l&&l&&l.ownerDocument&&hC(l.ownerDocument.documentElement,l)){if(c!==null&&K1(l)){var u=c.start,d=c.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var h=l.ownerDocument||document,m=h&&h.defaultView||window;if(m.getSelection){var f=m.getSelection(),y=l.textContent.length,k=Math.min(c.start,y),E=c.end===void 0?k:Math.min(c.end,y);!f.extend&&k>E&&(a=E,E=k,k=a);var g=AT(l,k),b=AT(l,E);if(g&&b&&(f.rangeCount!==1||f.anchorNode!==g.node||f.anchorOffset!==g.offset||f.focusNode!==b.node||f.focusOffset!==b.offset)){var S=h.createRange();S.setStart(g.node,g.offset),f.removeAllRanges(),k>E?(f.addRange(S),f.extend(b.node,b.offset)):(S.setEnd(b.node,b.offset),f.addRange(S))}}}}for(h=[],f=l;f=f.parentNode;)f.nodeType===1&&h.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<h.length;l++){var v=h[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}dm=!!A1,j1=A1=null}finally{Le=i,Pe.p=r,ge.T=n}}e.current=t,Nt=2}}function K4(){if(Nt===2){Nt=0;var e=lo,t=Al,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ge.T,ge.T=null;var r=Pe.p;Pe.p=2;var i=Le;Le|=4;try{E4(e,t.alternate,t)}finally{Le=i,Pe.p=r,ge.T=n}}Nt=3}}function Q4(){if(Nt===4||Nt===3){Nt=0,cN();var e=lo,t=Al,n=yr,r=Z4;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,Al=lo=null,e6(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ao=null),H1(n),t=t.stateNode,Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(Cc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ge.T,i=Pe.p,Pe.p=2,ge.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];o(l.value,{componentStack:l.stack})}}finally{ge.T=t,Pe.p=i}}(yr&3)!==0&&Tm(),Hi(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===E1?dc++:(dc=0,E1=e):dc=0,Nc(0,!1)}}function e6(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,jc(t)))}function Tm(){return X4(),K4(),Q4(),t6()}function t6(){if(Nt!==5)return!1;var e=lo,t=T1;T1=0;var n=H1(yr),r=ge.T,i=Pe.p;try{Pe.p=32>n?32:n,ge.T=null,n=C1,C1=null;var o=lo,a=yr;if(Nt=0,Al=lo=null,yr=0,(Le&6)!==0)throw Error(j(331));var l=Le;if(Le|=4,B4(o.current),N4(o,o.current,a,n),Le=l,Nc(0,!1),Fn&&typeof Fn.onPostCommitFiberRoot=="function")try{Fn.onPostCommitFiberRoot(Cc,o)}catch{}return!0}finally{Pe.p=i,ge.T=r,e6(e,t)}}function d2(e,t,n){t=ci(n,t),t=k1(e.stateNode,t,2),e=oo(e,t,2),e!==null&&(Ic(e,2),Hi(e))}function We(e,t,n){if(e.tag===3)d2(e,e,n);else for(;t!==null;){if(t.tag===3){d2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ao===null||!ao.has(r))){e=ci(n,e),n=g4(2),r=oo(t,n,2),r!==null&&(y4(n,r,t,e),Ic(r,2),Hi(r));break}}t=t.return}}function Lx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new UR;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(zS=!0,i.add(n),e=LR.bind(null,e,t,n),t.then(e,e))}function LR(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,it===e&&(De&n)===n&&(kt===4||kt===3&&(De&62914560)===De&&300>Zn()-_m?(Le&2)===0&&jl(e,0):TS|=n,Dl===De&&(Dl=0)),Hi(e)}function n6(e,t){t===0&&(t=G2()),e=Qo(e,t),e!==null&&(Ic(e,t),Hi(e))}function PR(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),n6(e,n)}function ZR(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(j(314))}r!==null&&r.delete(t),n6(e,n)}function FR(e,t){return F1(e,t)}var rm=null,ol=null,I1=!1,om=!1,Px=!1,to=0;function Hi(e){e!==ol&&e.next===null&&(ol===null?rm=ol=e:ol=ol.next=e),om=!0,I1||(I1=!0,HR())}function Nc(e,t){if(!Px&&om){Px=!0;do for(var n=!1,r=rm;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-Vn(42|e)+1)-1,o&=i&~(a&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,f2(r,o))}else o=De,o=mm(r,r===it?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Ec(r,o)||(n=!0,f2(r,o));r=r.next}while(n);Px=!1}}function VR(){i6()}function i6(){om=I1=!1;var e=0;to!==0&&QR()&&(e=to);for(var t=Zn(),n=null,r=rm;r!==null;){var i=r.next,o=r6(r,t);o===0?(r.next=null,n===null?rm=i:n.next=i,i===null&&(ol=n)):(n=r,(e!==0||(o&3)!==0)&&(om=!0)),r=i}Nt!==0&&Nt!==5||Nc(e,!1),to!==0&&(to=0)}function r6(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-Vn(o),l=1<<a,c=i[a];c===-1?((l&n)===0||(l&r)!==0)&&(i[a]=yN(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}if(t=it,n=De,n=mm(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&gx(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ec(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&gx(r),H1(n)){case 2:case 8:n=H2;break;case 32:n=Pf;break;case 268435456:n=q2;break;default:n=Pf}return r=o6.bind(null,e),n=F1(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&gx(r),e.callbackPriority=2,e.callbackNode=null,2}function o6(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Tm()&&e.callbackNode!==n)return null;var r=De;return r=mm(e,e===it?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(V4(e,r,t),r6(e,Zn()),e.callbackNode!=null&&e.callbackNode===n?o6.bind(null,e):null)}function f2(e,t){if(Tm())return null;V4(e,t,!0)}function HR(){tM(function(){(Le&6)!==0?F1(V2,VR):i6()})}function ES(){if(to===0){var e=Cl;e===0&&(e=af,af<<=1,(af&261888)===0&&(af=256)),to=e}return to}function m2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_f(""+e)}function h2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function qR(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=m2((i[An]||null).action),a=r.submitter;a&&(t=(t=a[An]||null)?m2(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new hm("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(to!==0){var c=a?h2(i,a):new FormData(i);x1(n,{pending:!0,data:c,method:i.method,action:o},null,c)}}else typeof o=="function"&&(l.preventDefault(),c=a?h2(i,a):new FormData(i),x1(n,{pending:!0,data:c,method:i.method,action:o},o,c))},currentTarget:i}]})}}for(vf=0;vf<s1.length;vf++)bf=s1[vf],p2=bf.toLowerCase(),g2=bf[0].toUpperCase()+bf.slice(1),wi(p2,"on"+g2);var bf,p2,g2,vf;wi(yC,"onAnimationEnd");wi(vC,"onAnimationIteration");wi(bC,"onAnimationStart");wi("dblclick","onDoubleClick");wi("focusin","onFocus");wi("focusout","onBlur");wi(uR,"onTransitionRun");wi(dR,"onTransitionStart");wi(fR,"onTransitionCancel");wi(xC,"onTransitionEnd");zl("onMouseEnter",["mouseout","mouseover"]);zl("onMouseLeave",["mouseout","mouseover"]);zl("onPointerEnter",["pointerout","pointerover"]);zl("onPointerLeave",["pointerout","pointerover"]);Jo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Jo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Jo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Jo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Jo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Jo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kc="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(" "),GR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kc));function a6(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Ff(d)}i.currentTarget=null,o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Ff(d)}i.currentTarget=null,o=c}}}}function Ee(e,t){var n=t[e1];n===void 0&&(n=t[e1]=new Set);var r=e+"__bubble";n.has(r)||(l6(t,e,2,!1),n.add(r))}function Zx(e,t,n){var r=0;t&&(r|=4),l6(n,e,r,t)}var xf="_reactListening"+Math.random().toString(36).slice(2);function IS(e){if(!e[xf]){e[xf]=!0,K2.forEach(function(n){n!=="selectionchange"&&(GR.has(n)||Zx(n,!1,e),Zx(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xf]||(t[xf]=!0,Zx("selectionchange",!1,t))}}function l6(e,t,n,r){switch(x6(t)){case 2:var i=SM;break;case 8:i=kM;break;default:i=OS}n=i.bind(null,t,n,e),i=void 0,!o1||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Fx(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;l!==null;){if(a=sl(l),a===null)return;if(c=a.tag,c===5||c===6||c===26||c===27){r=o=a;continue e}l=l.parentNode}}r=r.return}aC(function(){var u=o,d=Y1(n),h=[];e:{var m=SC.get(e);if(m!==void 0){var f=hm,y=e;switch(e){case"keypress":if(zf(n)===0)break e;case"keydown":case"keyup":f=ZN;break;case"focusin":y="focus",f=Sx;break;case"focusout":y="blur",f=Sx;break;case"beforeblur":case"afterblur":f=Sx;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=wT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=IN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=HN;break;case yC:case vC:case bC:f=jN;break;case xC:f=GN;break;case"scroll":case"scrollend":f=CN;break;case"wheel":f=WN;break;case"copy":case"cut":case"paste":f=UN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=$T;break;case"toggle":case"beforetoggle":f=XN}var k=(t&4)!==0,E=!k&&(e==="scroll"||e==="scrollend"),g=k?m!==null?m+"Capture":null:m;k=[];for(var b=u,S;b!==null;){var v=b;if(S=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||S===null||g===null||(v=hc(b,g),v!=null&&k.push(wc(b,v,S))),E)break;b=b.return}0<k.length&&(m=new f(m,y,null,n,d),h.push({event:m,listeners:k}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",m&&n!==r1&&(y=n.relatedTarget||n.fromElement)&&(sl(y)||y[Nl]))break e;if((f||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,f?(y=n.relatedTarget||n.toElement,f=u,y=y?sl(y):null,y!==null&&(E=Tc(y),k=y.tag,y!==E||k!==5&&k!==27&&k!==6)&&(y=null)):(f=null,y=u),f!==y)){if(k=wT,v="onMouseLeave",g="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(k=$T,v="onPointerLeave",g="onPointerEnter",b="pointer"),E=f==null?m:Xs(f),S=y==null?m:Xs(y),m=new k(v,b+"leave",f,n,d),m.target=E,m.relatedTarget=S,v=null,sl(d)===u&&(k=new k(g,b+"enter",y,n,d),k.target=S,k.relatedTarget=E,v=k),E=v,f&&y)t:{for(k=YR,g=f,b=y,S=0,v=g;v;v=k(v))S++;v=0;for(var C=b;C;C=k(C))v++;for(;0<S-v;)g=k(g),S--;for(;0<v-S;)b=k(b),v--;for(;S--;){if(g===b||b!==null&&g===b.alternate){k=g;break t}g=k(g),b=k(b)}k=null}else k=null;f!==null&&y2(h,m,f,k,!1),y!==null&&E!==null&&y2(h,E,y,k,!0)}}e:{if(m=u?Xs(u):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var K=ET;else if(CT(m))if(fC)K=lR;else{K=oR;var q=rR}else f=m.nodeName,!f||f.toLowerCase()!=="input"||m.type!=="checkbox"&&m.type!=="radio"?u&&G1(u.elementType)&&(K=ET):K=aR;if(K&&(K=K(e,u))){dC(h,K,n,d);break e}q&&q(e,m,u),e==="focusout"&&u&&m.type==="number"&&u.memoizedProps.value!=null&&i1(m,"number",m.value)}switch(q=u?Xs(u):window,e){case"focusin":(CT(q)||q.contentEditable==="true")&&(dl=q,a1=u,nc=null);break;case"focusout":nc=a1=dl=null;break;case"mousedown":l1=!0;break;case"contextmenu":case"mouseup":case"dragend":l1=!1,jT(h,n,d);break;case"selectionchange":if(cR)break;case"keydown":case"keyup":jT(h,n,d)}var w;if(X1)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else ul?cC(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(sC&&n.locale!=="ko"&&(ul||R!=="onCompositionStart"?R==="onCompositionEnd"&&ul&&(w=lC()):(Kr=d,W1="value"in Kr?Kr.value:Kr.textContent,ul=!0)),q=am(u,R),0<q.length&&(R=new _T(R,e,null,n,d),h.push({event:R,listeners:q}),w?R.data=w:(w=uC(n),w!==null&&(R.data=w)))),(w=QN?eR(e,n):tR(e,n))&&(R=am(u,"onBeforeInput"),0<R.length&&(q=new _T("onBeforeInput","beforeinput",null,n,d),h.push({event:q,listeners:R}),q.data=w)),qR(h,e,u,n,d)}a6(h,t)})}function wc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function am(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=hc(e,n),i!=null&&r.unshift(wc(e,i,o)),i=hc(e,t),i!=null&&r.push(wc(e,i,o))),e.tag===3)return r;e=e.return}return[]}function YR(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function y2(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(l=l.tag,c!==null&&c===r)break;l!==5&&l!==26&&l!==27||u===null||(c=u,i?(u=hc(n,o),u!=null&&a.unshift(wc(n,u,c))):i||(u=hc(n,o),u!=null&&a.push(wc(n,u,c)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var WR=/\r\n?/g,JR=/\u0000|\uFFFD/g;function v2(e){return(typeof e=="string"?e:""+e).replace(WR,`
9
+ `).replace(JR,"")}function s6(e,t){return t=v2(t),v2(e)===t}function Ke(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Tl(e,""+r);break;case"className":cf(e,"class",r);break;case"tabIndex":cf(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":cf(e,n,r);break;case"style":oC(e,r,o);break;case"data":if(t!=="object"){cf(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=_f(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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 o=="function"&&(n==="formAction"?(t!=="input"&&Ke(e,t,"name",i.name,i,null),Ke(e,t,"formEncType",i.formEncType,i,null),Ke(e,t,"formMethod",i.formMethod,i,null),Ke(e,t,"formTarget",i.formTarget,i,null)):(Ke(e,t,"encType",i.encType,i,null),Ke(e,t,"method",i.method,i,null),Ke(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=_f(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=mr);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(j(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(j(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=_f(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),wf(e,"popover",r);break;case"xlinkActuate":or(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":or(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":or(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":or(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":or(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":or(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":or(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":or(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":or(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":wf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=zN.get(n)||n,wf(e,n,r))}}function D1(e,t,n,r,i,o){switch(n){case"style":oC(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(j(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(j(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Tl(e,r):(typeof r=="number"||typeof r=="bigint")&&Tl(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Q2.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[An]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):wf(e,n,r)}}}function Qt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ke(e,t,o,a,n,null)}}i&&Ke(e,t,"srcSet",n.srcSet,n,null),r&&Ke(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var l=o=a=i=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":i=d;break;case"type":a=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(j(137,t));break;default:Ke(e,t,r,d,n,null)}}nC(e,o,l,c,u,a,i,!1);return;case"select":Ee("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":r=l;default:Ke(e,t,i,l,n,null)}t=o,n=a,e.multiple=!!r,t!=null?bl(e,!!r,t,!1):n!=null&&bl(e,!!r,n,!0);return;case"textarea":Ee("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":r=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(j(91));break;default:Ke(e,t,a,l,n,null)}rC(e,r,i,o);return;case"option":for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null)&&(c==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ke(e,t,c,r,n,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<kc.length;r++)Ee(kc[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:Ke(e,t,u,r,n,null)}return;default:if(G1(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&D1(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Ke(e,t,l,r,n,null))}function XR(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,c=null,u=null,d=null;for(f in n){var h=n[f];if(n.hasOwnProperty(f)&&h!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":c=h;default:r.hasOwnProperty(f)||Ke(e,t,f,null,r,h)}}for(var m in r){var f=r[m];if(h=n[m],r.hasOwnProperty(m)&&(f!=null||h!=null))switch(m){case"type":o=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(j(137,t));break;default:f!==h&&Ke(e,t,m,f,r,h)}}n1(e,a,l,c,u,d,o,i);return;case"select":f=a=l=m=null;for(o in n)if(c=n[o],n.hasOwnProperty(o)&&c!=null)switch(o){case"value":break;case"multiple":f=c;default:r.hasOwnProperty(o)||Ke(e,t,o,null,r,c)}for(i in r)if(o=r[i],c=n[i],r.hasOwnProperty(i)&&(o!=null||c!=null))switch(i){case"value":m=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==c&&Ke(e,t,i,o,r,c)}t=l,n=a,r=f,m!=null?bl(e,!!n,m,!1):!!r!=!!n&&(t!=null?bl(e,!!n,t,!0):bl(e,!!n,n?[]:"",!1));return;case"textarea":f=m=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Ke(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":m=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(j(91));break;default:i!==o&&Ke(e,t,a,i,r,o)}iC(e,m,f);return;case"option":for(var y in n)m=n[y],n.hasOwnProperty(y)&&m!=null&&!r.hasOwnProperty(y)&&(y==="selected"?e.selected=!1:Ke(e,t,y,null,r,m));for(c in r)m=r[c],f=n[c],r.hasOwnProperty(c)&&m!==f&&(m!=null||f!=null)&&(c==="selected"?e.selected=m&&typeof m!="function"&&typeof m!="symbol":Ke(e,t,c,m,r,f));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 k in n)m=n[k],n.hasOwnProperty(k)&&m!=null&&!r.hasOwnProperty(k)&&Ke(e,t,k,null,r,m);for(u in r)if(m=r[u],f=n[u],r.hasOwnProperty(u)&&m!==f&&(m!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(j(137,t));break;default:Ke(e,t,u,m,r,f)}return;default:if(G1(t)){for(var E in n)m=n[E],n.hasOwnProperty(E)&&m!==void 0&&!r.hasOwnProperty(E)&&D1(e,t,E,void 0,r,m);for(d in r)m=r[d],f=n[d],!r.hasOwnProperty(d)||m===f||m===void 0&&f===void 0||D1(e,t,d,m,r,f);return}}for(var g in n)m=n[g],n.hasOwnProperty(g)&&m!=null&&!r.hasOwnProperty(g)&&Ke(e,t,g,null,r,m);for(h in r)m=r[h],f=n[h],!r.hasOwnProperty(h)||m===f||m==null&&f==null||Ke(e,t,h,m,r,f)}function b2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function KR(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&b2(a)){for(a=0,l=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>l)break;var d=c.transferSize,h=c.initiatorType;d&&b2(h)&&(c=c.responseEnd,a+=d*(c<l?1:(l-u)/(c-u)))}if(--r,t+=8*(o+a)/(i.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 A1=null,j1=null;function lm(e){return e.nodeType===9?e:e.ownerDocument}function x2(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 c6(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 O1(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 Vx=null;function QR(){var e=window.event;return e&&e.type==="popstate"?e===Vx?!1:(Vx=e,!0):(Vx=null,!1)}var u6=typeof setTimeout=="function"?setTimeout:void 0,eM=typeof clearTimeout=="function"?clearTimeout:void 0,S2=typeof Promise=="function"?Promise:void 0,tM=typeof queueMicrotask=="function"?queueMicrotask:typeof S2<"u"?function(e){return S2.resolve(null).then(e).catch(nM)}:u6;function nM(e){setTimeout(function(){throw e})}function yo(e){return e==="head"}function k2(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),Ul(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")fc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,fc(n);for(var o=n.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[Dc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&fc(e.ownerDocument.body);n=i}while(n);Ul(t)}function w2(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function U1(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":U1(n),q1(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function iM(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Dc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=fi(e.nextSibling),e===null)break}return null}function rM(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=fi(e.nextSibling),e===null))return null;return e}function d6(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fi(e.nextSibling),e===null))return null;return e}function N1(e){return e.data==="$?"||e.data==="$~"}function R1(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oM(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function fi(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 M1=null;function _2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return fi(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function $2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function f6(e,t,n){switch(t=lm(n),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function fc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);q1(e)}var mi=new Map,z2=new Set;function sm(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wr=Pe.d;Pe.d={f:aM,r:lM,D:sM,C:cM,L:uM,m:dM,X:mM,S:fM,M:hM};function aM(){var e=wr.f(),t=$m();return e||t}function lM(e){var t=Rl(e);t!==null&&t.tag===5&&t.type==="form"?o4(t):wr.r(e)}var Pl=typeof document>"u"?null:document;function m6(e,t,n){var r=Pl;if(r&&typeof t=="string"&&t){var i=si(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),z2.has(i)||(z2.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),Qt(t,"link",e),Pt(t),r.head.appendChild(t)))}}function sM(e){wr.D(e),m6("dns-prefetch",e,null)}function cM(e,t){wr.C(e,t),m6("preconnect",e,t)}function uM(e,t,n){wr.L(e,t,n);var r=Pl;if(r&&e&&t){var i='link[rel="preload"][as="'+si(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+si(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+si(n.imageSizes)+'"]')):i+='[href="'+si(e)+'"]';var o=i;switch(t){case"style":o=Ol(e);break;case"script":o=Zl(e)}mi.has(o)||(e=ht({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),mi.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Rc(o))||t==="script"&&r.querySelector(Mc(o))||(t=r.createElement("link"),Qt(t,"link",e),Pt(t),r.head.appendChild(t)))}}function dM(e,t){wr.m(e,t);var n=Pl;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+si(r)+'"][href="'+si(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Zl(e)}if(!mi.has(o)&&(e=ht({rel:"modulepreload",href:e},t),mi.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Mc(o)))return}r=n.createElement("link"),Qt(r,"link",e),Pt(r),n.head.appendChild(r)}}}function fM(e,t,n){wr.S(e,t,n);var r=Pl;if(r&&e){var i=vl(r).hoistableStyles,o=Ol(e);t=t||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Rc(o)))l.loading=5;else{e=ht({rel:"stylesheet",href:e,"data-precedence":t},n),(n=mi.get(o))&&DS(e,n);var c=a=r.createElement("link");Pt(c),Qt(c,"link",e),c._p=new Promise(function(u,d){c.onload=u,c.onerror=d}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Of(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},i.set(o,a)}}}function mM(e,t){wr.X(e,t);var n=Pl;if(n&&e){var r=vl(n).hoistableScripts,i=Zl(e),o=r.get(i);o||(o=n.querySelector(Mc(i)),o||(e=ht({src:e,async:!0},t),(t=mi.get(i))&&AS(e,t),o=n.createElement("script"),Pt(o),Qt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function hM(e,t){wr.M(e,t);var n=Pl;if(n&&e){var r=vl(n).hoistableScripts,i=Zl(e),o=r.get(i);o||(o=n.querySelector(Mc(i)),o||(e=ht({src:e,async:!0,type:"module"},t),(t=mi.get(i))&&AS(e,t),o=n.createElement("script"),Pt(o),Qt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function T2(e,t,n,r){var i=(i=no.current)?sm(i):null;if(!i)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ol(n.href),n=vl(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ol(n.href);var o=vl(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(Rc(e)))&&!o._p&&(a.instance=o,a.state.loading=5),mi.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mi.set(e,n),o||pM(i,e,n,a.state))),t&&r===null)throw Error(j(528,""));return a}if(t&&r!==null)throw Error(j(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Zl(n),n=vl(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function Ol(e){return'href="'+si(e)+'"'}function Rc(e){return'link[rel="stylesheet"]['+e+"]"}function h6(e){return ht({},e,{"data-precedence":e.precedence,precedence:null})}function pM(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Qt(t,"link",n),Pt(t),e.head.appendChild(t))}function Zl(e){return'[src="'+si(e)+'"]'}function Mc(e){return"script[async]"+e}function C2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+si(n.href)+'"]');if(r)return t.instance=r,Pt(r),r;var i=ht({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Pt(r),Qt(r,"style",i),Of(r,n.precedence,e),t.instance=r;case"stylesheet":i=Ol(n.href);var o=e.querySelector(Rc(i));if(o)return t.state.loading|=4,t.instance=o,Pt(o),o;r=h6(n),(i=mi.get(i))&&DS(r,i),o=(e.ownerDocument||e).createElement("link"),Pt(o);var a=o;return a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Qt(o,"link",r),t.state.loading|=4,Of(o,n.precedence,e),t.instance=o;case"script":return o=Zl(n.src),(i=e.querySelector(Mc(o)))?(t.instance=i,Pt(i),i):(r=n,(i=mi.get(o))&&(r=ht({},n),AS(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Pt(i),Qt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Of(r,n.precedence,e));return t.instance}function Of(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function DS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function AS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Uf=null;function E2(e,t,n){if(Uf===null){var r=new Map,i=Uf=new Map;i.set(n,r)}else i=Uf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Dc]||o[Jt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(o):r.set(a,[o])}}return r}function I2(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function gM(e,t,n){if(n===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;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 p6(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yM(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ol(r.href),o=t.querySelector(Rc(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=cm.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,Pt(o);return}o=t.ownerDocument||t,r=h6(r),(i=mi.get(i))&&DS(r,i),o=o.createElement("link"),Pt(o);var a=o;a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),Qt(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=cm.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Hx=0;function vM(e,t){return e.stylesheets&&e.count===0&&Nf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Nf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Hx===0&&(Hx=62500*KR());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Nf(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Hx?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function cm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Nf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var um=null;function Nf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,um=new Map,t.forEach(bM,e),um=null,cm.call(e))}function bM(e,t){if(!(t.state.loading&4)){var n=um.get(e);if(n)var r=n.get(null);else{n=new Map,um.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=cm.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var _c={$$typeof:fr,Provider:null,Consumer:null,_currentValue:Lo,_currentValue2:Lo,_threadCount:0};function xM(e,t,n,r,i,o,a,l,c){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=yx(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yx(0),this.hiddenUpdates=yx(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function g6(e,t,n,r,i,o,a,l,c,u,d,h){return e=new xM(e,t,n,a,c,u,d,h,l),t=1,o===!0&&(t|=24),o=Ln(3,null,null,t),e.current=o,o.stateNode=e,t=rS(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},lS(o),e}function y6(e){return e?(e=hl,e):hl}function v6(e,t,n,r,i,o){i=y6(i),r.context===null?r.context=i:r.pendingContext=i,r=ro(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=oo(e,r,t),n!==null&&(Dn(n,e,t),rc(n,e,t))}function D2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function jS(e,t){D2(e,t),(e=e.alternate)&&D2(e,t)}function b6(e){if(e.tag===13||e.tag===31){var t=Qo(e,67108864);t!==null&&Dn(t,e,67108864),jS(e,67108864)}}function A2(e){if(e.tag===13||e.tag===31){var t=Hn();t=V1(t);var n=Qo(e,t);n!==null&&Dn(n,e,t),jS(e,t)}}var dm=!0;function SM(e,t,n,r){var i=ge.T;ge.T=null;var o=Pe.p;try{Pe.p=2,OS(e,t,n,r)}finally{Pe.p=o,ge.T=i}}function kM(e,t,n,r){var i=ge.T;ge.T=null;var o=Pe.p;try{Pe.p=8,OS(e,t,n,r)}finally{Pe.p=o,ge.T=i}}function OS(e,t,n,r){if(dm){var i=B1(r);if(i===null)Fx(e,t,r,fm,n),j2(e,r);else if(_M(i,e,t,n,r))r.stopPropagation();else if(j2(e,r),t&4&&-1<wM.indexOf(e)){for(;i!==null;){var o=Rl(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Ro(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var c=1<<31-Vn(a);l.entanglements[1]|=c,a&=~c}Hi(o),(Le&6)===0&&(tm=Zn()+500,Nc(0,!1))}}break;case 31:case 13:l=Qo(o,2),l!==null&&Dn(l,o,2),$m(),jS(o,2)}if(o=B1(r),o===null&&Fx(e,t,r,fm,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Fx(e,t,r,null,n)}}function B1(e){return e=Y1(e),US(e)}var fm=null;function US(e){if(fm=null,e=sl(e),e!==null){var t=Tc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=B2(t),e!==null)return e;e=null}else if(n===31){if(e=L2(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fm=e,null}function x6(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(uN()){case V2:return 2;case H2:return 8;case Pf:case dN:return 32;case q2:return 268435456;default:return 32}default:return 32}}var L1=!1,so=null,co=null,uo=null,$c=new Map,zc=new Map,Jr=[],wM="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 j2(e,t){switch(e){case"focusin":case"focusout":so=null;break;case"dragenter":case"dragleave":co=null;break;case"mouseover":case"mouseout":uo=null;break;case"pointerover":case"pointerout":$c.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zc.delete(t.pointerId)}}function Gs(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Rl(t),t!==null&&b6(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _M(e,t,n,r,i){switch(t){case"focusin":return so=Gs(so,e,t,n,r,i),!0;case"dragenter":return co=Gs(co,e,t,n,r,i),!0;case"mouseover":return uo=Gs(uo,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return $c.set(o,Gs($c.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zc.set(o,Gs(zc.get(o)||null,e,t,n,r,i)),!0}return!1}function S6(e){var t=sl(e.target);if(t!==null){var n=Tc(t);if(n!==null){if(t=n.tag,t===13){if(t=B2(n),t!==null){e.blockedOn=t,gT(e.priority,function(){A2(n)});return}}else if(t===31){if(t=L2(n),t!==null){e.blockedOn=t,gT(e.priority,function(){A2(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=B1(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);r1=r,n.target.dispatchEvent(r),r1=null}else return t=Rl(n),t!==null&&b6(t),e.blockedOn=n,!1;t.shift()}return!0}function O2(e,t,n){Rf(e)&&n.delete(t)}function $M(){L1=!1,so!==null&&Rf(so)&&(so=null),co!==null&&Rf(co)&&(co=null),uo!==null&&Rf(uo)&&(uo=null),$c.forEach(O2),zc.forEach(O2)}function Sf(e,t){e.blockedOn===t&&(e.blockedOn=null,L1||(L1=!0,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,$M)))}var kf=null;function U2(e){kf!==e&&(kf=e,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,function(){kf===e&&(kf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(US(r||n)===null)continue;break}var o=Rl(n);o!==null&&(e.splice(t,3),t-=3,x1(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Ul(e){function t(c){return Sf(c,e)}so!==null&&Sf(so,e),co!==null&&Sf(co,e),uo!==null&&Sf(uo,e),$c.forEach(t),zc.forEach(t);for(var n=0;n<Jr.length;n++){var r=Jr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Jr.length&&(n=Jr[0],n.blockedOn===null);)S6(n),n.blockedOn===null&&Jr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[An]||null;if(typeof o=="function")a||U2(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[An]||null)l=a.formAction;else if(US(i)!==null)continue}else l=a.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),U2(n)}}}function k6(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function NS(e){this._internalRoot=e}Cm.prototype.render=NS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var n=t.current,r=Hn();v6(n,r,e,t,null,null)};Cm.prototype.unmount=NS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;v6(e.current,2,null,e,null,null),$m(),t[Nl]=null}};function Cm(e){this._internalRoot=e}Cm.prototype.unstable_scheduleHydration=function(e){if(e){var t=X2();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jr.length&&t!==0&&t<Jr[n].priority;n++);Jr.splice(n,0,e),n===0&&S6(e)}};var N2=R2.version;if(N2!=="19.2.8")throw Error(j(527,N2,"19.2.8"));Pe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=iN(t),e=e!==null?P2(e):null,e=e===null?null:e.stateNode,e};var zM={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ys=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ys.isDisabled&&Ys.supportsFiber))try{Cc=Ys.inject(zM),Fn=Ys}catch{}var Ys;Em.createRoot=function(e,t){if(!M2(e))throw Error(j(299));var n=!1,r="",i=m4,o=h4,a=p4;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=g6(e,1,!1,null,null,n,r,null,i,o,a,k6),e[Nl]=t.current,IS(e),new NS(t)};Em.hydrateRoot=function(e,t,n){if(!M2(e))throw Error(j(299));var r=!1,i="",o=m4,a=h4,l=p4,c=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=g6(e,1,!0,t,n??null,r,i,c,o,a,l,k6),t.context=y6(null),n=t.current,r=Hn(),r=V1(r),i=ro(r),i.callback=null,oo(n,i,r),n=r,t.current.lanes=n,Ic(t,n),Hi(t),e[Nl]=t.current,IS(e),new Cm(t)};Em.version="19.2.8"});var z6=zi((kF,$6)=>{"use strict";function _6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_6)}catch(e){console.error(e)}}_6(),$6.exports=w6()});var Ve=N(ne(),1);var Zc={id:"code",name:"Code",description:"Full access: read, edit, run commands, and use MCP tools.",groups:["read","edit","command","mcp","always"]},$0={id:"ask",name:"Ask",description:"Read-only: inspect the workspace and answer questions. Cannot edit or run commands.",groups:["read","mcp","always"]},z0={id:"agent-team",name:"Agent team",description:"You lead; specialists you assign are consulted as needed. Requires at least one agent.",groups:["read","edit","command","mcp","always"],requiresExpert:!0},Fc=[Zc,$0,z0],Fm=Zc.id,KI={junior:z0.id};function Vm(e){let t=e!==void 0?KI[e]??e:e;return Fc.find(n=>n.id===t)??Zc}var _={};Gi(_,{$brand:()=>qm,$input:()=>mg,$output:()=>fg,NEVER:()=>Hm,TimePrecision:()=>yg,ZodAny:()=>av,ZodArray:()=>uv,ZodBase64:()=>gd,ZodBase64URL:()=>yd,ZodBigInt:()=>Oa,ZodBigIntFormat:()=>xd,ZodBoolean:()=>ja,ZodCIDRv4:()=>hd,ZodCIDRv6:()=>pd,ZodCUID:()=>ld,ZodCUID2:()=>sd,ZodCatch:()=>Av,ZodCodec:()=>_s,ZodCustom:()=>$s,ZodCustomStringFormat:()=>Da,ZodDate:()=>bs,ZodDefault:()=>zv,ZodDiscriminatedUnion:()=>fv,ZodE164:()=>vd,ZodEmail:()=>rd,ZodEmoji:()=>od,ZodEnum:()=>Ea,ZodError:()=>Ej,ZodExactOptional:()=>wv,ZodFile:()=>Sv,ZodFirstPartyTypeKind:()=>Hv,ZodFunction:()=>Zv,ZodGUID:()=>hs,ZodIPv4:()=>fd,ZodIPv6:()=>md,ZodISODate:()=>Ku,ZodISODateTime:()=>Xu,ZodISODuration:()=>ed,ZodISOTime:()=>Qu,ZodIntersection:()=>mv,ZodIssueCode:()=>Dj,ZodJWT:()=>bd,ZodKSUID:()=>dd,ZodLazy:()=>Bv,ZodLiteral:()=>xv,ZodMAC:()=>Qy,ZodMap:()=>vv,ZodNaN:()=>Ov,ZodNanoID:()=>ad,ZodNever:()=>sv,ZodNonOptional:()=>zd,ZodNull:()=>rv,ZodNullable:()=>$v,ZodNumber:()=>Aa,ZodNumberFormat:()=>Co,ZodObject:()=>Ss,ZodOptional:()=>$d,ZodPipe:()=>ws,ZodPrefault:()=>Cv,ZodPreprocess:()=>Uv,ZodPromise:()=>Pv,ZodReadonly:()=>Nv,ZodRealError:()=>kn,ZodRecord:()=>Ca,ZodSet:()=>bv,ZodString:()=>Ia,ZodStringFormat:()=>Xe,ZodSuccess:()=>Dv,ZodSymbol:()=>nv,ZodTemplateLiteral:()=>Mv,ZodTransform:()=>kv,ZodTuple:()=>pv,ZodType:()=>ke,ZodULID:()=>cd,ZodURL:()=>vs,ZodUUID:()=>Ii,ZodUndefined:()=>iv,ZodUnion:()=>ks,ZodUnknown:()=>lv,ZodVoid:()=>cv,ZodXID:()=>ud,ZodXor:()=>dv,_ZodString:()=>id,_default:()=>Tv,_function:()=>h_,any:()=>Hw,array:()=>xs,base64:()=>Cw,base64url:()=>Ew,bigint:()=>Lw,boolean:()=>tv,catch:()=>jv,check:()=>p_,cidrv4:()=>zw,cidrv6:()=>Tw,clone:()=>un,codec:()=>u_,coerce:()=>qv,config:()=>bt,core:()=>Ji,cuid:()=>vw,cuid2:()=>bw,custom:()=>g_,date:()=>Gw,decode:()=>qy,decodeAsync:()=>Yy,describe:()=>y_,discriminatedUnion:()=>Qw,e164:()=>Iw,email:()=>sw,emoji:()=>gw,encode:()=>Hy,encodeAsync:()=>Gy,endsWith:()=>va,enum:()=>wd,exactOptional:()=>_v,file:()=>a_,flattenError:()=>es,float32:()=>Nw,float64:()=>Rw,formatError:()=>ts,fromJSONSchema:()=>__,function:()=>h_,getErrorMap:()=>jj,globalRegistry:()=>Vt,gt:()=>Ci,gte:()=>fn,guid:()=>cw,hash:()=>Uw,hex:()=>Ow,hostname:()=>jw,httpUrl:()=>pw,includes:()=>ga,instanceof:()=>b_,int:()=>td,int32:()=>Mw,int64:()=>Pw,intersection:()=>hv,invertCodec:()=>d_,ipv4:()=>ww,ipv6:()=>$w,iso:()=>Ta,json:()=>S_,jwt:()=>Dw,keyof:()=>Yw,ksuid:()=>kw,lazy:()=>Lv,length:()=>zo,literal:()=>o_,locales:()=>cs,looseObject:()=>Xw,looseRecord:()=>t_,lowercase:()=>ha,lt:()=>Ti,lte:()=>Un,mac:()=>_w,map:()=>n_,maxLength:()=>$o,maxSize:()=>Ir,meta:()=>v_,mime:()=>ba,minLength:()=>Wi,minSize:()=>Ei,multipleOf:()=>Er,nan:()=>c_,nanoid:()=>yw,nativeEnum:()=>r_,negative:()=>Pu,never:()=>Sd,nonnegative:()=>Fu,nonoptional:()=>Iv,nonpositive:()=>Zu,normalize:()=>xa,null:()=>ov,nullable:()=>gs,nullish:()=>l_,number:()=>ev,object:()=>Ww,optional:()=>ps,overwrite:()=>yi,parse:()=>Py,parseAsync:()=>Zy,partialRecord:()=>e_,pipe:()=>nd,positive:()=>Lu,prefault:()=>Ev,preprocess:()=>k_,prettifyError:()=>oh,promise:()=>m_,property:()=>Vu,readonly:()=>Rv,record:()=>yv,refine:()=>Fv,regex:()=>ma,regexes:()=>On,registry:()=>bu,safeDecode:()=>Jy,safeDecodeAsync:()=>Ky,safeEncode:()=>Wy,safeEncodeAsync:()=>Xy,safeParse:()=>Fy,safeParseAsync:()=>Vy,set:()=>i_,setErrorMap:()=>Aj,size:()=>_o,slugify:()=>_a,startsWith:()=>ya,strictObject:()=>Jw,string:()=>ms,stringFormat:()=>Aw,stringbool:()=>x_,success:()=>s_,superRefine:()=>Vv,symbol:()=>Fw,templateLiteral:()=>f_,toJSONSchema:()=>Yu,toLowerCase:()=>ka,toUpperCase:()=>wa,transform:()=>_d,treeifyError:()=>rh,trim:()=>Sa,tuple:()=>gv,uint32:()=>Bw,uint64:()=>Zw,ulid:()=>xw,undefined:()=>Vw,union:()=>kd,unknown:()=>To,uppercase:()=>pa,url:()=>hw,util:()=>Z,uuid:()=>uw,uuidv4:()=>dw,uuidv6:()=>fw,uuidv7:()=>mw,void:()=>qw,xid:()=>Sw,xor:()=>Kw});var Ji={};Gi(Ji,{$ZodAny:()=>Op,$ZodArray:()=>Bp,$ZodAsyncError:()=>gi,$ZodBase64:()=>_p,$ZodBase64URL:()=>$p,$ZodBigInt:()=>du,$ZodBigIntFormat:()=>Ip,$ZodBoolean:()=>os,$ZodCIDRv4:()=>Sp,$ZodCIDRv6:()=>kp,$ZodCUID:()=>cp,$ZodCUID2:()=>up,$ZodCatch:()=>ig,$ZodCheck:()=>tt,$ZodCheckBigIntFormat:()=>Bh,$ZodCheckEndsWith:()=>Xh,$ZodCheckGreaterThan:()=>ou,$ZodCheckIncludes:()=>Wh,$ZodCheckLengthEquals:()=>Hh,$ZodCheckLessThan:()=>ru,$ZodCheckLowerCase:()=>Gh,$ZodCheckMaxLength:()=>Fh,$ZodCheckMaxSize:()=>Lh,$ZodCheckMimeType:()=>Qh,$ZodCheckMinLength:()=>Vh,$ZodCheckMinSize:()=>Ph,$ZodCheckMultipleOf:()=>Rh,$ZodCheckNumberFormat:()=>Mh,$ZodCheckOverwrite:()=>ep,$ZodCheckProperty:()=>Kh,$ZodCheckRegex:()=>qh,$ZodCheckSizeEquals:()=>Zh,$ZodCheckStartsWith:()=>Jh,$ZodCheckStringFormat:()=>da,$ZodCheckUpperCase:()=>Yh,$ZodCodec:()=>ls,$ZodCustom:()=>dg,$ZodCustomStringFormat:()=>Cp,$ZodDate:()=>Mp,$ZodDefault:()=>Qp,$ZodDiscriminatedUnion:()=>Zp,$ZodE164:()=>zp,$ZodEmail:()=>op,$ZodEmoji:()=>lp,$ZodEncodeError:()=>_r,$ZodEnum:()=>Gp,$ZodError:()=>Ql,$ZodExactOptional:()=>Xp,$ZodFile:()=>Wp,$ZodFunction:()=>sg,$ZodGUID:()=>ip,$ZodIPv4:()=>vp,$ZodIPv6:()=>bp,$ZodISODate:()=>pp,$ZodISODateTime:()=>hp,$ZodISODuration:()=>yp,$ZodISOTime:()=>gp,$ZodIntersection:()=>Fp,$ZodJWT:()=>Tp,$ZodKSUID:()=>mp,$ZodLazy:()=>ug,$ZodLiteral:()=>Yp,$ZodMAC:()=>xp,$ZodMap:()=>Hp,$ZodNaN:()=>rg,$ZodNanoID:()=>sp,$ZodNever:()=>Np,$ZodNonOptional:()=>tg,$ZodNull:()=>jp,$ZodNullable:()=>Kp,$ZodNumber:()=>uu,$ZodNumberFormat:()=>Ep,$ZodObject:()=>ik,$ZodObjectJIT:()=>Lp,$ZodOptional:()=>mu,$ZodPipe:()=>hu,$ZodPrefault:()=>eg,$ZodPreprocess:()=>og,$ZodPromise:()=>cg,$ZodReadonly:()=>ag,$ZodRealError:()=>Sn,$ZodRecord:()=>Vp,$ZodRegistry:()=>vu,$ZodSet:()=>qp,$ZodString:()=>wo,$ZodStringFormat:()=>Je,$ZodSuccess:()=>ng,$ZodSymbol:()=>Dp,$ZodTemplateLiteral:()=>lg,$ZodTransform:()=>Jp,$ZodTuple:()=>fu,$ZodType:()=>ve,$ZodULID:()=>dp,$ZodURL:()=>ap,$ZodUUID:()=>rp,$ZodUndefined:()=>Ap,$ZodUnion:()=>as,$ZodUnknown:()=>Up,$ZodVoid:()=>Rp,$ZodXID:()=>fp,$ZodXor:()=>Pp,$brand:()=>qm,$constructor:()=>$,$input:()=>mg,$output:()=>fg,Doc:()=>rs,JSONSchema:()=>ow,JSONSchemaGenerator:()=>Wu,NEVER:()=>Hm,TimePrecision:()=>yg,_any:()=>Mg,_array:()=>Hg,_base64:()=>Nu,_base64url:()=>Ru,_bigint:()=>Dg,_boolean:()=>Eg,_catch:()=>Sj,_check:()=>rw,_cidrv4:()=>Ou,_cidrv6:()=>Uu,_coercedBigint:()=>Ag,_coercedBoolean:()=>Ig,_coercedDate:()=>Fg,_coercedNumber:()=>wg,_coercedString:()=>pg,_cuid:()=>Tu,_cuid2:()=>Cu,_custom:()=>Gg,_date:()=>Zg,_decode:()=>Wc,_decodeAsync:()=>Xc,_default:()=>vj,_discriminatedUnion:()=>aj,_e164:()=>Mu,_email:()=>xu,_emoji:()=>$u,_encode:()=>Yc,_encodeAsync:()=>Jc,_endsWith:()=>va,_enum:()=>fj,_file:()=>qg,_float32:()=>$g,_float64:()=>zg,_gt:()=>Ci,_gte:()=>fn,_guid:()=>us,_includes:()=>ga,_int:()=>_g,_int32:()=>Tg,_int64:()=>jg,_intersection:()=>lj,_ipv4:()=>Au,_ipv6:()=>ju,_isoDate:()=>bg,_isoDateTime:()=>vg,_isoDuration:()=>Sg,_isoTime:()=>xg,_jwt:()=>Bu,_ksuid:()=>Du,_lazy:()=>$j,_length:()=>zo,_literal:()=>hj,_lowercase:()=>ha,_lt:()=>Ti,_lte:()=>Un,_mac:()=>gg,_map:()=>uj,_max:()=>Un,_maxLength:()=>$o,_maxSize:()=>Ir,_mime:()=>ba,_min:()=>fn,_minLength:()=>Wi,_minSize:()=>Ei,_multipleOf:()=>Er,_nan:()=>Vg,_nanoid:()=>zu,_nativeEnum:()=>mj,_negative:()=>Pu,_never:()=>Lg,_nonnegative:()=>Fu,_nonoptional:()=>bj,_nonpositive:()=>Zu,_normalize:()=>xa,_null:()=>Rg,_nullable:()=>yj,_number:()=>kg,_optional:()=>gj,_overwrite:()=>yi,_parse:()=>la,_parseAsync:()=>sa,_pipe:()=>kj,_positive:()=>Lu,_promise:()=>zj,_property:()=>Vu,_readonly:()=>wj,_record:()=>cj,_refine:()=>Yg,_regex:()=>ma,_safeDecode:()=>Qc,_safeDecodeAsync:()=>tu,_safeEncode:()=>Kc,_safeEncodeAsync:()=>eu,_safeParse:()=>ca,_safeParseAsync:()=>ua,_set:()=>dj,_size:()=>_o,_slugify:()=>_a,_startsWith:()=>ya,_string:()=>hg,_stringFormat:()=>$a,_stringbool:()=>Kg,_success:()=>xj,_superRefine:()=>Wg,_symbol:()=>Ug,_templateLiteral:()=>_j,_toLowerCase:()=>ka,_toUpperCase:()=>wa,_transform:()=>pj,_trim:()=>Sa,_tuple:()=>sj,_uint32:()=>Cg,_uint64:()=>Og,_ulid:()=>Eu,_undefined:()=>Ng,_union:()=>rj,_unknown:()=>Bg,_uppercase:()=>pa,_url:()=>ds,_uuid:()=>Su,_uuidv4:()=>ku,_uuidv6:()=>wu,_uuidv7:()=>_u,_void:()=>Pg,_xid:()=>Iu,_xor:()=>oj,clone:()=>un,config:()=>bt,createStandardJSONSchemaMethod:()=>za,createToJSONSchemaMethod:()=>Qg,decode:()=>zD,decodeAsync:()=>CD,describe:()=>Jg,encode:()=>$D,encodeAsync:()=>TD,extractDefs:()=>Ar,finalize:()=>jr,flattenError:()=>es,formatError:()=>ts,globalConfig:()=>xo,globalRegistry:()=>Vt,initializeContext:()=>Dr,isValidBase64:()=>wp,isValidBase64URL:()=>Q0,isValidJWT:()=>ek,locales:()=>cs,meta:()=>Xg,parse:()=>qc,parseAsync:()=>Gc,prettifyError:()=>oh,process:()=>Ze,regexes:()=>On,registry:()=>bu,safeDecode:()=>ID,safeDecodeAsync:()=>AD,safeEncode:()=>ED,safeEncodeAsync:()=>DD,safeParse:()=>ah,safeParseAsync:()=>lh,toDotPath:()=>A0,toJSONSchema:()=>Yu,treeifyError:()=>rh,util:()=>Z,version:()=>tp});var T0,Hm=Object.freeze({status:"aborted"});function $(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);let u=a.prototype,d=Object.keys(u);for(let h=0;h<d.length;h++){let m=d[h];m in l||(l[m]=u[m].bind(l))}}let i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(l){var c;let u=n?.Parent?new o:this;r(u,l),(c=u._zod).deferred??(c.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var qm=Symbol("zod_brand"),gi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},_r=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(T0=globalThis).__zod_globalConfig??(T0.__zod_globalConfig={});var xo=globalThis.__zod_globalConfig;function bt(e){return e&&Object.assign(xo,e),xo}var Z={};Gi(Z,{BIGINT_FORMAT_RANGES:()=>nh,Class:()=>Ym,NUMBER_FORMAT_RANGES:()=>th,aborted:()=>Cr,allowsEval:()=>Xm,assert:()=>iD,assertEqual:()=>QI,assertIs:()=>tD,assertNever:()=>nD,assertNotEqual:()=>eD,assignProp:()=>zr,base64ToUint8Array:()=>E0,base64urlToUint8Array:()=>xD,cached:()=>oa,captureStackTrace:()=>Hc,cleanEnum:()=>bD,cleanRegex:()=>Wl,clone:()=>un,cloneDef:()=>oD,createTransparentProxy:()=>dD,defineLazy:()=>_e,esc:()=>Vc,escapeRegex:()=>Xn,explicitlyAborted:()=>ih,extend:()=>hD,finalizeIssue:()=>dn,floatSafeRemainder:()=>Wm,getElementAtPath:()=>aD,getEnumValues:()=>Yl,getLengthableOrigin:()=>Kl,getParsedType:()=>uD,getSizableOrigin:()=>Xl,hexToUint8Array:()=>kD,isObject:()=>So,isPlainObject:()=>Tr,issue:()=>aa,joinValues:()=>T,jsonStringifyReplacer:()=>ra,merge:()=>gD,mergeDefs:()=>Yi,normalizeParams:()=>G,nullish:()=>$r,numKeys:()=>cD,objectClone:()=>rD,omit:()=>mD,optionalKeys:()=>eh,parsedType:()=>B,partial:()=>yD,pick:()=>fD,prefixIssues:()=>xn,primitiveTypes:()=>Qm,promiseAllObject:()=>lD,propertyKeyTypes:()=>Jl,randomString:()=>sD,required:()=>vD,safeExtend:()=>pD,shallowClone:()=>Km,slugify:()=>Jm,stringifyPrimitive:()=>M,uint8ArrayToBase64:()=>I0,uint8ArrayToBase64url:()=>SD,uint8ArrayToHex:()=>wD,unwrapMessage:()=>Gl});function QI(e){return e}function eD(e){return e}function tD(e){}function nD(e){throw new Error("Unexpected value in exhaustive check")}function iD(e){}function Yl(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function T(e,t="|"){return e.map(n=>M(n)).join(t)}function ra(e,t){return typeof t=="bigint"?t.toString():t}function oa(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function $r(e){return e==null}function Wl(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Wm(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var C0=Symbol("evaluating");function _e(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==C0)return r===void 0&&(r=C0,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function rD(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function zr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Yi(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function oD(e){return Yi(e._zod.def)}function aD(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function lD(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return i})}function sD(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Vc(e){return JSON.stringify(e)}function Jm(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Hc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function So(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Xm=oa(()=>{if(xo.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Tr(e){if(So(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(So(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Km(e){return Tr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function cD(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var uD=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Jl=new Set(["string","number","symbol"]),Qm=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Xn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function un(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function G(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function dD(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,o){return t??(t=e()),Reflect.set(t,r,i,o)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function M(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function eh(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var th={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},nh={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function fD(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Yi(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return zr(this,"shape",a),a},checks:[]});return un(e,o)}function mD(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Yi(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return zr(this,"shape",a),a},checks:[]});return un(e,o)}function hD(e,t){if(!Tr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=Yi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return zr(this,"shape",o),o}});return un(e,i)}function pD(e,t){if(!Tr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Yi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return zr(this,"shape",r),r}});return un(e,n)}function gD(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=Yi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return zr(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return un(e,n)}function yD(e,t,n){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Yi(t._zod.def,{get shape(){let l=t._zod.def.shape,c={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)c[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return zr(this,"shape",c),c},checks:[]});return un(t,a)}function vD(e,t,n){let r=Yi(t._zod.def,{get shape(){let i=t._zod.def.shape,o={...i};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(let a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return zr(this,"shape",o),o}});return un(t,r)}function Cr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ih(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function xn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Gl(e){return typeof e=="string"?e:e?.message}function dn(e,t,n){let r=e.message?e.message:Gl(e.inst?._zod.def?.error?.(e))??Gl(t?.error?.(e))??Gl(n.customError?.(e))??Gl(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...l}=e;return l.path??(l.path=[]),l.message=r,t?.reportInput&&(l.input=a),l}function Xl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Kl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function B(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function aa(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function bD(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function E0(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function I0(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function xD(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return E0(t+n)}function SD(e){return I0(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function kD(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function wD(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Ym=class{constructor(...t){}};var D0=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,ra,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ql=$("$ZodError",D0),Sn=$("$ZodError",D0,{Parent:Error});function es(e,t=n=>n.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function ts(e,t=n=>n.message){let n={_errors:[]},r=(i,o=[])=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>r({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(t(a));else{let c=n,u=0;for(;u<l.length;){let d=l[u];u===l.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(a))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}}};return r(e),n}function rh(e,t=n=>n.message){let n={errors:[]},r=(i,o=[])=>{var a,l;for(let c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>r({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")r({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")r({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){n.errors.push(t(c));continue}let d=n,h=0;for(;h<u.length;){let m=u[h],f=h===u.length-1;typeof m=="string"?(d.properties??(d.properties={}),(a=d.properties)[m]??(a[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(l=d.items)[m]??(l[m]={errors:[]}),d=d.items[m]),f&&d.errors.push(t(c)),h++}}};return r(e),n}function A0(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function oh(e){let t=[],n=[...e.issues].sort((r,i)=>(r.path??[]).length-(i.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${A0(r.path)}`);return t.join(`
10
10
  `)}var la=e=>(t,n,r,i)=>{let o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new gi;if(a.issues.length){let l=new(i?.Err??e)(a.issues.map(c=>dn(c,o,bt())));throw Hc(l,i?.callee),l}return a.value},qc=la(Sn),sa=e=>async(t,n,r,i)=>{let o=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(i?.Err??e)(a.issues.map(c=>dn(c,o,bt())));throw Hc(l,i?.callee),l}return a.value},Gc=sa(Sn),ca=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new gi;return o.issues.length?{success:!1,error:new(e??Ql)(o.issues.map(a=>dn(a,i,bt())))}:{success:!0,data:o.value}},ah=ca(Sn),ua=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>dn(a,i,bt())))}:{success:!0,data:o.value}},lh=ua(Sn),Yc=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return la(e)(t,n,i)},$D=Yc(Sn),Wc=e=>(t,n,r)=>la(e)(t,n,r),zD=Wc(Sn),Jc=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return sa(e)(t,n,i)},TD=Jc(Sn),Xc=e=>async(t,n,r)=>sa(e)(t,n,r),CD=Xc(Sn),Kc=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return ca(e)(t,n,i)},ED=Kc(Sn),Qc=e=>(t,n,r)=>ca(e)(t,n,r),ID=Qc(Sn),eu=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return ua(e)(t,n,i)},DD=eu(Sn),tu=e=>async(t,n,r)=>ua(e)(t,n,r),AD=tu(Sn);var On={};Gi(On,{base64:()=>wh,base64url:()=>nu,bigint:()=>Ih,boolean:()=>Ah,browserEmail:()=>LD,cidrv4:()=>Sh,cidrv6:()=>kh,cuid:()=>sh,cuid2:()=>ch,date:()=>zh,datetime:()=>Ch,domain:()=>FD,duration:()=>hh,e164:()=>$h,email:()=>gh,emoji:()=>yh,extendedDuration:()=>jD,guid:()=>ph,hex:()=>VD,hostname:()=>ZD,html5Email:()=>RD,httpProtocol:()=>_h,idnEmail:()=>BD,integer:()=>Dh,ipv4:()=>vh,ipv6:()=>bh,ksuid:()=>fh,lowercase:()=>Uh,mac:()=>xh,md5_base64:()=>qD,md5_base64url:()=>GD,md5_hex:()=>HD,nanoid:()=>mh,null:()=>jh,number:()=>iu,rfc5322Email:()=>MD,sha1_base64:()=>WD,sha1_base64url:()=>JD,sha1_hex:()=>YD,sha256_base64:()=>KD,sha256_base64url:()=>QD,sha256_hex:()=>XD,sha384_base64:()=>tA,sha384_base64url:()=>nA,sha384_hex:()=>eA,sha512_base64:()=>rA,sha512_base64url:()=>oA,sha512_hex:()=>iA,string:()=>Eh,time:()=>Th,ulid:()=>uh,undefined:()=>Oh,unicodeEmail:()=>j0,uppercase:()=>Nh,uuid:()=>ko,uuid4:()=>OD,uuid6:()=>UD,uuid7:()=>ND,xid:()=>dh});var sh=/^[cC][0-9a-z]{6,}$/,ch=/^[0-9a-z]+$/,uh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,dh=/^[0-9a-vA-V]{20}$/,fh=/^[A-Za-z0-9]{27}$/,mh=/^[a-zA-Z0-9_-]{21}$/,hh=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jD=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ph=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ko=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,OD=ko(4),UD=ko(6),ND=ko(7),gh=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,RD=/^[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])?)*$/,MD=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,j0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,BD=j0,LD=/^[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])?)*$/,PD="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function yh(){return new RegExp(PD,"u")}var vh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,xh=e=>{let t=Xn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Sh=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,kh=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wh=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nu=/^[A-Za-z0-9_-]*$/,ZD=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,FD=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,_h=/^https?$/,$h=/^\+[1-9]\d{6,14}$/,O0="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",zh=new RegExp(`^${O0}$`);function U0(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Th(e){return new RegExp(`^${U0(e)}$`)}function Ch(e){let t=U0({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return new RegExp(`^${O0}T(?:${r})$`)}var Eh=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Ih=/^-?\d+n?$/,Dh=/^-?\d+$/,iu=/^-?\d+(?:\.\d+)?$/,Ah=/^(?:true|false)$/i,jh=/^null$/i;var Oh=/^undefined$/i;var Uh=/^[^A-Z]*$/,Nh=/^[^a-z]*$/,VD=/^[0-9a-fA-F]*$/;function ns(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function is(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var HD=/^[0-9a-fA-F]{32}$/,qD=ns(22,"=="),GD=is(22),YD=/^[0-9a-fA-F]{40}$/,WD=ns(27,"="),JD=is(27),XD=/^[0-9a-fA-F]{64}$/,KD=ns(43,"="),QD=is(43),eA=/^[0-9a-fA-F]{96}$/,tA=ns(64,""),nA=is(64),iA=/^[0-9a-fA-F]{128}$/,rA=ns(86,"=="),oA=is(86);var tt=$("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),R0={number:"number",bigint:"bigint",object:"date"},ru=$("$ZodCheckLessThan",(e,t)=>{tt.init(e,t);let n=R0[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ou=$("$ZodCheckGreaterThan",(e,t)=>{tt.init(e,t);let n=R0[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rh=$("$ZodCheckMultipleOf",(e,t)=>{tt.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Wm(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Mh=$("$ZodCheckNumberFormat",(e,t)=>{tt.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=th[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,n&&(l.pattern=Dh)}),e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Bh=$("$ZodCheckBigIntFormat",(e,t)=>{tt.init(e,t);let[n,r]=nh[t.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,o.minimum=n,o.maximum=r}),e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Lh=$("$ZodCheckMaxSize",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!$r(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:Xl(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ph=$("$ZodCheckMinSize",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!$r(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:Xl(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Zh=$("$ZodCheckSizeEquals",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!$r(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=r=>{let i=r.value,o=i.size;if(o===t.size)return;let a=o>t.size;r.issues.push({origin:Xl(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Fh=$("$ZodCheckMaxLength",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!$r(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let a=Kl(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Vh=$("$ZodCheckMinLength",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!$r(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let a=Kl(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Hh=$("$ZodCheckLengthEquals",(e,t)=>{var n;tt.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!$r(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{let i=r.value,o=i.length;if(o===t.length)return;let a=Kl(i),l=o>t.length;r.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),da=$("$ZodCheckStringFormat",(e,t)=>{var n,r;tt.init(e,t),e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qh=$("$ZodCheckRegex",(e,t)=>{da.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gh=$("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Uh),da.init(e,t)}),Yh=$("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nh),da.init(e,t)}),Wh=$("$ZodCheckIncludes",(e,t)=>{tt.init(e,t);let n=Xn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{let o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Jh=$("$ZodCheckStartsWith",(e,t)=>{tt.init(e,t);let n=new RegExp(`^${Xn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Xh=$("$ZodCheckEndsWith",(e,t)=>{tt.init(e,t);let n=new RegExp(`.*${Xn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function N0(e,t,n){e.issues.length&&t.issues.push(...xn(n,e.issues))}var Kh=$("$ZodCheckProperty",(e,t)=>{tt.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>N0(i,n,t.property));N0(r,n,t.property)}}),Qh=$("$ZodCheckMimeType",(e,t)=>{tt.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),ep=$("$ZodCheckOverwrite",(e,t)=>{tt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var rs=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
11
11
  `).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
12
12
  `))}};var tp={major:4,minor:4,patch:3};var ve=$("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tp;let r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(let i of r)for(let o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,l,c)=>{let u=Cr(a),d;for(let h of l){if(h._zod.def.when){if(ih(a)||!h._zod.def.when(a))continue}else if(u)continue;let m=a.issues.length,f=h._zod.check(a);if(f instanceof Promise&&c?.async===!1)throw new gi;if(d||f instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await f,a.issues.length!==m&&(u||(u=Cr(a,m)))});else{if(a.issues.length===m)continue;u||(u=Cr(a,m))}}return d?d.then(()=>a):a},o=(a,l,c)=>{if(Cr(a))return a.aborted=!0,a;let u=i(l,r,c);if(u instanceof Promise){if(c.async===!1)throw new gi;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,a,l)):o(u,a,l)}let c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new gi;return c.then(u=>i(u,r,l))}return i(c,r,l)}}_e(e,"~standard",()=>({validate:i=>{try{let o=ah(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return lh(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),wo=$("$ZodString",(e,t)=>{ve.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Eh(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Je=$("$ZodStringFormat",(e,t)=>{da.init(e,t),wo.init(e,t)}),ip=$("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ph),Je.init(e,t)}),rp=$("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=ko(r))}else t.pattern??(t.pattern=ko());Je.init(e,t)}),op=$("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=gh),Je.init(e,t)}),ap=$("$ZodURL",(e,t)=>{Je.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===_h.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),lp=$("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yh()),Je.init(e,t)}),sp=$("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=mh),Je.init(e,t)}),cp=$("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=sh),Je.init(e,t)}),up=$("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=ch),Je.init(e,t)}),dp=$("$ZodULID",(e,t)=>{t.pattern??(t.pattern=uh),Je.init(e,t)}),fp=$("$ZodXID",(e,t)=>{t.pattern??(t.pattern=dh),Je.init(e,t)}),mp=$("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=fh),Je.init(e,t)}),hp=$("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ch(t)),Je.init(e,t)}),pp=$("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=zh),Je.init(e,t)}),gp=$("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Th(t)),Je.init(e,t)}),yp=$("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=hh),Je.init(e,t)}),vp=$("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=vh),Je.init(e,t),e._zod.bag.format="ipv4"}),bp=$("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=bh),Je.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),xp=$("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=xh(t.delimiter)),Je.init(e,t),e._zod.bag.format="mac"}),Sp=$("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Sh),Je.init(e,t)}),kp=$("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=kh),Je.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(r.length!==2)throw new Error;let[i,o]=r;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function wp(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var _p=$("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=wh),Je.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{wp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Q0(e){if(!nu.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return wp(n)}var $p=$("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=nu),Je.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Q0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),zp=$("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$h),Je.init(e,t)});function ek(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var Tp=$("$ZodJWT",(e,t)=>{Je.init(e,t),e._zod.check=n=>{ek(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Cp=$("$ZodCustomStringFormat",(e,t)=>{Je.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),uu=$("$ZodNumber",(e,t)=>{ve.init(e,t),e._zod.pattern=e._zod.bag.pattern??iu,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Ep=$("$ZodNumberFormat",(e,t)=>{Mh.init(e,t),uu.init(e,t)}),os=$("$ZodBoolean",(e,t)=>{ve.init(e,t),e._zod.pattern=Ah,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),du=$("$ZodBigInt",(e,t)=>{ve.init(e,t),e._zod.pattern=Ih,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Ip=$("$ZodBigIntFormat",(e,t)=>{Bh.init(e,t),du.init(e,t)}),Dp=$("$ZodSymbol",(e,t)=>{ve.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Ap=$("$ZodUndefined",(e,t)=>{ve.init(e,t),e._zod.pattern=Oh,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),n}}),jp=$("$ZodNull",(e,t)=>{ve.init(e,t),e._zod.pattern=jh,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),Op=$("$ZodAny",(e,t)=>{ve.init(e,t),e._zod.parse=n=>n}),Up=$("$ZodUnknown",(e,t)=>{ve.init(e,t),e._zod.parse=n=>n}),Np=$("$ZodNever",(e,t)=>{ve.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Rp=$("$ZodVoid",(e,t)=>{ve.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),n}}),Mp=$("$ZodDate",(e,t)=>{ve.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function B0(e,t,n){e.issues.length&&t.issues.push(...xn(n,e.issues)),t.value[n]=e.value}var Bp=$("$ZodArray",(e,t)=>{ve.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let a=0;a<i.length;a++){let l=i[a],c=t.element._zod.run({value:l,issues:[]},r);c instanceof Promise?o.push(c.then(u=>B0(u,n,a))):B0(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function cu(e,t,n,r,i,o){let a=n in r;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...xn(n,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function tk(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);let n=eh(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function nk(e,t,n,r,i,o){let a=[],l=i.keySet,c=i.catchall._zod,u=c.def.type,d=c.optin==="optional",h=c.optout==="optional";for(let m in t){if(m==="__proto__"||l.has(m))continue;if(u==="never"){a.push(m);continue}let f=c.run({value:t[m],issues:[]},r);f instanceof Promise?e.push(f.then(y=>cu(y,n,m,t,d,h))):cu(f,n,m,t,d,h)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var ik=$("$ZodObject",(e,t)=>{if(ve.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}let r=oa(()=>tk(t));_e(e._zod,"propValues",()=>{let l=t.shape,c={};for(let u in l){let d=l[u]._zod;if(d.values){c[u]??(c[u]=new Set);for(let h of d.values)c[u].add(h)}}return c});let i=So,o=t.catchall,a;e._zod.parse=(l,c)=>{a??(a=r.value);let u=l.value;if(!i(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let d=[],h=a.shape;for(let m of a.keys){let f=h[m],y=f._zod.optin==="optional",k=f._zod.optout==="optional",E=f._zod.run({value:u[m],issues:[]},c);E instanceof Promise?d.push(E.then(g=>cu(g,l,m,u,y,k))):cu(E,l,m,u,y,k)}return o?nk(d,u,l,c,r.value,e):d.length?Promise.all(d).then(()=>l):l}}),Lp=$("$ZodObjectJIT",(e,t)=>{ik.init(e,t);let n=e._zod.parse,r=oa(()=>tk(t)),i=m=>{let f=new rs(["shape","payload","ctx"]),y=r.value,k=S=>{let v=Vc(S);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};f.write("const input = payload.value;");let E=Object.create(null),g=0;for(let S of y.keys)E[S]=`key_${g++}`;f.write("const newResult = {};");for(let S of y.keys){let v=E[S],C=Vc(S),K=m[S],q=K?._zod?.optin==="optional",w=K?._zod?.optout==="optional";f.write(`const ${v} = ${k(S)};`),q&&w?f.write(`
@@ -144,11 +144,11 @@ Default 5.`,placeholder:"5",value:S.maxIndexes,onChange:w=>v({...S,maxIndexes:w}
144
144
  `)),style:{...A(),fontFamily:ni,resize:"vertical"}}),(0,se.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:12},children:["The program first, then each argument on its own line. Spawned directly, so there are no pipes, no redirection and no ",(0,se.jsx)("code",{style:{fontFamily:ni},children:"&&"})," ","\u2014 put shell logic in a script instead."]})]}),(0,se.jsx)("button",{type:"button",style:{background:"none",border:"none",color:s.accent,cursor:"pointer",padding:0,fontSize:11},onClick:()=>i(y=>!y),children:l?"Enter a command instead":"It is a Python script"}),(0,se.jsx)("div",{style:{marginTop:10},children:(0,se.jsx)("button",{type:"button",style:{background:"none",border:"none",color:s.accent,cursor:"pointer",padding:0,fontSize:11},onClick:()=>a(y=>!y),children:o?"Hide advanced":"Advanced \u2014 JSON output, expiry, headers"})}),o&&(0,se.jsxs)("div",{style:{marginTop:10,paddingLeft:10,borderLeft:`2px solid ${s.border}`},children:[(0,se.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 10px"},children:"Leave these empty if the script prints a bare token. Fill the two paths in if it prints the gateway\u2019s JSON instead \u2014 then it refreshes on the real expiry rather than an assumed hour."}),(0,se.jsx)("label",{htmlFor:"lc-token-path",style:D(),children:"Token field"}),(0,se.jsx)("input",{id:"lc-token-path",type:"text",value:e.value.tokenPath??"",spellCheck:!1,placeholder:"access_token",onChange:y=>f("tokenPath",y.target.value.trim()===""?void 0:y.target.value),style:{...A(),fontFamily:ni}}),(0,se.jsxs)("label",{htmlFor:"lc-expires-path",style:D(),children:["Expiry field ",(0,se.jsx)("span",{style:{color:s.muted,fontWeight:400},children:"(seconds)"})]}),(0,se.jsx)("input",{id:"lc-expires-path",type:"text",value:e.value.expiresInPath??"",spellCheck:!1,placeholder:"expires_in",onChange:y=>f("expiresInPath",y.target.value.trim()===""?void 0:y.target.value),style:{...A(),fontFamily:ni}}),(0,se.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,se.jsxs)("div",{style:{flex:1},children:[(0,se.jsx)("label",{htmlFor:"lc-token-expiry",style:D(),children:"Assume it lasts (s)"}),(0,se.jsx)("input",{id:"lc-token-expiry",type:"text",inputMode:"numeric",value:e.value.fallbackExpirySeconds??"",placeholder:"3600",onChange:y=>f("fallbackExpirySeconds",Number(y.target.value)||void 0),style:A()})]}),(0,se.jsxs)("div",{style:{flex:1},children:[(0,se.jsx)("label",{htmlFor:"lc-token-skew",style:D(),children:"Refresh this early (s)"}),(0,se.jsx)("input",{id:"lc-token-skew",type:"text",inputMode:"numeric",value:e.value.refreshSkewSeconds??"",placeholder:"60",onChange:y=>f("refreshSkewSeconds",Number(y.target.value)||void 0),style:A()})]}),(0,se.jsxs)("div",{style:{flex:1},children:[(0,se.jsx)("label",{htmlFor:"lc-token-timeout",style:D(),children:"Give up after (s)"}),(0,se.jsx)("input",{id:"lc-token-timeout",type:"text",inputMode:"numeric",value:e.value.timeoutSeconds??"",placeholder:"30",onChange:y=>f("timeoutSeconds",Number(y.target.value)||void 0),style:A()})]})]}),(0,se.jsxs)("label",{htmlFor:"lc-token-cwd",style:D(),children:["Run it in ",(0,se.jsx)("span",{style:{color:s.muted,fontWeight:400},children:"(optional folder)"})]}),(0,se.jsx)("input",{id:"lc-token-cwd",type:"text",value:e.value.cwd??"",spellCheck:!1,onChange:y=>f("cwd",y.target.value.trim()===""?void 0:y.target.value),style:{...A(),fontFamily:ni}}),(0,se.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,se.jsxs)("div",{style:{flex:1},children:[(0,se.jsx)("label",{htmlFor:"lc-token-header",style:D(),children:"Header name"}),(0,se.jsx)("input",{id:"lc-token-header",type:"text",value:e.value.headerName??"",spellCheck:!1,placeholder:"Authorization",onChange:y=>f("headerName",y.target.value.trim()===""?void 0:y.target.value),style:{...A(),fontFamily:ni}})]}),(0,se.jsxs)("div",{style:{flex:1},children:[(0,se.jsx)("label",{htmlFor:"lc-token-prefix",style:D(),children:"Header prefix"}),(0,se.jsx)("input",{id:"lc-token-prefix",type:"text",value:e.value.headerPrefix??"",spellCheck:!1,placeholder:"Bearer ",onChange:y=>f("headerPrefix",y.target.value===""?void 0:y.target.value),style:{...A(),fontFamily:ni}})]})]}),(0,se.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:4},children:["Left empty, these follow the wire format \u2014 ",(0,se.jsx)("code",{style:{fontFamily:ni},children:"Authorization: Bearer"})," ","for OpenAI, ",(0,se.jsx)("code",{style:{fontFamily:ni},children:"x-api-key"})," for Anthropic."]})]})]})}var Ut=N(pe(),1);var he=N(ne(),1),Bz=N(pe(),1);function zn(e){return(0,he.jsxs)("div",{style:{marginBottom:10},children:[(0,he.jsx)("label",{htmlFor:e.id,style:D(),children:e.label}),(0,he.jsx)("input",{id:e.id,type:"text",value:e.value??"",placeholder:e.placeholder,onChange:t=>e.onChange(t.target.value),style:A()}),e.hint!==void 0&&(0,he.jsx)("span",{style:{color:s.muted,fontSize:11,display:"block",marginTop:2},children:e.hint})]})}function Mz(e){return(0,he.jsxs)("div",{style:{marginBottom:10},children:[(0,he.jsx)("label",{htmlFor:e.id,style:D(),children:e.label}),(0,he.jsx)("input",{id:e.id,type:"number",value:e.value??"",placeholder:e.placeholder,onChange:t=>{let n=Number.parseInt(t.target.value,10);e.onChange(Number.isNaN(n)?void 0:n)},style:A()})]})}function GU(e){let[t,n]=(0,Bz.useState)(!1);return(0,he.jsxs)("div",{style:{marginBottom:12},children:[(0,he.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{background:"transparent",border:"none",color:s.foreground,fontFamily:V,fontSize:12,padding:0,cursor:"pointer"},children:[t?"\u25BE":"\u25B8"," ",e.title]}),t&&(0,he.jsx)("div",{style:{marginTop:8,paddingLeft:12},children:e.children})]})}function Lz(e){let t=r=>e.onApigeeChange({...e.apigee,...r}),n=r=>e.onCertsChange({...e.certs,...r});return(0,he.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,he.jsxs)("div",{style:{marginBottom:12},children:[(0,he.jsx)("label",{htmlFor:"lc-auth-type",style:D(),children:"Authentication"}),(0,he.jsx)($e,{id:"lc-auth-type",value:e.authType,onChange:r=>e.onAuthTypeChange(r),style:{width:"100%"},options:[{value:"apiKey",label:"API key"},{value:"header",label:"A header the gateway expects"},{value:"tokenCommand",label:"Token from a script"},{value:"apigeeMtls",label:"Mutual TLS + OAuth (Apigee)"},{value:"none",label:"None"}]})]}),e.authType==="apigeeMtls"&&(0,he.jsxs)(he.Fragment,{children:[(0,he.jsxs)("div",{style:{marginBottom:12},children:[(0,he.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Client certificate"}),(0,he.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Must live outside the workspace \u2014 a repository must not be able to read or replace your key material. Filenames resolve against the directory; absolute paths override it."})]}),(0,he.jsx)(zn,{id:"lc-cert-dir",label:"Certificate directory",value:e.certs.certDir,placeholder:"C:\\\\Users\\\\you\\\\certs",hint:"Leave blank to use the global certDir from config.",onChange:r=>n({certDir:r})}),(0,he.jsx)(zn,{id:"lc-cert-file",label:"Certificate file",value:e.certs.certFile,placeholder:"client.crt",onChange:r=>n({certFile:r})}),(0,he.jsx)(zn,{id:"lc-key-file",label:"Private key file",value:e.certs.keyFile,placeholder:"client.key",onChange:r=>n({keyFile:r})}),(0,he.jsx)(zn,{id:"lc-pfx-file",label:"PFX bundle (instead of certificate + key)",value:e.certs.pfxFile,placeholder:"client.pfx",hint:"Corporate Windows PKI usually issues a .pfx.",onChange:r=>n({pfxFile:r})}),(0,he.jsx)(zn,{id:"lc-ca-file",label:"Extra CA bundle",value:e.certs.caFile,placeholder:"corp-root.pem",hint:"Needed when your network intercepts TLS. NODE_EXTRA_CA_CERTS also works.",onChange:r=>n({caFile:r})}),(0,he.jsx)(Ri,{id:"lc-cert-passphrase",label:"Key / PFX passphrase",hasValue:e.hasCertPassphrase,value:e.certPassphrase,onChange:e.onCertPassphraseChange,placeholder:"Leave blank if the key is not encrypted"}),(0,he.jsx)("div",{style:{marginBottom:12},children:(0,he.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Token endpoint"})}),(0,he.jsx)(zn,{id:"lc-token-url",label:"Token URL",value:e.apigee.tokenUrl,placeholder:"https://gateway.example.com/oauth/token",hint:"Defaults to the base URL's origin + /oauth/token.",onChange:r=>t({tokenUrl:r})}),(0,he.jsx)(zn,{id:"lc-client-id",label:"Client ID",value:e.apigee.clientId,onChange:r=>t({clientId:r})}),(0,he.jsx)(Ri,{id:"lc-client-secret",label:"Client secret",hasValue:e.hasClientSecret,value:e.clientSecret,onChange:e.onClientSecretChange,placeholder:"Stored in the OS keychain"}),(0,he.jsx)(zn,{id:"lc-scope",label:"Scope",value:e.apigee.scope,placeholder:"(optional)",onChange:r=>t({scope:r})}),(0,he.jsxs)(GU,{title:"Token response and header mapping",children:[(0,he.jsx)(zn,{id:"lc-grant-type",label:"Grant type",value:e.apigee.grantType,placeholder:"client_credentials",onChange:r=>t({grantType:r})}),(0,he.jsx)(zn,{id:"lc-token-path",label:"Token path in response",value:e.apigee.tokenPath,placeholder:"access_token",hint:"Dotted path, e.g. data.jwt if your gateway nests it.",onChange:r=>t({tokenPath:r})}),(0,he.jsx)(zn,{id:"lc-expires-path",label:"Expiry path in response",value:e.apigee.expiresInPath,placeholder:"expires_in",onChange:r=>t({expiresInPath:r})}),(0,he.jsx)(zn,{id:"lc-token-header",label:"Header name",value:e.apigee.tokenHeaderName,placeholder:"Authorization",onChange:r=>t({tokenHeaderName:r})}),(0,he.jsx)(zn,{id:"lc-token-prefix",label:"Header prefix",value:e.apigee.tokenHeaderPrefix,placeholder:"Bearer ",onChange:r=>t({tokenHeaderPrefix:r})}),(0,he.jsx)(Mz,{id:"lc-fallback-expiry",label:"Fallback expiry (seconds)",value:e.apigee.fallbackExpirySeconds,placeholder:"3600",onChange:r=>t({...r!==void 0?{fallbackExpirySeconds:r}:{}})}),(0,he.jsx)(Mz,{id:"lc-refresh-skew",label:"Refresh skew (seconds)",value:e.apigee.refreshSkewSeconds,placeholder:"60",onChange:r=>t({...r!==void 0?{refreshSkewSeconds:r}:{}})})]})]}),(0,he.jsxs)("div",{style:{marginBottom:12,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,he.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Connection security"}),(0,he.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Needed when your network intercepts TLS, which is common on a corporate gateway. This is separate from the client certificate above: it decides whether you trust the server, not how the server identifies you."})]}),(0,he.jsx)(zn,{id:"lc-connection-ca",label:"Additional CA certificate",value:e.connectionTls.caFile,placeholder:"C:\\\\certs\\\\corp-root.pem",hint:"Only needed if this gateway uses a different root from the one in Settings \u2192 Network. Added to that one and to the built-in roots, never replacing either.",onChange:r=>e.onConnectionTlsChange({...e.connectionTls,caFile:r})}),(0,he.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,he.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:e.connectionTls.rejectUnauthorized===!1,onChange:r=>e.onConnectionTlsChange({...e.connectionTls,...r.target.checked?{rejectUnauthorized:!1}:{rejectUnauthorized:void 0}})}),(0,he.jsx)("span",{style:{color:s.foreground},children:"Skip certificate verification for this profile"})]}),e.connectionTls.rejectUnauthorized===!1&&(0,he.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can now read and modify it, including your API key, and nothing will detect it. Supplying the CA file above is the safe fix and solves the same problem."})]})}var wt=N(ne(),1);function Pz(e){let t=e.value.trim(),n=t.length>0?Kv(t,e.capabilities):void 0,r=o=>e.onCapabilitiesChange({...e.capabilities,...o}),i=()=>{let o={...e.capabilities};delete o.contextWindow,e.onCapabilitiesChange(o)};return(0,wt.jsxs)("div",{style:{marginBottom:12},children:[(0,wt.jsx)("label",{htmlFor:"lc-model",style:D(),children:"Model"}),(0,wt.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,wt.jsx)("input",{id:"lc-model",type:"text",value:e.value,placeholder:"gpt-4o-mini",onChange:o=>e.onChange(o.target.value),style:A()}),(0,wt.jsx)("button",{type:"button",style:z(),onClick:e.onRefresh,disabled:e.loading,children:e.loading?"Loading\u2026":"Refresh"})]}),e.models.length>0&&(0,wt.jsx)($e,{ariaLabel:"Choose from the gateway's catalogue",value:e.models.includes(e.value)?e.value:"",onChange:o=>{o.length>0&&e.onChange(o)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.models.length} available model(s)\u2026`},...e.models.map(o=>({value:o,label:o}))]}),e.warning!==void 0&&e.models.length===0&&(0,wt.jsx)("span",{style:{...nn(),color:s.muted},children:e.warning}),e.error!==void 0&&(0,wt.jsx)("span",{style:nn(),children:e.error}),n!==void 0&&(0,wt.jsxs)("div",{style:{marginTop:6,padding:8,border:`1px solid ${s.border}`,borderRadius:3},children:[(0,wt.jsx)("div",{style:{color:s.muted,fontSize:11,marginBottom:6},children:n.known?"Capabilities for this model. Edit any of them if your deployment differs.":"Unrecognised model id \u2014 these are conservative guesses. Correct them here."}),(0,wt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[(0,wt.jsx)("label",{htmlFor:"lc-context-window",style:{...D(),marginBottom:0,flex:1},children:"Context window (tokens)"}),(0,wt.jsx)("input",{id:"lc-context-window",type:"number",min:1,value:e.capabilities.contextWindow??n.contextWindow,onChange:o=>{let a=Number.parseInt(o.target.value,10);Number.isNaN(a)||a<=0?i():r({contextWindow:a})},style:{...A(),width:130,flex:"none"}}),e.capabilities.contextWindow!==void 0&&(0,wt.jsx)("button",{type:"button",style:z(),onClick:i,title:"Use the built-in value",children:"Reset"})]}),(0,wt.jsxs)("div",{style:{display:"flex",gap:16},children:[(0,wt.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:s.foreground},children:[(0,wt.jsx)("input",{type:"checkbox",checked:n.supportsVision,onChange:o=>r({supportsVision:o.target.checked})}),"Accepts images"]}),(0,wt.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:s.foreground},children:[(0,wt.jsx)("input",{type:"checkbox",checked:n.supportsTools,onChange:o=>r({supportsTools:o.target.checked})}),"Supports tool calling"]})]})]})]})}var Mi=N(ne(),1);var YU={certificates:"Load certificates",token:"Acquire credential",models:"List models"};function WU(e){return e==="ok"?{glyph:"\u2713",color:"var(--vscode-testing-iconPassed, #3fb950)"}:e==="failed"?{glyph:"\u2715",color:s.error}:e==="note"?{glyph:"\u2139",color:s.muted}:{glyph:"\u2013",color:s.muted}}function Zz(e){return(0,Mi.jsxs)("div",{style:{marginBottom:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,Mi.jsx)("button",{type:"button",style:z(),onClick:e.onRun,disabled:e.running,children:e.running?"Testing\u2026":"Test Connection"}),e.result!==void 0&&(0,Mi.jsx)("div",{style:{marginTop:8,fontFamily:V,fontSize:12},children:e.result.steps.map(t=>{let n=WU(t.status);return(0,Mi.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:4},children:[(0,Mi.jsx)("span",{style:{color:n.color,width:12,flexShrink:0},children:n.glyph}),(0,Mi.jsxs)("div",{children:[(0,Mi.jsx)("div",{style:{color:s.foreground},children:YU[t.step]}),(0,Mi.jsx)("div",{style:{color:t.status==="failed"?s.error:s.muted,fontSize:11},children:t.detail})]})]},t.step)})})]})}function Hb(e){let[t,n]=(0,Ut.useState)(e.initial.label),[r,i]=(0,Ut.useState)(e.initial.wireFormat),[o,a]=(0,Ut.useState)(e.initial.baseUrl),[l,c]=(0,Ut.useState)(e.initial.model),[u,d]=(0,Ut.useState)(""),[h,m]=(0,Ut.useState)(e.initial.authHeaders??[{name:"",valueRef:""}]),[f,y]=(0,Ut.useState)(e.initial.tokenCommand??{command:["python",""]}),[k,E]=(0,Ut.useState)(e.initial.authType),[g,b]=(0,Ut.useState)(e.initial.apigee??{}),[S,v]=(0,Ut.useState)(""),[C,K]=(0,Ut.useState)(e.initial.certs??{}),[q,w]=(0,Ut.useState)(""),[R,ce]=(0,Ut.useState)(e.initial.modelCapabilities??{}),[Me,ct]=(0,Ut.useState)(e.initial.thinking?.level??""),[en,cn]=(0,Ut.useState)(e.initial.thinking?.style??"effort"),[hi,L]=(0,Ut.useState)(e.initial.connectionTls??{}),[de,He]=(0,Ut.useState)([]),[Ft,U]=(0,Ut.useState)(void 0),fe=rt=>de.find(qi=>qi.path===rt)?.message,yt=rt=>{let qi=Ed.find(pi=>pi.id===rt);qi!==void 0&&(i(qi.wireFormat),a(qi.baseUrl),t.trim().length===0&&n(qi.label))},et=()=>({...e.initial.id!==void 0?{id:e.initial.id}:{},label:t,wireFormat:r,baseUrl:o,model:l,authType:k,apiKey:u,...k==="tokenCommand"?{tokenCommand:f}:{},...k==="header"?{authHeaders:h}:{},...k==="apigeeMtls"?{apigee:g,clientSecret:S,certs:C,certPassphrase:q}:{},...Object.keys(R).length>0?{modelCapabilities:R}:{},...Me===""?{}:{thinking:{level:Me,...r==="openai"?{style:en}:{}}},...hi.caFile!==void 0||hi.rejectUnauthorized!==void 0?{connectionTls:hi}:{}}),At=()=>{let rt=o.trim();if(rt===Ft||rt.length===0)return;try{let pi=new URL(rt);if(pi.protocol!=="https:"&&pi.protocol!=="http:")return}catch{return}(k==="none"||u.trim().length>0||e.initial.hasApiKey||k==="apigeeMtls"||k==="header"&&h.some(pi=>pi.name.trim().length>0&&pi.valueRef.trim().length>0)||k==="tokenCommand"&&f.command.filter(pi=>pi.trim().length>0).length>0)&&(U(rt),e.onRequestModels(et()))},_i=()=>{let rt=Xv({label:t,wireFormat:r,baseUrl:o,model:l});He(rt),!(rt.length>0)&&e.onSave(et())};return(0,Oe.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Oe.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:e.initial.id===void 0?"Add Provider":"Edit Provider"}),(0,Oe.jsxs)("div",{style:{marginBottom:12},children:[(0,Oe.jsx)("label",{htmlFor:"lc-preset",style:D(),children:"Preset"}),(0,Oe.jsx)($e,{id:"lc-preset",value:"",placeholder:"Choose a preset\u2026",onChange:yt,style:{width:"100%"},options:Ed.map(rt=>({value:rt.id,label:rt.label}))})]}),(0,Oe.jsxs)("div",{style:{marginBottom:12},children:[(0,Oe.jsx)("label",{htmlFor:"lc-label",style:D(),children:"Label"}),(0,Oe.jsx)("input",{id:"lc-label",type:"text",value:t,onChange:rt=>n(rt.target.value),style:A()}),fe("label")!==void 0&&(0,Oe.jsx)("span",{style:nn(),children:fe("label")})]}),(0,Oe.jsxs)("div",{style:{marginBottom:12},children:[(0,Oe.jsx)("label",{htmlFor:"lc-base-url",style:D(),children:"Base URL"}),(0,Oe.jsx)("input",{id:"lc-base-url",type:"text",value:o,placeholder:"https://api.openai.com/v1",onChange:rt=>a(rt.target.value),onBlur:At,style:A()}),fe("baseUrl")!==void 0&&(0,Oe.jsx)("span",{style:nn(),children:fe("baseUrl")})]}),(0,Oe.jsx)(Pz,{value:l,onChange:c,models:e.models,...e.modelsWarning!==void 0?{warning:e.modelsWarning}:{},loading:e.modelsLoading,onRefresh:()=>e.onRequestModels(et()),...fe("model")!==void 0?{error:fe("model")}:{},capabilities:R,onCapabilitiesChange:ce}),(0,Oe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:12},children:[(0,Oe.jsx)("label",{style:D(),children:"Thinking"}),(0,Oe.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,Oe.jsx)("div",{style:{minWidth:150,flex:1},children:(0,Oe.jsx)($e,{compact:!0,ariaLabel:"Thinking level",value:Me,onChange:ct,options:[{value:"",label:"Send nothing (default)"},{value:"off",label:"Off"},{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"}]})}),r==="openai"&&Me!==""&&(0,Oe.jsx)("div",{style:{minWidth:210,flex:1},children:(0,Oe.jsx)($e,{compact:!0,ariaLabel:"Thinking parameter",value:en,onChange:rt=>cn(rt),options:[{value:"effort",label:"as reasoning_effort"},{value:"qwen",label:"as enable_thinking (Qwen)"}]})})]}),(0,Oe.jsx)("span",{style:{color:s.muted,fontSize:11,lineHeight:1.5},children:Me===""?"Nothing is sent, which is how every profile behaved before this existed. Set it only against a gateway you know accepts it.":r!=="openai"?"This wire format spells thinking one way, so there is nothing to choose.":en==="effort"?"Sends reasoning_effort. Right for OpenAI and most gateways fronting a reasoning model.":"Sends chat_template_kwargs.enable_thinking, which vLLM and SGLang expose for Qwen3 and its relatives. On or off only \u2014 the level is not a depth dial here."})]}),k==="header"&&(0,Oe.jsx)(Uz,{headers:h,onChange:m}),k==="tokenCommand"&&(0,Oe.jsx)(Rz,{value:f,onChange:y,...e.onBrowse===void 0?{}:{onBrowse:e.onBrowse},...e.pickedPath===void 0?{}:{pickedPath:e.pickedPath}}),k==="apiKey"&&(0,Oe.jsxs)("div",{onBlur:At,children:[(0,Oe.jsx)(Ri,{id:"lc-api-key",label:"API key",hasValue:e.initial.hasApiKey,value:u,onChange:d,...e.initial.apiKeyEnvVar===void 0?{}:{envVar:e.initial.apiKeyEnvVar}}),(0,Oe.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:-10,marginBottom:16},children:["Enter ",(0,Oe.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"env:API_TOKEN"})," to read the key from that environment variable instead of storing it. It is read fresh on every request, and must be exported before Light Code starts \u2014 a child process cannot see a variable its parent set afterwards."]})]}),(0,Oe.jsx)(Lz,{authType:k,onAuthTypeChange:E,apigee:g,onApigeeChange:b,clientSecret:S,onClientSecretChange:v,hasClientSecret:e.initial.hasClientSecret,certs:C,onCertsChange:K,certPassphrase:q,onCertPassphraseChange:w,hasCertPassphrase:e.initial.hasCertPassphrase,connectionTls:hi,onConnectionTlsChange:L}),(0,Oe.jsx)(Zz,{running:e.testRunning,...e.testResult!==void 0?{result:e.testResult}:{result:void 0},onRun:()=>e.onTestConnection(et())}),(0,Oe.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,Oe.jsx)("button",{type:"button",style:le(!1),onClick:_i,children:"Save"}),(0,Oe.jsx)("button",{type:"button",style:z(),onClick:e.onCancel,children:"Cancel"})]})]})}function qb(e){let[t,n]=(0,Fz.useState)({mode:"closed"}),r=i=>{e.onEditingChange(),n(i)};if(t.mode!=="closed"){let i=t.mode==="edit"?{id:t.profile.id,label:t.profile.label,wireFormat:t.profile.wireFormat,baseUrl:t.profile.baseUrl,model:t.profile.model,authType:t.profile.authType,hasApiKey:t.profile.hasApiKey,...t.profile.authHeaders===void 0?{}:{authHeaders:t.profile.authHeaders},...t.profile.tokenCommand===void 0?{}:{tokenCommand:t.profile.tokenCommand},...t.profile.apiKeyEnvVar===void 0?{}:{apiKeyEnvVar:t.profile.apiKeyEnvVar},hasClientSecret:t.profile.hasClientSecret,hasCertPassphrase:t.profile.hasCertPassphrase,...t.profile.apigee!==void 0?{apigee:t.profile.apigee}:{},...t.profile.certs!==void 0?{certs:t.profile.certs}:{},...t.profile.modelCapabilities!==void 0?{modelCapabilities:t.profile.modelCapabilities}:{},...t.profile.connectionTls!==void 0?{connectionTls:t.profile.connectionTls}:{}}:{label:"",wireFormat:"openai",baseUrl:"",model:"",authType:"apiKey",hasApiKey:!1,hasClientSecret:!1,hasCertPassphrase:!1};return(0,Fe.jsx)(Hb,{onBrowse:e.onBrowse,...e.pickedPath===void 0?{}:{pickedPath:e.pickedPath},initial:i,onSave:o=>{e.onSave(o),n({mode:"closed"})},onCancel:()=>n({mode:"closed"}),onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}})}return(0,Fe.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,Fe.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Providers"}),(0,Fe.jsx)(Ui,{scope:"user"})]}),e.profiles.length===0&&(0,Fe.jsx)("p",{style:{color:s.muted,fontFamily:V},children:"No providers configured yet. Add one to start chatting."}),e.profiles.map(i=>{let o=i.id===e.activeProfileId,a=e.sharedProfileIds?.includes(i.id)===!0;return(0,Fe.jsxs)("div",{"data-profile":i.id,style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${s.border}`,background:o?s.assistantBubble:"transparent"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,Fe.jsx)("strong",{children:i.label}),o&&(0,Fe.jsx)(Ui,{scope:"user"})]}),(0,Fe.jsxs)("div",{style:{color:s.muted,fontSize:12,marginBottom:8},children:[i.baseUrl," \u2014 ",i.model]}),a&&(0,Fe.jsxs)("div",{style:{color:s.muted,fontSize:10,marginBottom:6},children:[(0,Fe.jsx)("span",{style:{...ot(),fontSize:9,marginRight:5},children:"provided"}),"Set up by an administrator for everyone. Duplicate it to make a copy you can edit with your own key."]}),(0,Fe.jsxs)("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[!o&&(0,Fe.jsx)("button",{type:"button",title:"Use this profile","aria-label":"Use this profile",style:ze("secondary"),onClick:()=>e.onSetActive(i.id),children:(0,Fe.jsx)(Di,{})}),!a&&(0,Fe.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:ze("secondary"),onClick:()=>r({mode:"edit",profile:i}),children:(0,Fe.jsx)(W_,{})}),(0,Fe.jsx)("button",{type:"button",title:a?"Copy this into a profile of your own":"Duplicate","aria-label":"Duplicate",style:ze("secondary"),onClick:()=>e.onDuplicate(i.id),children:(0,Fe.jsx)(Ur,{})}),!a&&(0,Fe.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...ze("secondary"),color:s.error},onClick:()=>e.onDelete(i.id),children:(0,Fe.jsx)(Ht,{})})]})]},i.id)}),(0,Fe.jsx)("button",{type:"button",style:le(!1),onClick:()=>r({mode:"create"}),children:"Add Provider"}),(0,Fe.jsxs)("div",{style:{marginTop:20,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,Fe.jsx)("label",{style:D(),children:"Config file"}),(0,Fe.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,Fe.jsx)("button",{type:"button",style:z(),onClick:e.onExport,children:"Export"}),(0,Fe.jsx)("button",{type:"button",style:z(),onClick:e.onImport,children:"Import"})]})]})]})}var Ne=N(ne(),1),Qd=N(pe(),1);var Xa="#22C55E",Hz=[{id:"green",label:"Green",value:Xa},{id:"purple",label:"Purple",value:"#A855F7"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"graphite",label:"Graphite",value:"#64748B"}],Fr="#D97757",Yb=[{id:"coral",label:"Coral",value:Fr},{id:"orange",label:"Orange",value:"#F97316"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"purple",label:"Purple",value:"#A855F7"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"graphite",label:"Graphite",value:"#64748B"}];function Wd(e){let t=e.trim().replace(/^#/,""),n=t.length===3?t.replace(/./g,r=>r+r):t;if(/^[0-9a-fA-F]{6}$/.test(n))return{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16)}}function Jd(e){return Wd(e)!==void 0}function Gb({r:e,g:t,b:n}){let r=i=>Math.max(0,Math.min(255,Math.round(i))).toString(16).padStart(2,"0");return`#${r(e)}${r(t)}${r(n)}`}function Vz(e,t){return t<=1?{r:e.r*t,g:e.g*t,b:e.b*t}:{r:e.r+(255-e.r)*(t-1),g:e.g+(255-e.g)*(t-1),b:e.b+(255-e.b)*(t-1)}}function JU({r:e,g:t,b:n}){let r=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Xd(e){let t=Wd(e);return t===void 0?"#ffffff":JU(t)>.35?"#12111a":"#ffffff"}function Wb(e,t,n){let r=Wd(t)??Wd(n);if(r===void 0)return;let i=document.documentElement.style,o=Gb(r);i.setProperty(`--lc-${e}`,o),i.setProperty(`--lc-${e}-deep`,Gb(Vz(r,.62))),i.setProperty(`--lc-${e}-bright`,Gb(Vz(r,1.22))),i.setProperty(`--lc-${e}-contrast`,Xd(o)),i.setProperty(`--lc-${e}-a12`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.12)`),i.setProperty(`--lc-${e}-a20`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.20)`),i.setProperty(`--lc-${e}-a35`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.35)`)}function Jb(e){Wb("accent",e,Xa)}function Xb(e){Wb("expert",e,Fr)}var Kb={expert:Fr,programmer:"#8B7FD4",reviewer:"#3B9EDB",tester:"#D4A72C",librarian:"#59B89C"};function Qb(e,t){Wb(`agent-${e}`,t,Kb[e]??Fr)}function qz(e,t=[]){let n=new Set([...Object.keys(Kb),...t,...Object.keys(e??{})]);for(let r of n)Qb(r,e?.[r]??Kd(r))}function Kd(e){return Kb[e]??XU(e)}function XU(e){let t=2166136261;for(let n=0;n<e.length;n+=1)t^=e.charCodeAt(n),t=Math.imul(t,16777619)>>>0;return t^=t>>>16,t=Math.imul(t,2146121005)>>>0,t^=t>>>15,t=Math.imul(t,2221713035)>>>0,t^=t>>>16,KU((t>>>0)%12*30,.52,.58)}function KU(e,t,n){let r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),o=n-r/2,[a,l,c]=e<60?[r,i,0]:e<120?[i,r,0]:e<180?[0,r,i]:e<240?[0,i,r]:e<300?[i,0,r]:[r,0,i],u=d=>Math.round((d+o)*255).toString(16).padStart(2,"0");return`#${u(a)}${u(l)}${u(c)}`}function ex(e){let[t,n]=(0,Qd.useState)(e.value);(0,Qd.useEffect)(()=>n(e.value),[e.value]);let r=o=>{n(o),Jd(o)&&e.onChange(o)},i=e.value.toLowerCase();return(0,Ne.jsxs)("div",{style:{marginBottom:22},children:[(0,Ne.jsx)("span",{style:D(),children:e.label}),(0,Ne.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.description}),(0,Ne.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginBottom:10},children:e.presets.map(o=>{let a=o.value.toLowerCase()===i;return(0,Ne.jsx)("button",{type:"button",className:"lc-swatch",title:o.label,"aria-label":o.label,"aria-pressed":a,onClick:()=>r(o.value),style:{width:26,height:26,borderRadius:"50%",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",justifyContent:"center",background:o.value,color:Xd(o.value)},children:a&&(0,Ne.jsx)(Di,{size:13})},o.id)})}),(0,Ne.jsx)("label",{style:{...D(),marginBottom:4},htmlFor:e.inputId,children:"Or a custom hex colour"}),(0,Ne.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ne.jsx)("input",{id:e.inputId,type:"text",value:t,spellCheck:!1,placeholder:e.fallback,onChange:o=>r(o.target.value),style:{...A(),width:130,fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,Ne.jsx)("span",{"aria-hidden":"true",style:{width:26,height:26,borderRadius:8,flexShrink:0,background:Jd(t)?t:"transparent",border:`1px solid ${s.border}`}}),!Jd(t)&&(0,Ne.jsxs)("span",{style:{color:s.error,fontSize:11,fontFamily:V},children:["Needs a hex colour, e.g. ",e.fallback]})]})]})}function Gz(e){let t=e.accentColor.toLowerCase()===e.expertColor.toLowerCase();return(0,Ne.jsxs)("section",{children:[e.onChangeTheme!==void 0&&(0,Ne.jsxs)("div",{style:{marginBottom:16},children:[(0,Ne.jsx)("label",{style:D(),children:"Theme"}),(0,Ne.jsx)("div",{style:{display:"flex",gap:6,marginBottom:4},children:["system","light","dark"].map(n=>{let r=(e.theme??"system")===n;return(0,Ne.jsx)("button",{type:"button",onClick:()=>e.onChangeTheme?.(n),style:{...A(),width:"auto",cursor:"pointer",textTransform:"capitalize",...r?{borderColor:s.accent,color:s.accent,fontWeight:600}:{}},children:n},n)})}),(0,Ne.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:[(0,Ne.jsx)("strong",{children:"System"})," follows your browser\u2019s appearance setting \u2014 which is the browser\u2019s own, not Windows\u2019. If your browser is pinned to light by policy, choose Dark here instead."]})]}),(0,Ne.jsx)(ex,{label:"Accent colour",description:"Buttons, your messages, selections and focus rings.",value:e.accentColor,presets:Hz,fallback:Xa,inputId:"lc-accent-hex",onChange:e.onChangeAccent}),(0,Ne.jsx)(ex,{label:"Expert colour",description:"Marks answers that came from Claude rather than from your own model. Kept separate from the accent so the two are told apart at a glance.",value:e.expertColor,presets:Yb,fallback:Fr,inputId:"lc-expert-hex",onChange:e.onChangeExpert}),e.agentRoles.length>0&&(0,Ne.jsx)("div",{style:{marginTop:4},children:e.agentRoles.filter(n=>n.role!=="expert").map(n=>(0,Ne.jsx)(ex,{label:`${n.name} colour`,description:`Marks answers from the ${n.name.toLowerCase()}.`,value:e.agentColors[n.role]??Kd(n.role),presets:Yb,fallback:Kd(n.role),inputId:`lc-agent-${n.role}-hex`,onChange:r=>e.onChangeAgentColor(n.role,r)},n.role))}),t&&(0,Ne.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 14px"},children:"These are the same colour, so expert answers will not stand out. Only the expert mark will tell them apart."}),(0,Ne.jsxs)("div",{style:{borderTop:`1px solid ${s.border}`,paddingTop:12},children:[(0,Ne.jsx)("span",{style:D(),children:"Preview"}),(0,Ne.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:6},children:[(0,Ne.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,Ne.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 4px 14px",background:`linear-gradient(135deg, ${e.accentColor}, ${e.accentColor})`,color:Xd(e.accentColor),fontSize:12,fontFamily:V},children:"Your message"})}),(0,Ne.jsx)("div",{style:{display:"flex"},children:(0,Ne.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 14px 4px",background:s.assistantBubble,color:s.foreground,fontSize:12,fontFamily:V},children:"The assistant's reply"})}),(0,Ne.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:6,alignSelf:"flex-start",padding:"6px 10px",borderRadius:10,border:`1px solid ${e.expertColor}`,background:s.expertSoft,color:e.expertColor,fontSize:12,fontFamily:V},children:[(0,Ne.jsx)(wn,{size:12}),"Answered by the expert"]})]})]})]})}function tx(e){if(e===void 0)return;if(e.error!==void 0)return`Failed: ${e.error}`;let t=e.indexed??0;return`Indexed ${String(t)} ${t===1?"entry":"entries"}.`}var QU={expert:"agents"},Yz=[{id:"providers",label:"Providers",Icon:i$},{id:"approvals",label:"Approvals",Icon:ub},{id:"mcp",label:"MCP",Icon:r$},{id:"search",label:"Search",Icon:o$},{id:"agents",label:"Agents",Icon:wn},{id:"schedules",label:"Schedules",Icon:f$},{id:"python",label:"Python",Icon:l$},{id:"tools",label:"Tools",Icon:c$},{id:"outlook",label:"Outlook",Icon:u$},{id:"customData",label:"Custom data",Icon:h$},{id:"skills",label:"Skills",Icon:d$},{id:"network",label:"Network",Icon:a$},{id:"reviews",label:"Review",Icon:ub},{id:"variables",label:"Variables",Icon:t$},{id:"appearance",label:"Appearance",Icon:n$}];function nx(e){let[t,n]=(0,ef.useState)("providers"),r={variables:e.variables!==void 0,reviews:e.reviews!==void 0,outlook:e.offersOffice!==!1},i=Yz.filter(l=>r[l.id]??!0),o=i.some(l=>l.id===t)?t:"providers",a=e.requestedTab;return(0,ef.useEffect)(()=>{if(a===void 0)return;let l=QU[a.tab]??a.tab;Yz.some(c=>c.id===l)&&n(l)},[a]),(0,lt.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,lt.jsx)("div",{role:"tablist",className:"lc-scroll",style:{display:"flex",borderBottom:`1px solid ${s.border}`,flexShrink:0,overflowX:"auto"},children:i.map(l=>{let c=o===l.id;return(0,lt.jsxs)("button",{type:"button",role:"tab","aria-selected":c,className:"lc-tab",title:l.label,"aria-label":l.label,onClick:()=>n(l.id),style:{display:"inline-flex",alignItems:"center",gap:5,padding:c?"8px 10px":"8px 8px",fontFamily:V,fontSize:12,background:"transparent",color:c?s.accent:s.muted,border:"none",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0},children:[(0,lt.jsx)(l.Icon,{size:15}),c&&(0,lt.jsx)("span",{children:l.label})]},l.id)})}),(0,lt.jsx)("div",{className:"lc-scroll lc-panel",style:{flex:1,minHeight:0,overflowY:"auto"},children:o==="reviews"&&e.reviews!==void 0?(0,lt.jsx)(zz,{...e.reviews}):o==="variables"&&e.variables!==void 0?(0,lt.jsx)(Cz,{...e.variables}):o==="appearance"?(0,lt.jsx)("div",{style:{padding:12},children:(0,lt.jsx)(Gz,{accentColor:e.accentColor,onChangeAccent:e.onSetAccentColor,expertColor:e.expertColor,onChangeExpert:e.onSetExpertColor,agentRoles:e.agents.roles.map(l=>({role:l.role,name:l.name})),agentColors:e.agents.colors,onChangeAgentColor:e.onSetAgentColor,...e.theme===void 0?{}:{theme:e.theme},...e.choosesTheme===!0&&e.onSetTheme!==void 0?{onChangeTheme:e.onSetTheme}:{}})}):o==="providers"?(0,lt.jsx)(qb,{onBrowse:e.onBrowse,...e.pickedPath===void 0?{}:{pickedPath:e.pickedPath},...e.sharedProfileIds!==void 0?{sharedProfileIds:e.sharedProfileIds}:{},profiles:e.profiles,activeProfileId:e.activeProfileId,onSave:e.onSave,onDuplicate:e.onDuplicate,onDelete:e.onDelete,onSetActive:e.onSetActive,onExport:e.onExport,onImport:e.onImport,onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,onEditingChange:e.onEditingChange,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}}):o==="approvals"?(0,lt.jsx)(jb,{approvals:e.approvals,onSetAutoApprove:e.onSetAutoApprove,onRevokeTool:e.onRevokeTool,onRevokeCommand:e.onRevokeCommand,maxIterations:e.maxIterations,onSetMaxIterations:e.onSetMaxIterations,readRoots:e.readRoots,onSetReadRoots:e.onSetReadRoots}):o==="search"?(0,lt.jsx)(xz,{...e.search}):o==="schedules"?(0,lt.jsx)(Oz,{...e.schedules}):o==="skills"?(0,lt.jsx)(jz,{...e.skills}):o==="tools"?(0,lt.jsx)($z,{...e.tools}):o==="outlook"?(0,lt.jsx)(_z,{...e.outlook,onOpenTools:()=>n("tools")}):o==="customData"?(0,lt.jsx)(tz,{...e.customData,onOpenPython:()=>n("python")}):o==="python"?(0,lt.jsx)(kz,{...e.python}):o==="network"?(0,lt.jsx)(Sz,{...e.network,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):o==="agents"?(0,lt.jsx)(sz,{...e.agents,budgetPanel:(0,lt.jsx)(fz,{expert:e.expert,onSave:e.onSaveExpert,onRecheck:e.onRecheckExpert,onMeasureCost:e.onMeasureCost,onClearPricing:e.onClearPricing,onSetKeepAlive:e.onSetKeepAlive,onBrowse:e.onBrowse,pickedPath:e.pickedPath}),fitPanel:(0,lt.jsx)(hz,{assessments:e.expert?.assessments??[],seatFits:e.expert?.seatFits??[],expertGuidance:e.expert?.expertGuidance??"",assessor:e.expert?.assessor,profiles:e.agents.profiles,assessing:e.expert?.assessing===!0,step:e.expert?.assessmentStep,onAssess:e.onAssessJunior,onClear:e.onClearAssessment})}):(0,lt.jsx)(Ub,{servers:e.mcpServers,json:e.mcpJson,warnings:e.mcpWarnings,saveError:e.mcpSaveError,configs:e.mcpConfigs,platform:e.mcpPlatform,savedTick:e.mcpSavedTick,pythonProbe:e.mcpPythonProbe,onDetectPython:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSaveServer:e.onSaveMcpServer,onDeleteServer:e.onDeleteMcpServer,onDuplicateServer:e.onDuplicateMcpServer,onSave:e.onSaveMcp,onRestart:e.onRestartMcp,onSetServerEnabled:e.onSetMcpServerEnabled,onSetToolPermission:e.onSetMcpToolPermission,onSetToolTimeout:e.onSetMcpToolTimeout,onConnect:e.onConnectMcp,docsIndex:{enabled:e.search.dispatcher.enabled,ready:e.search.dispatcher.retrievalReady,indexing:e.search.dispatcher.indexing,result:tx(e.search.dispatcher.result)},onIndexDocs:()=>e.search.dispatcher.onIndexDocs("tool"),indexProgress:e.tools.progress,onStopIndexing:e.tools.onStopIndexing})},o)]})}var Wz=N(ne(),1);function ix(e){let t=Vm(e.modeId);return(0,Wz.jsx)($e,{compact:!0,value:t.id,disabled:e.disabled,title:t.description,ariaLabel:"Mode",onChange:e.onChange,options:Fc.map(n=>({value:n.id,label:n.name,...n.requiresExpert===!0&&!e.expertAvailable?{disabled:!0,detail:"needs the expert"}:{}}))})}var _t=N(ne(),1);var Jz=N(pe(),1);function Xz(e){let[t,n]=(0,Jz.useState)(0),r=Or[t]??Or[0],i=t===0,o=t===Or.length-1;return(0,_t.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,fontFamily:V,fontSize:13,color:s.foreground},children:[(0,_t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,_t.jsx)("strong",{style:{fontSize:13},children:r.title}),(0,_t.jsxs)("span",{style:{marginLeft:"auto",color:s.muted,fontSize:11},children:[t+1," of ",Or.length]}),(0,_t.jsx)("button",{type:"button",style:{...z(),fontSize:11},onClick:e.onClose,children:"Close"})]}),(0,_t.jsxs)("div",{className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",padding:12},children:[e.mediaBase!==void 0&&(0,_t.jsxs)("picture",{children:[(0,_t.jsx)("source",{media:"(prefers-color-scheme: dark)",srcSet:`${e.mediaBase}/${r.id}-dark.svg`}),(0,_t.jsx)("img",{src:`${e.mediaBase}/${r.id}-light.svg`,alt:r.altText,style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",borderRadius:6,border:`1px solid ${s.border}`,marginBottom:12}})]}),r.body.map((a,l)=>(0,_t.jsx)("div",{style:{marginBottom:10,lineHeight:1.5},children:(0,_t.jsx)(Ld,{text:a})},l)),r.tab!==void 0&&(0,_t.jsxs)("button",{type:"button",style:{...le(!1),marginTop:4},onClick:()=>e.onOpenTab(r.tab),children:["Open the ",r.tab[0]?.toUpperCase(),r.tab.slice(1)," tab"]}),r.tab===void 0&&r.opensPanel===!0&&(0,_t.jsx)("button",{type:"button",style:{...z(),marginTop:4},onClick:e.onClose,children:"Back to the chat"})]}),(0,_t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderTop:`1px solid ${s.border}`,flexShrink:0},children:[(0,_t.jsx)("button",{type:"button",style:z(),disabled:i,onClick:()=>n(a=>Math.max(0,a-1)),children:"Back"}),(0,_t.jsx)("div",{style:{display:"flex",gap:4,flex:1,justifyContent:"center",flexWrap:"wrap"},children:Or.map((a,l)=>(0,_t.jsx)("button",{type:"button","aria-label":a.title,title:a.title,onClick:()=>n(l),style:{width:7,height:7,padding:0,borderRadius:"50%",border:"none",cursor:"pointer",background:l===t?s.accent:s.border}},a.id))}),o?(0,_t.jsx)("button",{type:"button",style:le(!1),onClick:e.onClose,children:"Done"}):(0,_t.jsx)("button",{type:"button",style:le(!1),onClick:()=>n(a=>Math.min(Or.length-1,a+1)),children:"Next"})]})]})}var Yt=N(ne(),1),Kz=N(pe(),1);function eN(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return"just now";let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let o=Math.round(i/24);return o<=7?`${o}d ago`:new Date(e).toLocaleDateString()}function Qz(e){let[t,n]=(0,Kz.useState)(void 0);return(0,Yt.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Yt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,Yt.jsx)("h3",{style:{margin:0,color:s.foreground},children:"History"}),(0,Yt.jsx)("button",{type:"button",style:{...le(!1),marginLeft:"auto"},onClick:e.onNew,children:"New task"})]}),e.tasks.length===0&&(0,Yt.jsx)("p",{style:{color:s.muted,fontFamily:V},children:"No past tasks in this workspace yet. Conversations are saved automatically as you go."}),e.tasks.map(r=>{let i=r.id===e.activeTaskId,o=r.id===t;return(0,Yt.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${i?s.accent:s.border}`,background:i?s.assistantBubble:"transparent"},children:[(0,Yt.jsx)("div",{style:{color:s.foreground,marginBottom:4,wordBreak:"break-word"},children:r.title}),(0,Yt.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:8},children:[eN(r.updatedAt)," \xB7 ",r.messageCount," message",r.messageCount===1?"":"s",i?" \xB7 current":""]}),o?(0,Yt.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,Yt.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Delete this task and its saved output?"}),(0,Yt.jsx)("button",{type:"button",style:{...z(),color:s.error},onClick:()=>{n(void 0),e.onDelete(r.id)},children:"Delete"}),(0,Yt.jsx)("button",{type:"button",style:z(),onClick:()=>n(void 0),children:"Cancel"})]}):(0,Yt.jsxs)("div",{style:{display:"flex",gap:6},children:[!i&&(0,Yt.jsx)("button",{type:"button",style:z(),onClick:()=>e.onOpen(r.id),children:"Open"}),(0,Yt.jsx)("button",{type:"button",style:z(),onClick:()=>n(r.id),children:"Delete"})]})]},r.id)})]})}function Ka(e){let t=e.map(r=>r.kind==="reasoning"&&r.pending===!0?{kind:"reasoning",content:r.content}:r),n=t[t.length-1];return n===void 0||n.kind!=="text"||!n.pending?t:[...t.slice(0,-1),{kind:"text",role:n.role,content:n.content,...n.expertInformed===!0?{expertInformed:!0}:{},...n.informedBy!==void 0?{informedBy:n.informedBy}:{}}]}function rx(e){let[t,n]=(0,F.useState)("chat"),[r,i]=(0,F.useState)(),[o,a]=(0,F.useState)({native:!0}),[l,c]=(0,F.useState)(),[u,d]=(0,F.useState)(),[h,m]=(0,F.useState)(),[f,y]=(0,F.useState)(!1),[k,E]=(0,F.useState)(),[g,b]=(0,F.useState)([]),[S,v]=(0,F.useState)(!1),[C,K]=(0,F.useState)(void 0),[q,w]=(0,F.useState)([]),[R,ce]=(0,F.useState)(void 0),[Me,ct]=(0,F.useState)(!1),[en,cn]=(0,F.useState)(void 0),[hi,L]=(0,F.useState)(void 0),[de,He]=(0,F.useState)(!1),[Ft,U]=(0,F.useState)(Fm),[fe,yt]=(0,F.useState)({}),[et,At]=(0,F.useState)(25),[_i,rt]=(0,F.useState)(Xa),[qi,pi]=(0,F.useState)([]),[A6,BS]=(0,F.useState)(Fr),[Dm,LS]=(0,F.useState)({type:"agents",roles:[],profiles:[],cliAvailable:!1,budgetMatters:!1,claudeSeated:!1,teamGuidance:"",defaultTeamGuidance:"",teamGuidanceIsDefault:!0,colors:{}}),[Yn,j6]=(0,F.useState)({usd:0,consultations:0,unpriced:0,maxSpendUsd:0,maxConsultations:0,overridden:!1}),[vo,Am]=(0,F.useState)({enabled:!0,hiddenTools:0,skills:!0,hiddenSkills:0}),[jm,Bc]=(0,F.useState)(!1),[O6,U6]=(0,F.useState)([]),[Fl,PS]=(0,F.useState)({}),[Vl,ta]=(0,F.useState)({}),$i=x=>PS(P=>{let p={...P};return delete p[x],p}),[bo,na]=(0,F.useState)(void 0),[N6,R6]=(0,F.useState)([]),[M6,B6]=(0,F.useState)(`{
145
145
  "mcpServers": {}
146
146
  }`),[L6,P6]=(0,F.useState)({}),[Z6,ZS]=(0,F.useState)(void 0),[F6,V6]=(0,F.useState)({}),[H6,q6]=(0,F.useState)("posix"),[G6,Y6]=(0,F.useState)(0),[FS,VS]=(0,F.useState)(void 0),[W6,J6]=(0,F.useState)(void 0),[X6,HS]=(0,F.useState)([]),[qS,Om]=(0,F.useState)(void 0),[K6,Um]=(0,F.useState)(!1),[Q6,Nm]=(0,F.useState)(!1),[GS,Rm]=(0,F.useState)(void 0),[eE,tE]=(0,F.useState)([]),[YS,WS]=(0,F.useState)(void 0),[nE,iE]=(0,F.useState)(void 0),[rE,oE]=(0,F.useState)(!1),[Mm,aE]=(0,F.useState)(!1),[lE,JS]=(0,F.useState)(void 0),[XS,sE]=(0,F.useState)(void 0),[KS,cE]=(0,F.useState)([]),[uE,dE]=(0,F.useState)([]),[Bm,fE]=(0,F.useState)([]),[Hl,mE]=(0,F.useState)(void 0),[hE,pE]=(0,F.useState)([]),[QS,gE]=(0,F.useState)(void 0),[e0,t0]=(0,F.useState)(void 0),[yE,vE]=(0,F.useState)(0),[n0,i0]=(0,F.useState)(void 0),[Lc,bE]=(0,F.useState)(void 0),[xE,r0]=(0,F.useState)(void 0),[SE,o0]=(0,F.useState)(void 0),[kE,a0]=(0,F.useState)(void 0),[wE,_E]=(0,F.useState)(void 0),[ia,$E]=(0,F.useState)({datasets:[],tools:[],stores:[],defaultStoreLabel:"none",semantic:!1,guidance:""}),[l0,s0]=(0,F.useState)({folders:[],loading:!1}),[Wn,zE]=(0,F.useState)(void 0),[TE,Lm]=(0,F.useState)(void 0),[CE,c0]=(0,F.useState)([]),[EE,u0]=(0,F.useState)(void 0),[IE,d0]=(0,F.useState)(!1),[DE,AE]=(0,F.useState)(0),[jE,OE]=(0,F.useState)(void 0),[UE,NE]=(0,F.useState)(void 0),[RE,ME]=(0,F.useState)([]),[BE,LE]=(0,F.useState)([]),[PE,ZE]=(0,F.useState)(void 0),[FE,VE]=(0,F.useState)([]),[HE,qE]=(0,F.useState)([]),[GE,YE]=(0,F.useState)([]),[Pm,f0]=(0,F.useState)({choosesTheme:!1}),[WE,m0]=(0,F.useState)(""),[JE,XE]=(0,F.useState)([]),[KE,QE]=(0,F.useState)(!0),[h0,eI]=(0,F.useState)(void 0),[tI,nI]=(0,F.useState)({workspaceOpen:!1,overridden:[]}),[iI,p0]=(0,F.useState)({tools:[],dispatcher:!1,office:{supported:!1,excel:!1,outlook:!1}}),[rI,oI]=(0,F.useState)(void 0),[aI,lI]=(0,F.useState)(void 0),[sI,cI]=(0,F.useState)([]),[uI,dI]=(0,F.useState)("");(0,F.useEffect)(()=>{let x=e.transport.onMessage(P=>{let p=P;if(p.type==="textChunk")b(ye=>{let vt=ye[ye.length-1],Jn={kind:"text",role:"assistant",content:p.text,pending:!0,...p.expertInformed===!0?{expertInformed:!0}:{},...p.informedBy!==void 0?{informedBy:p.informedBy}:{}};return vt?.kind==="text"&&vt.role==="assistant"&&vt.pending?[...ye.slice(0,-1),Jn]:[...ye,Jn]});else if(p.type==="reasoningChunk")b(ye=>{let vt=ye.findIndex(ql=>ql.kind==="reasoning"&&ql.pending===!0),Jn={kind:"reasoning",content:p.text,pending:!0};return vt===-1?[...ye,Jn]:[...ye.slice(0,vt),Jn,...ye.slice(vt+1)]});else if(p.type==="toolCall")b(ye=>[...Ka(ye),{kind:"tool",toolCall:p.toolCall,...p.expertInformed===!0?{expertInformed:!0}:{},...p.informedBy!==void 0?{informedBy:p.informedBy}:{}}]);else if(p.type==="toolResult")b(ye=>{let vt={kind:"tool",toolCall:p.toolCall,...p.expertInformed===!0?{expertInformed:!0}:{},...p.informedBy!==void 0?{informedBy:p.informedBy}:{}},Jn=ye.findIndex(ql=>ql.kind==="tool"&&ql.toolCall.id===p.toolCall.id);return Jn===-1?[...ye,vt]:[...ye.slice(0,Jn),vt,...ye.slice(Jn+1)]});else if(p.type==="formRequest")b(Ka),L(p);else if(p.type==="approvalRequest")b(Ka),cn({id:p.id,toolName:p.toolName,group:p.group,preview:p.preview,...p.alwaysScope===void 0?{}:{alwaysScope:p.alwaysScope}});else if(p.type==="openSettings")e.transport.post({type:"requestProfiles"}),i({tab:p.tab,nonce:Date.now()}),n("settings");else if(p.type==="hostRole")E({role:p.role,shared:p.shared,displayName:p.displayName,sharedProfileIds:p.sharedProfileIds});else if(p.type==="reviews")d({items:p.items,canDecide:p.canDecide});else if(p.type==="variables")c({user:p.user,admin:p.admin,resolved:p.resolved,adminIds:p.adminIds,canEditAdmin:p.canEditAdmin});else if(p.type==="settings")U(p.modeId),m(p.programmingProfileId),y(p.allowProgrammingProfile),QE(p.offersOffice!==!1),f0({choosesTheme:p.choosesTheme===!0,...p.theme===void 0?{}:{theme:p.theme}}),eI(p.toolTimeoutSeconds),a({native:p.nativeGuide,...p.guideMediaBase!==void 0?{mediaBase:p.guideMediaBase}:{}}),yt(p.approvals),At(p.maxIterations),rt(p.accentColor),pi(p.readRoots),BS(p.expertColor),Jb(p.accentColor),Xb(p.expertColor);else if(p.type==="mcp")R6(p.servers),B6(p.json),P6(p.warnings),V6(p.configs),q6(p.platform),ZS(void 0);else if(p.type==="mcpSaveError")ZS(p.message);else if(p.type==="checkpointAvailable")He(!0);else if(p.type==="rolledBack")He(!1);else if(p.type==="done")b(Ka),cn(void 0),v(!1);else if(p.type==="error")b(Ka),cn(void 0),K(p.message),v(!1);else if(p.type==="profiles")w(p.profiles),ce(p.activeProfileId),ct(!0);else if(p.type==="profileSaved")n("chat");else if(p.type==="models")HS(p.models),Om(p.warning),Um(!1);else if(p.type==="testConnectionResult")Rm({ok:p.ok,steps:p.steps}),Nm(!1);else if(p.type==="contextUsage")iE(p.usage);else if(p.type==="compacted")b(ye=>[...ye,{kind:"text",role:"assistant",content:`[${p.summarisedCount} earlier messages were summarised to stay within the context window. The full transcript is still saved.]`}]);else if(p.type==="search")fE(p.connections),mE(p.activeConnectionId);else if(p.type==="searchIndexes")pE(p.indexes),gE(p.warning);else if(p.type==="searchTestResult")t0({ok:p.ok,detail:p.detail});else if(p.type==="queued")dE(p.messages);else if(p.type==="queuedMessageConsumed")b(ye=>[...Ka(ye),{kind:"text",role:"user",content:p.text}]);else if(p.type==="mentionCandidates")cE(p.paths);else if(p.type==="capabilities")oE(p.supportsVision);else if(p.type==="pathPicked")VS({purpose:p.purpose,path:p.path});else if(p.type==="pythonEnvProbe")J6({...p.interpreter!==void 0?{interpreter:p.interpreter}:{},...p.venvDir!==void 0?{venvDir:p.venvDir}:{},detail:p.detail});else if(p.type==="tools")p0(p);else if(p.type==="schedules")YE(p.skills),VE(p.schedules),qE(p.tools),lI(p.runningId),oI(p.scheduler);else if(p.type==="searchLog")U6(p.entries);else if(p.type==="chart")b(ye=>[...ye.filter(vt=>!(vt.kind==="text"&&vt.role==="assistant"&&vt.pending===!0&&vt.content.length===0)),{kind:"chart",chart:p.chart,...p.expertInformed===!0?{expertInformed:!0}:{},...p.informedBy!==void 0?{informedBy:p.informedBy}:{}}]);else if(p.type==="chartError")b(ye=>[...ye,{kind:"chartError",message:p.message}]);else if(p.type==="searchProbe")PS(ye=>({...ye,[p.target]:{query:p.query,text:p.text,...p.error!==void 0?{error:p.error}:{}}})),ta(ye=>({...ye,[p.target]:!1}));else if(p.type==="dispatcher")Am({enabled:p.enabled,hiddenTools:p.hiddenTools,skills:p.skills,hiddenSkills:p.hiddenSkills,...p.docsIndex!==void 0?{docsIndex:p.docsIndex}:{}});else if(p.type==="projectSettings")nI(p);else if(p.type==="docsIndexed")Bc(!1),na({...p.indexed!==void 0?{indexed:p.indexed}:{},...p.index!==void 0?{index:p.index}:{},...p.error!==void 0?{error:p.error}:{}});else if(p.type==="expertSpend")j6({usd:p.usd,consultations:p.consultations,unpriced:p.unpriced,...p.usage!==void 0?{usage:p.usage}:{},...p.exhausted!==void 0?{exhausted:p.exhausted}:{},maxSpendUsd:p.maxSpendUsd,maxConsultations:p.maxConsultations,overridden:p.overridden,...p.estimate!==void 0?{estimate:p.estimate}:{}});else if(p.type==="mcpServerSaved")Y6(ye=>ye+1);else if(p.type==="embedder"){let{type:ye,...vt}=p;bE(vt)}else p.type==="skills"?(ME(p.skills),LE(p.issues),ZE(p.skillsDir),cI(p.extraDirs)):p.type==="python"?(OE(p.status),NE(p.settings)):p.type==="embedderModels"?(c0(p.models),u0(p.warning),d0(!1)):p.type==="embedderSaved"?AE(ye=>ye+1):p.type==="indexProgress"?r0(p.progress):p.type==="outlookFolders"?s0({folders:p.folders??[],loading:!1,...p.error!==void 0?{error:p.error}:{}}):p.type==="indexingProgress"?zE({kind:p.kind,phase:p.phase,running:p.running,...p.done!==void 0?{done:p.done}:{},...p.total!==void 0?{total:p.total}:{},...p.detail!==void 0?{detail:p.detail}:{}}):p.type==="datasetStatus"?$E({datasets:p.datasets,tools:p.tools,stores:p.stores,defaultStoreLabel:p.defaultStoreLabel,semantic:p.semantic,guidance:p.guidance}):p.type==="mailStatus"?_E({enabled:p.enabled,available:p.available,folders:p.folders,syncMinutes:p.syncMinutes,retentionMonths:p.retentionMonths,indexed:p.indexed,...p.oldest!==void 0?{oldest:p.oldest}:{},...p.newest!==void 0?{newest:p.newest}:{},sizeBytes:p.sizeBytes,semantic:p.semantic,...p.storeId!==void 0?{storeId:p.storeId}:{},stores:p.stores,...p.busy!==void 0?{busy:p.busy}:{},...p.lastResult!==void 0?{lastResult:p.lastResult}:{}}):p.type==="teamSkillsPublished"?Lm({...p.count!==void 0?{count:p.count}:{},...p.collection!==void 0?{collection:p.collection}:{},...p.error!==void 0?{error:p.error}:{}}):p.type==="teamAliasAttached"?a0({...p.alias!==void 0?{alias:p.alias}:{},...p.index!==void 0?{index:p.index}:{},...p.attributed!==void 0?{attributed:p.attributed}:{},...p.error!==void 0?{error:p.error}:{}}):p.type==="indexResult"?(r0(void 0),o0({...p.result!==void 0?{result:p.result}:{},...p.error!==void 0?{error:p.error}:{}})):p.type==="storeSync"?i0({running:p.running,...p.copied!==void 0?{copied:p.copied}:{},...p.error!==void 0?{error:p.error}:{},...p.fromLabel!==void 0?{fromLabel:p.fromLabel}:{}}):p.type==="searchConnectionSaved"?vE(ye=>ye+1):p.type==="network"?sE(p.settings):p.type==="plan"?m0(p.plan):p.type==="planProgress"?XE(p.checkpoints):p.type==="agents"?(LS(p),qz(p.colors,p.roles.map(ye=>ye.role))):p.type==="expert"?(JS(p),aE(p.enabled&&p.available)):p.type==="tasks"?(tE(p.tasks),WS(p.activeTaskId)):p.type==="taskRestored"&&(b(p.entries),WS(p.taskId),K(void 0),cn(void 0),v(!1),He(!1))});return e.transport.post({type:"requestProfiles"}),e.transport.post({type:"requestSettings"}),e.transport.post({type:"requestMcp"}),e.transport.post({type:"requestExpert"}),e.transport.post({type:"requestAgents"}),e.transport.post({type:"requestPlan"}),e.transport.post({type:"requestSearch"}),e.transport.post({type:"requestMailStatus"}),e.transport.post({type:"requestDatasetStatus"}),e.transport.post({type:"requestProjectSettings"}),e.transport.post({type:"requestNetwork"}),e.transport.post({type:"requestPython"}),e.transport.post({type:"requestSkills"}),e.transport.post({type:"requestSchedules"}),e.transport.post({type:"requestTools"}),e.transport.post({type:"requestVariables"}),e.transport.post({type:"requestReviews"}),x},[e.transport]);let g0=()=>{let x={type:"requestProfiles"};e.transport.post(x),n("settings")},fI=(x,P)=>{if(S){e.transport.post({type:"queueMessage",text:x});return}K(void 0);let p=P.length>0?`${x}${x.length>0?`
147
- `:""}[${P.length} image(s) attached]`:x;b(vt=>[...vt,{kind:"text",role:"user",content:p}]),v(!0);let ye=P.length>0?{type:"sendMessage",text:x,images:P}:{type:"sendMessage",text:x};e.transport.post(ye)},mI=x=>{e.transport.post({type:"unqueueMessage",index:x})},y0=x=>{e.transport.post({type:"requestMentionCandidates",query:x})},hI=()=>{let x={type:"cancel"};e.transport.post(x)},pI=(x,P)=>{cn(void 0),e.transport.post({type:"approvalResponse",id:x,decision:P})},gI=(x,P)=>{cn(void 0),e.transport.post({type:"approvalResponseAlways",id:x,scope:P})},yI=x=>{U(x),e.transport.post({type:"setMode",modeId:x})},vI=(x,P)=>{e.transport.post({type:"setAutoApprove",group:x,enabled:P})},bI=x=>{e.transport.post({type:"revokeAllowedTool",toolName:x})},xI=x=>{e.transport.post({type:"revokeAllowedCommand",command:x})},SI=()=>{e.transport.post({type:"requestTasks"}),n("history")},kI=x=>{e.transport.post({type:"openTask",id:x}),n("chat")},v0=()=>{e.transport.post({type:"newTask"}),n("chat")},wI=x=>{e.transport.post({type:"deleteTask",id:x})},_I=x=>{Um(!0),Om(void 0),e.transport.post({type:"requestModels",profile:x})},$I=x=>{Nm(!0),Rm(void 0),e.transport.post({type:"testConnection",profile:x})},zI=()=>{HS([]),Om(void 0),Um(!1),Rm(void 0),Nm(!1)},TI={connections:Bm,activeConnectionId:Hl,indexes:hE,...QS!==void 0?{indexesWarning:QS}:{},...e0!==void 0?{testResult:e0}:{},savedTick:yE,onSave:x=>{K(void 0),e.transport.post({type:"saveSearchConnection",connection:x})},onDelete:x=>e.transport.post({type:"deleteSearchConnection",id:x}),onSyncFrom:x=>{i0({running:!0}),e.transport.post({type:"syncVectorStore",fromId:x})},...n0!==void 0?{sync:n0}:{},onSetActive:(x,P)=>e.transport.post({type:"setActiveSearchConnection",id:x,...P===!0?{forProject:!0}:{}}),project:tI,onClearProject:()=>e.transport.post({type:"clearProjectSettings"}),onListIndexes:x=>e.transport.post({type:"requestSearchIndexes",connection:x}),onTest:x=>{t0(void 0),e.transport.post({type:"testSearchConnection",connection:x})},indexing:{embedder:Lc,profiles:q,connectionLabel:Bm.find(x=>x.id===Hl)?.label,progress:xE,lastResult:SE,models:CE,modelsWarning:EE,modelsLoading:IE,savedTick:DE,onRequestModels:x=>{c0([]),u0(void 0),d0(!0),e.transport.post({type:"requestEmbedderModels",profileId:x})},onSaveEmbedder:(x,P,p,ye,vt,Jn)=>{K(void 0),e.transport.post({type:"saveEmbedder",profileId:x,model:P,dimensions:p,...ye.length>0?{indexName:ye}:{},...vt.length>0?{indexPrefix:vt}:{},...Jn.length>0?{indexAlias:Jn}:{}})},onAttachTeamAlias:()=>{a0(void 0),e.transport.post({type:"attachTeamAlias"})},aliasResult:kE,onStartIndexing:()=>{o0(void 0),e.transport.post({type:"startIndexing"})},onClearIndex:()=>e.transport.post({type:"clearCodebaseIndex"}),onCancelIndexing:()=>e.transport.post({type:"cancelIndexing"})},dispatcher:{enabled:vo.enabled,hiddenTools:vo.hiddenTools,skills:vo.skills,hiddenSkills:vo.hiddenSkills,...vo.docsIndex!==void 0?{docsIndex:vo.docsIndex}:{},indexing:jm,...bo!==void 0?{result:bo}:{},retrievalReady:Hl!==void 0&&Lc?.model!==void 0,onToggle:x=>{Am(P=>({...P,enabled:x})),e.transport.post({type:"setDispatcher",enabled:x})},onToggleSkills:x=>{Am(P=>({...P,skills:x})),e.transport.post({type:"setSkillRetrieval",enabled:x})},onIndexDocs:x=>{na(void 0),Bc(!0),e.transport.post({type:"indexDocs",...x===void 0?{}:{kind:x}})},onClearDocsIndex:()=>{na(void 0),Bc(!0),e.transport.post({type:"clearDocsIndex"})}},activity:{entries:O6,probe:Fl.docs,probeRunning:Vl.docs===!0,onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClear:()=>e.transport.post({type:"clearSearchLog"}),onClearProbe:()=>$i("docs")}},CI=(x,P,p,ye)=>{e.transport.post({type:"setExpert",enabled:x,...P.length>0?{path:P}:{},...p.length>0?{model:p}:{},maxSpendUsd:ye.maxSpendUsd,maxConsultations:ye.maxConsultations})},EI=(x,P,p)=>{K(void 0),e.transport.post({type:"saveMcpServer",name:x,...P!==void 0?{previousName:P}:{},config:p})},b0=x=>{e.transport.post({type:"openManagedFile",path:x})},x0=x=>{VS(void 0),e.transport.post({type:"browseForPath",...x})},II=(x,P)=>{e.transport.post({type:"probePythonEnv",venvDir:x,script:P})},DI=x=>{e.transport.post({type:"deleteMcpServer",name:x})},AI=x=>{e.transport.post({type:"saveMcpServers",json:x})},jI=x=>{e.transport.post({type:"restartMcpServer",name:x})},OI=(x,P)=>{e.transport.post({type:"setMcpServerEnabled",name:x,enabled:P})},UI=x=>{e.transport.post({type:"connectMcpServer",name:x})},NI=(x,P,p)=>{e.transport.post({type:"setMcpToolPermission",server:x,tool:P,permission:p})},RI=()=>{e.transport.post({type:"rollback"})},MI=x=>{e.transport.post({type:"saveProfile",profile:x})},BI=x=>{e.transport.post({type:"duplicateProfile",id:x})},LI=x=>{e.transport.post({type:"deleteProfile",id:x})},S0=x=>{e.transport.post({type:"setActiveProfile",id:x})},PI=()=>{e.transport.post({type:"exportConfig"})},ZI=()=>{e.transport.post({type:"importConfig"})},FI=Me&&q.length===0;return(0,Ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",boxSizing:"border-box",background:s.background,color:s.foreground,fontFamily:V,fontSize:13},children:[(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ve.jsx)("strong",{children:"Light Code"}),t==="chat"&&(0,Ve.jsx)(ix,{modeId:Ft,disabled:S,onChange:yI,expertAvailable:Mm}),t==="chat"&&Dm.budgetMatters&&(0,Ve.jsx)(X$,{enabled:Mm,modeId:Ft,usd:Yn.usd,consultations:Yn.consultations,maxSpendUsd:Yn.maxSpendUsd,maxConsultations:Yn.maxConsultations,overridden:Yn.overridden,...Yn.estimate!==void 0?{estimate:Yn.estimate}:{},...Yn.usage!==void 0?{usage:Yn.usage}:{},...Yn.exhausted!==void 0?{exhausted:Yn.exhausted}:{},onSetLimits:x=>e.transport.post({type:"setTaskExpertLimits",...x})})]}),t==="chat"?(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2},children:[(0,Ve.jsx)("button",{type:"button","aria-label":"New task",title:"New task",style:ze("ghost",S),disabled:S,onClick:v0,children:(0,Ve.jsx)(K_,{})}),(0,Ve.jsx)("button",{type:"button","aria-label":"History",title:"History",style:ze("ghost"),onClick:SI,children:(0,Ve.jsx)(X_,{})}),(0,Ve.jsx)("button",{type:"button","aria-label":"Settings",title:"Settings",style:ze("ghost"),onClick:g0,children:(0,Ve.jsx)(Q_,{})}),(0,Ve.jsx)("button",{type:"button","aria-label":"Guide",title:"Open the guide",style:ze("ghost"),onClick:()=>{if(o.native){e.transport.post({type:"openWalkthrough"});return}n("guide")},children:(0,Ve.jsx)(s$,{})})]}):(0,Ve.jsx)("button",{type:"button","aria-label":"Back",title:"Back",style:ze("ghost"),onClick:()=>n("chat"),children:(0,Ve.jsx)(q_,{})})]}),C!==void 0&&t!=="chat"&&(0,Ve.jsxs)("div",{role:"alert",style:{margin:"8px 12px 0",padding:"8px 10px",fontSize:12,borderRadius:4,display:"flex",alignItems:"flex-start",gap:8,color:"var(--vscode-inputValidation-errorForeground, var(--vscode-foreground))",background:"var(--vscode-inputValidation-errorBackground, transparent)",border:"1px solid var(--vscode-inputValidation-errorBorder, var(--vscode-errorForeground))"},children:[(0,Ve.jsx)("span",{style:{flex:1},children:C}),(0,Ve.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>K(void 0),style:{background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"\u2715"})]}),(0,Ve.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t==="guide"?(0,Ve.jsx)(Xz,{...o.mediaBase!==void 0?{mediaBase:o.mediaBase}:{},onClose:()=>n("chat"),onOpenTab:x=>{e.transport.post({type:"requestProfiles"}),i({tab:x,nonce:Date.now()}),n("settings")}}):t==="settings"?(0,Ve.jsx)(nx,{...r!==void 0?{requestedTab:r}:{},profiles:q,activeProfileId:R,onSave:MI,onDuplicate:BI,onDelete:LI,onSetActive:S0,onExport:PI,onImport:ZI,...k!==void 0?{sharedProfileIds:k.sharedProfileIds}:{},onRequestModels:_I,onTestConnection:$I,onEditingChange:zI,models:X6,...qS!==void 0?{modelsWarning:qS}:{},modelsLoading:K6,testRunning:Q6,...GS!==void 0?{testResult:GS}:{},approvals:fe,onSetAutoApprove:vI,onRevokeTool:bI,onRevokeCommand:xI,maxIterations:et,readRoots:qi,onSetReadRoots:x=>e.transport.post({type:"setReadRoots",roots:x}),accentColor:_i,onSetAccentColor:x=>{rt(x),Jb(x),e.transport.post({type:"setAccentColor",value:x})},agents:{...Dm,onAssign:(x,P)=>e.transport.post({type:"setAgentRole",role:x,...P!==void 0?{assignment:P}:{}}),onSetPrompt:(x,P)=>e.transport.post({type:"setAgentPrompt",role:x,...P!==void 0?{prompt:P}:{}}),onSetBudget:x=>e.transport.post({type:"setAgentBudget",matters:x}),onSetTeamGuidance:x=>e.transport.post({type:"setTeamGuidance",...x!==void 0?{guidance:x}:{}}),onSaveCustomRole:x=>e.transport.post({type:"saveCustomRole",...x}),onDeleteCustomRole:x=>e.transport.post({type:"deleteCustomRole",id:x}),onSetRoleTools:(x,P)=>e.transport.post({type:"setRoleTools",role:x,usesTools:P}),onSetRoleWrite:(x,P)=>e.transport.post({type:"setRoleWrite",role:x,canWrite:P}),onSetRoleEnabled:(x,P)=>e.transport.post({type:"setRoleEnabled",role:x,enabled:P}),onSetRoleThinking:(x,P)=>e.transport.post({type:"setRoleThinking",role:x,...P!==void 0?{level:P}:{}}),customRoleLimit:5},onSetAgentColor:(x,P)=>{LS(p=>({...p,colors:{...p.colors,[x]:P}})),Qb(x,P),e.transport.post({type:"setAgentColor",role:x,color:P})},expertColor:A6,onSetExpertColor:x=>{BS(x),Xb(x),e.transport.post({type:"setExpertColor",value:x})},offersOffice:KE,...Pm.choosesTheme?{choosesTheme:!0}:{},...Pm.theme===void 0?{}:{theme:Pm.theme},onSetTheme:x=>{f0(P=>({...P,theme:x})),e.transport.post({type:"setTheme",theme:x})},onSetMaxIterations:x=>e.transport.post({type:"setMaxIterations",value:x}),mcpServers:N6,mcpJson:M6,mcpWarnings:L6,mcpSaveError:Z6,mcpConfigs:F6,mcpPlatform:H6,mcpSavedTick:G6,mcpPythonProbe:W6,onDetectPython:II,onBrowse:x0,pickedPath:FS,onSaveMcpServer:EI,onDeleteMcpServer:DI,onDuplicateMcpServer:x=>e.transport.post({type:"duplicateMcpServer",name:x}),onSaveMcp:AI,onRestartMcp:jI,onSetMcpServerEnabled:OI,onSetMcpToolPermission:NI,onSetMcpToolTimeout:(x,P,p)=>e.transport.post({type:"setMcpToolTimeout",server:x,tool:P,...p===void 0?{}:{seconds:p}}),onConnectMcp:UI,expert:lE,onSaveExpert:CI,onAssessJunior:x=>e.transport.post({type:"assessJunior",...x!==void 0?{profileId:x}:{}}),onMeasureCost:()=>e.transport.post({type:"measureExpertCost"}),onClearPricing:()=>e.transport.post({type:"clearExpertPricing"}),onSetKeepAlive:x=>e.transport.post({type:"setExpertKeepAlive",enabled:x}),onClearAssessment:(x,P)=>e.transport.post({type:"clearAssessment",...x!==void 0&&P!==void 0?{model:x,profileLabel:P}:{}}),onRecheckExpert:()=>{JS(void 0),e.transport.post({type:"requestExpert"})},search:TI,skills:{team:{alias:Lc?.skillsAlias,onSaveAlias:x=>e.transport.post({type:"saveSkillsAlias",alias:x}),onPublish:()=>{Lm(void 0),e.transport.post({type:"publishTeamSkills"})},onClear:()=>{Lm(void 0),e.transport.post({type:"clearTeamSkills"})},onStop:()=>e.transport.post({type:"cancelIndexing",kind:"teamSkills"}),publishing:Wn?.kind==="teamSkills"&&Wn.running,progress:Wn?.kind==="teamSkills"?Wn:void 0,result:TE},skills:RE,issues:BE,skillsDir:PE,extraDirs:sI,configuredDir:uI,onOpenFile:b0,onOpenStandingSkill:()=>e.transport.post({type:"openStandingSkill"}),onReindex:()=>{na(void 0),Bc(!0),e.transport.post({type:"indexDocs",kind:"skill"})},probe:{running:Vl.docs===!0,result:Fl.docs},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("docs"),onClearIndex:()=>{na(void 0),e.transport.post({type:"clearDocsIndex",kind:"skill"})},indexProgress:Wn?.kind==="skills"?Wn:void 0,onStopIndexing:()=>e.transport.post({type:"cancelIndexing",kind:"skills"}),indexing:jm,indexResult:bo===void 0?void 0:bo.error!==void 0?`Failed: ${bo.error}`:`Indexed ${String(bo.indexed??0)} entries.`,onDelete:x=>e.transport.post({type:"deleteSkillFile",name:x}),onSaveDirs:(x,P)=>{dI(x),e.transport.post({type:"saveSkillDirs",dir:x,paths:P})}},schedules:{schedules:FE,tools:HE,skills:GE,runningId:aI,onSave:x=>e.transport.post({type:"saveSchedule",schedule:x}),onDelete:x=>e.transport.post({type:"deleteSchedule",id:x}),onDuplicate:x=>e.transport.post({type:"duplicateSchedule",id:x}),onToggle:(x,P)=>e.transport.post({type:"setScheduleEnabled",id:x,enabled:P}),onRunNow:x=>e.transport.post({type:"runScheduleNow",id:x}),mentionCandidates:KS,onQueryMentions:y0,onOpenReport:x=>e.transport.post({type:"openManagedFile",path:x}),onOpenRun:(x,P)=>e.transport.post({type:"openScheduleRun",taskId:x,title:P}),scheduler:rI,onRestartScheduler:()=>e.transport.post({type:"restartScheduler"}),onDeleteRun:(x,P)=>e.transport.post({type:"deleteScheduleRun",id:x,at:P}),onClearRuns:x=>e.transport.post({type:"clearScheduleRuns",...x===void 0?{}:{id:x}})},customData:{datasets:ia.datasets,tools:ia.tools,stores:ia.stores,defaultStoreLabel:ia.defaultStoreLabel,semantic:ia.semantic,guidance:ia.guidance,progress:Wn?.kind==="dataset"?Wn:void 0,probe:{running:Vl.data===!0,result:Fl.data},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("data"),onRefresh:()=>{e.transport.post({type:"requestTools"}),e.transport.post({type:"requestDatasetStatus"})},onSave:x=>e.transport.post({type:"saveDataset",dataset:x}),onDelete:x=>e.transport.post({type:"deleteDataset",id:x}),onSync:x=>e.transport.post({type:"syncDataset",id:x}),onClear:(x,P)=>e.transport.post({type:"clearDataset",id:x,resync:P}),onStop:()=>e.transport.post({type:"cancelIndexing"})},outlook:{status:wE,onSave:x=>e.transport.post({type:"saveMailSettings",...x}),onSyncNow:()=>e.transport.post({type:"syncMail"}),onPrune:()=>e.transport.post({type:"pruneMail"}),tree:l0,progress:Wn?.kind==="mail"?Wn:void 0,onRefreshFolders:()=>{s0(x=>({...x,loading:!0})),e.transport.post({type:"requestOutlookFolders",force:l0.folders.length>0})},onClear:x=>e.transport.post({type:"clearMailIndex",resync:x}),probe:{running:Vl.mail===!0,result:Fl.mail},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("mail"),onRefreshDays:x=>e.transport.post({type:"refreshMail",days:x}),onStop:()=>e.transport.post({type:"cancelIndexing",kind:"mail"})},tools:{...iI,docsIndex:{enabled:vo.enabled,retrievalReady:Hl!==void 0&&Lc?.model!==void 0,indexing:jm,result:tx(bo)},onIndexDocs:()=>e.transport.post({type:"indexDocs",kind:"tool"}),probe:{running:Vl.docs===!0,result:Fl.docs},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("docs"),onRefreshTools:()=>e.transport.post({type:"requestTools"}),onClearDocs:()=>{na(void 0),e.transport.post({type:"clearDocsIndex",kind:"tool"})},progress:Wn?.kind==="tools"?Wn:void 0,onStopIndexing:()=>e.transport.post({type:"cancelIndexing",kind:"tools"}),...h0===void 0?{}:{toolTimeoutSeconds:h0},onSetToolTimeoutFor:(x,P)=>e.transport.post({type:"setToolTimeoutFor",name:x,...P===void 0?{}:{seconds:P}}),onSetToolTimeout:x=>e.transport.post({type:"setToolTimeout",...x===void 0?{}:{seconds:x}}),onSetOffice:(x,P)=>{p0(p=>({...p,office:{...p.office,excel:x,outlook:P}})),e.transport.post({type:"setOffice",excel:x,outlook:P})}},...u!==void 0?{reviews:{...u,onDecide:(x,P,p)=>e.transport.post({type:"decideReview",id:x,approved:P,...p!==void 0?{reason:p}:{}})}}:{},...l!==void 0?{variables:{...l,onSaveUser:x=>e.transport.post({type:"saveUserVariables",variables:x}),onSaveAdmin:x=>e.transport.post({type:"saveAdminVariables",variables:x}),onSaveAdminIds:x=>e.transport.post({type:"saveAdminIds",ids:x})}}:{},python:{...f?{programming:{profiles:q.map(x=>({id:x.id,label:x.label})),selectedId:h,onSelect:x=>e.transport.post({type:"setProgrammingProfile",id:x})}}:{},status:jE,settings:UE,onBrowse:x0,pickedPath:FS,onOpenFile:b0,onDeleteTool:x=>e.transport.post({type:"deletePythonTool",name:x}),onApproveTool:x=>e.transport.post({type:"approvePythonTool",name:x}),onSave:x=>e.transport.post({type:"setPython",dynamicTools:x.dynamicTools,uvPath:x.uvPath,toolsDir:x.toolsDir,venvPath:x.venvPath,interpreterPath:x.interpreterPath,timeoutSeconds:x.timeoutSeconds,indexUrl:x.indexUrl,offline:x.offline,env:x.env})},network:{...XS!==void 0?{settings:XS}:{settings:void 0},onSave:x=>e.transport.post({type:"saveNetwork",settings:x})}}):t==="history"?(0,Ve.jsx)(Qz,{tasks:eE,activeTaskId:YS,onOpen:kI,onDelete:wI,onNew:v0}):FI?(0,Ve.jsxs)("div",{style:{padding:20,textAlign:"center"},children:[(0,Ve.jsx)("p",{style:{color:s.muted},children:"No provider configured yet."}),(0,Ve.jsx)("button",{type:"button",style:le(!1),onClick:g0,children:"Configure a Provider"})]}):(0,Ve.jsx)(Ib,{plan:WE,planCheckpoints:JE,directRoles:Dm.roles.filter(x=>x.available&&x.enabled).map(x=>({role:x.role,name:x.name,summary:x.summary})),onSetPlan:x=>{m0(x),e.transport.post({type:"setPlan",plan:x})},conversationKey:YS??"new",messages:g,isStreaming:S,error:C,pendingApproval:en,pendingForm:hi,onSubmitForm:(x,P)=>{L(void 0),e.transport.post({type:"formResponse",id:x,submitted:!0,values:P})},onDismissForm:x=>{L(void 0),e.transport.post({type:"formResponse",id:x,submitted:!1,values:{}})},canRollback:de,onSend:fI,onCancel:hI,onDecideApproval:pI,onAlwaysAllow:gI,onRollback:RI,usage:nE,expertSpend:Yn,supportsVision:rE,mentionCandidates:KS,onQueryMentions:y0,profiles:q,activeProfileId:R,onSelectProfile:S0,expertEnabled:Mm,queued:uE,onUnqueue:mI,searchConnections:Bm.map(x=>({id:x.id,label:x.label})),activeSearchId:Hl,onSelectSearch:x=>e.transport.post({type:"setActiveSearchConnection",id:x})})})]})}var T6=N(z6(),1);var Im=class{constructor(t){this.onStatus=t}onStatus;listeners=new Set;token;streamOpen=!1;queued=[];async connect(){let t=new URLSearchParams(window.location.hash.slice(1)).get("t");if(t!==null){window.history.replaceState(null,"",window.location.pathname);let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handoff:t})});if(!n.ok)throw new Error(await n.text());this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token)}else this.token=sessionStorage.getItem("lightCodeToken")??void 0;if(this.token===void 0)try{let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});n.ok&&(this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token))}catch{}if(this.token===void 0)throw new Error("No session. Restart light-code and open the printed URL.");this.listen()}async listen(){for(;;){try{let t=window.location.pathname.startsWith("/admin")?"?view=admin":"",n=await fetch(`/api/events${t}`,{headers:{Authorization:`Bearer ${this.token??""}`}});if(!n.ok||n.body===null)throw new Error(`stream failed: ${n.status}`);this.onStatus("connected"),this.openStream();let r=n.body.getReader(),i=new TextDecoder,o="";for(;;){let{done:a,value:l}=await r.read();if(a)break;o+=i.decode(l,{stream:!0});let c=o.indexOf(`
147
+ `:""}[${P.length} image(s) attached]`:x;b(vt=>[...vt,{kind:"text",role:"user",content:p}]),v(!0);let ye=P.length>0?{type:"sendMessage",text:x,images:P}:{type:"sendMessage",text:x};e.transport.post(ye)},mI=x=>{e.transport.post({type:"unqueueMessage",index:x})},y0=x=>{e.transport.post({type:"requestMentionCandidates",query:x})},hI=()=>{let x={type:"cancel"};e.transport.post(x)},pI=(x,P)=>{cn(void 0),e.transport.post({type:"approvalResponse",id:x,decision:P})},gI=(x,P)=>{cn(void 0),e.transport.post({type:"approvalResponseAlways",id:x,scope:P})},yI=x=>{U(x),e.transport.post({type:"setMode",modeId:x})},vI=(x,P)=>{e.transport.post({type:"setAutoApprove",group:x,enabled:P})},bI=x=>{e.transport.post({type:"revokeAllowedTool",toolName:x})},xI=x=>{e.transport.post({type:"revokeAllowedCommand",command:x})},SI=()=>{e.transport.post({type:"requestTasks"}),n("history")},kI=x=>{e.transport.post({type:"openTask",id:x}),n("chat")},v0=()=>{e.transport.post({type:"newTask"}),n("chat")},wI=x=>{e.transport.post({type:"deleteTask",id:x})},_I=x=>{Um(!0),Om(void 0),e.transport.post({type:"requestModels",profile:x})},$I=x=>{Nm(!0),Rm(void 0),e.transport.post({type:"testConnection",profile:x})},zI=()=>{HS([]),Om(void 0),Um(!1),Rm(void 0),Nm(!1)},TI={connections:Bm,activeConnectionId:Hl,indexes:hE,...QS!==void 0?{indexesWarning:QS}:{},...e0!==void 0?{testResult:e0}:{},savedTick:yE,onSave:x=>{K(void 0),e.transport.post({type:"saveSearchConnection",connection:x})},onDelete:x=>e.transport.post({type:"deleteSearchConnection",id:x}),onSyncFrom:x=>{i0({running:!0}),e.transport.post({type:"syncVectorStore",fromId:x})},...n0!==void 0?{sync:n0}:{},onSetActive:(x,P)=>e.transport.post({type:"setActiveSearchConnection",id:x,...P===!0?{forProject:!0}:{}}),project:tI,onClearProject:()=>e.transport.post({type:"clearProjectSettings"}),onListIndexes:x=>e.transport.post({type:"requestSearchIndexes",connection:x}),onTest:x=>{t0(void 0),e.transport.post({type:"testSearchConnection",connection:x})},indexing:{embedder:Lc,profiles:q,connectionLabel:Bm.find(x=>x.id===Hl)?.label,progress:xE,lastResult:SE,models:CE,modelsWarning:EE,modelsLoading:IE,savedTick:DE,onRequestModels:x=>{c0([]),u0(void 0),d0(!0),e.transport.post({type:"requestEmbedderModels",profileId:x})},onSaveEmbedder:(x,P,p,ye,vt,Jn)=>{K(void 0),e.transport.post({type:"saveEmbedder",profileId:x,model:P,dimensions:p,...ye.length>0?{indexName:ye}:{},...vt.length>0?{indexPrefix:vt}:{},...Jn.length>0?{indexAlias:Jn}:{}})},onAttachTeamAlias:()=>{a0(void 0),e.transport.post({type:"attachTeamAlias"})},aliasResult:kE,onStartIndexing:()=>{o0(void 0),e.transport.post({type:"startIndexing"})},onClearIndex:()=>e.transport.post({type:"clearCodebaseIndex"}),onCancelIndexing:()=>e.transport.post({type:"cancelIndexing"})},dispatcher:{enabled:vo.enabled,hiddenTools:vo.hiddenTools,skills:vo.skills,hiddenSkills:vo.hiddenSkills,...vo.docsIndex!==void 0?{docsIndex:vo.docsIndex}:{},indexing:jm,...bo!==void 0?{result:bo}:{},retrievalReady:Hl!==void 0&&Lc?.model!==void 0,onToggle:x=>{Am(P=>({...P,enabled:x})),e.transport.post({type:"setDispatcher",enabled:x})},onToggleSkills:x=>{Am(P=>({...P,skills:x})),e.transport.post({type:"setSkillRetrieval",enabled:x})},onIndexDocs:x=>{na(void 0),Bc(!0),e.transport.post({type:"indexDocs",...x===void 0?{}:{kind:x}})},onClearDocsIndex:()=>{na(void 0),Bc(!0),e.transport.post({type:"clearDocsIndex"})}},activity:{entries:O6,probe:Fl.docs,probeRunning:Vl.docs===!0,onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClear:()=>e.transport.post({type:"clearSearchLog"}),onClearProbe:()=>$i("docs")}},CI=(x,P,p,ye)=>{e.transport.post({type:"setExpert",enabled:x,...P.length>0?{path:P}:{},...p.length>0?{model:p}:{},maxSpendUsd:ye.maxSpendUsd,maxConsultations:ye.maxConsultations})},EI=(x,P,p)=>{K(void 0),e.transport.post({type:"saveMcpServer",name:x,...P!==void 0?{previousName:P}:{},config:p})},b0=x=>{e.transport.post({type:"openManagedFile",path:x})},x0=x=>{VS(void 0),e.transport.post({type:"browseForPath",...x})},II=(x,P)=>{e.transport.post({type:"probePythonEnv",venvDir:x,script:P})},DI=x=>{e.transport.post({type:"deleteMcpServer",name:x})},AI=x=>{e.transport.post({type:"saveMcpServers",json:x})},jI=x=>{e.transport.post({type:"restartMcpServer",name:x})},OI=(x,P)=>{e.transport.post({type:"setMcpServerEnabled",name:x,enabled:P})},UI=x=>{e.transport.post({type:"connectMcpServer",name:x})},NI=(x,P,p)=>{e.transport.post({type:"setMcpToolPermission",server:x,tool:P,permission:p})},RI=()=>{e.transport.post({type:"rollback"})},MI=x=>{e.transport.post({type:"saveProfile",profile:x})},BI=x=>{e.transport.post({type:"duplicateProfile",id:x})},LI=x=>{e.transport.post({type:"deleteProfile",id:x})},S0=x=>{e.transport.post({type:"setActiveProfile",id:x})},PI=()=>{e.transport.post({type:"exportConfig"})},ZI=()=>{e.transport.post({type:"importConfig"})},FI=Me&&q.length===0;return(0,Ve.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",boxSizing:"border-box",background:s.background,color:s.foreground,fontFamily:V,fontSize:13},children:[(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ve.jsx)("strong",{children:"Light Code"}),t==="chat"&&(0,Ve.jsx)(ix,{modeId:Ft,disabled:S,onChange:yI,expertAvailable:Mm}),t==="chat"&&Dm.budgetMatters&&(0,Ve.jsx)(X$,{enabled:Mm,modeId:Ft,usd:Yn.usd,consultations:Yn.consultations,maxSpendUsd:Yn.maxSpendUsd,maxConsultations:Yn.maxConsultations,overridden:Yn.overridden,...Yn.estimate!==void 0?{estimate:Yn.estimate}:{},...Yn.usage!==void 0?{usage:Yn.usage}:{},...Yn.exhausted!==void 0?{exhausted:Yn.exhausted}:{},onSetLimits:x=>e.transport.post({type:"setTaskExpertLimits",...x})})]}),t==="chat"?(0,Ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2},children:[(0,Ve.jsx)("button",{type:"button","aria-label":"New task",title:"New task",style:ze("ghost",S),disabled:S,onClick:v0,children:(0,Ve.jsx)(K_,{})}),(0,Ve.jsx)("button",{type:"button","aria-label":"History",title:"History",style:ze("ghost"),onClick:SI,children:(0,Ve.jsx)(X_,{})}),(0,Ve.jsx)("button",{type:"button","aria-label":"Settings",title:"Settings",style:ze("ghost"),onClick:g0,children:(0,Ve.jsx)(Q_,{})}),(0,Ve.jsx)("button",{type:"button","aria-label":"Guide",title:"Open the guide",style:ze("ghost"),onClick:()=>{if(o.native){e.transport.post({type:"openWalkthrough"});return}n("guide")},children:(0,Ve.jsx)(s$,{})})]}):(0,Ve.jsx)("button",{type:"button","aria-label":"Back",title:"Back",style:ze("ghost"),onClick:()=>n("chat"),children:(0,Ve.jsx)(q_,{})})]}),C!==void 0&&t!=="chat"&&(0,Ve.jsxs)("div",{role:"alert",style:{margin:"8px 12px 0",padding:"8px 10px",fontSize:12,borderRadius:4,display:"flex",alignItems:"flex-start",gap:8,color:"var(--vscode-inputValidation-errorForeground, var(--vscode-foreground))",background:"var(--vscode-inputValidation-errorBackground, transparent)",border:"1px solid var(--vscode-inputValidation-errorBorder, var(--vscode-errorForeground))"},children:[(0,Ve.jsx)("span",{style:{flex:1},children:C}),(0,Ve.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>K(void 0),style:{background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"\u2715"})]}),(0,Ve.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t==="guide"?(0,Ve.jsx)(Xz,{...o.mediaBase!==void 0?{mediaBase:o.mediaBase}:{},onClose:()=>n("chat"),onOpenTab:x=>{e.transport.post({type:"requestProfiles"}),i({tab:x,nonce:Date.now()}),n("settings")}}):t==="settings"?(0,Ve.jsx)(nx,{...r!==void 0?{requestedTab:r}:{},profiles:q,activeProfileId:R,onSave:MI,onDuplicate:BI,onDelete:LI,onSetActive:S0,onExport:PI,onImport:ZI,...k!==void 0?{sharedProfileIds:k.sharedProfileIds}:{},onRequestModels:_I,onTestConnection:$I,onEditingChange:zI,models:X6,...qS!==void 0?{modelsWarning:qS}:{},modelsLoading:K6,testRunning:Q6,...GS!==void 0?{testResult:GS}:{},approvals:fe,onSetAutoApprove:vI,onRevokeTool:bI,onRevokeCommand:xI,maxIterations:et,readRoots:qi,onSetReadRoots:x=>e.transport.post({type:"setReadRoots",roots:x}),accentColor:_i,onSetAccentColor:x=>{rt(x),Jb(x),e.transport.post({type:"setAccentColor",value:x})},agents:{...Dm,onAssign:(x,P)=>e.transport.post({type:"setAgentRole",role:x,...P!==void 0?{assignment:P}:{}}),onSetPrompt:(x,P)=>e.transport.post({type:"setAgentPrompt",role:x,...P!==void 0?{prompt:P}:{}}),onSetBudget:x=>e.transport.post({type:"setAgentBudget",matters:x}),onSetTeamGuidance:x=>e.transport.post({type:"setTeamGuidance",...x!==void 0?{guidance:x}:{}}),onSaveCustomRole:x=>e.transport.post({type:"saveCustomRole",...x}),onDeleteCustomRole:x=>e.transport.post({type:"deleteCustomRole",id:x}),onSetRoleTools:(x,P)=>e.transport.post({type:"setRoleTools",role:x,usesTools:P}),onSetRoleWrite:(x,P)=>e.transport.post({type:"setRoleWrite",role:x,canWrite:P}),onSetRoleEnabled:(x,P)=>e.transport.post({type:"setRoleEnabled",role:x,enabled:P}),onSetRoleThinking:(x,P)=>e.transport.post({type:"setRoleThinking",role:x,...P!==void 0?{level:P}:{}}),customRoleLimit:5},onSetAgentColor:(x,P)=>{LS(p=>({...p,colors:{...p.colors,[x]:P}})),Qb(x,P),e.transport.post({type:"setAgentColor",role:x,color:P})},expertColor:A6,onSetExpertColor:x=>{BS(x),Xb(x),e.transport.post({type:"setExpertColor",value:x})},offersOffice:KE,...Pm.choosesTheme?{choosesTheme:!0}:{},...Pm.theme===void 0?{}:{theme:Pm.theme},onSetTheme:x=>{f0(P=>({...P,theme:x})),e.transport.post({type:"setTheme",theme:x})},onSetMaxIterations:x=>e.transport.post({type:"setMaxIterations",value:x}),mcpServers:N6,mcpJson:M6,mcpWarnings:L6,mcpSaveError:Z6,mcpConfigs:F6,mcpPlatform:H6,mcpSavedTick:G6,mcpPythonProbe:W6,onDetectPython:II,onBrowse:x0,pickedPath:FS,onSaveMcpServer:EI,onDeleteMcpServer:DI,onDuplicateMcpServer:x=>e.transport.post({type:"duplicateMcpServer",name:x}),onSaveMcp:AI,onRestartMcp:jI,onSetMcpServerEnabled:OI,onSetMcpToolPermission:NI,onSetMcpToolTimeout:(x,P,p)=>e.transport.post({type:"setMcpToolTimeout",server:x,tool:P,...p===void 0?{}:{seconds:p}}),onConnectMcp:UI,expert:lE,onSaveExpert:CI,onAssessJunior:x=>e.transport.post({type:"assessJunior",...x!==void 0?{profileId:x}:{}}),onMeasureCost:()=>e.transport.post({type:"measureExpertCost"}),onClearPricing:()=>e.transport.post({type:"clearExpertPricing"}),onSetKeepAlive:x=>e.transport.post({type:"setExpertKeepAlive",enabled:x}),onClearAssessment:(x,P)=>e.transport.post({type:"clearAssessment",...x!==void 0&&P!==void 0?{model:x,profileLabel:P}:{}}),onRecheckExpert:()=>{JS(void 0),e.transport.post({type:"requestExpert"})},search:TI,skills:{team:{alias:Lc?.skillsAlias,onSaveAlias:x=>e.transport.post({type:"saveSkillsAlias",alias:x}),onPublish:()=>{Lm(void 0),e.transport.post({type:"publishTeamSkills"})},onClear:()=>{Lm(void 0),e.transport.post({type:"clearTeamSkills"})},onStop:()=>e.transport.post({type:"cancelIndexing",kind:"teamSkills"}),publishing:Wn?.kind==="teamSkills"&&Wn.running,progress:Wn?.kind==="teamSkills"?Wn:void 0,result:TE},skills:RE,issues:BE,skillsDir:PE,extraDirs:sI,configuredDir:uI,onOpenFile:b0,onOpenStandingSkill:()=>e.transport.post({type:"openStandingSkill"}),onReindex:()=>{na(void 0),Bc(!0),e.transport.post({type:"indexDocs",kind:"skill"})},probe:{running:Vl.docs===!0,result:Fl.docs},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("docs"),onClearIndex:()=>{na(void 0),e.transport.post({type:"clearDocsIndex",kind:"skill"})},indexProgress:Wn?.kind==="skills"?Wn:void 0,onStopIndexing:()=>e.transport.post({type:"cancelIndexing",kind:"skills"}),indexing:jm,indexResult:bo===void 0?void 0:bo.error!==void 0?`Failed: ${bo.error}`:`Indexed ${String(bo.indexed??0)} entries.`,onDelete:x=>e.transport.post({type:"deleteSkillFile",name:x}),onSaveDirs:(x,P)=>{dI(x),e.transport.post({type:"saveSkillDirs",dir:x,paths:P})}},schedules:{schedules:FE,tools:HE,skills:GE,runningId:aI,onSave:x=>e.transport.post({type:"saveSchedule",schedule:x}),onDelete:x=>e.transport.post({type:"deleteSchedule",id:x}),onDuplicate:x=>e.transport.post({type:"duplicateSchedule",id:x}),onToggle:(x,P)=>e.transport.post({type:"setScheduleEnabled",id:x,enabled:P}),onRunNow:x=>e.transport.post({type:"runScheduleNow",id:x}),mentionCandidates:KS,onQueryMentions:y0,onOpenReport:x=>e.transport.post({type:"openManagedFile",path:x}),onOpenRun:(x,P)=>e.transport.post({type:"openScheduleRun",taskId:x,title:P}),scheduler:rI,onRestartScheduler:()=>e.transport.post({type:"restartScheduler"}),onDeleteRun:(x,P)=>e.transport.post({type:"deleteScheduleRun",id:x,at:P}),onClearRuns:x=>e.transport.post({type:"clearScheduleRuns",...x===void 0?{}:{id:x}})},customData:{datasets:ia.datasets,tools:ia.tools,stores:ia.stores,defaultStoreLabel:ia.defaultStoreLabel,semantic:ia.semantic,guidance:ia.guidance,progress:Wn?.kind==="dataset"?Wn:void 0,probe:{running:Vl.data===!0,result:Fl.data},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("data"),onRefresh:()=>{e.transport.post({type:"requestTools"}),e.transport.post({type:"requestDatasetStatus"})},onSave:x=>e.transport.post({type:"saveDataset",dataset:x}),onDelete:x=>e.transport.post({type:"deleteDataset",id:x}),onSync:x=>e.transport.post({type:"syncDataset",id:x}),onClear:(x,P)=>e.transport.post({type:"clearDataset",id:x,resync:P}),onStop:()=>e.transport.post({type:"cancelIndexing"})},outlook:{status:wE,onSave:x=>e.transport.post({type:"saveMailSettings",...x}),onSyncNow:()=>e.transport.post({type:"syncMail"}),onPrune:()=>e.transport.post({type:"pruneMail"}),tree:l0,progress:Wn?.kind==="mail"?Wn:void 0,onRefreshFolders:()=>{s0(x=>({...x,loading:!0})),e.transport.post({type:"requestOutlookFolders",force:l0.folders.length>0})},onClear:x=>e.transport.post({type:"clearMailIndex",resync:x}),probe:{running:Vl.mail===!0,result:Fl.mail},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("mail"),onRefreshDays:x=>e.transport.post({type:"refreshMail",days:x}),onStop:()=>e.transport.post({type:"cancelIndexing",kind:"mail"})},tools:{...iI,docsIndex:{enabled:vo.enabled,retrievalReady:Hl!==void 0&&Lc?.model!==void 0,indexing:jm,result:tx(bo)},onIndexDocs:()=>e.transport.post({type:"indexDocs",kind:"tool"}),probe:{running:Vl.docs===!0,result:Fl.docs},onProbe:(x,P)=>{$i(P),ta(p=>({...p,[P]:!0})),e.transport.post({type:"runSearchProbe",query:x,target:P})},onClearProbe:()=>$i("docs"),onRefreshTools:()=>e.transport.post({type:"requestTools"}),onClearDocs:()=>{na(void 0),e.transport.post({type:"clearDocsIndex",kind:"tool"})},progress:Wn?.kind==="tools"?Wn:void 0,onStopIndexing:()=>e.transport.post({type:"cancelIndexing",kind:"tools"}),...h0===void 0?{}:{toolTimeoutSeconds:h0},onSetToolTimeoutFor:(x,P)=>e.transport.post({type:"setToolTimeoutFor",name:x,...P===void 0?{}:{seconds:P}}),onSetToolTimeout:x=>e.transport.post({type:"setToolTimeout",...x===void 0?{}:{seconds:x}}),onSetOffice:(x,P)=>{p0(p=>({...p,office:{...p.office,excel:x,outlook:P}})),e.transport.post({type:"setOffice",excel:x,outlook:P})}},...u!==void 0?{reviews:{...u,onDecide:(x,P,p)=>e.transport.post({type:"decideReview",id:x,approved:P,...p!==void 0?{reason:p}:{}})}}:{},...l!==void 0?{variables:{...l,onSaveUser:x=>e.transport.post({type:"saveUserVariables",variables:x}),onSaveAdmin:x=>e.transport.post({type:"saveAdminVariables",variables:x}),onSaveAdminIds:x=>e.transport.post({type:"saveAdminIds",ids:x})}}:{},python:{...f?{programming:{profiles:q.map(x=>({id:x.id,label:x.label})),selectedId:h,onSelect:x=>e.transport.post({type:"setProgrammingProfile",id:x})}}:{},status:jE,settings:UE,onBrowse:x0,pickedPath:FS,onOpenFile:b0,onDeleteTool:x=>e.transport.post({type:"deletePythonTool",name:x}),onApproveTool:x=>e.transport.post({type:"approvePythonTool",name:x}),onSave:x=>e.transport.post({type:"setPython",dynamicTools:x.dynamicTools,uvPath:x.uvPath,toolsDir:x.toolsDir,venvPath:x.venvPath,interpreterPath:x.interpreterPath,timeoutSeconds:x.timeoutSeconds,indexUrl:x.indexUrl,offline:x.offline,env:x.env})},network:{...XS!==void 0?{settings:XS}:{settings:void 0},onSave:x=>e.transport.post({type:"saveNetwork",settings:x})}}):t==="history"?(0,Ve.jsx)(Qz,{tasks:eE,activeTaskId:YS,onOpen:kI,onDelete:wI,onNew:v0}):FI?(0,Ve.jsxs)("div",{style:{padding:20,textAlign:"center"},children:[(0,Ve.jsx)("p",{style:{color:s.muted},children:"No provider configured yet."}),(0,Ve.jsx)("button",{type:"button",style:le(!1),onClick:g0,children:"Configure a Provider"})]}):(0,Ve.jsx)(Ib,{plan:WE,planCheckpoints:JE,directRoles:Dm.roles.filter(x=>x.available&&x.enabled).map(x=>({role:x.role,name:x.name,summary:x.summary})),onSetPlan:x=>{m0(x),e.transport.post({type:"setPlan",plan:x})},conversationKey:YS??"new",messages:g,isStreaming:S,error:C,pendingApproval:en,pendingForm:hi,onSubmitForm:(x,P)=>{L(void 0),e.transport.post({type:"formResponse",id:x,submitted:!0,values:P})},onDismissForm:x=>{L(void 0),e.transport.post({type:"formResponse",id:x,submitted:!1,values:{}})},canRollback:de,onSend:fI,onCancel:hI,onDecideApproval:pI,onAlwaysAllow:gI,onRollback:RI,usage:nE,expertSpend:Yn,supportsVision:rE,mentionCandidates:KS,onQueryMentions:y0,profiles:q,activeProfileId:R,onSelectProfile:S0,expertEnabled:Mm,queued:uE,onUnqueue:mI,searchConnections:Bm.map(x=>({id:x.id,label:x.label})),activeSearchId:Hl,onSelectSearch:x=>e.transport.post({type:"setActiveSearchConnection",id:x})})})]})}var T6=N(z6(),1);var Im=class{constructor(t){this.onStatus=t}onStatus;listeners=new Set;token;streamOpen=!1;queued=[];polling=!1;pollTimer;patienceTimer;pollFailures=0;pollReported=!1;async connect(){let t=new URLSearchParams(window.location.hash.slice(1)).get("t");if(t!==null){window.history.replaceState(null,"",window.location.pathname);let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handoff:t})});if(!n.ok)throw new Error(await n.text());this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token)}else this.token=sessionStorage.getItem("lightCodeToken")??void 0;if(this.token===void 0)try{let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});n.ok&&(this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token))}catch{}if(this.token===void 0)throw new Error("No session. Restart light-code and open the printed URL.");this.awaitStream(),this.listen()}async listen(){for(;;){try{let t=window.location.pathname.startsWith("/admin")?"?view=admin":"",n=await fetch(`/api/events${t}`,{headers:{Authorization:`Bearer ${this.token??""}`}});if(!n.ok||n.body===null)throw new Error(`stream failed: ${n.status}`);this.onStatus("connected"),this.openStream();let r=n.body.getReader(),i=new TextDecoder,o="";for(;;){let{done:a,value:l}=await r.read();if(a)break;o+=i.decode(l,{stream:!0});let c=o.indexOf(`
148
148
 
149
149
  `);for(;c!==-1;){let u=o.slice(0,c);if(o=o.slice(c+2),u.startsWith("data: ")){let d=JSON.parse(u.slice(6));for(let h of this.listeners)h(d)}c=o.indexOf(`
150
150
 
151
- `)}}}catch(t){this.onStatus(`disconnected \u2014 retrying (${t instanceof Error?t.message:String(t)})`)}this.streamOpen=!1,await new Promise(t=>setTimeout(t,1e3))}}post(t){if(!this.streamOpen){if(this.queued.length>=500){this.onStatus(`still not connected, and ${String(500)} messages are already waiting \u2014 this one was dropped. Reload the page.`);return}this.queued.push(t);return}this.send(t,0)}openStream(){this.streamOpen=!0;let t=this.queued;this.queued=[];for(let n of t)this.send(n,0)}async send(t,n){try{let r=await fetch("/api/message",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token??""}`},body:JSON.stringify(t)});if(r.ok)return;if(r.status===409&&n<3){await new Promise(o=>setTimeout(o,700)),await this.send(t,n+1);return}let i=(await r.text().catch(()=>"")).trim();this.onStatus(`the server refused that (${String(r.status)})${i.length>0?`: ${i}`:""}`)}catch(r){if(n<3){await new Promise(i=>setTimeout(i,700)),await this.send(t,n+1);return}this.onStatus(`could not reach the server: ${r instanceof Error?r.message:String(r)}`)}}onMessage(t){return this.listeners.add(t),()=>this.listeners.delete(t)}};var D6=N(ne(),1),C6=document.getElementById("root");if(C6===null)throw new Error("Light Code: no #root element to mount into.");var RS=document.getElementById("status"),E6=e=>{RS!==null&&(RS.textContent=e==="connected"?"":e,RS.style.display=e==="connected"?"none":"block")},I6=e=>{let t=document.documentElement;if(e==="light"||e==="dark"){t.dataset.theme=e;try{localStorage.setItem("lightcode.theme",e)}catch{}}else{delete t.dataset.theme;try{localStorage.removeItem("lightcode.theme")}catch{}}};try{I6(localStorage.getItem("lightcode.theme")??void 0)}catch{}var MS=new Im(E6);MS.onMessage(e=>{let t=e;t.type==="settings"&&I6(t.theme)});MS.connect().then(()=>(0,T6.createRoot)(C6).render((0,D6.jsx)(rx,{transport:MS}))).catch(e=>{E6(e instanceof Error?e.message:String(e))});})();
151
+ `)}}}catch(t){this.onStatus(`disconnected \u2014 retrying (${t instanceof Error?t.message:String(t)})`)}if(this.polling)return;this.streamOpen=!1,await new Promise(t=>setTimeout(t,1e3))}}post(t){if(!this.streamOpen){if(this.queued.length>=500){this.onStatus(`still not connected, and ${String(500)} messages are already waiting \u2014 this one was dropped. Reload the page.`);return}this.queued.push(t);return}this.send(t,0)}awaitStream(){this.patienceTimer!==void 0||this.polling||(this.patienceTimer=setTimeout(()=>{this.patienceTimer=void 0,!(this.streamOpen||this.polling)&&this.startPolling()},8e3))}startPolling(){this.polling=!0,this.onStatus("connected \u2014 the event stream did not open, so replies are being fetched instead. Something between this page and the server does not pass streaming responses through."),this.poll().finally(()=>{this.openStream(),this.pollTimer=setInterval(()=>{this.poll()},1e3)})}async poll(){try{let t=await fetch("/api/poll",{headers:{Authorization:`Bearer ${this.token??""}`}});if(!t.ok){this.notePollFailure();return}let n=await t.json();this.pollFailures=0,this.pollReported&&(this.pollReported=!1,this.onStatus("connected."));for(let r of n.messages??[])for(let i of this.listeners)i(r)}catch{this.notePollFailure()}}notePollFailure(){this.pollFailures+=1,!(this.pollFailures<5||this.pollReported)&&(this.pollReported=!0,this.onStatus("cannot reach the server \u2014 the event stream did not open and fetching replies is failing too, so nothing is being saved. Check that the address in the browser reaches the server light-code printed."))}openStream(){this.streamOpen=!0,this.patienceTimer!==void 0&&(clearTimeout(this.patienceTimer),this.patienceTimer=void 0);let t=this.queued;this.queued=[];for(let n of t)this.send(n,0)}async send(t,n){try{let r=await fetch("/api/message",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token??""}`},body:JSON.stringify(t)});if(r.ok)return;if(r.status===409&&n<3){await new Promise(o=>setTimeout(o,700)),await this.send(t,n+1);return}let i=(await r.text().catch(()=>"")).trim();this.onStatus(`the server refused that (${String(r.status)})${i.length>0?`: ${i}`:""}`)}catch(r){if(n<3){await new Promise(i=>setTimeout(i,700)),await this.send(t,n+1);return}this.onStatus(`could not reach the server: ${r instanceof Error?r.message:String(r)}`)}}onMessage(t){return this.listeners.add(t),()=>this.listeners.delete(t)}};var D6=N(ne(),1),C6=document.getElementById("root");if(C6===null)throw new Error("Light Code: no #root element to mount into.");var RS=document.getElementById("status"),E6=e=>{RS!==null&&(RS.textContent=e==="connected"?"":e,RS.style.display=e==="connected"?"none":"block")},I6=e=>{let t=document.documentElement;if(e==="light"||e==="dark"){t.dataset.theme=e;try{localStorage.setItem("lightcode.theme",e)}catch{}}else{delete t.dataset.theme;try{localStorage.removeItem("lightcode.theme")}catch{}}};try{I6(localStorage.getItem("lightcode.theme")??void 0)}catch{}var MS=new Im(E6);MS.onMessage(e=>{let t=e;t.type==="settings"&&I6(t.theme)});MS.connect().then(()=>(0,T6.createRoot)(C6).render((0,D6.jsx)(rx,{transport:MS}))).catch(e=>{E6(e instanceof Error?e.message:String(e))});})();
152
152
  /*! Bundled license information:
153
153
 
154
154
  react/cjs/react-jsx-runtime.production.js: