|
`+l[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=u);break}}}finally{xl=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?wt(e):""}function Oc(e){switch(e.tag){case 5:return wt(e.type);case 16:return wt("Lazy");case 13:return wt("Suspense");case 19:return wt("SuspenseList");case 0:case 2:case 15:return e=El(e.type,!1),e;case 11:return e=El(e.type.render,!1),e;case 1:return e=El(e.type,!0),e;default:return""}}function Jl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Un:return"Fragment";case Fn:return"Portal";case Xl:return"Profiler";case Yo:return"StrictMode";case Gl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case is:return(e.displayName||"Context")+".Consumer";case os:return(e._context.displayName||"Context")+".Provider";case Xo:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Go:return n=e.displayName||null,n!==null?n:Jl(e.type)||"Memo";case be:n=e._payload,e=e._init;try{return Jl(e(n))}catch{}}return null}function Mc(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Jl(n);case 8:return n===Yo?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ss(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Dc(e){var n=ss(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function lr(e){e._valueTracker||(e._valueTracker=Dc(e))}function as(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=ss(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function jr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ql(e,n){var t=n.checked;return W({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function $i(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=mn(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function cs(e,n){n=n.checked,n!=null&&Ko(e,"checked",n,!1)}function bl(e,n){cs(e,n);var t=mn(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?eo(e,n.type,t):n.hasOwnProperty("defaultValue")&&eo(e,n.type,mn(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Bi(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function eo(e,n,t){(n!=="number"||jr(e.ownerDocument)!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}var kt=Array.isArray;function Gn(e,n,t,r){if(e=e.options,n){n={};for(var l=0;l<t.length;l++)n["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=n.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&r&&(e[t].defaultSelected=!0)}else{for(t=""+mn(t),n=null,l=0;l<e.length;l++){if(e[l].value===t){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}n!==null||e[l].disabled||(n=e[l])}n!==null&&(n.selected=!0)}}function no(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(y(91));return W({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Vi(e,n){var t=n.value;if(t==null){if(t=n.children,n=n.defaultValue,t!=null){if(n!=null)throw Error(y(92));if(kt(t)){if(1<t.length)throw Error(y(93));t=t[0]}n=t}n==null&&(n=""),t=n}e._wrapperState={initialValue:mn(t)}}function fs(e,n){var t=mn(n.value),r=mn(n.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),n.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),r!=null&&(e.defaultValue=""+r)}function Wi(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function ds(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function to(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?ds(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var or,ps=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,t,r,l){MSApp.execUnsafeLocalFunction(function(){return e(n,t,r,l)})}:e}(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(or=or||document.createElement("div"),or.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ot(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}var Et={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ic=["Webkit","ms","Moz","O"];Object.keys(Et).forEach(function(e){Ic.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Et[n]=Et[e]})});function ms(e,n,t){return n==null||typeof n=="boolean"||n===""?"":t||typeof n!="number"||n===0||Et.hasOwnProperty(e)&&Et[e]?(""+n).trim():n+"px"}function hs(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=t.indexOf("--")===0,l=ms(t,n[t],r);t==="float"&&(t="cssFloat"),r?e.setProperty(t,l):e[t]=l}}var Fc=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ro(e,n){if(n){if(Fc[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(y(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(y(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(y(61))}if(n.style!=null&&typeof n.style!="object")throw Error(y(62))}}function lo(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oo=null;function Zo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var io=null,Zn=null,Jn=null;function Hi(e){if(e=qt(e)){if(typeof io!="function")throw Error(y(280));var n=e.stateNode;n&&(n=il(n),io(e.stateNode,e.type,n))}}function vs(e){Zn?Jn?Jn.push(e):Jn=[e]:Zn=e}function gs(){if(Zn){var e=Zn,n=Jn;if(Jn=Zn=null,Hi(e),n)for(e=0;e<n.length;e++)Hi(n[e])}}function ys(e,n){return e(n)}function ws(){}var Cl=!1;function ks(e,n,t){if(Cl)return e(n,t);Cl=!0;try{return ys(e,n,t)}finally{Cl=!1,(Zn!==null||Jn!==null)&&(ws(),gs())}}function Mt(e,n){var t=e.stateNode;if(t===null)return null;var r=il(t);if(r===null)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(y(231,n,typeof t));return t}var uo=!1;if(Qe)try{var dt={};Object.defineProperty(dt,"passive",{get:function(){uo=!0}}),window.addEventListener("test",dt,dt),window.removeEventListener("test",dt,dt)}catch{uo=!1}function Uc(e,n,t,r,l,o,i,u,s){var c=Array.prototype.slice.call(arguments,3);try{n.apply(t,c)}catch(m){this.onError(m)}}var Ct=!1,Rr=null,Or=!1,so=null,Ac={onError:function(e){Ct=!0,Rr=e}};function $c(e,n,t,r,l,o,i,u,s){Ct=!1,Rr=null,Uc.apply(Ac,arguments)}function Bc(e,n,t,r,l,o,i,u,s){if($c.apply(this,arguments),Ct){if(Ct){var c=Rr;Ct=!1,Rr=null}else throw Error(y(198));Or||(Or=!0,so=c)}}function Dn(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.flags&4098&&(t=n.return),e=n.return;while(e)}return n.tag===3?t:null}function Ss(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Qi(e){if(Dn(e)!==e)throw Error(y(188))}function Vc(e){var n=e.alternate;if(!n){if(n=Dn(e),n===null)throw Error(y(188));return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){t=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===t)return Qi(l),e;if(o===r)return Qi(l),n;o=o.sibling}throw Error(y(188))}if(t.return!==r.return)t=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=o;break}if(u===r){i=!0,r=l,t=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===t){i=!0,t=o,r=l;break}if(u===r){i=!0,r=o,t=l;break}u=u.sibling}if(!i)throw Error(y(189))}}if(t.alternate!==r)throw Error(y(190))}if(t.tag!==3)throw Error(y(188));return t.stateNode.current===t?e:n}function xs(e){return e=Vc(e),e!==null?Es(e):null}function Es(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Es(e);if(n!==null)return n;e=e.sibling}return null}var Cs=we.unstable_scheduleCallback,Ki=we.unstable_cancelCallback,Wc=we.unstable_shouldYield,Hc=we.unstable_requestPaint,K=we.unstable_now,Qc=we.unstable_getCurrentPriorityLevel,Jo=we.unstable_ImmediatePriority,_s=we.unstable_UserBlockingPriority,Mr=we.unstable_NormalPriority,Kc=we.unstable_LowPriority,Ns=we.unstable_IdlePriority,tl=null,Ue=null;function Yc(e){if(Ue&&typeof Ue.onCommitFiberRoot=="function")try{Ue.onCommitFiberRoot(tl,e,void 0,(e.current.flags&128)===128)}catch{}}var Re=Math.clz32?Math.clz32:Zc,Xc=Math.log,Gc=Math.LN2;function Zc(e){return e>>>=0,e===0?32:31-(Xc(e)/Gc|0)|0}var ir=64,ur=4194304;function St(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Dr(e,n){var t=e.pendingLanes;if(t===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=t&268435455;if(i!==0){var u=i&~l;u!==0?r=St(u):(o&=i,o!==0&&(r=St(o)))}else i=t&~l,i!==0?r=St(i):o!==0&&(r=St(o));if(r===0)return 0;if(n!==0&&n!==r&&!(n&l)&&(l=r&-r,o=n&-n,l>=o||l===16&&(o&4194240)!==0))return n;if(r&4&&(r|=t&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=r;0<n;)t=31-Re(n),l=1<<t,r|=e[t],n&=~l;return r}function Jc(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qc(e,n){for(var t=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-Re(o),u=1<<i,s=l[i];s===-1?(!(u&t)||u&r)&&(l[i]=Jc(u,n)):s<=n&&(e.expiredLanes|=u),o&=~u}}function ao(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ps(){var e=ir;return ir<<=1,!(ir&4194240)&&(ir=64),e}function _l(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function Zt(e,n,t){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Re(n),e[n]=t}function bc(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<t;){var l=31-Re(t),o=1<<l;n[l]=0,r[l]=-1,e[l]=-1,t&=~o}}function qo(e,n){var t=e.entangledLanes|=n;for(e=e.entanglements;t;){var r=31-Re(t),l=1<<r;l&n|e[r]&n&&(e[r]|=n),t&=~l}}var I=0;function zs(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ls,bo,Ts,js,Rs,co=!1,sr=[],on=null,un=null,sn=null,Dt=new Map,It=new Map,nn=[],ef="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Yi(e,n){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":un=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":Dt.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(n.pointerId)}}function pt(e,n,t,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:n,domEventName:t,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},n!==null&&(n=qt(n),n!==null&&bo(n)),e):(e.eventSystemFlags|=r,n=e.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),e)}function nf(e,n,t,r,l){switch(n){case"focusin":return on=pt(on,e,n,t,r,l),!0;case"dragenter":return un=pt(un,e,n,t,r,l),!0;case"mouseover":return sn=pt(sn,e,n,t,r,l),!0;case"pointerover":var o=l.pointerId;return Dt.set(o,pt(Dt.get(o)||null,e,n,t,r,l)),!0;case"gotpointercapture":return o=l.pointerId,It.set(o,pt(It.get(o)||null,e,n,t,r,l)),!0}return!1}function Os(e){var n=Cn(e.target);if(n!==null){var t=Dn(n);if(t!==null){if(n=t.tag,n===13){if(n=Ss(t),n!==null){e.blockedOn=n,Rs(e.priority,function(){Ts(t)});return}}else if(n===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Sr(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var t=fo(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(t===null){t=e.nativeEvent;var r=new t.constructor(t.type,t);oo=r,t.target.dispatchEvent(r),oo=null}else return n=qt(t),n!==null&&bo(n),e.blockedOn=t,!1;n.shift()}return!0}function Xi(e,n,t){Sr(e)&&t.delete(n)}function tf(){co=!1,on!==null&&Sr(on)&&(on=null),un!==null&&Sr(un)&&(un=null),sn!==null&&Sr(sn)&&(sn=null),Dt.forEach(Xi),It.forEach(Xi)}function mt(e,n){e.blockedOn===n&&(e.blockedOn=null,co||(co=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,tf)))}function Ft(e){function n(l){return mt(l,e)}if(0<sr.length){mt(sr[0],e);for(var t=1;t<sr.length;t++){var r=sr[t];r.blockedOn===e&&(r.blockedOn=null)}}for(on!==null&&mt(on,e),un!==null&&mt(un,e),sn!==null&&mt(sn,e),Dt.forEach(n),It.forEach(n),t=0;t<nn.length;t++)r=nn[t],r.blockedOn===e&&(r.blockedOn=null);for(;0<nn.length&&(t=nn[0],t.blockedOn===null);)Os(t),t.blockedOn===null&&nn.shift()}var qn=Ge.ReactCurrentBatchConfig,Ir=!0;function rf(e,n,t,r){var l=I,o=qn.transition;qn.transition=null;try{I=1,ei(e,n,t,r)}finally{I=l,qn.transition=o}}function lf(e,n,t,r){var l=I,o=qn.transition;qn.transition=null;try{I=4,ei(e,n,t,r)}finally{I=l,qn.transition=o}}function ei(e,n,t,r){if(Ir){var l=fo(e,n,t,r);if(l===null)Dl(e,n,r,Fr,t),Yi(e,r);else if(nf(l,e,n,t,r))r.stopPropagation();else if(Yi(e,r),n&4&&-1<ef.indexOf(e)){for(;l!==null;){var o=qt(l);if(o!==null&&Ls(o),o=fo(e,n,t,r),o===null&&Dl(e,n,r,Fr,t),o===l)break;l=o}l!==null&&r.stopPropagation()}else Dl(e,n,r,null,t)}}var Fr=null;function fo(e,n,t,r){if(Fr=null,e=Zo(r),e=Cn(e),e!==null)if(n=Dn(e),n===null)e=null;else if(t=n.tag,t===13){if(e=Ss(n),e!==null)return e;e=null}else if(t===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Fr=e,null}function Ms(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qc()){case Jo:return 1;case _s:return 4;case Mr:case Kc:return 16;case Ns:return 536870912;default:return 16}default:return 16}}var rn=null,ni=null,xr=null;function Ds(){if(xr)return xr;var e,n=ni,t=n.length,r,l="value"in rn?rn.value:rn.textContent,o=l.length;for(e=0;e<t&&n[e]===l[e];e++);var i=t-e;for(r=1;r<=i&&n[t-r]===l[o-r];r++);return xr=l.slice(e,1<r?1-r:void 0)}function Er(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function ar(){return!0}function Gi(){return!1}function Se(e){function n(t,r,l,o,i){this._reactName=t,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var u in e)e.hasOwnProperty(u)&&(t=e[u],this[u]=t?t(o):o[u]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ar:Gi,this.isPropagationStopped=Gi,this}return W(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=ar)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),n}var at={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ti=Se(at),Jt=W({},at,{view:0,detail:0}),of=Se(Jt),Nl,Pl,ht,rl=W({},Jt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ri,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ht&&(ht&&e.type==="mousemove"?(Nl=e.screenX-ht.screenX,Pl=e.screenY-ht.screenY):Pl=Nl=0,ht=e),Nl)},movementY:function(e){return"movementY"in e?e.movementY:Pl}}),Zi=Se(rl),uf=W({},rl,{dataTransfer:0}),sf=Se(uf),af=W({},Jt,{relatedTarget:0}),zl=Se(af),cf=W({},at,{animationName:0,elapsedTime:0,pseudoElement:0}),ff=Se(cf),df=W({},at,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pf=Se(df),mf=W({},at,{data:0}),Ji=Se(mf),hf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vf={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"},gf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yf(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=gf[e])?!!n[e]:!1}function ri(){return yf}var wf=W({},Jt,{key:function(e){if(e.key){var n=hf[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Er(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ri,charCode:function(e){return e.type==="keypress"?Er(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Er(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kf=Se(wf),Sf=W({},rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qi=Se(Sf),xf=W({},Jt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ri}),Ef=Se(xf),Cf=W({},at,{propertyName:0,elapsedTime:0,pseudoElement:0}),_f=Se(Cf),Nf=W({},rl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pf=Se(Nf),zf=[9,13,27,32],li=Qe&&"CompositionEvent"in window,_t=null;Qe&&"documentMode"in document&&(_t=document.documentMode);var Lf=Qe&&"TextEvent"in window&&!_t,Is=Qe&&(!li||_t&&8<_t&&11>=_t),bi=" ",eu=!1;function Fs(e,n){switch(e){case"keyup":return zf.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Us(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var An=!1;function Tf(e,n){switch(e){case"compositionend":return Us(n);case"keypress":return n.which!==32?null:(eu=!0,bi);case"textInput":return e=n.data,e===bi&&eu?null:e;default:return null}}function jf(e,n){if(An)return e==="compositionend"||!li&&Fs(e,n)?(e=Ds(),xr=ni=rn=null,An=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Is&&n.locale!=="ko"?null:n.data;default:return null}}var Rf={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 nu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Rf[e.type]:n==="textarea"}function As(e,n,t,r){vs(r),n=Ur(n,"onChange"),0<n.length&&(t=new ti("onChange","change",null,t,r),e.push({event:t,listeners:n}))}var Nt=null,Ut=null;function Of(e){Zs(e,0)}function ll(e){var n=Vn(e);if(as(n))return e}function Mf(e,n){if(e==="change")return n}var $s=!1;if(Qe){var Ll;if(Qe){var Tl="oninput"in document;if(!Tl){var tu=document.createElement("div");tu.setAttribute("oninput","return;"),Tl=typeof tu.oninput=="function"}Ll=Tl}else Ll=!1;$s=Ll&&(!document.documentMode||9<document.documentMode)}function ru(){Nt&&(Nt.detachEvent("onpropertychange",Bs),Ut=Nt=null)}function Bs(e){if(e.propertyName==="value"&&ll(Ut)){var n=[];As(n,Ut,e,Zo(e)),ks(Of,n)}}function Df(e,n,t){e==="focusin"?(ru(),Nt=n,Ut=t,Nt.attachEvent("onpropertychange",Bs)):e==="focusout"&&ru()}function If(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ll(Ut)}function Ff(e,n){if(e==="click")return ll(n)}function Uf(e,n){if(e==="input"||e==="change")return ll(n)}function Af(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Me=typeof Object.is=="function"?Object.is:Af;function At(e,n){if(Me(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var l=t[r];if(!Yl.call(n,l)||!Me(e[l],n[l]))return!1}return!0}function lu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ou(e,n){var t=lu(e);e=0;for(var r;t;){if(t.nodeType===3){if(r=e+t.textContent.length,e<=n&&r>=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=lu(t)}}function Vs(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Vs(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Ws(){for(var e=window,n=jr();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=jr(e.document)}return n}function oi(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function $f(e){var n=Ws(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Vs(t.ownerDocument.documentElement,t)){if(r!==null&&oi(t)){if(n=r.start,e=r.end,e===void 0&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=ou(t,o);var i=ou(t,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(n),e.extend(i.node,i.offset)):(n.setEnd(i.node,i.offset),e.addRange(n)))}}for(n=[],e=t;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<n.length;t++)e=n[t],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bf=Qe&&"documentMode"in document&&11>=document.documentMode,$n=null,po=null,Pt=null,mo=!1;function iu(e,n,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;mo||$n==null||$n!==jr(r)||(r=$n,"selectionStart"in r&&oi(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Pt&&At(Pt,r)||(Pt=r,r=Ur(po,"onSelect"),0<r.length&&(n=new ti("onSelect","select",null,n,t),e.push({event:n,listeners:r}),n.target=$n)))}function cr(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Bn={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionend:cr("Transition","TransitionEnd")},jl={},Hs={};Qe&&(Hs=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 ol(e){if(jl[e])return jl[e];if(!Bn[e])return e;var n=Bn[e],t;for(t in n)if(n.hasOwnProperty(t)&&t in Hs)return jl[e]=n[t];return e}var Qs=ol("animationend"),Ks=ol("animationiteration"),Ys=ol("animationstart"),Xs=ol("transitionend"),Gs=new Map,uu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vn(e,n){Gs.set(e,n),Mn(n,[e])}for(var Rl=0;Rl<uu.length;Rl++){var Ol=uu[Rl],Vf=Ol.toLowerCase(),Wf=Ol[0].toUpperCase()+Ol.slice(1);vn(Vf,"on"+Wf)}vn(Qs,"onAnimationEnd");vn(Ks,"onAnimationIteration");vn(Ys,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(Xs,"onTransitionEnd");nt("onMouseEnter",["mouseout","mouseover"]);nt("onMouseLeave",["mouseout","mouseover"]);nt("onPointerEnter",["pointerout","pointerover"]);nt("onPointerLeave",["pointerout","pointerover"]);Mn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xt="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(" "),Hf=new Set("cancel close invalid load scroll toggle".split(" ").concat(xt));function su(e,n,t){var r=e.type||"unknown-event";e.currentTarget=t,Bc(r,n,void 0,e),e.currentTarget=null}function Zs(e,n){n=(n&4)!==0;for(var t=0;t<e.length;t++){var r=e[t],l=r.event;r=r.listeners;e:{var o=void 0;if(n)for(var i=r.length-1;0<=i;i--){var u=r[i],s=u.instance,c=u.currentTarget;if(u=u.listener,s!==o&&l.isPropagationStopped())break e;su(l,u,c),o=s}else for(i=0;i<r.length;i++){if(u=r[i],s=u.instance,c=u.currentTarget,u=u.listener,s!==o&&l.isPropagationStopped())break e;su(l,u,c),o=s}}}if(Or)throw e=so,Or=!1,so=null,e}function U(e,n){var t=n[wo];t===void 0&&(t=n[wo]=new Set);var r=e+"__bubble";t.has(r)||(Js(n,e,2,!1),t.add(r))}function Ml(e,n,t){var r=0;n&&(r|=4),Js(t,e,r,n)}var fr="_reactListening"+Math.random().toString(36).slice(2);function $t(e){if(!e[fr]){e[fr]=!0,ls.forEach(function(t){t!=="selectionchange"&&(Hf.has(t)||Ml(t,!1,e),Ml(t,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[fr]||(n[fr]=!0,Ml("selectionchange",!1,n))}}function Js(e,n,t,r){switch(Ms(n)){case 1:var l=rf;break;case 4:l=lf;break;default:l=ei}t=l.bind(null,n,t,e),l=void 0,!uo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(n,t,{capture:!0,passive:l}):e.addEventListener(n,t,!0):l!==void 0?e.addEventListener(n,t,{passive:l}):e.addEventListener(n,t,!1)}function Dl(e,n,t,r,l){var o=r;if(!(n&1)&&!(n&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var u=r.stateNode.containerInfo;if(u===l||u.nodeType===8&&u.parentNode===l)break;if(i===4)for(i=r.return;i!==null;){var s=i.tag;if((s===3||s===4)&&(s=i.stateNode.containerInfo,s===l||s.nodeType===8&&s.parentNode===l))return;i=i.return}for(;u!==null;){if(i=Cn(u),i===null)return;if(s=i.tag,s===5||s===6){r=o=i;continue e}u=u.parentNode}}r=r.return}ks(function(){var c=o,m=Zo(t),h=[];e:{var p=Gs.get(e);if(p!==void 0){var w=ti,k=e;switch(e){case"keypress":if(Er(t)===0)break e;case"keydown":case"keyup":w=kf;break;case"focusin":k="focus",w=zl;break;case"focusout":k="blur",w=zl;break;case"beforeblur":case"afterblur":w=zl;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":w=Zi;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=sf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Ef;break;case Qs:case Ks:case Ys:w=ff;break;case Xs:w=_f;break;case"scroll":w=of;break;case"wheel":w=Pf;break;case"copy":case"cut":case"paste":w=pf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=qi}var x=(n&4)!==0,D=!x&&e==="scroll",f=x?p!==null?p+"Capture":null:p;x=[];for(var a=c,d;a!==null;){d=a;var g=d.stateNode;if(d.tag===5&&g!==null&&(d=g,f!==null&&(g=Mt(a,f),g!=null&&x.push(Bt(a,g,d)))),D)break;a=a.return}0<x.length&&(p=new w(p,k,null,t,m),h.push({event:p,listeners:x}))}}if(!(n&7)){e:{if(p=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",p&&t!==oo&&(k=t.relatedTarget||t.fromElement)&&(Cn(k)||k[Ke]))break e;if((w||p)&&(p=m.window===m?m:(p=m.ownerDocument)?p.defaultView||p.parentWindow:window,w?(k=t.relatedTarget||t.toElement,w=c,k=k?Cn(k):null,k!==null&&(D=Dn(k),k!==D||k.tag!==5&&k.tag!==6)&&(k=null)):(w=null,k=c),w!==k)){if(x=Zi,g="onMouseLeave",f="onMouseEnter",a="mouse",(e==="pointerout"||e==="pointerover")&&(x=qi,g="onPointerLeave",f="onPointerEnter",a="pointer"),D=w==null?p:Vn(w),d=k==null?p:Vn(k),p=new x(g,a+"leave",w,t,m),p.target=D,p.relatedTarget=d,g=null,Cn(m)===c&&(x=new x(f,a+"enter",k,t,m),x.target=d,x.relatedTarget=D,g=x),D=g,w&&k)n:{for(x=w,f=k,a=0,d=x;d;d=In(d))a++;for(d=0,g=f;g;g=In(g))d++;for(;0<a-d;)x=In(x),a--;for(;0<d-a;)f=In(f),d--;for(;a--;){if(x===f||f!==null&&x===f.alternate)break n;x=In(x),f=In(f)}x=null}else x=null;w!==null&&au(h,p,w,x,!1),k!==null&&D!==null&&au(h,D,k,x,!0)}}e:{if(p=c?Vn(c):window,w=p.nodeName&&p.nodeName.toLowerCase(),w==="select"||w==="input"&&p.type==="file")var E=Mf;else if(nu(p))if($s)E=Uf;else{E=If;var P=Df}else(w=p.nodeName)&&w.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(E=Ff);if(E&&(E=E(e,c))){As(h,E,t,m);break e}P&&P(e,p,c),e==="focusout"&&(P=p._wrapperState)&&P.controlled&&p.type==="number"&&eo(p,"number",p.value)}switch(P=c?Vn(c):window,e){case"focusin":(nu(P)||P.contentEditable==="true")&&($n=P,po=c,Pt=null);break;case"focusout":Pt=po=$n=null;break;case"mousedown":mo=!0;break;case"contextmenu":case"mouseup":case"dragend":mo=!1,iu(h,t,m);break;case"selectionchange":if(Bf)break;case"keydown":case"keyup":iu(h,t,m)}var v;if(li)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else An?Fs(e,t)&&(S="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(S="onCompositionStart");S&&(Is&&t.locale!=="ko"&&(An||S!=="onCompositionStart"?S==="onCompositionEnd"&&An&&(v=Ds()):(rn=m,ni="value"in rn?rn.value:rn.textContent,An=!0)),P=Ur(c,S),0<P.length&&(S=new Ji(S,e,null,t,m),h.push({event:S,listeners:P}),v?S.data=v:(v=Us(t),v!==null&&(S.data=v)))),(v=Lf?Tf(e,t):jf(e,t))&&(c=Ur(c,"onBeforeInput"),0<c.length&&(m=new Ji("onBeforeInput","beforeinput",null,t,m),h.push({event:m,listeners:c}),m.data=v))}Zs(h,n)})}function Bt(e,n,t){return{instance:e,listener:n,currentTarget:t}}function Ur(e,n){for(var t=n+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=Mt(e,t),o!=null&&r.unshift(Bt(e,o,l)),o=Mt(e,n),o!=null&&r.push(Bt(e,o,l))),e=e.return}return r}function In(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function au(e,n,t,r,l){for(var o=n._reactName,i=[];t!==null&&t!==r;){var u=t,s=u.alternate,c=u.stateNode;if(s!==null&&s===r)break;u.tag===5&&c!==null&&(u=c,l?(s=Mt(t,o),s!=null&&i.unshift(Bt(t,s,u))):l||(s=Mt(t,o),s!=null&&i.push(Bt(t,s,u)))),t=t.return}i.length!==0&&e.push({event:n,listeners:i})}var Qf=/\r\n?/g,Kf=/\u0000|\uFFFD/g;function cu(e){return(typeof e=="string"?e:""+e).replace(Qf,` |
|
`).replace(Kf,"")}function dr(e,n,t){if(n=cu(n),cu(e)!==n&&t)throw Error(y(425))}function Ar(){}var ho=null,vo=null;function go(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var yo=typeof setTimeout=="function"?setTimeout:void 0,Yf=typeof clearTimeout=="function"?clearTimeout:void 0,fu=typeof Promise=="function"?Promise:void 0,Xf=typeof queueMicrotask=="function"?queueMicrotask:typeof fu<"u"?function(e){return fu.resolve(null).then(e).catch(Gf)}:yo;function Gf(e){setTimeout(function(){throw e})}function Il(e,n){var t=n,r=0;do{var l=t.nextSibling;if(e.removeChild(t),l&&l.nodeType===8)if(t=l.data,t==="/$"){if(r===0){e.removeChild(l),Ft(n);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=l}while(t);Ft(n)}function an(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function du(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(n===0)return e;n--}else t==="/$"&&n++}e=e.previousSibling}return null}var ct=Math.random().toString(36).slice(2),Fe="__reactFiber$"+ct,Vt="__reactProps$"+ct,Ke="__reactContainer$"+ct,wo="__reactEvents$"+ct,Zf="__reactListeners$"+ct,Jf="__reactHandles$"+ct;function Cn(e){var n=e[Fe];if(n)return n;for(var t=e.parentNode;t;){if(n=t[Ke]||t[Fe]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=du(e);e!==null;){if(t=e[Fe])return t;e=du(e)}return n}e=t,t=e.parentNode}return null}function qt(e){return e=e[Fe]||e[Ke],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(y(33))}function il(e){return e[Vt]||null}var ko=[],Wn=-1;function gn(e){return{current:e}}function A(e){0>Wn||(e.current=ko[Wn],ko[Wn]=null,Wn--)}function F(e,n){Wn++,ko[Wn]=e.current,e.current=n}var hn={},oe=gn(hn),de=gn(!1),Ln=hn;function tt(e,n){var t=e.type.contextTypes;if(!t)return hn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in t)l[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function pe(e){return e=e.childContextTypes,e!=null}function $r(){A(de),A(oe)}function pu(e,n,t){if(oe.current!==hn)throw Error(y(168));F(oe,n),F(de,t)}function qs(e,n,t){var r=e.stateNode;if(n=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(y(108,Mc(e)||"Unknown",l));return W({},t,r)}function Br(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Ln=oe.current,F(oe,e),F(de,de.current),!0}function mu(e,n,t){var r=e.stateNode;if(!r)throw Error(y(169));t?(e=qs(e,n,Ln),r.__reactInternalMemoizedMergedChildContext=e,A(de),A(oe),F(oe,e)):A(de),F(de,t)}var Be=null,ul=!1,Fl=!1;function bs(e){Be===null?Be=[e]:Be.push(e)}function qf(e){ul=!0,bs(e)}function yn(){if(!Fl&&Be!==null){Fl=!0;var e=0,n=I;try{var t=Be;for(I=1;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}Be=null,ul=!1}catch(l){throw Be!==null&&(Be=Be.slice(e+1)),Cs(Jo,yn),l}finally{I=n,Fl=!1}}return null}var Hn=[],Qn=0,Vr=null,Wr=0,xe=[],Ee=0,Tn=null,Ve=1,We="";function xn(e,n){Hn[Qn++]=Wr,Hn[Qn++]=Vr,Vr=e,Wr=n}function ea(e,n,t){xe[Ee++]=Ve,xe[Ee++]=We,xe[Ee++]=Tn,Tn=e;var r=Ve;e=We;var l=32-Re(r)-1;r&=~(1<<l),t+=1;var o=32-Re(n)+l;if(30<o){var i=l-l%5;o=(r&(1<<i)-1).toString(32),r>>=i,l-=i,Ve=1<<32-Re(n)+l|t<<l|r,We=o+e}else Ve=1<<o|t<<l|r,We=e}function ii(e){e.return!==null&&(xn(e,1),ea(e,1,0))}function ui(e){for(;e===Vr;)Vr=Hn[--Qn],Hn[Qn]=null,Wr=Hn[--Qn],Hn[Qn]=null;for(;e===Tn;)Tn=xe[--Ee],xe[Ee]=null,We=xe[--Ee],xe[Ee]=null,Ve=xe[--Ee],xe[Ee]=null}var ye=null,ge=null,$=!1,je=null;function na(e,n){var t=Ce(5,null,null,0);t.elementType="DELETED",t.stateNode=n,t.return=e,n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)}function hu(e,n){switch(e.tag){case 5:var t=e.type;return n=n.nodeType!==1||t.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,ye=e,ge=an(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,ye=e,ge=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(t=Tn!==null?{id:Ve,overflow:We}:null,e.memoizedState={dehydrated:n,treeContext:t,retryLane:1073741824},t=Ce(18,null,null,0),t.stateNode=n,t.return=e,e.child=t,ye=e,ge=null,!0):!1;default:return!1}}function So(e){return(e.mode&1)!==0&&(e.flags&128)===0}function xo(e){if($){var n=ge;if(n){var t=n;if(!hu(e,n)){if(So(e))throw Error(y(418));n=an(t.nextSibling);var r=ye;n&&hu(e,n)?na(r,t):(e.flags=e.flags&-4097|2,$=!1,ye=e)}}else{if(So(e))throw Error(y(418));e.flags=e.flags&-4097|2,$=!1,ye=e}}}function vu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ye=e}function pr(e){if(e!==ye)return!1;if(!$)return vu(e),$=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!go(e.type,e.memoizedProps)),n&&(n=ge)){if(So(e))throw ta(),Error(y(418));for(;n;)na(e,n),n=an(n.nextSibling)}if(vu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(y(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var t=e.data;if(t==="/$"){if(n===0){ge=an(e.nextSibling);break e}n--}else t!=="$"&&t!=="$!"&&t!=="$?"||n++}e=e.nextSibling}ge=null}}else ge=ye?an(e.stateNode.nextSibling):null;return!0}function ta(){for(var e=ge;e;)e=an(e.nextSibling)}function rt(){ge=ye=null,$=!1}function si(e){je===null?je=[e]:je.push(e)}var bf=Ge.ReactCurrentBatchConfig;function vt(e,n,t){if(e=t.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(y(309));var r=t.stateNode}if(!r)throw Error(y(147,e));var l=r,o=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===o?n.ref:(n=function(i){var u=l.refs;i===null?delete u[o]:u[o]=i},n._stringRef=o,n)}if(typeof e!="string")throw Error(y(284));if(!t._owner)throw Error(y(290,e))}return e}function mr(e,n){throw e=Object.prototype.toString.call(n),Error(y(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function gu(e){var n=e._init;return n(e._payload)}function ra(e){function n(f,a){if(e){var d=f.deletions;d===null?(f.deletions=[a],f.flags|=16):d.push(a)}}function t(f,a){if(!e)return null;for(;a!==null;)n(f,a),a=a.sibling;return null}function r(f,a){for(f=new Map;a!==null;)a.key!==null?f.set(a.key,a):f.set(a.index,a),a=a.sibling;return f}function l(f,a){return f=pn(f,a),f.index=0,f.sibling=null,f}function o(f,a,d){return f.index=d,e?(d=f.alternate,d!==null?(d=d.index,d<a?(f.flags|=2,a):d):(f.flags|=2,a)):(f.flags|=1048576,a)}function i(f){return e&&f.alternate===null&&(f.flags|=2),f}function u(f,a,d,g){return a===null||a.tag!==6?(a=Hl(d,f.mode,g),a.return=f,a):(a=l(a,d),a.return=f,a)}function s(f,a,d,g){var E=d.type;return E===Un?m(f,a,d.props.children,g,d.key):a!==null&&(a.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===be&&gu(E)===a.type)?(g=l(a,d.props),g.ref=vt(f,a,d),g.return=f,g):(g=Tr(d.type,d.key,d.props,null,f.mode,g),g.ref=vt(f,a,d),g.return=f,g)}function c(f,a,d,g){return a===null||a.tag!==4||a.stateNode.containerInfo!==d.containerInfo||a.stateNode.implementation!==d.implementation?(a=Ql(d,f.mode,g),a.return=f,a):(a=l(a,d.children||[]),a.return=f,a)}function m(f,a,d,g,E){return a===null||a.tag!==7?(a=zn(d,f.mode,g,E),a.return=f,a):(a=l(a,d),a.return=f,a)}function h(f,a,d){if(typeof a=="string"&&a!==""||typeof a=="number")return a=Hl(""+a,f.mode,d),a.return=f,a;if(typeof a=="object"&&a!==null){switch(a.$$typeof){case rr:return d=Tr(a.type,a.key,a.props,null,f.mode,d),d.ref=vt(f,null,a),d.return=f,d;case Fn:return a=Ql(a,f.mode,d),a.return=f,a;case be:var g=a._init;return h(f,g(a._payload),d)}if(kt(a)||ft(a))return a=zn(a,f.mode,d,null),a.return=f,a;mr(f,a)}return null}function p(f,a,d,g){var E=a!==null?a.key:null;if(typeof d=="string"&&d!==""||typeof d=="number")return E!==null?null:u(f,a,""+d,g);if(typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:return d.key===E?s(f,a,d,g):null;case Fn:return d.key===E?c(f,a,d,g):null;case be:return E=d._init,p(f,a,E(d._payload),g)}if(kt(d)||ft(d))return E!==null?null:m(f,a,d,g,null);mr(f,d)}return null}function w(f,a,d,g,E){if(typeof g=="string"&&g!==""||typeof g=="number")return f=f.get(d)||null,u(a,f,""+g,E);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case rr:return f=f.get(g.key===null?d:g.key)||null,s(a,f,g,E);case Fn:return f=f.get(g.key===null?d:g.key)||null,c(a,f,g,E);case be:var P=g._init;return w(f,a,d,P(g._payload),E)}if(kt(g)||ft(g))return f=f.get(d)||null,m(a,f,g,E,null);mr(a,g)}return null}function k(f,a,d,g){for(var E=null,P=null,v=a,S=a=0,L=null;v!==null&&S<d.length;S++){v.index>S?(L=v,v=null):L=v.sibling;var z=p(f,v,d[S],g);if(z===null){v===null&&(v=L);break}e&&v&&z.alternate===null&&n(f,v),a=o(z,a,S),P===null?E=z:P.sibling=z,P=z,v=L}if(S===d.length)return t(f,v),$&&xn(f,S),E;if(v===null){for(;S<d.length;S++)v=h(f,d[S],g),v!==null&&(a=o(v,a,S),P===null?E=v:P.sibling=v,P=v);return $&&xn(f,S),E}for(v=r(f,v);S<d.length;S++)L=w(v,f,S,d[S],g),L!==null&&(e&&L.alternate!==null&&v.delete(L.key===null?S:L.key),a=o(L,a,S),P===null?E=L:P.sibling=L,P=L);return e&&v.forEach(function(he){return n(f,he)}),$&&xn(f,S),E}function x(f,a,d,g){var E=ft(d);if(typeof E!="function")throw Error(y(150));if(d=E.call(d),d==null)throw Error(y(151));for(var P=E=null,v=a,S=a=0,L=null,z=d.next();v!==null&&!z.done;S++,z=d.next()){v.index>S?(L=v,v=null):L=v.sibling;var he=p(f,v,z.value,g);if(he===null){v===null&&(v=L);break}e&&v&&he.alternate===null&&n(f,v),a=o(he,a,S),P===null?E=he:P.sibling=he,P=he,v=L}if(z.done)return t(f,v),$&&xn(f,S),E;if(v===null){for(;!z.done;S++,z=d.next())z=h(f,z.value,g),z!==null&&(a=o(z,a,S),P===null?E=z:P.sibling=z,P=z);return $&&xn(f,S),E}for(v=r(f,v);!z.done;S++,z=d.next())z=w(v,f,S,z.value,g),z!==null&&(e&&z.alternate!==null&&v.delete(z.key===null?S:z.key),a=o(z,a,S),P===null?E=z:P.sibling=z,P=z);return e&&v.forEach(function(Ze){return n(f,Ze)}),$&&xn(f,S),E}function D(f,a,d,g){if(typeof d=="object"&&d!==null&&d.type===Un&&d.key===null&&(d=d.props.children),typeof d=="object"&&d!==null){switch(d.$$typeof){case rr:e:{for(var E=d.key,P=a;P!==null;){if(P.key===E){if(E=d.type,E===Un){if(P.tag===7){t(f,P.sibling),a=l(P,d.props.children),a.return=f,f=a;break e}}else if(P.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===be&&gu(E)===P.type){t(f,P.sibling),a=l(P,d.props),a.ref=vt(f,P,d),a.return=f,f=a;break e}t(f,P);break}else n(f,P);P=P.sibling}d.type===Un?(a=zn(d.props.children,f.mode,g,d.key),a.return=f,f=a):(g=Tr(d.type,d.key,d.props,null,f.mode,g),g.ref=vt(f,a,d),g.return=f,f=g)}return i(f);case Fn:e:{for(P=d.key;a!==null;){if(a.key===P)if(a.tag===4&&a.stateNode.containerInfo===d.containerInfo&&a.stateNode.implementation===d.implementation){t(f,a.sibling),a=l(a,d.children||[]),a.return=f,f=a;break e}else{t(f,a);break}else n(f,a);a=a.sibling}a=Ql(d,f.mode,g),a.return=f,f=a}return i(f);case be:return P=d._init,D(f,a,P(d._payload),g)}if(kt(d))return k(f,a,d,g);if(ft(d))return x(f,a,d,g);mr(f,d)}return typeof d=="string"&&d!==""||typeof d=="number"?(d=""+d,a!==null&&a.tag===6?(t(f,a.sibling),a=l(a,d),a.return=f,f=a):(t(f,a),a=Hl(d,f.mode,g),a.return=f,f=a),i(f)):t(f,a)}return D}var lt=ra(!0),la=ra(!1),Hr=gn(null),Qr=null,Kn=null,ai=null;function ci(){ai=Kn=Qr=null}function fi(e){var n=Hr.current;A(Hr),e._currentValue=n}function Eo(e,n,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,r!==null&&(r.childLanes|=n)):r!==null&&(r.childLanes&n)!==n&&(r.childLanes|=n),e===t)break;e=e.return}}function bn(e,n){Qr=e,ai=Kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&n&&(fe=!0),e.firstContext=null)}function Ne(e){var n=e._currentValue;if(ai!==e)if(e={context:e,memoizedValue:n,next:null},Kn===null){if(Qr===null)throw Error(y(308));Kn=e,Qr.dependencies={lanes:0,firstContext:e}}else Kn=Kn.next=e;return n}var _n=null;function di(e){_n===null?_n=[e]:_n.push(e)}function oa(e,n,t,r){var l=n.interleaved;return l===null?(t.next=t,di(n)):(t.next=l.next,l.next=t),n.interleaved=t,Ye(e,r)}function Ye(e,n){e.lanes|=n;var t=e.alternate;for(t!==null&&(t.lanes|=n),t=e,e=e.return;e!==null;)e.childLanes|=n,t=e.alternate,t!==null&&(t.childLanes|=n),t=e,e=e.return;return t.tag===3?t.stateNode:null}var en=!1;function pi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ia(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function He(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function cn(e,n,t){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,O&2){var l=r.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),r.pending=n,Ye(e,t)}return l=r.interleaved,l===null?(n.next=n,di(r)):(n.next=l.next,l.next=n),r.interleaved=n,Ye(e,t)}function Cr(e,n,t){if(n=n.updateQueue,n!==null&&(n=n.shared,(t&4194240)!==0)){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qo(e,t)}}function yu(e,n){var t=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var l=null,o=null;if(t=t.firstBaseUpdate,t!==null){do{var i={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};o===null?l=o=i:o=o.next=i,t=t.next}while(t!==null);o===null?l=o=n:o=o.next=n}else l=o=n;t={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=n:e.next=n,t.lastBaseUpdate=n}function Kr(e,n,t,r){var l=e.updateQueue;en=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,u=l.shared.pending;if(u!==null){l.shared.pending=null;var s=u,c=s.next;s.next=null,i===null?o=c:i.next=c,i=s;var m=e.alternate;m!==null&&(m=m.updateQueue,u=m.lastBaseUpdate,u!==i&&(u===null?m.firstBaseUpdate=c:u.next=c,m.lastBaseUpdate=s))}if(o!==null){var h=l.baseState;i=0,m=c=s=null,u=o;do{var p=u.lane,w=u.eventTime;if((r&p)===p){m!==null&&(m=m.next={eventTime:w,lane:0,tag:u.tag,payload:u.payload,callback:u.callback,next:null});e:{var k=e,x=u;switch(p=n,w=t,x.tag){case 1:if(k=x.payload,typeof k=="function"){h=k.call(w,h,p);break e}h=k;break e;case 3:k.flags=k.flags&-65537|128;case 0:if(k=x.payload,p=typeof k=="function"?k.call(w,h,p):k,p==null)break e;h=W({},h,p);break e;case 2:en=!0}}u.callback!==null&&u.lane!==0&&(e.flags|=64,p=l.effects,p===null?l.effects=[u]:p.push(u))}else w={eventTime:w,lane:p,tag:u.tag,payload:u.payload,callback:u.callback,next:null},m===null?(c=m=w,s=h):m=m.next=w,i|=p;if(u=u.next,u===null){if(u=l.shared.pending,u===null)break;p=u,u=p.next,p.next=null,l.lastBaseUpdate=p,l.shared.pending=null}}while(!0);if(m===null&&(s=h),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=m,n=l.shared.interleaved,n!==null){l=n;do i|=l.lane,l=l.next;while(l!==n)}else o===null&&(l.shared.lanes=0);Rn|=i,e.lanes=i,e.memoizedState=h}}function wu(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var r=e[n],l=r.callback;if(l!==null){if(r.callback=null,r=t,typeof l!="function")throw Error(y(191,l));l.call(r)}}}var bt={},Ae=gn(bt),Wt=gn(bt),Ht=gn(bt);function Nn(e){if(e===bt)throw Error(y(174));return e}function mi(e,n){switch(F(Ht,n),F(Wt,e),F(Ae,bt),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:to(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=to(n,e)}A(Ae),F(Ae,n)}function ot(){A(Ae),A(Wt),A(Ht)}function ua(e){Nn(Ht.current);var n=Nn(Ae.current),t=to(n,e.type);n!==t&&(F(Wt,e),F(Ae,t))}function hi(e){Wt.current===e&&(A(Ae),A(Wt))}var B=gn(0);function Yr(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.flags&128)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ul=[];function vi(){for(var e=0;e<Ul.length;e++)Ul[e]._workInProgressVersionPrimary=null;Ul.length=0}var _r=Ge.ReactCurrentDispatcher,Al=Ge.ReactCurrentBatchConfig,jn=0,V=null,X=null,J=null,Xr=!1,zt=!1,Qt=0,ed=0;function te(){throw Error(y(321))}function gi(e,n){if(n===null)return!1;for(var t=0;t<n.length&&t<e.length;t++)if(!Me(e[t],n[t]))return!1;return!0}function yi(e,n,t,r,l,o){if(jn=o,V=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_r.current=e===null||e.memoizedState===null?ld:od,e=t(r,l),zt){o=0;do{if(zt=!1,Qt=0,25<=o)throw Error(y(301));o+=1,J=X=null,n.updateQueue=null,_r.current=id,e=t(r,l)}while(zt)}if(_r.current=Gr,n=X!==null&&X.next!==null,jn=0,J=X=V=null,Xr=!1,n)throw Error(y(300));return e}function wi(){var e=Qt!==0;return Qt=0,e}function Ie(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return J===null?V.memoizedState=J=e:J=J.next=e,J}function Pe(){if(X===null){var e=V.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var n=J===null?V.memoizedState:J.next;if(n!==null)J=n,X=e;else{if(e===null)throw Error(y(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},J===null?V.memoizedState=J=e:J=J.next=e}return J}function Kt(e,n){return typeof n=="function"?n(e):n}function $l(e){var n=Pe(),t=n.queue;if(t===null)throw Error(y(311));t.lastRenderedReducer=e;var r=X,l=r.baseQueue,o=t.pending;if(o!==null){if(l!==null){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,t.pending=null}if(l!==null){o=l.next,r=r.baseState;var u=i=null,s=null,c=o;do{var m=c.lane;if((jn&m)===m)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var h={lane:m,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(u=s=h,i=r):s=s.next=h,V.lanes|=m,Rn|=m}c=c.next}while(c!==null&&c!==o);s===null?i=r:s.next=u,Me(r,n.memoizedState)||(fe=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=s,t.lastRenderedState=r}if(e=t.interleaved,e!==null){l=e;do o=l.lane,V.lanes|=o,Rn|=o,l=l.next;while(l!==e)}else l===null&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Bl(e){var n=Pe(),t=n.queue;if(t===null)throw Error(y(311));t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,o=n.memoizedState;if(l!==null){t.pending=null;var i=l=l.next;do o=e(o,i.action),i=i.next;while(i!==l);Me(o,n.memoizedState)||(fe=!0),n.memoizedState=o,n.baseQueue===null&&(n.baseState=o),t.lastRenderedState=o}return[o,r]}function sa(){}function aa(e,n){var t=V,r=Pe(),l=n(),o=!Me(r.memoizedState,l);if(o&&(r.memoizedState=l,fe=!0),r=r.queue,ki(da.bind(null,t,r,e),[e]),r.getSnapshot!==n||o||J!==null&&J.memoizedState.tag&1){if(t.flags|=2048,Yt(9,fa.bind(null,t,r,l,n),void 0,null),q===null)throw Error(y(349));jn&30||ca(t,n,l)}return l}function ca(e,n,t){e.flags|=16384,e={getSnapshot:n,value:t},n=V.updateQueue,n===null?(n={lastEffect:null,stores:null},V.updateQueue=n,n.stores=[e]):(t=n.stores,t===null?n.stores=[e]:t.push(e))}function fa(e,n,t,r){n.value=t,n.getSnapshot=r,pa(n)&&ma(e)}function da(e,n,t){return t(function(){pa(n)&&ma(e)})}function pa(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!Me(e,t)}catch{return!0}}function ma(e){var n=Ye(e,1);n!==null&&Oe(n,e,1,-1)}function ku(e){var n=Ie();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Kt,lastRenderedState:e},n.queue=e,e=e.dispatch=rd.bind(null,V,e),[n.memoizedState,e]}function Yt(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},n=V.updateQueue,n===null?(n={lastEffect:null,stores:null},V.updateQueue=n,n.lastEffect=e.next=e):(t=n.lastEffect,t===null?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e)),e}function ha(){return Pe().memoizedState}function Nr(e,n,t,r){var l=Ie();V.flags|=e,l.memoizedState=Yt(1|n,t,void 0,r===void 0?null:r)}function sl(e,n,t,r){var l=Pe();r=r===void 0?null:r;var o=void 0;if(X!==null){var i=X.memoizedState;if(o=i.destroy,r!==null&&gi(r,i.deps)){l.memoizedState=Yt(n,t,o,r);return}}V.flags|=e,l.memoizedState=Yt(1|n,t,o,r)}function Su(e,n){return Nr(8390656,8,e,n)}function ki(e,n){return sl(2048,8,e,n)}function va(e,n){return sl(4,2,e,n)}function ga(e,n){return sl(4,4,e,n)}function ya(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function wa(e,n,t){return t=t!=null?t.concat([e]):null,sl(4,4,ya.bind(null,n,e),t)}function Si(){}function ka(e,n){var t=Pe();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&gi(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Sa(e,n){var t=Pe();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&gi(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function xa(e,n,t){return jn&21?(Me(t,n)||(t=Ps(),V.lanes|=t,Rn|=t,e.baseState=!0),n):(e.baseState&&(e.baseState=!1,fe=!0),e.memoizedState=t)}function nd(e,n){var t=I;I=t!==0&&4>t?t:4,e(!0);var r=Al.transition;Al.transition={};try{e(!1),n()}finally{I=t,Al.transition=r}}function Ea(){return Pe().memoizedState}function td(e,n,t){var r=dn(e);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},Ca(e))_a(n,t);else if(t=oa(e,n,t,r),t!==null){var l=ue();Oe(t,e,r,l),Na(t,n,r)}}function rd(e,n,t){var r=dn(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ca(e))_a(n,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=n.lastRenderedReducer,o!==null))try{var i=n.lastRenderedState,u=o(i,t);if(l.hasEagerState=!0,l.eagerState=u,Me(u,i)){var s=n.interleaved;s===null?(l.next=l,di(n)):(l.next=s.next,s.next=l),n.interleaved=l;return}}catch{}finally{}t=oa(e,n,l,r),t!==null&&(l=ue(),Oe(t,e,r,l),Na(t,n,r))}}function Ca(e){var n=e.alternate;return e===V||n!==null&&n===V}function _a(e,n){zt=Xr=!0;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}function Na(e,n,t){if(t&4194240){var r=n.lanes;r&=e.pendingLanes,t|=r,n.lanes=t,qo(e,t)}}var Gr={readContext:Ne,useCallback:te,useContext:te,useEffect:te,useImperativeHandle:te,useInsertionEffect:te,useLayoutEffect:te,useMemo:te,useReducer:te,useRef:te,useState:te,useDebugValue:te,useDeferredValue:te,useTransition:te,useMutableSource:te,useSyncExternalStore:te,useId:te,unstable_isNewReconciler:!1},ld={readContext:Ne,useCallback:function(e,n){return Ie().memoizedState=[e,n===void 0?null:n],e},useContext:Ne,useEffect:Su,useImperativeHandle:function(e,n,t){return t=t!=null?t.concat([e]):null,Nr(4194308,4,ya.bind(null,n,e),t)},useLayoutEffect:function(e,n){return Nr(4194308,4,e,n)},useInsertionEffect:function(e,n){return Nr(4,2,e,n)},useMemo:function(e,n){var t=Ie();return n=n===void 0?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Ie();return n=t!==void 0?t(n):n,r.memoizedState=r.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},r.queue=e,e=e.dispatch=td.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var n=Ie();return e={current:e},n.memoizedState=e},useState:ku,useDebugValue:Si,useDeferredValue:function(e){return Ie().memoizedState=e},useTransition:function(){var e=ku(!1),n=e[0];return e=nd.bind(null,e[1]),Ie().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=V,l=Ie();if($){if(t===void 0)throw Error(y(407));t=t()}else{if(t=n(),q===null)throw Error(y(349));jn&30||ca(r,n,t)}l.memoizedState=t;var o={value:t,getSnapshot:n};return l.queue=o,Su(da.bind(null,r,o,e),[e]),r.flags|=2048,Yt(9,fa.bind(null,r,o,t,n),void 0,null),t},useId:function(){var e=Ie(),n=q.identifierPrefix;if($){var t=We,r=Ve;t=(r&~(1<<32-Re(r)-1)).toString(32)+t,n=":"+n+"R"+t,t=Qt++,0<t&&(n+="H"+t.toString(32)),n+=":"}else t=ed++,n=":"+n+"r"+t.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},od={readContext:Ne,useCallback:ka,useContext:Ne,useEffect:ki,useImperativeHandle:wa,useInsertionEffect:va,useLayoutEffect:ga,useMemo:Sa,useReducer:$l,useRef:ha,useState:function(){return $l(Kt)},useDebugValue:Si,useDeferredValue:function(e){var n=Pe();return xa(n,X.memoizedState,e)},useTransition:function(){var e=$l(Kt)[0],n=Pe().memoizedState;return[e,n]},useMutableSource:sa,useSyncExternalStore:aa,useId:Ea,unstable_isNewReconciler:!1},id={readContext:Ne,useCallback:ka,useContext:Ne,useEffect:ki,useImperativeHandle:wa,useInsertionEffect:va,useLayoutEffect:ga,useMemo:Sa,useReducer:Bl,useRef:ha,useState:function(){return Bl(Kt)},useDebugValue:Si,useDeferredValue:function(e){var n=Pe();return X===null?n.memoizedState=e:xa(n,X.memoizedState,e)},useTransition:function(){var e=Bl(Kt)[0],n=Pe().memoizedState;return[e,n]},useMutableSource:sa,useSyncExternalStore:aa,useId:Ea,unstable_isNewReconciler:!1};function Le(e,n){if(e&&e.defaultProps){n=W({},n),e=e.defaultProps;for(var t in e)n[t]===void 0&&(n[t]=e[t]);return n}return n}function Co(e,n,t,r){n=e.memoizedState,t=t(r,n),t=t==null?n:W({},n,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var al={isMounted:function(e){return(e=e._reactInternals)?Dn(e)===e:!1},enqueueSetState:function(e,n,t){e=e._reactInternals;var r=ue(),l=dn(e),o=He(r,l);o.payload=n,t!=null&&(o.callback=t),n=cn(e,o,l),n!==null&&(Oe(n,e,l,r),Cr(n,e,l))},enqueueReplaceState:function(e,n,t){e=e._reactInternals;var r=ue(),l=dn(e),o=He(r,l);o.tag=1,o.payload=n,t!=null&&(o.callback=t),n=cn(e,o,l),n!==null&&(Oe(n,e,l,r),Cr(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var t=ue(),r=dn(e),l=He(t,r);l.tag=2,n!=null&&(l.callback=n),n=cn(e,l,r),n!==null&&(Oe(n,e,r,t),Cr(n,e,r))}};function xu(e,n,t,r,l,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,i):n.prototype&&n.prototype.isPureReactComponent?!At(t,r)||!At(l,o):!0}function Pa(e,n,t){var r=!1,l=hn,o=n.contextType;return typeof o=="object"&&o!==null?o=Ne(o):(l=pe(n)?Ln:oe.current,r=n.contextTypes,o=(r=r!=null)?tt(e,l):hn),n=new n(t,o),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=al,e.stateNode=n,n._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),n}function Eu(e,n,t,r){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(t,r),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(t,r),n.state!==e&&al.enqueueReplaceState(n,n.state,null)}function _o(e,n,t,r){var l=e.stateNode;l.props=t,l.state=e.memoizedState,l.refs={},pi(e);var o=n.contextType;typeof o=="object"&&o!==null?l.context=Ne(o):(o=pe(n)?Ln:oe.current,l.context=tt(e,o)),l.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Co(e,n,o,t),l.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&al.enqueueReplaceState(l,l.state,null),Kr(e,t,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function it(e,n){try{var t="",r=n;do t+=Oc(r),r=r.return;while(r);var l=t}catch(o){l=` |
|
`+o.stack}return{value:e,source:n,stack:l,digest:null}}function Vl(e,n,t){return{value:e,source:null,stack:t??null,digest:n??null}}function No(e,n){try{console.error(n.value)}catch(t){setTimeout(function(){throw t})}}var ud=typeof WeakMap=="function"?WeakMap:Map;function za(e,n,t){t=He(-1,t),t.tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){Jr||(Jr=!0,Io=r),No(e,n)},t}function La(e,n,t){t=He(-1,t),t.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=n.value;t.payload=function(){return r(l)},t.callback=function(){No(e,n)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){No(e,n),typeof r!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var i=n.stack;this.componentDidCatch(n.value,{componentStack:i!==null?i:""})}),t}function Cu(e,n,t){var r=e.pingCache;if(r===null){r=e.pingCache=new ud;var l=new Set;r.set(n,l)}else l=r.get(n),l===void 0&&(l=new Set,r.set(n,l));l.has(t)||(l.add(t),e=Sd.bind(null,e,n,t),n.then(e,e))}function _u(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Nu(e,n,t,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===n?e.flags|=65536:(e.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(n=He(-1,1),n.tag=2,cn(t,n,1))),t.lanes|=1),e)}var sd=Ge.ReactCurrentOwner,fe=!1;function ie(e,n,t,r){n.child=e===null?la(n,null,t,r):lt(n,e.child,t,r)}function Pu(e,n,t,r,l){t=t.render;var o=n.ref;return bn(n,l),r=yi(e,n,t,r,o,l),t=wi(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Xe(e,n,l)):($&&t&&ii(n),n.flags|=1,ie(e,n,r,l),n.child)}function zu(e,n,t,r,l){if(e===null){var o=t.type;return typeof o=="function"&&!Li(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(n.tag=15,n.type=o,Ta(e,n,o,r,l)):(e=Tr(t.type,null,r,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(o=e.child,!(e.lanes&l)){var i=o.memoizedProps;if(t=t.compare,t=t!==null?t:At,t(i,r)&&e.ref===n.ref)return Xe(e,n,l)}return n.flags|=1,e=pn(o,r),e.ref=n.ref,e.return=n,n.child=e}function Ta(e,n,t,r,l){if(e!==null){var o=e.memoizedProps;if(At(o,r)&&e.ref===n.ref)if(fe=!1,n.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(fe=!0);else return n.lanes=e.lanes,Xe(e,n,l)}return Po(e,n,t,r,l)}function ja(e,n,t){var r=n.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(n.mode&1))n.memoizedState={baseLanes:0,cachePool:null,transitions:null},F(Xn,ve),ve|=t;else{if(!(t&1073741824))return e=o!==null?o.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,F(Xn,ve),ve|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,F(Xn,ve),ve|=r}else o!==null?(r=o.baseLanes|t,n.memoizedState=null):r=t,F(Xn,ve),ve|=r;return ie(e,n,l,t),n.child}function Ra(e,n){var t=n.ref;(e===null&&t!==null||e!==null&&e.ref!==t)&&(n.flags|=512,n.flags|=2097152)}function Po(e,n,t,r,l){var o=pe(t)?Ln:oe.current;return o=tt(n,o),bn(n,l),t=yi(e,n,t,r,o,l),r=wi(),e!==null&&!fe?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,Xe(e,n,l)):($&&r&&ii(n),n.flags|=1,ie(e,n,t,l),n.child)}function Lu(e,n,t,r,l){if(pe(t)){var o=!0;Br(n)}else o=!1;if(bn(n,l),n.stateNode===null)Pr(e,n),Pa(n,t,r),_o(n,t,r,l),r=!0;else if(e===null){var i=n.stateNode,u=n.memoizedProps;i.props=u;var s=i.context,c=t.contextType;typeof c=="object"&&c!==null?c=Ne(c):(c=pe(t)?Ln:oe.current,c=tt(n,c));var m=t.getDerivedStateFromProps,h=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function";h||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==r||s!==c)&&Eu(n,i,r,c),en=!1;var p=n.memoizedState;i.state=p,Kr(n,r,i,l),s=n.memoizedState,u!==r||p!==s||de.current||en?(typeof m=="function"&&(Co(n,t,m,r),s=n.memoizedState),(u=en||xu(n,t,u,r,p,s,c))?(h||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(n.flags|=4194308)):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=r,n.memoizedState=s),i.props=r,i.state=s,i.context=c,r=u):(typeof i.componentDidMount=="function"&&(n.flags|=4194308),r=!1)}else{i=n.stateNode,ia(e,n),u=n.memoizedProps,c=n.type===n.elementType?u:Le(n.type,u),i.props=c,h=n.pendingProps,p=i.context,s=t.contextType,typeof s=="object"&&s!==null?s=Ne(s):(s=pe(t)?Ln:oe.current,s=tt(n,s));var w=t.getDerivedStateFromProps;(m=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(u!==h||p!==s)&&Eu(n,i,r,s),en=!1,p=n.memoizedState,i.state=p,Kr(n,r,i,l);var k=n.memoizedState;u!==h||p!==k||de.current||en?(typeof w=="function"&&(Co(n,t,w,r),k=n.memoizedState),(c=en||xu(n,t,c,r,p,k,s)||!1)?(m||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,k,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,k,s)),typeof i.componentDidUpdate=="function"&&(n.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),n.memoizedProps=r,n.memoizedState=k),i.props=r,i.state=k,i.context=s,r=c):(typeof i.componentDidUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&p===e.memoizedState||(n.flags|=1024),r=!1)}return zo(e,n,t,r,o,l)}function zo(e,n,t,r,l,o){Ra(e,n);var i=(n.flags&128)!==0;if(!r&&!i)return l&&mu(n,t,!1),Xe(e,n,o);r=n.stateNode,sd.current=n;var u=i&&typeof t.getDerivedStateFromError!="function"?null:r.render();return n.flags|=1,e!==null&&i?(n.child=lt(n,e.child,null,o),n.child=lt(n,null,u,o)):ie(e,n,u,o),n.memoizedState=r.state,l&&mu(n,t,!0),n.child}function Oa(e){var n=e.stateNode;n.pendingContext?pu(e,n.pendingContext,n.pendingContext!==n.context):n.context&&pu(e,n.context,!1),mi(e,n.containerInfo)}function Tu(e,n,t,r,l){return rt(),si(l),n.flags|=256,ie(e,n,t,r),n.child}var Lo={dehydrated:null,treeContext:null,retryLane:0};function To(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ma(e,n,t){var r=n.pendingProps,l=B.current,o=!1,i=(n.flags&128)!==0,u;if((u=i)||(u=e!==null&&e.memoizedState===null?!1:(l&2)!==0),u?(o=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),F(B,l&1),e===null)return xo(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(n.mode&1?e.data==="$!"?n.lanes=8:n.lanes=1073741824:n.lanes=1,null):(i=r.children,e=r.fallback,o?(r=n.mode,o=n.child,i={mode:"hidden",children:i},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=i):o=dl(i,r,0,null),e=zn(e,r,t,null),o.return=n,e.return=n,o.sibling=e,n.child=o,n.child.memoizedState=To(t),n.memoizedState=Lo,e):xi(n,i));if(l=e.memoizedState,l!==null&&(u=l.dehydrated,u!==null))return ad(e,n,i,r,u,l,t);if(o){o=r.fallback,i=n.mode,l=e.child,u=l.sibling;var s={mode:"hidden",children:r.children};return!(i&1)&&n.child!==l?(r=n.child,r.childLanes=0,r.pendingProps=s,n.deletions=null):(r=pn(l,s),r.subtreeFlags=l.subtreeFlags&14680064),u!==null?o=pn(u,o):(o=zn(o,i,t,null),o.flags|=2),o.return=n,r.return=n,r.sibling=o,n.child=r,r=o,o=n.child,i=e.child.memoizedState,i=i===null?To(t):{baseLanes:i.baseLanes|t,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~t,n.memoizedState=Lo,r}return o=e.child,e=o.sibling,r=pn(o,{mode:"visible",children:r.children}),!(n.mode&1)&&(r.lanes=t),r.return=n,r.sibling=null,e!==null&&(t=n.deletions,t===null?(n.deletions=[e],n.flags|=16):t.push(e)),n.child=r,n.memoizedState=null,r}function xi(e,n){return n=dl({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function hr(e,n,t,r){return r!==null&&si(r),lt(n,e.child,null,t),e=xi(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function ad(e,n,t,r,l,o,i){if(t)return n.flags&256?(n.flags&=-257,r=Vl(Error(y(422))),hr(e,n,i,r)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(o=r.fallback,l=n.mode,r=dl({mode:"visible",children:r.children},l,0,null),o=zn(o,l,i,null),o.flags|=2,r.return=n,o.return=n,r.sibling=o,n.child=r,n.mode&1&<(n,e.child,null,i),n.child.memoizedState=To(i),n.memoizedState=Lo,o);if(!(n.mode&1))return hr(e,n,i,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var u=r.dgst;return r=u,o=Error(y(419)),r=Vl(o,r,void 0),hr(e,n,i,r)}if(u=(i&e.childLanes)!==0,fe||u){if(r=q,r!==null){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}l=l&(r.suspendedLanes|i)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,Ye(e,l),Oe(r,e,l,-1))}return zi(),r=Vl(Error(y(421))),hr(e,n,i,r)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=xd.bind(null,e),l._reactRetry=n,null):(e=o.treeContext,ge=an(l.nextSibling),ye=n,$=!0,je=null,e!==null&&(xe[Ee++]=Ve,xe[Ee++]=We,xe[Ee++]=Tn,Ve=e.id,We=e.overflow,Tn=n),n=xi(n,r.children),n.flags|=4096,n)}function ju(e,n,t){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n),Eo(e.return,n,t)}function Wl(e,n,t,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(o.isBackwards=n,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=t,o.tailMode=l)}function Da(e,n,t){var r=n.pendingProps,l=r.revealOrder,o=r.tail;if(ie(e,n,r.children,t),r=B.current,r&2)r=r&1|2,n.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ju(e,t,n);else if(e.tag===19)ju(e,t,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(F(B,r),!(n.mode&1))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;t!==null;)e=t.alternate,e!==null&&Yr(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),Wl(n,!1,l,t,o);break;case"backwards":for(t=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&Yr(e)===null){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}Wl(n,!0,t,null,o);break;case"together":Wl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Pr(e,n){!(n.mode&1)&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Xe(e,n,t){if(e!==null&&(n.dependencies=e.dependencies),Rn|=n.lanes,!(t&n.childLanes))return null;if(e!==null&&n.child!==e.child)throw Error(y(153));if(n.child!==null){for(e=n.child,t=pn(e,e.pendingProps),n.child=t,t.return=n;e.sibling!==null;)e=e.sibling,t=t.sibling=pn(e,e.pendingProps),t.return=n;t.sibling=null}return n.child}function cd(e,n,t){switch(n.tag){case 3:Oa(n),rt();break;case 5:ua(n);break;case 1:pe(n.type)&&Br(n);break;case 4:mi(n,n.stateNode.containerInfo);break;case 10:var r=n.type._context,l=n.memoizedProps.value;F(Hr,r._currentValue),r._currentValue=l;break;case 13:if(r=n.memoizedState,r!==null)return r.dehydrated!==null?(F(B,B.current&1),n.flags|=128,null):t&n.child.childLanes?Ma(e,n,t):(F(B,B.current&1),e=Xe(e,n,t),e!==null?e.sibling:null);F(B,B.current&1);break;case 19:if(r=(t&n.childLanes)!==0,e.flags&128){if(r)return Da(e,n,t);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),F(B,B.current),r)break;return null;case 22:case 23:return n.lanes=0,ja(e,n,t)}return Xe(e,n,t)}var Ia,jo,Fa,Ua;Ia=function(e,n){for(var t=n.child;t!==null;){if(t.tag===5||t.tag===6)e.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};jo=function(){};Fa=function(e,n,t,r){var l=e.memoizedProps;if(l!==r){e=n.stateNode,Nn(Ae.current);var o=null;switch(t){case"input":l=ql(e,l),r=ql(e,r),o=[];break;case"select":l=W({},l,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":l=no(e,l),r=no(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ar)}ro(t,r);var i;t=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var u=l[c];for(i in u)u.hasOwnProperty(i)&&(t||(t={}),t[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Rt.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(s!=null||u!=null))if(c==="style")if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(t||(t={}),t[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(t||(t={}),t[i]=s[i])}else t||(o||(o=[]),o.push(c,t)),t=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,u=u?u.__html:void 0,s!=null&&u!==s&&(o=o||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Rt.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&U("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}t&&(o=o||[]).push("style",t);var c=o;(n.updateQueue=c)&&(n.flags|=4)}};Ua=function(e,n,t,r){t!==r&&(n.flags|=4)};function gt(e,n){if(!$)switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;n!==null;)n.alternate!==null&&(t=n),n=n.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function re(e){var n=e.alternate!==null&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags&14680064,r|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function fd(e,n,t){var r=n.pendingProps;switch(ui(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return re(n),null;case 1:return pe(n.type)&&$r(),re(n),null;case 3:return r=n.stateNode,ot(),A(de),A(oe),vi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pr(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&!(n.flags&256)||(n.flags|=1024,je!==null&&(Ao(je),je=null))),jo(e,n),re(n),null;case 5:hi(n);var l=Nn(Ht.current);if(t=n.type,e!==null&&n.stateNode!=null)Fa(e,n,t,r,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!r){if(n.stateNode===null)throw Error(y(166));return re(n),null}if(e=Nn(Ae.current),pr(n)){r=n.stateNode,t=n.type;var o=n.memoizedProps;switch(r[Fe]=n,r[Vt]=o,e=(n.mode&1)!==0,t){case"dialog":U("cancel",r),U("close",r);break;case"iframe":case"object":case"embed":U("load",r);break;case"video":case"audio":for(l=0;l<xt.length;l++)U(xt[l],r);break;case"source":U("error",r);break;case"img":case"image":case"link":U("error",r),U("load",r);break;case"details":U("toggle",r);break;case"input":$i(r,o),U("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},U("invalid",r);break;case"textarea":Vi(r,o),U("invalid",r)}ro(t,o),l=null;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];i==="children"?typeof u=="string"?r.textContent!==u&&(o.suppressHydrationWarning!==!0&&dr(r.textContent,u,e),l=["children",u]):typeof u=="number"&&r.textContent!==""+u&&(o.suppressHydrationWarning!==!0&&dr(r.textContent,u,e),l=["children",""+u]):Rt.hasOwnProperty(i)&&u!=null&&i==="onScroll"&&U("scroll",r)}switch(t){case"input":lr(r),Bi(r,o,!0);break;case"textarea":lr(r),Wi(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ar)}r=l,n.updateQueue=r,r!==null&&(n.flags|=4)}else{i=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ds(t)),e==="http://www.w3.org/1999/xhtml"?t==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(t,{is:r.is}):(e=i.createElement(t),t==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,t),e[Fe]=n,e[Vt]=r,Ia(e,n,!1,!1),n.stateNode=e;e:{switch(i=lo(t,r),t){case"dialog":U("cancel",e),U("close",e),l=r;break;case"iframe":case"object":case"embed":U("load",e),l=r;break;case"video":case"audio":for(l=0;l<xt.length;l++)U(xt[l],e);l=r;break;case"source":U("error",e),l=r;break;case"img":case"image":case"link":U("error",e),U("load",e),l=r;break;case"details":U("toggle",e),l=r;break;case"input":$i(e,r),l=ql(e,r),U("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=W({},r,{value:void 0}),U("invalid",e);break;case"textarea":Vi(e,r),l=no(e,r),U("invalid",e);break;default:l=r}ro(t,l),u=l;for(o in u)if(u.hasOwnProperty(o)){var s=u[o];o==="style"?hs(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&ps(e,s)):o==="children"?typeof s=="string"?(t!=="textarea"||s!=="")&&Ot(e,s):typeof s=="number"&&Ot(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rt.hasOwnProperty(o)?s!=null&&o==="onScroll"&&U("scroll",e):s!=null&&Ko(e,o,s,i))}switch(t){case"input":lr(e),Bi(e,r,!1);break;case"textarea":lr(e),Wi(e);break;case"option":r.value!=null&&e.setAttribute("value",""+mn(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Gn(e,!!r.multiple,o,!1):r.defaultValue!=null&&Gn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=Ar)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return re(n),null;case 6:if(e&&n.stateNode!=null)Ua(e,n,e.memoizedProps,r);else{if(typeof r!="string"&&n.stateNode===null)throw Error(y(166));if(t=Nn(Ht.current),Nn(Ae.current),pr(n)){if(r=n.stateNode,t=n.memoizedProps,r[Fe]=n,(o=r.nodeValue!==t)&&(e=ye,e!==null))switch(e.tag){case 3:dr(r.nodeValue,t,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&dr(r.nodeValue,t,(e.mode&1)!==0)}o&&(n.flags|=4)}else r=(t.nodeType===9?t:t.ownerDocument).createTextNode(r),r[Fe]=n,n.stateNode=r}return re(n),null;case 13:if(A(B),r=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if($&&ge!==null&&n.mode&1&&!(n.flags&128))ta(),rt(),n.flags|=98560,o=!1;else if(o=pr(n),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(y(318));if(o=n.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(y(317));o[Fe]=n}else rt(),!(n.flags&128)&&(n.memoizedState=null),n.flags|=4;re(n),o=!1}else je!==null&&(Ao(je),je=null),o=!0;if(!o)return n.flags&65536?n:null}return n.flags&128?(n.lanes=t,n):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(n.child.flags|=8192,n.mode&1&&(e===null||B.current&1?G===0&&(G=3):zi())),n.updateQueue!==null&&(n.flags|=4),re(n),null);case 4:return ot(),jo(e,n),e===null&&$t(n.stateNode.containerInfo),re(n),null;case 10:return fi(n.type._context),re(n),null;case 17:return pe(n.type)&&$r(),re(n),null;case 19:if(A(B),o=n.memoizedState,o===null)return re(n),null;if(r=(n.flags&128)!==0,i=o.rendering,i===null)if(r)gt(o,!1);else{if(G!==0||e!==null&&e.flags&128)for(e=n.child;e!==null;){if(i=Yr(e),i!==null){for(n.flags|=128,gt(o,!1),r=i.updateQueue,r!==null&&(n.updateQueue=r,n.flags|=4),n.subtreeFlags=0,r=t,t=n.child;t!==null;)o=t,e=r,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t=t.sibling;return F(B,B.current&1|2),n.child}e=e.sibling}o.tail!==null&&K()>ut&&(n.flags|=128,r=!0,gt(o,!1),n.lanes=4194304)}else{if(!r)if(e=Yr(i),e!==null){if(n.flags|=128,r=!0,t=e.updateQueue,t!==null&&(n.updateQueue=t,n.flags|=4),gt(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!$)return re(n),null}else 2*K()-o.renderingStartTime>ut&&t!==1073741824&&(n.flags|=128,r=!0,gt(o,!1),n.lanes=4194304);o.isBackwards?(i.sibling=n.child,n.child=i):(t=o.last,t!==null?t.sibling=i:n.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.renderingStartTime=K(),n.sibling=null,t=B.current,F(B,r?t&1|2:t&1),n):(re(n),null);case 22:case 23:return Pi(),r=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(n.flags|=8192),r&&n.mode&1?ve&1073741824&&(re(n),n.subtreeFlags&6&&(n.flags|=8192)):re(n),null;case 24:return null;case 25:return null}throw Error(y(156,n.tag))}function dd(e,n){switch(ui(n),n.tag){case 1:return pe(n.type)&&$r(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ot(),A(de),A(oe),vi(),e=n.flags,e&65536&&!(e&128)?(n.flags=e&-65537|128,n):null;case 5:return hi(n),null;case 13:if(A(B),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(y(340));rt()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return A(B),null;case 4:return ot(),null;case 10:return fi(n.type._context),null;case 22:case 23:return Pi(),null;case 24:return null;default:return null}}var vr=!1,le=!1,pd=typeof WeakSet=="function"?WeakSet:Set,C=null;function Yn(e,n){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){H(e,n,r)}else t.current=null}function Ro(e,n,t){try{t()}catch(r){H(e,n,r)}}var Ru=!1;function md(e,n){if(ho=Ir,e=Ws(),oi(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{t.nodeType,o.nodeType}catch{t=null;break e}var i=0,u=-1,s=-1,c=0,m=0,h=e,p=null;n:for(;;){for(var w;h!==t||l!==0&&h.nodeType!==3||(u=i+l),h!==o||r!==0&&h.nodeType!==3||(s=i+r),h.nodeType===3&&(i+=h.nodeValue.length),(w=h.firstChild)!==null;)p=h,h=w;for(;;){if(h===e)break n;if(p===t&&++c===l&&(u=i),p===o&&++m===r&&(s=i),(w=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=w}t=u===-1||s===-1?null:{start:u,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;for(vo={focusedElem:e,selectionRange:t},Ir=!1,C=n;C!==null;)if(n=C,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,C=e;else for(;C!==null;){n=C;try{var k=n.alternate;if(n.flags&1024)switch(n.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var x=k.memoizedProps,D=k.memoizedState,f=n.stateNode,a=f.getSnapshotBeforeUpdate(n.elementType===n.type?x:Le(n.type,x),D);f.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var d=n.stateNode.containerInfo;d.nodeType===1?d.textContent="":d.nodeType===9&&d.documentElement&&d.removeChild(d.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(y(163))}}catch(g){H(n,n.return,g)}if(e=n.sibling,e!==null){e.return=n.return,C=e;break}C=n.return}return k=Ru,Ru=!1,k}function Lt(e,n,t){var r=n.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Ro(n,t,o)}l=l.next}while(l!==r)}}function cl(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Oo(e){var n=e.ref;if(n!==null){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}typeof n=="function"?n(e):n.current=e}}function Aa(e){var n=e.alternate;n!==null&&(e.alternate=null,Aa(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Fe],delete n[Vt],delete n[wo],delete n[Zf],delete n[Jf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $a(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$a(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mo(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.nodeType===8?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(t.nodeType===8?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,t!=null||n.onclick!==null||(n.onclick=Ar));else if(r!==4&&(e=e.child,e!==null))for(Mo(e,n,t),e=e.sibling;e!==null;)Mo(e,n,t),e=e.sibling}function Do(e,n,t){var r=e.tag;if(r===5||r===6)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Do(e,n,t),e=e.sibling;e!==null;)Do(e,n,t),e=e.sibling}var b=null,Te=!1;function qe(e,n,t){for(t=t.child;t!==null;)Ba(e,n,t),t=t.sibling}function Ba(e,n,t){if(Ue&&typeof Ue.onCommitFiberUnmount=="function")try{Ue.onCommitFiberUnmount(tl,t)}catch{}switch(t.tag){case 5:le||Yn(t,n);case 6:var r=b,l=Te;b=null,qe(e,n,t),b=r,Te=l,b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?e.parentNode.removeChild(t):e.removeChild(t)):b.removeChild(t.stateNode));break;case 18:b!==null&&(Te?(e=b,t=t.stateNode,e.nodeType===8?Il(e.parentNode,t):e.nodeType===1&&Il(e,t),Ft(e)):Il(b,t.stateNode));break;case 4:r=b,l=Te,b=t.stateNode.containerInfo,Te=!0,qe(e,n,t),b=r,Te=l;break;case 0:case 11:case 14:case 15:if(!le&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Ro(t,n,i),l=l.next}while(l!==r)}qe(e,n,t);break;case 1:if(!le&&(Yn(t,n),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(u){H(t,n,u)}qe(e,n,t);break;case 21:qe(e,n,t);break;case 22:t.mode&1?(le=(r=le)||t.memoizedState!==null,qe(e,n,t),le=r):qe(e,n,t);break;default:qe(e,n,t)}}function Mu(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var t=e.stateNode;t===null&&(t=e.stateNode=new pd),n.forEach(function(r){var l=Ed.bind(null,e,r);t.has(r)||(t.add(r),r.then(l,l))})}}function ze(e,n){var t=n.deletions;if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];try{var o=e,i=n,u=i;e:for(;u!==null;){switch(u.tag){case 5:b=u.stateNode,Te=!1;break e;case 3:b=u.stateNode.containerInfo,Te=!0;break e;case 4:b=u.stateNode.containerInfo,Te=!0;break e}u=u.return}if(b===null)throw Error(y(160));Ba(o,i,l),b=null,Te=!1;var s=l.alternate;s!==null&&(s.return=null),l.return=null}catch(c){H(l,n,c)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Va(n,e),n=n.sibling}function Va(e,n){var t=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ze(n,e),De(e),r&4){try{Lt(3,e,e.return),cl(3,e)}catch(x){H(e,e.return,x)}try{Lt(5,e,e.return)}catch(x){H(e,e.return,x)}}break;case 1:ze(n,e),De(e),r&512&&t!==null&&Yn(t,t.return);break;case 5:if(ze(n,e),De(e),r&512&&t!==null&&Yn(t,t.return),e.flags&32){var l=e.stateNode;try{Ot(l,"")}catch(x){H(e,e.return,x)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,i=t!==null?t.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{u==="input"&&o.type==="radio"&&o.name!=null&&cs(l,o),lo(u,i);var c=lo(u,o);for(i=0;i<s.length;i+=2){var m=s[i],h=s[i+1];m==="style"?hs(l,h):m==="dangerouslySetInnerHTML"?ps(l,h):m==="children"?Ot(l,h):Ko(l,m,h,c)}switch(u){case"input":bl(l,o);break;case"textarea":fs(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var w=o.value;w!=null?Gn(l,!!o.multiple,w,!1):p!==!!o.multiple&&(o.defaultValue!=null?Gn(l,!!o.multiple,o.defaultValue,!0):Gn(l,!!o.multiple,o.multiple?[]:"",!1))}l[Vt]=o}catch(x){H(e,e.return,x)}}break;case 6:if(ze(n,e),De(e),r&4){if(e.stateNode===null)throw Error(y(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(x){H(e,e.return,x)}}break;case 3:if(ze(n,e),De(e),r&4&&t!==null&&t.memoizedState.isDehydrated)try{Ft(n.containerInfo)}catch(x){H(e,e.return,x)}break;case 4:ze(n,e),De(e);break;case 13:ze(n,e),De(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(_i=K())),r&4&&Mu(e);break;case 22:if(m=t!==null&&t.memoizedState!==null,e.mode&1?(le=(c=le)||m,ze(n,e),le=c):ze(n,e),De(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!m&&e.mode&1)for(C=e,m=e.child;m!==null;){for(h=C=m;C!==null;){switch(p=C,w=p.child,p.tag){case 0:case 11:case 14:case 15:Lt(4,p,p.return);break;case 1:Yn(p,p.return);var k=p.stateNode;if(typeof k.componentWillUnmount=="function"){r=p,t=p.return;try{n=r,k.props=n.memoizedProps,k.state=n.memoizedState,k.componentWillUnmount()}catch(x){H(r,t,x)}}break;case 5:Yn(p,p.return);break;case 22:if(p.memoizedState!==null){Iu(h);continue}}w!==null?(w.return=p,C=w):Iu(h)}m=m.sibling}e:for(m=null,h=e;;){if(h.tag===5){if(m===null){m=h;try{l=h.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(u=h.stateNode,s=h.memoizedProps.style,i=s!=null&&s.hasOwnProperty("display")?s.display:null,u.style.display=ms("display",i))}catch(x){H(e,e.return,x)}}}else if(h.tag===6){if(m===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(x){H(e,e.return,x)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ze(n,e),De(e),r&4&&Mu(e);break;case 21:break;default:ze(n,e),De(e)}}function De(e){var n=e.flags;if(n&2){try{e:{for(var t=e.return;t!==null;){if($a(t)){var r=t;break e}t=t.return}throw Error(y(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(Ot(l,""),r.flags&=-33);var o=Ou(e);Do(e,o,l);break;case 3:case 4:var i=r.stateNode.containerInfo,u=Ou(e);Mo(e,u,i);break;default:throw Error(y(161))}}catch(s){H(e,e.return,s)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function hd(e,n,t){C=e,Wa(e)}function Wa(e,n,t){for(var r=(e.mode&1)!==0;C!==null;){var l=C,o=l.child;if(l.tag===22&&r){var i=l.memoizedState!==null||vr;if(!i){var u=l.alternate,s=u!==null&&u.memoizedState!==null||le;u=vr;var c=le;if(vr=i,(le=s)&&!c)for(C=l;C!==null;)i=C,s=i.child,i.tag===22&&i.memoizedState!==null?Fu(l):s!==null?(s.return=i,C=s):Fu(l);for(;o!==null;)C=o,Wa(o),o=o.sibling;C=l,vr=u,le=c}Du(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,C=o):Du(e)}}function Du(e){for(;C!==null;){var n=C;if(n.flags&8772){var t=n.alternate;try{if(n.flags&8772)switch(n.tag){case 0:case 11:case 15:le||cl(5,n);break;case 1:var r=n.stateNode;if(n.flags&4&&!le)if(t===null)r.componentDidMount();else{var l=n.elementType===n.type?t.memoizedProps:Le(n.type,t.memoizedProps);r.componentDidUpdate(l,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=n.updateQueue;o!==null&&wu(n,o,r);break;case 3:var i=n.updateQueue;if(i!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}wu(n,i,t)}break;case 5:var u=n.stateNode;if(t===null&&n.flags&4){t=u;var s=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&t.focus();break;case"img":s.src&&(t.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var c=n.alternate;if(c!==null){var m=c.memoizedState;if(m!==null){var h=m.dehydrated;h!==null&&Ft(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(y(163))}le||n.flags&512&&Oo(n)}catch(p){H(n,n.return,p)}}if(n===e){C=null;break}if(t=n.sibling,t!==null){t.return=n.return,C=t;break}C=n.return}}function Iu(e){for(;C!==null;){var n=C;if(n===e){C=null;break}var t=n.sibling;if(t!==null){t.return=n.return,C=t;break}C=n.return}}function Fu(e){for(;C!==null;){var n=C;try{switch(n.tag){case 0:case 11:case 15:var t=n.return;try{cl(4,n)}catch(s){H(n,t,s)}break;case 1:var r=n.stateNode;if(typeof r.componentDidMount=="function"){var l=n.return;try{r.componentDidMount()}catch(s){H(n,l,s)}}var o=n.return;try{Oo(n)}catch(s){H(n,o,s)}break;case 5:var i=n.return;try{Oo(n)}catch(s){H(n,i,s)}}}catch(s){H(n,n.return,s)}if(n===e){C=null;break}var u=n.sibling;if(u!==null){u.return=n.return,C=u;break}C=n.return}}var vd=Math.ceil,Zr=Ge.ReactCurrentDispatcher,Ei=Ge.ReactCurrentOwner,_e=Ge.ReactCurrentBatchConfig,O=0,q=null,Y=null,ee=0,ve=0,Xn=gn(0),G=0,Xt=null,Rn=0,fl=0,Ci=0,Tt=null,ce=null,_i=0,ut=1/0,$e=null,Jr=!1,Io=null,fn=null,gr=!1,ln=null,qr=0,jt=0,Fo=null,zr=-1,Lr=0;function ue(){return O&6?K():zr!==-1?zr:zr=K()}function dn(e){return e.mode&1?O&2&&ee!==0?ee&-ee:bf.transition!==null?(Lr===0&&(Lr=Ps()),Lr):(e=I,e!==0||(e=window.event,e=e===void 0?16:Ms(e.type)),e):1}function Oe(e,n,t,r){if(50<jt)throw jt=0,Fo=null,Error(y(185));Zt(e,t,r),(!(O&2)||e!==q)&&(e===q&&(!(O&2)&&(fl|=t),G===4&&tn(e,ee)),me(e,r),t===1&&O===0&&!(n.mode&1)&&(ut=K()+500,ul&&yn()))}function me(e,n){var t=e.callbackNode;qc(e,n);var r=Dr(e,e===q?ee:0);if(r===0)t!==null&&Ki(t),e.callbackNode=null,e.callbackPriority=0;else if(n=r&-r,e.callbackPriority!==n){if(t!=null&&Ki(t),n===1)e.tag===0?qf(Uu.bind(null,e)):bs(Uu.bind(null,e)),Xf(function(){!(O&6)&&yn()}),t=null;else{switch(zs(r)){case 1:t=Jo;break;case 4:t=_s;break;case 16:t=Mr;break;case 536870912:t=Ns;break;default:t=Mr}t=Ja(t,Ha.bind(null,e))}e.callbackPriority=n,e.callbackNode=t}}function Ha(e,n){if(zr=-1,Lr=0,O&6)throw Error(y(327));var t=e.callbackNode;if(et()&&e.callbackNode!==t)return null;var r=Dr(e,e===q?ee:0);if(r===0)return null;if(r&30||r&e.expiredLanes||n)n=br(e,r);else{n=r;var l=O;O|=2;var o=Ka();(q!==e||ee!==n)&&($e=null,ut=K()+500,Pn(e,n));do try{wd();break}catch(u){Qa(e,u)}while(!0);ci(),Zr.current=o,O=l,Y!==null?n=0:(q=null,ee=0,n=G)}if(n!==0){if(n===2&&(l=ao(e),l!==0&&(r=l,n=Uo(e,l))),n===1)throw t=Xt,Pn(e,0),tn(e,r),me(e,K()),t;if(n===6)tn(e,r);else{if(l=e.current.alternate,!(r&30)&&!gd(l)&&(n=br(e,r),n===2&&(o=ao(e),o!==0&&(r=o,n=Uo(e,o))),n===1))throw t=Xt,Pn(e,0),tn(e,r),me(e,K()),t;switch(e.finishedWork=l,e.finishedLanes=r,n){case 0:case 1:throw Error(y(345));case 2:En(e,ce,$e);break;case 3:if(tn(e,r),(r&130023424)===r&&(n=_i+500-K(),10<n)){if(Dr(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ue(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=yo(En.bind(null,e,ce,$e),n);break}En(e,ce,$e);break;case 4:if(tn(e,r),(r&4194240)===r)break;for(n=e.eventTimes,l=-1;0<r;){var i=31-Re(r);o=1<<i,i=n[i],i>l&&(l=i),r&=~o}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vd(r/1960))-r,10<r){e.timeoutHandle=yo(En.bind(null,e,ce,$e),r);break}En(e,ce,$e);break;case 5:En(e,ce,$e);break;default:throw Error(y(329))}}}return me(e,K()),e.callbackNode===t?Ha.bind(null,e):null}function Uo(e,n){var t=Tt;return e.current.memoizedState.isDehydrated&&(Pn(e,n).flags|=256),e=br(e,n),e!==2&&(n=ce,ce=t,n!==null&&Ao(n)),e}function Ao(e){ce===null?ce=e:ce.push.apply(ce,e)}function gd(e){for(var n=e;;){if(n.flags&16384){var t=n.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var r=0;r<t.length;r++){var l=t[r],o=l.getSnapshot;l=l.value;try{if(!Me(o(),l))return!1}catch{return!1}}}if(t=n.child,n.subtreeFlags&16384&&t!==null)t.return=n,n=t;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function tn(e,n){for(n&=~Ci,n&=~fl,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var t=31-Re(n),r=1<<t;e[t]=-1,n&=~r}}function Uu(e){if(O&6)throw Error(y(327));et();var n=Dr(e,0);if(!(n&1))return me(e,K()),null;var t=br(e,n);if(e.tag!==0&&t===2){var r=ao(e);r!==0&&(n=r,t=Uo(e,r))}if(t===1)throw t=Xt,Pn(e,0),tn(e,n),me(e,K()),t;if(t===6)throw Error(y(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,En(e,ce,$e),me(e,K()),null}function Ni(e,n){var t=O;O|=1;try{return e(n)}finally{O=t,O===0&&(ut=K()+500,ul&&yn())}}function On(e){ln!==null&&ln.tag===0&&!(O&6)&&et();var n=O;O|=1;var t=_e.transition,r=I;try{if(_e.transition=null,I=1,e)return e()}finally{I=r,_e.transition=t,O=n,!(O&6)&&yn()}}function Pi(){ve=Xn.current,A(Xn)}function Pn(e,n){e.finishedWork=null,e.finishedLanes=0;var t=e.timeoutHandle;if(t!==-1&&(e.timeoutHandle=-1,Yf(t)),Y!==null)for(t=Y.return;t!==null;){var r=t;switch(ui(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&$r();break;case 3:ot(),A(de),A(oe),vi();break;case 5:hi(r);break;case 4:ot();break;case 13:A(B);break;case 19:A(B);break;case 10:fi(r.type._context);break;case 22:case 23:Pi()}t=t.return}if(q=e,Y=e=pn(e.current,null),ee=ve=n,G=0,Xt=null,Ci=fl=Rn=0,ce=Tt=null,_n!==null){for(n=0;n<_n.length;n++)if(t=_n[n],r=t.interleaved,r!==null){t.interleaved=null;var l=r.next,o=t.pending;if(o!==null){var i=o.next;o.next=l,r.next=i}t.pending=r}_n=null}return e}function Qa(e,n){do{var t=Y;try{if(ci(),_r.current=Gr,Xr){for(var r=V.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Xr=!1}if(jn=0,J=X=V=null,zt=!1,Qt=0,Ei.current=null,t===null||t.return===null){G=1,Xt=n,Y=null;break}e:{var o=e,i=t.return,u=t,s=n;if(n=ee,u.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,m=u,h=m.tag;if(!(m.mode&1)&&(h===0||h===11||h===15)){var p=m.alternate;p?(m.updateQueue=p.updateQueue,m.memoizedState=p.memoizedState,m.lanes=p.lanes):(m.updateQueue=null,m.memoizedState=null)}var w=_u(i);if(w!==null){w.flags&=-257,Nu(w,i,u,o,n),w.mode&1&&Cu(o,c,n),n=w,s=c;var k=n.updateQueue;if(k===null){var x=new Set;x.add(s),n.updateQueue=x}else k.add(s);break e}else{if(!(n&1)){Cu(o,c,n),zi();break e}s=Error(y(426))}}else if($&&u.mode&1){var D=_u(i);if(D!==null){!(D.flags&65536)&&(D.flags|=256),Nu(D,i,u,o,n),si(it(s,u));break e}}o=s=it(s,u),G!==4&&(G=2),Tt===null?Tt=[o]:Tt.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,n&=-n,o.lanes|=n;var f=za(o,s,n);yu(o,f);break e;case 1:u=s;var a=o.type,d=o.stateNode;if(!(o.flags&128)&&(typeof a.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(fn===null||!fn.has(d)))){o.flags|=65536,n&=-n,o.lanes|=n;var g=La(o,u,n);yu(o,g);break e}}o=o.return}while(o!==null)}Xa(t)}catch(E){n=E,Y===t&&t!==null&&(Y=t=t.return);continue}break}while(!0)}function Ka(){var e=Zr.current;return Zr.current=Gr,e===null?Gr:e}function zi(){(G===0||G===3||G===2)&&(G=4),q===null||!(Rn&268435455)&&!(fl&268435455)||tn(q,ee)}function br(e,n){var t=O;O|=2;var r=Ka();(q!==e||ee!==n)&&($e=null,Pn(e,n));do try{yd();break}catch(l){Qa(e,l)}while(!0);if(ci(),O=t,Zr.current=r,Y!==null)throw Error(y(261));return q=null,ee=0,G}function yd(){for(;Y!==null;)Ya(Y)}function wd(){for(;Y!==null&&!Wc();)Ya(Y)}function Ya(e){var n=Za(e.alternate,e,ve);e.memoizedProps=e.pendingProps,n===null?Xa(e):Y=n,Ei.current=null}function Xa(e){var n=e;do{var t=n.alternate;if(e=n.return,n.flags&32768){if(t=dd(t,n),t!==null){t.flags&=32767,Y=t;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{G=6,Y=null;return}}else if(t=fd(t,n,ve),t!==null){Y=t;return}if(n=n.sibling,n!==null){Y=n;return}Y=n=e}while(n!==null);G===0&&(G=5)}function En(e,n,t){var r=I,l=_e.transition;try{_e.transition=null,I=1,kd(e,n,t,r)}finally{_e.transition=l,I=r}return null}function kd(e,n,t,r){do et();while(ln!==null);if(O&6)throw Error(y(327));t=e.finishedWork;var l=e.finishedLanes;if(t===null)return null;if(e.finishedWork=null,e.finishedLanes=0,t===e.current)throw Error(y(177));e.callbackNode=null,e.callbackPriority=0;var o=t.lanes|t.childLanes;if(bc(e,o),e===q&&(Y=q=null,ee=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||gr||(gr=!0,Ja(Mr,function(){return et(),null})),o=(t.flags&15990)!==0,t.subtreeFlags&15990||o){o=_e.transition,_e.transition=null;var i=I;I=1;var u=O;O|=4,Ei.current=null,md(e,t),Va(t,e),$f(vo),Ir=!!ho,vo=ho=null,e.current=t,hd(t),Hc(),O=u,I=i,_e.transition=o}else e.current=t;if(gr&&(gr=!1,ln=e,qr=l),o=e.pendingLanes,o===0&&(fn=null),Yc(t.stateNode),me(e,K()),n!==null)for(r=e.onRecoverableError,t=0;t<n.length;t++)l=n[t],r(l.value,{componentStack:l.stack,digest:l.digest});if(Jr)throw Jr=!1,e=Io,Io=null,e;return qr&1&&e.tag!==0&&et(),o=e.pendingLanes,o&1?e===Fo?jt++:(jt=0,Fo=e):jt=0,yn(),null}function et(){if(ln!==null){var e=zs(qr),n=_e.transition,t=I;try{if(_e.transition=null,I=16>e?16:e,ln===null)var r=!1;else{if(e=ln,ln=null,qr=0,O&6)throw Error(y(331));var l=O;for(O|=4,C=e.current;C!==null;){var o=C,i=o.child;if(C.flags&16){var u=o.deletions;if(u!==null){for(var s=0;s<u.length;s++){var c=u[s];for(C=c;C!==null;){var m=C;switch(m.tag){case 0:case 11:case 15:Lt(8,m,o)}var h=m.child;if(h!==null)h.return=m,C=h;else for(;C!==null;){m=C;var p=m.sibling,w=m.return;if(Aa(m),m===c){C=null;break}if(p!==null){p.return=w,C=p;break}C=w}}}var k=o.alternate;if(k!==null){var x=k.child;if(x!==null){k.child=null;do{var D=x.sibling;x.sibling=null,x=D}while(x!==null)}}C=o}}if(o.subtreeFlags&2064&&i!==null)i.return=o,C=i;else e:for(;C!==null;){if(o=C,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Lt(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,C=f;break e}C=o.return}}var a=e.current;for(C=a;C!==null;){i=C;var d=i.child;if(i.subtreeFlags&2064&&d!==null)d.return=i,C=d;else e:for(i=a;C!==null;){if(u=C,u.flags&2048)try{switch(u.tag){case 0:case 11:case 15:cl(9,u)}}catch(E){H(u,u.return,E)}if(u===i){C=null;break e}var g=u.sibling;if(g!==null){g.return=u.return,C=g;break e}C=u.return}}if(O=l,yn(),Ue&&typeof Ue.onPostCommitFiberRoot=="function")try{Ue.onPostCommitFiberRoot(tl,e)}catch{}r=!0}return r}finally{I=t,_e.transition=n}}return!1}function Au(e,n,t){n=it(t,n),n=za(e,n,1),e=cn(e,n,1),n=ue(),e!==null&&(Zt(e,1,n),me(e,n))}function H(e,n,t){if(e.tag===3)Au(e,e,t);else for(;n!==null;){if(n.tag===3){Au(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(fn===null||!fn.has(r))){e=it(t,e),e=La(n,e,1),n=cn(n,e,1),e=ue(),n!==null&&(Zt(n,1,e),me(n,e));break}}n=n.return}}function Sd(e,n,t){var r=e.pingCache;r!==null&&r.delete(n),n=ue(),e.pingedLanes|=e.suspendedLanes&t,q===e&&(ee&t)===t&&(G===4||G===3&&(ee&130023424)===ee&&500>K()-_i?Pn(e,0):Ci|=t),me(e,n)}function Ga(e,n){n===0&&(e.mode&1?(n=ur,ur<<=1,!(ur&130023424)&&(ur=4194304)):n=1);var t=ue();e=Ye(e,n),e!==null&&(Zt(e,n,t),me(e,t))}function xd(e){var n=e.memoizedState,t=0;n!==null&&(t=n.retryLane),Ga(e,t)}function Ed(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(y(314))}r!==null&&r.delete(n),Ga(e,t)}var Za;Za=function(e,n,t){if(e!==null)if(e.memoizedProps!==n.pendingProps||de.current)fe=!0;else{if(!(e.lanes&t)&&!(n.flags&128))return fe=!1,cd(e,n,t);fe=!!(e.flags&131072)}else fe=!1,$&&n.flags&1048576&&ea(n,Wr,n.index);switch(n.lanes=0,n.tag){case 2:var r=n.type;Pr(e,n),e=n.pendingProps;var l=tt(n,oe.current);bn(n,t),l=yi(null,n,r,e,l,t);var o=wi();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,pe(r)?(o=!0,Br(n)):o=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pi(n),l.updater=al,n.stateNode=l,l._reactInternals=n,_o(n,r,e,t),n=zo(null,n,r,!0,o,t)):(n.tag=0,$&&o&&ii(n),ie(null,n,l,t),n=n.child),n;case 16:r=n.elementType;e:{switch(Pr(e,n),e=n.pendingProps,l=r._init,r=l(r._payload),n.type=r,l=n.tag=_d(r),e=Le(r,e),l){case 0:n=Po(null,n,r,e,t);break e;case 1:n=Lu(null,n,r,e,t);break e;case 11:n=Pu(null,n,r,e,t);break e;case 14:n=zu(null,n,r,Le(r.type,e),t);break e}throw Error(y(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Po(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Lu(e,n,r,l,t);case 3:e:{if(Oa(n),e===null)throw Error(y(387));r=n.pendingProps,o=n.memoizedState,l=o.element,ia(e,n),Kr(n,r,null,t);var i=n.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=o,n.memoizedState=o,n.flags&256){l=it(Error(y(423)),n),n=Tu(e,n,r,t,l);break e}else if(r!==l){l=it(Error(y(424)),n),n=Tu(e,n,r,t,l);break e}else for(ge=an(n.stateNode.containerInfo.firstChild),ye=n,$=!0,je=null,t=la(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(rt(),r===l){n=Xe(e,n,t);break e}ie(e,n,r,t)}n=n.child}return n;case 5:return ua(n),e===null&&xo(n),r=n.type,l=n.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,go(r,l)?i=null:o!==null&&go(r,o)&&(n.flags|=32),Ra(e,n),ie(e,n,i,t),n.child;case 6:return e===null&&xo(n),null;case 13:return Ma(e,n,t);case 4:return mi(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=lt(n,null,r,t):ie(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Pu(e,n,r,l,t);case 7:return ie(e,n,n.pendingProps,t),n.child;case 8:return ie(e,n,n.pendingProps.children,t),n.child;case 12:return ie(e,n,n.pendingProps.children,t),n.child;case 10:e:{if(r=n.type._context,l=n.pendingProps,o=n.memoizedProps,i=l.value,F(Hr,r._currentValue),r._currentValue=i,o!==null)if(Me(o.value,i)){if(o.children===l.children&&!de.current){n=Xe(e,n,t);break e}}else for(o=n.child,o!==null&&(o.return=n);o!==null;){var u=o.dependencies;if(u!==null){i=o.child;for(var s=u.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=He(-1,t&-t),s.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var m=c.pending;m===null?s.next=s:(s.next=m.next,m.next=s),c.pending=s}}o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),Eo(o.return,t,n),u.lanes|=t;break}s=s.next}}else if(o.tag===10)i=o.type===n.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(y(341));i.lanes|=t,u=i.alternate,u!==null&&(u.lanes|=t),Eo(i,t,n),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===n){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}ie(e,n,l.children,t),n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,bn(n,t),l=Ne(l),r=r(l),n.flags|=1,ie(e,n,r,t),n.child;case 14:return r=n.type,l=Le(r,n.pendingProps),l=Le(r.type,l),zu(e,n,r,l,t);case 15:return Ta(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Le(r,l),Pr(e,n),n.tag=1,pe(r)?(e=!0,Br(n)):e=!1,bn(n,t),Pa(n,r,l),_o(n,r,l,t),zo(null,n,r,!0,e,t);case 19:return Da(e,n,t);case 22:return ja(e,n,t)}throw Error(y(156,n.tag))};function Ja(e,n){return Cs(e,n)}function Cd(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(e,n,t,r){return new Cd(e,n,t,r)}function Li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function _d(e){if(typeof e=="function")return Li(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xo)return 11;if(e===Go)return 14}return 2}function pn(e,n){var t=e.alternate;return t===null?(t=Ce(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&14680064,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Tr(e,n,t,r,l,o){var i=2;if(r=e,typeof e=="function")Li(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case Un:return zn(t.children,l,o,n);case Yo:i=8,l|=8;break;case Xl:return e=Ce(12,t,n,l|2),e.elementType=Xl,e.lanes=o,e;case Gl:return e=Ce(13,t,n,l),e.elementType=Gl,e.lanes=o,e;case Zl:return e=Ce(19,t,n,l),e.elementType=Zl,e.lanes=o,e;case us:return dl(t,l,o,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case os:i=10;break e;case is:i=9;break e;case Xo:i=11;break e;case Go:i=14;break e;case be:i=16,r=null;break e}throw Error(y(130,e==null?e:typeof e,""))}return n=Ce(i,t,n,l),n.elementType=e,n.type=r,n.lanes=o,n}function zn(e,n,t,r){return e=Ce(7,e,r,n),e.lanes=t,e}function dl(e,n,t,r){return e=Ce(22,e,r,n),e.elementType=us,e.lanes=t,e.stateNode={isHidden:!1},e}function Hl(e,n,t){return e=Ce(6,e,null,n),e.lanes=t,e}function Ql(e,n,t){return n=Ce(4,e.children!==null?e.children:[],e.key,n),n.lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Nd(e,n,t,r,l){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_l(0),this.expirationTimes=_l(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_l(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ti(e,n,t,r,l,o,i,u,s){return e=new Nd(e,n,t,u,s),n===1?(n=1,o===!0&&(n|=8)):n=0,o=Ce(3,null,null,n),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},pi(o),e}function Pd(e,n,t){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Fn,key:r==null?null:""+r,children:e,containerInfo:n,implementation:t}}function qa(e){if(!e)return hn;e=e._reactInternals;e:{if(Dn(e)!==e||e.tag!==1)throw Error(y(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(pe(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(y(171))}if(e.tag===1){var t=e.type;if(pe(t))return qs(e,t,n)}return n}function ba(e,n,t,r,l,o,i,u,s){return e=Ti(t,r,!0,e,l,o,i,u,s),e.context=qa(null),t=e.current,r=ue(),l=dn(t),o=He(r,l),o.callback=n??null,cn(t,o,l),e.current.lanes=l,Zt(e,l,r),me(e,r),e}function pl(e,n,t,r){var l=n.current,o=ue(),i=dn(l);return t=qa(t),n.context===null?n.context=t:n.pendingContext=t,n=He(o,i),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),e=cn(l,n,i),e!==null&&(Oe(e,l,i,o),Cr(e,l,i)),i}function el(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function $u(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<n?t:n}}function ji(e,n){$u(e,n),(e=e.alternate)&&$u(e,n)}function zd(){return null}var ec=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ri(e){this._internalRoot=e}ml.prototype.render=Ri.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(y(409));pl(e,n,null,null)};ml.prototype.unmount=Ri.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;On(function(){pl(null,e,null,null)}),n[Ke]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var n=js();e={blockedOn:null,target:e,priority:n};for(var t=0;t<nn.length&&n!==0&&n<nn[t].priority;t++);nn.splice(t,0,e),t===0&&Os(e)}};function Oi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Bu(){}function Ld(e,n,t,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=el(i);o.call(c)}}var i=ba(n,r,e,0,null,!1,!1,"",Bu);return e._reactRootContainer=i,e[Ke]=i.current,$t(e.nodeType===8?e.parentNode:e),On(),i}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var u=r;r=function(){var c=el(s);u.call(c)}}var s=Ti(e,0,!1,null,null,!1,!1,"",Bu);return e._reactRootContainer=s,e[Ke]=s.current,$t(e.nodeType===8?e.parentNode:e),On(function(){pl(n,s,t,r)}),s}function vl(e,n,t,r,l){var o=t._reactRootContainer;if(o){var i=o;if(typeof l=="function"){var u=l;l=function(){var s=el(i);u.call(s)}}pl(n,i,e,l)}else i=Ld(t,n,e,l,r);return el(i)}Ls=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var t=St(n.pendingLanes);t!==0&&(qo(n,t|1),me(n,K()),!(O&6)&&(ut=K()+500,yn()))}break;case 13:On(function(){var r=Ye(e,1);if(r!==null){var l=ue();Oe(r,e,1,l)}}),ji(e,1)}};bo=function(e){if(e.tag===13){var n=Ye(e,134217728);if(n!==null){var t=ue();Oe(n,e,134217728,t)}ji(e,134217728)}};Ts=function(e){if(e.tag===13){var n=dn(e),t=Ye(e,n);if(t!==null){var r=ue();Oe(t,e,n,r)}ji(e,n)}};js=function(){return I};Rs=function(e,n){var t=I;try{return I=e,n()}finally{I=t}};io=function(e,n,t){switch(n){case"input":if(bl(e,t),n=t.name,t.type==="radio"&&n!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<t.length;n++){var r=t[n];if(r!==e&&r.form===e.form){var l=il(r);if(!l)throw Error(y(90));as(r),bl(r,l)}}}break;case"textarea":fs(e,t);break;case"select":n=t.value,n!=null&&Gn(e,!!t.multiple,n,!1)}};ys=Ni;ws=On;var Td={usingClientEntryPoint:!1,Events:[qt,Vn,il,vs,gs,Ni]},yt={findFiberByHostInstance:Cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},jd={bundleType:yt.bundleType,version:yt.version,rendererPackageName:yt.rendererPackageName,rendererConfig:yt.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xs(e),e===null?null:e.stateNode},findFiberByHostInstance:yt.findFiberByHostInstance||zd,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yr.isDisabled&&yr.supportsFiber)try{tl=yr.inject(jd),Ue=yr}catch{}}ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Td;ke.createPortal=function(e,n){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oi(n))throw Error(y(200));return Pd(e,n,null,t)};ke.createRoot=function(e,n){if(!Oi(e))throw Error(y(299));var t=!1,r="",l=ec;return n!=null&&(n.unstable_strictMode===!0&&(t=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),n=Ti(e,1,!1,null,null,t,!1,r,l),e[Ke]=n.current,$t(e.nodeType===8?e.parentNode:e),new Ri(n)};ke.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(y(188)):(e=Object.keys(e).join(","),Error(y(268,e)));return e=xs(n),e=e===null?null:e.stateNode,e};ke.flushSync=function(e){return On(e)};ke.hydrate=function(e,n,t){if(!hl(n))throw Error(y(200));return vl(null,e,n,!0,t)};ke.hydrateRoot=function(e,n,t){if(!Oi(e))throw Error(y(405));var r=t!=null&&t.hydratedSources||null,l=!1,o="",i=ec;if(t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),n=ba(n,null,e,1,t??null,l,!1,o,i),e[Ke]=n.current,$t(e),r)for(e=0;e<r.length;e++)t=r[e],l=t._getVersion,l=l(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,l]:n.mutableSourceEagerHydrationData.push(t,l);return new ml(n)};ke.render=function(e,n,t){if(!hl(n))throw Error(y(200));return vl(null,e,n,!1,t)};ke.unmountComponentAtNode=function(e){if(!hl(e))throw Error(y(40));return e._reactRootContainer?(On(function(){vl(null,null,e,!1,function(){e._reactRootContainer=null,e[Ke]=null})}),!0):!1};ke.unstable_batchedUpdates=Ni;ke.unstable_renderSubtreeIntoContainer=function(e,n,t,r){if(!hl(t))throw Error(y(200));if(e==null||e._reactInternals===void 0)throw Error(y(38));return vl(e,n,t,!1,r)};ke.version="18.3.1-next-f1338f8080-20240426";function nc(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nc)}catch(e){console.error(e)}}nc(),ns.exports=ke;var Rd=ns.exports,Vu=Rd;Kl.createRoot=Vu.createRoot,Kl.hydrateRoot=Vu.hydrateRoot;function Od(e){const n=e==0?0:Math.floor(Math.log(e)/Math.log(1024));return+(e/Math.pow(1024,n)).toFixed(2)*1+["B","kB","MB","GB","TB"][n]}function Md({text:e,percentage:n,total:t}){return n??(n=0),N.jsx("div",{className:"w-full bg-gray-100 dark:bg-gray-700 text-left rounded-lg overflow-hidden mb-0.5",children:N.jsxs("div",{className:"bg-blue-400 whitespace-nowrap px-1 text-sm",style:{width:`${n}%`},children:[e," (",n.toFixed(2),"%",isNaN(t)?"":` of ${Od(t)}`,")"]})})}const Dd="https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/hopper.webm",tc=M.forwardRef(({onInputChange:e,onTimeUpdate:n,...t},r)=>{var d,g,E,P;const[l,o]=M.useState(!1),i=M.useRef(null),u=M.useRef(null),s=M.useRef(null),c=M.useRef(0);M.useImperativeHandle(r,()=>({setMediaTime(v){var S,L;(S=u.current)!=null&&S.src?u.current.currentTime=v:(L=s.current)!=null&&L.src&&(s.current.currentTime=v),c.current=v}}));const m=(v,S)=>{const L=new Blob([v.slice(0)],{type:S}),z=URL.createObjectURL(L);D(v),S.startsWith("audio/")?(s.current.pause(),s.current.removeAttribute("src"),s.current.load(),u.current.src=z):S.startsWith("video/")?(u.current.pause(),u.current.removeAttribute("src"),u.current.load(),s.current.src=z):alert(`Unsupported file type: ${S}`)},h=v=>{if(!v)return;const S=new FileReader;S.onload=L=>{m(L.target.result,v.type)},S.readAsArrayBuffer(v)},p=v=>{h(v.target.files[0])},w=v=>{v.preventDefault()},k=v=>{v.preventDefault(),o(!1),h(v.dataTransfer.files[0])},x=v=>{v.target.tagName==="VIDEO"||v.target.tagName==="AUDIO"?(v.preventDefault(),i.current.click()):(v.target.tagName==="INPUT"||i.current.click(),v.stopPropagation())},D=async v=>{const S=new(window.AudioContext||window.webkitAudioContext)({sampleRate:16e3});try{const L=await S.decodeAudioData(v);let z;if(L.numberOfChannels===2){const he=Math.sqrt(2),Ze=L.getChannelData(0),wn=L.getChannelData(1);z=new Float32Array(Ze.length);for(let Je=0;Je<L.length;++Je)z[Je]=he*(Ze[Je]+wn[Je])/2}else z=L.getChannelData(0);e(z)}catch(L){alert(L)}},f=M.useRef(),a=M.useCallback(()=>{var S,L;let v;(S=u.current)!=null&&S.src?v=u.current:(L=s.current)!=null&&L.src&&(v=s.current),v&&c.current!==v.currentTime&&(c.current=v.currentTime,n(v.currentTime)),f.current=requestAnimationFrame(a)},[n]);return M.useEffect(()=>(f.current=requestAnimationFrame(a),()=>{cancelAnimationFrame(f.current)}),[a]),N.jsxs("div",{...t,onClick:x,onDragOver:w,onDrop:k,onDragEnter:v=>o(!0),onDragLeave:v=>o(!1),children:[N.jsx("input",{type:"file",accept:"audio/*,video/*",onChange:p,ref:i,className:"hidden"}),N.jsx("audio",{ref:u,controls:!0,style:{display:(d=u.current)!=null&&d.src?"block":"none"},className:"w-full max-h-full"}),N.jsx("video",{ref:s,controls:!0,style:{display:(g=s.current)!=null&&g.src?"block":"none"},className:"w-full max-h-full"}),!((E=u.current)!=null&&E.src)&&!((P=s.current)!=null&&P.src)&&N.jsxs("div",{className:"w-full flex flex-col items-center justify-center border-2 border-dashed border-gray-300 rounded-md h-[250px]",style:{borderColor:l?"blue":"lightgray"},children:[N.jsxs("span",{className:"text-gray-600 text-center",children:[N.jsx("u",{children:"Drag & drop"})," or ",N.jsx("u",{children:"click"}),N.jsx("br",{}),"to select media"]}),N.jsxs("span",{className:"text-gray-500 text-sm hover:text-gray-800 mt-2",onClick:async v=>{v.stopPropagation();const S=await fetch(Dd).then(L=>L.arrayBuffer());s.current.src=URL.createObjectURL(new Blob([S],{type:"video/mp4"})),m(S,"video/mp4")},children:["(or ",N.jsx("u",{children:"try an example"}),")"]})]})]})});tc.displayName="MediaInput";const Id=({chunk:e,currentTime:n,onClick:t,...r})=>{const l=M.useRef(null),{text:o,timestamp:i}=e,[u,s]=i,c=u<=n&&n<s;return M.useEffect(()=>{l.current&&c&&l.current.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},[c]),N.jsxs("span",{...r,children:[o.startsWith(" ")?" ":"",N.jsx("span",{ref:l,onClick:t,className:"text-md text-gray-600 cursor-pointer hover:text-red-600",title:i.map(m=>m.toFixed(2)).join(" → "),style:{textDecoration:c?"underline":"none",textShadow:c?"0 0 1px #000":"none"},children:o.trim()})]})},Fd=({transcript:e,segments:n,currentTime:t,setCurrentTime:r,...l})=>{const o=M.useMemo(()=>JSON.stringify({...e,segments:n},null,2).replace(/( {4}"timestamp": )\[\s+(\S+)\s+(\S+)\s+\]/gm,"$1[$2 $3]"),[e,n]),i=M.useMemo(()=>{let s=0;const c=e.chunks,m=[];for(const h of n){const{label:p,end:w}=h;if(p==="NO_SPEAKER")continue;const k=[];for(let x=s;x<c.length;++x){const D=c[x];if(D.timestamp[1]<=w)k.push(D);else{s=x;break}}k.length>0&&m.push({...h,chunks:k})}return m},[e,n]),u=()=>{const s=new Blob([o],{type:"application/json"}),c=URL.createObjectURL(s),m=document.createElement("a");m.href=c,m.download="transcript.json",m.click(),URL.revokeObjectURL(c)};return N.jsxs(N.Fragment,{children:[N.jsx("div",{...l,children:i.map(({label:s,start:c,end:m,chunks:h},p)=>N.jsxs("div",{className:"border-t py-2",children:[N.jsxs("div",{className:"flex justify-between",children:[N.jsx("label",{className:"text-xs font-medium",children:s}),N.jsxs("label",{className:"text-xs",children:[c.toFixed(2)," → ",m.toFixed(2)]})]}),N.jsx("div",{children:h.map((w,k)=>N.jsx(Id,{chunk:w,currentTime:t,onClick:()=>r(w.timestamp[0])},k))})]},p))}),N.jsx("div",{className:"flex justify-center border-t text-sm text-gray-600 max-h-[150px] overflow-y-auto p-2 scrollbar-thin",children:N.jsxs("button",{className:"flex items-center border px-2 py-1 rounded-lg bg-green-400 text-white hover:bg-green-500",onClick:u,children:[N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6 mr-1",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})}),"Download transcript"]})})]})};function Ud(e){return e=e.toLowerCase(),(e.match(/\w+.?/g)||[]).map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join("")}const Wu={en:"english",zh:"chinese",de:"german",es:"spanish/castilian",ru:"russian",ko:"korean",fr:"french",ja:"japanese",pt:"portuguese",tr:"turkish",pl:"polish",ca:"catalan/valencian",nl:"dutch/flemish",ar:"arabic",sv:"swedish",it:"italian",id:"indonesian",hi:"hindi",fi:"finnish",vi:"vietnamese",he:"hebrew",uk:"ukrainian",el:"greek",ms:"malay",cs:"czech",ro:"romanian/moldavian/moldovan",da:"danish",hu:"hungarian",ta:"tamil",no:"norwegian",th:"thai",ur:"urdu",hr:"croatian",bg:"bulgarian",lt:"lithuanian",la:"latin",mi:"maori",ml:"malayalam",cy:"welsh",sk:"slovak",te:"telugu",fa:"persian",lv:"latvian",bn:"bengali",sr:"serbian",az:"azerbaijani",sl:"slovenian",kn:"kannada",et:"estonian",mk:"macedonian",br:"breton",eu:"basque",is:"icelandic",hy:"armenian",ne:"nepali",mn:"mongolian",bs:"bosnian",kk:"kazakh",sq:"albanian",sw:"swahili",gl:"galician",mr:"marathi",pa:"punjabi/panjabi",si:"sinhala/sinhalese",km:"khmer",sn:"shona",yo:"yoruba",so:"somali",af:"afrikaans",oc:"occitan",ka:"georgian",be:"belarusian",tg:"tajik",sd:"sindhi",gu:"gujarati",am:"amharic",yi:"yiddish",lo:"lao",uz:"uzbek",fo:"faroese",ht:"haitian creole/haitian",ps:"pashto/pushto",tk:"turkmen",nn:"nynorsk",mt:"maltese",sa:"sanskrit",lb:"luxembourgish/letzeburgesch",my:"myanmar/burmese",bo:"tibetan",tl:"tagalog",mg:"malagasy",as:"assamese",tt:"tatar",haw:"hawaiian",ln:"lingala",ha:"hausa",ba:"bashkir",jw:"javanese",su:"sundanese"};function Ad({language:e,setLanguage:n,...t}){const r=o=>{n(o.target.value)},l=Object.values(Wu).map(Ud);return N.jsx("select",{...t,value:e,onChange:r,children:Object.keys(Wu).map((o,i)=>N.jsx("option",{value:o,children:l[i]},o))})}async function $d(){if(!navigator.gpu)return!1;try{return!!await navigator.gpu.requestAdapter()}catch{return!1}}function Bd(){const e=M.useRef(null),[n,t]=M.useState(null),[r,l]=M.useState(""),[o,i]=M.useState([]),u=M.useRef(null),[s,c]=M.useState(null),[m,h]=M.useState("en"),[p,w]=M.useState(null),[k,x]=M.useState(null),[D,f]=M.useState(0),[a,d]=M.useState("webgpu"),[g,E]=M.useState("gpu"in navigator?196:77);M.useEffect(()=>{$d().then(v=>{E(v?196:77),d(v?"webgpu":"wasm")})},[]),M.useEffect(()=>{e.current||(e.current=new Worker(new URL("/assets/worker-DmEZqSml.js",import.meta.url),{type:"module"}));const v=S=>{switch(S.data.status){case"loading":t("loading"),l(S.data.data);break;case"initiate":i(L=>[...L,S.data]);break;case"progress":i(L=>L.map(z=>z.file===S.data.file?{...z,...S.data}:z));break;case"done":i(L=>L.filter(z=>z.file!==S.data.file));break;case"loaded":t("ready");break;case"complete":w(S.data.result),x(S.data.time),t("ready");break}};return e.current.addEventListener("message",v),()=>{e.current.removeEventListener("message",v)}},[]);const P=M.useCallback(()=>{w(null),x(null),n===null?(t("loading"),e.current.postMessage({type:"load",data:{device:a}})):(t("running"),e.current.postMessage({type:"run",data:{audio:s,language:m}}))},[n,s,m,a]);return N.jsxs("div",{className:"flex flex-col h-screen mx-auto text-gray-800 dark:text-gray-200 bg-white dark:bg-gray-900 max-w-[600px]",children:[n==="loading"&&N.jsx("div",{className:"flex justify-center items-center fixed w-screen h-screen bg-black z-10 bg-opacity-[92%] top-0 left-0",children:N.jsxs("div",{className:"w-[500px]",children:[N.jsx("p",{className:"text-center mb-1 text-white text-md",children:r}),o.map(({file:v,progress:S,total:L},z)=>N.jsx(Md,{text:v,percentage:S,total:L},z))]})}),N.jsxs("div",{className:"my-auto",children:[N.jsxs("div",{className:"flex flex-col items-center mb-2 text-center",children:[N.jsx("h1",{className:"text-5xl font-bold mb-2",children:"Whisper Diarization"}),N.jsxs("h2",{className:"text-xl font-semibold",children:["In-browser automatic speech recognition w/ ",N.jsx("br",{}),"word-level timestamps and speaker segmentation"]})]}),N.jsxs("div",{className:"w-full min-h-[220px] flex flex-col justify-center items-center",children:[!s&&N.jsxs("p",{className:"mb-2",children:["You are about to download ",N.jsx("a",{href:"https://huggingface.co/onnx-community/whisper-base_timestamped",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"whisper-base"})," and ",N.jsx("a",{href:"https://huggingface.co/onnx-community/pyannote-segmentation-3.0",target:"_blank",rel:"noreferrer",className:"font-medium underline",children:"pyannote-segmentation-3.0"}),", two powerful speech recognition models for generating word-level timestamps across 100 different languages and speaker segmentation, respectively. Once loaded, the models (",g,"MB + 6MB) will be cached and reused when you revisit the page.",N.jsx("br",{}),N.jsx("br",{}),"Everything runs locally in your browser using ",N.jsx("a",{href:"https://huggingface.co/docs/transformers.js",target:"_blank",rel:"noreferrer",className:"underline",children:"🤗 Transformers.js"})," and ONNX Runtime Web, meaning no API calls are made to a server for inference. You can even disconnect from the internet after the model has loaded!"]}),N.jsxs("div",{className:"flex flex-col w-full m-3 max-w-[520px]",children:[N.jsx("span",{className:"text-sm mb-0.5",children:"Input audio/video"}),N.jsx(tc,{ref:u,className:"flex items-center border rounded-md cursor-pointer min-h-[100px] max-h-[500px] overflow-hidden",onInputChange:v=>{w(null),c(v)},onTimeUpdate:v=>f(v)})]}),N.jsxs("div",{className:"relative w-full flex justify-center items-center",children:[N.jsx("button",{className:"border px-4 py-2 rounded-lg bg-blue-400 text-white hover:bg-blue-500 disabled:bg-blue-100 disabled:cursor-not-allowed select-none",onClick:P,disabled:n==="running"||n!==null&&s===null,children:n===null?"Load model":n==="running"?"Running...":"Run model"}),n!==null&&N.jsxs("div",{className:"absolute right-0 bottom-0",children:[N.jsx("span",{className:"text-xs",children:"Language:"}),N.jsx("br",{}),N.jsx(Ad,{className:"border rounded-lg p-1 max-w-[100px]",language:m,setLanguage:h})]})]}),p&&k&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"w-full mt-4 border rounded-md",children:N.jsx(Fd,{className:"p-2 max-h-[200px] overflow-y-auto scrollbar-thin select-none",transcript:p.transcript,segments:p.segments,currentTime:D,setCurrentTime:v=>{f(v),u.current.setMediaTime(v)}})}),N.jsxs("p",{className:"text-sm text-gray-600 text-end p-1",children:["Generation time: ",N.jsxs("span",{className:"text-gray-800 font-semibold",children:[k.toFixed(2),"ms"]})]})]})]})]})]})}Kl.createRoot(document.getElementById("root")).render(N.jsx(kc.StrictMode,{children:N.jsx(Bd,{})})); |