(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))s(m);new MutationObserver(m=>{for(const O of m)if(O.type==="childList")for(const q of O.addedNodes)q.tagName==="LINK"&&q.rel==="modulepreload"&&s(q)}).observe(document,{childList:!0,subtree:!0});function c(m){const O={};return m.integrity&&(O.integrity=m.integrity),m.referrerPolicy&&(O.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?O.credentials="include":m.crossOrigin==="anonymous"?O.credentials="omit":O.credentials="same-origin",O}function s(m){if(m.ep)return;m.ep=!0;const O=c(m);fetch(m.href,O)}})();var zs={exports:{}},Za={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yh;function Rm(){if(Yh)return Za;Yh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,m,O){var q=null;if(O!==void 0&&(q=""+O),m.key!==void 0&&(q=""+m.key),"key"in m){O={};for(var Y in m)Y!=="key"&&(O[Y]=m[Y])}else O=m;return m=O.ref,{$$typeof:r,type:s,key:q,ref:m!==void 0?m:null,props:O}}return Za.Fragment=i,Za.jsx=c,Za.jsxs=c,Za}var Lh;function zm(){return Lh||(Lh=1,zs.exports=Rm()),zs.exports}var Q=zm(),Ds={exports:{}},at={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Xh;function Dm(){if(Xh)return at;Xh=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),E=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),$=Symbol.iterator;function dt(d){return d===null||typeof d!="object"?null:(d=$&&d[$]||d["@@iterator"],typeof d=="function"?d:null)}var jt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kt=Object.assign,At={};function Yt(d,M,H){this.props=d,this.context=M,this.refs=At,this.updater=H||jt}Yt.prototype.isReactComponent={},Yt.prototype.setState=function(d,M){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,M,"setState")},Yt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function bt(){}bt.prototype=Yt.prototype;function he(d,M,H){this.props=d,this.context=M,this.refs=At,this.updater=H||jt}var xt=he.prototype=new bt;xt.constructor=he,kt(xt,Yt.prototype),xt.isPureReactComponent=!0;var te=Array.isArray,K={H:null,A:null,T:null,S:null,V:null},ee=Object.prototype.hasOwnProperty;function Ut(d,M,H,j,k,yt){return H=yt.ref,{$$typeof:r,type:d,key:M,ref:H!==void 0?H:null,props:yt}}function U(d,M){return Ut(d.type,M,void 0,void 0,void 0,d.props)}function ft(d){return typeof d=="object"&&d!==null&&d.$$typeof===r}function rt(d){var M={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(H){return M[H]})}var nt=/\/+/g;function et(d,M){return typeof d=="object"&&d!==null&&d.key!=null?rt(""+d.key):M.toString(36)}function le(){}function Qt(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(le,le):(d.status="pending",d.then(function(M){d.status==="pending"&&(d.status="fulfilled",d.value=M)},function(M){d.status==="pending"&&(d.status="rejected",d.reason=M)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function _t(d,M,H,j,k){var yt=typeof d;(yt==="undefined"||yt==="boolean")&&(d=null);var lt=!1;if(d===null)lt=!0;else switch(yt){case"bigint":case"string":case"number":lt=!0;break;case"object":switch(d.$$typeof){case r:case i:lt=!0;break;case B:return lt=d._init,_t(lt(d._payload),M,H,j,k)}}if(lt)return k=k(d),lt=j===""?"."+et(d,0):j,te(k)?(H="",lt!=null&&(H=lt.replace(nt,"$&/")+"/"),_t(k,M,H,"",function(Ye){return Ye})):k!=null&&(ft(k)&&(k=U(k,H+(k.key==null||d&&d.key===k.key?"":(""+k.key).replace(nt,"$&/")+"/")+lt)),M.push(k)),1;lt=0;var se=j===""?".":j+":";if(te(d))for(var Mt=0;Mt<d.length;Mt++)j=d[Mt],yt=se+et(j,Mt),lt+=_t(j,M,H,yt,k);else if(Mt=dt(d),typeof Mt=="function")for(d=Mt.call(d),Mt=0;!(j=d.next()).done;)j=j.value,yt=se+et(j,Mt++),lt+=_t(j,M,H,yt,k);else if(yt==="object"){if(typeof d.then=="function")return _t(Qt(d),M,H,j,k);throw M=String(d),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return lt}function A(d,M,H){if(d==null)return d;var j=[],k=0;return _t(d,j,"","",function(yt){return M.call(H,yt,k++)}),j}function C(d){if(d._status===-1){var M=d._result;M=M(),M.then(function(H){(d._status===0||d._status===-1)&&(d._status=1,d._result=H)},function(H){(d._status===0||d._status===-1)&&(d._status=2,d._result=H)}),d._status===-1&&(d._status=0,d._result=M)}if(d._status===1)return d._result.default;throw d._result}var w=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)};function gt(){}return at.Children={map:A,forEach:function(d,M,H){A(d,function(){M.apply(this,arguments)},H)},count:function(d){var M=0;return A(d,function(){M++}),M},toArray:function(d){return A(d,function(M){return M})||[]},only:function(d){if(!ft(d))throw Error("React.Children.only expected to receive a single React element child.");return d}},at.Component=Yt,at.Fragment=c,at.Profiler=m,at.PureComponent=he,at.StrictMode=s,at.Suspense=D,at.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,at.__COMPILER_RUNTIME={__proto__:null,c:function(d){return K.H.useMemoCache(d)}},at.cache=function(d){return function(){return d.apply(null,arguments)}},at.cloneElement=function(d,M,H){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var j=kt({},d.props),k=d.key,yt=void 0;if(M!=null)for(lt in M.ref!==void 0&&(yt=void 0),M.key!==void 0&&(k=""+M.key),M)!ee.call(M,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&M.ref===void 0||(j[lt]=M[lt]);var lt=arguments.length-2;if(lt===1)j.children=H;else if(1<lt){for(var se=Array(lt),Mt=0;Mt<lt;Mt++)se[Mt]=arguments[Mt+2];j.children=se}return Ut(d.type,k,void 0,void 0,yt,j)},at.createContext=function(d){return d={$$typeof:q,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:O,_context:d},d},at.createElement=function(d,M,H){var j,k={},yt=null;if(M!=null)for(j in M.key!==void 0&&(yt=""+M.key),M)ee.call(M,j)&&j!=="key"&&j!=="__self"&&j!=="__source"&&(k[j]=M[j]);var lt=arguments.length-2;if(lt===1)k.children=H;else if(1<lt){for(var se=Array(lt),Mt=0;Mt<lt;Mt++)se[Mt]=arguments[Mt+2];k.children=se}if(d&&d.defaultProps)for(j in lt=d.defaultProps,lt)k[j]===void 0&&(k[j]=lt[j]);return Ut(d,yt,void 0,void 0,null,k)},at.createRef=function(){return{current:null}},at.forwardRef=function(d){return{$$typeof:Y,render:d}},at.isValidElement=ft,at.lazy=function(d){return{$$typeof:B,_payload:{_status:-1,_result:d},_init:C}},at.memo=function(d,M){return{$$typeof:E,type:d,compare:M===void 0?null:M}},at.startTransition=function(d){var M=K.T,H={};K.T=H;try{var j=d(),k=K.S;k!==null&&k(H,j),typeof j=="object"&&j!==null&&typeof j.then=="function"&&j.then(gt,w)}catch(yt){w(yt)}finally{K.T=M}},at.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},at.use=function(d){return K.H.use(d)},at.useActionState=function(d,M,H){return K.H.useActionState(d,M,H)},at.useCallback=function(d,M){return K.H.useCallback(d,M)},at.useContext=function(d){return K.H.useContext(d)},at.useDebugValue=function(){},at.useDeferredValue=function(d,M){return K.H.useDeferredValue(d,M)},at.useEffect=function(d,M,H){var j=K.H;if(typeof H=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return j.useEffect(d,M)},at.useId=function(){return K.H.useId()},at.useImperativeHandle=function(d,M,H){return K.H.useImperativeHandle(d,M,H)},at.useInsertionEffect=function(d,M){return K.H.useInsertionEffect(d,M)},at.useLayoutEffect=function(d,M){return K.H.useLayoutEffect(d,M)},at.useMemo=function(d,M){return K.H.useMemo(d,M)},at.useOptimistic=function(d,M){return K.H.useOptimistic(d,M)},at.useReducer=function(d,M,H){return K.H.useReducer(d,M,H)},at.useRef=function(d){return K.H.useRef(d)},at.useState=function(d){return K.H.useState(d)},at.useSyncExternalStore=function(d,M,H){return K.H.useSyncExternalStore(d,M,H)},at.useTransition=function(){return K.H.useTransition()},at.version="19.1.1",at}var Gh;function Gs(){return Gh||(Gh=1,Ds.exports=Dm()),Ds.exports}var it=Gs(),xs={exports:{}},Ka={},Ms={exports:{}},Ns={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qh;function xm(){return Qh||(Qh=1,function(r){function i(A,C){var w=A.length;A.push(C);t:for(;0<w;){var gt=w-1>>>1,d=A[gt];if(0<m(d,C))A[gt]=C,A[w]=d,w=gt;else break t}}function c(A){return A.length===0?null:A[0]}function s(A){if(A.length===0)return null;var C=A[0],w=A.pop();if(w!==C){A[0]=w;t:for(var gt=0,d=A.length,M=d>>>1;gt<M;){var H=2*(gt+1)-1,j=A[H],k=H+1,yt=A[k];if(0>m(j,w))k<d&&0>m(yt,j)?(A[gt]=yt,A[k]=w,gt=k):(A[gt]=j,A[H]=w,gt=H);else if(k<d&&0>m(yt,w))A[gt]=yt,A[k]=w,gt=k;else break t}}return C}function m(A,C){var w=A.sortIndex-C.sortIndex;return w!==0?w:A.id-C.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var O=performance;r.unstable_now=function(){return O.now()}}else{var q=Date,Y=q.now();r.unstable_now=function(){return q.now()-Y}}var D=[],E=[],B=1,$=null,dt=3,jt=!1,kt=!1,At=!1,Yt=!1,bt=typeof setTimeout=="function"?setTimeout:null,he=typeof clearTimeout=="function"?clearTimeout:null,xt=typeof setImmediate<"u"?setImmediate:null;function te(A){for(var C=c(E);C!==null;){if(C.callback===null)s(E);else if(C.startTime<=A)s(E),C.sortIndex=C.expirationTime,i(D,C);else break;C=c(E)}}function K(A){if(At=!1,te(A),!kt)if(c(D)!==null)kt=!0,ee||(ee=!0,et());else{var C=c(E);C!==null&&_t(K,C.startTime-A)}}var ee=!1,Ut=-1,U=5,ft=-1;function rt(){return Yt?!0:!(r.unstable_now()-ft<U)}function nt(){if(Yt=!1,ee){var A=r.unstable_now();ft=A;var C=!0;try{t:{kt=!1,At&&(At=!1,he(Ut),Ut=-1),jt=!0;var w=dt;try{e:{for(te(A),$=c(D);$!==null&&!($.expirationTime>A&&rt());){var gt=$.callback;if(typeof gt=="function"){$.callback=null,dt=$.priorityLevel;var d=gt($.expirationTime<=A);if(A=r.unstable_now(),typeof d=="function"){$.callback=d,te(A),C=!0;break e}$===c(D)&&s(D),te(A)}else s(D);$=c(D)}if($!==null)C=!0;else{var M=c(E);M!==null&&_t(K,M.startTime-A),C=!1}}break t}finally{$=null,dt=w,jt=!1}C=void 0}}finally{C?et():ee=!1}}}var et;if(typeof xt=="function")et=function(){xt(nt)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,Qt=le.port2;le.port1.onmessage=nt,et=function(){Qt.postMessage(null)}}else et=function(){bt(nt,0)};function _t(A,C){Ut=bt(function(){A(r.unstable_now())},C)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(A){A.callback=null},r.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<A?Math.floor(1e3/A):5},r.unstable_getCurrentPriorityLevel=function(){return dt},r.unstable_next=function(A){switch(dt){case 1:case 2:case 3:var C=3;break;default:C=dt}var w=dt;dt=C;try{return A()}finally{dt=w}},r.unstable_requestPaint=function(){Yt=!0},r.unstable_runWithPriority=function(A,C){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var w=dt;dt=A;try{return C()}finally{dt=w}},r.unstable_scheduleCallback=function(A,C,w){var gt=r.unstable_now();switch(typeof w=="object"&&w!==null?(w=w.delay,w=typeof w=="number"&&0<w?gt+w:gt):w=gt,A){case 1:var d=-1;break;case 2:d=250;break;case 5:d=1073741823;break;case 4:d=1e4;break;default:d=5e3}return d=w+d,A={id:B++,callback:C,priorityLevel:A,startTime:w,expirationTime:d,sortIndex:-1},w>gt?(A.sortIndex=w,i(E,A),c(D)===null&&A===c(E)&&(At?(he(Ut),Ut=-1):At=!0,_t(K,w-gt))):(A.sortIndex=d,i(D,A),kt||jt||(kt=!0,ee||(ee=!0,et()))),A},r.unstable_shouldYield=rt,r.unstable_wrapCallback=function(A){var C=dt;return function(){var w=dt;dt=C;try{return A.apply(this,arguments)}finally{dt=w}}}}(Ns)),Ns}var Vh;function Mm(){return Vh||(Vh=1,Ms.exports=xm()),Ms.exports}var Us={exports:{}},oe={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Zh;function Nm(){if(Zh)return oe;Zh=1;var r=Gs();function i(D){var E="https://react.dev/errors/"+D;if(1<arguments.length){E+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)E+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+D+"; visit "+E+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},m=Symbol.for("react.portal");function O(D,E,B){var $=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:$==null?null:""+$,children:D,containerInfo:E,implementation:B}}var q=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Y(D,E){if(D==="font")return"";if(typeof E=="string")return E==="use-credentials"?E:""}return oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,oe.createPortal=function(D,E){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!E||E.nodeType!==1&&E.nodeType!==9&&E.nodeType!==11)throw Error(i(299));return O(D,E,null,B)},oe.flushSync=function(D){var E=q.T,B=s.p;try{if(q.T=null,s.p=2,D)return D()}finally{q.T=E,s.p=B,s.d.f()}},oe.preconnect=function(D,E){typeof D=="string"&&(E?(E=E.crossOrigin,E=typeof E=="string"?E==="use-credentials"?E:"":void 0):E=null,s.d.C(D,E))},oe.prefetchDNS=function(D){typeof D=="string"&&s.d.D(D)},oe.preinit=function(D,E){if(typeof D=="string"&&E&&typeof E.as=="string"){var B=E.as,$=Y(B,E.crossOrigin),dt=typeof E.integrity=="string"?E.integrity:void 0,jt=typeof E.fetchPriority=="string"?E.fetchPriority:void 0;B==="style"?s.d.S(D,typeof E.precedence=="string"?E.precedence:void 0,{crossOrigin:$,integrity:dt,fetchPriority:jt}):B==="script"&&s.d.X(D,{crossOrigin:$,integrity:dt,fetchPriority:jt,nonce:typeof E.nonce=="string"?E.nonce:void 0})}},oe.preinitModule=function(D,E){if(typeof D=="string")if(typeof E=="object"&&E!==null){if(E.as==null||E.as==="script"){var B=Y(E.as,E.crossOrigin);s.d.M(D,{crossOrigin:B,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0})}}else E==null&&s.d.M(D)},oe.preload=function(D,E){if(typeof D=="string"&&typeof E=="object"&&E!==null&&typeof E.as=="string"){var B=E.as,$=Y(B,E.crossOrigin);s.d.L(D,B,{crossOrigin:$,integrity:typeof E.integrity=="string"?E.integrity:void 0,nonce:typeof E.nonce=="string"?E.nonce:void 0,type:typeof E.type=="string"?E.type:void 0,fetchPriority:typeof E.fetchPriority=="string"?E.fetchPriority:void 0,referrerPolicy:typeof E.referrerPolicy=="string"?E.referrerPolicy:void 0,imageSrcSet:typeof E.imageSrcSet=="string"?E.imageSrcSet:void 0,imageSizes:typeof E.imageSizes=="string"?E.imageSizes:void 0,media:typeof E.media=="string"?E.media:void 0})}},oe.preloadModule=function(D,E){if(typeof D=="string")if(E){var B=Y(E.as,E.crossOrigin);s.d.m(D,{as:typeof E.as=="string"&&E.as!=="script"?E.as:void 0,crossOrigin:B,integrity:typeof E.integrity=="string"?E.integrity:void 0})}else s.d.m(D)},oe.requestFormReset=function(D){s.d.r(D)},oe.unstable_batchedUpdates=function(D,E){return D(E)},oe.useFormState=function(D,E,B){return q.H.useFormState(D,E,B)},oe.useFormStatus=function(){return q.H.useHostTransitionStatus()},oe.version="19.1.1",oe}var Kh;function Um(){if(Kh)return Us.exports;Kh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Us.exports=Nm(),Us.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var kh;function Cm(){if(kh)return Ka;kh=1;var r=Mm(),i=Gs(),c=Um();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function O(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function q(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Y(t){if(O(t)!==t)throw Error(s(188))}function D(t){var e=t.alternate;if(!e){if(e=O(t),e===null)throw Error(s(188));return e!==t?null:t}for(var l=t,n=e;;){var a=l.return;if(a===null)break;var u=a.alternate;if(u===null){if(n=a.return,n!==null){l=n;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===l)return Y(a),t;if(u===n)return Y(a),e;u=u.sibling}throw Error(s(188))}if(l.return!==n.return)l=a,n=u;else{for(var f=!1,o=a.child;o;){if(o===l){f=!0,l=a,n=u;break}if(o===n){f=!0,n=a,l=u;break}o=o.sibling}if(!f){for(o=u.child;o;){if(o===l){f=!0,l=u,n=a;break}if(o===n){f=!0,n=u,l=a;break}o=o.sibling}if(!f)throw Error(s(189))}}if(l.alternate!==n)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?t:e}function E(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=E(t),e!==null)return e;t=t.sibling}return null}var B=Object.assign,$=Symbol.for("react.element"),dt=Symbol.for("react.transitional.element"),jt=Symbol.for("react.portal"),kt=Symbol.for("react.fragment"),At=Symbol.for("react.strict_mode"),Yt=Symbol.for("react.profiler"),bt=Symbol.for("react.provider"),he=Symbol.for("react.consumer"),xt=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Ut=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),ft=Symbol.for("react.activity"),rt=Symbol.for("react.memo_cache_sentinel"),nt=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=nt&&t[nt]||t["@@iterator"],typeof t=="function"?t:null)}var le=Symbol.for("react.client.reference");function Qt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===le?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case kt:return"Fragment";case Yt:return"Profiler";case At:return"StrictMode";case K:return"Suspense";case ee:return"SuspenseList";case ft:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case jt:return"Portal";case xt:return(t.displayName||"Context")+".Provider";case he:return(t._context.displayName||"Context")+".Consumer";case te:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ut:return e=t.displayName||null,e!==null?e:Qt(t.type)||"Memo";case U:e=t._payload,t=t._init;try{return Qt(t(e))}catch{}}return null}var _t=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w={pending:!1,data:null,method:null,action:null},gt=[],d=-1;function M(t){return{current:t}}function H(t){0>d||(t.current=gt[d],gt[d]=null,d--)}function j(t,e){d++,gt[d]=t.current,t.current=e}var k=M(null),yt=M(null),lt=M(null),se=M(null);function Mt(t,e){switch(j(lt,e),j(yt,t),j(k,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dh(e),t=yh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(k),j(k,t)}function Ye(){H(k),H(yt),H(lt)}function kn(t){t.memoizedState!==null&&j(se,t);var e=k.current,l=yh(e,t.type);e!==l&&(j(yt,t),j(k,l))}function ml(t){yt.current===t&&(H(k),H(yt)),se.current===t&&(H(se),La._currentValue=w)}var Pe=Object.prototype.hasOwnProperty,Jn=r.unstable_scheduleCallback,$n=r.unstable_cancelCallback,yi=r.unstable_shouldYield,$a=r.unstable_requestPaint,_e=r.unstable_now,un=r.unstable_getCurrentPriorityLevel,g=r.unstable_ImmediatePriority,N=r.unstable_UserBlockingPriority,L=r.unstable_NormalPriority,T=r.unstable_LowPriority,J=r.unstable_IdlePriority,P=r.log,G=r.unstable_setDisableYieldValue,tt=null,ct=null;function Lt(t){if(typeof P=="function"&&G(t),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(tt,t)}catch{}}var qt=Math.clz32?Math.clz32:de,Ve=Math.log,gl=Math.LN2;function de(t){return t>>>=0,t===0?32:31-(Ve(t)/gl|0)|0}var ne=256,ae=4194304;function me(t){var e=t&42;if(e!==0)return e;switch(t&-t){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:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Xl(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var a=0,u=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var o=n&134217727;return o!==0?(n=o&~u,n!==0?a=me(n):(f&=o,f!==0?a=me(f):l||(l=o&~t,l!==0&&(a=me(l))))):(o=n&~u,o!==0?a=me(o):f!==0?a=me(f):l||(l=n&~t,l!==0&&(a=me(l)))),a===0?0:e!==0&&e!==a&&(e&u)===0&&(u=a&-a,l=e&-e,u>=l||u===32&&(l&4194048)!==0)?e:a}function Ie(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function mi(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Js(){var t=ne;return ne<<=1,(ne&4194048)===0&&(ne=256),t}function $s(){var t=ae;return ae<<=1,(ae&62914560)===0&&(ae=4194304),t}function gi(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function Wn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function yd(t,e,l,n,a,u){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var o=t.entanglements,h=t.expirationTimes,b=t.hiddenUpdates;for(l=f&~l;0<l;){var R=31-qt(l),x=1<<R;o[R]=0,h[R]=-1;var S=b[R];if(S!==null)for(b[R]=null,R=0;R<S.length;R++){var _=S[R];_!==null&&(_.lane&=-536870913)}l&=~x}n!==0&&Ws(t,n,0),u!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=u&~(f&~e))}function Ws(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-qt(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&4194090}function Fs(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-qt(l),a=1<<n;a&e|t[n]&e&&(t[n]|=e),l&=~a}}function vi(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function pi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ps(){var t=C.p;return t!==0?t:(t=window.event,t===void 0?32:Ch(t.type))}function md(t,e){var l=C.p;try{return C.p=t,e()}finally{C.p=l}}var vl=Math.random().toString(36).slice(2),fe="__reactFiber$"+vl,ge="__reactProps$"+vl,cn="__reactContainer$"+vl,bi="__reactEvents$"+vl,gd="__reactListeners$"+vl,vd="__reactHandles$"+vl,Is="__reactResources$"+vl,Fn="__reactMarker$"+vl;function Si(t){delete t[fe],delete t[ge],delete t[bi],delete t[gd],delete t[vd]}function sn(t){var e=t[fe];if(e)return e;for(var l=t.parentNode;l;){if(e=l[cn]||l[fe]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=ph(t);t!==null;){if(l=t[fe])return l;t=ph(t)}return e}t=l,l=t.parentNode}return null}function fn(t){if(t=t[fe]||t[cn]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function Pn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function rn(t){var e=t[Is];return e||(e=t[Is]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Wt(t){t[Fn]=!0}var tf=new Set,ef={};function Gl(t,e){on(t,e),on(t+"Capture",e)}function on(t,e){for(ef[t]=e,t=0;t<e.length;t++)tf.add(e[t])}var pd=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]*$"),lf={},nf={};function bd(t){return Pe.call(nf,t)?!0:Pe.call(lf,t)?!1:pd.test(t)?nf[t]=!0:(lf[t]=!0,!1)}function Wa(t,e,l){if(bd(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Fa(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function tl(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}var _i,af;function hn(t){if(_i===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);_i=e&&e[1]||"",af=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+_i+t+af}var Ei=!1;function Ti(t,e){if(!t||Ei)return"";Ei=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var x=function(){throw Error()};if(Object.defineProperty(x.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(x,[])}catch(_){var S=_}Reflect.construct(t,[],x)}else{try{x.call()}catch(_){S=_}t.call(x.prototype)}}else{try{throw Error()}catch(_){S=_}(x=t())&&typeof x.catch=="function"&&x.catch(function(){})}}catch(_){if(_&&S&&typeof _.stack=="string")return[_.stack,S.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=n.DetermineComponentFrameRoot(),f=u[0],o=u[1];if(f&&o){var h=f.split(`
`),b=o.split(`
`);for(a=n=0;n<h.length&&!h[n].includes("DetermineComponentFrameRoot");)n++;for(;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;if(n===h.length||a===b.length)for(n=h.length-1,a=b.length-1;1<=n&&0<=a&&h[n]!==b[a];)a--;for(;1<=n&&0<=a;n--,a--)if(h[n]!==b[a]){if(n!==1||a!==1)do if(n--,a--,0>a||h[n]!==b[a]){var R=`
`+h[n].replace(" at new "," at ");return t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=n&&0<=a);break}}}finally{Ei=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?hn(l):""}function Sd(t){switch(t.tag){case 26:case 27:case 5:return hn(t.type);case 16:return hn("Lazy");case 13:return hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return Ti(t.type,!1);case 11:return Ti(t.type.render,!1);case 1:return Ti(t.type,!0);case 31:return hn("Activity");default:return""}}function uf(t){try{var e="";do e+=Sd(t),t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}function xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function cf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _d(t){var e=cf(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,u=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return a.call(this)},set:function(f){n=""+f,u.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Pa(t){t._valueTracker||(t._valueTracker=_d(t))}function sf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=cf(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function Ia(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Ed=/[\n"\\]/g;function Me(t){return t.replace(Ed,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ai(t,e,l,n,a,u,f,o){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+xe(e)):t.value!==""+xe(e)&&(t.value=""+xe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Oi(t,f,xe(e)):l!=null?Oi(t,f,xe(l)):n!=null&&t.removeAttribute("value"),a==null&&u!=null&&(t.defaultChecked=!!u),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.name=""+xe(o):t.removeAttribute("name")}function ff(t,e,l,n,a,u,f,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||e!=null))return;l=l!=null?""+xe(l):"",e=e!=null?""+xe(e):l,o||e===t.value||(t.value=e),t.defaultValue=e}n=n??a,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=o?t.checked:!!n,t.defaultChecked=!!n,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f)}function Oi(t,e,l){e==="number"&&Ia(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function dn(t,e,l,n){if(t=t.options,e){e={};for(var a=0;a<l.length;a++)e["$"+l[a]]=!0;for(l=0;l<t.length;l++)a=e.hasOwnProperty("$"+t[l].value),t[l].selected!==a&&(t[l].selected=a),a&&n&&(t[l].defaultSelected=!0)}else{for(l=""+xe(l),e=null,a=0;a<t.length;a++){if(t[a].value===l){t[a].selected=!0,n&&(t[a].defaultSelected=!0);return}e!==null||t[a].disabled||(e=t[a])}e!==null&&(e.selected=!0)}}function rf(t,e,l){if(e!=null&&(e=""+xe(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+xe(l):""}function of(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(s(92));if(_t(n)){if(1<n.length)throw Error(s(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=xe(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n)}function yn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Td=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 hf(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Td.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function df(t,e,l){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var a in e)n=e[a],e.hasOwnProperty(a)&&l[a]!==n&&hf(t,a,n)}else for(var u in e)e.hasOwnProperty(u)&&hf(t,u,e[u])}function Ri(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Ad=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"]]),Od=/^[\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 tu(t){return Od.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var zi=null;function Di(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var mn=null,gn=null;function yf(t){var e=fn(t);if(e&&(t=e.stateNode)){var l=t[ge]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ai(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Me(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var a=n[ge]||null;if(!a)throw Error(s(90));Ai(n,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&sf(n)}break t;case"textarea":rf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&dn(t,!!l.multiple,e,!1)}}}var xi=!1;function mf(t,e,l){if(xi)return t(e,l);xi=!0;try{var n=t(e);return n}finally{if(xi=!1,(mn!==null||gn!==null)&&(Yu(),mn&&(e=mn,t=gn,gn=mn=null,yf(e),t)))for(e=0;e<t.length;e++)yf(t[e])}}function In(t,e){var l=t.stateNode;if(l===null)return null;var n=l[ge]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(s(231,e,typeof l));return l}var el=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mi=!1;if(el)try{var ta={};Object.defineProperty(ta,"passive",{get:function(){Mi=!0}}),window.addEventListener("test",ta,ta),window.removeEventListener("test",ta,ta)}catch{Mi=!1}var pl=null,Ni=null,eu=null;function gf(){if(eu)return eu;var t,e=Ni,l=e.length,n,a="value"in pl?pl.value:pl.textContent,u=a.length;for(t=0;t<l&&e[t]===a[t];t++);var f=l-t;for(n=1;n<=f&&e[l-n]===a[u-n];n++);return eu=a.slice(t,1<n?1-n:void 0)}function lu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function nu(){return!0}function vf(){return!1}function ve(t){function e(l,n,a,u,f){this._reactName=l,this._targetInst=a,this.type=n,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(l=t[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?nu:vf,this.isPropagationStopped=vf,this}return B(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),e}var Ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},au=ve(Ql),ea=B({},Ql,{view:0,detail:0}),Rd=ve(ea),Ui,Ci,la,uu=B({},ea,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qi,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==la&&(la&&t.type==="mousemove"?(Ui=t.screenX-la.screenX,Ci=t.screenY-la.screenY):Ci=Ui=0,la=t),Ui)},movementY:function(t){return"movementY"in t?t.movementY:Ci}}),pf=ve(uu),zd=B({},uu,{dataTransfer:0}),Dd=ve(zd),xd=B({},ea,{relatedTarget:0}),Bi=ve(xd),Md=B({},Ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Nd=ve(Md),Ud=B({},Ql,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cd=ve(Ud),Bd=B({},Ql,{data:0}),bf=ve(Bd),qd={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hd={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"},wd={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jd(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=wd[t])?!!e[t]:!1}function qi(){return jd}var Yd=B({},ea,{key:function(t){if(t.key){var e=qd[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=lu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hd[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qi,charCode:function(t){return t.type==="keypress"?lu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?lu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ld=ve(Yd),Xd=B({},uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sf=ve(Xd),Gd=B({},ea,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qi}),Qd=ve(Gd),Vd=B({},Ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zd=ve(Vd),Kd=B({},uu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),kd=ve(Kd),Jd=B({},Ql,{newState:0,oldState:0}),$d=ve(Jd),Wd=[9,13,27,32],Hi=el&&"CompositionEvent"in window,na=null;el&&"documentMode"in document&&(na=document.documentMode);var Fd=el&&"TextEvent"in window&&!na,_f=el&&(!Hi||na&&8<na&&11>=na),Ef=" ",Tf=!1;function Af(t,e){switch(t){case"keyup":return Wd.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Of(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var vn=!1;function Pd(t,e){switch(t){case"compositionend":return Of(e);case"keypress":return e.which!==32?null:(Tf=!0,Ef);case"textInput":return t=e.data,t===Ef&&Tf?null:t;default:return null}}function Id(t,e){if(vn)return t==="compositionend"||!Hi&&Af(t,e)?(t=gf(),eu=Ni=pl=null,vn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return _f&&e.locale!=="ko"?null:e.data;default:return null}}var ty={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 Rf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!ty[t.type]:e==="textarea"}function zf(t,e,l,n){mn?gn?gn.push(n):gn=[n]:mn=n,e=Zu(e,"onChange"),0<e.length&&(l=new au("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var aa=null,ua=null;function ey(t){sh(t,0)}function iu(t){var e=Pn(t);if(sf(e))return t}function Df(t,e){if(t==="change")return e}var xf=!1;if(el){var wi;if(el){var ji="oninput"in document;if(!ji){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),ji=typeof Mf.oninput=="function"}wi=ji}else wi=!1;xf=wi&&(!document.documentMode||9<document.documentMode)}function Nf(){aa&&(aa.detachEvent("onpropertychange",Uf),ua=aa=null)}function Uf(t){if(t.propertyName==="value"&&iu(ua)){var e=[];zf(e,ua,t,Di(t)),mf(ey,e)}}function ly(t,e,l){t==="focusin"?(Nf(),aa=e,ua=l,aa.attachEvent("onpropertychange",Uf)):t==="focusout"&&Nf()}function ny(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return iu(ua)}function ay(t,e){if(t==="click")return iu(e)}function uy(t,e){if(t==="input"||t==="change")return iu(e)}function iy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ee=typeof Object.is=="function"?Object.is:iy;function ia(t,e){if(Ee(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var a=l[n];if(!Pe.call(e,a)||!Ee(t[a],e[a]))return!1}return!0}function Cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bf(t,e){var l=Cf(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Cf(l)}}function qf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ia(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Ia(t.document)}return e}function Yi(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cy=el&&"documentMode"in document&&11>=document.documentMode,pn=null,Li=null,ca=null,Xi=!1;function wf(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Xi||pn==null||pn!==Ia(n)||(n=pn,"selectionStart"in n&&Yi(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ca&&ia(ca,n)||(ca=n,n=Zu(Li,"onSelect"),0<n.length&&(e=new au("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=pn)))}function Vl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var bn={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},Gi={},jf={};el&&(jf=document.createElement("div").style,"AnimationEvent"in window||(delete bn.animationend.animation,delete bn.animationiteration.animation,delete bn.animationstart.animation),"TransitionEvent"in window||delete bn.transitionend.transition);function Zl(t){if(Gi[t])return Gi[t];if(!bn[t])return t;var e=bn[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in jf)return Gi[t]=e[l];return t}var Yf=Zl("animationend"),Lf=Zl("animationiteration"),Xf=Zl("animationstart"),sy=Zl("transitionrun"),fy=Zl("transitionstart"),ry=Zl("transitioncancel"),Gf=Zl("transitionend"),Qf=new Map,Qi="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(" ");Qi.push("scrollEnd");function Le(t,e){Qf.set(t,e),Gl(e,[t])}var Vf=new WeakMap;function Ne(t,e){if(typeof t=="object"&&t!==null){var l=Vf.get(t);return l!==void 0?l:(e={value:t,source:e,stack:uf(e)},Vf.set(t,e),e)}return{value:t,source:e,stack:uf(e)}}var Ue=[],Sn=0,Vi=0;function cu(){for(var t=Sn,e=Vi=Sn=0;e<t;){var l=Ue[e];Ue[e++]=null;var n=Ue[e];Ue[e++]=null;var a=Ue[e];Ue[e++]=null;var u=Ue[e];if(Ue[e++]=null,n!==null&&a!==null){var f=n.pending;f===null?a.next=a:(a.next=f.next,f.next=a),n.pending=a}u!==0&&Zf(l,a,u)}}function su(t,e,l,n){Ue[Sn++]=t,Ue[Sn++]=e,Ue[Sn++]=l,Ue[Sn++]=n,Vi|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function Zi(t,e,l,n){return su(t,e,l,n),fu(t)}function _n(t,e){return su(t,null,null,e),fu(t)}function Zf(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var a=!1,u=t.return;u!==null;)u.childLanes|=l,n=u.alternate,n!==null&&(n.childLanes|=l),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(a=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,a&&e!==null&&(a=31-qt(l),t=u.hiddenUpdates,n=t[a],n===null?t[a]=[e]:n.push(e),e.lane=l|536870912),u):null}function fu(t){if(50<Ua)throw Ua=0,Fc=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var En={};function oy(t,e,l,n){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Te(t,e,l,n){return new oy(t,e,l,n)}function Ki(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ll(t,e){var l=t.alternate;return l===null?(l=Te(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Kf(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function ru(t,e,l,n,a,u){var f=0;if(n=t,typeof t=="function")Ki(t)&&(f=1);else if(typeof t=="string")f=dm(t,l,k.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ft:return t=Te(31,l,e,a),t.elementType=ft,t.lanes=u,t;case kt:return Kl(l.children,a,u,e);case At:f=8,a|=24;break;case Yt:return t=Te(12,l,e,a|2),t.elementType=Yt,t.lanes=u,t;case K:return t=Te(13,l,e,a),t.elementType=K,t.lanes=u,t;case ee:return t=Te(19,l,e,a),t.elementType=ee,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case bt:case xt:f=10;break t;case he:f=9;break t;case te:f=11;break t;case Ut:f=14;break t;case U:f=16,n=null;break t}f=29,l=Error(s(130,t===null?"null":typeof t,"")),n=null}return e=Te(f,l,e,a),e.elementType=t,e.type=n,e.lanes=u,e}function Kl(t,e,l,n){return t=Te(7,t,n,e),t.lanes=l,t}function ki(t,e,l){return t=Te(6,t,null,e),t.lanes=l,t}function Ji(t,e,l){return e=Te(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tn=[],An=0,ou=null,hu=0,Ce=[],Be=0,kl=null,nl=1,al="";function Jl(t,e){Tn[An++]=hu,Tn[An++]=ou,ou=t,hu=e}function kf(t,e,l){Ce[Be++]=nl,Ce[Be++]=al,Ce[Be++]=kl,kl=t;var n=nl;t=al;var a=32-qt(n)-1;n&=~(1<<a),l+=1;var u=32-qt(e)+a;if(30<u){var f=a-a%5;u=(n&(1<<f)-1).toString(32),n>>=f,a-=f,nl=1<<32-qt(e)+a|l<<a|n,al=u+t}else nl=1<<u|l<<a|n,al=t}function $i(t){t.return!==null&&(Jl(t,1),kf(t,1,0))}function Wi(t){for(;t===ou;)ou=Tn[--An],Tn[An]=null,hu=Tn[--An],Tn[An]=null;for(;t===kl;)kl=Ce[--Be],Ce[Be]=null,al=Ce[--Be],Ce[Be]=null,nl=Ce[--Be],Ce[Be]=null}var ye=null,Ht=null,St=!1,$l=null,Ze=!1,Fi=Error(s(519));function Wl(t){var e=Error(s(418,""));throw ra(Ne(e,t)),Fi}function Jf(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[fe]=t,e[ge]=n,l){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(l=0;l<Ba.length;l++)ht(Ba[l],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),ff(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0),Pa(e);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),of(e,n.value,n.defaultValue,n.children),Pa(e)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||hh(e.textContent,l)?(n.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),n.onScroll!=null&&ht("scroll",e),n.onScrollEnd!=null&&ht("scrollend",e),n.onClick!=null&&(e.onclick=Ku),e=!0):e=!1,e||Wl(t)}function $f(t){for(ye=t.return;ye;)switch(ye.tag){case 5:case 13:Ze=!1;return;case 27:case 3:Ze=!0;return;default:ye=ye.return}}function sa(t){if(t!==ye)return!1;if(!St)return $f(t),St=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||ds(t.type,t.memoizedProps)),l=!l),l&&Ht&&Wl(t),$f(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(l=t.data,l==="/$"){if(e===0){Ht=Ge(t.nextSibling);break t}e--}else l!=="$"&&l!=="$!"&&l!=="$?"||e++;t=t.nextSibling}Ht=null}}else e===27?(e=Ht,Bl(t.type)?(t=vs,vs=null,Ht=t):Ht=e):Ht=ye?Ge(t.stateNode.nextSibling):null;return!0}function fa(){Ht=ye=null,St=!1}function Wf(){var t=$l;return t!==null&&(Se===null?Se=t:Se.push.apply(Se,t),$l=null),t}function ra(t){$l===null?$l=[t]:$l.push(t)}var Pi=M(null),Fl=null,ul=null;function bl(t,e,l){j(Pi,e._currentValue),e._currentValue=l}function il(t){t._currentValue=Pi.current,H(Pi)}function Ii(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function tc(t,e,l,n){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){var f=a.child;u=u.firstContext;t:for(;u!==null;){var o=u;u=a;for(var h=0;h<e.length;h++)if(o.context===e[h]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Ii(u.return,l,t),n||(f=null);break t}u=o.next}}else if(a.tag===18){if(f=a.return,f===null)throw Error(s(341));f.lanes|=l,u=f.alternate,u!==null&&(u.lanes|=l),Ii(f,l,t),f=null}else f=a.child;if(f!==null)f.return=a;else for(f=a;f!==null;){if(f===t){f=null;break}if(a=f.sibling,a!==null){a.return=f.return,f=a;break}f=f.return}a=f}}function oa(t,e,l,n){t=null;for(var a=e,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var f=a.alternate;if(f===null)throw Error(s(387));if(f=f.memoizedProps,f!==null){var o=a.type;Ee(a.pendingProps.value,f.value)||(t!==null?t.push(o):t=[o])}}else if(a===se.current){if(f=a.alternate,f===null)throw Error(s(387));f.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(La):t=[La])}a=a.return}t!==null&&tc(e,t,l,n),e.flags|=262144}function du(t){for(t=t.firstContext;t!==null;){if(!Ee(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Pl(t){Fl=t,ul=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return Ff(Fl,t)}function yu(t,e){return Fl===null&&Pl(t),Ff(t,e)}function Ff(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},ul===null){if(t===null)throw Error(s(308));ul=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ul=ul.next=e;return l}var hy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},dy=r.unstable_scheduleCallback,yy=r.unstable_NormalPriority,Jt={$$typeof:xt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ec(){return{controller:new hy,data:new Map,refCount:0}}function ha(t){t.refCount--,t.refCount===0&&dy(yy,function(){t.controller.abort()})}var da=null,lc=0,On=0,Rn=null;function my(t,e){if(da===null){var l=da=[];lc=0,On=as(),Rn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return lc++,e.then(Pf,Pf),e}function Pf(){if(--lc===0&&da!==null){Rn!==null&&(Rn.status="fulfilled");var t=da;da=null,On=0,Rn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gy(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(a){l.push(a)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var a=0;a<l.length;a++)(0,l[a])(e)},function(a){for(n.status="rejected",n.reason=a,a=0;a<l.length;a++)(0,l[a])(void 0)}),n}var If=A.S;A.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&my(t,e),If!==null&&If(t,e)};var Il=M(null);function nc(){var t=Il.current;return t!==null?t:Nt.pooledCache}function mu(t,e){e===null?j(Il,Il.current):j(Il,e.pool)}function tr(){var t=nc();return t===null?null:{parent:Jt._currentValue,pool:t}}var ya=Error(s(460)),er=Error(s(474)),gu=Error(s(542)),ac={then:function(){}};function lr(t){return t=t.status,t==="fulfilled"||t==="rejected"}function vu(){}function nr(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(vu,vu),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ur(t),t;default:if(typeof e.status=="string")e.then(vu,vu);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=n}},function(n){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ur(t),t}throw ma=e,ya}}var ma=null;function ar(){if(ma===null)throw Error(s(459));var t=ma;return ma=null,t}function ur(t){if(t===ya||t===gu)throw Error(s(483))}var Sl=!1;function uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function _l(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function El(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Et&2)!==0){var a=n.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),n.pending=e,e=fu(t),Zf(t,null,l),e}return su(t,n,e,l),fu(t)}function ga(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Fs(t,l)}}function cc(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var a=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?a=u=f:u=u.next=f,l=l.next}while(l!==null);u===null?a=u=e:u=u.next=e}else a=u=e;l={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var sc=!1;function va(){if(sc){var t=Rn;if(t!==null)throw t}}function pa(t,e,l,n){sc=!1;var a=t.updateQueue;Sl=!1;var u=a.firstBaseUpdate,f=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var h=o,b=h.next;h.next=null,f===null?u=b:f.next=b,f=h;var R=t.alternate;R!==null&&(R=R.updateQueue,o=R.lastBaseUpdate,o!==f&&(o===null?R.firstBaseUpdate=b:o.next=b,R.lastBaseUpdate=h))}if(u!==null){var x=a.baseState;f=0,R=b=h=null,o=u;do{var S=o.lane&-536870913,_=S!==o.lane;if(_?(vt&S)===S:(n&S)===S){S!==0&&S===On&&(sc=!0),R!==null&&(R=R.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});t:{var I=t,W=o;S=e;var zt=l;switch(W.tag){case 1:if(I=W.payload,typeof I=="function"){x=I.call(zt,x,S);break t}x=I;break t;case 3:I.flags=I.flags&-65537|128;case 0:if(I=W.payload,S=typeof I=="function"?I.call(zt,x,S):I,S==null)break t;x=B({},x,S);break t;case 2:Sl=!0}}S=o.callback,S!==null&&(t.flags|=64,_&&(t.flags|=8192),_=a.callbacks,_===null?a.callbacks=[S]:_.push(S))}else _={lane:S,tag:o.tag,payload:o.payload,callback:o.callback,next:null},R===null?(b=R=_,h=x):R=R.next=_,f|=S;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;_=o,o=_.next,_.next=null,a.lastBaseUpdate=_,a.shared.pending=null}}while(!0);R===null&&(h=x),a.baseState=h,a.firstBaseUpdate=b,a.lastBaseUpdate=R,u===null&&(a.shared.lanes=0),Ml|=f,t.lanes=f,t.memoizedState=x}}function ir(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function cr(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)ir(l[t],e)}var zn=M(null),pu=M(0);function sr(t,e){t=dl,j(pu,t),j(zn,e),dl=t|e.baseLanes}function fc(){j(pu,dl),j(zn,zn.current)}function rc(){dl=pu.current,H(zn),H(pu)}var Tl=0,ut=null,Ot=null,Vt=null,bu=!1,Dn=!1,tn=!1,Su=0,ba=0,xn=null,vy=0;function Xt(){throw Error(s(321))}function oc(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ee(t[l],e[l]))return!1;return!0}function hc(t,e,l,n,a,u){return Tl=u,ut=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?Zr:Kr,tn=!1,u=l(n,a),tn=!1,Dn&&(u=rr(e,l,n,a)),fr(t),u}function fr(t){A.H=Ru;var e=Ot!==null&&Ot.next!==null;if(Tl=0,Vt=Ot=ut=null,bu=!1,ba=0,xn=null,e)throw Error(s(300));t===null||Ft||(t=t.dependencies,t!==null&&du(t)&&(Ft=!0))}function rr(t,e,l,n){ut=t;var a=0;do{if(Dn&&(xn=null),ba=0,Dn=!1,25<=a)throw Error(s(301));if(a+=1,Vt=Ot=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}A.H=Ay,u=e(l,n)}while(Dn);return u}function py(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(ut.flags|=1024),e}function dc(){var t=Su!==0;return Su=0,t}function yc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function mc(t){if(bu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}bu=!1}Tl=0,Vt=Ot=ut=null,Dn=!1,ba=Su=0,xn=null}function pe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?ut.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Zt(){if(Ot===null){var t=ut.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Vt===null?ut.memoizedState:Vt.next;if(e!==null)Vt=e,Ot=t;else{if(t===null)throw ut.alternate===null?Error(s(467)):Error(s(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Vt===null?ut.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function gc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(t){var e=ba;return ba+=1,xn===null&&(xn=[]),t=nr(xn,t,e),e=ut,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?Zr:Kr),t}function _u(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sa(t);if(t.$$typeof===xt)return re(t)}throw Error(s(438,String(t)))}function vc(t){var e=null,l=ut.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=ut.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(a){return a.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=gc(),ut.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=rt;return e.index++,l}function cl(t,e){return typeof e=="function"?e(t):e}function Eu(t){var e=Zt();return pc(e,Ot,t)}function pc(t,e,l){var n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=l;var a=t.baseQueue,u=n.pending;if(u!==null){if(a!==null){var f=a.next;a.next=u.next,u.next=f}e.baseQueue=a=u,n.pending=null}if(u=t.baseState,a===null)t.memoizedState=u;else{e=a.next;var o=f=null,h=null,b=e,R=!1;do{var x=b.lane&-536870913;if(x!==b.lane?(vt&x)===x:(Tl&x)===x){var S=b.revertLane;if(S===0)h!==null&&(h=h.next={lane:0,revertLane:0,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),x===On&&(R=!0);else if((Tl&S)===S){b=b.next,S===On&&(R=!0);continue}else x={lane:0,revertLane:b.revertLane,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},h===null?(o=h=x,f=u):h=h.next=x,ut.lanes|=S,Ml|=S;x=b.action,tn&&l(u,x),u=b.hasEagerState?b.eagerState:l(u,x)}else S={lane:x,revertLane:b.revertLane,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},h===null?(o=h=S,f=u):h=h.next=S,ut.lanes|=x,Ml|=x;b=b.next}while(b!==null&&b!==e);if(h===null?f=u:h.next=o,!Ee(u,t.memoizedState)&&(Ft=!0,R&&(l=Rn,l!==null)))throw l;t.memoizedState=u,t.baseState=f,t.baseQueue=h,n.lastRenderedState=u}return a===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function bc(t){var e=Zt(),l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=t;var n=l.dispatch,a=l.pending,u=e.memoizedState;if(a!==null){l.pending=null;var f=a=a.next;do u=t(u,f.action),f=f.next;while(f!==a);Ee(u,e.memoizedState)||(Ft=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),l.lastRenderedState=u}return[u,n]}function or(t,e,l){var n=ut,a=Zt(),u=St;if(u){if(l===void 0)throw Error(s(407));l=l()}else l=e();var f=!Ee((Ot||a).memoizedState,l);f&&(a.memoizedState=l,Ft=!0),a=a.queue;var o=yr.bind(null,n,a,t);if(_a(2048,8,o,[t]),a.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(n.flags|=2048,Mn(9,Tu(),dr.bind(null,n,a,l,e),null),Nt===null)throw Error(s(349));u||(Tl&124)!==0||hr(n,e,l)}return l}function hr(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ut.updateQueue,e===null?(e=gc(),ut.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function dr(t,e,l,n){e.value=l,e.getSnapshot=n,mr(e)&&gr(t)}function yr(t,e,l){return l(function(){mr(e)&&gr(t)})}function mr(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ee(t,l)}catch{return!0}}function gr(t){var e=_n(t,2);e!==null&&De(e,t,2)}function Sc(t){var e=pe();if(typeof t=="function"){var l=t;if(t=l(),tn){Lt(!0);try{l()}finally{Lt(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:t},e}function vr(t,e,l,n){return t.baseState=l,pc(t,Ot,typeof n=="function"?n:cl)}function by(t,e,l,n,a){if(Ou(t))throw Error(s(485));if(t=e.action,t!==null){var u={payload:a,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};A.T!==null?l(!0):u.isTransition=!1,n(u),l=e.pending,l===null?(u.next=e.pending=u,pr(e,u)):(u.next=l.next,e.pending=l.next=u)}}function pr(t,e){var l=e.action,n=e.payload,a=t.state;if(e.isTransition){var u=A.T,f={};A.T=f;try{var o=l(a,n),h=A.S;h!==null&&h(f,o),br(t,e,o)}catch(b){_c(t,e,b)}finally{A.T=u}}else try{u=l(a,n),br(t,e,u)}catch(b){_c(t,e,b)}}function br(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){Sr(t,e,n)},function(n){return _c(t,e,n)}):Sr(t,e,l)}function Sr(t,e,l){e.status="fulfilled",e.value=l,_r(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,pr(t,l)))}function _c(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,_r(e),e=e.next;while(e!==n)}t.action=null}function _r(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Er(t,e){return e}function Tr(t,e){if(St){var l=Nt.formState;if(l!==null){t:{var n=ut;if(St){if(Ht){e:{for(var a=Ht,u=Ze;a.nodeType!==8;){if(!u){a=null;break e}if(a=Ge(a.nextSibling),a===null){a=null;break e}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Ht=Ge(a.nextSibling),n=a.data==="F!";break t}}Wl(n)}n=!1}n&&(e=l[0])}}return l=pe(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:e},l.queue=n,l=Gr.bind(null,ut,n),n.dispatch=l,n=Sc(!1),u=Rc.bind(null,ut,!1,n.queue),n=pe(),a={state:e,dispatch:null,action:t,pending:null},n.queue=a,l=by.bind(null,ut,a,u,l),a.dispatch=l,n.memoizedState=t,[e,l,!1]}function Ar(t){var e=Zt();return Or(e,Ot,t)}function Or(t,e,l){if(e=pc(t,e,Er)[0],t=Eu(cl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=Sa(e)}catch(f){throw f===ya?gu:f}else n=e;e=Zt();var a=e.queue,u=a.dispatch;return l!==e.memoizedState&&(ut.flags|=2048,Mn(9,Tu(),Sy.bind(null,a,l),null)),[n,u,t]}function Sy(t,e){t.action=e}function Rr(t){var e=Zt(),l=Ot;if(l!==null)return Or(e,l,t);Zt(),e=e.memoizedState,l=Zt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Mn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=ut.updateQueue,e===null&&(e=gc(),ut.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function Tu(){return{destroy:void 0,resource:void 0}}function zr(){return Zt().memoizedState}function Au(t,e,l,n){var a=pe();n=n===void 0?null:n,ut.flags|=t,a.memoizedState=Mn(1|e,Tu(),l,n)}function _a(t,e,l,n){var a=Zt();n=n===void 0?null:n;var u=a.memoizedState.inst;Ot!==null&&n!==null&&oc(n,Ot.memoizedState.deps)?a.memoizedState=Mn(e,u,l,n):(ut.flags|=t,a.memoizedState=Mn(1|e,u,l,n))}function Dr(t,e){Au(8390656,8,t,e)}function xr(t,e){_a(2048,8,t,e)}function Mr(t,e){return _a(4,2,t,e)}function Nr(t,e){return _a(4,4,t,e)}function Ur(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Cr(t,e,l){l=l!=null?l.concat([t]):null,_a(4,4,Ur.bind(null,e,t),l)}function Ec(){}function Br(t,e){var l=Zt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&oc(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function qr(t,e){var l=Zt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&oc(e,n[1]))return n[0];if(n=t(),tn){Lt(!0);try{t()}finally{Lt(!1)}}return l.memoizedState=[n,e],n}function Tc(t,e,l){return l===void 0||(Tl&1073741824)!==0?t.memoizedState=e:(t.memoizedState=l,t=Yo(),ut.lanes|=t,Ml|=t,l)}function Hr(t,e,l,n){return Ee(l,e)?l:zn.current!==null?(t=Tc(t,l,n),Ee(t,e)||(Ft=!0),t):(Tl&42)===0?(Ft=!0,t.memoizedState=l):(t=Yo(),ut.lanes|=t,Ml|=t,e)}function wr(t,e,l,n,a){var u=C.p;C.p=u!==0&&8>u?u:8;var f=A.T,o={};A.T=o,Rc(t,!1,e,l);try{var h=a(),b=A.S;if(b!==null&&b(o,h),h!==null&&typeof h=="object"&&typeof h.then=="function"){var R=gy(h,n);Ea(t,e,R,ze(t))}else Ea(t,e,n,ze(t))}catch(x){Ea(t,e,{then:function(){},status:"rejected",reason:x},ze())}finally{C.p=u,A.T=f}}function _y(){}function Ac(t,e,l,n){if(t.tag!==5)throw Error(s(476));var a=jr(t).queue;wr(t,a,e,w,l===null?_y:function(){return Yr(t),l(n)})}function jr(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:w,baseState:w,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:w},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Yr(t){var e=jr(t).next.queue;Ea(t,e,{},ze())}function Oc(){return re(La)}function Lr(){return Zt().memoizedState}function Xr(){return Zt().memoizedState}function Ey(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=ze();t=_l(l);var n=El(e,t,l);n!==null&&(De(n,e,l),ga(n,e,l)),e={cache:ec()},t.payload=e;return}e=e.return}}function Ty(t,e,l){var n=ze();l={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(t)?Qr(e,l):(l=Zi(t,e,l,n),l!==null&&(De(l,t,n),Vr(l,e,n)))}function Gr(t,e,l){var n=ze();Ea(t,e,l,n)}function Ea(t,e,l,n){var a={lane:n,revertLane:0,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ou(t))Qr(e,a);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var f=e.lastRenderedState,o=u(f,l);if(a.hasEagerState=!0,a.eagerState=o,Ee(o,f))return su(t,e,a,0),Nt===null&&cu(),!1}catch{}finally{}if(l=Zi(t,e,a,n),l!==null)return De(l,t,n),Vr(l,e,n),!0}return!1}function Rc(t,e,l,n){if(n={lane:2,revertLane:as(),action:n,hasEagerState:!1,eagerState:null,next:null},Ou(t)){if(e)throw Error(s(479))}else e=Zi(t,l,n,2),e!==null&&De(e,t,2)}function Ou(t){var e=t.alternate;return t===ut||e!==null&&e===ut}function Qr(t,e){Dn=bu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Vr(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Fs(t,l)}}var Ru={readContext:re,use:_u,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt},Zr={readContext:re,use:_u,useCallback:function(t,e){return pe().memoizedState=[t,e===void 0?null:e],t},useContext:re,useEffect:Dr,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Au(4194308,4,Ur.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Au(4194308,4,t,e)},useInsertionEffect:function(t,e){Au(4,2,t,e)},useMemo:function(t,e){var l=pe();e=e===void 0?null:e;var n=t();if(tn){Lt(!0);try{t()}finally{Lt(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=pe();if(l!==void 0){var a=l(e);if(tn){Lt(!0);try{l(e)}finally{Lt(!1)}}}else a=e;return n.memoizedState=n.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},n.queue=t,t=t.dispatch=Ty.bind(null,ut,t),[n.memoizedState,t]},useRef:function(t){var e=pe();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,l=Gr.bind(null,ut,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Ec,useDeferredValue:function(t,e){var l=pe();return Tc(l,t,e)},useTransition:function(){var t=Sc(!1);return t=wr.bind(null,ut,t.queue,!0,!1),pe().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=ut,a=pe();if(St){if(l===void 0)throw Error(s(407));l=l()}else{if(l=e(),Nt===null)throw Error(s(349));(vt&124)!==0||hr(n,e,l)}a.memoizedState=l;var u={value:l,getSnapshot:e};return a.queue=u,Dr(yr.bind(null,n,u,t),[t]),n.flags|=2048,Mn(9,Tu(),dr.bind(null,n,u,l,e),null),l},useId:function(){var t=pe(),e=Nt.identifierPrefix;if(St){var l=al,n=nl;l=(n&~(1<<32-qt(n)-1)).toString(32)+l,e="«"+e+"R"+l,l=Su++,0<l&&(e+="H"+l.toString(32)),e+="»"}else l=vy++,e="«"+e+"r"+l.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:Oc,useFormState:Tr,useActionState:Tr,useOptimistic:function(t){var e=pe();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Rc.bind(null,ut,!0,l),l.dispatch=e,[t,e]},useMemoCache:vc,useCacheRefresh:function(){return pe().memoizedState=Ey.bind(null,ut)}},Kr={readContext:re,use:_u,useCallback:Br,useContext:re,useEffect:xr,useImperativeHandle:Cr,useInsertionEffect:Mr,useLayoutEffect:Nr,useMemo:qr,useReducer:Eu,useRef:zr,useState:function(){return Eu(cl)},useDebugValue:Ec,useDeferredValue:function(t,e){var l=Zt();return Hr(l,Ot.memoizedState,t,e)},useTransition:function(){var t=Eu(cl)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:or,useId:Lr,useHostTransitionStatus:Oc,useFormState:Ar,useActionState:Ar,useOptimistic:function(t,e){var l=Zt();return vr(l,Ot,t,e)},useMemoCache:vc,useCacheRefresh:Xr},Ay={readContext:re,use:_u,useCallback:Br,useContext:re,useEffect:xr,useImperativeHandle:Cr,useInsertionEffect:Mr,useLayoutEffect:Nr,useMemo:qr,useReducer:bc,useRef:zr,useState:function(){return bc(cl)},useDebugValue:Ec,useDeferredValue:function(t,e){var l=Zt();return Ot===null?Tc(l,t,e):Hr(l,Ot.memoizedState,t,e)},useTransition:function(){var t=bc(cl)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:or,useId:Lr,useHostTransitionStatus:Oc,useFormState:Rr,useActionState:Rr,useOptimistic:function(t,e){var l=Zt();return Ot!==null?vr(l,Ot,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:vc,useCacheRefresh:Xr},Nn=null,Ta=0;function zu(t){var e=Ta;return Ta+=1,Nn===null&&(Nn=[]),nr(Nn,t,e)}function Aa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Du(t,e){throw e.$$typeof===$?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function kr(t){var e=t._init;return e(t._payload)}function Jr(t){function e(v,y){if(t){var p=v.deletions;p===null?(v.deletions=[y],v.flags|=16):p.push(y)}}function l(v,y){if(!t)return null;for(;y!==null;)e(v,y),y=y.sibling;return null}function n(v){for(var y=new Map;v!==null;)v.key!==null?y.set(v.key,v):y.set(v.index,v),v=v.sibling;return y}function a(v,y){return v=ll(v,y),v.index=0,v.sibling=null,v}function u(v,y,p){return v.index=p,t?(p=v.alternate,p!==null?(p=p.index,p<y?(v.flags|=67108866,y):p):(v.flags|=67108866,y)):(v.flags|=1048576,y)}function f(v){return t&&v.alternate===null&&(v.flags|=67108866),v}function o(v,y,p,z){return y===null||y.tag!==6?(y=ki(p,v.mode,z),y.return=v,y):(y=a(y,p),y.return=v,y)}function h(v,y,p,z){var X=p.type;return X===kt?R(v,y,p.props.children,z,p.key):y!==null&&(y.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===U&&kr(X)===y.type)?(y=a(y,p.props),Aa(y,p),y.return=v,y):(y=ru(p.type,p.key,p.props,null,v.mode,z),Aa(y,p),y.return=v,y)}function b(v,y,p,z){return y===null||y.tag!==4||y.stateNode.containerInfo!==p.containerInfo||y.stateNode.implementation!==p.implementation?(y=Ji(p,v.mode,z),y.return=v,y):(y=a(y,p.children||[]),y.return=v,y)}function R(v,y,p,z,X){return y===null||y.tag!==7?(y=Kl(p,v.mode,z,X),y.return=v,y):(y=a(y,p),y.return=v,y)}function x(v,y,p){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=ki(""+y,v.mode,p),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case dt:return p=ru(y.type,y.key,y.props,null,v.mode,p),Aa(p,y),p.return=v,p;case jt:return y=Ji(y,v.mode,p),y.return=v,y;case U:var z=y._init;return y=z(y._payload),x(v,y,p)}if(_t(y)||et(y))return y=Kl(y,v.mode,p,null),y.return=v,y;if(typeof y.then=="function")return x(v,zu(y),p);if(y.$$typeof===xt)return x(v,yu(v,y),p);Du(v,y)}return null}function S(v,y,p,z){var X=y!==null?y.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return X!==null?null:o(v,y,""+p,z);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case dt:return p.key===X?h(v,y,p,z):null;case jt:return p.key===X?b(v,y,p,z):null;case U:return X=p._init,p=X(p._payload),S(v,y,p,z)}if(_t(p)||et(p))return X!==null?null:R(v,y,p,z,null);if(typeof p.then=="function")return S(v,y,zu(p),z);if(p.$$typeof===xt)return S(v,y,yu(v,p),z);Du(v,p)}return null}function _(v,y,p,z,X){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return v=v.get(p)||null,o(y,v,""+z,X);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case dt:return v=v.get(z.key===null?p:z.key)||null,h(y,v,z,X);case jt:return v=v.get(z.key===null?p:z.key)||null,b(y,v,z,X);case U:var st=z._init;return z=st(z._payload),_(v,y,p,z,X)}if(_t(z)||et(z))return v=v.get(p)||null,R(y,v,z,X,null);if(typeof z.then=="function")return _(v,y,p,zu(z),X);if(z.$$typeof===xt)return _(v,y,p,yu(y,z),X);Du(y,z)}return null}function I(v,y,p,z){for(var X=null,st=null,Z=y,F=y=0,It=null;Z!==null&&F<p.length;F++){Z.index>F?(It=Z,Z=null):It=Z.sibling;var pt=S(v,Z,p[F],z);if(pt===null){Z===null&&(Z=It);break}t&&Z&&pt.alternate===null&&e(v,Z),y=u(pt,y,F),st===null?X=pt:st.sibling=pt,st=pt,Z=It}if(F===p.length)return l(v,Z),St&&Jl(v,F),X;if(Z===null){for(;F<p.length;F++)Z=x(v,p[F],z),Z!==null&&(y=u(Z,y,F),st===null?X=Z:st.sibling=Z,st=Z);return St&&Jl(v,F),X}for(Z=n(Z);F<p.length;F++)It=_(Z,v,F,p[F],z),It!==null&&(t&&It.alternate!==null&&Z.delete(It.key===null?F:It.key),y=u(It,y,F),st===null?X=It:st.sibling=It,st=It);return t&&Z.forEach(function(Yl){return e(v,Yl)}),St&&Jl(v,F),X}function W(v,y,p,z){if(p==null)throw Error(s(151));for(var X=null,st=null,Z=y,F=y=0,It=null,pt=p.next();Z!==null&&!pt.done;F++,pt=p.next()){Z.index>F?(It=Z,Z=null):It=Z.sibling;var Yl=S(v,Z,pt.value,z);if(Yl===null){Z===null&&(Z=It);break}t&&Z&&Yl.alternate===null&&e(v,Z),y=u(Yl,y,F),st===null?X=Yl:st.sibling=Yl,st=Yl,Z=It}if(pt.done)return l(v,Z),St&&Jl(v,F),X;if(Z===null){for(;!pt.done;F++,pt=p.next())pt=x(v,pt.value,z),pt!==null&&(y=u(pt,y,F),st===null?X=pt:st.sibling=pt,st=pt);return St&&Jl(v,F),X}for(Z=n(Z);!pt.done;F++,pt=p.next())pt=_(Z,v,F,pt.value,z),pt!==null&&(t&&pt.alternate!==null&&Z.delete(pt.key===null?F:pt.key),y=u(pt,y,F),st===null?X=pt:st.sibling=pt,st=pt);return t&&Z.forEach(function(Om){return e(v,Om)}),St&&Jl(v,F),X}function zt(v,y,p,z){if(typeof p=="object"&&p!==null&&p.type===kt&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case dt:t:{for(var X=p.key;y!==null;){if(y.key===X){if(X=p.type,X===kt){if(y.tag===7){l(v,y.sibling),z=a(y,p.props.children),z.return=v,v=z;break t}}else if(y.elementType===X||typeof X=="object"&&X!==null&&X.$$typeof===U&&kr(X)===y.type){l(v,y.sibling),z=a(y,p.props),Aa(z,p),z.return=v,v=z;break t}l(v,y);break}else e(v,y);y=y.sibling}p.type===kt?(z=Kl(p.props.children,v.mode,z,p.key),z.return=v,v=z):(z=ru(p.type,p.key,p.props,null,v.mode,z),Aa(z,p),z.return=v,v=z)}return f(v);case jt:t:{for(X=p.key;y!==null;){if(y.key===X)if(y.tag===4&&y.stateNode.containerInfo===p.containerInfo&&y.stateNode.implementation===p.implementation){l(v,y.sibling),z=a(y,p.children||[]),z.return=v,v=z;break t}else{l(v,y);break}else e(v,y);y=y.sibling}z=Ji(p,v.mode,z),z.return=v,v=z}return f(v);case U:return X=p._init,p=X(p._payload),zt(v,y,p,z)}if(_t(p))return I(v,y,p,z);if(et(p)){if(X=et(p),typeof X!="function")throw Error(s(150));return p=X.call(p),W(v,y,p,z)}if(typeof p.then=="function")return zt(v,y,zu(p),z);if(p.$$typeof===xt)return zt(v,y,yu(v,p),z);Du(v,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,y!==null&&y.tag===6?(l(v,y.sibling),z=a(y,p),z.return=v,v=z):(l(v,y),z=ki(p,v.mode,z),z.return=v,v=z),f(v)):l(v,y)}return function(v,y,p,z){try{Ta=0;var X=zt(v,y,p,z);return Nn=null,X}catch(Z){if(Z===ya||Z===gu)throw Z;var st=Te(29,Z,null,v.mode);return st.lanes=z,st.return=v,st}finally{}}}var Un=Jr(!0),$r=Jr(!1),qe=M(null),Ke=null;function Al(t){var e=t.alternate;j($t,$t.current&1),j(qe,t),Ke===null&&(e===null||zn.current!==null||e.memoizedState!==null)&&(Ke=t)}function Wr(t){if(t.tag===22){if(j($t,$t.current),j(qe,t),Ke===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(Ke=t)}}else Ol()}function Ol(){j($t,$t.current),j(qe,qe.current)}function sl(t){H(qe),Ke===t&&(Ke=null),H($t)}var $t=M(0);function xu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||gs(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function zc(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:B({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Dc={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=ze(),a=_l(n);a.payload=e,l!=null&&(a.callback=l),e=El(t,a,n),e!==null&&(De(e,t,n),ga(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=ze(),a=_l(n);a.tag=1,a.payload=e,l!=null&&(a.callback=l),e=El(t,a,n),e!==null&&(De(e,t,n),ga(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=ze(),n=_l(l);n.tag=2,e!=null&&(n.callback=e),e=El(t,n,l),e!==null&&(De(e,t,l),ga(e,t,l))}};function Fr(t,e,l,n,a,u,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,u,f):e.prototype&&e.prototype.isPureReactComponent?!ia(l,n)||!ia(a,u):!0}function Pr(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&Dc.enqueueReplaceState(e,e.state,null)}function en(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=B({},l));for(var a in t)l[a]===void 0&&(l[a]=t[a])}return l}var Mu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Ir(t){Mu(t)}function to(t){console.error(t)}function eo(t){Mu(t)}function Nu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function lo(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function xc(t,e,l){return l=_l(l),l.tag=3,l.payload={element:null},l.callback=function(){Nu(t,e)},l}function no(t){return t=_l(t),t.tag=3,t}function ao(t,e,l,n){var a=l.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;t.payload=function(){return a(u)},t.callback=function(){lo(e,l,n)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){lo(e,l,n),typeof a!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var o=n.stack;this.componentDidCatch(n.value,{componentStack:o!==null?o:""})})}function Oy(t,e,l,n,a){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&oa(e,l,a,!0),l=qe.current,l!==null){switch(l.tag){case 13:return Ke===null?Ic():l.alternate===null&&wt===0&&(wt=3),l.flags&=-257,l.flags|=65536,l.lanes=a,n===ac?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),es(t,n,a)),!1;case 22:return l.flags|=65536,n===ac?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),es(t,n,a)),!1}throw Error(s(435,l.tag))}return es(t,n,a),Ic(),!1}if(St)return e=qe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,n!==Fi&&(t=Error(s(422),{cause:n}),ra(Ne(t,l)))):(n!==Fi&&(e=Error(s(423),{cause:n}),ra(Ne(e,l))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,n=Ne(n,l),a=xc(t.stateNode,n,a),cc(t,a),wt!==4&&(wt=2)),!1;var u=Error(s(520),{cause:n});if(u=Ne(u,l),Na===null?Na=[u]:Na.push(u),wt!==4&&(wt=2),e===null)return!0;n=Ne(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=a&-a,l.lanes|=t,t=xc(l.stateNode,n,t),cc(l,t),!1;case 1:if(e=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Nl===null||!Nl.has(u))))return l.flags|=65536,a&=-a,l.lanes|=a,a=no(a),ao(a,t,l,n),cc(l,a),!1}l=l.return}while(l!==null);return!1}var uo=Error(s(461)),Ft=!1;function ue(t,e,l,n){e.child=t===null?$r(e,null,l,n):Un(e,t.child,l,n)}function io(t,e,l,n,a){l=l.render;var u=e.ref;if("ref"in n){var f={};for(var o in n)o!=="ref"&&(f[o]=n[o])}else f=n;return Pl(e),n=hc(t,e,l,f,u,a),o=dc(),t!==null&&!Ft?(yc(t,e,a),fl(t,e,a)):(St&&o&&$i(e),e.flags|=1,ue(t,e,n,a),e.child)}function co(t,e,l,n,a){if(t===null){var u=l.type;return typeof u=="function"&&!Ki(u)&&u.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=u,so(t,e,u,n,a)):(t=ru(l.type,null,n,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!wc(t,a)){var f=u.memoizedProps;if(l=l.compare,l=l!==null?l:ia,l(f,n)&&t.ref===e.ref)return fl(t,e,a)}return e.flags|=1,t=ll(u,n),t.ref=e.ref,t.return=e,e.child=t}function so(t,e,l,n,a){if(t!==null){var u=t.memoizedProps;if(ia(u,n)&&t.ref===e.ref)if(Ft=!1,e.pendingProps=n=u,wc(t,a))(t.flags&131072)!==0&&(Ft=!0);else return e.lanes=t.lanes,fl(t,e,a)}return Mc(t,e,l,n,a)}function fo(t,e,l){var n=e.pendingProps,a=n.children,u=t!==null?t.memoizedState:null;if(n.mode==="hidden"){if((e.flags&128)!==0){if(n=u!==null?u.baseLanes|l:l,t!==null){for(a=e.child=t.child,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;e.childLanes=u&~n}else e.childLanes=0,e.child=null;return ro(t,e,n,l)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&mu(e,u!==null?u.cachePool:null),u!==null?sr(e,u):fc(),Wr(e);else return e.lanes=e.childLanes=536870912,ro(t,e,u!==null?u.baseLanes|l:l,l)}else u!==null?(mu(e,u.cachePool),sr(e,u),Ol(),e.memoizedState=null):(t!==null&&mu(e,null),fc(),Ol());return ue(t,e,a,l),e.child}function ro(t,e,l,n){var a=nc();return a=a===null?null:{parent:Jt._currentValue,pool:a},e.memoizedState={baseLanes:l,cachePool:a},t!==null&&mu(e,null),fc(),Wr(e),t!==null&&oa(t,e,n,!0),null}function Uu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Mc(t,e,l,n,a){return Pl(e),l=hc(t,e,l,n,void 0,a),n=dc(),t!==null&&!Ft?(yc(t,e,a),fl(t,e,a)):(St&&n&&$i(e),e.flags|=1,ue(t,e,l,a),e.child)}function oo(t,e,l,n,a,u){return Pl(e),e.updateQueue=null,l=rr(e,n,l,a),fr(t),n=dc(),t!==null&&!Ft?(yc(t,e,u),fl(t,e,u)):(St&&n&&$i(e),e.flags|=1,ue(t,e,l,u),e.child)}function ho(t,e,l,n,a){if(Pl(e),e.stateNode===null){var u=En,f=l.contextType;typeof f=="object"&&f!==null&&(u=re(f)),u=new l(n,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Dc,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=n,u.state=e.memoizedState,u.refs={},uc(e),f=l.contextType,u.context=typeof f=="object"&&f!==null?re(f):En,u.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(zc(e,l,f,n),u.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&Dc.enqueueReplaceState(u,u.state,null),pa(e,n,u,a),va(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){u=e.stateNode;var o=e.memoizedProps,h=en(l,o);u.props=h;var b=u.context,R=l.contextType;f=En,typeof R=="object"&&R!==null&&(f=re(R));var x=l.getDerivedStateFromProps;R=typeof x=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=e.pendingProps!==o,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||b!==f)&&Pr(e,u,n,f),Sl=!1;var S=e.memoizedState;u.state=S,pa(e,n,u,a),va(),b=e.memoizedState,o||S!==b||Sl?(typeof x=="function"&&(zc(e,l,x,n),b=e.memoizedState),(h=Sl||Fr(e,l,h,n,S,b,f))?(R||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=b),u.props=n,u.state=b,u.context=f,n=h):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{u=e.stateNode,ic(t,e),f=e.memoizedProps,R=en(l,f),u.props=R,x=e.pendingProps,S=u.context,b=l.contextType,h=En,typeof b=="object"&&b!==null&&(h=re(b)),o=l.getDerivedStateFromProps,(b=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==x||S!==h)&&Pr(e,u,n,h),Sl=!1,S=e.memoizedState,u.state=S,pa(e,n,u,a),va();var _=e.memoizedState;f!==x||S!==_||Sl||t!==null&&t.dependencies!==null&&du(t.dependencies)?(typeof o=="function"&&(zc(e,l,o,n),_=e.memoizedState),(R=Sl||Fr(e,l,R,n,S,_,h)||t!==null&&t.dependencies!==null&&du(t.dependencies))?(b||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(n,_,h),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(n,_,h)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=_),u.props=n,u.state=_,u.context=h,n=R):(typeof u.componentDidUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&S===t.memoizedState||(e.flags|=1024),n=!1)}return u=n,Uu(t,e),n=(e.flags&128)!==0,u||n?(u=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&n?(e.child=Un(e,t.child,null,a),e.child=Un(e,null,l,a)):ue(t,e,l,a),e.memoizedState=u.state,t=e.child):t=fl(t,e,a),t}function yo(t,e,l,n){return fa(),e.flags|=256,ue(t,e,l,n),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uc(t){return{baseLanes:t,cachePool:tr()}}function Cc(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=He),t}function mo(t,e,l){var n=e.pendingProps,a=!1,u=(e.flags&128)!==0,f;if((f=u)||(f=t!==null&&t.memoizedState===null?!1:($t.current&2)!==0),f&&(a=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(a?Al(e):Ol(),St){var o=Ht,h;if(h=o){t:{for(h=o,o=Ze;h.nodeType!==8;){if(!o){o=null;break t}if(h=Ge(h.nextSibling),h===null){o=null;break t}}o=h}o!==null?(e.memoizedState={dehydrated:o,treeContext:kl!==null?{id:nl,overflow:al}:null,retryLane:536870912,hydrationErrors:null},h=Te(18,null,null,0),h.stateNode=o,h.return=e,e.child=h,ye=e,Ht=null,h=!0):h=!1}h||Wl(e)}if(o=e.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return gs(o)?e.lanes=32:e.lanes=536870912,null;sl(e)}return o=n.children,n=n.fallback,a?(Ol(),a=e.mode,o=Cu({mode:"hidden",children:o},a),n=Kl(n,a,l,null),o.return=e,n.return=e,o.sibling=n,e.child=o,a=e.child,a.memoizedState=Uc(l),a.childLanes=Cc(t,f,l),e.memoizedState=Nc,n):(Al(e),Bc(e,o))}if(h=t.memoizedState,h!==null&&(o=h.dehydrated,o!==null)){if(u)e.flags&256?(Al(e),e.flags&=-257,e=qc(t,e,l)):e.memoizedState!==null?(Ol(),e.child=t.child,e.flags|=128,e=null):(Ol(),a=n.fallback,o=e.mode,n=Cu({mode:"visible",children:n.children},o),a=Kl(a,o,l,null),a.flags|=2,n.return=e,a.return=e,n.sibling=a,e.child=n,Un(e,t.child,null,l),n=e.child,n.memoizedState=Uc(l),n.childLanes=Cc(t,f,l),e.memoizedState=Nc,e=a);else if(Al(e),gs(o)){if(f=o.nextSibling&&o.nextSibling.dataset,f)var b=f.dgst;f=b,n=Error(s(419)),n.stack="",n.digest=f,ra({value:n,source:null,stack:null}),e=qc(t,e,l)}else if(Ft||oa(t,e,l,!1),f=(l&t.childLanes)!==0,Ft||f){if(f=Nt,f!==null&&(n=l&-l,n=(n&42)!==0?1:vi(n),n=(n&(f.suspendedLanes|l))!==0?0:n,n!==0&&n!==h.retryLane))throw h.retryLane=n,_n(t,n),De(f,t,n),uo;o.data==="$?"||Ic(),e=qc(t,e,l)}else o.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=h.treeContext,Ht=Ge(o.nextSibling),ye=e,St=!0,$l=null,Ze=!1,t!==null&&(Ce[Be++]=nl,Ce[Be++]=al,Ce[Be++]=kl,nl=t.id,al=t.overflow,kl=e),e=Bc(e,n.children),e.flags|=4096);return e}return a?(Ol(),a=n.fallback,o=e.mode,h=t.child,b=h.sibling,n=ll(h,{mode:"hidden",children:n.children}),n.subtreeFlags=h.subtreeFlags&65011712,b!==null?a=ll(b,a):(a=Kl(a,o,l,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,n=a,a=e.child,o=t.child.memoizedState,o===null?o=Uc(l):(h=o.cachePool,h!==null?(b=Jt._currentValue,h=h.parent!==b?{parent:b,pool:b}:h):h=tr(),o={baseLanes:o.baseLanes|l,cachePool:h}),a.memoizedState=o,a.childLanes=Cc(t,f,l),e.memoizedState=Nc,n):(Al(e),l=t.child,t=l.sibling,l=ll(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function Bc(t,e){return e=Cu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Cu(t,e){return t=Te(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function qc(t,e,l){return Un(e,t.child,null,l),t=Bc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function go(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Ii(t.return,e,l)}function Hc(t,e,l,n,a){var u=t.memoizedState;u===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:a}:(u.isBackwards=e,u.rendering=null,u.renderingStartTime=0,u.last=n,u.tail=l,u.tailMode=a)}function vo(t,e,l){var n=e.pendingProps,a=n.revealOrder,u=n.tail;if(ue(t,e,n.children,l),n=$t.current,(n&2)!==0)n=n&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&go(t,l,e);else if(t.tag===19)go(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}switch(j($t,n),a){case"forwards":for(l=e.child,a=null;l!==null;)t=l.alternate,t!==null&&xu(t)===null&&(a=l),l=l.sibling;l=a,l===null?(a=e.child,e.child=null):(a=l.sibling,l.sibling=null),Hc(e,!1,a,l,u);break;case"backwards":for(l=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&xu(t)===null){e.child=a;break}t=a.sibling,a.sibling=l,l=a,a=t}Hc(e,!0,l,null,u);break;case"together":Hc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function fl(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Ml|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(oa(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,l=ll(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=ll(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function wc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&du(t)))}function Ry(t,e,l){switch(e.tag){case 3:Mt(e,e.stateNode.containerInfo),bl(e,Jt,t.memoizedState.cache),fa();break;case 27:case 5:kn(e);break;case 4:Mt(e,e.stateNode.containerInfo);break;case 10:bl(e,e.type,e.memoizedProps.value);break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(Al(e),e.flags|=128,null):(l&e.child.childLanes)!==0?mo(t,e,l):(Al(e),t=fl(t,e,l),t!==null?t.sibling:null);Al(e);break;case 19:var a=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(oa(t,e,l,!1),n=(l&e.childLanes)!==0),a){if(n)return vo(t,e,l);e.flags|=128}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),j($t,$t.current),n)break;return null;case 22:case 23:return e.lanes=0,fo(t,e,l);case 24:bl(e,Jt,t.memoizedState.cache)}return fl(t,e,l)}function po(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ft=!0;else{if(!wc(t,l)&&(e.flags&128)===0)return Ft=!1,Ry(t,e,l);Ft=(t.flags&131072)!==0}else Ft=!1,St&&(e.flags&1048576)!==0&&kf(e,hu,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var n=e.elementType,a=n._init;if(n=a(n._payload),e.type=n,typeof n=="function")Ki(n)?(t=en(n,t),e.tag=1,e=ho(null,e,n,t,l)):(e.tag=0,e=Mc(null,e,n,t,l));else{if(n!=null){if(a=n.$$typeof,a===te){e.tag=11,e=io(null,e,n,t,l);break t}else if(a===Ut){e.tag=14,e=co(null,e,n,t,l);break t}}throw e=Qt(n)||n,Error(s(306,e,""))}}return e;case 0:return Mc(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,a=en(n,e.pendingProps),ho(t,e,n,a,l);case 3:t:{if(Mt(e,e.stateNode.containerInfo),t===null)throw Error(s(387));n=e.pendingProps;var u=e.memoizedState;a=u.element,ic(t,e),pa(e,n,null,l);var f=e.memoizedState;if(n=f.cache,bl(e,Jt,n),n!==u.cache&&tc(e,[Jt],l,!0),va(),n=f.element,u.isDehydrated)if(u={element:n,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=yo(t,e,n,l);break t}else if(n!==a){a=Ne(Error(s(424)),e),ra(a),e=yo(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Ht=Ge(t.firstChild),ye=e,St=!0,$l=null,Ze=!0,l=$r(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fa(),n===a){e=fl(t,e,l);break t}ue(t,e,n,l)}e=e.child}return e;case 26:return Uu(t,e),t===null?(l=Eh(e.type,null,e.pendingProps,null))?e.memoizedState=l:St||(l=e.type,t=e.pendingProps,n=ku(lt.current).createElement(l),n[fe]=e,n[ge]=t,ce(n,l,t),Wt(n),e.stateNode=n):e.memoizedState=Eh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return kn(e),t===null&&St&&(n=e.stateNode=bh(e.type,e.pendingProps,lt.current),ye=e,Ze=!0,a=Ht,Bl(e.type)?(vs=a,Ht=Ge(n.firstChild)):Ht=a),ue(t,e,e.pendingProps.children,l),Uu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((a=n=Ht)&&(n=tm(n,e.type,e.pendingProps,Ze),n!==null?(e.stateNode=n,ye=e,Ht=Ge(n.firstChild),Ze=!1,a=!0):a=!1),a||Wl(e)),kn(e),a=e.type,u=e.pendingProps,f=t!==null?t.memoizedProps:null,n=u.children,ds(a,u)?n=null:f!==null&&ds(a,f)&&(e.flags|=32),e.memoizedState!==null&&(a=hc(t,e,py,null,null,l),La._currentValue=a),Uu(t,e),ue(t,e,n,l),e.child;case 6:return t===null&&St&&((t=l=Ht)&&(l=em(l,e.pendingProps,Ze),l!==null?(e.stateNode=l,ye=e,Ht=null,t=!0):t=!1),t||Wl(e)),null;case 13:return mo(t,e,l);case 4:return Mt(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Un(e,null,n,l):ue(t,e,n,l),e.child;case 11:return io(t,e,e.type,e.pendingProps,l);case 7:return ue(t,e,e.pendingProps,l),e.child;case 8:return ue(t,e,e.pendingProps.children,l),e.child;case 12:return ue(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,bl(e,e.type,n.value),ue(t,e,n.children,l),e.child;case 9:return a=e.type._context,n=e.pendingProps.children,Pl(e),a=re(a),n=n(a),e.flags|=1,ue(t,e,n,l),e.child;case 14:return co(t,e,e.type,e.pendingProps,l);case 15:return so(t,e,e.type,e.pendingProps,l);case 19:return vo(t,e,l);case 31:return n=e.pendingProps,l=e.mode,n={mode:n.mode,children:n.children},t===null?(l=Cu(n,l),l.ref=e.ref,e.child=l,l.return=e,e=l):(l=ll(t.child,n),l.ref=e.ref,e.child=l,l.return=e,e=l),e;case 22:return fo(t,e,l);case 24:return Pl(e),n=re(Jt),t===null?(a=nc(),a===null&&(a=Nt,u=ec(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=l),a=u),e.memoizedState={parent:n,cache:a},uc(e),bl(e,Jt,a)):((t.lanes&l)!==0&&(ic(t,e),pa(e,null,null,l),va()),a=t.memoizedState,u=e.memoizedState,a.parent!==n?(a={parent:n,cache:n},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),bl(e,Jt,n)):(n=u.cache,bl(e,Jt,n),n!==a.cache&&tc(e,[Jt],l,!0))),ue(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function rl(t){t.flags|=4}function bo(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!zh(e)){if(e=qe.current,e!==null&&((vt&4194048)===vt?Ke!==null:(vt&62914560)!==vt&&(vt&536870912)===0||e!==Ke))throw ma=ac,er;t.flags|=8192}}function Bu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?$s():536870912,t.lanes|=e,Hn|=e)}function Oa(t,e){if(!St)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Bt(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags&65011712,n|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)l|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function zy(t,e,l){var n=e.pendingProps;switch(Wi(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Bt(e),null;case 1:return Bt(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),il(Jt),Ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(sa(e)?rl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Wf())),Bt(e),null;case 26:return l=e.memoizedState,t===null?(rl(e),l!==null?(Bt(e),bo(e,l)):(Bt(e),e.flags&=-16777217)):l?l!==t.memoizedState?(rl(e),Bt(e),bo(e,l)):(Bt(e),e.flags&=-16777217):(t.memoizedProps!==n&&rl(e),Bt(e),e.flags&=-16777217),null;case 27:ml(e),l=lt.current;var a=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==n&&rl(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return Bt(e),null}t=k.current,sa(e)?Jf(e):(t=bh(a,n,l),e.stateNode=t,rl(e))}return Bt(e),null;case 5:if(ml(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&rl(e);else{if(!n){if(e.stateNode===null)throw Error(s(166));return Bt(e),null}if(t=k.current,sa(e))Jf(e);else{switch(a=ku(lt.current),t){case 1:t=a.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:t=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":t=a.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":t=a.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof n.is=="string"?a.createElement("select",{is:n.is}):a.createElement("select"),n.multiple?t.multiple=!0:n.size&&(t.size=n.size);break;default:t=typeof n.is=="string"?a.createElement(l,{is:n.is}):a.createElement(l)}}t[fe]=e,t[ge]=n;t:for(a=e.child;a!==null;){if(a.tag===5||a.tag===6)t.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break t;for(;a.sibling===null;){if(a.return===null||a.return===e)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}e.stateNode=t;t:switch(ce(t,l,n),l){case"button":case"input":case"select":case"textarea":t=!!n.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&rl(e)}}return Bt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&rl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(s(166));if(t=lt.current,sa(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,a=ye,a!==null)switch(a.tag){case 27:case 5:n=a.memoizedProps}t[fe]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||hh(t.nodeValue,l)),t||Wl(e)}else t=ku(t).createTextNode(n),t[fe]=e,e.stateNode=t}return Bt(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=sa(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(s(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));a[fe]=e}else fa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Bt(e),a=!1}else a=Wf(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=!0;if(!a)return e.flags&256?(sl(e),e):(sl(e),null)}if(sl(e),(e.flags&128)!==0)return e.lanes=l,e;if(l=n!==null,t=t!==null&&t.memoizedState!==null,l){n=e.child,a=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(a=n.alternate.memoizedState.cachePool.pool);var u=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048)}return l!==t&&l&&(e.child.flags|=8192),Bu(e,e.updateQueue),Bt(e),null;case 4:return Ye(),t===null&&ss(e.stateNode.containerInfo),Bt(e),null;case 10:return il(e.type),Bt(e),null;case 19:if(H($t),a=e.memoizedState,a===null)return Bt(e),null;if(n=(e.flags&128)!==0,u=a.rendering,u===null)if(n)Oa(a,!1);else{if(wt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=xu(t),u!==null){for(e.flags|=128,Oa(a,!1),t=u.updateQueue,e.updateQueue=t,Bu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Kf(l,t),l=l.sibling;return j($t,$t.current&1|2),e.child}t=t.sibling}a.tail!==null&&_e()>wu&&(e.flags|=128,n=!0,Oa(a,!1),e.lanes=4194304)}else{if(!n)if(t=xu(u),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Bu(e,t),Oa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!St)return Bt(e),null}else 2*_e()-a.renderingStartTime>wu&&l!==536870912&&(e.flags|=128,n=!0,Oa(a,!1),e.lanes=4194304);a.isBackwards?(u.sibling=e.child,e.child=u):(t=a.last,t!==null?t.sibling=u:e.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=_e(),e.sibling=null,t=$t.current,j($t,n?t&1|2:t&1),e):(Bt(e),null);case 22:case 23:return sl(e),rc(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(Bt(e),e.subtreeFlags&6&&(e.flags|=8192)):Bt(e),l=e.updateQueue,l!==null&&Bu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&H(Il),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),il(Jt),Bt(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Dy(t,e){switch(Wi(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return il(Jt),Ye(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ml(e),null;case 13:if(sl(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));fa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H($t),null;case 4:return Ye(),null;case 10:return il(e.type),null;case 22:case 23:return sl(e),rc(),t!==null&&H(Il),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return il(Jt),null;case 25:return null;default:return null}}function So(t,e){switch(Wi(e),e.tag){case 3:il(Jt),Ye();break;case 26:case 27:case 5:ml(e);break;case 4:Ye();break;case 13:sl(e);break;case 19:H($t);break;case 10:il(e.type);break;case 22:case 23:sl(e),rc(),t!==null&&H(Il);break;case 24:il(Jt)}}function Ra(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var a=n.next;l=a;do{if((l.tag&t)===t){n=void 0;var u=l.create,f=l.inst;n=u(),f.destroy=n}l=l.next}while(l!==a)}}catch(o){Dt(e,e.return,o)}}function Rl(t,e,l){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;do{if((n.tag&t)===t){var f=n.inst,o=f.destroy;if(o!==void 0){f.destroy=void 0,a=e;var h=l,b=o;try{b()}catch(R){Dt(a,h,R)}}}n=n.next}while(n!==u)}}catch(R){Dt(e,e.return,R)}}function _o(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{cr(e,l)}catch(n){Dt(t,t.return,n)}}}function Eo(t,e,l){l.props=en(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){Dt(t,e,n)}}function za(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(a){Dt(t,e,a)}}function ke(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(a){Dt(t,e,a)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(a){Dt(t,e,a)}else l.current=null}function To(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(a){Dt(t,t.return,a)}}function jc(t,e,l){try{var n=t.stateNode;$y(n,t.type,l,e),n[ge]=e}catch(a){Dt(t,t.return,a)}}function Ao(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Bl(t.type)||t.tag===4}function Yc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ao(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Bl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Lc(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Ku));else if(n!==4&&(n===27&&Bl(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Lc(t,e,l),t=t.sibling;t!==null;)Lc(t,e,l),t=t.sibling}function qu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Bl(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(qu(t,e,l),t=t.sibling;t!==null;)qu(t,e,l),t=t.sibling}function Oo(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);ce(e,n,l),e[fe]=t,e[ge]=l}catch(u){Dt(t,t.return,u)}}var ol=!1,Gt=!1,Xc=!1,Ro=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function xy(t,e){if(t=t.containerInfo,os=Iu,t=Hf(t),Yi(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var a=n.anchorOffset,u=n.focusNode;n=n.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break t}var f=0,o=-1,h=-1,b=0,R=0,x=t,S=null;e:for(;;){for(var _;x!==l||a!==0&&x.nodeType!==3||(o=f+a),x!==u||n!==0&&x.nodeType!==3||(h=f+n),x.nodeType===3&&(f+=x.nodeValue.length),(_=x.firstChild)!==null;)S=x,x=_;for(;;){if(x===t)break e;if(S===l&&++b===a&&(o=f),S===u&&++R===n&&(h=f),(_=x.nextSibling)!==null)break;x=S,S=x.parentNode}x=_}l=o===-1||h===-1?null:{start:o,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;for(hs={focusedElem:t,selectionRange:l},Iu=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,u=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,l=e,a=u.memoizedProps,u=u.memoizedState,n=l.stateNode;try{var I=en(l.type,a,l.elementType===l.type);t=n.getSnapshotBeforeUpdate(I,u),n.__reactInternalSnapshotBeforeUpdate=t}catch(W){Dt(l,l.return,W)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)ms(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ms(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function zo(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:zl(t,l),n&4&&Ra(5,l);break;case 1:if(zl(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){Dt(l,l.return,f)}else{var a=en(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Dt(l,l.return,f)}}n&64&&_o(l),n&512&&za(l,l.return);break;case 3:if(zl(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{cr(t,e)}catch(f){Dt(l,l.return,f)}}break;case 27:e===null&&n&4&&Oo(l);case 26:case 5:zl(t,l),e===null&&n&4&&To(l),n&512&&za(l,l.return);break;case 12:zl(t,l);break;case 13:zl(t,l),n&4&&Mo(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=jy.bind(null,l),lm(t,l))));break;case 22:if(n=l.memoizedState!==null||ol,!n){e=e!==null&&e.memoizedState!==null||Gt,a=ol;var u=Gt;ol=n,(Gt=e)&&!u?Dl(t,l,(l.subtreeFlags&8772)!==0):zl(t,l),ol=a,Gt=u}break;case 30:break;default:zl(t,l)}}function Do(t){var e=t.alternate;e!==null&&(t.alternate=null,Do(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Si(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Ct=null,be=!1;function hl(t,e,l){for(l=l.child;l!==null;)xo(t,e,l),l=l.sibling}function xo(t,e,l){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(tt,l)}catch{}switch(l.tag){case 26:Gt||ke(l,e),hl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Gt||ke(l,e);var n=Ct,a=be;Bl(l.type)&&(Ct=l.stateNode,be=!1),hl(t,e,l),Ha(l.stateNode),Ct=n,be=a;break;case 5:Gt||ke(l,e);case 6:if(n=Ct,a=be,Ct=null,hl(t,e,l),Ct=n,be=a,Ct!==null)if(be)try{(Ct.nodeType===9?Ct.body:Ct.nodeName==="HTML"?Ct.ownerDocument.body:Ct).removeChild(l.stateNode)}catch(u){Dt(l,e,u)}else try{Ct.removeChild(l.stateNode)}catch(u){Dt(l,e,u)}break;case 18:Ct!==null&&(be?(t=Ct,vh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Va(t)):vh(Ct,l.stateNode));break;case 4:n=Ct,a=be,Ct=l.stateNode.containerInfo,be=!0,hl(t,e,l),Ct=n,be=a;break;case 0:case 11:case 14:case 15:Gt||Rl(2,l,e),Gt||Rl(4,l,e),hl(t,e,l);break;case 1:Gt||(ke(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&Eo(l,e,n)),hl(t,e,l);break;case 21:hl(t,e,l);break;case 22:Gt=(n=Gt)||l.memoizedState!==null,hl(t,e,l),Gt=n;break;default:hl(t,e,l)}}function Mo(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Va(t)}catch(l){Dt(e,e.return,l)}}function My(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ro),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ro),e;default:throw Error(s(435,t.tag))}}function Gc(t,e){var l=My(t);e.forEach(function(n){var a=Yy.bind(null,t,n);l.has(n)||(l.add(n),n.then(a,a))})}function Ae(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var a=l[n],u=t,f=e,o=f;t:for(;o!==null;){switch(o.tag){case 27:if(Bl(o.type)){Ct=o.stateNode,be=!1;break t}break;case 5:Ct=o.stateNode,be=!1;break t;case 3:case 4:Ct=o.stateNode.containerInfo,be=!0;break t}o=o.return}if(Ct===null)throw Error(s(160));xo(u,f,a),Ct=null,be=!1,u=a.alternate,u!==null&&(u.return=null),a.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)No(e,t),e=e.sibling}var Xe=null;function No(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ae(e,t),Oe(t),n&4&&(Rl(3,t,t.return),Ra(3,t),Rl(5,t,t.return));break;case 1:Ae(e,t),Oe(t),n&512&&(Gt||l===null||ke(l,l.return)),n&64&&ol&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var a=Xe;if(Ae(e,t),Oe(t),n&512&&(Gt||l===null||ke(l,l.return)),n&4){var u=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,a=a.ownerDocument||a;e:switch(n){case"title":u=a.getElementsByTagName("title")[0],(!u||u[Fn]||u[fe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=a.createElement(n),a.head.insertBefore(u,a.querySelector("head > title"))),ce(u,n,l),u[fe]=t,Wt(u),n=u;break t;case"link":var f=Oh("link","href",a).get(n+(l.href||""));if(f){for(var o=0;o<f.length;o++)if(u=f[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(o,1);break e}}u=a.createElement(n),ce(u,n,l),a.head.appendChild(u);break;case"meta":if(f=Oh("meta","content",a).get(n+(l.content||""))){for(o=0;o<f.length;o++)if(u=f[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(o,1);break e}}u=a.createElement(n),ce(u,n,l),a.head.appendChild(u);break;default:throw Error(s(468,n))}u[fe]=t,Wt(u),n=u}t.stateNode=n}else Rh(a,t.type,t.stateNode);else t.stateNode=Ah(a,n,t.memoizedProps);else u!==n?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,n===null?Rh(a,t.type,t.stateNode):Ah(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&jc(t,t.memoizedProps,l.memoizedProps)}break;case 27:Ae(e,t),Oe(t),n&512&&(Gt||l===null||ke(l,l.return)),l!==null&&n&4&&jc(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Ae(e,t),Oe(t),n&512&&(Gt||l===null||ke(l,l.return)),t.flags&32){a=t.stateNode;try{yn(a,"")}catch(_){Dt(t,t.return,_)}}n&4&&t.stateNode!=null&&(a=t.memoizedProps,jc(t,a,l!==null?l.memoizedProps:a)),n&1024&&(Xc=!0);break;case 6:if(Ae(e,t),Oe(t),n&4){if(t.stateNode===null)throw Error(s(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(_){Dt(t,t.return,_)}}break;case 3:if(Wu=null,a=Xe,Xe=Ju(e.containerInfo),Ae(e,t),Xe=a,Oe(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{Va(e.containerInfo)}catch(_){Dt(t,t.return,_)}Xc&&(Xc=!1,Uo(t));break;case 4:n=Xe,Xe=Ju(t.stateNode.containerInfo),Ae(e,t),Oe(t),Xe=n;break;case 12:Ae(e,t),Oe(t);break;case 13:Ae(e,t),Oe(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Jc=_e()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Gc(t,n)));break;case 22:a=t.memoizedState!==null;var h=l!==null&&l.memoizedState!==null,b=ol,R=Gt;if(ol=b||a,Gt=R||h,Ae(e,t),Gt=R,ol=b,Oe(t),n&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(l===null||h||ol||Gt||ln(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){h=l=e;try{if(u=h.stateNode,a)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{o=h.stateNode;var x=h.memoizedProps.style,S=x!=null&&x.hasOwnProperty("display")?x.display:null;o.style.display=S==null||typeof S=="boolean"?"":(""+S).trim()}}catch(_){Dt(h,h.return,_)}}}else if(e.tag===6){if(l===null){h=e;try{h.stateNode.nodeValue=a?"":h.memoizedProps}catch(_){Dt(h,h.return,_)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Gc(t,l))));break;case 19:Ae(e,t),Oe(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Gc(t,n)));break;case 30:break;case 21:break;default:Ae(e,t),Oe(t)}}function Oe(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(Ao(n)){l=n;break}n=n.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var a=l.stateNode,u=Yc(t);qu(t,u,a);break;case 5:var f=l.stateNode;l.flags&32&&(yn(f,""),l.flags&=-33);var o=Yc(t);qu(t,o,f);break;case 3:case 4:var h=l.stateNode.containerInfo,b=Yc(t);Lc(t,b,h);break;default:throw Error(s(161))}}catch(R){Dt(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Uo(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Uo(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function zl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)zo(t,e.alternate,e),e=e.sibling}function ln(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Rl(4,e,e.return),ln(e);break;case 1:ke(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Eo(e,e.return,l),ln(e);break;case 27:Ha(e.stateNode);case 26:case 5:ke(e,e.return),ln(e);break;case 22:e.memoizedState===null&&ln(e);break;case 30:ln(e);break;default:ln(e)}t=t.sibling}}function Dl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,a=t,u=e,f=u.flags;switch(u.tag){case 0:case 11:case 15:Dl(a,u,l),Ra(4,u);break;case 1:if(Dl(a,u,l),n=u,a=n.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(b){Dt(n,n.return,b)}if(n=u,a=n.updateQueue,a!==null){var o=n.stateNode;try{var h=a.shared.hiddenCallbacks;if(h!==null)for(a.shared.hiddenCallbacks=null,a=0;a<h.length;a++)ir(h[a],o)}catch(b){Dt(n,n.return,b)}}l&&f&64&&_o(u),za(u,u.return);break;case 27:Oo(u);case 26:case 5:Dl(a,u,l),l&&n===null&&f&4&&To(u),za(u,u.return);break;case 12:Dl(a,u,l);break;case 13:Dl(a,u,l),l&&f&4&&Mo(a,u);break;case 22:u.memoizedState===null&&Dl(a,u,l),za(u,u.return);break;case 30:break;default:Dl(a,u,l)}e=e.sibling}}function Qc(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ha(l))}function Vc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ha(t))}function Je(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Co(t,e,l,n),e=e.sibling}function Co(t,e,l,n){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Je(t,e,l,n),a&2048&&Ra(9,e);break;case 1:Je(t,e,l,n);break;case 3:Je(t,e,l,n),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ha(t)));break;case 12:if(a&2048){Je(t,e,l,n),t=e.stateNode;try{var u=e.memoizedProps,f=u.id,o=u.onPostCommit;typeof o=="function"&&o(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(h){Dt(e,e.return,h)}}else Je(t,e,l,n);break;case 13:Je(t,e,l,n);break;case 23:break;case 22:u=e.stateNode,f=e.alternate,e.memoizedState!==null?u._visibility&2?Je(t,e,l,n):Da(t,e):u._visibility&2?Je(t,e,l,n):(u._visibility|=2,Cn(t,e,l,n,(e.subtreeFlags&10256)!==0)),a&2048&&Qc(f,e);break;case 24:Je(t,e,l,n),a&2048&&Vc(e.alternate,e);break;default:Je(t,e,l,n)}}function Cn(t,e,l,n,a){for(a=a&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var u=t,f=e,o=l,h=n,b=f.flags;switch(f.tag){case 0:case 11:case 15:Cn(u,f,o,h,a),Ra(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Cn(u,f,o,h,a):Da(u,f):(R._visibility|=2,Cn(u,f,o,h,a)),a&&b&2048&&Qc(f.alternate,f);break;case 24:Cn(u,f,o,h,a),a&&b&2048&&Vc(f.alternate,f);break;default:Cn(u,f,o,h,a)}e=e.sibling}}function Da(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,a=n.flags;switch(n.tag){case 22:Da(l,n),a&2048&&Qc(n.alternate,n);break;case 24:Da(l,n),a&2048&&Vc(n.alternate,n);break;default:Da(l,n)}e=e.sibling}}var xa=8192;function Bn(t){if(t.subtreeFlags&xa)for(t=t.child;t!==null;)Bo(t),t=t.sibling}function Bo(t){switch(t.tag){case 26:Bn(t),t.flags&xa&&t.memoizedState!==null&&mm(Xe,t.memoizedState,t.memoizedProps);break;case 5:Bn(t);break;case 3:case 4:var e=Xe;Xe=Ju(t.stateNode.containerInfo),Bn(t),Xe=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=xa,xa=16777216,Bn(t),xa=e):Bn(t));break;default:Bn(t)}}function qo(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Ma(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Pt=n,wo(n,t)}qo(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ho(t),t=t.sibling}function Ho(t){switch(t.tag){case 0:case 11:case 15:Ma(t),t.flags&2048&&Rl(9,t,t.return);break;case 3:Ma(t);break;case 12:Ma(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Hu(t)):Ma(t);break;default:Ma(t)}}function Hu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];Pt=n,wo(n,t)}qo(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Rl(8,e,e.return),Hu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,Hu(e));break;default:Hu(e)}t=t.sibling}}function wo(t,e){for(;Pt!==null;){var l=Pt;switch(l.tag){case 0:case 11:case 15:Rl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ha(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,Pt=n;else t:for(l=t;Pt!==null;){n=Pt;var a=n.sibling,u=n.return;if(Do(n),n===l){Pt=null;break t}if(a!==null){a.return=u,Pt=a;break t}Pt=u}}}var Ny={getCacheForType:function(t){var e=re(Jt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l}},Uy=typeof WeakMap=="function"?WeakMap:Map,Et=0,Nt=null,ot=null,vt=0,Tt=0,Re=null,xl=!1,qn=!1,Zc=!1,dl=0,wt=0,Ml=0,nn=0,Kc=0,He=0,Hn=0,Na=null,Se=null,kc=!1,Jc=0,wu=1/0,ju=null,Nl=null,ie=0,Ul=null,wn=null,jn=0,$c=0,Wc=null,jo=null,Ua=0,Fc=null;function ze(){if((Et&2)!==0&&vt!==0)return vt&-vt;if(A.T!==null){var t=On;return t!==0?t:as()}return Ps()}function Yo(){He===0&&(He=(vt&536870912)===0||St?Js():536870912);var t=qe.current;return t!==null&&(t.flags|=32),He}function De(t,e,l){(t===Nt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(Yn(t,0),Cl(t,vt,He,!1)),Wn(t,l),((Et&2)===0||t!==Nt)&&(t===Nt&&((Et&2)===0&&(nn|=l),wt===4&&Cl(t,vt,He,!1)),$e(t))}function Lo(t,e,l){if((Et&6)!==0)throw Error(s(327));var n=!l&&(e&124)===0&&(e&t.expiredLanes)===0||Ie(t,e),a=n?qy(t,e):ts(t,e,!0),u=n;do{if(a===0){qn&&!n&&Cl(t,e,0,!1);break}else{if(l=t.current.alternate,u&&!Cy(l)){a=ts(t,e,!1),u=!1;continue}if(a===2){if(u=e,t.errorRecoveryDisabledLanes&u)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var o=t;a=Na;var h=o.current.memoizedState.isDehydrated;if(h&&(Yn(o,f).flags|=256),f=ts(o,f,!1),f!==2){if(Zc&&!h){o.errorRecoveryDisabledLanes|=u,nn|=u,a=4;break t}u=Se,Se=a,u!==null&&(Se===null?Se=u:Se.push.apply(Se,u))}a=f}if(u=!1,a!==2)continue}}if(a===1){Yn(t,0),Cl(t,e,0,!0);break}t:{switch(n=t,u=a,u){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Cl(n,e,He,!xl);break t;case 2:Se=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(a=Jc+300-_e(),10<a)){if(Cl(n,e,He,!xl),Xl(n,0,!0)!==0)break t;n.timeoutHandle=mh(Xo.bind(null,n,l,Se,ju,kc,e,He,nn,Hn,xl,u,2,-0,0),a);break t}Xo(n,l,Se,ju,kc,e,He,nn,Hn,xl,u,0,-0,0)}}break}while(!0);$e(t)}function Xo(t,e,l,n,a,u,f,o,h,b,R,x,S,_){if(t.timeoutHandle=-1,x=e.subtreeFlags,(x&8192||(x&16785408)===16785408)&&(Ya={stylesheets:null,count:0,unsuspend:ym},Bo(e),x=gm(),x!==null)){t.cancelPendingCommit=x(Jo.bind(null,t,e,u,l,n,a,f,o,h,R,1,S,_)),Cl(t,u,f,!b);return}Jo(t,e,u,l,n,a,f,o,h)}function Cy(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var a=l[n],u=a.getSnapshot;a=a.value;try{if(!Ee(u(),a))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Cl(t,e,l,n){e&=~Kc,e&=~nn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var a=e;0<a;){var u=31-qt(a),f=1<<u;n[u]=-1,a&=~f}l!==0&&Ws(t,l,e)}function Yu(){return(Et&6)===0?(Ca(0),!1):!0}function Pc(){if(ot!==null){if(Tt===0)var t=ot.return;else t=ot,ul=Fl=null,mc(t),Nn=null,Ta=0,t=ot;for(;t!==null;)So(t.alternate,t),t=t.return;ot=null}}function Yn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Fy(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Pc(),Nt=t,ot=l=ll(t.current,null),vt=e,Tt=0,Re=null,xl=!1,qn=Ie(t,e),Zc=!1,Hn=He=Kc=nn=Ml=wt=0,Se=Na=null,kc=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var a=31-qt(n),u=1<<a;e|=t[a],n&=~u}return dl=e,cu(),l}function Go(t,e){ut=null,A.H=Ru,e===ya||e===gu?(e=ar(),Tt=3):e===er?(e=ar(),Tt=4):Tt=e===uo?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,ot===null&&(wt=1,Nu(t,Ne(e,t.current)))}function Qo(){var t=A.H;return A.H=Ru,t===null?Ru:t}function Vo(){var t=A.A;return A.A=Ny,t}function Ic(){wt=4,xl||(vt&4194048)!==vt&&qe.current!==null||(qn=!0),(Ml&134217727)===0&&(nn&134217727)===0||Nt===null||Cl(Nt,vt,He,!1)}function ts(t,e,l){var n=Et;Et|=2;var a=Qo(),u=Vo();(Nt!==t||vt!==e)&&(ju=null,Yn(t,e)),e=!1;var f=wt;t:do try{if(Tt!==0&&ot!==null){var o=ot,h=Re;switch(Tt){case 8:Pc(),f=6;break t;case 3:case 2:case 9:case 6:qe.current===null&&(e=!0);var b=Tt;if(Tt=0,Re=null,Ln(t,o,h,b),l&&qn){f=0;break t}break;default:b=Tt,Tt=0,Re=null,Ln(t,o,h,b)}}By(),f=wt;break}catch(R){Go(t,R)}while(!0);return e&&t.shellSuspendCounter++,ul=Fl=null,Et=n,A.H=a,A.A=u,ot===null&&(Nt=null,vt=0,cu()),f}function By(){for(;ot!==null;)Zo(ot)}function qy(t,e){var l=Et;Et|=2;var n=Qo(),a=Vo();Nt!==t||vt!==e?(ju=null,wu=_e()+500,Yn(t,e)):qn=Ie(t,e);t:do try{if(Tt!==0&&ot!==null){e=ot;var u=Re;e:switch(Tt){case 1:Tt=0,Re=null,Ln(t,e,u,1);break;case 2:case 9:if(lr(u)){Tt=0,Re=null,Ko(e);break}e=function(){Tt!==2&&Tt!==9||Nt!==t||(Tt=7),$e(t)},u.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:lr(u)?(Tt=0,Re=null,Ko(e)):(Tt=0,Re=null,Ln(t,e,u,7));break;case 5:var f=null;switch(ot.tag){case 26:f=ot.memoizedState;case 5:case 27:var o=ot;if(!f||zh(f)){Tt=0,Re=null;var h=o.sibling;if(h!==null)ot=h;else{var b=o.return;b!==null?(ot=b,Lu(b)):ot=null}break e}}Tt=0,Re=null,Ln(t,e,u,5);break;case 6:Tt=0,Re=null,Ln(t,e,u,6);break;case 8:Pc(),wt=6;break t;default:throw Error(s(462))}}Hy();break}catch(R){Go(t,R)}while(!0);return ul=Fl=null,A.H=n,A.A=a,Et=l,ot!==null?0:(Nt=null,vt=0,cu(),wt)}function Hy(){for(;ot!==null&&!yi();)Zo(ot)}function Zo(t){var e=po(t.alternate,t,dl);t.memoizedProps=t.pendingProps,e===null?Lu(t):ot=e}function Ko(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=oo(l,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=oo(l,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:mc(e);default:So(l,e),e=ot=Kf(e,dl),e=po(l,e,dl)}t.memoizedProps=t.pendingProps,e===null?Lu(t):ot=e}function Ln(t,e,l,n){ul=Fl=null,mc(e),Nn=null,Ta=0;var a=e.return;try{if(Oy(t,a,e,l,vt)){wt=1,Nu(t,Ne(l,t.current)),ot=null;return}}catch(u){if(a!==null)throw ot=a,u;wt=1,Nu(t,Ne(l,t.current)),ot=null;return}e.flags&32768?(St||n===1?t=!0:qn||(vt&536870912)!==0?t=!1:(xl=t=!0,(n===2||n===9||n===3||n===6)&&(n=qe.current,n!==null&&n.tag===13&&(n.flags|=16384))),ko(e,t)):Lu(e)}function Lu(t){var e=t;do{if((e.flags&32768)!==0){ko(e,xl);return}t=e.return;var l=zy(e.alternate,e,dl);if(l!==null){ot=l;return}if(e=e.sibling,e!==null){ot=e;return}ot=e=t}while(e!==null);wt===0&&(wt=5)}function ko(t,e){do{var l=Dy(t.alternate,t);if(l!==null){l.flags&=32767,ot=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){ot=t;return}ot=t=l}while(t!==null);wt=6,ot=null}function Jo(t,e,l,n,a,u,f,o,h){t.cancelPendingCommit=null;do Xu();while(ie!==0);if((Et&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(u=e.lanes|e.childLanes,u|=Vi,yd(t,l,u,f,o,h),t===Nt&&(ot=Nt=null,vt=0),wn=e,Ul=t,jn=l,$c=u,Wc=a,jo=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ly(L,function(){return Io(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=A.T,A.T=null,a=C.p,C.p=2,f=Et,Et|=4;try{xy(t,e,l)}finally{Et=f,C.p=a,A.T=n}}ie=1,$o(),Wo(),Fo()}}function $o(){if(ie===1){ie=0;var t=Ul,e=wn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var n=C.p;C.p=2;var a=Et;Et|=4;try{No(e,t);var u=hs,f=Hf(t.containerInfo),o=u.focusedElem,h=u.selectionRange;if(f!==o&&o&&o.ownerDocument&&qf(o.ownerDocument.documentElement,o)){if(h!==null&&Yi(o)){var b=h.start,R=h.end;if(R===void 0&&(R=b),"selectionStart"in o)o.selectionStart=b,o.selectionEnd=Math.min(R,o.value.length);else{var x=o.ownerDocument||document,S=x&&x.defaultView||window;if(S.getSelection){var _=S.getSelection(),I=o.textContent.length,W=Math.min(h.start,I),zt=h.end===void 0?W:Math.min(h.end,I);!_.extend&&W>zt&&(f=zt,zt=W,W=f);var v=Bf(o,W),y=Bf(o,zt);if(v&&y&&(_.rangeCount!==1||_.anchorNode!==v.node||_.anchorOffset!==v.offset||_.focusNode!==y.node||_.focusOffset!==y.offset)){var p=x.createRange();p.setStart(v.node,v.offset),_.removeAllRanges(),W>zt?(_.addRange(p),_.extend(y.node,y.offset)):(p.setEnd(y.node,y.offset),_.addRange(p))}}}}for(x=[],_=o;_=_.parentNode;)_.nodeType===1&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<x.length;o++){var z=x[o];z.element.scrollLeft=z.left,z.element.scrollTop=z.top}}Iu=!!os,hs=os=null}finally{Et=a,C.p=n,A.T=l}}t.current=e,ie=2}}function Wo(){if(ie===2){ie=0;var t=Ul,e=wn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var n=C.p;C.p=2;var a=Et;Et|=4;try{zo(t,e.alternate,e)}finally{Et=a,C.p=n,A.T=l}}ie=3}}function Fo(){if(ie===4||ie===3){ie=0,$a();var t=Ul,e=wn,l=jn,n=jo;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ie=5:(ie=0,wn=Ul=null,Po(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(Nl=null),pi(l),e=e.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(tt,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=A.T,a=C.p,C.p=2,A.T=null;try{for(var u=t.onRecoverableError,f=0;f<n.length;f++){var o=n[f];u(o.value,{componentStack:o.stack})}}finally{A.T=e,C.p=a}}(jn&3)!==0&&Xu(),$e(t),a=t.pendingLanes,(l&4194090)!==0&&(a&42)!==0?t===Fc?Ua++:(Ua=0,Fc=t):Ua=0,Ca(0)}}function Po(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ha(e)))}function Xu(t){return $o(),Wo(),Fo(),Io()}function Io(){if(ie!==5)return!1;var t=Ul,e=$c;$c=0;var l=pi(jn),n=A.T,a=C.p;try{C.p=32>l?32:l,A.T=null,l=Wc,Wc=null;var u=Ul,f=jn;if(ie=0,wn=Ul=null,jn=0,(Et&6)!==0)throw Error(s(331));var o=Et;if(Et|=4,Ho(u.current),Co(u,u.current,f,l),Et=o,Ca(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(tt,u)}catch{}return!0}finally{C.p=a,A.T=n,Po(t,e)}}function th(t,e,l){e=Ne(l,e),e=xc(t.stateNode,e,2),t=El(t,e,2),t!==null&&(Wn(t,2),$e(t))}function Dt(t,e,l){if(t.tag===3)th(t,t,l);else for(;e!==null;){if(e.tag===3){th(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Nl===null||!Nl.has(n))){t=Ne(l,t),l=no(2),n=El(e,l,2),n!==null&&(ao(l,n,e,t),Wn(n,2),$e(n));break}}e=e.return}}function es(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new Uy;var a=new Set;n.set(e,a)}else a=n.get(e),a===void 0&&(a=new Set,n.set(e,a));a.has(l)||(Zc=!0,a.add(l),t=wy.bind(null,t,e,l),e.then(t,t))}function wy(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(vt&l)===l&&(wt===4||wt===3&&(vt&62914560)===vt&&300>_e()-Jc?(Et&2)===0&&Yn(t,0):Kc|=l,Hn===vt&&(Hn=0)),$e(t)}function eh(t,e){e===0&&(e=$s()),t=_n(t,e),t!==null&&(Wn(t,e),$e(t))}function jy(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),eh(t,l)}function Yy(t,e){var l=0;switch(t.tag){case 13:var n=t.stateNode,a=t.memoizedState;a!==null&&(l=a.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(s(314))}n!==null&&n.delete(e),eh(t,l)}function Ly(t,e){return Jn(t,e)}var Gu=null,Xn=null,ls=!1,Qu=!1,ns=!1,an=0;function $e(t){t!==Xn&&t.next===null&&(Xn===null?Gu=Xn=t:Xn=Xn.next=t),Qu=!0,ls||(ls=!0,Gy())}function Ca(t,e){if(!ns&&Qu){ns=!0;do for(var l=!1,n=Gu;n!==null;){if(t!==0){var a=n.pendingLanes;if(a===0)var u=0;else{var f=n.suspendedLanes,o=n.pingedLanes;u=(1<<31-qt(42|t)+1)-1,u&=a&~(f&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,uh(n,u))}else u=vt,u=Xl(n,n===Nt?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(u&3)===0||Ie(n,u)||(l=!0,uh(n,u));n=n.next}while(l);ns=!1}}function Xy(){lh()}function lh(){Qu=ls=!1;var t=0;an!==0&&(Wy()&&(t=an),an=0);for(var e=_e(),l=null,n=Gu;n!==null;){var a=n.next,u=nh(n,e);u===0?(n.next=null,l===null?Gu=a:l.next=a,a===null&&(Xn=l)):(l=n,(t!==0||(u&3)!==0)&&(Qu=!0)),n=a}Ca(t)}function nh(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,a=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var f=31-qt(u),o=1<<f,h=a[f];h===-1?((o&l)===0||(o&n)!==0)&&(a[f]=mi(o,e)):h<=e&&(t.expiredLanes|=o),u&=~o}if(e=Nt,l=vt,l=Xl(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&$n(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Ie(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&$n(n),pi(l)){case 2:case 8:l=N;break;case 32:l=L;break;case 268435456:l=J;break;default:l=L}return n=ah.bind(null,t),l=Jn(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&$n(n),t.callbackPriority=2,t.callbackNode=null,2}function ah(t,e){if(ie!==0&&ie!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(Xu()&&t.callbackNode!==l)return null;var n=vt;return n=Xl(t,t===Nt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(Lo(t,n,e),nh(t,_e()),t.callbackNode!=null&&t.callbackNode===l?ah.bind(null,t):null)}function uh(t,e){if(Xu())return null;Lo(t,e,!0)}function Gy(){Py(function(){(Et&6)!==0?Jn(g,Xy):lh()})}function as(){return an===0&&(an=Js()),an}function ih(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:tu(""+t)}function ch(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Qy(t,e,l,n,a){if(e==="submit"&&l&&l.stateNode===a){var u=ih((a[ge]||null).action),f=n.submitter;f&&(e=(e=f[ge]||null)?ih(e.formAction):f.getAttribute("formAction"),e!==null&&(u=e,f=null));var o=new au("action","action",null,n,a);t.push({event:o,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(an!==0){var h=f?ch(a,f):new FormData(a);Ac(l,{pending:!0,data:h,method:a.method,action:u},null,h)}}else typeof u=="function"&&(o.preventDefault(),h=f?ch(a,f):new FormData(a),Ac(l,{pending:!0,data:h,method:a.method,action:u},u,h))},currentTarget:a}]})}}for(var us=0;us<Qi.length;us++){var is=Qi[us],Vy=is.toLowerCase(),Zy=is[0].toUpperCase()+is.slice(1);Le(Vy,"on"+Zy)}Le(Yf,"onAnimationEnd"),Le(Lf,"onAnimationIteration"),Le(Xf,"onAnimationStart"),Le("dblclick","onDoubleClick"),Le("focusin","onFocus"),Le("focusout","onBlur"),Le(sy,"onTransitionRun"),Le(fy,"onTransitionStart"),Le(ry,"onTransitionCancel"),Le(Gf,"onTransitionEnd"),on("onMouseEnter",["mouseout","mouseover"]),on("onMouseLeave",["mouseout","mouseover"]),on("onPointerEnter",["pointerout","pointerover"]),on("onPointerLeave",["pointerout","pointerover"]),Gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ba="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(" "),Ky=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ba));function sh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],a=n.event;n=n.listeners;t:{var u=void 0;if(e)for(var f=n.length-1;0<=f;f--){var o=n[f],h=o.instance,b=o.currentTarget;if(o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=b;try{u(a)}catch(R){Mu(R)}a.currentTarget=null,u=h}else for(f=0;f<n.length;f++){if(o=n[f],h=o.instance,b=o.currentTarget,o=o.listener,h!==u&&a.isPropagationStopped())break t;u=o,a.currentTarget=b;try{u(a)}catch(R){Mu(R)}a.currentTarget=null,u=h}}}}function ht(t,e){var l=e[bi];l===void 0&&(l=e[bi]=new Set);var n=t+"__bubble";l.has(n)||(fh(e,t,2,!1),l.add(n))}function cs(t,e,l){var n=0;e&&(n|=4),fh(l,t,n,e)}var Vu="_reactListening"+Math.random().toString(36).slice(2);function ss(t){if(!t[Vu]){t[Vu]=!0,tf.forEach(function(l){l!=="selectionchange"&&(Ky.has(l)||cs(l,!1,t),cs(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vu]||(e[Vu]=!0,cs("selectionchange",!1,e))}}function fh(t,e,l,n){switch(Ch(e)){case 2:var a=bm;break;case 8:a=Sm;break;default:a=Es}l=a.bind(null,e,l,t),a=void 0,!Mi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=!0),n?a!==void 0?t.addEventListener(e,l,{capture:!0,passive:a}):t.addEventListener(e,l,!0):a!==void 0?t.addEventListener(e,l,{passive:a}):t.addEventListener(e,l,!1)}function fs(t,e,l,n,a){var u=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var f=n.tag;if(f===3||f===4){var o=n.stateNode.containerInfo;if(o===a)break;if(f===4)for(f=n.return;f!==null;){var h=f.tag;if((h===3||h===4)&&f.stateNode.containerInfo===a)return;f=f.return}for(;o!==null;){if(f=sn(o),f===null)return;if(h=f.tag,h===5||h===6||h===26||h===27){n=u=f;continue t}o=o.parentNode}}n=n.return}mf(function(){var b=u,R=Di(l),x=[];t:{var S=Qf.get(t);if(S!==void 0){var _=au,I=t;switch(t){case"keypress":if(lu(l)===0)break t;case"keydown":case"keyup":_=Ld;break;case"focusin":I="focus",_=Bi;break;case"focusout":I="blur",_=Bi;break;case"beforeblur":case"afterblur":_=Bi;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Qd;break;case Yf:case Lf:case Xf:_=Nd;break;case Gf:_=Zd;break;case"scroll":case"scrollend":_=Rd;break;case"wheel":_=kd;break;case"copy":case"cut":case"paste":_=Cd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Sf;break;case"toggle":case"beforetoggle":_=$d}var W=(e&4)!==0,zt=!W&&(t==="scroll"||t==="scrollend"),v=W?S!==null?S+"Capture":null:S;W=[];for(var y=b,p;y!==null;){var z=y;if(p=z.stateNode,z=z.tag,z!==5&&z!==26&&z!==27||p===null||v===null||(z=In(y,v),z!=null&&W.push(qa(y,z,p))),zt)break;y=y.return}0<W.length&&(S=new _(S,I,null,l,R),x.push({event:S,listeners:W}))}}if((e&7)===0){t:{if(S=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",S&&l!==zi&&(I=l.relatedTarget||l.fromElement)&&(sn(I)||I[cn]))break t;if((_||S)&&(S=R.window===R?R:(S=R.ownerDocument)?S.defaultView||S.parentWindow:window,_?(I=l.relatedTarget||l.toElement,_=b,I=I?sn(I):null,I!==null&&(zt=O(I),W=I.tag,I!==zt||W!==5&&W!==27&&W!==6)&&(I=null)):(_=null,I=b),_!==I)){if(W=pf,z="onMouseLeave",v="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(W=Sf,z="onPointerLeave",v="onPointerEnter",y="pointer"),zt=_==null?S:Pn(_),p=I==null?S:Pn(I),S=new W(z,y+"leave",_,l,R),S.target=zt,S.relatedTarget=p,z=null,sn(R)===b&&(W=new W(v,y+"enter",I,l,R),W.target=p,W.relatedTarget=zt,z=W),zt=z,_&&I)e:{for(W=_,v=I,y=0,p=W;p;p=Gn(p))y++;for(p=0,z=v;z;z=Gn(z))p++;for(;0<y-p;)W=Gn(W),y--;for(;0<p-y;)v=Gn(v),p--;for(;y--;){if(W===v||v!==null&&W===v.alternate)break e;W=Gn(W),v=Gn(v)}W=null}else W=null;_!==null&&rh(x,S,_,W,!1),I!==null&&zt!==null&&rh(x,zt,I,W,!0)}}t:{if(S=b?Pn(b):window,_=S.nodeName&&S.nodeName.toLowerCase(),_==="select"||_==="input"&&S.type==="file")var X=Df;else if(Rf(S))if(xf)X=uy;else{X=ny;var st=ly}else _=S.nodeName,!_||_.toLowerCase()!=="input"||S.type!=="checkbox"&&S.type!=="radio"?b&&Ri(b.elementType)&&(X=Df):X=ay;if(X&&(X=X(t,b))){zf(x,X,l,R);break t}st&&st(t,S,b),t==="focusout"&&b&&S.type==="number"&&b.memoizedProps.value!=null&&Oi(S,"number",S.value)}switch(st=b?Pn(b):window,t){case"focusin":(Rf(st)||st.contentEditable==="true")&&(pn=st,Li=b,ca=null);break;case"focusout":ca=Li=pn=null;break;case"mousedown":Xi=!0;break;case"contextmenu":case"mouseup":case"dragend":Xi=!1,wf(x,l,R);break;case"selectionchange":if(cy)break;case"keydown":case"keyup":wf(x,l,R)}var Z;if(Hi)t:{switch(t){case"compositionstart":var F="onCompositionStart";break t;case"compositionend":F="onCompositionEnd";break t;case"compositionupdate":F="onCompositionUpdate";break t}F=void 0}else vn?Af(t,l)&&(F="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(F="onCompositionStart");F&&(_f&&l.locale!=="ko"&&(vn||F!=="onCompositionStart"?F==="onCompositionEnd"&&vn&&(Z=gf()):(pl=R,Ni="value"in pl?pl.value:pl.textContent,vn=!0)),st=Zu(b,F),0<st.length&&(F=new bf(F,t,null,l,R),x.push({event:F,listeners:st}),Z?F.data=Z:(Z=Of(l),Z!==null&&(F.data=Z)))),(Z=Fd?Pd(t,l):Id(t,l))&&(F=Zu(b,"onBeforeInput"),0<F.length&&(st=new bf("onBeforeInput","beforeinput",null,l,R),x.push({event:st,listeners:F}),st.data=Z)),Qy(x,t,b,l,R)}sh(x,e)})}function qa(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Zu(t,e){for(var l=e+"Capture",n=[];t!==null;){var a=t,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=In(t,l),a!=null&&n.unshift(qa(t,a,u)),a=In(t,e),a!=null&&n.push(qa(t,a,u))),t.tag===3)return n;t=t.return}return[]}function Gn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rh(t,e,l,n,a){for(var u=e._reactName,f=[];l!==null&&l!==n;){var o=l,h=o.alternate,b=o.stateNode;if(o=o.tag,h!==null&&h===n)break;o!==5&&o!==26&&o!==27||b===null||(h=b,a?(b=In(l,u),b!=null&&f.unshift(qa(l,b,h))):a||(b=In(l,u),b!=null&&f.push(qa(l,b,h)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var ky=/\r\n?/g,Jy=/\u0000|\uFFFD/g;function oh(t){return(typeof t=="string"?t:""+t).replace(ky,`
`).replace(Jy,"")}function hh(t,e){return e=oh(e),oh(t)===e}function Ku(){}function Rt(t,e,l,n,a,u){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||yn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&yn(t,""+n);break;case"className":Fa(t,"class",n);break;case"tabIndex":Fa(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Fa(t,l,n);break;case"style":df(t,n,u);break;case"data":if(e!=="object"){Fa(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=tu(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(e!=="input"&&Rt(t,e,"name",a.name,a,null),Rt(t,e,"formEncType",a.formEncType,a,null),Rt(t,e,"formMethod",a.formMethod,a,null),Rt(t,e,"formTarget",a.formTarget,a,null)):(Rt(t,e,"encType",a.encType,a,null),Rt(t,e,"method",a.method,a,null),Rt(t,e,"target",a.target,a,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=tu(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=Ku);break;case"onScroll":n!=null&&ht("scroll",t);break;case"onScrollEnd":n!=null&&ht("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=tu(""+n),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":ht("beforetoggle",t),ht("toggle",t),Wa(t,"popover",n);break;case"xlinkActuate":tl(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":tl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":tl(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":tl(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":tl(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":tl(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":tl(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":tl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":tl(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":Wa(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Ad.get(l)||l,Wa(t,l,n))}}function rs(t,e,l,n,a,u){switch(l){case"style":df(t,n,u);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(s(61));if(l=n.__html,l!=null){if(a.children!=null)throw Error(s(60));t.innerHTML=l}}break;case"children":typeof n=="string"?yn(t,n):(typeof n=="number"||typeof n=="bigint")&&yn(t,""+n);break;case"onScroll":n!=null&&ht("scroll",t);break;case"onScrollEnd":n!=null&&ht("scrollend",t);break;case"onClick":n!=null&&(t.onclick=Ku);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ef.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(a=l.endsWith("Capture"),e=l.slice(2,a?l.length-7:void 0),u=t[ge]||null,u=u!=null?u[l]:null,typeof u=="function"&&t.removeEventListener(e,u,a),typeof n=="function")){typeof u!="function"&&u!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,a);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):Wa(t,l,n)}}}function ce(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var n=!1,a=!1,u;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];if(f!=null)switch(u){case"src":n=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Rt(t,e,u,f,l,null)}}a&&Rt(t,e,"srcSet",l.srcSet,l,null),n&&Rt(t,e,"src",l.src,l,null);return;case"input":ht("invalid",t);var o=u=f=a=null,h=null,b=null;for(n in l)if(l.hasOwnProperty(n)){var R=l[n];if(R!=null)switch(n){case"name":a=R;break;case"type":f=R;break;case"checked":h=R;break;case"defaultChecked":b=R;break;case"value":u=R;break;case"defaultValue":o=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(s(137,e));break;default:Rt(t,e,n,R,l,null)}}ff(t,u,o,h,b,f,a,!1),Pa(t);return;case"select":ht("invalid",t),n=f=u=null;for(a in l)if(l.hasOwnProperty(a)&&(o=l[a],o!=null))switch(a){case"value":u=o;break;case"defaultValue":f=o;break;case"multiple":n=o;default:Rt(t,e,a,o,l,null)}e=u,l=f,t.multiple=!!n,e!=null?dn(t,!!n,e,!1):l!=null&&dn(t,!!n,l,!0);return;case"textarea":ht("invalid",t),u=a=n=null;for(f in l)if(l.hasOwnProperty(f)&&(o=l[f],o!=null))switch(f){case"value":n=o;break;case"defaultValue":a=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:Rt(t,e,f,o,l,null)}of(t,n,a,u),Pa(t);return;case"option":for(h in l)if(l.hasOwnProperty(h)&&(n=l[h],n!=null))switch(h){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Rt(t,e,h,n,l,null)}return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(n=0;n<Ba.length;n++)ht(Ba[n],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(b in l)if(l.hasOwnProperty(b)&&(n=l[b],n!=null))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Rt(t,e,b,n,l,null)}return;default:if(Ri(e)){for(R in l)l.hasOwnProperty(R)&&(n=l[R],n!==void 0&&rs(t,e,R,n,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(n=l[o],n!=null&&Rt(t,e,o,n,l,null))}function $y(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,f=null,o=null,h=null,b=null,R=null;for(_ in l){var x=l[_];if(l.hasOwnProperty(_)&&x!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":h=x;default:n.hasOwnProperty(_)||Rt(t,e,_,null,n,x)}}for(var S in n){var _=n[S];if(x=l[S],n.hasOwnProperty(S)&&(_!=null||x!=null))switch(S){case"type":u=_;break;case"name":a=_;break;case"checked":b=_;break;case"defaultChecked":R=_;break;case"value":f=_;break;case"defaultValue":o=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(137,e));break;default:_!==x&&Rt(t,e,S,_,n,x)}}Ai(t,f,o,h,b,R,u,a);return;case"select":_=f=o=S=null;for(u in l)if(h=l[u],l.hasOwnProperty(u)&&h!=null)switch(u){case"value":break;case"multiple":_=h;default:n.hasOwnProperty(u)||Rt(t,e,u,null,n,h)}for(a in n)if(u=n[a],h=l[a],n.hasOwnProperty(a)&&(u!=null||h!=null))switch(a){case"value":S=u;break;case"defaultValue":o=u;break;case"multiple":f=u;default:u!==h&&Rt(t,e,a,u,n,h)}e=o,l=f,n=_,S!=null?dn(t,!!l,S,!1):!!n!=!!l&&(e!=null?dn(t,!!l,e,!0):dn(t,!!l,l?[]:"",!1));return;case"textarea":_=S=null;for(o in l)if(a=l[o],l.hasOwnProperty(o)&&a!=null&&!n.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Rt(t,e,o,null,n,a)}for(f in n)if(a=n[f],u=l[f],n.hasOwnProperty(f)&&(a!=null||u!=null))switch(f){case"value":S=a;break;case"defaultValue":_=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(s(91));break;default:a!==u&&Rt(t,e,f,a,n,u)}rf(t,S,_);return;case"option":for(var I in l)if(S=l[I],l.hasOwnProperty(I)&&S!=null&&!n.hasOwnProperty(I))switch(I){case"selected":t.selected=!1;break;default:Rt(t,e,I,null,n,S)}for(h in n)if(S=n[h],_=l[h],n.hasOwnProperty(h)&&S!==_&&(S!=null||_!=null))switch(h){case"selected":t.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:Rt(t,e,h,S,n,_)}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 W in l)S=l[W],l.hasOwnProperty(W)&&S!=null&&!n.hasOwnProperty(W)&&Rt(t,e,W,null,n,S);for(b in n)if(S=n[b],_=l[b],n.hasOwnProperty(b)&&S!==_&&(S!=null||_!=null))switch(b){case"children":case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(137,e));break;default:Rt(t,e,b,S,n,_)}return;default:if(Ri(e)){for(var zt in l)S=l[zt],l.hasOwnProperty(zt)&&S!==void 0&&!n.hasOwnProperty(zt)&&rs(t,e,zt,void 0,n,S);for(R in n)S=n[R],_=l[R],!n.hasOwnProperty(R)||S===_||S===void 0&&_===void 0||rs(t,e,R,S,n,_);return}}for(var v in l)S=l[v],l.hasOwnProperty(v)&&S!=null&&!n.hasOwnProperty(v)&&Rt(t,e,v,null,n,S);for(x in n)S=n[x],_=l[x],!n.hasOwnProperty(x)||S===_||S==null&&_==null||Rt(t,e,x,S,n,_)}var os=null,hs=null;function ku(t){return t.nodeType===9?t:t.ownerDocument}function dh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ds(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ys=null;function Wy(){var t=window.event;return t&&t.type==="popstate"?t===ys?!1:(ys=t,!0):(ys=null,!1)}var mh=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,gh=typeof Promise=="function"?Promise:void 0,Py=typeof queueMicrotask=="function"?queueMicrotask:typeof gh<"u"?function(t){return gh.resolve(null).then(t).catch(Iy)}:mh;function Iy(t){setTimeout(function(){throw t})}function Bl(t){return t==="head"}function vh(t,e){var l=e,n=0,a=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(0<n&&8>n){l=n;var f=t.ownerDocument;if(l&1&&Ha(f.documentElement),l&2&&Ha(f.body),l&4)for(l=f.head,Ha(l),f=l.firstChild;f;){var o=f.nextSibling,h=f.nodeName;f[Fn]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=o}}if(a===0){t.removeChild(u),Va(e);return}a--}else l==="$"||l==="$?"||l==="$!"?a++:n=l.charCodeAt(0)-48;else n=0;l=u}while(l);Va(e)}function ms(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":ms(l),Si(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function tm(t,e,l,n){for(;t.nodeType===1;){var a=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[Fn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=Ge(t.nextSibling),t===null)break}return null}function em(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ge(t.nextSibling),t===null))return null;return t}function gs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function lm(t,e){var l=t.ownerDocument;if(t.data!=="$?"||l.readyState==="complete")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ge(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var vs=null;function ph(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(e===0)return t;e--}else l==="/$"&&e++}t=t.previousSibling}return null}function bh(t,e,l){switch(e=ku(l),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Ha(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Si(t)}var we=new Map,Sh=new Set;function Ju(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yl=C.d;C.d={f:nm,r:am,D:um,C:im,L:cm,m:sm,X:rm,S:fm,M:om};function nm(){var t=yl.f(),e=Yu();return t||e}function am(t){var e=fn(t);e!==null&&e.tag===5&&e.type==="form"?Yr(e):yl.r(t)}var Qn=typeof document>"u"?null:document;function _h(t,e,l){var n=Qn;if(n&&typeof e=="string"&&e){var a=Me(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof l=="string"&&(a+='[crossorigin="'+l+'"]'),Sh.has(a)||(Sh.add(a),t={rel:t,crossOrigin:l,href:e},n.querySelector(a)===null&&(e=n.createElement("link"),ce(e,"link",t),Wt(e),n.head.appendChild(e)))}}function um(t){yl.D(t),_h("dns-prefetch",t,null)}function im(t,e){yl.C(t,e),_h("preconnect",t,e)}function cm(t,e,l){yl.L(t,e,l);var n=Qn;if(n&&t&&e){var a='link[rel="preload"][as="'+Me(e)+'"]';e==="image"&&l&&l.imageSrcSet?(a+='[imagesrcset="'+Me(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(a+='[imagesizes="'+Me(l.imageSizes)+'"]')):a+='[href="'+Me(t)+'"]';var u=a;switch(e){case"style":u=Vn(t);break;case"script":u=Zn(t)}we.has(u)||(t=B({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),we.set(u,t),n.querySelector(a)!==null||e==="style"&&n.querySelector(wa(u))||e==="script"&&n.querySelector(ja(u))||(e=n.createElement("link"),ce(e,"link",t),Wt(e),n.head.appendChild(e)))}}function sm(t,e){yl.m(t,e);var l=Qn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Me(n)+'"][href="'+Me(t)+'"]',u=a;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Zn(t)}if(!we.has(u)&&(t=B({rel:"modulepreload",href:t},e),we.set(u,t),l.querySelector(a)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ja(u)))return}n=l.createElement("link"),ce(n,"link",t),Wt(n),l.head.appendChild(n)}}}function fm(t,e,l){yl.S(t,e,l);var n=Qn;if(n&&t){var a=rn(n).hoistableStyles,u=Vn(t);e=e||"default";var f=a.get(u);if(!f){var o={loading:0,preload:null};if(f=n.querySelector(wa(u)))o.loading=5;else{t=B({rel:"stylesheet",href:t,"data-precedence":e},l),(l=we.get(u))&&ps(t,l);var h=f=n.createElement("link");Wt(h),ce(h,"link",t),h._p=new Promise(function(b,R){h.onload=b,h.onerror=R}),h.addEventListener("load",function(){o.loading|=1}),h.addEventListener("error",function(){o.loading|=2}),o.loading|=4,$u(f,e,n)}f={type:"stylesheet",instance:f,count:1,state:o},a.set(u,f)}}}function rm(t,e){yl.X(t,e);var l=Qn;if(l&&t){var n=rn(l).hoistableScripts,a=Zn(t),u=n.get(a);u||(u=l.querySelector(ja(a)),u||(t=B({src:t,async:!0},e),(e=we.get(a))&&bs(t,e),u=l.createElement("script"),Wt(u),ce(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function om(t,e){yl.M(t,e);var l=Qn;if(l&&t){var n=rn(l).hoistableScripts,a=Zn(t),u=n.get(a);u||(u=l.querySelector(ja(a)),u||(t=B({src:t,async:!0,type:"module"},e),(e=we.get(a))&&bs(t,e),u=l.createElement("script"),Wt(u),ce(u,"link",t),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},n.set(a,u))}}function Eh(t,e,l,n){var a=(a=lt.current)?Ju(a):null;if(!a)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Vn(l.href),l=rn(a).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Vn(l.href);var u=rn(a).hoistableStyles,f=u.get(t);if(f||(a=a.ownerDocument||a,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,f),(u=a.querySelector(wa(t)))&&!u._p&&(f.instance=u,f.state.loading=5),we.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},we.set(t,l),u||hm(a,t,l,f.state))),e&&n===null)throw Error(s(528,""));return f}if(e&&n!==null)throw Error(s(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Zn(l),l=rn(a).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Vn(t){return'href="'+Me(t)+'"'}function wa(t){return'link[rel="stylesheet"]['+t+"]"}function Th(t){return B({},t,{"data-precedence":t.precedence,precedence:null})}function hm(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),ce(e,"link",l),Wt(e),t.head.appendChild(e))}function Zn(t){return'[src="'+Me(t)+'"]'}function ja(t){return"script[async]"+t}function Ah(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Me(l.href)+'"]');if(n)return e.instance=n,Wt(n),n;var a=B({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Wt(n),ce(n,"style",a),$u(n,l.precedence,t),e.instance=n;case"stylesheet":a=Vn(l.href);var u=t.querySelector(wa(a));if(u)return e.state.loading|=4,e.instance=u,Wt(u),u;n=Th(l),(a=we.get(a))&&ps(n,a),u=(t.ownerDocument||t).createElement("link"),Wt(u);var f=u;return f._p=new Promise(function(o,h){f.onload=o,f.onerror=h}),ce(u,"link",n),e.state.loading|=4,$u(u,l.precedence,t),e.instance=u;case"script":return u=Zn(l.src),(a=t.querySelector(ja(u)))?(e.instance=a,Wt(a),a):(n=l,(a=we.get(u))&&(n=B({},l),bs(n,a)),t=t.ownerDocument||t,a=t.createElement("script"),Wt(a),ce(a,"link",n),t.head.appendChild(a),e.instance=a);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,$u(n,l.precedence,t));return e.instance}function $u(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=n.length?n[n.length-1]:null,u=a,f=0;f<n.length;f++){var o=n[f];if(o.dataset.precedence===e)u=o;else if(u!==a)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function ps(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function bs(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Wu=null;function Oh(t,e,l){if(Wu===null){var n=new Map,a=Wu=new Map;a.set(l,n)}else a=Wu,n=a.get(l),n||(n=new Map,a.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),a=0;a<l.length;a++){var u=l[a];if(!(u[Fn]||u[fe]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(e)||"";f=t+f;var o=n.get(f);o?o.push(u):n.set(f,[u])}}return n}function Rh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function dm(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function zh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ya=null;function ym(){}function mm(t,e,l){if(Ya===null)throw Error(s(475));var n=Ya;if(e.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=Vn(l.href),u=t.querySelector(wa(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(n.count++,n=Fu.bind(n),t.then(n,n)),e.state.loading|=4,e.instance=u,Wt(u);return}u=t.ownerDocument||t,l=Th(l),(a=we.get(a))&&ps(l,a),u=u.createElement("link"),Wt(u);var f=u;f._p=new Promise(function(o,h){f.onload=o,f.onerror=h}),ce(u,"link",l),e.instance=u}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(n.count++,e=Fu.bind(n),t.addEventListener("load",e),t.addEventListener("error",e))}}function gm(){if(Ya===null)throw Error(s(475));var t=Ya;return t.stylesheets&&t.count===0&&Ss(t,t.stylesheets),0<t.count?function(e){var l=setTimeout(function(){if(t.stylesheets&&Ss(t,t.stylesheets),t.unsuspend){var n=t.unsuspend;t.unsuspend=null,n()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(l)}}:null}function Fu(){if(this.count--,this.count===0){if(this.stylesheets)Ss(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Pu=null;function Ss(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Pu=new Map,e.forEach(vm,t),Pu=null,Fu.call(t))}function vm(t,e){if(!(e.state.loading&4)){var l=Pu.get(t);if(l)var n=l.get(null);else{l=new Map,Pu.set(t,l);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var f=a[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),n=f)}n&&l.set(null,n)}a=e.instance,f=a.getAttribute("data-precedence"),u=l.get(f)||n,u===n&&l.set(null,a),l.set(f,a),this.count++,n=Fu.bind(this),a.addEventListener("load",n),a.addEventListener("error",n),u?u.parentNode.insertBefore(a,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4}}var La={$$typeof:xt,Provider:null,Consumer:null,_currentValue:w,_currentValue2:w,_threadCount:0};function pm(t,e,l,n,a,u,f,o){this.tag=1,this.containerInfo=t,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=gi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gi(0),this.hiddenUpdates=gi(null),this.identifierPrefix=n,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Dh(t,e,l,n,a,u,f,o,h,b,R,x){return t=new pm(t,e,l,f,o,h,b,x),e=1,u===!0&&(e|=24),u=Te(3,null,null,e),t.current=u,u.stateNode=t,e=ec(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:n,isDehydrated:l,cache:e},uc(u),t}function xh(t){return t?(t=En,t):En}function Mh(t,e,l,n,a,u){a=xh(a),n.context===null?n.context=a:n.pendingContext=a,n=_l(e),n.payload={element:l},u=u===void 0?null:u,u!==null&&(n.callback=u),l=El(t,n,e),l!==null&&(De(l,t,e),ga(l,t,e))}function Nh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function _s(t,e){Nh(t,e),(t=t.alternate)&&Nh(t,e)}function Uh(t){if(t.tag===13){var e=_n(t,67108864);e!==null&&De(e,t,67108864),_s(t,67108864)}}var Iu=!0;function bm(t,e,l,n){var a=A.T;A.T=null;var u=C.p;try{C.p=2,Es(t,e,l,n)}finally{C.p=u,A.T=a}}function Sm(t,e,l,n){var a=A.T;A.T=null;var u=C.p;try{C.p=8,Es(t,e,l,n)}finally{C.p=u,A.T=a}}function Es(t,e,l,n){if(Iu){var a=Ts(n);if(a===null)fs(t,e,n,ti,l),Bh(t,n);else if(Em(a,t,e,l,n))n.stopPropagation();else if(Bh(t,n),e&4&&-1<_m.indexOf(t)){for(;a!==null;){var u=fn(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=me(u.pendingLanes);if(f!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;f;){var h=1<<31-qt(f);o.entanglements[1]|=h,f&=~h}$e(u),(Et&6)===0&&(wu=_e()+500,Ca(0))}}break;case 13:o=_n(u,2),o!==null&&De(o,u,2),Yu(),_s(u,2)}if(u=Ts(n),u===null&&fs(t,e,n,ti,l),u===a)break;a=u}a!==null&&n.stopPropagation()}else fs(t,e,n,null,l)}}function Ts(t){return t=Di(t),As(t)}var ti=null;function As(t){if(ti=null,t=sn(t),t!==null){var e=O(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=q(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ti=t,null}function Ch(t){switch(t){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 g:return 2;case N:return 8;case L:case T:return 32;case J:return 268435456;default:return 32}default:return 32}}var Os=!1,ql=null,Hl=null,wl=null,Xa=new Map,Ga=new Map,jl=[],_m="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 Bh(t,e){switch(t){case"focusin":case"focusout":ql=null;break;case"dragenter":case"dragleave":Hl=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":Xa.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ga.delete(e.pointerId)}}function Qa(t,e,l,n,a,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:u,targetContainers:[a]},e!==null&&(e=fn(e),e!==null&&Uh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function Em(t,e,l,n,a){switch(e){case"focusin":return ql=Qa(ql,t,e,l,n,a),!0;case"dragenter":return Hl=Qa(Hl,t,e,l,n,a),!0;case"mouseover":return wl=Qa(wl,t,e,l,n,a),!0;case"pointerover":var u=a.pointerId;return Xa.set(u,Qa(Xa.get(u)||null,t,e,l,n,a)),!0;case"gotpointercapture":return u=a.pointerId,Ga.set(u,Qa(Ga.get(u)||null,t,e,l,n,a)),!0}return!1}function qh(t){var e=sn(t.target);if(e!==null){var l=O(e);if(l!==null){if(e=l.tag,e===13){if(e=q(l),e!==null){t.blockedOn=e,md(t.priority,function(){if(l.tag===13){var n=ze();n=vi(n);var a=_n(l,n);a!==null&&De(a,l,n),_s(l,n)}});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ei(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Ts(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);zi=n,l.target.dispatchEvent(n),zi=null}else return e=fn(l),e!==null&&Uh(e),t.blockedOn=l,!1;e.shift()}return!0}function Hh(t,e,l){ei(t)&&l.delete(e)}function Tm(){Os=!1,ql!==null&&ei(ql)&&(ql=null),Hl!==null&&ei(Hl)&&(Hl=null),wl!==null&&ei(wl)&&(wl=null),Xa.forEach(Hh),Ga.forEach(Hh)}function li(t,e){t.blockedOn===e&&(t.blockedOn=null,Os||(Os=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Tm)))}var ni=null;function wh(t){ni!==t&&(ni=t,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){ni===t&&(ni=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],a=t[e+2];if(typeof n!="function"){if(As(n||l)===null)continue;break}var u=fn(l);u!==null&&(t.splice(e,3),e-=3,Ac(u,{pending:!0,data:a,method:l.method,action:n},n,a))}}))}function Va(t){function e(h){return li(h,t)}ql!==null&&li(ql,t),Hl!==null&&li(Hl,t),wl!==null&&li(wl,t),Xa.forEach(e),Ga.forEach(e);for(var l=0;l<jl.length;l++){var n=jl[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<jl.length&&(l=jl[0],l.blockedOn===null);)qh(l),l.blockedOn===null&&jl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var a=l[n],u=l[n+1],f=a[ge]||null;if(typeof u=="function")f||wh(l);else if(f){var o=null;if(u&&u.hasAttribute("formAction")){if(a=u,f=u[ge]||null)o=f.formAction;else if(As(a)!==null)continue}else o=f.action;typeof o=="function"?l[n+1]=o:(l.splice(n,3),n-=3),wh(l)}}}function Rs(t){this._internalRoot=t}ai.prototype.render=Rs.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var l=e.current,n=ze();Mh(l,n,t,e,null,null)},ai.prototype.unmount=Rs.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Mh(t.current,2,null,t,null,null),Yu(),e[cn]=null}};function ai(t){this._internalRoot=t}ai.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ps();t={blockedOn:null,target:t,priority:e};for(var l=0;l<jl.length&&e!==0&&e<jl[l].priority;l++);jl.splice(l,0,t),l===0&&qh(t)}};var jh=i.version;if(jh!=="19.1.1")throw Error(s(527,jh,"19.1.1"));C.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=D(e),t=t!==null?E(t):null,t=t===null?null:t.stateNode,t};var Am={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ui.isDisabled&&ui.supportsFiber)try{tt=ui.inject(Am),ct=ui}catch{}}return Ka.createRoot=function(t,e){if(!m(t))throw Error(s(299));var l=!1,n="",a=Ir,u=to,f=eo,o=null;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(o=e.unstable_transitionCallbacks)),e=Dh(t,1,!1,null,null,l,n,a,u,f,o,null),t[cn]=e.current,ss(t),new Rs(e)},Ka.hydrateRoot=function(t,e,l){if(!m(t))throw Error(s(299));var n=!1,a="",u=Ir,f=to,o=eo,h=null,b=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(a=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.unstable_transitionCallbacks!==void 0&&(h=l.unstable_transitionCallbacks),l.formState!==void 0&&(b=l.formState)),e=Dh(t,1,!0,e,l??null,n,a,u,f,o,h,b),e.context=xh(null),l=e.current,n=ze(),n=vi(n),a=_l(n),a.callback=null,El(l,a,n),l=n,e.current.lanes=l,Wn(e,l),$e(e),t[cn]=e.current,ss(t),new ai(e)},Ka.version="19.1.1",Ka}var Jh;function Bm(){if(Jh)return xs.exports;Jh=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),xs.exports=Cm(),xs.exports}var qm=Bm();const Fe=Object.create(null);Fe.open="0";Fe.close="1";Fe.ping="2";Fe.pong="3";Fe.message="4";Fe.upgrade="5";Fe.noop="6";const si=Object.create(null);Object.keys(Fe).forEach(r=>{si[Fe[r]]=r});const Hs={type:"error",data:"parser error"},ed=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",ld=typeof ArrayBuffer=="function",nd=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,Qs=({type:r,data:i},c,s)=>ed&&i instanceof Blob?c?s(i):$h(i,s):ld&&(i instanceof ArrayBuffer||nd(i))?c?s(i):$h(new Blob([i]),s):s(Fe[r]+(i||"")),$h=(r,i)=>{const c=new FileReader;return c.onload=function(){const s=c.result.split(",")[1];i("b"+(s||""))},c.readAsDataURL(r)};function Wh(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let Cs;function Hm(r,i){if(ed&&r.data instanceof Blob)return r.data.arrayBuffer().then(Wh).then(i);if(ld&&(r.data instanceof ArrayBuffer||nd(r.data)))return i(Wh(r.data));Qs(r,!1,c=>{Cs||(Cs=new TextEncoder),i(Cs.encode(c))})}const Fh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ja=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<Fh.length;r++)Ja[Fh.charCodeAt(r)]=r;const wm=r=>{let i=r.length*.75,c=r.length,s,m=0,O,q,Y,D;r[r.length-1]==="="&&(i--,r[r.length-2]==="="&&i--);const E=new ArrayBuffer(i),B=new Uint8Array(E);for(s=0;s<c;s+=4)O=Ja[r.charCodeAt(s)],q=Ja[r.charCodeAt(s+1)],Y=Ja[r.charCodeAt(s+2)],D=Ja[r.charCodeAt(s+3)],B[m++]=O<<2|q>>4,B[m++]=(q&15)<<4|Y>>2,B[m++]=(Y&3)<<6|D&63;return E},jm=typeof ArrayBuffer=="function",Vs=(r,i)=>{if(typeof r!="string")return{type:"message",data:ad(r,i)};const c=r.charAt(0);return c==="b"?{type:"message",data:Ym(r.substring(1),i)}:si[c]?r.length>1?{type:si[c],data:r.substring(1)}:{type:si[c]}:Hs},Ym=(r,i)=>{if(jm){const c=wm(r);return ad(c,i)}else return{base64:!0,data:r}},ad=(r,i)=>{switch(i){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}},ud="",Lm=(r,i)=>{const c=r.length,s=new Array(c);let m=0;r.forEach((O,q)=>{Qs(O,!1,Y=>{s[q]=Y,++m===c&&i(s.join(ud))})})},Xm=(r,i)=>{const c=r.split(ud),s=[];for(let m=0;m<c.length;m++){const O=Vs(c[m],i);if(s.push(O),O.type==="error")break}return s};function Gm(){return new TransformStream({transform(r,i){Hm(r,c=>{const s=c.length;let m;if(s<126)m=new Uint8Array(1),new DataView(m.buffer).setUint8(0,s);else if(s<65536){m=new Uint8Array(3);const O=new DataView(m.buffer);O.setUint8(0,126),O.setUint16(1,s)}else{m=new Uint8Array(9);const O=new DataView(m.buffer);O.setUint8(0,127),O.setBigUint64(1,BigInt(s))}r.data&&typeof r.data!="string"&&(m[0]|=128),i.enqueue(m),i.enqueue(c)})}})}let Bs;function ii(r){return r.reduce((i,c)=>i+c.length,0)}function ci(r,i){if(r[0].length===i)return r.shift();const c=new Uint8Array(i);let s=0;for(let m=0;m<i;m++)c[m]=r[0][s++],s===r[0].length&&(r.shift(),s=0);return r.length&&s<r[0].length&&(r[0]=r[0].slice(s)),c}function Qm(r,i){Bs||(Bs=new TextDecoder);const c=[];let s=0,m=-1,O=!1;return new TransformStream({transform(q,Y){for(c.push(q);;){if(s===0){if(ii(c)<1)break;const D=ci(c,1);O=(D[0]&128)===128,m=D[0]&127,m<126?s=3:m===126?s=1:s=2}else if(s===1){if(ii(c)<2)break;const D=ci(c,2);m=new DataView(D.buffer,D.byteOffset,D.length).getUint16(0),s=3}else if(s===2){if(ii(c)<8)break;const D=ci(c,8),E=new DataView(D.buffer,D.byteOffset,D.length),B=E.getUint32(0);if(B>Math.pow(2,21)-1){Y.enqueue(Hs);break}m=B*Math.pow(2,32)+E.getUint32(4),s=3}else{if(ii(c)<m)break;const D=ci(c,m);Y.enqueue(Vs(O?D:Bs.decode(D),i)),s=0}if(m===0||m>r){Y.enqueue(Hs);break}}}})}const id=4;function Kt(r){if(r)return Vm(r)}function Vm(r){for(var i in Kt.prototype)r[i]=Kt.prototype[i];return r}Kt.prototype.on=Kt.prototype.addEventListener=function(r,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(i),this};Kt.prototype.once=function(r,i){function c(){this.off(r,c),i.apply(this,arguments)}return c.fn=i,this.on(r,c),this};Kt.prototype.off=Kt.prototype.removeListener=Kt.prototype.removeAllListeners=Kt.prototype.removeEventListener=function(r,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var c=this._callbacks["$"+r];if(!c)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var s,m=0;m<c.length;m++)if(s=c[m],s===i||s.fn===i){c.splice(m,1);break}return c.length===0&&delete this._callbacks["$"+r],this};Kt.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),c=this._callbacks["$"+r],s=1;s<arguments.length;s++)i[s-1]=arguments[s];if(c){c=c.slice(0);for(var s=0,m=c.length;s<m;++s)c[s].apply(this,i)}return this};Kt.prototype.emitReserved=Kt.prototype.emit;Kt.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]};Kt.prototype.hasListeners=function(r){return!!this.listeners(r).length};const hi=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,c)=>c(i,0),je=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Zm="arraybuffer";function cd(r,...i){return i.reduce((c,s)=>(r.hasOwnProperty(s)&&(c[s]=r[s]),c),{})}const Km=je.setTimeout,km=je.clearTimeout;function di(r,i){i.useNativeTimers?(r.setTimeoutFn=Km.bind(je),r.clearTimeoutFn=km.bind(je)):(r.setTimeoutFn=je.setTimeout.bind(je),r.clearTimeoutFn=je.clearTimeout.bind(je))}const Jm=1.33;function $m(r){return typeof r=="string"?Wm(r):Math.ceil((r.byteLength||r.size)*Jm)}function Wm(r){let i=0,c=0;for(let s=0,m=r.length;s<m;s++)i=r.charCodeAt(s),i<128?c+=1:i<2048?c+=2:i<55296||i>=57344?c+=3:(s++,c+=4);return c}function sd(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fm(r){let i="";for(let c in r)r.hasOwnProperty(c)&&(i.length&&(i+="&"),i+=encodeURIComponent(c)+"="+encodeURIComponent(r[c]));return i}function Pm(r){let i={},c=r.split("&");for(let s=0,m=c.length;s<m;s++){let O=c[s].split("=");i[decodeURIComponent(O[0])]=decodeURIComponent(O[1])}return i}class Im extends Error{constructor(i,c,s){super(i),this.description=c,this.context=s,this.type="TransportError"}}class Zs extends Kt{constructor(i){super(),this.writable=!1,di(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,c,s){return super.emitReserved("error",new Im(i,c,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const c=Vs(i,this.socket.binaryType);this.onPacket(c)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,c={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(c)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const c=Fm(i);return c.length?"?"+c:""}}class t0 extends Zs{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const c=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||c()})),this.writable||(s++,this.once("drain",function(){--s||c()}))}else c()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const c=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Xm(i,this.socket.binaryType).forEach(c),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Lm(i,c=>{this.doWrite(c,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",c=this.query||{};return this.opts.timestampRequests!==!1&&(c[this.opts.timestampParam]=sd()),!this.supportsBinary&&!c.sid&&(c.b64=1),this.createUri(i,c)}}let fd=!1;try{fd=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const e0=fd;function l0(){}class n0 extends t0{constructor(i){if(super(i),typeof location<"u"){const c=location.protocol==="https:";let s=location.port;s||(s=c?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||s!==i.port}}doWrite(i,c){const s=this.request({method:"POST",data:i});s.on("success",c),s.on("error",(m,O)=>{this.onError("xhr post error",m,O)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(c,s)=>{this.onError("xhr poll error",c,s)}),this.pollXhr=i}}class We extends Kt{constructor(i,c,s){super(),this.createRequest=i,di(this,s),this._opts=s,this._method=s.method||"GET",this._uri=c,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var i;const c=cd(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");c.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(c);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let m in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(m)&&s.setRequestHeader(m,this._opts.extraHeaders[m])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var m;s.readyState===3&&((m=this._opts.cookieJar)===null||m===void 0||m.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(m){this.setTimeoutFn(()=>{this._onError(m)},0);return}typeof document<"u"&&(this._index=We.requestsCount++,We.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=l0,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete We.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}We.requestsCount=0;We.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ph);else if(typeof addEventListener=="function"){const r="onpagehide"in je?"pagehide":"unload";addEventListener(r,Ph,!1)}}function Ph(){for(let r in We.requests)We.requests.hasOwnProperty(r)&&We.requests[r].abort()}const a0=function(){const r=rd({xdomain:!1});return r&&r.responseType!==null}();class u0 extends n0{constructor(i){super(i);const c=i&&i.forceBase64;this.supportsBinary=a0&&!c}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new We(rd,this.uri(),i)}}function rd(r){const i=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e0))return new XMLHttpRequest}catch{}if(!i)try{return new je[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const od=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class i0 extends Zs{get name(){return"websocket"}doOpen(){const i=this.uri(),c=this.opts.protocols,s=od?{}:cd(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,c,s)}catch(m){return this.emitReserved("error",m)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const s=i[c],m=c===i.length-1;Qs(s,this.supportsBinary,O=>{try{this.doWrite(s,O)}catch{}m&&hi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",c=this.query||{};return this.opts.timestampRequests&&(c[this.opts.timestampParam]=sd()),this.supportsBinary||(c.b64=1),this.createUri(i,c)}}const qs=je.WebSocket||je.MozWebSocket;class c0 extends i0{createSocket(i,c,s){return od?new qs(i,c,s):c?new qs(i,c):new qs(i)}doWrite(i,c){this.ws.send(c)}}class s0 extends Zs{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const c=Qm(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=i.readable.pipeThrough(c).getReader(),m=Gm();m.readable.pipeTo(i.writable),this._writer=m.writable.getWriter();const O=()=>{s.read().then(({done:Y,value:D})=>{Y||(this.onPacket(D),O())}).catch(Y=>{})};O();const q={type:"open"};this.query.sid&&(q.data=`{"sid":"${this.query.sid}"}`),this._writer.write(q).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let c=0;c<i.length;c++){const s=i[c],m=c===i.length-1;this._writer.write(s).then(()=>{m&&hi(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const f0={websocket:c0,webtransport:s0,polling:u0},r0=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o0=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ws(r){if(r.length>8e3)throw"URI too long";const i=r,c=r.indexOf("["),s=r.indexOf("]");c!=-1&&s!=-1&&(r=r.substring(0,c)+r.substring(c,s).replace(/:/g,";")+r.substring(s,r.length));let m=r0.exec(r||""),O={},q=14;for(;q--;)O[o0[q]]=m[q]||"";return c!=-1&&s!=-1&&(O.source=i,O.host=O.host.substring(1,O.host.length-1).replace(/;/g,":"),O.authority=O.authority.replace("[","").replace("]","").replace(/;/g,":"),O.ipv6uri=!0),O.pathNames=h0(O,O.path),O.queryKey=d0(O,O.query),O}function h0(r,i){const c=/\/{2,9}/g,s=i.replace(c,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&s.splice(0,1),i.slice(-1)=="/"&&s.splice(s.length-1,1),s}function d0(r,i){const c={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,m,O){m&&(c[m]=O)}),c}const js=typeof addEventListener=="function"&&typeof removeEventListener=="function",fi=[];js&&addEventListener("offline",()=>{fi.forEach(r=>r())},!1);class Ll extends Kt{constructor(i,c){if(super(),this.binaryType=Zm,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(c=i,i=null),i){const s=ws(i);c.hostname=s.host,c.secure=s.protocol==="https"||s.protocol==="wss",c.port=s.port,s.query&&(c.query=s.query)}else c.host&&(c.hostname=ws(c.host).host);di(this,c),this.secure=c.secure!=null?c.secure:typeof location<"u"&&location.protocol==="https:",c.hostname&&!c.port&&(c.port=this.secure?"443":"80"),this.hostname=c.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=c.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},c.transports.forEach(s=>{const m=s.prototype.name;this.transports.push(m),this._transportsByName[m]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},c),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Pm(this.opts.query)),js&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},fi.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const c=Object.assign({},this.opts.query);c.EIO=id,c.transport=i,this.id&&(c.sid=this.id);const s=Object.assign({},this.opts,{query:c,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&Ll.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const c=this.createTransport(i);c.open(),this.setTransport(c)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",c=>this._onClose("transport close",c))}onOpen(){this.readyState="open",Ll.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const c=new Error("server error");c.code=i.data,this._onError(c);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let c=1;for(let s=0;s<this.writeBuffer.length;s++){const m=this.writeBuffer[s].data;if(m&&(c+=$m(m)),s>0&&c>this._maxPayload)return this.writeBuffer.slice(0,s);c+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,hi(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,c,s){return this._sendPacket("message",i,c,s),this}send(i,c,s){return this._sendPacket("message",i,c,s),this}_sendPacket(i,c,s,m){if(typeof c=="function"&&(m=c,c=void 0),typeof s=="function"&&(m=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const O={type:i,data:c,options:s};this.emitReserved("packetCreate",O),this.writeBuffer.push(O),m&&this.once("flush",m),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},c=()=>{this.off("upgrade",c),this.off("upgradeError",c),i()},s=()=>{this.once("upgrade",c),this.once("upgradeError",c)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():i()}):this.upgrading?s():i()),this}_onError(i){if(Ll.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,c){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),js&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=fi.indexOf(this._offlineEventListener);s!==-1&&fi.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,c),this.writeBuffer=[],this._prevBufferLen=0}}}Ll.protocol=id;class y0 extends Ll{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let c=this.createTransport(i),s=!1;Ll.priorWebsocketSuccess=!1;const m=()=>{s||(c.send([{type:"ping",data:"probe"}]),c.once("packet",$=>{if(!s)if($.type==="pong"&&$.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",c),!c)return;Ll.priorWebsocketSuccess=c.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(B(),this.setTransport(c),c.send([{type:"upgrade"}]),this.emitReserved("upgrade",c),c=null,this.upgrading=!1,this.flush())})}else{const dt=new Error("probe error");dt.transport=c.name,this.emitReserved("upgradeError",dt)}}))};function O(){s||(s=!0,B(),c.close(),c=null)}const q=$=>{const dt=new Error("probe error: "+$);dt.transport=c.name,O(),this.emitReserved("upgradeError",dt)};function Y(){q("transport closed")}function D(){q("socket closed")}function E($){c&&$.name!==c.name&&O()}const B=()=>{c.removeListener("open",m),c.removeListener("error",q),c.removeListener("close",Y),this.off("close",D),this.off("upgrading",E)};c.once("open",m),c.once("error",q),c.once("close",Y),this.once("close",D),this.once("upgrading",E),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{s||c.open()},200):c.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const c=[];for(let s=0;s<i.length;s++)~this.transports.indexOf(i[s])&&c.push(i[s]);return c}}let m0=class extends y0{constructor(i,c={}){const s=typeof i=="object"?i:c;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(m=>f0[m]).filter(m=>!!m)),super(i,s)}};function g0(r,i="",c){let s=r;c=c||typeof location<"u"&&location,r==null&&(r=c.protocol+"//"+c.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=c.protocol+r:r=c.host+r),/^(https?|wss?):\/\//.test(r)||(typeof c<"u"?r=c.protocol+"//"+r:r="https://"+r),s=ws(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const O=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+O+":"+s.port+i,s.href=s.protocol+"://"+O+(c&&c.port===s.port?"":":"+s.port),s}const v0=typeof ArrayBuffer=="function",p0=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,hd=Object.prototype.toString,b0=typeof Blob=="function"||typeof Blob<"u"&&hd.call(Blob)==="[object BlobConstructor]",S0=typeof File=="function"||typeof File<"u"&&hd.call(File)==="[object FileConstructor]";function Ks(r){return v0&&(r instanceof ArrayBuffer||p0(r))||b0&&r instanceof Blob||S0&&r instanceof File}function ri(r,i){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let c=0,s=r.length;c<s;c++)if(ri(r[c]))return!0;return!1}if(Ks(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return ri(r.toJSON(),!0);for(const c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&ri(r[c]))return!0;return!1}function _0(r){const i=[],c=r.data,s=r;return s.data=Ys(c,i),s.attachments=i.length,{packet:s,buffers:i}}function Ys(r,i){if(!r)return r;if(Ks(r)){const c={_placeholder:!0,num:i.length};return i.push(r),c}else if(Array.isArray(r)){const c=new Array(r.length);for(let s=0;s<r.length;s++)c[s]=Ys(r[s],i);return c}else if(typeof r=="object"&&!(r instanceof Date)){const c={};for(const s in r)Object.prototype.hasOwnProperty.call(r,s)&&(c[s]=Ys(r[s],i));return c}return r}function E0(r,i){return r.data=Ls(r.data,i),delete r.attachments,r}function Ls(r,i){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<i.length)return i[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let c=0;c<r.length;c++)r[c]=Ls(r[c],i);else if(typeof r=="object")for(const c in r)Object.prototype.hasOwnProperty.call(r,c)&&(r[c]=Ls(r[c],i));return r}const T0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],A0=5;var mt;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(mt||(mt={}));class O0{constructor(i){this.replacer=i}encode(i){return(i.type===mt.EVENT||i.type===mt.ACK)&&ri(i)?this.encodeAsBinary({type:i.type===mt.EVENT?mt.BINARY_EVENT:mt.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let c=""+i.type;return(i.type===mt.BINARY_EVENT||i.type===mt.BINARY_ACK)&&(c+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(c+=i.nsp+","),i.id!=null&&(c+=i.id),i.data!=null&&(c+=JSON.stringify(i.data,this.replacer)),c}encodeAsBinary(i){const c=_0(i),s=this.encodeAsString(c.packet),m=c.buffers;return m.unshift(s),m}}function Ih(r){return Object.prototype.toString.call(r)==="[object Object]"}class ks extends Kt{constructor(i){super(),this.reviver=i}add(i){let c;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");c=this.decodeString(i);const s=c.type===mt.BINARY_EVENT;s||c.type===mt.BINARY_ACK?(c.type=s?mt.EVENT:mt.ACK,this.reconstructor=new R0(c),c.attachments===0&&super.emitReserved("decoded",c)):super.emitReserved("decoded",c)}else if(Ks(i)||i.base64)if(this.reconstructor)c=this.reconstructor.takeBinaryData(i),c&&(this.reconstructor=null,super.emitReserved("decoded",c));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let c=0;const s={type:Number(i.charAt(0))};if(mt[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===mt.BINARY_EVENT||s.type===mt.BINARY_ACK){const O=c+1;for(;i.charAt(++c)!=="-"&&c!=i.length;);const q=i.substring(O,c);if(q!=Number(q)||i.charAt(c)!=="-")throw new Error("Illegal attachments");s.attachments=Number(q)}if(i.charAt(c+1)==="/"){const O=c+1;for(;++c&&!(i.charAt(c)===","||c===i.length););s.nsp=i.substring(O,c)}else s.nsp="/";const m=i.charAt(c+1);if(m!==""&&Number(m)==m){const O=c+1;for(;++c;){const q=i.charAt(c);if(q==null||Number(q)!=q){--c;break}if(c===i.length)break}s.id=Number(i.substring(O,c+1))}if(i.charAt(++c)){const O=this.tryParse(i.substr(c));if(ks.isPayloadValid(s.type,O))s.data=O;else throw new Error("invalid payload")}return s}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,c){switch(i){case mt.CONNECT:return Ih(c);case mt.DISCONNECT:return c===void 0;case mt.CONNECT_ERROR:return typeof c=="string"||Ih(c);case mt.EVENT:case mt.BINARY_EVENT:return Array.isArray(c)&&(typeof c[0]=="number"||typeof c[0]=="string"&&T0.indexOf(c[0])===-1);case mt.ACK:case mt.BINARY_ACK:return Array.isArray(c)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class R0{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const c=E0(this.reconPack,this.buffers);return this.finishedReconstruction(),c}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const z0=Object.freeze(Object.defineProperty({__proto__:null,Decoder:ks,Encoder:O0,get PacketType(){return mt},protocol:A0},Symbol.toStringTag,{value:"Module"}));function Qe(r,i,c){return r.on(i,c),function(){r.off(i,c)}}const D0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class dd extends Kt{constructor(i,c,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=c,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Qe(i,"open",this.onopen.bind(this)),Qe(i,"packet",this.onpacket.bind(this)),Qe(i,"error",this.onerror.bind(this)),Qe(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...c){var s,m,O;if(D0.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(c.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const q={type:mt.EVENT,data:c};if(q.options={},q.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const B=this.ids++,$=c.pop();this._registerAckCallback(B,$),q.id=B}const Y=(m=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||m===void 0?void 0:m.writable,D=this.connected&&!(!((O=this.io.engine)===null||O===void 0)&&O._hasPingExpired());return this.flags.volatile&&!Y||(D?(this.notifyOutgoingListeners(q),this.packet(q)):this.sendBuffer.push(q)),this.flags={},this}_registerAckCallback(i,c){var s;const m=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(m===void 0){this.acks[i]=c;return}const O=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let Y=0;Y<this.sendBuffer.length;Y++)this.sendBuffer[Y].id===i&&this.sendBuffer.splice(Y,1);c.call(this,new Error("operation has timed out"))},m),q=(...Y)=>{this.io.clearTimeoutFn(O),c.apply(this,Y)};q.withError=!0,this.acks[i]=q}emitWithAck(i,...c){return new Promise((s,m)=>{const O=(q,Y)=>q?m(q):s(Y);O.withError=!0,c.push(O),this.emit(i,...c)})}_addToQueue(i){let c;typeof i[i.length-1]=="function"&&(c=i.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((m,...O)=>s!==this._queue[0]?void 0:(m!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),c&&c(m)):(this._queue.shift(),c&&c(null,...O)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const c=this._queue[0];c.pending&&!i||(c.pending=!0,c.tryCount++,this.flags=c.flags,this.emit.apply(this,c.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:mt.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,c){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,c),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(s=>String(s.id)===i)){const s=this.acks[i];delete this.acks[i],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case mt.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case mt.EVENT:case mt.BINARY_EVENT:this.onevent(i);break;case mt.ACK:case mt.BINARY_ACK:this.onack(i);break;case mt.DISCONNECT:this.ondisconnect();break;case mt.CONNECT_ERROR:this.destroy();const s=new Error(i.data.message);s.data=i.data.data,this.emitReserved("connect_error",s);break}}onevent(i){const c=i.data||[];i.id!=null&&c.push(this.ack(i.id)),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const s of c)s.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const c=this;let s=!1;return function(...m){s||(s=!0,c.packet({type:mt.ACK,id:i,data:m}))}}onack(i){const c=this.acks[i.id];typeof c=="function"&&(delete this.acks[i.id],c.withError&&i.data.unshift(null),c.apply(this,i.data))}onconnect(i,c){this.id=i,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:mt.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const c=this._anyListeners;for(let s=0;s<c.length;s++)if(i===c[s])return c.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const c=this._anyOutgoingListeners;for(let s=0;s<c.length;s++)if(i===c[s])return c.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const s of c)s.apply(this,i.data)}}}function Kn(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}Kn.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),c=Math.floor(i*this.jitter*r);r=(Math.floor(i*10)&1)==0?r-c:r+c}return Math.min(r,this.max)|0};Kn.prototype.reset=function(){this.attempts=0};Kn.prototype.setMin=function(r){this.ms=r};Kn.prototype.setMax=function(r){this.max=r};Kn.prototype.setJitter=function(r){this.jitter=r};class Xs extends Kt{constructor(i,c){var s;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(c=i,i=void 0),c=c||{},c.path=c.path||"/socket.io",this.opts=c,di(this,c),this.reconnection(c.reconnection!==!1),this.reconnectionAttempts(c.reconnectionAttempts||1/0),this.reconnectionDelay(c.reconnectionDelay||1e3),this.reconnectionDelayMax(c.reconnectionDelayMax||5e3),this.randomizationFactor((s=c.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new Kn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(c.timeout==null?2e4:c.timeout),this._readyState="closed",this.uri=i;const m=c.parser||z0;this.encoder=new m.Encoder,this.decoder=new m.Decoder,this._autoConnect=c.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var c;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(c=this.backoff)===null||c===void 0||c.setMin(i),this)}randomizationFactor(i){var c;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(c=this.backoff)===null||c===void 0||c.setJitter(i),this)}reconnectionDelayMax(i){var c;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(c=this.backoff)===null||c===void 0||c.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new m0(this.uri,this.opts);const c=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const m=Qe(c,"open",function(){s.onopen(),i&&i()}),O=Y=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",Y),i?i(Y):this.maybeReconnectOnOpen()},q=Qe(c,"error",O);if(this._timeout!==!1){const Y=this._timeout,D=this.setTimeoutFn(()=>{m(),O(new Error("timeout")),c.close()},Y);this.opts.autoUnref&&D.unref(),this.subs.push(()=>{this.clearTimeoutFn(D)})}return this.subs.push(m),this.subs.push(q),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Qe(i,"ping",this.onping.bind(this)),Qe(i,"data",this.ondata.bind(this)),Qe(i,"error",this.onerror.bind(this)),Qe(i,"close",this.onclose.bind(this)),Qe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(c){this.onclose("parse error",c)}}ondecoded(i){hi(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,c){let s=this.nsps[i];return s?this._autoConnect&&!s.active&&s.connect():(s=new dd(this,i,c),this.nsps[i]=s),s}_destroy(i){const c=Object.keys(this.nsps);for(const s of c)if(this.nsps[s].active)return;this._close()}_packet(i){const c=this.encoder.encode(i);for(let s=0;s<c.length;s++)this.engine.write(c[s],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,c){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,c),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const c=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(m=>{m?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",m)):i.onreconnect()}))},c);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const ka={};function oi(r,i){typeof r=="object"&&(i=r,r=void 0),i=i||{};const c=g0(r,i.path||"/socket.io"),s=c.source,m=c.id,O=c.path,q=ka[m]&&O in ka[m].nsps,Y=i.forceNew||i["force new connection"]||i.multiplex===!1||q;let D;return Y?D=new Xs(s,i):(ka[m]||(ka[m]=new Xs(s,i)),D=ka[m]),c.query&&!i.query&&(i.query=c.queryKey),D.socket(c.path,i)}Object.assign(oi,{Manager:Xs,Socket:dd,io:oi,connect:oi});function x0({code:r,isConnected:i,onCreateRoom:c,onJoinRoom:s}){const[m,O]=it.useState(""),q=()=>{if(m){const D=m.trim();s(D)}},Y=D=>{D.key==="Enter"&&q()};return Q.jsx("div",{className:"mb-2",children:r?Q.jsx(Q.Fragment,{children:Q.jsxs("p",{className:"text-lg",children:["Code: ",Q.jsx("strong",{className:"text-3xl",children:r})]})}):Q.jsxs(Q.Fragment,{children:[Q.jsx("button",{onClick:c,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Create Room"}),Q.jsx("input",{type:"text",className:"width-212",value:m,onChange:D=>O(D.target.value),onKeyDown:Y,placeholder:"Enter code to join"}),Q.jsx("button",{onClick:q,className:"bg-purple-600 text-darkPurple px-4 py-2 rounded hover:bg-purple-500",children:"Join"})]})})}function M0({files:r,setFiles:i,dataChannels:c,dataChannelsRef:s,useFallback:m,socket:O,code:q,socketId:Y,localFilesRef:D,downloadStates:E,setDownloadStates:B,cancelDownload:$,cancelRequestsRef:dt,downloadCounts:jt,handleDeleteFile:kt,SERVER_URL:At}){const Yt=it.useRef(null),bt=it.useRef({}),he=(U,ft=256)=>new Promise(rt=>{if(!U.type.startsWith("image/")){rt(null);return}const nt=new Image,et=document.createElement("canvas"),le=et.getContext("2d");nt.onload=()=>{const{width:Qt,height:_t}=nt,A=Math.min(ft/Qt,ft/_t,1);et.width=Qt*A,et.height=_t*A,le.drawImage(nt,0,0,et.width,et.height),et.toBlob(C=>{rt(C)},"image/jpeg",.7)},nt.src=URL.createObjectURL(U)}),xt=async()=>{const U=Yt.current.files;if(!U||U.length===0)return;const ft=Array.from(U).map(rt=>({name:rt.name,size:rt.size,peerId:Y,thumbnail:!!rt.type.startsWith("image/")}));if(m){const rt=new FormData;Array.from(U).forEach(nt=>rt.append("files",nt));try{if(!(await fetch(`${At}/api/upload/${q}`,{method:"POST",body:rt,headers:{"x-socket-id":Y}})).ok)throw new Error("File upload failed");console.log("Files uploaded to server:",ft)}catch(nt){console.error("Error uploading files:",nt)}}else{const rt=await Promise.all(Array.from(U).map(async nt=>({name:nt.name,thumbnail:nt.type.startsWith("image/")?await he(nt):null})));D.current={...D.current,...Object.fromEntries(Array.from(U).map(nt=>[nt.name,nt])),...Object.fromEntries(rt.filter(({thumbnail:nt})=>nt).map(({name:nt,thumbnail:et})=>[`${nt}_thumbnail`,et]))},rt.forEach(({name:nt,thumbnail:et})=>{if(et){const le=URL.createObjectURL(et);bt.current[nt]=le,console.log(`Cached thumbnail URL for ${nt}: ${le}`)}}),console.log("Stored files in localFilesRef:",Object.keys(D.current)),O.emit("file-list",{code:q,files:ft}),console.log("Shared file list:",ft)}i(rt=>[...rt,...ft]),Yt.current.value=""},te=async U=>{if(dt.current.has(U.name)&&(dt.current.delete(U.name),console.log(`Cleared previous cancel for ${U.name}, starting new request to ${U.peerId}`)),E[U.name]?.status==="downloading"){$(U.name,U.peerId),console.log(`Canceling download for ${U.name}`);return}if(B(ft=>({...ft,[U.name]:{status:"downloading",progress:0,total:U.size,peerId:U.peerId}})),console.log(`Starting download for ${U.name}, downloadStates:`,{...E,[U.name]:{status:"downloading",progress:0}}),m){const ft=document.createElement("a");ft.href=`${At}/uploads/${U.path.split("/").pop()}`,ft.download=U.name,ft.click(),console.log(`Downloading file via server: ${U.name}`),B(rt=>({...rt,[U.name]:{status:"completed",progress:100}}))}else if(U.peerId===Y){const ft=D.current[U.name]||r.find(rt=>rt.name===U.name)?.file;if(ft){const rt=URL.createObjectURL(ft),nt=document.createElement("a");nt.href=rt,nt.download=U.name,nt.click(),URL.revokeObjectURL(rt),console.log(`Downloaded local file: ${U.name}`),B(et=>({...et,[U.name]:{status:"saved",progress:100}}))}else console.error(`Local file not found: ${U.name}`)}else c[U.peerId]?.readyState==="open"?(s.current[U.peerId].send(JSON.stringify({type:"request-file",name:U.name})),console.log(`Requested file ${U.name} from ${U.peerId}`)):console.error(`Data channel not open for peer ${U.peerId}`)},K=U=>{const ft=U.split(".").pop().toLowerCase();return`/imgs/${{exe:"executable.png",bin:"executable.png",dll:"executable.png",jpg:"picture.png",jpeg:"picture.png",png:"picture.png",gif:"picture.png",mp3:"audio.png",wav:"audio.png",ogg:"audio.png",mp4:"video.png",mkv:"video.png",avi:"video.png",mov:"video.png",wma:"video.png",pdf:"unknown.png",doc:"unknown.png",docx:"unknown.png",txt:"text.png",log:"text.png",bat:"script.png",sh:"script.png",html:"html.png",xml:"xml.png",zip:"archive.png",gz:"archive.png",bz:"archive.png"}[ft]||"unknown.png"}`},ee=U=>U?U<1024?`${U} B`:U<1024*1024?`${(U/1024).toFixed(2)} KB`:U<1024*1024*1024?`${(U/(1024*1024)).toFixed(2)} MB`:`${(U/(1024*1024*1024)).toFixed(2)} GB`:"Unknown",Ut=U=>{if(!U.thumbnail)return console.log(`No thumbnail flag for ${U.name}`),null;if(bt.current[U.name])return bt.current[U.name];const ft=D.current[`${U.name}_thumbnail`];if(ft){const rt=URL.createObjectURL(ft);return bt.current[U.name]=rt,console.log(`Generated and cached thumbnail URL for ${U.name}: ${rt}`),rt}return console.log(`No thumbnail available for ${U.name}`),null};return it.useEffect(()=>()=>{Object.values(bt.current).forEach(U=>{U&&URL.revokeObjectURL(U)}),bt.current={},console.log("Revoked all thumbnail URLs on unmount")},[]),Q.jsxs("div",{children:[Q.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Files"}),Q.jsx("input",{type:"file",multiple:!0,ref:Yt,onChange:xt,className:"mb-2"}),Q.jsx("ul",{className:"space-y-2",children:r.map((U,ft)=>(E[U.name]?.status==="downloading"||E[U.name]?.status,Q.jsxs("li",{className:"flex items-center space-x-2",children:[U.thumbnail&&Q.jsx("img",{src:Ut(U)||K(U.name),alt:`${U.name} preview`,className:"w-16 h-16 object-cover mr-2",onError:()=>{console.log(`Thumbnail failed to load for ${U.name}, requesting...`)}})||Q.jsx("img",{src:K(U.name),alt:"file icon",className:"w-6 h-6",onError:rt=>rt.target.style.display="none"}),Q.jsxs("span",{children:["(",ee(U.size),")"]}),U.peerId!==Y&&Q.jsx("button",{onClick:()=>te(U),className:`px-4 py-2 rounded ${E[U.name]?.status==="saved"?"bg-green-500 text-white":E[U.name]?.status==="downloading"?"bg-yellow-500 text-black":"bg-purple-600 text-darkPurple hover:bg-purple-500"}`,children:E[U.name]?.status==="saved"?"Saved ✓":E[U.name]?.status==="downloading"?`Cancel ${(E[U.name]?.progress||0).toFixed(2)}%`:"Download"}),U.peerId===Y&&Q.jsx(Q.Fragment,{children:Q.jsx("button",{onClick:()=>kt(U.name),className:"bg-rose-800 text-darkPurple px-4 py-2 rounded hover:bg-rose-700",children:"Delete"})}),jt[U.name]>0&&Q.jsxs("span",{children:[jt[U.name]," downloading"]}),Q.jsx("span",{children:U.name})]},ft)))})]})}function N0({textHistory:r,setTextHistory:i,dataChannels:c,useFallback:s,socket:m,code:O}){const[q,Y]=it.useState(""),D=()=>{q.trim()&&(console.log("handleSend:",{dataChannels:c,useFallback:s,code:O}),!s&&Object.keys(c).length>0?(Object.keys(c).forEach(B=>{c[B].readyState==="open"&&(c[B].send(JSON.stringify({type:"text",text:q})),console.log(`Sent text to peer ${B}`))}),i(B=>[...B,q])):s&&m&&O&&(m.emit("text",{code:O,text:q}),console.log(`Sending text via socket for room ${O}: ${q}`),i(B=>[...B,q])),Y(""))},E=B=>{B.key==="Enter"&&!B.shiftKey&&(B.preventDefault(),D())};return Q.jsxs("div",{className:"mb-4",children:[Q.jsx("h2",{className:"text-xl font-semibold mb-2",children:"Share Text"}),Q.jsx("textarea",{className:"w-full p-2 border rounded bg-pink-100 text-purple-900",value:q,onChange:B=>Y(B.target.value),onKeyDown:E,placeholder:"Enter text to share"}),Q.jsx("button",{className:"bg-emerald-600 text-darkPurple px-4 py-2 rounded hover:bg-emerald-500",onClick:D,children:"Send"}),Q.jsxs("div",{className:"mt-2",children:[Q.jsx("h3",{className:"text-lg font-semibold",children:"Messages"}),Q.jsx("ul",{className:"list-disc pl-5",children:r?.length>0?r.map((B,$)=>Q.jsx("li",{children:Q.jsx("pre",{children:B})},$)):Q.jsx("li",{children:Q.jsx("pre",{children:"No messages yet"})})})]})]})}const td="",V=oi("/",{withCredentials:!0});function U0(){const[r,i]=it.useState(""),[c,s]=it.useState(!1),[m,O]=it.useState(!1),[q,Y]=it.useState(!1),[D,E]=it.useState(!1),[B,$]=it.useState(90),[dt,jt]=it.useState(""),[kt,At]=it.useState([]),[Yt,bt]=it.useState(""),[he,xt]=it.useState({}),[te,K]=it.useState([]),[ee,Ut]=it.useState({}),[U,ft]=it.useState([]),[rt,nt]=it.useState({}),et=it.useRef({}),le=it.useRef([]);it.useRef({});const Qt=it.useRef({});it.useRef({}),it.useRef({});const _t=it.useRef(new Set),A=it.useRef({}),C=it.useRef({}),w=it.useRef({}),gt=it.useRef({}),d=it.useRef({}),M=it.useRef({}),H=it.useRef({}),j=window.location.protocol,k=window.location.hostname||"localhost",yt=(r||"").replace(/ /g,"_"),lt=`${j}//${k}/room/${yt||""}`,se=async g=>{if(!navigator.clipboard){console.error("Clipboard API not available. Ensure the app is running in a secure context (https or localhost).");return}try{const N=g==="link"?lt:yt;await navigator.clipboard.writeText(N),s(g),setTimeout(()=>s(null),2e3)}catch(N){console.error(`Failed to copy ${g}:`,N)}},Mt=async()=>{try{const g=await fetch(`${td}/api/generate-code`,{method:"GET",credentials:"include"}),{code:N,error:L}=await g.json();if(L){bt(L);return}i(N),O(!0),bt(""),V.emit("create",N)}catch(g){console.error("Error generating code:",g),bt("Failed to generate room code")}},Ye=g=>{if(!g){bt("Please enter a room code");return}const N=g.replace(/_/g," ");i(N),bt(""),V.emit("join",N)},kn=()=>{V.emit("leave",r),i(""),O(!1),Y(!1),E(!1),$(90),K([]),jt(""),At([]),bt(""),xt({}),ft([]),nt({}),et.current={},Object.values(C.current).forEach(g=>g.close()),C.current={},w.current={},Object.keys(d.current).forEach(g=>clearTimeout(d.current[g])),d.current={},H.current={},window.history.pushState({},"","/")},ml=(g,N,L=!1)=>{if(!g||g===V.id||g==="true"){console.log(`Skipping WebRTC setup for invalid peerId: ${g}`);return}if(D){console.log(`Skipping WebRTC setup for ${g} due to fallback mode`);return}if(C.current[g]){console.log(`WebRTC connection already exists for ${g}, skipping setup`);return}console.log(`Setting up WebRTC with peer ${g} (${L?"offerer":"answerer"}, attempt ${Qt.current[g]||1}/3)`);const T=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"},{urls:"turn:openrelay.metered.ca:80",username:"openrelay.project",credential:"openrelayproject"},{urls:"turn:openrelay.metered.ca:443",username:"openrelay.project",credential:"openrelayproject"}]});Qt.current[g]=(Qt.current[g]||0)+1,C.current[g]=T,T.ondatachannel=P=>{const G=P.channel;if(G.label==="file-share")w.current[g]=G,G.onopen=()=>{console.log(`Main DataChannel opened with peer ${g}`),Y(!0),$(0),Object.keys(d.current).forEach(ct=>{console.log(`Clearing timeout for ${ct}`),clearTimeout(d.current[ct])}),d.current={},Qt.current[g]=0,w.current.true&&delete w.current.true,xt({...w.current});const tt=le.current.map(ct=>({name:ct.name,size:ct.size,peerId:ct.peerId,thumbnail:!!et.current[`${ct.name}_thumbnail`]}));G.send(JSON.stringify({type:"file-list",files:tt})),tt.forEach(ct=>{ct.thumbnail&&ct.peerId!==V.id&&!et.current[`${ct.name}_thumbnail`]&&Pe(ct)})},G.onmessage=tt=>_e(g,tt),G.onclose=()=>{console.log(`Main DataChannel closed with peer ${g}`),delete C.current[g],xt({...w.current})},G.onerror=tt=>{console.error(`Main DataChannel error with ${g}:`,tt)};else if(G.label.startsWith("file-")){const tt=G.label.slice(5);console.log(`Received file channel for ${tt} from ${g}`);let ct=[],Lt=0,qt=!1;G.onmessage=Ve=>{if(qt)return;const gl=Ve.data;try{if(typeof gl=="string"){const de=JSON.parse(gl);if(de.type==="file-start")Lt=de.size,ct=[],Ut(ne=>({...ne,[tt]:{status:"downloading",progress:0,total:de.size,received:0,peerId:g}})),console.log(`File start on channel: ${tt}, size ${de.size}`);else if(de.type==="file-end"){if(ct.length>0){const ne=ct.reduce((ae,me)=>ae+me.byteLength,0);if(ne===Lt){const ae=tt.match(/\.(png|jpe?g)$/i)?`image/${tt.split(".").pop().toLowerCase()}`:"application/octet-stream",me=new Blob(ct,{type:ae});et.current[tt]=me;const Xl=URL.createObjectURL(me),Ie=document.createElement("a");Ie.href=Xl,Ie.download=tt,Ie.click(),URL.revokeObjectURL(Xl),Ut(mi=>({...mi,[tt]:{status:"saved",progress:100}})),console.log(`File ${tt} saved`)}else console.error(`Size mismatch for ${tt}: ${ne}/${Lt}`),Ut(ae=>({...ae,[tt]:{status:"error",progress:0}}))}G.close(),un(g,tt,"end")}else de.type==="file-cancel"&&(qt=!0,Ut(ne=>({...ne,[tt]:{status:"canceled",progress:0}})),console.log(`File download canceled for ${tt}`),G.close(),un(g,tt,"end"))}else if(gl instanceof ArrayBuffer){ct.push(gl);const de=ct.reduce((ae,me)=>ae+me.byteLength,0),ne=Math.min(100,de/Lt*100);Ut(ae=>({...ae,[tt]:{...ae[tt],progress:ne,received:de}}))}}catch(de){console.error(`Error in file channel message for ${tt}:`,de)}},G.onclose=()=>{console.log(`File channel closed for ${tt}`)},G.onerror=Ve=>{console.error(`File channel error for ${tt}:`,Ve)}}};let J=null;return L&&(J=T.createDataChannel("file-share",{maxRetransmits:99}),w.current[g]=J,J.onopen=()=>{console.log(`Main DataChannel opened with peer ${g} (joiner)`),Y(!0),$(0),Object.keys(d.current).forEach(G=>{console.log(`Clearing timeout for ${G}`),clearTimeout(d.current[G])}),d.current={},Qt.current[g]=0,w.current.true&&delete w.current.true,xt({...w.current});const P=le.current.map(G=>({name:G.name,size:G.size,peerId:G.peerId,thumbnail:!!et.current[`${G.name}_thumbnail`]}));J.send(JSON.stringify({type:"file-list",files:P})),P.forEach(G=>{G.thumbnail&&G.peerId!==V.id&&!et.current[`${G.name}_thumbnail`]&&Pe(G)})},J.onmessage=P=>_e(g,P),J.onclose=()=>{console.log(`Main DataChannel closed with peer ${g}`),delete C.current[g],xt({...w.current})},J.onerror=P=>{console.error(`Main DataChannel error with ${g}:`,P)}),T.onicecandidate=P=>{P.candidate&&N&&(V.emit("ice-candidate",{code:N,candidate:P.candidate,to:g,from:V.id}),console.log(`Sent ICE candidate to ${g} from ${V.id}: ${P.candidate.candidate}`))},T.onicecandidateerror=P=>{console.error(`ICE candidate error for ${g}:`,P)},T.oniceconnectionstatechange=()=>{console.log(`ICE state with ${g} (${m?"creator":"joiner"}): ${T.iceConnectionState}`),T.iceConnectionState==="failed"||T.iceConnectionState==="disconnected"?(console.log(`WebRTC ${T.iceConnectionState} with ${g}, retrying in 5s (attempt ${Qt.current[g]}/3)`),setTimeout(()=>{T.iceConnectionState!=="connected"&&!D&&Qt.current[g]<3?ml(g,N,L):T.iceConnectionState!=="connected"&&!D&&(console.log(`Max retries reached for ${g}, switching to fallback`),E(!0),bt("WebRTC connection failed after retries, using server fallback"),$(0),K([]),At([]),m&&V.emit("fallback",{code:N}))},5e3)):T.iceConnectionState==="connected"&&(Y(!0),E(!1),bt(""),clearTimeout(d.current[g]),Qt.current[g]=0)},L&&T.createOffer().then(P=>{T.setLocalDescription(P),V.emit("offer",{code:N,offer:P,to:g,from:V.id}),console.log(`Sent offer to ${g} for room ${N}`)}).catch(P=>{console.error(`Error creating offer for ${g}:`,P),bt("Failed to create WebRTC offer"),E(!0),$(0),K([]),At([]),m&&V.emit("fallback",{code:N})}),()=>clearTimeout(d.current[g])};it.useEffect(()=>(V.on("peer-joined",g=>{if(!g||!g.peerId||g.peerId==="true"){console.error("Invalid peer-joined data:",g);return}const{peerId:N}=g;console.log(`Peer ${N} joined room ${r}`),ml(N,r,!0)}),V.on("offer",async({code:g,offer:N,to:L,from:T})=>{if(L!==V.id||D){console.log(`Ignoring offer from ${T} (to=${L}, socket.id=${V.id}, useFallback=${D})`);return}console.log(`Received offer from ${T} for room ${g}`),C.current[T]||(console.log(`No existing connection for ${T}, setting up as answerer`),ml(T,g,!1));try{const J=C.current[T];await J.setRemoteDescription(new RTCSessionDescription(N));const P=await J.createAnswer();await J.setLocalDescription(P),V.emit("answer",{code:g,answer:P,to:T,from:V.id}),console.log(`Sent answer to ${T} from ${V.id} for room ${g}`)}catch(J){console.error(`Error handling offer from ${T}:`,J),bt("Failed to process WebRTC offer"),E(!0),$(0),K([]),At([]),m&&V.emit("fallback",{roomCode})}}),V.on("answer",async({code:g,answer:N,to:L,from:T})=>{if(L!==V.id||D){console.log(`Ignoring answer from ${T} (to=${L}, socket.id=${V.id}, useFallback=${D})`);return}if(console.log(`Received answer from ${T} for room ${g}`),C.current[T])try{await C.current[T].setRemoteDescription(new RTCSessionDescription(N)),console.log(`Successfully set remote description for answer from ${T}`)}catch(J){console.error(`Error handling answer from ${T}:`,J),bt("Failed to process WebRTC answer"),E(!0),$(0),K([]),At([]),m&&V.emit("fallback",{roomCode})}else console.warn(`No peer connection found for ${T} when receiving answer`)}),V.on("room-status",({useFallback:g,textHistory:N,files:L})=>{console.log(`Received room-status: useFallback=${g}, textHistory=`,N),E(g),At(N||[]),K(L||[]),g&&(Y(!0),$(0),bt("Room is in fallback mode"))}),V.on("fallback",()=>{console.log(`Received fallback signal for room ${roomCode}`),E(!0),bt("Room switched to fallback mode"),$(0),K([]),At([]),Object.values(C.current).forEach(g=>g.close()),C.current={},w.current={},gt.current={},Object.keys(d.current).forEach(g=>clearTimeout(d.current[g])),d.current={},Qt.current={}}),V.on("peer-left",g=>{const{peerId:N}=g;if(C.current[N]){C.current[N].close(),delete C.current[N],delete w.current[N],delete d.current[N],Object.keys(gt.current).forEach(T=>{T.startsWith(`${N}-`)&&(gt.current[T]?.close(),delete gt.current[T])}),xt({...w.current}),console.log(`Peer ${N} left room`),K(T=>T.filter(J=>J.peerId!==N));let L=!1;Object.keys(H.current).forEach(T=>{H.current[T].delete(N)&&(L=!0,$a(T,H.current[T].size))}),L&&nt(T=>({...T}))}m&&(Y(!1),K([]),At([]),D?(E(!1),bt("")):$(90))}),V.on("ice-candidate",async({code:g,candidate:N,from:L,to:T})=>{if(r!==g){console.log(`Ignoring ICE candidate from ${L} (to=${T}), room mismatch ${r}=/=${g}`);return}if(T!==V.id){console.log(`Ignoring ICE candidate from ${L} (to=${T})`);return}if(console.log(`Received ICE candidate from ${L}`),C.current[L])try{await C.current[L].addIceCandidate(new RTCIceCandidate(N)),console.log(`Added ICE candidate from ${L}`)}catch(J){console.error(`Error adding ICE candidate from ${L}:`,J)}else console.warn(`No peer connection found for ${L} when receiving ICE candidate`)}),V.on("error",g=>{bt(g),i(""),Y(!1),O(!1),$(90),K([]),jt(""),At([]),xt({}),Object.values(C.current).forEach(N=>N.close()),C.current={},w.current={},Object.keys(d.current).forEach(N=>clearTimeout(d.current[N])),d.current={},console.log("Server error:",g),window.history.pushState({},"","/")}),V.on("files",g=>{console.log("Received files:",g),K(g)}),V.on("file",({name:g,path:N,peerId:L,size:T})=>{console.log(`Received file via socket: ${g}, uploader: ${L}`),K(J=>[...J,{name:g,path:N,peerId:L,size:T}])}),V.on("text-history",g=>{console.log(`Received text history for room ${r}:`,g),At(g||[])}),V.on("text",({text:g})=>{console.log(`Received text via socket for room ${r}:`,g),At(N=>[...N,g])}),V.on("file-list",({files:g})=>{K(N=>{const L=g.filter(T=>!N.some(J=>J.name===T.name&&J.peerId===T.peerId));return L.forEach(T=>{T.thumbnail&&!et.current[`${T.name}_thumbnail`]?(console.log(`Requesting thumbnail for ${T.name} from ${T.peerId}`),Pe(T)):T.thumbnail&&console.log(`Thumbnail for ${T.name} already cached, skipping request`)}),console.log("Received file-list from server:",g),[...N,...L]})}),()=>{V.off("peer-joined"),V.off("offer"),V.off("answer"),V.off("room-status"),V.off("fallback"),V.off("peer-left"),V.off("ice-candidate"),V.off("error"),V.off("files"),V.off("file"),V.off("text"),V.off("text-history"),V.off("file-list")}),[r,m,D]),it.useEffect(()=>{if(m&&B>0&&!q&&!D){const g=setInterval(()=>{$(N=>N<=1?(i(""),O(!1),V.emit("leave",r),bt("No one joined the room"),0):N-1)},1e3);return()=>clearInterval(g)}},[m,B,q,D,r]),it.useEffect(()=>{le.current=te,console.log("Updated filesRef:",le.current)},[te]),it.useEffect(()=>{const g=Object.keys(C.current);ft([V.id,...g].sort())},[he]),it.useEffect(()=>{if(!r){const g=window.location.pathname;if(g.startsWith("/room/")){const N=g.slice(6).replace(/_/g," ");Ye(N)}}},[]);const Pe=g=>{if(g.thumbnail&&g.peerId!==V.id&&!D){const N=(A.current[g.name]||0)+1;if(N>3){console.error(`Max retries reached for thumbnail ${g.name}`);return}const L=w.current[g.peerId];L?.readyState==="open"?(A.current[g.name]=N,L.send(JSON.stringify({type:"request-thumbnail",fileName:g.name})),console.log(`Requested thumbnail for ${g.name} from ${g.peerId} via WebRTC (retry ${N})`)):(console.warn(`Data channel not ready for ${g.peerId}, retrying in 1s`),setTimeout(()=>Pe(g),1e3))}else console.error(`Cannot request thumbnail for ${g.name}:`,{isThumbnail:g.thumbnail,isLocal:g.peerId===V.id,useFallback:D,channelOpen:w.current[g.peerId]?.readyState})},Jn=async(g,N,L,T)=>{if(_t.current.has(N)&&(_t.current.delete(N),console.log(`Cleared previous cancel for ${N}, starting new send to ${g}`)),!T||T.readyState!=="open"){console.error(`Channel not open for ${g}`);return}const J=8*1024*1024,P=4*1024*1024;T.bufferedAmountLowThreshold=P;let G;T.onbufferedamountlow=()=>{G&&(G(),G=null)};const tt=()=>T.bufferedAmount<=J?Promise.resolve():new Promise(qt=>{G=qt});T.send(JSON.stringify({type:"file-start",name:N,size:L.size})),await tt();const ct=16384;let Lt=0;for(console.log(`--- offset : ${Lt} --- file.size : ${L.size}`);Lt<L.size;){if(_t.current.has(N)){console.log(`Canceled sending ${N} to ${g}`),T.send(JSON.stringify({type:"file-cancel",name:N}));return}const qt=L.slice(Lt,Lt+ct);if(console.log(`--- slice.size : ${qt.size}`),qt.size===0)break;try{const Ve=await new Promise((gl,de)=>{const ne=new FileReader;ne.onload=ae=>gl(ae.target.result),ne.onerror=de,ne.readAsArrayBuffer(qt)});if(_t.current.has(N)){console.log(`Canceled sending ${N} to ${g} during read`),T.send(JSON.stringify({type:"file-cancel",name:N}));return}T.send(Ve),await tt(),Lt+=Ve.byteLength}catch(Ve){console.error(`Error reading ${N}:`,Ve);return}}T.send(JSON.stringify({type:"file-end",name:N})),console.log(`Finished sending ${N} to ${g}`)},$n=(g,N)=>{if(!_t.current.has(g)){_t.current.add(g);const L=w.current[N];L&&L.readyState==="open"&&(L.send(JSON.stringify({type:"end-download",fileName:g})),L.send(JSON.stringify({type:"cancel-download",fileName:g})),console.log(`Sent end-download and cancel-download for ${g} to ${N}`)),Ut(T=>{const J=T[g]?.status==="saved",{[g]:P,...G}=T;return J?{...G,[g]:{status:"saved",progress:100,peerId:N}}:G}),M.current[N]?.fileName===g&&delete M.current[N],console.log(`Canceled download for ${g} locally`)}},yi=g=>{K(N=>N.filter(L=>L.name!==g)),delete et.current[g],delete et.current[`${g}_thumbnail`],Object.values(w.current).forEach(N=>{N.readyState==="open"&&N.send(JSON.stringify({type:"remove-file",fileName:g}))}),console.log(`Deleted file ${g} and notified peers`)},$a=(g,N)=>{Object.values(w.current).forEach(L=>{L.readyState==="open"&&L.send(JSON.stringify({type:"update-count",fileName:g,count:N}))}),nt(L=>({...L,[g]:N}))},_e=(g,N)=>{const L=N.data;try{if(typeof L=="string"){const T=JSON.parse(L);if(T.type==="text")At(J=>[...J,T.text]),console.log(`Received text via WebRTC from ${g}: ${T.text}`);else if(T.type==="request-file"){const J=et.current[T.name];if(J){const P=C.current[g];if(P){un(g,T.name,"start");const G=`file-${T.name}`,tt=P.createDataChannel(G),ct=`${g}-${T.name}`;gt.current[ct]=tt,tt.onopen=()=>{console.log(`File channel opened for ${T.name} to ${g}`),Jn(g,T.name,J,tt)},tt.onclose=()=>{delete gt.current[ct],console.log(`File channel closed for ${T.name}`)},tt.onerror=Lt=>{console.error(`File channel error for ${T.name}:`,Lt)}}else console.error(`No peer connection for ${g}`)}else console.error(`File not found: ${T.name}`)}else if(T.type==="request-thumbnail"){const J=et.current[`${T.fileName}_thumbnail`];if(J&&w.current[g]?.readyState==="open"){const P=new FileReader;P.onload=()=>{w.current[g].send(JSON.stringify({type:"thumbnail",fileName:T.fileName})),w.current[g].send(P.result),console.log(`Sent thumbnail for ${T.fileName} to ${g}`)},P.readAsArrayBuffer(J)}else console.error(`Thumbnail not found or channel closed for ${T.fileName}, peerId: ${g}, channel: ${w.current[g]?.readyState}`)}else T.type==="thumbnail"?M.current[g]={type:"thumbnail",fileName:T.fileName}:T.type==="cancel-download"?(_t.current.add(T.fileName),console.log(`Received cancel request for ${T.fileName} from ${g}`),un(g,T.fileName,"end")):T.type==="remove-file"?(K(J=>J.filter(P=>P.name!==T.fileName)),console.log(`Removed file ${T.fileName} from list`)):T.type==="update-count"?nt(J=>({...J,[T.fileName]:T.count})):T.type==="file-list"&&K(J=>{const P=T.files.filter(G=>!J.some(tt=>tt.name===G.name&&tt.peerId===G.peerId));return P.forEach(G=>{G.thumbnail&&!et.current[`${G.name}_thumbnail`]?(console.log(`Requesting thumbnail for ${G.name} from ${G.peerId}`),Pe(G)):G.thumbnail&&console.log(`Thumbnail for ${G.name} already cached, skipping request`)}),console.log("Received file-list from server:",T.files),[...J,...P]})}else if(L instanceof ArrayBuffer){const T=M.current[g];if(T){if(T.type==="thumbnail"){const J=new Blob([L],{type:"image/jpeg"});et.current[`${T.fileName}_thumbnail`]=J,console.log(`Received thumbnail for ${T.fileName} from ${g}, size: ${J.size}`),K(P=>P.map(G=>G.name===T.fileName&&G.peerId!==V.id?{...G,thumbnail:!0}:G)),delete M.current[g]}else if(T.type==="file"){if(_t.current.has(T.fileName)){console.log(`Ignoring chunk for canceled file ${T.fileName}`);return}T.chunks.push(L);const J=T.chunks.reduce((P,G)=>P+G.byteLength,0);Ut(P=>{const G=T.fileName;if(_t.current.has(G))return P;if(J>T.expectedSize)return console.warn(`Received size exceeds expected for ${G}: ${J}/${T.expectedSize}`),P;const tt=Math.min(100,J/T.expectedSize*100);return{...P,[G]:{...P[G],status:"downloading",progress:tt,received:J}}})}}else console.warn(`Unexpected ArrayBuffer from ${g}, no current receive state`)}}catch(T){console.error(`Error processing message from ${g}:`,T)}},un=(g,N,L)=>{if(et.current[N]){H.current[N]=H.current[N]||new Set,L==="start"?H.current[N].add(g):L==="end"&&H.current[N].delete(g);const T=H.current[N].size;$a(N,T)}};return Q.jsxs("div",{className:"container mx-auto left",children:[Q.jsxs(Q.Fragment,{children:[r&&Q.jsx(Q.Fragment,{children:m&&B>0&&!q&&Q.jsxs("p",{children:["Waiting for connection... ",B,"s"]})}),Q.jsx("h1",{className:"text-2xl font-bold mb-2 cursor-default",children:"Quick File Share"}),Yt&&Q.jsx("p",{className:"text-red-500 mb-2",children:Yt}),Q.jsx(x0,{code:r,isConnected:q,onCreateRoom:Mt,onJoinRoom:Ye})]}),r&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("p",{className:"text-lg",children:[j,"//",k,"/room/",Q.jsx("strong",{children:r||"N/A"})]}),Q.jsx("button",{className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500 ",onClick:kn,children:m?"Close Room":"Leave Room"}),"☻",Q.jsx("button",{onClick:()=>se("link"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:c==="link"?"Copied!":"Copy Link"}),Q.jsx("button",{onClick:()=>se("code"),className:"bg-stone-600 text-darkPurple px-4 py-2 rounded hover:bg-stone-500",disabled:!navigator.clipboard,children:c==="code"?"Copied!":"Copy Code"}),Q.jsxs("div",{className:"mb-4 fixed top-0 right-10 text-right",children:[Q.jsx("h2",{className:"text-xl font-bold text-right",children:"Connected Users:"}),Q.jsx("ul",{children:U.filter(g=>g!=null).map((g,N)=>Q.jsxs("li",{children:[V.id&&g===V.id?"(You)":""," ",g]},g||`user-${N}`))})]}),Q.jsx(N0,{textHistory:kt,setTextHistory:At,dataChannels:he,useFallback:D,socket:V,code:r}),Q.jsx(M0,{files:te,setFiles:K,dataChannels:he,dataChannelsRef:w,useFallback:D,socket:V,code:r,socketId:V.id,localFilesRef:et,downloadStates:ee,setDownloadStates:Ut,cancelDownload:$n,cancelRequestsRef:_t,downloadCounts:rt,handleDeleteFile:yi,SERVER_URL:td}),D&&Q.jsx("p",{className:"text-red-500",children:"Using server fallback"})]})]})}qm.createRoot(document.getElementById("root")).render(Q.jsx(it.StrictMode,{children:Q.jsx(U0,{})}));
