mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-12 20:27:43 +08:00
273 lines
241 KiB
JavaScript
273 lines
241 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function $d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var eu={exports:{}},bl={},tu={exports:{}},D={};/**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var Nr=Symbol.for("react.element"),Fd=Symbol.for("react.portal"),Ad=Symbol.for("react.fragment"),Ud=Symbol.for("react.strict_mode"),Bd=Symbol.for("react.profiler"),Vd=Symbol.for("react.provider"),Hd=Symbol.for("react.context"),Wd=Symbol.for("react.forward_ref"),Qd=Symbol.for("react.suspense"),Kd=Symbol.for("react.memo"),Jd=Symbol.for("react.lazy"),Ti=Symbol.iterator;function Yd(e){return e===null||typeof e!="object"?null:(e=Ti&&e[Ti]||e["@@iterator"],typeof e=="function"?e:null)}var nu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ru=Object.assign,lu={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=lu,this.updater=n||nu}Ln.prototype.isReactComponent={};Ln.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ou(){}ou.prototype=Ln.prototype;function Rs(e,t,n){this.props=e,this.context=t,this.refs=lu,this.updater=n||nu}var Ls=Rs.prototype=new ou;Ls.constructor=Rs;ru(Ls,Ln.prototype);Ls.isPureReactComponent=!0;var zi=Array.isArray,su=Object.prototype.hasOwnProperty,Ts={current:null},iu={key:!0,ref:!0,__self:!0,__source:!0};function au(e,t,n){var r,l={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)su.call(t,r)&&!iu.hasOwnProperty(r)&&(l[r]=t[r]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var u=Array(i),c=0;c<i;c++)u[c]=arguments[c+2];l.children=u}if(e&&e.defaultProps)for(r in i=e.defaultProps,i)l[r]===void 0&&(l[r]=i[r]);return{$$typeof:Nr,type:e,key:o,ref:s,props:l,_owner:Ts.current}}function Gd(e,t){return{$$typeof:Nr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function zs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nr}function Xd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Oi=/\/+/g;function to(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xd(""+e.key):t.toString(36)}function Yr(e,t,n,r,l){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Nr:case Fd:s=!0}}if(s)return s=e,l=l(s),e=r===""?"."+to(s,0):r,zi(l)?(n="",e!=null&&(n=e.replace(Oi,"$&/")+"/"),Yr(l,t,n,"",function(c){return c})):l!=null&&(zs(l)&&(l=Gd(l,n+(!l.key||s&&s.key===l.key?"":(""+l.key).replace(Oi,"$&/")+"/")+e)),t.push(l)),1;if(s=0,r=r===""?".":r+":",zi(e))for(var i=0;i<e.length;i++){o=e[i];var u=r+to(o,i);s+=Yr(o,t,n,u,l)}else if(u=Yd(e),typeof u=="function")for(e=u.call(e),i=0;!(o=e.next()).done;)o=o.value,u=r+to(o,i++),s+=Yr(o,t,n,u,l);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Tr(e,t,n){if(e==null)return e;var r=[],l=0;return Yr(e,r,"","",function(o){return t.call(n,o,l++)}),r}function Zd(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ge={current:null},Gr={transition:null},qd={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Gr,ReactCurrentOwner:Ts};function uu(){throw Error("act(...) is not supported in production builds of React.")}D.Children={map:Tr,forEach:function(e,t,n){Tr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Tr(e,function(){t++}),t},toArray:function(e){return Tr(e,function(t){return t})||[]},only:function(e){if(!zs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=Ln;D.Fragment=Ad;D.Profiler=Bd;D.PureComponent=Rs;D.StrictMode=Ud;D.Suspense=Qd;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qd;D.act=uu;D.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=ru({},e.props),l=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ts.current),t.key!==void 0&&(l=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(u in t)su.call(t,u)&&!iu.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&i!==void 0?i[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){i=Array(u);for(var c=0;c<u;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:Nr,type:e.type,key:l,ref:o,props:r,_owner:s}};D.createContext=function(e){return e={$$typeof:Hd,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Vd,_context:e},e.Consumer=e};D.createElement=au;D.createFactory=function(e){var t=au.bind(null,e);return t.type=e,t};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:Wd,render:e}};D.isValidElement=zs;D.lazy=function(e){return{$$typeof:Jd,_payload:{_status:-1,_result:e},_init:Zd}};D.memo=function(e,t){return{$$typeof:Kd,type:e,compare:t===void 0?null:t}};D.startTransition=function(e){var t=Gr.transition;Gr.transition={};try{e()}finally{Gr.transition=t}};D.unstable_act=uu;D.useCallback=function(e,t){return ge.current.useCallback(e,t)};D.useContext=function(e){return ge.current.useContext(e)};D.useDebugValue=function(){};D.useDeferredValue=function(e){return ge.current.useDeferredValue(e)};D.useEffect=function(e,t){return ge.current.useEffect(e,t)};D.useId=function(){return ge.current.useId()};D.useImperativeHandle=function(e,t,n){return ge.current.useImperativeHandle(e,t,n)};D.useInsertionEffect=function(e,t){return ge.current.useInsertionEffect(e,t)};D.useLayoutEffect=function(e,t){return ge.current.useLayoutEffect(e,t)};D.useMemo=function(e,t){return ge.current.useMemo(e,t)};D.useReducer=function(e,t,n){return ge.current.useReducer(e,t,n)};D.useRef=function(e){return ge.current.useRef(e)};D.useState=function(e){return ge.current.useState(e)};D.useSyncExternalStore=function(e,t,n){return ge.current.useSyncExternalStore(e,t,n)};D.useTransition=function(){return ge.current.useTransition()};D.version="18.3.1";tu.exports=D;var g=tu.exports;const ef=$d(g);/**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var tf=g,nf=Symbol.for("react.element"),rf=Symbol.for("react.fragment"),lf=Object.prototype.hasOwnProperty,of=tf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sf={key:!0,ref:!0,__self:!0,__source:!0};function cu(e,t,n){var r,l={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)lf.call(t,r)&&!sf.hasOwnProperty(r)&&(l[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)l[r]===void 0&&(l[r]=t[r]);return{$$typeof:nf,type:e,key:o,ref:s,props:l,_owner:of.current}}bl.Fragment=rf;bl.jsx=cu;bl.jsxs=cu;eu.exports=bl;var a=eu.exports,zo={},du={exports:{}},Re={},fu={exports:{}},pu={};/**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/(function(e){function t(L,E){var z=L.length;L.push(E);e:for(;0<z;){var U=z-1>>>1,W=L[U];if(0<l(W,E))L[U]=E,L[z]=W,z=U;else break e}}function n(L){return L.length===0?null:L[0]}function r(L){if(L.length===0)return null;var E=L[0],z=L.pop();if(z!==E){L[0]=z;e:for(var U=0,W=L.length,xe=W>>>1;U<xe;){var me=2*(U+1)-1,vt=L[me],C=me+1,I=L[C];if(0>l(vt,z))C<W&&0>l(I,vt)?(L[U]=I,L[C]=z,U=C):(L[U]=vt,L[me]=z,U=me);else if(C<W&&0>l(I,z))L[U]=I,L[C]=z,U=C;else break e}}return E}function l(L,E){var z=L.sortIndex-E.sortIndex;return z!==0?z:L.id-E.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,i=s.now();e.unstable_now=function(){return s.now()-i}}var u=[],c=[],y=1,p=null,h=3,v=!1,x=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,f=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(L){for(var E=n(c);E!==null;){if(E.callback===null)r(c);else if(E.startTime<=L)r(c),E.sortIndex=E.expirationTime,t(u,E);else break;E=n(c)}}function k(L){if(w=!1,m(L),!x)if(n(u)!==null)x=!0,yt(S);else{var E=n(c);E!==null&>(k,E.startTime-L)}}function S(L,E){x=!1,w&&(w=!1,f(P),P=-1),v=!0;var z=h;try{for(m(E),p=n(u);p!==null&&(!(p.expirationTime>E)||L&&!pe());){var U=p.callback;if(typeof U=="function"){p.callback=null,h=p.priorityLevel;var W=U(p.expirationTime<=E);E=e.unstable_now(),typeof W=="function"?p.callback=W:p===n(u)&&r(u),m(E)}else r(u);p=n(u)}if(p!==null)var xe=!0;else{var me=n(c);me!==null&>(k,me.startTime-E),xe=!1}return xe}finally{p=null,h=z,v=!1}}var _=!1,R=null,P=-1,b=5,O=-1;function pe(){return!(e.unstable_now()-O<b)}function oe(){if(R!==null){var L=e.unstable_now();O=L;var E=!0;try{E=R(!0,L)}finally{E?Je():(_=!1,R=null)}}else _=!1}var Je;if(typeof d=="function")Je=function(){d(oe)};else if(typeof MessageChannel<"u"){var At=new MessageChannel,tn=At.port2;At.port1.onmessage=oe,Je=function(){tn.postMessage(null)}}else Je=function(){N(oe,0)};function yt(L){R=L,_||(_=!0,Je())}function gt(L,E){P=N(function(){L(e.unstable_now())},E)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(L){L.callback=null},e.unstable_continueExecution=function(){x||v||(x=!0,yt(S))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(L){switch(h){case 1:case 2:case 3:var E=3;break;default:E=h}var z=h;h=E;try{return L()}finally{h=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,E){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var z=h;h=L;try{return E()}finally{h=z}},e.unstable_scheduleCallback=function(L,E,z){var U=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?U+z:U):z=U,L){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=z+W,L={id:y++,callback:E,priorityLevel:L,startTime:z,expirationTime:W,sortIndex:-1},z>U?(L.sortIndex=z,t(c,L),n(u)===null&&L===n(c)&&(w?(f(P),P=-1):w=!0,gt(k,z-U))):(L.sortIndex=W,t(u,L),x||v||(x=!0,yt(S))),L},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(L){var E=h;return function(){var z=h;h=E;try{return L.apply(this,arguments)}finally{h=z}}}})(pu);fu.exports=pu;var af=fu.exports;/**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var uf=g,Pe=af;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mu=new Set,lr={};function qt(e,t){Sn(e,t),Sn(e+"Capture",t)}function Sn(e,t){for(lr[e]=t,e=0;e<t.length;e++)mu.add(t[e])}var ut=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Oo=Object.prototype.hasOwnProperty,cf=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ii={},Di={};function df(e){return Oo.call(Di,e)?!0:Oo.call(Ii,e)?!1:cf.test(e)?Di[e]=!0:(Ii[e]=!0,!1)}function ff(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function pf(e,t,n,r){if(t===null||typeof t>"u"||ff(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ve(e,t,n,r,l,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ae={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ae[e]=new ve(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ae[t]=new ve(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ae[e]=new ve(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ae[e]=new ve(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ae[e]=new ve(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ae[e]=new ve(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ae[e]=new ve(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ae[e]=new ve(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ae[e]=new ve(e,5,!1,e.toLowerCase(),null,!1,!1)});var Os=/[\-:]([a-z])/g;function Is(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Os,Is);ae[t]=new ve(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Os,Is);ae[t]=new ve(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Os,Is);ae[t]=new ve(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ae[e]=new ve(e,1,!1,e.toLowerCase(),null,!1,!1)});ae.xlinkHref=new ve("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ae[e]=new ve(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ds(e,t,n,r){var l=ae.hasOwnProperty(t)?ae[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(pf(t,n,l,r)&&(n=null),r||l===null?df(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var mt=uf.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zr=Symbol.for("react.element"),ln=Symbol.for("react.portal"),on=Symbol.for("react.fragment"),bs=Symbol.for("react.strict_mode"),Io=Symbol.for("react.profiler"),hu=Symbol.for("react.provider"),yu=Symbol.for("react.context"),Ms=Symbol.for("react.forward_ref"),Do=Symbol.for("react.suspense"),bo=Symbol.for("react.suspense_list"),$s=Symbol.for("react.memo"),kt=Symbol.for("react.lazy"),gu=Symbol.for("react.offscreen"),bi=Symbol.iterator;function bn(e){return e===null||typeof e!="object"?null:(e=bi&&e[bi]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,no;function Wn(e){if(no===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);no=t&&t[1]||""}return`
|
|
`+no+e}var ro=!1;function lo(e,t){if(!e||ro)return"";ro=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var l=c.stack.split(`
|
|
`),o=r.stack.split(`
|
|
`),s=l.length-1,i=o.length-1;1<=s&&0<=i&&l[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(l[s]!==o[i]){if(s!==1||i!==1)do if(s--,i--,0>i||l[s]!==o[i]){var u=`
|
|
`+l[s].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=s&&0<=i);break}}}finally{ro=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wn(e):""}function mf(e){switch(e.tag){case 5:return Wn(e.type);case 16:return Wn("Lazy");case 13:return Wn("Suspense");case 19:return Wn("SuspenseList");case 0:case 2:case 15:return e=lo(e.type,!1),e;case 11:return e=lo(e.type.render,!1),e;case 1:return e=lo(e.type,!0),e;default:return""}}function Mo(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 on:return"Fragment";case ln:return"Portal";case Io:return"Profiler";case bs:return"StrictMode";case Do:return"Suspense";case bo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yu:return(e.displayName||"Context")+".Consumer";case hu:return(e._context.displayName||"Context")+".Provider";case Ms:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $s:return t=e.displayName||null,t!==null?t:Mo(e.type)||"Memo";case kt:t=e._payload,e=e._init;try{return Mo(e(t))}catch{}}return null}function hf(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Mo(t);case 8:return t===bs?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vu(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yf(e){var t=vu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Or(e){e._valueTracker||(e._valueTracker=yf(e))}function xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vu(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ul(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 $o(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mi(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function wu(e,t){t=t.checked,t!=null&&Ds(e,"checked",t,!1)}function Fo(e,t){wu(e,t);var n=Dt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ao(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ao(e,t.type,Dt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $i(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ao(e,t,n){(t!=="number"||ul(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qn=Array.isArray;function gn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Dt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,r&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Uo(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fi(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(j(92));if(Qn(n)){if(1<n.length)throw Error(j(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Dt(n)}}function ku(e,t){var n=Dt(t.value),r=Dt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ai(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Nu(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 Bo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nu(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ir,Su=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,l)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ir=Ir||document.createElement("div"),Ir.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ir.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Yn={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},gf=["Webkit","ms","Moz","O"];Object.keys(Yn).forEach(function(e){gf.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yn[t]=Yn[e]})});function ju(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Yn.hasOwnProperty(e)&&Yn[e]?(""+t).trim():t+"px"}function Eu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ju(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var vf=G({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 Vo(e,t){if(t){if(vf[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Ho(e,t){if(e.indexOf("-")===-1)return typeof t.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 Wo=null;function Fs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qo=null,vn=null,xn=null;function Ui(e){if(e=Er(e)){if(typeof Qo!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ul(t),Qo(e.stateNode,e.type,t))}}function Cu(e){vn?xn?xn.push(e):xn=[e]:vn=e}function _u(){if(vn){var e=vn,t=xn;if(xn=vn=null,Ui(e),t)for(e=0;e<t.length;e++)Ui(t[e])}}function Pu(e,t){return e(t)}function Ru(){}var oo=!1;function Lu(e,t,n){if(oo)return e(t,n);oo=!0;try{return Pu(e,t,n)}finally{oo=!1,(vn!==null||xn!==null)&&(Ru(),_u())}}function sr(e,t){var n=e.stateNode;if(n===null)return null;var r=Ul(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(j(231,t,typeof n));return n}var Ko=!1;if(ut)try{var Mn={};Object.defineProperty(Mn,"passive",{get:function(){Ko=!0}}),window.addEventListener("test",Mn,Mn),window.removeEventListener("test",Mn,Mn)}catch{Ko=!1}function xf(e,t,n,r,l,o,s,i,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(y){this.onError(y)}}var Gn=!1,cl=null,dl=!1,Jo=null,wf={onError:function(e){Gn=!0,cl=e}};function kf(e,t,n,r,l,o,s,i,u){Gn=!1,cl=null,xf.apply(wf,arguments)}function Nf(e,t,n,r,l,o,s,i,u){if(kf.apply(this,arguments),Gn){if(Gn){var c=cl;Gn=!1,cl=null}else throw Error(j(198));dl||(dl=!0,Jo=c)}}function en(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Tu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Bi(e){if(en(e)!==e)throw Error(j(188))}function Sf(e){var t=e.alternate;if(!t){if(t=en(e),t===null)throw Error(j(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(l===null)break;var o=l.alternate;if(o===null){if(r=l.return,r!==null){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return Bi(l),e;if(o===r)return Bi(l),t;o=o.sibling}throw Error(j(188))}if(n.return!==r.return)n=l,r=o;else{for(var s=!1,i=l.child;i;){if(i===n){s=!0,n=l,r=o;break}if(i===r){s=!0,r=l,n=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===n){s=!0,n=o,r=l;break}if(i===r){s=!0,r=o,n=l;break}i=i.sibling}if(!s)throw Error(j(189))}}if(n.alternate!==r)throw Error(j(190))}if(n.tag!==3)throw Error(j(188));return n.stateNode.current===n?e:t}function zu(e){return e=Sf(e),e!==null?Ou(e):null}function Ou(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ou(e);if(t!==null)return t;e=e.sibling}return null}var Iu=Pe.unstable_scheduleCallback,Vi=Pe.unstable_cancelCallback,jf=Pe.unstable_shouldYield,Ef=Pe.unstable_requestPaint,Z=Pe.unstable_now,Cf=Pe.unstable_getCurrentPriorityLevel,As=Pe.unstable_ImmediatePriority,Du=Pe.unstable_UserBlockingPriority,fl=Pe.unstable_NormalPriority,_f=Pe.unstable_LowPriority,bu=Pe.unstable_IdlePriority,Ml=null,Ze=null;function Pf(e){if(Ze&&typeof Ze.onCommitFiberRoot=="function")try{Ze.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}}var He=Math.clz32?Math.clz32:Tf,Rf=Math.log,Lf=Math.LN2;function Tf(e){return e>>>=0,e===0?32:31-(Rf(e)/Lf|0)|0}var Dr=64,br=4194304;function Kn(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 pl(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var i=s&~l;i!==0?r=Kn(i):(o&=s,o!==0&&(r=Kn(o)))}else s=n&~l,s!==0?r=Kn(s):o!==0&&(r=Kn(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-He(t),l=1<<n,r|=e[n],t&=~l;return r}function zf(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 Of(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-He(o),i=1<<s,u=l[s];u===-1?(!(i&n)||i&r)&&(l[s]=zf(i,t)):u<=t&&(e.expiredLanes|=i),o&=~i}}function Yo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Mu(){var e=Dr;return Dr<<=1,!(Dr&4194240)&&(Dr=64),e}function so(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Sr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-He(t),e[t]=n}function If(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-He(n),o=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~o}}function Us(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-He(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var A=0;function $u(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Fu,Bs,Au,Uu,Bu,Go=!1,Mr=[],_t=null,Pt=null,Rt=null,ir=new Map,ar=new Map,St=[],Df="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 Hi(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Rt=null;break;case"pointerover":case"pointerout":ir.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(t.pointerId)}}function $n(e,t,n,r,l,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[l]},t!==null&&(t=Er(t),t!==null&&Bs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function bf(e,t,n,r,l){switch(t){case"focusin":return _t=$n(_t,e,t,n,r,l),!0;case"dragenter":return Pt=$n(Pt,e,t,n,r,l),!0;case"mouseover":return Rt=$n(Rt,e,t,n,r,l),!0;case"pointerover":var o=l.pointerId;return ir.set(o,$n(ir.get(o)||null,e,t,n,r,l)),!0;case"gotpointercapture":return o=l.pointerId,ar.set(o,$n(ar.get(o)||null,e,t,n,r,l)),!0}return!1}function Vu(e){var t=Vt(e.target);if(t!==null){var n=en(t);if(n!==null){if(t=n.tag,t===13){if(t=Tu(n),t!==null){e.blockedOn=t,Bu(e.priority,function(){Au(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Wo=r,n.target.dispatchEvent(r),Wo=null}else return t=Er(n),t!==null&&Bs(t),e.blockedOn=n,!1;t.shift()}return!0}function Wi(e,t,n){Xr(e)&&n.delete(t)}function Mf(){Go=!1,_t!==null&&Xr(_t)&&(_t=null),Pt!==null&&Xr(Pt)&&(Pt=null),Rt!==null&&Xr(Rt)&&(Rt=null),ir.forEach(Wi),ar.forEach(Wi)}function Fn(e,t){e.blockedOn===t&&(e.blockedOn=null,Go||(Go=!0,Pe.unstable_scheduleCallback(Pe.unstable_NormalPriority,Mf)))}function ur(e){function t(l){return Fn(l,e)}if(0<Mr.length){Fn(Mr[0],e);for(var n=1;n<Mr.length;n++){var r=Mr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_t!==null&&Fn(_t,e),Pt!==null&&Fn(Pt,e),Rt!==null&&Fn(Rt,e),ir.forEach(t),ar.forEach(t),n=0;n<St.length;n++)r=St[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<St.length&&(n=St[0],n.blockedOn===null);)Vu(n),n.blockedOn===null&&St.shift()}var wn=mt.ReactCurrentBatchConfig,ml=!0;function $f(e,t,n,r){var l=A,o=wn.transition;wn.transition=null;try{A=1,Vs(e,t,n,r)}finally{A=l,wn.transition=o}}function Ff(e,t,n,r){var l=A,o=wn.transition;wn.transition=null;try{A=4,Vs(e,t,n,r)}finally{A=l,wn.transition=o}}function Vs(e,t,n,r){if(ml){var l=Xo(e,t,n,r);if(l===null)go(e,t,r,hl,n),Hi(e,r);else if(bf(l,e,t,n,r))r.stopPropagation();else if(Hi(e,r),t&4&&-1<Df.indexOf(e)){for(;l!==null;){var o=Er(l);if(o!==null&&Fu(o),o=Xo(e,t,n,r),o===null&&go(e,t,r,hl,n),o===l)break;l=o}l!==null&&r.stopPropagation()}else go(e,t,r,null,n)}}var hl=null;function Xo(e,t,n,r){if(hl=null,e=Fs(r),e=Vt(e),e!==null)if(t=en(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Tu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return hl=e,null}function Hu(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(Cf()){case As:return 1;case Du:return 4;case fl:case _f:return 16;case bu:return 536870912;default:return 16}default:return 16}}var Et=null,Hs=null,Zr=null;function Wu(){if(Zr)return Zr;var e,t=Hs,n=t.length,r,l="value"in Et?Et.value:Et.textContent,o=l.length;for(e=0;e<n&&t[e]===l[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===l[o-r];r++);return Zr=l.slice(e,1<r?1-r:void 0)}function qr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $r(){return!0}function Qi(){return!1}function Le(e){function t(n,r,l,o,s){this._reactName=n,this._targetInst=l,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],this[i]=n?n(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?$r:Qi,this.isPropagationStopped=Qi,this}return G(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=$r)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=$r)},persist:function(){},isPersistent:$r}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=Le(Tn),jr=G({},Tn,{view:0,detail:0}),Af=Le(jr),io,ao,An,$l=G({},jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qs,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!==An&&(An&&e.type==="mousemove"?(io=e.screenX-An.screenX,ao=e.screenY-An.screenY):ao=io=0,An=e),io)},movementY:function(e){return"movementY"in e?e.movementY:ao}}),Ki=Le($l),Uf=G({},$l,{dataTransfer:0}),Bf=Le(Uf),Vf=G({},jr,{relatedTarget:0}),uo=Le(Vf),Hf=G({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0}),Wf=Le(Hf),Qf=G({},Tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kf=Le(Qf),Jf=G({},Tn,{data:0}),Ji=Le(Jf),Yf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Gf={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"},Xf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xf[e])?!!t[e]:!1}function Qs(){return Zf}var qf=G({},jr,{key:function(e){if(e.key){var t=Yf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Gf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qs,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ep=Le(qf),tp=G({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Yi=Le(tp),np=G({},jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qs}),rp=Le(np),lp=G({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0}),op=Le(lp),sp=G({},$l,{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}),ip=Le(sp),ap=[9,13,27,32],Ks=ut&&"CompositionEvent"in window,Xn=null;ut&&"documentMode"in document&&(Xn=document.documentMode);var up=ut&&"TextEvent"in window&&!Xn,Qu=ut&&(!Ks||Xn&&8<Xn&&11>=Xn),Gi=" ",Xi=!1;function Ku(e,t){switch(e){case"keyup":return ap.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ju(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function cp(e,t){switch(e){case"compositionend":return Ju(t);case"keypress":return t.which!==32?null:(Xi=!0,Gi);case"textInput":return e=t.data,e===Gi&&Xi?null:e;default:return null}}function dp(e,t){if(sn)return e==="compositionend"||!Ks&&Ku(e,t)?(e=Wu(),Zr=Hs=Et=null,sn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qu&&t.locale!=="ko"?null:t.data;default:return null}}var fp={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 Zi(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!fp[e.type]:t==="textarea"}function Yu(e,t,n,r){Cu(r),t=yl(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zn=null,cr=null;function pp(e){sc(e,0)}function Fl(e){var t=cn(e);if(xu(t))return e}function mp(e,t){if(e==="change")return t}var Gu=!1;if(ut){var co;if(ut){var fo="oninput"in document;if(!fo){var qi=document.createElement("div");qi.setAttribute("oninput","return;"),fo=typeof qi.oninput=="function"}co=fo}else co=!1;Gu=co&&(!document.documentMode||9<document.documentMode)}function ea(){Zn&&(Zn.detachEvent("onpropertychange",Xu),cr=Zn=null)}function Xu(e){if(e.propertyName==="value"&&Fl(cr)){var t=[];Yu(t,cr,e,Fs(e)),Lu(pp,t)}}function hp(e,t,n){e==="focusin"?(ea(),Zn=t,cr=n,Zn.attachEvent("onpropertychange",Xu)):e==="focusout"&&ea()}function yp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fl(cr)}function gp(e,t){if(e==="click")return Fl(t)}function vp(e,t){if(e==="input"||e==="change")return Fl(t)}function xp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:xp;function dr(e,t){if(Qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!Oo.call(t,l)||!Qe(e[l],t[l]))return!1}return!0}function ta(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function na(e,t){var n=ta(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ta(n)}}function Zu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qu(){for(var e=window,t=ul();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ul(e.document)}return t}function Js(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wp(e){var t=qu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zu(n.ownerDocument.documentElement,n)){if(r!==null&&Js(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.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=na(n,o);var s=na(n,r);l&&s&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var kp=ut&&"documentMode"in document&&11>=document.documentMode,an=null,Zo=null,qn=null,qo=!1;function ra(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||an==null||an!==ul(r)||(r=an,"selectionStart"in r&&Js(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}),qn&&dr(qn,r)||(qn=r,r=yl(Zo,"onSelect"),0<r.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=an)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var un={animationend:Fr("Animation","AnimationEnd"),animationiteration:Fr("Animation","AnimationIteration"),animationstart:Fr("Animation","AnimationStart"),transitionend:Fr("Transition","TransitionEnd")},po={},ec={};ut&&(ec=document.createElement("div").style,"AnimationEvent"in window||(delete un.animationend.animation,delete un.animationiteration.animation,delete un.animationstart.animation),"TransitionEvent"in window||delete un.transitionend.transition);function Al(e){if(po[e])return po[e];if(!un[e])return e;var t=un[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ec)return po[e]=t[n];return e}var tc=Al("animationend"),nc=Al("animationiteration"),rc=Al("animationstart"),lc=Al("transitionend"),oc=new Map,la="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 Mt(e,t){oc.set(e,t),qt(t,[e])}for(var mo=0;mo<la.length;mo++){var ho=la[mo],Np=ho.toLowerCase(),Sp=ho[0].toUpperCase()+ho.slice(1);Mt(Np,"on"+Sp)}Mt(tc,"onAnimationEnd");Mt(nc,"onAnimationIteration");Mt(rc,"onAnimationStart");Mt("dblclick","onDoubleClick");Mt("focusin","onFocus");Mt("focusout","onBlur");Mt(lc,"onTransitionEnd");Sn("onMouseEnter",["mouseout","mouseover"]);Sn("onMouseLeave",["mouseout","mouseover"]);Sn("onPointerEnter",["pointerout","pointerover"]);Sn("onPointerLeave",["pointerout","pointerover"]);qt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qt("onBeforeInput",["compositionend","keypress","textInput","paste"]);qt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jn="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(" "),jp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jn));function oa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Nf(r,t,void 0,e),e.currentTarget=null}function sc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var i=r[s],u=i.instance,c=i.currentTarget;if(i=i.listener,u!==o&&l.isPropagationStopped())break e;oa(l,i,c),o=u}else for(s=0;s<r.length;s++){if(i=r[s],u=i.instance,c=i.currentTarget,i=i.listener,u!==o&&l.isPropagationStopped())break e;oa(l,i,c),o=u}}}if(dl)throw e=Jo,dl=!1,Jo=null,e}function V(e,t){var n=t[ls];n===void 0&&(n=t[ls]=new Set);var r=e+"__bubble";n.has(r)||(ic(t,e,2,!1),n.add(r))}function yo(e,t,n){var r=0;t&&(r|=4),ic(n,e,r,t)}var Ar="_reactListening"+Math.random().toString(36).slice(2);function fr(e){if(!e[Ar]){e[Ar]=!0,mu.forEach(function(n){n!=="selectionchange"&&(jp.has(n)||yo(n,!1,e),yo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ar]||(t[Ar]=!0,yo("selectionchange",!1,t))}}function ic(e,t,n,r){switch(Hu(t)){case 1:var l=$f;break;case 4:l=Ff;break;default:l=Vs}n=l.bind(null,t,n,e),l=void 0,!Ko||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),r?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function go(e,t,n,r,l){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var i=r.stateNode.containerInfo;if(i===l||i.nodeType===8&&i.parentNode===l)break;if(s===4)for(s=r.return;s!==null;){var u=s.tag;if((u===3||u===4)&&(u=s.stateNode.containerInfo,u===l||u.nodeType===8&&u.parentNode===l))return;s=s.return}for(;i!==null;){if(s=Vt(i),s===null)return;if(u=s.tag,u===5||u===6){r=o=s;continue e}i=i.parentNode}}r=r.return}Lu(function(){var c=o,y=Fs(n),p=[];e:{var h=oc.get(e);if(h!==void 0){var v=Ws,x=e;switch(e){case"keypress":if(qr(n)===0)break e;case"keydown":case"keyup":v=ep;break;case"focusin":x="focus",v=uo;break;case"focusout":x="blur",v=uo;break;case"beforeblur":case"afterblur":v=uo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=Ki;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Bf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=rp;break;case tc:case nc:case rc:v=Wf;break;case lc:v=op;break;case"scroll":v=Af;break;case"wheel":v=ip;break;case"copy":case"cut":case"paste":v=Kf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Yi}var w=(t&4)!==0,N=!w&&e==="scroll",f=w?h!==null?h+"Capture":null:h;w=[];for(var d=c,m;d!==null;){m=d;var k=m.stateNode;if(m.tag===5&&k!==null&&(m=k,f!==null&&(k=sr(d,f),k!=null&&w.push(pr(d,k,m)))),N)break;d=d.return}0<w.length&&(h=new v(h,x,null,n,y),p.push({event:h,listeners:w}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",h&&n!==Wo&&(x=n.relatedTarget||n.fromElement)&&(Vt(x)||x[ct]))break e;if((v||h)&&(h=y.window===y?y:(h=y.ownerDocument)?h.defaultView||h.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=c,x=x?Vt(x):null,x!==null&&(N=en(x),x!==N||x.tag!==5&&x.tag!==6)&&(x=null)):(v=null,x=c),v!==x)){if(w=Ki,k="onMouseLeave",f="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(w=Yi,k="onPointerLeave",f="onPointerEnter",d="pointer"),N=v==null?h:cn(v),m=x==null?h:cn(x),h=new w(k,d+"leave",v,n,y),h.target=N,h.relatedTarget=m,k=null,Vt(y)===c&&(w=new w(f,d+"enter",x,n,y),w.target=m,w.relatedTarget=N,k=w),N=k,v&&x)t:{for(w=v,f=x,d=0,m=w;m;m=rn(m))d++;for(m=0,k=f;k;k=rn(k))m++;for(;0<d-m;)w=rn(w),d--;for(;0<m-d;)f=rn(f),m--;for(;d--;){if(w===f||f!==null&&w===f.alternate)break t;w=rn(w),f=rn(f)}w=null}else w=null;v!==null&&sa(p,h,v,w,!1),x!==null&&N!==null&&sa(p,N,x,w,!0)}}e:{if(h=c?cn(c):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var S=mp;else if(Zi(h))if(Gu)S=vp;else{S=yp;var _=hp}else(v=h.nodeName)&&v.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(S=gp);if(S&&(S=S(e,c))){Yu(p,S,n,y);break e}_&&_(e,h,c),e==="focusout"&&(_=h._wrapperState)&&_.controlled&&h.type==="number"&&Ao(h,"number",h.value)}switch(_=c?cn(c):window,e){case"focusin":(Zi(_)||_.contentEditable==="true")&&(an=_,Zo=c,qn=null);break;case"focusout":qn=Zo=an=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,ra(p,n,y);break;case"selectionchange":if(kp)break;case"keydown":case"keyup":ra(p,n,y)}var R;if(Ks)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else sn?Ku(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Qu&&n.locale!=="ko"&&(sn||P!=="onCompositionStart"?P==="onCompositionEnd"&&sn&&(R=Wu()):(Et=y,Hs="value"in Et?Et.value:Et.textContent,sn=!0)),_=yl(c,P),0<_.length&&(P=new Ji(P,e,null,n,y),p.push({event:P,listeners:_}),R?P.data=R:(R=Ju(n),R!==null&&(P.data=R)))),(R=up?cp(e,n):dp(e,n))&&(c=yl(c,"onBeforeInput"),0<c.length&&(y=new Ji("onBeforeInput","beforeinput",null,n,y),p.push({event:y,listeners:c}),y.data=R))}sc(p,t)})}function pr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function yl(e,t){for(var n=t+"Capture",r=[];e!==null;){var l=e,o=l.stateNode;l.tag===5&&o!==null&&(l=o,o=sr(e,n),o!=null&&r.unshift(pr(e,o,l)),o=sr(e,t),o!=null&&r.push(pr(e,o,l))),e=e.return}return r}function rn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function sa(e,t,n,r,l){for(var o=t._reactName,s=[];n!==null&&n!==r;){var i=n,u=i.alternate,c=i.stateNode;if(u!==null&&u===r)break;i.tag===5&&c!==null&&(i=c,l?(u=sr(n,o),u!=null&&s.unshift(pr(n,u,i))):l||(u=sr(n,o),u!=null&&s.push(pr(n,u,i)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var Ep=/\r\n?/g,Cp=/\u0000|\uFFFD/g;function ia(e){return(typeof e=="string"?e:""+e).replace(Ep,`
|
|
`).replace(Cp,"")}function Ur(e,t,n){if(t=ia(t),ia(e)!==t&&n)throw Error(j(425))}function gl(){}var es=null,ts=null;function ns(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var rs=typeof setTimeout=="function"?setTimeout:void 0,_p=typeof clearTimeout=="function"?clearTimeout:void 0,aa=typeof Promise=="function"?Promise:void 0,Pp=typeof queueMicrotask=="function"?queueMicrotask:typeof aa<"u"?function(e){return aa.resolve(null).then(e).catch(Rp)}:rs;function Rp(e){setTimeout(function(){throw e})}function vo(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(r===0){e.removeChild(l),ur(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=l}while(n);ur(t)}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var zn=Math.random().toString(36).slice(2),Xe="__reactFiber$"+zn,mr="__reactProps$"+zn,ct="__reactContainer$"+zn,ls="__reactEvents$"+zn,Lp="__reactListeners$"+zn,Tp="__reactHandles$"+zn;function Vt(e){var t=e[Xe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[Xe]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ua(e);e!==null;){if(n=e[Xe])return n;e=ua(e)}return t}e=n,n=e.parentNode}return null}function Er(e){return e=e[Xe]||e[ct],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function Ul(e){return e[mr]||null}var os=[],dn=-1;function $t(e){return{current:e}}function H(e){0>dn||(e.current=os[dn],os[dn]=null,dn--)}function B(e,t){dn++,os[dn]=e.current,e.current=t}var bt={},fe=$t(bt),Ne=$t(!1),Jt=bt;function jn(e,t){var n=e.type.contextTypes;if(!n)return bt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function Se(e){return e=e.childContextTypes,e!=null}function vl(){H(Ne),H(fe)}function ca(e,t,n){if(fe.current!==bt)throw Error(j(168));B(fe,t),B(Ne,n)}function ac(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(j(108,hf(e)||"Unknown",l));return G({},n,r)}function xl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bt,Jt=fe.current,B(fe,e),B(Ne,Ne.current),!0}function da(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=ac(e,t,Jt),r.__reactInternalMemoizedMergedChildContext=e,H(Ne),H(fe),B(fe,e)):H(Ne),B(Ne,n)}var lt=null,Bl=!1,xo=!1;function uc(e){lt===null?lt=[e]:lt.push(e)}function zp(e){Bl=!0,uc(e)}function Ft(){if(!xo&<!==null){xo=!0;var e=0,t=A;try{var n=lt;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lt=null,Bl=!1}catch(l){throw lt!==null&&(lt=lt.slice(e+1)),Iu(As,Ft),l}finally{A=t,xo=!1}}return null}var fn=[],pn=0,wl=null,kl=0,Oe=[],Ie=0,Yt=null,ot=1,st="";function Ut(e,t){fn[pn++]=kl,fn[pn++]=wl,wl=e,kl=t}function cc(e,t,n){Oe[Ie++]=ot,Oe[Ie++]=st,Oe[Ie++]=Yt,Yt=e;var r=ot;e=st;var l=32-He(r)-1;r&=~(1<<l),n+=1;var o=32-He(t)+l;if(30<o){var s=l-l%5;o=(r&(1<<s)-1).toString(32),r>>=s,l-=s,ot=1<<32-He(t)+l|n<<l|r,st=o+e}else ot=1<<o|n<<l|r,st=e}function Ys(e){e.return!==null&&(Ut(e,1),cc(e,1,0))}function Gs(e){for(;e===wl;)wl=fn[--pn],fn[pn]=null,kl=fn[--pn],fn[pn]=null;for(;e===Yt;)Yt=Oe[--Ie],Oe[Ie]=null,st=Oe[--Ie],Oe[Ie]=null,ot=Oe[--Ie],Oe[Ie]=null}var _e=null,Ce=null,Q=!1,Ve=null;function dc(e,t){var n=De(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function fa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,_e=e,Ce=Lt(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,_e=e,Ce=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Yt!==null?{id:ot,overflow:st}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=De(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,_e=e,Ce=null,!0):!1;default:return!1}}function ss(e){return(e.mode&1)!==0&&(e.flags&128)===0}function is(e){if(Q){var t=Ce;if(t){var n=t;if(!fa(e,t)){if(ss(e))throw Error(j(418));t=Lt(n.nextSibling);var r=_e;t&&fa(e,t)?dc(r,n):(e.flags=e.flags&-4097|2,Q=!1,_e=e)}}else{if(ss(e))throw Error(j(418));e.flags=e.flags&-4097|2,Q=!1,_e=e}}}function pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_e=e}function Br(e){if(e!==_e)return!1;if(!Q)return pa(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ns(e.type,e.memoizedProps)),t&&(t=Ce)){if(ss(e))throw fc(),Error(j(418));for(;t;)dc(e,t),t=Lt(t.nextSibling)}if(pa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ce=Lt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ce=null}}else Ce=_e?Lt(e.stateNode.nextSibling):null;return!0}function fc(){for(var e=Ce;e;)e=Lt(e.nextSibling)}function En(){Ce=_e=null,Q=!1}function Xs(e){Ve===null?Ve=[e]:Ve.push(e)}var Op=mt.ReactCurrentBatchConfig;function Un(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(j(309));var r=n.stateNode}if(!r)throw Error(j(147,e));var l=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var i=l.refs;s===null?delete i[o]:i[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(j(284));if(!n._owner)throw Error(j(290,e))}return e}function Vr(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ma(e){var t=e._init;return t(e._payload)}function pc(e){function t(f,d){if(e){var m=f.deletions;m===null?(f.deletions=[d],f.flags|=16):m.push(d)}}function n(f,d){if(!e)return null;for(;d!==null;)t(f,d),d=d.sibling;return null}function r(f,d){for(f=new Map;d!==null;)d.key!==null?f.set(d.key,d):f.set(d.index,d),d=d.sibling;return f}function l(f,d){return f=It(f,d),f.index=0,f.sibling=null,f}function o(f,d,m){return f.index=m,e?(m=f.alternate,m!==null?(m=m.index,m<d?(f.flags|=2,d):m):(f.flags|=2,d)):(f.flags|=1048576,d)}function s(f){return e&&f.alternate===null&&(f.flags|=2),f}function i(f,d,m,k){return d===null||d.tag!==6?(d=Co(m,f.mode,k),d.return=f,d):(d=l(d,m),d.return=f,d)}function u(f,d,m,k){var S=m.type;return S===on?y(f,d,m.props.children,k,m.key):d!==null&&(d.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===kt&&ma(S)===d.type)?(k=l(d,m.props),k.ref=Un(f,d,m),k.return=f,k):(k=sl(m.type,m.key,m.props,null,f.mode,k),k.ref=Un(f,d,m),k.return=f,k)}function c(f,d,m,k){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=_o(m,f.mode,k),d.return=f,d):(d=l(d,m.children||[]),d.return=f,d)}function y(f,d,m,k,S){return d===null||d.tag!==7?(d=Kt(m,f.mode,k,S),d.return=f,d):(d=l(d,m),d.return=f,d)}function p(f,d,m){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Co(""+d,f.mode,m),d.return=f,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case zr:return m=sl(d.type,d.key,d.props,null,f.mode,m),m.ref=Un(f,null,d),m.return=f,m;case ln:return d=_o(d,f.mode,m),d.return=f,d;case kt:var k=d._init;return p(f,k(d._payload),m)}if(Qn(d)||bn(d))return d=Kt(d,f.mode,m,null),d.return=f,d;Vr(f,d)}return null}function h(f,d,m,k){var S=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return S!==null?null:i(f,d,""+m,k);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case zr:return m.key===S?u(f,d,m,k):null;case ln:return m.key===S?c(f,d,m,k):null;case kt:return S=m._init,h(f,d,S(m._payload),k)}if(Qn(m)||bn(m))return S!==null?null:y(f,d,m,k,null);Vr(f,m)}return null}function v(f,d,m,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return f=f.get(m)||null,i(d,f,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case zr:return f=f.get(k.key===null?m:k.key)||null,u(d,f,k,S);case ln:return f=f.get(k.key===null?m:k.key)||null,c(d,f,k,S);case kt:var _=k._init;return v(f,d,m,_(k._payload),S)}if(Qn(k)||bn(k))return f=f.get(m)||null,y(d,f,k,S,null);Vr(d,k)}return null}function x(f,d,m,k){for(var S=null,_=null,R=d,P=d=0,b=null;R!==null&&P<m.length;P++){R.index>P?(b=R,R=null):b=R.sibling;var O=h(f,R,m[P],k);if(O===null){R===null&&(R=b);break}e&&R&&O.alternate===null&&t(f,R),d=o(O,d,P),_===null?S=O:_.sibling=O,_=O,R=b}if(P===m.length)return n(f,R),Q&&Ut(f,P),S;if(R===null){for(;P<m.length;P++)R=p(f,m[P],k),R!==null&&(d=o(R,d,P),_===null?S=R:_.sibling=R,_=R);return Q&&Ut(f,P),S}for(R=r(f,R);P<m.length;P++)b=v(R,f,P,m[P],k),b!==null&&(e&&b.alternate!==null&&R.delete(b.key===null?P:b.key),d=o(b,d,P),_===null?S=b:_.sibling=b,_=b);return e&&R.forEach(function(pe){return t(f,pe)}),Q&&Ut(f,P),S}function w(f,d,m,k){var S=bn(m);if(typeof S!="function")throw Error(j(150));if(m=S.call(m),m==null)throw Error(j(151));for(var _=S=null,R=d,P=d=0,b=null,O=m.next();R!==null&&!O.done;P++,O=m.next()){R.index>P?(b=R,R=null):b=R.sibling;var pe=h(f,R,O.value,k);if(pe===null){R===null&&(R=b);break}e&&R&&pe.alternate===null&&t(f,R),d=o(pe,d,P),_===null?S=pe:_.sibling=pe,_=pe,R=b}if(O.done)return n(f,R),Q&&Ut(f,P),S;if(R===null){for(;!O.done;P++,O=m.next())O=p(f,O.value,k),O!==null&&(d=o(O,d,P),_===null?S=O:_.sibling=O,_=O);return Q&&Ut(f,P),S}for(R=r(f,R);!O.done;P++,O=m.next())O=v(R,f,P,O.value,k),O!==null&&(e&&O.alternate!==null&&R.delete(O.key===null?P:O.key),d=o(O,d,P),_===null?S=O:_.sibling=O,_=O);return e&&R.forEach(function(oe){return t(f,oe)}),Q&&Ut(f,P),S}function N(f,d,m,k){if(typeof m=="object"&&m!==null&&m.type===on&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case zr:e:{for(var S=m.key,_=d;_!==null;){if(_.key===S){if(S=m.type,S===on){if(_.tag===7){n(f,_.sibling),d=l(_,m.props.children),d.return=f,f=d;break e}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===kt&&ma(S)===_.type){n(f,_.sibling),d=l(_,m.props),d.ref=Un(f,_,m),d.return=f,f=d;break e}n(f,_);break}else t(f,_);_=_.sibling}m.type===on?(d=Kt(m.props.children,f.mode,k,m.key),d.return=f,f=d):(k=sl(m.type,m.key,m.props,null,f.mode,k),k.ref=Un(f,d,m),k.return=f,f=k)}return s(f);case ln:e:{for(_=m.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){n(f,d.sibling),d=l(d,m.children||[]),d.return=f,f=d;break e}else{n(f,d);break}else t(f,d);d=d.sibling}d=_o(m,f.mode,k),d.return=f,f=d}return s(f);case kt:return _=m._init,N(f,d,_(m._payload),k)}if(Qn(m))return x(f,d,m,k);if(bn(m))return w(f,d,m,k);Vr(f,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,d!==null&&d.tag===6?(n(f,d.sibling),d=l(d,m),d.return=f,f=d):(n(f,d),d=Co(m,f.mode,k),d.return=f,f=d),s(f)):n(f,d)}return N}var Cn=pc(!0),mc=pc(!1),Nl=$t(null),Sl=null,mn=null,Zs=null;function qs(){Zs=mn=Sl=null}function ei(e){var t=Nl.current;H(Nl),e._currentValue=t}function as(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function kn(e,t){Sl=e,Zs=mn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ke=!0),e.firstContext=null)}function Me(e){var t=e._currentValue;if(Zs!==e)if(e={context:e,memoizedValue:t,next:null},mn===null){if(Sl===null)throw Error(j(308));mn=e,Sl.dependencies={lanes:0,firstContext:e}}else mn=mn.next=e;return t}var Ht=null;function ti(e){Ht===null?Ht=[e]:Ht.push(e)}function hc(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,ti(t)):(n.next=l.next,l.next=n),t.interleaved=n,dt(e,r)}function dt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Nt=!1;function ni(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function it(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,dt(e,n)}return l=r.interleaved,l===null?(t.next=t,ti(r)):(t.next=l.next,l.next=t),r.interleaved=t,dt(e,n)}function el(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Us(e,n)}}function ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function jl(e,t,n,r){var l=e.updateQueue;Nt=!1;var o=l.firstBaseUpdate,s=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var u=i,c=u.next;u.next=null,s===null?o=c:s.next=c,s=u;var y=e.alternate;y!==null&&(y=y.updateQueue,i=y.lastBaseUpdate,i!==s&&(i===null?y.firstBaseUpdate=c:i.next=c,y.lastBaseUpdate=u))}if(o!==null){var p=l.baseState;s=0,y=c=u=null,i=o;do{var h=i.lane,v=i.eventTime;if((r&h)===h){y!==null&&(y=y.next={eventTime:v,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var x=e,w=i;switch(h=t,v=n,w.tag){case 1:if(x=w.payload,typeof x=="function"){p=x.call(v,p,h);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,h=typeof x=="function"?x.call(v,p,h):x,h==null)break e;p=G({},p,h);break e;case 2:Nt=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,h=l.effects,h===null?l.effects=[i]:h.push(i))}else v={eventTime:v,lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},y===null?(c=y=v,u=p):y=y.next=v,s|=h;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;h=i,i=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);if(y===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=y,t=l.shared.interleaved,t!==null){l=t;do s|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);Xt|=s,e.lanes=s,e.memoizedState=p}}function ya(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(l!==null){if(r.callback=null,r=n,typeof l!="function")throw Error(j(191,l));l.call(r)}}}var Cr={},qe=$t(Cr),hr=$t(Cr),yr=$t(Cr);function Wt(e){if(e===Cr)throw Error(j(174));return e}function ri(e,t){switch(B(yr,t),B(hr,e),B(qe,Cr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Bo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Bo(t,e)}H(qe),B(qe,t)}function _n(){H(qe),H(hr),H(yr)}function gc(e){Wt(yr.current);var t=Wt(qe.current),n=Bo(t,e.type);t!==n&&(B(hr,e),B(qe,n))}function li(e){hr.current===e&&(H(qe),H(hr))}var J=$t(0);function El(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wo=[];function oi(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var tl=mt.ReactCurrentDispatcher,ko=mt.ReactCurrentBatchConfig,Gt=0,Y=null,te=null,re=null,Cl=!1,er=!1,gr=0,Ip=0;function ue(){throw Error(j(321))}function si(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,l,o){if(Gt=o,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?$p:Fp,e=n(r,l),er){o=0;do{if(er=!1,gr=0,25<=o)throw Error(j(301));o+=1,re=te=null,t.updateQueue=null,tl.current=Ap,e=n(r,l)}while(er)}if(tl.current=_l,t=te!==null&&te.next!==null,Gt=0,re=te=Y=null,Cl=!1,t)throw Error(j(300));return e}function ai(){var e=gr!==0;return gr=0,e}function Ge(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?Y.memoizedState=re=e:re=re.next=e,re}function $e(){if(te===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=re===null?Y.memoizedState:re.next;if(t!==null)re=t,te=e;else{if(e===null)throw Error(j(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},re===null?Y.memoizedState=re=e:re=re.next=e}return re}function vr(e,t){return typeof t=="function"?t(e):t}function No(e){var t=$e(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=te,l=r.baseQueue,o=n.pending;if(o!==null){if(l!==null){var s=l.next;l.next=o.next,o.next=s}r.baseQueue=l=o,n.pending=null}if(l!==null){o=l.next,r=r.baseState;var i=s=null,u=null,c=o;do{var y=c.lane;if((Gt&y)===y)u!==null&&(u=u.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 p={lane:y,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};u===null?(i=u=p,s=r):u=u.next=p,Y.lanes|=y,Xt|=y}c=c.next}while(c!==null&&c!==o);u===null?s=r:u.next=i,Qe(r,t.memoizedState)||(ke=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){l=e;do o=l.lane,Y.lanes|=o,Xt|=o,l=l.next;while(l!==e)}else l===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function So(e){var t=$e(),n=t.queue;if(n===null)throw Error(j(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(l!==null){n.pending=null;var s=l=l.next;do o=e(o,s.action),s=s.next;while(s!==l);Qe(o,t.memoizedState)||(ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function vc(){}function xc(e,t){var n=Y,r=$e(),l=t(),o=!Qe(r.memoizedState,l);if(o&&(r.memoizedState=l,ke=!0),r=r.queue,ui(Nc.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,xr(9,kc.bind(null,n,r,l,t),void 0,null),le===null)throw Error(j(349));Gt&30||wc(n,t,l)}return l}function wc(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kc(e,t,n,r){t.value=n,t.getSnapshot=r,Sc(t)&&jc(e)}function Nc(e,t,n){return n(function(){Sc(t)&&jc(e)})}function Sc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qe(e,n)}catch{return!0}}function jc(e){var t=dt(e,1);t!==null&&We(t,e,1,-1)}function ga(e){var t=Ge();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vr,lastRenderedState:e},t.queue=e,e=e.dispatch=Mp.bind(null,Y,e),[t.memoizedState,e]}function xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null,stores:null},Y.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ec(){return $e().memoizedState}function nl(e,t,n,r){var l=Ge();Y.flags|=e,l.memoizedState=xr(1|t,n,void 0,r===void 0?null:r)}function Vl(e,t,n,r){var l=$e();r=r===void 0?null:r;var o=void 0;if(te!==null){var s=te.memoizedState;if(o=s.destroy,r!==null&&si(r,s.deps)){l.memoizedState=xr(t,n,o,r);return}}Y.flags|=e,l.memoizedState=xr(1|t,n,o,r)}function va(e,t){return nl(8390656,8,e,t)}function ui(e,t){return Vl(2048,8,e,t)}function Cc(e,t){return Vl(4,2,e,t)}function _c(e,t){return Vl(4,4,e,t)}function Pc(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rc(e,t,n){return n=n!=null?n.concat([e]):null,Vl(4,4,Pc.bind(null,t,e),n)}function ci(){}function Lc(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&si(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tc(e,t){var n=$e();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&si(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zc(e,t,n){return Gt&21?(Qe(n,t)||(n=Mu(),Y.lanes|=n,Xt|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ke=!0),e.memoizedState=n)}function Dp(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{A=n,ko.transition=r}}function Oc(){return $e().memoizedState}function bp(e,t,n){var r=Ot(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ic(e))Dc(t,n);else if(n=hc(e,t,n,r),n!==null){var l=ye();We(n,e,r,l),bc(n,t,r)}}function Mp(e,t,n){var r=Ot(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ic(e))Dc(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,n);if(l.hasEagerState=!0,l.eagerState=i,Qe(i,s)){var u=t.interleaved;u===null?(l.next=l,ti(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=hc(e,t,l,r),n!==null&&(l=ye(),We(n,e,r,l),bc(n,t,r))}}function Ic(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Dc(e,t){er=Cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Us(e,n)}}var _l={readContext:Me,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},$p={readContext:Me,useCallback:function(e,t){return Ge().memoizedState=[e,t===void 0?null:t],e},useContext:Me,useEffect:va,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,nl(4194308,4,Pc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nl(4194308,4,e,t)},useInsertionEffect:function(e,t){return nl(4,2,e,t)},useMemo:function(e,t){var n=Ge();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ge();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bp.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Ge();return e={current:e},t.memoizedState=e},useState:ga,useDebugValue:ci,useDeferredValue:function(e){return Ge().memoizedState=e},useTransition:function(){var e=ga(!1),t=e[0];return e=Dp.bind(null,e[1]),Ge().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,l=Ge();if(Q){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),le===null)throw Error(j(349));Gt&30||wc(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,va(Nc.bind(null,r,o,e),[e]),r.flags|=2048,xr(9,kc.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ge(),t=le.identifierPrefix;if(Q){var n=st,r=ot;n=(r&~(1<<32-He(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Ip++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Fp={readContext:Me,useCallback:Lc,useContext:Me,useEffect:ui,useImperativeHandle:Rc,useInsertionEffect:Cc,useLayoutEffect:_c,useMemo:Tc,useReducer:No,useRef:Ec,useState:function(){return No(vr)},useDebugValue:ci,useDeferredValue:function(e){var t=$e();return zc(t,te.memoizedState,e)},useTransition:function(){var e=No(vr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:vc,useSyncExternalStore:xc,useId:Oc,unstable_isNewReconciler:!1},Ap={readContext:Me,useCallback:Lc,useContext:Me,useEffect:ui,useImperativeHandle:Rc,useInsertionEffect:Cc,useLayoutEffect:_c,useMemo:Tc,useReducer:So,useRef:Ec,useState:function(){return So(vr)},useDebugValue:ci,useDeferredValue:function(e){var t=$e();return te===null?t.memoizedState=e:zc(t,te.memoizedState,e)},useTransition:function(){var e=So(vr)[0],t=$e().memoizedState;return[e,t]},useMutableSource:vc,useSyncExternalStore:xc,useId:Oc,unstable_isNewReconciler:!1};function Ue(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Hl={isMounted:function(e){return(e=e._reactInternals)?en(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ye(),l=Ot(e),o=it(r,l);o.payload=t,n!=null&&(o.callback=n),t=Tt(e,o,l),t!==null&&(We(t,e,l,r),el(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ye(),l=Ot(e),o=it(r,l);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Tt(e,o,l),t!==null&&(We(t,e,l,r),el(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ye(),r=Ot(e),l=it(n,r);l.tag=2,t!=null&&(l.callback=t),t=Tt(e,l,r),t!==null&&(We(t,e,r,n),el(t,e,r))}};function xa(e,t,n,r,l,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!dr(n,r)||!dr(l,o):!0}function Mc(e,t,n){var r=!1,l=bt,o=t.contextType;return typeof o=="object"&&o!==null?o=Me(o):(l=Se(t)?Jt:fe.current,r=t.contextTypes,o=(r=r!=null)?jn(e,l):bt),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Hl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=o),t}function wa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Hl.enqueueReplaceState(t,t.state,null)}function cs(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs={},ni(e);var o=t.contextType;typeof o=="object"&&o!==null?l.context=Me(o):(o=Se(t)?Jt:fe.current,l.context=jn(e,o)),l.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(us(e,t,o,n),l.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(t=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),t!==l.state&&Hl.enqueueReplaceState(l,l.state,null),jl(e,n,l,r),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function Pn(e,t){try{var n="",r=t;do n+=mf(r),r=r.return;while(r);var l=n}catch(o){l=`
|
|
Error generating stack: `+o.message+`
|
|
`+o.stack}return{value:e,source:t,stack:l,digest:null}}function jo(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Up=typeof WeakMap=="function"?WeakMap:Map;function $c(e,t,n){n=it(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rl||(Rl=!0,ks=r),ds(e,t)},n}function Fc(e,t,n){n=it(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){ds(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ds(e,t),typeof r!="function"&&(zt===null?zt=new Set([this]):zt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function ka(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Up;var l=new Set;r.set(t,l)}else l=r.get(t),l===void 0&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=tm.bind(null,e,t,n),t.then(e,e))}function Na(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Sa(e,t,n,r,l){return e.mode&1?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=it(-1,1),t.tag=2,Tt(n,t,1))),n.lanes|=1),e)}var Bp=mt.ReactCurrentOwner,ke=!1;function he(e,t,n,r){t.child=e===null?mc(t,null,n,r):Cn(t,e.child,n,r)}function ja(e,t,n,r,l){n=n.render;var o=t.ref;return kn(t,l),r=ii(e,t,n,r,o,l),n=ai(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,ft(e,t,l)):(Q&&n&&Ys(t),t.flags|=1,he(e,t,r,l),t.child)}function Ea(e,t,n,r,l){if(e===null){var o=n.type;return typeof o=="function"&&!vi(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ac(e,t,o,r,l)):(e=sl(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&l)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:dr,n(s,r)&&e.ref===t.ref)return ft(e,t,l)}return t.flags|=1,e=It(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ac(e,t,n,r,l){if(e!==null){var o=e.memoizedProps;if(dr(o,r)&&e.ref===t.ref)if(ke=!1,t.pendingProps=r=o,(e.lanes&l)!==0)e.flags&131072&&(ke=!0);else return t.lanes=e.lanes,ft(e,t,l)}return fs(e,t,n,r,l)}function Uc(e,t,n){var r=t.pendingProps,l=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},B(yn,Ee),Ee|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,B(yn,Ee),Ee|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,B(yn,Ee),Ee|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,B(yn,Ee),Ee|=r;return he(e,t,l,n),t.child}function Bc(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fs(e,t,n,r,l){var o=Se(n)?Jt:fe.current;return o=jn(t,o),kn(t,l),n=ii(e,t,n,r,o,l),r=ai(),e!==null&&!ke?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,ft(e,t,l)):(Q&&r&&Ys(t),t.flags|=1,he(e,t,n,l),t.child)}function Ca(e,t,n,r,l){if(Se(n)){var o=!0;xl(t)}else o=!1;if(kn(t,l),t.stateNode===null)rl(e,t),Mc(t,n,r),cs(t,n,r,l),r=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var u=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Me(c):(c=Se(n)?Jt:fe.current,c=jn(t,c));var y=n.getDerivedStateFromProps,p=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==r||u!==c)&&wa(t,s,r,c),Nt=!1;var h=t.memoizedState;s.state=h,jl(t,r,s,l),u=t.memoizedState,i!==r||h!==u||Ne.current||Nt?(typeof y=="function"&&(us(t,n,y,r),u=t.memoizedState),(i=Nt||xa(t,n,i,r,h,u,c))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),s.props=r,s.state=u,s.context=c,r=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,yc(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:Ue(t.type,i),s.props=c,p=t.pendingProps,h=s.context,u=n.contextType,typeof u=="object"&&u!==null?u=Me(u):(u=Se(n)?Jt:fe.current,u=jn(t,u));var v=n.getDerivedStateFromProps;(y=typeof v=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||h!==u)&&wa(t,s,r,u),Nt=!1,h=t.memoizedState,s.state=h,jl(t,r,s,l);var x=t.memoizedState;i!==p||h!==x||Ne.current||Nt?(typeof v=="function"&&(us(t,n,v,r),x=t.memoizedState),(c=Nt||xa(t,n,c,r,h,x,u)||!1)?(y||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,x,u),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,x,u)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),s.props=r,s.state=x,s.context=u,r=c):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return ps(e,t,n,r,o,l)}function ps(e,t,n,r,l,o){Bc(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return l&&da(t,n,!1),ft(e,t,o);r=t.stateNode,Bp.current=t;var i=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Cn(t,e.child,null,o),t.child=Cn(t,null,i,o)):he(e,t,i,o),t.memoizedState=r.state,l&&da(t,n,!0),t.child}function Vc(e){var t=e.stateNode;t.pendingContext?ca(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ca(e,t.context,!1),ri(e,t.containerInfo)}function _a(e,t,n,r,l){return En(),Xs(l),t.flags|=256,he(e,t,n,r),t.child}var ms={dehydrated:null,treeContext:null,retryLane:0};function hs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hc(e,t,n){var r=t.pendingProps,l=J.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(l&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),B(J,l&1),e===null)return is(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Kl(s,r,0,null),e=Kt(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=hs(n),t.memoizedState=ms,e):di(t,s));if(l=e.memoizedState,l!==null&&(i=l.dehydrated,i!==null))return Vp(e,t,s,r,i,l,n);if(o){o=r.fallback,s=t.mode,l=e.child,i=l.sibling;var u={mode:"hidden",children:r.children};return!(s&1)&&t.child!==l?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=It(l,u),r.subtreeFlags=l.subtreeFlags&14680064),i!==null?o=It(i,o):(o=Kt(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?hs(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=ms,r}return o=e.child,e=o.sibling,r=It(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function di(e,t){return t=Kl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Hr(e,t,n,r){return r!==null&&Xs(r),Cn(t,e.child,null,n),e=di(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vp(e,t,n,r,l,o,s){if(n)return t.flags&256?(t.flags&=-257,r=jo(Error(j(422))),Hr(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Kl({mode:"visible",children:r.children},l,0,null),o=Kt(o,l,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Cn(t,e.child,null,s),t.child.memoizedState=hs(s),t.memoizedState=ms,o);if(!(t.mode&1))return Hr(e,t,s,null);if(l.data==="$!"){if(r=l.nextSibling&&l.nextSibling.dataset,r)var i=r.dgst;return r=i,o=Error(j(419)),r=jo(o,r,void 0),Hr(e,t,s,r)}if(i=(s&e.childLanes)!==0,ke||i){if(r=le,r!==null){switch(s&-s){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|s)?0:l,l!==0&&l!==o.retryLane&&(o.retryLane=l,dt(e,l),We(r,e,l,-1))}return gi(),r=jo(Error(j(421))),Hr(e,t,s,r)}return l.data==="$?"?(t.flags|=128,t.child=e.child,t=nm.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,Ce=Lt(l.nextSibling),_e=t,Q=!0,Ve=null,e!==null&&(Oe[Ie++]=ot,Oe[Ie++]=st,Oe[Ie++]=Yt,ot=e.id,st=e.overflow,Yt=t),t=di(t,r.children),t.flags|=4096,t)}function Pa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),as(e.return,t,n)}function Eo(e,t,n,r,l){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=l)}function Wc(e,t,n){var r=t.pendingProps,l=r.revealOrder,o=r.tail;if(he(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pa(e,n,t);else if(e.tag===19)Pa(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(J,r),!(t.mode&1))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;n!==null;)e=n.alternate,e!==null&&El(e)===null&&(l=n),n=n.sibling;n=l,n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Eo(t,!1,l,n,o);break;case"backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&El(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Eo(t,!0,n,null,o);break;case"together":Eo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function rl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ft(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,n=It(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=It(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hp(e,t,n){switch(t.tag){case 3:Vc(t),En();break;case 5:gc(t);break;case 1:Se(t.type)&&xl(t);break;case 4:ri(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;B(Nl,r._currentValue),r._currentValue=l;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(B(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?Hc(e,t,n):(B(J,J.current&1),e=ft(e,t,n),e!==null?e.sibling:null);B(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Wc(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),B(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,Uc(e,t,n)}return ft(e,t,n)}var Qc,ys,Kc,Jc;Qc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};ys=function(){};Kc=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,Wt(qe.current);var o=null;switch(n){case"input":l=$o(e,l),r=$o(e,r),o=[];break;case"select":l=G({},l,{value:void 0}),r=G({},r,{value:void 0}),o=[];break;case"textarea":l=Uo(e,l),r=Uo(e,r),o=[];break;default:typeof l.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=gl)}Vo(n,r);var s;n=null;for(c in l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&l[c]!=null)if(c==="style"){var i=l[c];for(s in i)i.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(lr.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(i=l!=null?l[c]:void 0,r.hasOwnProperty(c)&&u!==i&&(u!=null||i!=null))if(c==="style")if(i){for(s in i)!i.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in u)u.hasOwnProperty(s)&&i[s]!==u[s]&&(n||(n={}),n[s]=u[s])}else n||(o||(o=[]),o.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,i=i?i.__html:void 0,u!=null&&i!==u&&(o=o||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(o=o||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(lr.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&V("scroll",e),o||i===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};Jc=function(e,t,n,r){n!==r&&(t.flags|=4)};function Bn(e,t){if(!Q)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;l!==null;)n|=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;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wp(e,t,n){var r=t.pendingProps;switch(Gs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(t),null;case 1:return Se(t.type)&&vl(),ce(t),null;case 3:return r=t.stateNode,_n(),H(Ne),H(fe),oi(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ve!==null&&(js(Ve),Ve=null))),ys(e,t),ce(t),null;case 5:li(t);var l=Wt(yr.current);if(n=t.type,e!==null&&t.stateNode!=null)Kc(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(j(166));return ce(t),null}if(e=Wt(qe.current),Br(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Xe]=t,r[mr]=o,e=(t.mode&1)!==0,n){case"dialog":V("cancel",r),V("close",r);break;case"iframe":case"object":case"embed":V("load",r);break;case"video":case"audio":for(l=0;l<Jn.length;l++)V(Jn[l],r);break;case"source":V("error",r);break;case"img":case"image":case"link":V("error",r),V("load",r);break;case"details":V("toggle",r);break;case"input":Mi(r,o),V("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},V("invalid",r);break;case"textarea":Fi(r,o),V("invalid",r)}Vo(n,o),l=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?r.textContent!==i&&(o.suppressHydrationWarning!==!0&&Ur(r.textContent,i,e),l=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&Ur(r.textContent,i,e),l=["children",""+i]):lr.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&V("scroll",r)}switch(n){case"input":Or(r),$i(r,o,!0);break;case"textarea":Or(r),Ai(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=gl)}r=l,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Nu(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xe]=t,e[mr]=r,Qc(e,t,!1,!1),t.stateNode=e;e:{switch(s=Ho(n,r),n){case"dialog":V("cancel",e),V("close",e),l=r;break;case"iframe":case"object":case"embed":V("load",e),l=r;break;case"video":case"audio":for(l=0;l<Jn.length;l++)V(Jn[l],e);l=r;break;case"source":V("error",e),l=r;break;case"img":case"image":case"link":V("error",e),V("load",e),l=r;break;case"details":V("toggle",e),l=r;break;case"input":Mi(e,r),l=$o(e,r),V("invalid",e);break;case"option":l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=G({},r,{value:void 0}),V("invalid",e);break;case"textarea":Fi(e,r),l=Uo(e,r),V("invalid",e);break;default:l=r}Vo(n,l),i=l;for(o in i)if(i.hasOwnProperty(o)){var u=i[o];o==="style"?Eu(e,u):o==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Su(e,u)):o==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&or(e,u):typeof u=="number"&&or(e,""+u):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(lr.hasOwnProperty(o)?u!=null&&o==="onScroll"&&V("scroll",e):u!=null&&Ds(e,o,u,s))}switch(n){case"input":Or(e),$i(e,r,!1);break;case"textarea":Or(e),Ai(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Dt(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=gl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ce(t),null;case 6:if(e&&t.stateNode!=null)Jc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(j(166));if(n=Wt(yr.current),Wt(qe.current),Br(t)){if(r=t.stateNode,n=t.memoizedProps,r[Xe]=t,(o=r.nodeValue!==n)&&(e=_e,e!==null))switch(e.tag){case 3:Ur(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ur(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Xe]=t,t.stateNode=r}return ce(t),null;case 13:if(H(J),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&Ce!==null&&t.mode&1&&!(t.flags&128))fc(),En(),t.flags|=98560,o=!1;else if(o=Br(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(j(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(j(317));o[Xe]=t}else En(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ce(t),o=!1}else Ve!==null&&(js(Ve),Ve=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||J.current&1?ne===0&&(ne=3):gi())),t.updateQueue!==null&&(t.flags|=4),ce(t),null);case 4:return _n(),ys(e,t),e===null&&fr(t.stateNode.containerInfo),ce(t),null;case 10:return ei(t.type._context),ce(t),null;case 17:return Se(t.type)&&vl(),ce(t),null;case 19:if(H(J),o=t.memoizedState,o===null)return ce(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Bn(o,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=El(e),s!==null){for(t.flags|=128,Bn(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return B(J,J.current&1|2),t.child}e=e.sibling}o.tail!==null&&Z()>Rn&&(t.flags|=128,r=!0,Bn(o,!1),t.lanes=4194304)}else{if(!r)if(e=El(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Bn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Q)return ce(t),null}else 2*Z()-o.renderingStartTime>Rn&&n!==1073741824&&(t.flags|=128,r=!0,Bn(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Z(),t.sibling=null,n=J.current,B(J,r?n&1|2:n&1),t):(ce(t),null);case 22:case 23:return yi(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ee&1073741824&&(ce(t),t.subtreeFlags&6&&(t.flags|=8192)):ce(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Qp(e,t){switch(Gs(t),t.tag){case 1:return Se(t.type)&&vl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(),H(Ne),H(fe),oi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return li(t),null;case 13:if(H(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(J),null;case 4:return _n(),null;case 10:return ei(t.type._context),null;case 22:case 23:return yi(),null;case 24:return null;default:return null}}var Wr=!1,de=!1,Kp=typeof WeakSet=="function"?WeakSet:Set,T=null;function hn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function gs(e,t,n){try{n()}catch(r){X(e,t,r)}}var Ra=!1;function Jp(e,t){if(es=ml,e=qu(),Js(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,i=-1,u=-1,c=0,y=0,p=e,h=null;t:for(;;){for(var v;p!==n||l!==0&&p.nodeType!==3||(i=s+l),p!==o||r!==0&&p.nodeType!==3||(u=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(v=p.firstChild)!==null;)h=p,p=v;for(;;){if(p===e)break t;if(h===n&&++c===l&&(i=s),h===o&&++y===r&&(u=s),(v=p.nextSibling)!==null)break;p=h,h=p.parentNode}p=v}n=i===-1||u===-1?null:{start:i,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(ts={focusedElem:e,selectionRange:n},ml=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var w=x.memoizedProps,N=x.memoizedState,f=t.stateNode,d=f.getSnapshotBeforeUpdate(t.elementType===t.type?w:Ue(t.type,w),N);f.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(k){X(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return x=Ra,Ra=!1,x}function tr(e,t,n){var r=t.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&&gs(t,n,o)}l=l.next}while(l!==r)}}function Wl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Yc(e){var t=e.alternate;t!==null&&(e.alternate=null,Yc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xe],delete t[mr],delete t[ls],delete t[Lp],delete t[Tp])),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 Gc(e){return e.tag===5||e.tag===3||e.tag===4}function La(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gc(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 xs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gl));else if(r!==4&&(e=e.child,e!==null))for(xs(e,t,n),e=e.sibling;e!==null;)xs(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ws(e,t,n),e=e.sibling;e!==null;)ws(e,t,n),e=e.sibling}var se=null,Be=!1;function wt(e,t,n){for(n=n.child;n!==null;)Xc(e,t,n),n=n.sibling}function Xc(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(Ml,n)}catch{}switch(n.tag){case 5:de||hn(n,t);case 6:var r=se,l=Be;se=null,wt(e,t,n),se=r,Be=l,se!==null&&(Be?(e=se,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):se.removeChild(n.stateNode));break;case 18:se!==null&&(Be?(e=se,n=n.stateNode,e.nodeType===8?vo(e.parentNode,n):e.nodeType===1&&vo(e,n),ur(e)):vo(se,n.stateNode));break;case 4:r=se,l=Be,se=n.stateNode.containerInfo,Be=!0,wt(e,t,n),se=r,Be=l;break;case 0:case 11:case 14:case 15:if(!de&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&gs(n,t,s),l=l.next}while(l!==r)}wt(e,t,n);break;case 1:if(!de&&(hn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(i){X(n,t,i)}wt(e,t,n);break;case 21:wt(e,t,n);break;case 22:n.mode&1?(de=(r=de)||n.memoizedState!==null,wt(e,t,n),de=r):wt(e,t,n);break;default:wt(e,t,n)}}function Ta(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kp),t.forEach(function(r){var l=rm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Ae(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:se=i.stateNode,Be=!1;break e;case 3:se=i.stateNode.containerInfo,Be=!0;break e;case 4:se=i.stateNode.containerInfo,Be=!0;break e}i=i.return}if(se===null)throw Error(j(160));Xc(o,s,l),se=null,Be=!1;var u=l.alternate;u!==null&&(u.return=null),l.return=null}catch(c){X(l,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zc(t,e),t=t.sibling}function Zc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ae(t,e),Ye(e),r&4){try{tr(3,e,e.return),Wl(3,e)}catch(w){X(e,e.return,w)}try{tr(5,e,e.return)}catch(w){X(e,e.return,w)}}break;case 1:Ae(t,e),Ye(e),r&512&&n!==null&&hn(n,n.return);break;case 5:if(Ae(t,e),Ye(e),r&512&&n!==null&&hn(n,n.return),e.flags&32){var l=e.stateNode;try{or(l,"")}catch(w){X(e,e.return,w)}}if(r&4&&(l=e.stateNode,l!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,i=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&wu(l,o),Ho(i,s);var c=Ho(i,o);for(s=0;s<u.length;s+=2){var y=u[s],p=u[s+1];y==="style"?Eu(l,p):y==="dangerouslySetInnerHTML"?Su(l,p):y==="children"?or(l,p):Ds(l,y,p,c)}switch(i){case"input":Fo(l,o);break;case"textarea":ku(l,o);break;case"select":var h=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var v=o.value;v!=null?gn(l,!!o.multiple,v,!1):h!==!!o.multiple&&(o.defaultValue!=null?gn(l,!!o.multiple,o.defaultValue,!0):gn(l,!!o.multiple,o.multiple?[]:"",!1))}l[mr]=o}catch(w){X(e,e.return,w)}}break;case 6:if(Ae(t,e),Ye(e),r&4){if(e.stateNode===null)throw Error(j(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(w){X(e,e.return,w)}}break;case 3:if(Ae(t,e),Ye(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{ur(t.containerInfo)}catch(w){X(e,e.return,w)}break;case 4:Ae(t,e),Ye(e);break;case 13:Ae(t,e),Ye(e),l=e.child,l.flags&8192&&(o=l.memoizedState!==null,l.stateNode.isHidden=o,!o||l.alternate!==null&&l.alternate.memoizedState!==null||(mi=Z())),r&4&&Ta(e);break;case 22:if(y=n!==null&&n.memoizedState!==null,e.mode&1?(de=(c=de)||y,Ae(t,e),de=c):Ae(t,e),Ye(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!y&&e.mode&1)for(T=e,y=e.child;y!==null;){for(p=T=y;T!==null;){switch(h=T,v=h.child,h.tag){case 0:case 11:case 14:case 15:tr(4,h,h.return);break;case 1:hn(h,h.return);var x=h.stateNode;if(typeof x.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(w){X(r,n,w)}}break;case 5:hn(h,h.return);break;case 22:if(h.memoizedState!==null){Oa(p);continue}}v!==null?(v.return=h,T=v):Oa(p)}y=y.sibling}e:for(y=null,p=e;;){if(p.tag===5){if(y===null){y=p;try{l=p.stateNode,c?(o=l.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=p.stateNode,u=p.memoizedProps.style,s=u!=null&&u.hasOwnProperty("display")?u.display:null,i.style.display=ju("display",s))}catch(w){X(e,e.return,w)}}}else if(p.tag===6){if(y===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(w){X(e,e.return,w)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;y===p&&(y=null),p=p.return}y===p&&(y=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Ae(t,e),Ye(e),r&4&&Ta(e);break;case 21:break;default:Ae(t,e),Ye(e)}}function Ye(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Gc(n)){var r=n;break e}n=n.return}throw Error(j(160))}switch(r.tag){case 5:var l=r.stateNode;r.flags&32&&(or(l,""),r.flags&=-33);var o=La(e);ws(e,o,l);break;case 3:case 4:var s=r.stateNode.containerInfo,i=La(e);xs(e,i,s);break;default:throw Error(j(161))}}catch(u){X(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yp(e,t,n){T=e,qc(e)}function qc(e,t,n){for(var r=(e.mode&1)!==0;T!==null;){var l=T,o=l.child;if(l.tag===22&&r){var s=l.memoizedState!==null||Wr;if(!s){var i=l.alternate,u=i!==null&&i.memoizedState!==null||de;i=Wr;var c=de;if(Wr=s,(de=u)&&!c)for(T=l;T!==null;)s=T,u=s.child,s.tag===22&&s.memoizedState!==null?Ia(l):u!==null?(u.return=s,T=u):Ia(l);for(;o!==null;)T=o,qc(o),o=o.sibling;T=l,Wr=i,de=c}za(e)}else l.subtreeFlags&8772&&o!==null?(o.return=l,T=o):za(e)}}function za(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:de||Wl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!de)if(n===null)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:Ue(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ya(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ya(t,s,n)}break;case 5:var i=t.stateNode;if(n===null&&t.flags&4){n=i;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var y=c.memoizedState;if(y!==null){var p=y.dehydrated;p!==null&&ur(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}de||t.flags&512&&vs(t)}catch(h){X(t,t.return,h)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function Oa(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function Ia(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wl(4,t)}catch(u){X(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var l=t.return;try{r.componentDidMount()}catch(u){X(t,l,u)}}var o=t.return;try{vs(t)}catch(u){X(t,o,u)}break;case 5:var s=t.return;try{vs(t)}catch(u){X(t,s,u)}}}catch(u){X(t,t.return,u)}if(t===e){T=null;break}var i=t.sibling;if(i!==null){i.return=t.return,T=i;break}T=t.return}}var Gp=Math.ceil,Pl=mt.ReactCurrentDispatcher,fi=mt.ReactCurrentOwner,be=mt.ReactCurrentBatchConfig,$=0,le=null,q=null,ie=0,Ee=0,yn=$t(0),ne=0,wr=null,Xt=0,Ql=0,pi=0,nr=null,we=null,mi=0,Rn=1/0,rt=null,Rl=!1,ks=null,zt=null,Qr=!1,Ct=null,Ll=0,rr=0,Ns=null,ll=-1,ol=0;function ye(){return $&6?Z():ll!==-1?ll:ll=Z()}function Ot(e){return e.mode&1?$&2&&ie!==0?ie&-ie:Op.transition!==null?(ol===0&&(ol=Mu()),ol):(e=A,e!==0||(e=window.event,e=e===void 0?16:Hu(e.type)),e):1}function We(e,t,n,r){if(50<rr)throw rr=0,Ns=null,Error(j(185));Sr(e,n,r),(!($&2)||e!==le)&&(e===le&&(!($&2)&&(Ql|=n),ne===4&&jt(e,ie)),je(e,r),n===1&&$===0&&!(t.mode&1)&&(Rn=Z()+500,Bl&&Ft()))}function je(e,t){var n=e.callbackNode;Of(e,t);var r=pl(e,e===le?ie:0);if(r===0)n!==null&&Vi(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Vi(n),t===1)e.tag===0?zp(Da.bind(null,e)):uc(Da.bind(null,e)),Pp(function(){!($&6)&&Ft()}),n=null;else{switch($u(r)){case 1:n=As;break;case 4:n=Du;break;case 16:n=fl;break;case 536870912:n=bu;break;default:n=fl}n=id(n,ed.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ed(e,t){if(ll=-1,ol=0,$&6)throw Error(j(327));var n=e.callbackNode;if(Nn()&&e.callbackNode!==n)return null;var r=pl(e,e===le?ie:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Tl(e,r);else{t=r;var l=$;$|=2;var o=nd();(le!==e||ie!==t)&&(rt=null,Rn=Z()+500,Qt(e,t));do try{qp();break}catch(i){td(e,i)}while(!0);qs(),Pl.current=o,$=l,q!==null?t=0:(le=null,ie=0,t=ne)}if(t!==0){if(t===2&&(l=Yo(e),l!==0&&(r=l,t=Ss(e,l))),t===1)throw n=wr,Qt(e,0),jt(e,r),je(e,Z()),n;if(t===6)jt(e,r);else{if(l=e.current.alternate,!(r&30)&&!Xp(l)&&(t=Tl(e,r),t===2&&(o=Yo(e),o!==0&&(r=o,t=Ss(e,o))),t===1))throw n=wr,Qt(e,0),jt(e,r),je(e,Z()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(j(345));case 2:Bt(e,we,rt);break;case 3:if(jt(e,r),(r&130023424)===r&&(t=mi+500-Z(),10<t)){if(pl(e,0)!==0)break;if(l=e.suspendedLanes,(l&r)!==r){ye(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rs(Bt.bind(null,e,we,rt),t);break}Bt(e,we,rt);break;case 4:if(jt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,l=-1;0<r;){var s=31-He(r);o=1<<s,s=t[s],s>l&&(l=s),r&=~o}if(r=l,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gp(r/1960))-r,10<r){e.timeoutHandle=rs(Bt.bind(null,e,we,rt),r);break}Bt(e,we,rt);break;case 5:Bt(e,we,rt);break;default:throw Error(j(329))}}}return je(e,Z()),e.callbackNode===n?ed.bind(null,e):null}function Ss(e,t){var n=nr;return e.current.memoizedState.isDehydrated&&(Qt(e,t).flags|=256),e=Tl(e,t),e!==2&&(t=we,we=n,t!==null&&js(t)),e}function js(e){we===null?we=e:we.push.apply(we,e)}function Xp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var l=n[r],o=l.getSnapshot;l=l.value;try{if(!Qe(o(),l))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function jt(e,t){for(t&=~pi,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-He(t),r=1<<n;e[n]=-1,t&=~r}}function Da(e){if($&6)throw Error(j(327));Nn();var t=pl(e,0);if(!(t&1))return je(e,Z()),null;var n=Tl(e,t);if(e.tag!==0&&n===2){var r=Yo(e);r!==0&&(t=r,n=Ss(e,r))}if(n===1)throw n=wr,Qt(e,0),jt(e,t),je(e,Z()),n;if(n===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Bt(e,we,rt),je(e,Z()),null}function hi(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(Rn=Z()+500,Bl&&Ft())}}function Zt(e){Ct!==null&&Ct.tag===0&&!($&6)&&Nn();var t=$;$|=1;var n=be.transition,r=A;try{if(be.transition=null,A=1,e)return e()}finally{A=r,be.transition=n,$=t,!($&6)&&Ft()}}function yi(){Ee=yn.current,H(yn)}function Qt(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,_p(n)),q!==null)for(n=q.return;n!==null;){var r=n;switch(Gs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&vl();break;case 3:_n(),H(Ne),H(fe),oi();break;case 5:li(r);break;case 4:_n();break;case 13:H(J);break;case 19:H(J);break;case 10:ei(r.type._context);break;case 22:case 23:yi()}n=n.return}if(le=e,q=e=It(e.current,null),ie=Ee=t,ne=0,wr=null,pi=Ql=Xt=0,we=nr=null,Ht!==null){for(t=0;t<Ht.length;t++)if(n=Ht[t],r=n.interleaved,r!==null){n.interleaved=null;var l=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=l,r.next=s}n.pending=r}Ht=null}return e}function td(e,t){do{var n=q;try{if(qs(),tl.current=_l,Cl){for(var r=Y.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Cl=!1}if(Gt=0,re=te=Y=null,er=!1,gr=0,fi.current=null,n===null||n.return===null){ne=1,wr=t,q=null;break}e:{var o=e,s=n.return,i=n,u=t;if(t=ie,i.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u,y=i,p=y.tag;if(!(y.mode&1)&&(p===0||p===11||p===15)){var h=y.alternate;h?(y.updateQueue=h.updateQueue,y.memoizedState=h.memoizedState,y.lanes=h.lanes):(y.updateQueue=null,y.memoizedState=null)}var v=Na(s);if(v!==null){v.flags&=-257,Sa(v,s,i,o,t),v.mode&1&&ka(o,c,t),t=v,u=c;var x=t.updateQueue;if(x===null){var w=new Set;w.add(u),t.updateQueue=w}else x.add(u);break e}else{if(!(t&1)){ka(o,c,t),gi();break e}u=Error(j(426))}}else if(Q&&i.mode&1){var N=Na(s);if(N!==null){!(N.flags&65536)&&(N.flags|=256),Sa(N,s,i,o,t),Xs(Pn(u,i));break e}}o=u=Pn(u,i),ne!==4&&(ne=2),nr===null?nr=[o]:nr.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var f=$c(o,u,t);ha(o,f);break e;case 1:i=u;var d=o.type,m=o.stateNode;if(!(o.flags&128)&&(typeof d.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(zt===null||!zt.has(m)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=Fc(o,i,t);ha(o,k);break e}}o=o.return}while(o!==null)}ld(n)}catch(S){t=S,q===n&&n!==null&&(q=n=n.return);continue}break}while(!0)}function nd(){var e=Pl.current;return Pl.current=_l,e===null?_l:e}function gi(){(ne===0||ne===3||ne===2)&&(ne=4),le===null||!(Xt&268435455)&&!(Ql&268435455)||jt(le,ie)}function Tl(e,t){var n=$;$|=2;var r=nd();(le!==e||ie!==t)&&(rt=null,Qt(e,t));do try{Zp();break}catch(l){td(e,l)}while(!0);if(qs(),$=n,Pl.current=r,q!==null)throw Error(j(261));return le=null,ie=0,ne}function Zp(){for(;q!==null;)rd(q)}function qp(){for(;q!==null&&!jf();)rd(q)}function rd(e){var t=sd(e.alternate,e,Ee);e.memoizedProps=e.pendingProps,t===null?ld(e):q=t,fi.current=null}function ld(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Qp(n,t),n!==null){n.flags&=32767,q=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,q=null;return}}else if(n=Wp(n,t,Ee),n!==null){q=n;return}if(t=t.sibling,t!==null){q=t;return}q=t=e}while(t!==null);ne===0&&(ne=5)}function Bt(e,t,n){var r=A,l=be.transition;try{be.transition=null,A=1,em(e,t,n,r)}finally{be.transition=l,A=r}return null}function em(e,t,n,r){do Nn();while(Ct!==null);if($&6)throw Error(j(327));n=e.finishedWork;var l=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(If(e,o),e===le&&(q=le=null,ie=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qr||(Qr=!0,id(fl,function(){return Nn(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=be.transition,be.transition=null;var s=A;A=1;var i=$;$|=4,fi.current=null,Jp(e,n),Zc(n,e),wp(ts),ml=!!es,ts=es=null,e.current=n,Yp(n),Ef(),$=i,A=s,be.transition=o}else e.current=n;if(Qr&&(Qr=!1,Ct=e,Ll=l),o=e.pendingLanes,o===0&&(zt=null),Pf(n.stateNode),je(e,Z()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)l=t[n],r(l.value,{componentStack:l.stack,digest:l.digest});if(Rl)throw Rl=!1,e=ks,ks=null,e;return Ll&1&&e.tag!==0&&Nn(),o=e.pendingLanes,o&1?e===Ns?rr++:(rr=0,Ns=e):rr=0,Ft(),null}function Nn(){if(Ct!==null){var e=$u(Ll),t=be.transition,n=A;try{if(be.transition=null,A=16>e?16:e,Ct===null)var r=!1;else{if(e=Ct,Ct=null,Ll=0,$&6)throw Error(j(331));var l=$;for($|=4,T=e.current;T!==null;){var o=T,s=o.child;if(T.flags&16){var i=o.deletions;if(i!==null){for(var u=0;u<i.length;u++){var c=i[u];for(T=c;T!==null;){var y=T;switch(y.tag){case 0:case 11:case 15:tr(8,y,o)}var p=y.child;if(p!==null)p.return=y,T=p;else for(;T!==null;){y=T;var h=y.sibling,v=y.return;if(Yc(y),y===c){T=null;break}if(h!==null){h.return=v,T=h;break}T=v}}}var x=o.alternate;if(x!==null){var w=x.child;if(w!==null){x.child=null;do{var N=w.sibling;w.sibling=null,w=N}while(w!==null)}}T=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,T=s;else e:for(;T!==null;){if(o=T,o.flags&2048)switch(o.tag){case 0:case 11:case 15:tr(9,o,o.return)}var f=o.sibling;if(f!==null){f.return=o.return,T=f;break e}T=o.return}}var d=e.current;for(T=d;T!==null;){s=T;var m=s.child;if(s.subtreeFlags&2064&&m!==null)m.return=s,T=m;else e:for(s=d;T!==null;){if(i=T,i.flags&2048)try{switch(i.tag){case 0:case 11:case 15:Wl(9,i)}}catch(S){X(i,i.return,S)}if(i===s){T=null;break e}var k=i.sibling;if(k!==null){k.return=i.return,T=k;break e}T=i.return}}if($=l,Ft(),Ze&&typeof Ze.onPostCommitFiberRoot=="function")try{Ze.onPostCommitFiberRoot(Ml,e)}catch{}r=!0}return r}finally{A=n,be.transition=t}}return!1}function ba(e,t,n){t=Pn(n,t),t=$c(e,t,1),e=Tt(e,t,1),t=ye(),e!==null&&(Sr(e,1,t),je(e,t))}function X(e,t,n){if(e.tag===3)ba(e,e,n);else for(;t!==null;){if(t.tag===3){ba(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(zt===null||!zt.has(r))){e=Pn(n,e),e=Fc(t,e,1),t=Tt(t,e,1),e=ye(),t!==null&&(Sr(t,1,e),je(t,e));break}}t=t.return}}function tm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=ye(),e.pingedLanes|=e.suspendedLanes&n,le===e&&(ie&n)===n&&(ne===4||ne===3&&(ie&130023424)===ie&&500>Z()-mi?Qt(e,0):pi|=n),je(e,t)}function od(e,t){t===0&&(e.mode&1?(t=br,br<<=1,!(br&130023424)&&(br=4194304)):t=1);var n=ye();e=dt(e,t),e!==null&&(Sr(e,t,n),je(e,n))}function nm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),od(e,n)}function rm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),od(e,n)}var sd;sd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ke=!1,Hp(e,t,n);ke=!!(e.flags&131072)}else ke=!1,Q&&t.flags&1048576&&cc(t,kl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;rl(e,t),e=t.pendingProps;var l=jn(t,fe.current);kn(t,n),l=ii(null,t,r,e,l,n);var o=ai();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Se(r)?(o=!0,xl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,ni(t),l.updater=Hl,t.stateNode=l,l._reactInternals=t,cs(t,r,e,n),t=ps(null,t,r,!0,o,n)):(t.tag=0,Q&&o&&Ys(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(rl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=om(r),e=Ue(r,e),l){case 0:t=fs(null,t,r,e,n);break e;case 1:t=Ca(null,t,r,e,n);break e;case 11:t=ja(null,t,r,e,n);break e;case 14:t=Ea(null,t,r,Ue(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),fs(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),Ca(e,t,r,l,n);case 3:e:{if(Vc(t),e===null)throw Error(j(387));r=t.pendingProps,o=t.memoizedState,l=o.element,yc(e,t),jl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Pn(Error(j(423)),t),t=_a(e,t,r,n,l);break e}else if(r!==l){l=Pn(Error(j(424)),t),t=_a(e,t,r,n,l);break e}else for(Ce=Lt(t.stateNode.containerInfo.firstChild),_e=t,Q=!0,Ve=null,n=mc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===l){t=ft(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return gc(t),e===null&&is(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,s=l.children,ns(r,l)?s=null:o!==null&&ns(r,o)&&(t.flags|=32),Bc(e,t),he(e,t,s,n),t.child;case 6:return e===null&&is(t),null;case 13:return Hc(e,t,n);case 4:return ri(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Cn(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),ja(e,t,r,l,n);case 7:return he(e,t,t.pendingProps,n),t.child;case 8:return he(e,t,t.pendingProps.children,n),t.child;case 12:return he(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,s=l.value,B(Nl,r._currentValue),r._currentValue=s,o!==null)if(Qe(o.value,s)){if(o.children===l.children&&!Ne.current){t=ft(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var u=i.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=it(-1,n&-n),u.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var y=c.pending;y===null?u.next=u:(u.next=y.next,y.next=u),c.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),as(o.return,n,t),i.lanes|=n;break}u=u.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(j(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),as(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,kn(t,n),l=Me(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=Ue(r,t.pendingProps),l=Ue(r.type,l),Ea(e,t,r,l,n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ue(r,l),rl(e,t),t.tag=1,Se(r)?(e=!0,xl(t)):e=!1,kn(t,n),Mc(t,r,l),cs(t,r,l,n),ps(null,t,r,!0,e,n);case 19:return Wc(e,t,n);case 22:return Uc(e,t,n)}throw Error(j(156,t.tag))};function id(e,t){return Iu(e,t)}function lm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(e,t,n,r){return new lm(e,t,n,r)}function vi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function om(e){if(typeof e=="function")return vi(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ms)return 11;if(e===$s)return 14}return 2}function It(e,t){var n=e.alternate;return n===null?(n=De(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function sl(e,t,n,r,l,o){var s=2;if(r=e,typeof e=="function")vi(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case on:return Kt(n.children,l,o,t);case bs:s=8,l|=8;break;case Io:return e=De(12,n,t,l|2),e.elementType=Io,e.lanes=o,e;case Do:return e=De(13,n,t,l),e.elementType=Do,e.lanes=o,e;case bo:return e=De(19,n,t,l),e.elementType=bo,e.lanes=o,e;case gu:return Kl(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hu:s=10;break e;case yu:s=9;break e;case Ms:s=11;break e;case $s:s=14;break e;case kt:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=De(s,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Kt(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function Kl(e,t,n,r){return e=De(22,e,r,t),e.elementType=gu,e.lanes=n,e.stateNode={isHidden:!1},e}function Co(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function _o(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sm(e,t,n,r,l){this.tag=t,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=so(0),this.expirationTimes=so(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=so(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function xi(e,t,n,r,l,o,s,i,u){return e=new sm(e,t,n,i,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=De(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ni(o),e}function im(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ln,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ad(e){if(!e)return bt;e=e._reactInternals;e:{if(en(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Se(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var n=e.type;if(Se(n))return ac(e,n,t)}return t}function ud(e,t,n,r,l,o,s,i,u){return e=xi(n,r,!0,e,l,o,s,i,u),e.context=ad(null),n=e.current,r=ye(),l=Ot(n),o=it(r,l),o.callback=t??null,Tt(n,o,l),e.current.lanes=l,Sr(e,l,r),je(e,r),e}function Jl(e,t,n,r){var l=t.current,o=ye(),s=Ot(l);return n=ad(n),t.context===null?t.context=n:t.pendingContext=n,t=it(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Tt(l,t,s),e!==null&&(We(e,l,s,o),el(e,l,s)),s}function zl(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 Ma(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wi(e,t){Ma(e,t),(e=e.alternate)&&Ma(e,t)}function am(){return null}var cd=typeof reportError=="function"?reportError:function(e){console.error(e)};function ki(e){this._internalRoot=e}Yl.prototype.render=ki.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Jl(e,t,null,null)};Yl.prototype.unmount=ki.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Zt(function(){Jl(null,e,null,null)}),t[ct]=null}};function Yl(e){this._internalRoot=e}Yl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Uu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<St.length&&t!==0&&t<St[n].priority;n++);St.splice(n,0,e),n===0&&Vu(e)}};function Ni(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function $a(){}function um(e,t,n,r,l){if(l){if(typeof r=="function"){var o=r;r=function(){var c=zl(s);o.call(c)}}var s=ud(t,r,e,0,null,!1,!1,"",$a);return e._reactRootContainer=s,e[ct]=s.current,fr(e.nodeType===8?e.parentNode:e),Zt(),s}for(;l=e.lastChild;)e.removeChild(l);if(typeof r=="function"){var i=r;r=function(){var c=zl(u);i.call(c)}}var u=xi(e,0,!1,null,null,!1,!1,"",$a);return e._reactRootContainer=u,e[ct]=u.current,fr(e.nodeType===8?e.parentNode:e),Zt(function(){Jl(t,u,n,r)}),u}function Xl(e,t,n,r,l){var o=n._reactRootContainer;if(o){var s=o;if(typeof l=="function"){var i=l;l=function(){var u=zl(s);i.call(u)}}Jl(t,s,e,l)}else s=um(n,t,e,l,r);return zl(s)}Fu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Kn(t.pendingLanes);n!==0&&(Us(t,n|1),je(t,Z()),!($&6)&&(Rn=Z()+500,Ft()))}break;case 13:Zt(function(){var r=dt(e,1);if(r!==null){var l=ye();We(r,e,1,l)}}),wi(e,1)}};Bs=function(e){if(e.tag===13){var t=dt(e,134217728);if(t!==null){var n=ye();We(t,e,134217728,n)}wi(e,134217728)}};Au=function(e){if(e.tag===13){var t=Ot(e),n=dt(e,t);if(n!==null){var r=ye();We(n,e,t,r)}wi(e,t)}};Uu=function(){return A};Bu=function(e,t){var n=A;try{return A=e,t()}finally{A=n}};Qo=function(e,t,n){switch(t){case"input":if(Fo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Ul(r);if(!l)throw Error(j(90));xu(r),Fo(r,l)}}}break;case"textarea":ku(e,n);break;case"select":t=n.value,t!=null&&gn(e,!!n.multiple,t,!1)}};Pu=hi;Ru=Zt;var cm={usingClientEntryPoint:!1,Events:[Er,cn,Ul,Cu,_u,hi]},Vn={findFiberByHostInstance:Vt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},dm={bundleType:Vn.bundleType,version:Vn.version,rendererPackageName:Vn.rendererPackageName,rendererConfig:Vn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:mt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=zu(e),e===null?null:e.stateNode},findFiberByHostInstance:Vn.findFiberByHostInstance||am,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 Kr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Kr.isDisabled&&Kr.supportsFiber)try{Ml=Kr.inject(dm),Ze=Kr}catch{}}Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cm;Re.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ni(t))throw Error(j(200));return im(e,t,null,n)};Re.createRoot=function(e,t){if(!Ni(e))throw Error(j(299));var n=!1,r="",l=cd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=xi(e,1,!1,null,null,n,!1,r,l),e[ct]=t.current,fr(e.nodeType===8?e.parentNode:e),new ki(t)};Re.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=zu(t),e=e===null?null:e.stateNode,e};Re.flushSync=function(e){return Zt(e)};Re.hydrate=function(e,t,n){if(!Gl(t))throw Error(j(200));return Xl(null,e,t,!0,n)};Re.hydrateRoot=function(e,t,n){if(!Ni(e))throw Error(j(405));var r=n!=null&&n.hydratedSources||null,l=!1,o="",s=cd;if(n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=ud(t,null,e,1,n??null,l,!1,o,s),e[ct]=t.current,fr(e),r)for(e=0;e<r.length;e++)n=r[e],l=n._getVersion,l=l(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Yl(t)};Re.render=function(e,t,n){if(!Gl(t))throw Error(j(200));return Xl(null,e,t,!1,n)};Re.unmountComponentAtNode=function(e){if(!Gl(e))throw Error(j(40));return e._reactRootContainer?(Zt(function(){Xl(null,null,e,!1,function(){e._reactRootContainer=null,e[ct]=null})}),!0):!1};Re.unstable_batchedUpdates=hi;Re.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Gl(n))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return Xl(e,t,n,!1,r)};Re.version="18.3.1-next-f1338f8080-20240426";function dd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dd)}catch(e){console.error(e)}}dd(),du.exports=Re;var fm=du.exports,Fa=fm;zo.createRoot=Fa.createRoot,zo.hydrateRoot=Fa.hydrateRoot;/**
|
|
* react-router v7.13.0
|
|
*
|
|
* Copyright (c) Remix Software Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE.md file in the root directory of this source tree.
|
|
*
|
|
* @license MIT
|
|
*/var Aa="popstate";function pm(e={}){function t(r,l){let{pathname:o,search:s,hash:i}=r.location;return Es("",{pathname:o,search:s,hash:i},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function n(r,l){return typeof l=="string"?l:kr(l)}return hm(t,n,null,e)}function K(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ke(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mm(){return Math.random().toString(36).substring(2,10)}function Ua(e,t){return{usr:e.state,key:e.key,idx:t}}function Es(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?On(t):t,state:n,key:t&&t.key||r||mm()}}function kr({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function On(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function hm(e,t,n,r={}){let{window:l=document.defaultView,v5Compat:o=!1}=r,s=l.history,i="POP",u=null,c=y();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function y(){return(s.state||{idx:null}).idx}function p(){i="POP";let N=y(),f=N==null?null:N-c;c=N,u&&u({action:i,location:w.location,delta:f})}function h(N,f){i="PUSH";let d=Es(w.location,N,f);c=y()+1;let m=Ua(d,c),k=w.createHref(d);try{s.pushState(m,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;l.location.assign(k)}o&&u&&u({action:i,location:w.location,delta:1})}function v(N,f){i="REPLACE";let d=Es(w.location,N,f);c=y();let m=Ua(d,c),k=w.createHref(d);s.replaceState(m,"",k),o&&u&&u({action:i,location:w.location,delta:0})}function x(N){return ym(N)}let w={get action(){return i},get location(){return e(l,s)},listen(N){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Aa,p),u=N,()=>{l.removeEventListener(Aa,p),u=null}},createHref(N){return t(l,N)},createURL:x,encodeLocation(N){let f=x(N);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:h,replace:v,go(N){return s.go(N)}};return w}function ym(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),K(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:kr(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function fd(e,t,n="/"){return gm(e,t,n,!1)}function gm(e,t,n,r){let l=typeof t=="string"?On(t):t,o=pt(l.pathname||"/",n);if(o==null)return null;let s=pd(e);vm(s);let i=null;for(let u=0;i==null&&u<s.length;++u){let c=Rm(o);i=_m(s[u],c,r)}return i}function pd(e,t=[],n=[],r="",l=!1){let o=(s,i,u=l,c)=>{let y={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&u)return;K(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let p=at([r,y.relativePath]),h=n.concat(y);s.children&&s.children.length>0&&(K(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),pd(s.children,t,h,p,u)),!(s.path==null&&!s.index)&&t.push({path:p,score:Em(p,s.index),routesMeta:h})};return e.forEach((s,i)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))o(s,i);else for(let c of md(s.path))o(s,i,!0,c)}),t}function md(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let s=md(r.join("/")),i=[];return i.push(...s.map(u=>u===""?o:[o,u].join("/"))),l&&i.push(...s),i.map(u=>e.startsWith("/")&&u===""?"/":u)}function vm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Cm(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var xm=/^:[\w-]+$/,wm=3,km=2,Nm=1,Sm=10,jm=-2,Ba=e=>e==="*";function Em(e,t){let n=e.split("/"),r=n.length;return n.some(Ba)&&(r+=jm),t&&(r+=km),n.filter(l=>!Ba(l)).reduce((l,o)=>l+(xm.test(o)?wm:o===""?Nm:Sm),r)}function Cm(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function _m(e,t,n=!1){let{routesMeta:r}=e,l={},o="/",s=[];for(let i=0;i<r.length;++i){let u=r[i],c=i===r.length-1,y=o==="/"?t:t.slice(o.length)||"/",p=Ol({path:u.relativePath,caseSensitive:u.caseSensitive,end:c},y),h=u.route;if(!p&&c&&n&&!r[r.length-1].route.index&&(p=Ol({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},y)),!p)return null;Object.assign(l,p.params),s.push({params:l,pathname:at([o,p.pathname]),pathnameBase:Om(at([o,p.pathnameBase])),route:h}),p.pathnameBase!=="/"&&(o=at([o,p.pathnameBase]))}return s}function Ol(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Pm(e.path,e.caseSensitive,e.end),l=t.match(n);if(!l)return null;let o=l[0],s=o.replace(/(.)\/+$/,"$1"),i=l.slice(1);return{params:r.reduce((c,{paramName:y,isOptional:p},h)=>{if(y==="*"){let x=i[h]||"";s=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const v=i[h];return p&&!v?c[y]=void 0:c[y]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:e}}function Pm(e,t=!1,n=!0){Ke(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,i,u)=>(r.push({paramName:i,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Rm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ke(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function pt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Tm(e,t="/"){let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?On(e):e,o;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?o=Va(n.substring(1),"/"):o=Va(n,t)):o=t,{pathname:o,search:Im(r),hash:Dm(l)}}function Va(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Po(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Si(e){let t=zm(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function ji(e,t,n,r=!1){let l;typeof e=="string"?l=On(e):(l={...e},K(!l.pathname||!l.pathname.includes("?"),Po("?","pathname","search",l)),K(!l.pathname||!l.pathname.includes("#"),Po("#","pathname","hash",l)),K(!l.search||!l.search.includes("#"),Po("#","search","hash",l)));let o=e===""||l.pathname==="",s=o?"/":l.pathname,i;if(s==null)i=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),p-=1;l.pathname=h.join("/")}i=p>=0?t[p]:"/"}let u=Tm(l,i),c=s&&s!=="/"&&s.endsWith("/"),y=(o||s===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(c||y)&&(u.pathname+="/"),u}var at=e=>e.join("/").replace(/\/\/+/g,"/"),Om=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Im=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Dm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,bm=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Mm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $m(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var hd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yd(e,t){let n=e;if(typeof n!="string"||!Lm.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,l=!1;if(hd)try{let o=new URL(window.location.href),s=n.startsWith("//")?new URL(o.protocol+n):new URL(n),i=pt(s.pathname,t);s.origin===o.origin&&i!=null?n=i+s.search+s.hash:l=!0}catch{Ke(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:l,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gd=["POST","PUT","PATCH","DELETE"];new Set(gd);var Fm=["GET",...gd];new Set(Fm);var In=g.createContext(null);In.displayName="DataRouter";var Zl=g.createContext(null);Zl.displayName="DataRouterState";var Am=g.createContext(!1),vd=g.createContext({isTransitioning:!1});vd.displayName="ViewTransition";var Um=g.createContext(new Map);Um.displayName="Fetchers";var Bm=g.createContext(null);Bm.displayName="Await";var Te=g.createContext(null);Te.displayName="Navigation";var _r=g.createContext(null);_r.displayName="Location";var et=g.createContext({outlet:null,matches:[],isDataRoute:!1});et.displayName="Route";var Ei=g.createContext(null);Ei.displayName="RouteError";var xd="REACT_ROUTER_ERROR",Vm="REDIRECT",Hm="ROUTE_ERROR_RESPONSE";function Wm(e){if(e.startsWith(`${xd}:${Vm}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Qm(e){if(e.startsWith(`${xd}:${Hm}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new bm(t.status,t.statusText,t.data)}catch{}}function Km(e,{relative:t}={}){K(Dn(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=g.useContext(Te),{hash:l,pathname:o,search:s}=Pr(e,{relative:t}),i=o;return n!=="/"&&(i=o==="/"?n:at([n,o])),r.createHref({pathname:i,search:s,hash:l})}function Dn(){return g.useContext(_r)!=null}function ht(){return K(Dn(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(_r).location}var wd="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kd(e){g.useContext(Te).static||g.useLayoutEffect(e)}function Ci(){let{isDataRoute:e}=g.useContext(et);return e?sh():Jm()}function Jm(){K(Dn(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(In),{basename:t,navigator:n}=g.useContext(Te),{matches:r}=g.useContext(et),{pathname:l}=ht(),o=JSON.stringify(Si(r)),s=g.useRef(!1);return kd(()=>{s.current=!0}),g.useCallback((u,c={})=>{if(Ke(s.current,wd),!s.current)return;if(typeof u=="number"){n.go(u);return}let y=ji(u,JSON.parse(o),l,c.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:at([t,y.pathname])),(c.replace?n.replace:n.push)(y,c.state,c)},[t,n,o,l,e])}g.createContext(null);function Pr(e,{relative:t}={}){let{matches:n}=g.useContext(et),{pathname:r}=ht(),l=JSON.stringify(Si(n));return g.useMemo(()=>ji(e,JSON.parse(l),r,t==="path"),[e,l,r,t])}function Ym(e,t){return Nd(e,t)}function Nd(e,t,n,r,l){var d;K(Dn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=g.useContext(Te),{matches:s}=g.useContext(et),i=s[s.length-1],u=i?i.params:{},c=i?i.pathname:"/",y=i?i.pathnameBase:"/",p=i&&i.route;{let m=p&&p.path||"";jd(c,!p||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
|
|
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let h=ht(),v;if(t){let m=typeof t=="string"?On(t):t;K(y==="/"||((d=m.pathname)==null?void 0:d.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${m.pathname}" was given in the \`location\` prop.`),v=m}else v=h;let x=v.pathname||"/",w=x;if(y!=="/"){let m=y.replace(/^\//,"").split("/");w="/"+x.replace(/^\//,"").split("/").slice(m.length).join("/")}let N=fd(e,{pathname:w});Ke(p||N!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ke(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let f=eh(N&&N.map(m=>Object.assign({},m,{params:Object.assign({},u,m.params),pathname:at([y,o.encodeLocation?o.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?y:at([y,o.encodeLocation?o.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,l);return t&&f?g.createElement(_r.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},f):f}function Gm(){let e=oh(),t=Mm(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:o},"ErrorBoundary")," or"," ",g.createElement("code",{style:o},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),n?g.createElement("pre",{style:l},n):null,s)}var Xm=g.createElement(Gm,null),Sd=class extends g.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Qm(e.digest);n&&(e=n)}let t=e!==void 0?g.createElement(et.Provider,{value:this.props.routeContext},g.createElement(Ei.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(Zm,{error:e},t):t}};Sd.contextType=Am;var Ro=new WeakMap;function Zm({children:e,error:t}){let{basename:n}=g.useContext(Te);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=Wm(t.digest);if(r){let l=Ro.get(t);if(l)throw l;let o=yd(r.location,n);if(hd&&!Ro.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Ro.set(t,s),s}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function qm({routeContext:e,match:t,children:n}){let r=g.useContext(In);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(et.Provider,{value:e},n)}function eh(e,t=[],n=null,r=null,l=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,s=n==null?void 0:n.errors;if(s!=null){let y=o.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);K(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,y+1))}let i=!1,u=-1;if(n)for(let y=0;y<o.length;y++){let p=o[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(u=y),p.route.id){let{loaderData:h,errors:v}=n,x=p.route.loader&&!h.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||x){i=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}let c=n&&r?(y,p)=>{var h,v;r(y,{location:n.location,params:((v=(h=n.matches)==null?void 0:h[0])==null?void 0:v.params)??{},unstable_pattern:$m(n.matches),errorInfo:p})}:void 0;return o.reduceRight((y,p,h)=>{let v,x=!1,w=null,N=null;n&&(v=s&&p.route.id?s[p.route.id]:void 0,w=p.route.errorElement||Xm,i&&(u<0&&h===0?(jd("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,N=null):u===h&&(x=!0,N=p.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,h+1)),d=()=>{let m;return v?m=w:x?m=N:p.route.Component?m=g.createElement(p.route.Component,null):p.route.element?m=p.route.element:m=y,g.createElement(qm,{match:p,routeContext:{outlet:y,matches:f,isDataRoute:n!=null},children:m})};return n&&(p.route.ErrorBoundary||p.route.errorElement||h===0)?g.createElement(Sd,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:d(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):d()},null)}function _i(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function th(e){let t=g.useContext(In);return K(t,_i(e)),t}function nh(e){let t=g.useContext(Zl);return K(t,_i(e)),t}function rh(e){let t=g.useContext(et);return K(t,_i(e)),t}function Pi(e){let t=rh(e),n=t.matches[t.matches.length-1];return K(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function lh(){return Pi("useRouteId")}function oh(){var r;let e=g.useContext(Ei),t=nh("useRouteError"),n=Pi("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function sh(){let{router:e}=th("useNavigate"),t=Pi("useNavigate"),n=g.useRef(!1);return kd(()=>{n.current=!0}),g.useCallback(async(l,o={})=>{Ke(n.current,wd),n.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...o}))},[e,t])}var Ha={};function jd(e,t,n){!t&&!Ha[e]&&(Ha[e]=!0,Ke(!1,n))}g.memo(ih);function ih({routes:e,future:t,state:n,onError:r}){return Nd(e,void 0,n,r,t)}function ah({to:e,replace:t,state:n,relative:r}){K(Dn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:l}=g.useContext(Te);Ke(!l,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=g.useContext(et),{pathname:s}=ht(),i=Ci(),u=ji(e,Si(o),s,r==="path"),c=JSON.stringify(u);return g.useEffect(()=>{i(JSON.parse(c),{replace:t,state:n,relative:r})},[i,c,r,t,n]),null}function Cs(e){K(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function uh({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:l,static:o=!1,unstable_useTransitions:s}){K(!Dn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),u=g.useMemo(()=>({basename:i,navigator:l,static:o,unstable_useTransitions:s,future:{}}),[i,l,o,s]);typeof n=="string"&&(n=On(n));let{pathname:c="/",search:y="",hash:p="",state:h=null,key:v="default"}=n,x=g.useMemo(()=>{let w=pt(c,i);return w==null?null:{location:{pathname:w,search:y,hash:p,state:h,key:v},navigationType:r}},[i,c,y,p,h,v,r]);return Ke(x!=null,`<Router basename="${i}"> is not able to match the URL "${c}${y}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:g.createElement(Te.Provider,{value:u},g.createElement(_r.Provider,{children:t,value:x}))}function ch({children:e,location:t}){return Ym(_s(e),t)}function _s(e,t=[]){let n=[];return g.Children.forEach(e,(r,l)=>{if(!g.isValidElement(r))return;let o=[...t,l];if(r.type===g.Fragment){n.push.apply(n,_s(r.props.children,o));return}K(r.type===Cs,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),K(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=_s(r.props.children,o)),n.push(s)}),n}var il="get",al="application/x-www-form-urlencoded";function ql(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function dh(e){return ql(e)&&e.tagName.toLowerCase()==="button"}function fh(e){return ql(e)&&e.tagName.toLowerCase()==="form"}function ph(e){return ql(e)&&e.tagName.toLowerCase()==="input"}function mh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hh(e,t){return e.button===0&&(!t||t==="_self")&&!mh(e)}var Jr=null;function yh(){if(Jr===null)try{new FormData(document.createElement("form"),0),Jr=!1}catch{Jr=!0}return Jr}var gh=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lo(e){return e!=null&&!gh.has(e)?(Ke(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${al}"`),null):e}function vh(e,t){let n,r,l,o,s;if(fh(e)){let i=e.getAttribute("action");r=i?pt(i,t):null,n=e.getAttribute("method")||il,l=Lo(e.getAttribute("enctype"))||al,o=new FormData(e)}else if(dh(e)||ph(e)&&(e.type==="submit"||e.type==="image")){let i=e.form;if(i==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||i.getAttribute("action");if(r=u?pt(u,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||il,l=Lo(e.getAttribute("formenctype"))||Lo(i.getAttribute("enctype"))||al,o=new FormData(i,e),!yh()){let{name:c,type:y,value:p}=e;if(y==="image"){let h=c?`${c}.`:"";o.append(`${h}x`,"0"),o.append(`${h}y`,"0")}else c&&o.append(c,p)}}else{if(ql(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=il,r=null,l=al,s=e}return o&&l==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:l,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ri(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xh(e,t,n,r){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${r}`:l.pathname=`${l.pathname}.${r}`:l.pathname==="/"?l.pathname=`_root.${r}`:t&&pt(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${r}`,l}async function wh(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function kh(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Nh(e,t,n){let r=await Promise.all(e.map(async l=>{let o=t.routes[l.route.id];if(o){let s=await wh(o,n);return s.links?s.links():[]}return[]}));return Ch(r.flat(1).filter(kh).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function Wa(e,t,n,r,l,o){let s=(u,c)=>n[c]?u.route.id!==n[c].route.id:!0,i=(u,c)=>{var y;return n[c].pathname!==u.pathname||((y=n[c].route.path)==null?void 0:y.endsWith("*"))&&n[c].params["*"]!==u.params["*"]};return o==="assets"?t.filter((u,c)=>s(u,c)||i(u,c)):o==="data"?t.filter((u,c)=>{var p;let y=r.routes[u.route.id];if(!y||!y.hasLoader)return!1;if(s(u,c)||i(u,c))return!0;if(u.route.shouldRevalidate){let h=u.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Sh(e,t,{includeHydrateFallback:n}={}){return jh(e.map(r=>{let l=t.routes[r.route.id];if(!l)return[];let o=[l.module];return l.clientActionModule&&(o=o.concat(l.clientActionModule)),l.clientLoaderModule&&(o=o.concat(l.clientLoaderModule)),n&&l.hydrateFallbackModule&&(o=o.concat(l.hydrateFallbackModule)),l.imports&&(o=o.concat(l.imports)),o}).flat(1))}function jh(e){return[...new Set(e)]}function Eh(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ch(e,t){let n=new Set;return new Set(t),e.reduce((r,l)=>{let o=JSON.stringify(Eh(l));return n.has(o)||(n.add(o),r.push({key:o,link:l})),r},[])}function Ed(){let e=g.useContext(In);return Ri(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _h(){let e=g.useContext(Zl);return Ri(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Li=g.createContext(void 0);Li.displayName="FrameworkContext";function Cd(){let e=g.useContext(Li);return Ri(e,"You must render this element inside a <HydratedRouter> element"),e}function Ph(e,t){let n=g.useContext(Li),[r,l]=g.useState(!1),[o,s]=g.useState(!1),{onFocus:i,onBlur:u,onMouseEnter:c,onMouseLeave:y,onTouchStart:p}=t,h=g.useRef(null);g.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let w=f=>{f.forEach(d=>{s(d.isIntersecting)})},N=new IntersectionObserver(w,{threshold:.5});return h.current&&N.observe(h.current),()=>{N.disconnect()}}},[e]),g.useEffect(()=>{if(r){let w=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(w)}}},[r]);let v=()=>{l(!0)},x=()=>{l(!1),s(!1)};return n?e!=="intent"?[o,h,{}]:[o,h,{onFocus:Hn(i,v),onBlur:Hn(u,x),onMouseEnter:Hn(c,v),onMouseLeave:Hn(y,x),onTouchStart:Hn(p,v)}]:[!1,h,{}]}function Hn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Rh({page:e,...t}){let{router:n}=Ed(),r=g.useMemo(()=>fd(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?g.createElement(Th,{page:e,matches:r,...t}):null}function Lh(e){let{manifest:t,routeModules:n}=Cd(),[r,l]=g.useState([]);return g.useEffect(()=>{let o=!1;return Nh(e,t,n).then(s=>{o||l(s)}),()=>{o=!0}},[e,t,n]),r}function Th({page:e,matches:t,...n}){let r=ht(),{future:l,manifest:o,routeModules:s}=Cd(),{basename:i}=Ed(),{loaderData:u,matches:c}=_h(),y=g.useMemo(()=>Wa(e,t,c,o,r,"data"),[e,t,c,o,r]),p=g.useMemo(()=>Wa(e,t,c,o,r,"assets"),[e,t,c,o,r]),h=g.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,N=!1;if(t.forEach(d=>{var k;let m=o.routes[d.route.id];!m||!m.hasLoader||(!y.some(S=>S.route.id===d.route.id)&&d.route.id in u&&((k=s[d.route.id])!=null&&k.shouldRevalidate)||m.hasClientLoader?N=!0:w.add(d.route.id))}),w.size===0)return[];let f=xh(e,i,l.unstable_trailingSlashAwareDataRequests,"data");return N&&w.size>0&&f.searchParams.set("_routes",t.filter(d=>w.has(d.route.id)).map(d=>d.route.id).join(",")),[f.pathname+f.search]},[i,l.unstable_trailingSlashAwareDataRequests,u,r,o,y,t,e,s]),v=g.useMemo(()=>Sh(p,o),[p,o]),x=Lh(p);return g.createElement(g.Fragment,null,h.map(w=>g.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),v.map(w=>g.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),x.map(({key:w,link:N})=>g.createElement("link",{key:w,nonce:n.nonce,...N,crossOrigin:N.crossOrigin??n.crossOrigin})))}function zh(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Oh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Oh&&(window.__reactRouterVersion="7.13.0")}catch{}function Ih({basename:e,children:t,unstable_useTransitions:n,window:r}){let l=g.useRef();l.current==null&&(l.current=pm({window:r,v5Compat:!0}));let o=l.current,[s,i]=g.useState({action:o.action,location:o.location}),u=g.useCallback(c=>{n===!1?i(c):g.startTransition(()=>i(c))},[n]);return g.useLayoutEffect(()=>o.listen(u),[o,u]),g.createElement(uh,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o,unstable_useTransitions:n})}var _d=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pd=g.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:l,reloadDocument:o,replace:s,state:i,target:u,to:c,preventScrollReset:y,viewTransition:p,unstable_defaultShouldRevalidate:h,...v},x){let{basename:w,unstable_useTransitions:N}=g.useContext(Te),f=typeof c=="string"&&_d.test(c),d=yd(c,w);c=d.to;let m=Km(c,{relative:l}),[k,S,_]=Ph(r,v),R=$h(c,{replace:s,state:i,target:u,preventScrollReset:y,relative:l,viewTransition:p,unstable_defaultShouldRevalidate:h,unstable_useTransitions:N});function P(O){t&&t(O),O.defaultPrevented||R(O)}let b=g.createElement("a",{...v,..._,href:d.absoluteURL||m,onClick:d.isExternal||o?t:P,ref:zh(x,S),target:u,"data-discover":!f&&n==="render"?"true":void 0});return k&&!f?g.createElement(g.Fragment,null,b,g.createElement(Rh,{page:m})):b});Pd.displayName="Link";var Dh=g.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:l=!1,style:o,to:s,viewTransition:i,children:u,...c},y){let p=Pr(s,{relative:c.relative}),h=ht(),v=g.useContext(Zl),{navigator:x,basename:w}=g.useContext(Te),N=v!=null&&Vh(p)&&i===!0,f=x.encodeLocation?x.encodeLocation(p).pathname:p.pathname,d=h.pathname,m=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(d=d.toLowerCase(),m=m?m.toLowerCase():null,f=f.toLowerCase()),m&&w&&(m=pt(m,w)||m);const k=f!=="/"&&f.endsWith("/")?f.length-1:f.length;let S=d===f||!l&&d.startsWith(f)&&d.charAt(k)==="/",_=m!=null&&(m===f||!l&&m.startsWith(f)&&m.charAt(f.length)==="/"),R={isActive:S,isPending:_,isTransitioning:N},P=S?t:void 0,b;typeof r=="function"?b=r(R):b=[r,S?"active":null,_?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let O=typeof o=="function"?o(R):o;return g.createElement(Pd,{...c,"aria-current":P,className:b,ref:y,style:O,to:s,viewTransition:i},typeof u=="function"?u(R):u)});Dh.displayName="NavLink";var bh=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:l,state:o,method:s=il,action:i,onSubmit:u,relative:c,preventScrollReset:y,viewTransition:p,unstable_defaultShouldRevalidate:h,...v},x)=>{let{unstable_useTransitions:w}=g.useContext(Te),N=Uh(),f=Bh(i,{relative:c}),d=s.toLowerCase()==="get"?"get":"post",m=typeof i=="string"&&_d.test(i),k=S=>{if(u&&u(S),S.defaultPrevented)return;S.preventDefault();let _=S.nativeEvent.submitter,R=(_==null?void 0:_.getAttribute("formmethod"))||s,P=()=>N(_||S.currentTarget,{fetcherKey:t,method:R,navigate:n,replace:l,state:o,relative:c,preventScrollReset:y,viewTransition:p,unstable_defaultShouldRevalidate:h});w&&n!==!1?g.startTransition(()=>P()):P()};return g.createElement("form",{ref:x,method:d,action:f,onSubmit:r?u:k,...v,"data-discover":!m&&e==="render"?"true":void 0})});bh.displayName="Form";function Mh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Rd(e){let t=g.useContext(In);return K(t,Mh(e)),t}function $h(e,{target:t,replace:n,state:r,preventScrollReset:l,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:i,unstable_useTransitions:u}={}){let c=Ci(),y=ht(),p=Pr(e,{relative:o});return g.useCallback(h=>{if(hh(h,t)){h.preventDefault();let v=n!==void 0?n:kr(y)===kr(p),x=()=>c(e,{replace:v,state:r,preventScrollReset:l,relative:o,viewTransition:s,unstable_defaultShouldRevalidate:i});u?g.startTransition(()=>x()):x()}},[y,c,p,n,r,t,e,l,o,s,i,u])}var Fh=0,Ah=()=>`__${String(++Fh)}__`;function Uh(){let{router:e}=Rd("useSubmit"),{basename:t}=g.useContext(Te),n=lh(),r=e.fetch,l=e.navigate;return g.useCallback(async(o,s={})=>{let{action:i,method:u,encType:c,formData:y,body:p}=vh(o,t);if(s.navigate===!1){let h=s.fetcherKey||Ah();await r(h,n,s.action||i,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:y,body:p,formMethod:s.method||u,formEncType:s.encType||c,flushSync:s.flushSync})}else await l(s.action||i,{unstable_defaultShouldRevalidate:s.unstable_defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:y,body:p,formMethod:s.method||u,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,l,t,n])}function Bh(e,{relative:t}={}){let{basename:n}=g.useContext(Te),r=g.useContext(et);K(r,"useFormAction must be used inside a RouteContext");let[l]=r.matches.slice(-1),o={...Pr(e||".",{relative:t})},s=ht();if(e==null){o.search=s.search;let i=new URLSearchParams(o.search),u=i.getAll("index");if(u.some(y=>y==="")){i.delete("index"),u.filter(p=>p).forEach(p=>i.append("index",p));let y=i.toString();o.search=y?`?${y}`:""}}return(!e||e===".")&&l.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:at([n,o.pathname])),kr(o)}function Vh(e,{relative:t}={}){let n=g.useContext(vd);K(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Rd("useViewTransitionState"),l=Pr(e,{relative:t});if(!n.isTransitioning)return!1;let o=pt(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=pt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ol(l.pathname,s)!=null||Ol(l.pathname,o)!=null}/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ld=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Hh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Qa=e=>{const t=Wh(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/var Qh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Kh=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jh=g.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:s,...i},u)=>g.createElement("svg",{ref:u,...Qh,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ld("lucide",l),...!o&&!Kh(i)&&{"aria-hidden":"true"},...i},[...s.map(([c,y])=>g.createElement(c,y)),...Array.isArray(o)?o:[o]]));/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const M=(e,t)=>{const n=g.forwardRef(({className:r,...l},o)=>g.createElement(Jh,{ref:o,iconNode:t,className:Ld(`lucide-${Hh(Qa(e))}`,`lucide-${e}`,r),...l}));return n.displayName=Qa(e),n};/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Yh=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Td=M("arrow-right",Yh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Gh=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Xh=M("bot",Gh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Zh=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Il=M("check",Zh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const qh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ka=M("chevron-down",qh);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ey=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dl=M("circle-check",ey);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ty=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ny=M("circle-x",ty);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ry=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],zd=M("cloud",ry);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ly=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Od=M("copy",ly);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const oy=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],sy=M("cpu",oy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const iy=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],ay=M("download",iy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const uy=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ja=M("external-link",uy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const cy=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],dy=M("file-code",cy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const fy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],py=M("info",fy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const my=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],hy=M("key",my);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const yy=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Ya=M("layout-dashboard",yy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const gy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],vy=M("loader-circle",gy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const xy=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],wy=M("lock",xy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const ky=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ny=M("log-out",ky);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Sy=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],jy=M("menu",Sy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ey=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Cy=M("message-square",Ey);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const _y=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Py=M("play",_y);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ry=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ga=M("plus",Ry);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ly=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xa=M("search",Ly);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ty=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],zy=M("send",Ty);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Oy=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],Id=M("server",Oy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Iy=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Dd=M("shield-check",Iy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Dy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],by=M("square",Dy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const My=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$y=M("terminal",My);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Fy=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Za=M("trash-2",Fy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ay=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Uy=M("triangle-alert",Ay);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const By=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],bd=M("upload",By);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Vy=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Hy=M("user",Vy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Wy=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Qy=M("users",Wy);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Ky=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ps=M("x",Ky);/**
|
|
* @license lucide-react v0.563.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*/const Jy=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Yy=M("zap",Jy);function Md(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=Md(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ee(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=Md(e))&&(r&&(r+=" "),r+=t);return r}function Gy({config:e,onRefresh:t,onMessage:n,authFetch:r}){var W,xe,me,vt;const[l,o]=g.useState(!1),[s,i]=g.useState(!1),[u,c]=g.useState(""),[y,p]=g.useState(null),[h,v]=g.useState({email:"",mobile:"",password:""}),[x,w]=g.useState(!1),[N,f]=g.useState({}),[d,m]=g.useState(!1),[k,S]=g.useState({}),[_,R]=g.useState(!1),[P,b]=g.useState({current:0,total:0,results:[]}),[O,pe]=g.useState(null),oe=r||fetch,Je=async()=>{try{const C=await oe("/admin/queue/status");if(C.ok){const I=await C.json();pe(I)}}catch(C){console.error("Failed to fetch queue status:",C)}};g.useEffect(()=>{Je();const C=setInterval(Je,5e3);return()=>clearInterval(C)},[]);const At=async()=>{if(u.trim()){w(!0);try{const C=await oe("/admin/keys",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:u.trim()})});if(C.ok)n("success","API 密钥添加成功"),c(""),o(!1),t();else{const I=await C.json();n("error",I.detail||"Failed to add")}}catch{n("error","网络错误")}finally{w(!1)}}},tn=async C=>{if(confirm("确定要删除此 API 密钥吗?"))try{(await oe(`/admin/keys/${encodeURIComponent(C)}`,{method:"DELETE"})).ok?(n("success","Deleted successfully"),t()):n("error","Delete failed")}catch{n("error","Network error")}},yt=async()=>{if(!h.password||!h.email&&!h.mobile){n("error","Password and Email/Mobile are required");return}w(!0);try{const C=await oe("/admin/accounts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(h)});if(C.ok)n("success","账号添加成功"),v({email:"",mobile:"",password:""}),i(!1),t();else{const I=await C.json();n("error",I.detail||"Failed to add")}}catch{n("error","网络错误")}finally{w(!1)}},gt=async C=>{if(confirm("确定要删除此账号吗?"))try{(await oe(`/admin/accounts/${encodeURIComponent(C)}`,{method:"DELETE"})).ok?(n("success","Deleted successfully"),t()):n("error","Delete failed")}catch{n("error","Network error")}},L=async C=>{f(I=>({...I,[C]:!0}));try{const F=await(await oe("/admin/accounts/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:C})})).json();n(F.valid?"success":"error",`${C}: ${F.message}`),t()}catch(I){n("error","Validation failed: "+I.message)}finally{f(I=>({...I,[C]:!1}))}},E=async()=>{if(!confirm("校验所有账号?这可能需要一些时间。"))return;const C=e.accounts||[];if(C.length===0)return;m(!0),b({current:0,total:C.length,results:[]});let I=0;const F=[];for(let Fe=0;Fe<C.length;Fe++){const xt=C[Fe],tt=xt.email||xt.mobile;try{const ze=await(await oe("/admin/accounts/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:tt})})).json();F.push({id:tt,success:ze.valid,message:ze.message}),ze.valid&&I++}catch(nt){F.push({id:tt,success:!1,message:nt.message})}b({current:Fe+1,total:C.length,results:[...F]})}n("success",`Completed: ${I}/${C.length} valid`),t(),m(!1)},z=async C=>{S(I=>({...I,[C]:!0}));try{const F=await(await oe("/admin/accounts/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:C})})).json();n(F.success?"success":"error",`${C}: ${F.success?`Success (${F.response_time}ms)`:F.message}`),t()}catch(I){n("error","Test failed: "+I.message)}finally{S(I=>({...I,[C]:!1}))}},U=async()=>{if(!confirm("测试所有账号的 API 连通性?"))return;const C=e.accounts||[];if(C.length===0)return;R(!0),b({current:0,total:C.length,results:[]});let I=0;const F=[];for(let Fe=0;Fe<C.length;Fe++){const xt=C[Fe],tt=xt.email||xt.mobile;try{const ze=await(await oe("/admin/accounts/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:tt})})).json();F.push({id:tt,success:ze.success,message:ze.message,time:ze.response_time}),ze.success&&I++}catch(nt){F.push({id:tt,success:!1,message:nt.message})}b({current:Fe+1,total:C.length,results:[...F]})}n("success",`Completed: ${I}/${C.length} available`),t(),R(!1)};return a.jsxs("div",{className:"space-y-6",children:[O&&a.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[a.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex flex-col justify-between shadow-sm relative overflow-hidden group",children:[a.jsx("div",{className:"absolute right-0 top-0 p-4 opacity-5 group-hover:opacity-10 transition-opacity",children:a.jsx(Dl,{className:"w-16 h-16"})}),a.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-widest",children:"可用"}),a.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[a.jsx("span",{className:"text-3xl font-bold text-foreground",children:O.available}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"个账号"})]})]}),a.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex flex-col justify-between shadow-sm relative overflow-hidden group",children:[a.jsx("div",{className:"absolute right-0 top-0 p-4 opacity-5 group-hover:opacity-10 transition-opacity",children:a.jsx(Id,{className:"w-16 h-16"})}),a.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-widest",children:"正在使用"}),a.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[a.jsx("span",{className:"text-3xl font-bold text-foreground",children:O.in_use}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"线程"})]})]}),a.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex flex-col justify-between shadow-sm relative overflow-hidden group",children:[a.jsx("div",{className:"absolute right-0 top-0 p-4 opacity-5 group-hover:opacity-10 transition-opacity",children:a.jsx(Dd,{className:"w-16 h-16"})}),a.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-widest",children:"账号池总数"}),a.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[a.jsx("span",{className:"text-3xl font-bold text-foreground",children:O.total}),a.jsx("span",{className:"text-xs text-muted-foreground",children:"个账号"})]})]})]}),a.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden shadow-sm",children:[a.jsxs("div",{className:"p-6 border-b border-border flex flex-col md:flex-row md:items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-semibold",children:"API 密钥"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"管理 API 访问密钥池"})]}),a.jsxs("button",{onClick:()=>o(!0),className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors font-medium text-sm shadow-sm",children:[a.jsx(Ga,{className:"w-4 h-4"}),"添加密钥"]})]}),a.jsx("div",{className:"divide-y divide-border",children:((W=e.keys)==null?void 0:W.length)>0?e.keys.map((C,I)=>a.jsxs("div",{className:"p-4 flex items-center justify-between hover:bg-muted/50 transition-colors group",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsxs("div",{className:"font-mono text-sm bg-muted/50 px-3 py-1 rounded inline-block",children:[C.slice(0,16),"****"]}),y===C&&a.jsx("span",{className:"text-xs text-green-500 animate-pulse",children:"已复制"})]}),a.jsxs("div",{className:"flex items-center gap-1",children:[a.jsx("button",{onClick:()=>{navigator.clipboard.writeText(C),p(C),setTimeout(()=>p(null),2e3)},className:"p-2 text-muted-foreground hover:text-primary hover:bg-primary/10 rounded-md transition-colors opacity-0 group-hover:opacity-100",title:"复制密钥",children:y===C?a.jsx(Il,{className:"w-4 h-4 text-green-500"}):a.jsx(Od,{className:"w-4 h-4"})}),a.jsx("button",{onClick:()=>tn(C),className:"p-2 text-muted-foreground hover:text-destructive hover:bg-destructive/10 rounded-md transition-colors opacity-0 group-hover:opacity-100",title:"删除密钥",children:a.jsx(Za,{className:"w-4 h-4"})})]})]},I)):a.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"未找到 API 密钥"})})]}),a.jsxs("div",{className:"bg-card border border-border rounded-xl overflow-hidden shadow-sm",children:[a.jsxs("div",{className:"p-6 border-b border-border flex flex-col md:flex-row md:items-center justify-between gap-4",children:[a.jsxs("div",{children:[a.jsx("h2",{className:"text-lg font-semibold",children:"DeepSeek 账号"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"管理 DeepSeek 账号池"})]}),a.jsxs("div",{className:"flex flex-wrap gap-2",children:[a.jsxs("button",{onClick:U,disabled:_||d||!((xe=e.accounts)!=null&&xe.length),className:"flex items-center px-3 py-2 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-xs font-medium border border-border disabled:opacity-50",children:[_?a.jsx("span",{className:"animate-spin mr-2",children:"⟳"}):a.jsx(Py,{className:"w-3 h-3 mr-2"}),"测试全部"]}),a.jsxs("button",{onClick:E,disabled:d||_||!((me=e.accounts)!=null&&me.length),className:"flex items-center px-3 py-2 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-xs font-medium border border-border disabled:opacity-50",children:[d?a.jsx("span",{className:"animate-spin mr-2",children:"⟳"}):a.jsx(Dl,{className:"w-3 h-3 mr-2"}),"校验全部"]}),a.jsxs("button",{onClick:()=>i(!0),className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors font-medium text-sm shadow-sm",children:[a.jsx(Ga,{className:"w-4 h-4"}),"添加账号"]})]})]}),(_||d)&&P.total>0&&a.jsxs("div",{className:"p-4 border-b border-border bg-muted/30",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm mb-2",children:[a.jsx("span",{className:"font-medium",children:_?"正在测试所有账号...":"正在校验所有账号..."}),a.jsxs("span",{className:"text-muted-foreground",children:[P.current," / ",P.total]})]}),a.jsx("div",{className:"w-full bg-muted rounded-full h-2 overflow-hidden mb-4",children:a.jsx("div",{className:"bg-primary h-full transition-all duration-300",style:{width:`${P.current/P.total*100}%`}})}),P.results.length>0&&a.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 max-h-32 overflow-y-auto custom-scrollbar",children:P.results.map((C,I)=>a.jsxs("div",{className:ee("text-xs px-2 py-1 rounded border truncate",C.success?"bg-emerald-500/10 border-emerald-500/20 text-emerald-500":"bg-destructive/10 border-destructive/20 text-destructive"),children:[C.success?"✓":"✗"," ",C.id]},I))})]}),a.jsx("div",{className:"divide-y divide-border",children:((vt=e.accounts)==null?void 0:vt.length)>0?e.accounts.map((C,I)=>{const F=C.email||C.mobile;return a.jsxs("div",{className:"p-4 flex flex-col md:flex-row md:items-center justify-between gap-4 hover:bg-muted/50 transition-colors",children:[a.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[a.jsx("div",{className:ee("w-2 h-2 rounded-full shrink-0",C.has_token?"bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.5)]":"bg-amber-500")}),a.jsxs("div",{className:"min-w-0",children:[a.jsx("div",{className:"font-medium truncate",children:F}),a.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mt-0.5",children:[a.jsx("span",{children:C.has_token?"已建立会话":"需重新登录"}),C.token_preview&&a.jsx("span",{className:"font-mono bg-muted px-1.5 py-0.5 rounded text-[10px]",children:C.token_preview})]})]})]}),a.jsxs("div",{className:"flex items-center gap-2 self-start lg:self-auto ml-5 lg:ml-0",children:[a.jsx("button",{onClick:()=>z(F),disabled:k[F],className:"px-2 lg:px-3 py-1 lg:py-1.5 text-[10px] lg:text-xs font-medium border border-border rounded-md hover:bg-secondary transition-colors disabled:opacity-50",children:k[F]?"正在测试...":"测试"}),a.jsx("button",{onClick:()=>L(F),disabled:N[F],className:"px-2 lg:px-3 py-1 lg:py-1.5 text-[10px] lg:text-xs font-medium border border-border rounded-md hover:bg-secondary transition-colors disabled:opacity-50",children:N[F]?"正在校验...":"校验"}),a.jsx("button",{onClick:()=>gt(F),className:"p-1 lg:p-1.5 text-muted-foreground hover:text-destructive hover:bg-destructive/10 rounded-md transition-colors",children:a.jsx(Za,{className:"w-3.5 h-3.5 lg:w-4 h-4"})})]})]},I)}):a.jsx("div",{className:"p-8 text-center text-muted-foreground",children:"未找到任何账号"})})]}),l&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4 animate-in fade-in",children:a.jsxs("div",{className:"bg-card w-full max-w-md rounded-xl border border-border shadow-2xl overflow-hidden animate-in zoom-in-95",children:[a.jsxs("div",{className:"p-4 border-b border-border flex justify-between items-center",children:[a.jsx("h3",{className:"font-semibold",children:"添加 API 密钥"}),a.jsx("button",{onClick:()=>o(!1),className:"text-muted-foreground hover:text-foreground",children:a.jsx(Ps,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"p-6 space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium mb-1.5",children:"新密钥值"}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("input",{type:"text",className:"input-field bg-[#09090b] flex-1",placeholder:"输入自定义 API 密钥",value:u,onChange:C=>c(C.target.value),autoFocus:!0}),a.jsx("button",{type:"button",onClick:()=>c("sk-"+crypto.randomUUID().replace(/-/g,"")),className:"px-3 py-2 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-sm font-medium border border-border whitespace-nowrap",children:"生成"})]}),a.jsx("p",{className:"text-xs text-muted-foreground mt-1.5",children:"点击「生成」自动创建随机密钥"})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx("button",{onClick:()=>o(!1),className:"px-4 py-2 rounded-lg border border-border hover:bg-secondary transition-colors text-sm font-medium",children:"取消"}),a.jsx("button",{onClick:At,disabled:x,className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-sm font-medium disabled:opacity-50",children:x?"添加中...":"添加密钥"})]})]})]})}),s&&a.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4 animate-in fade-in",children:a.jsxs("div",{className:"bg-card w-full max-w-md rounded-xl border border-border shadow-2xl overflow-hidden animate-in zoom-in-95",children:[a.jsxs("div",{className:"p-4 border-b border-border flex justify-between items-center",children:[a.jsx("h3",{className:"font-semibold",children:"添加 DeepSeek 账号"}),a.jsx("button",{onClick:()=>i(!1),className:"text-muted-foreground hover:text-foreground",children:a.jsx(Ps,{className:"w-5 h-5"})})]}),a.jsxs("div",{className:"p-6 space-y-4",children:[a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium mb-1.5",children:"邮箱 (可选)"}),a.jsx("input",{type:"email",className:"input-field",placeholder:"user@example.com",value:h.email,onChange:C=>v({...h,email:C.target.value})})]}),a.jsxs("div",{children:[a.jsx("label",{className:"block text-sm font-medium mb-1.5",children:"手机号 (可选)"}),a.jsx("input",{type:"text",className:"input-field",placeholder:"+86...",value:h.mobile,onChange:C=>v({...h,mobile:C.target.value})})]}),a.jsxs("div",{children:[a.jsxs("label",{className:"block text-sm font-medium mb-1.5",children:["密码 ",a.jsx("span",{className:"text-destructive",children:"*"})]}),a.jsx("input",{type:"password",className:"input-field bg-[#09090b]",placeholder:"账号密码",value:h.password,onChange:C=>v({...h,password:C.target.value})})]}),a.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[a.jsx("button",{onClick:()=>i(!1),className:"px-4 py-2 rounded-lg border border-border hover:bg-secondary transition-colors text-sm font-medium",children:"取消"}),a.jsx("button",{onClick:yt,disabled:x,className:"px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-sm font-medium disabled:opacity-50",children:x?"添加中...":"添加账号"})]})]})]})})]})}const Xy=[{id:"deepseek-chat",name:"deepseek-chat",icon:Cy,desc:"非思考模型",color:"text-amber-500"},{id:"deepseek-reasoner",name:"deepseek-reasoner",icon:sy,desc:"思考模型",color:"text-amber-600"},{id:"deepseek-chat-search",name:"deepseek-chat-search",icon:Xa,desc:"非思考模型 (带搜索)",color:"text-cyan-500"},{id:"deepseek-reasoner-search",name:"deepseek-reasoner-search",icon:Xa,desc:"思考模型 (带搜索)",color:"text-cyan-600"}];function Zy({config:e,onMessage:t,authFetch:n}){var tn,yt,gt,L;const[r,l]=g.useState("deepseek-chat"),[o,s]=g.useState("Hello, please introduce yourself in one sentence."),[i,u]=g.useState(""),[c,y]=g.useState(""),[p,h]=g.useState(null),[v,x]=g.useState(!1),[w,N]=g.useState(""),[f,d]=g.useState(""),[m,k]=g.useState(!1),S=g.useRef(null),[_,R]=g.useState(!1),[P,b]=g.useState(!1),O=n||fetch,pe=e.accounts||[],oe=()=>{S.current&&(S.current.abort(),S.current=null),x(!1),k(!1)},Je=async()=>{var E,z,U,W;if(!v){x(!0),k(!0),h(null),N(""),d(""),S.current=new AbortController;try{const xe=i||((E=e.keys)==null?void 0:E[0])||"";if(!xe){t("error","请提供 API 密钥"),x(!1),k(!1);return}const me=await fetch("/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${xe}`},body:JSON.stringify({model:r,messages:[{role:"user",content:o}],stream:!0}),signal:S.current.signal});if(!me.ok){const F=await me.json();h({success:!1,error:((z=F.error)==null?void 0:z.message)||"请求失败"}),t("error",((U=F.error)==null?void 0:U.message)||"请求失败"),x(!1),k(!1);return}h({success:!0,status_code:me.status});const vt=me.body.getReader(),C=new TextDecoder;let I="";for(;;){const{done:F,value:Fe}=await vt.read();if(F)break;I+=C.decode(Fe,{stream:!0});const xt=I.split(`
|
|
`);I=xt.pop()||"";for(const tt of xt){const nt=tt.trim();if(!nt||!nt.startsWith("data: "))continue;const ze=nt.slice(6);if(ze!=="[DONE]")try{const Rr=JSON.parse(ze);console.log("[ApiTester] Parsed JSON:",Rr);const Lr=(W=Rr.choices)==null?void 0:W[0];if(Lr!=null&&Lr.delta){const nn=Lr.delta;console.log("[ApiTester] Delta:",nn),nn.reasoning_content&&d(eo=>eo+nn.reasoning_content),nn.content&&(console.log("[ApiTester] Content:",nn.content),N(eo=>eo+nn.content))}}catch(Rr){console.error("Invalid JSON hunk:",ze,Rr)}}}}catch(xe){xe.name==="AbortError"?t("info","已停止生成"):(t("error","网络错误: "+xe.message),h({error:xe.message,success:!1}))}finally{x(!1),k(!1),S.current=null}}},At=async()=>{if(c){x(!0),h(null);try{const E=await O("/admin/accounts/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:c,model:r,message:o})}),z=await E.json();h({success:z.success,status_code:E.status,response:z,account:c}),z.success?t("success",`${c}: 测试成功 (${z.response_time}ms)`):t("error",`${c}: ${z.message}`)}catch(E){t("error","网络错误: "+E.message),h({error:E.message})}finally{x(!1)}return}Je()};return a.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-12 gap-6 h-[calc(100vh-140px)]",children:[a.jsx("div",{className:ee("lg:col-span-3 flex flex-col transition-all duration-300 ease-in-out z-20",P?"h-auto":"h-14 lg:h-full"),children:a.jsxs("div",{className:"bg-card border border-border rounded-xl flex flex-col h-full shadow-sm",children:[a.jsxs("button",{onClick:()=>b(!P),className:"lg:hidden flex items-center justify-between p-4 w-full bg-muted/20 hover:bg-muted/30 transition-colors",children:[a.jsxs("div",{className:"flex items-center gap-2.5 font-medium text-sm text-foreground",children:[a.jsx("div",{className:"p-1.5 rounded-md bg-transparent text-foreground",children:a.jsx($y,{className:"w-4 h-4"})}),a.jsx("span",{children:"配置"})]}),a.jsx("div",{className:ee("transition-transform duration-300 text-muted-foreground",P?"rotate-180":""),children:a.jsx(Ka,{className:"w-4 h-4"})})]}),a.jsxs("div",{className:ee("p-4 space-y-6 overflow-y-auto custom-scrollbar flex-1",!P&&"hidden lg:block"),children:[a.jsxs("div",{className:"space-y-3",children:[a.jsx("label",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ml-0.5",children:"模型"}),a.jsx("div",{className:"grid grid-cols-1 gap-2",children:Xy.map(E=>{const z=E.icon;return a.jsxs("button",{onClick:()=>l(E.id),className:ee("group relative flex items-start gap-3 p-3 rounded-lg border text-left transition-all duration-200",r===E.id?"bg-secondary border-primary/50 shadow-sm":"bg-transparent border-transparent hover:bg-muted"),children:[a.jsx("div",{className:ee("p-1.5 rounded-md shrink-0 transition-colors",r===E.id?E.color:"text-muted-foreground group-hover:text-foreground"),children:a.jsx(z,{className:"w-4 h-4"})}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("div",{className:ee("font-medium text-sm",r===E.id?"text-foreground":"text-foreground/80"),children:E.name}),a.jsx("div",{className:"text-[11px] text-muted-foreground mt-0.5",children:E.desc})]}),r===E.id&&a.jsx("div",{className:ee("absolute top-3 right-3",E.color),children:a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-current"})})]},E.id)})})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ml-0.5",children:"账号策略"}),a.jsxs("div",{className:"relative",children:[a.jsxs("select",{className:"w-full h-10 pl-3 pr-8 bg-secondary border border-border rounded-lg text-sm appearance-none focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring transition-all cursor-pointer hover:bg-muted",value:c,onChange:E=>y(E.target.value),children:[a.jsx("option",{value:"",className:"bg-popover text-popover-foreground",children:"🎲 随机切换 (支持流式预览)"}),pe.map((E,z)=>a.jsxs("option",{value:E.email||E.mobile,className:"bg-popover text-popover-foreground",children:["👤 ",E.email||E.mobile]},z))]}),a.jsx(Ka,{className:"absolute right-2.5 top-3 w-4 h-4 text-muted-foreground pointer-events-none"})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-wider ml-0.5",children:"API 密钥 (可选)"}),a.jsx("input",{type:"password",className:"w-full h-10 px-3 bg-muted/30 border border-border rounded-lg text-sm font-mono placeholder:text-muted-foreground/40 focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring transition-all",placeholder:(tn=e.keys)!=null&&tn[0]?`默认: ...${e.keys[0].slice(-6)}`:"输入自定义密钥",value:i,onChange:E=>u(E.target.value)})]})]})]})}),a.jsxs("div",{className:"lg:col-span-9 flex flex-col bg-card border border-border rounded-xl shadow-sm overflow-hidden min-h-0 flex-1 relative",children:[a.jsxs("div",{className:"flex-1 overflow-y-auto p-4 lg:p-6 space-y-8 custom-scrollbar scroll-smooth",children:[a.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto flex-row-reverse group",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary flex items-center justify-center shrink-0 border border-border",children:a.jsx(Hy,{className:"w-4 h-4 text-muted-foreground"})}),a.jsx("div",{className:"space-y-1 max-w-[85%] lg:max-w-[75%]",children:a.jsx("div",{className:"bg-primary text-primary-foreground rounded-2xl rounded-tr-sm px-5 py-3 text-sm leading-relaxed shadow-sm",children:o})})]}),(p||m)&&a.jsxs("div",{className:"flex gap-4 max-w-4xl mx-auto animate-in fade-in slide-in-from-bottom-2 duration-300",children:[a.jsx("div",{className:ee("w-8 h-8 rounded-lg flex items-center justify-center shrink-0 border border-border",(p==null?void 0:p.success)!==!1?"bg-muted":"bg-destructive/10 border-destructive/20"),children:a.jsx(Xh,{className:ee("w-4 h-4",(p==null?void 0:p.success)!==!1?"text-foreground":"text-destructive")})}),a.jsxs("div",{className:"space-y-3 flex-1 min-w-0",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"font-semibold text-sm text-foreground",children:"DeepSeek"}),p&&a.jsx("span",{className:ee("text-[10px] px-1.5 py-0.5 rounded-sm border uppercase font-medium tracking-wider",p.success?"border-emerald-500/20 text-emerald-500 bg-emerald-500/10":"border-destructive/20 text-destructive bg-destructive/10"),children:p.status_code||"错误"})]}),(f||((yt=p==null?void 0:p.response)==null?void 0:yt.thinking))&&a.jsxs("div",{className:"text-xs bg-secondary/50 border border-border rounded-lg p-3 space-y-1.5",children:[a.jsxs("div",{className:"flex items-center gap-1.5 text-muted-foreground",children:[a.jsx(Yy,{className:"w-3.5 h-3.5"}),a.jsx("span",{className:"font-medium",children:"思维链过程"})]}),a.jsx("div",{className:"whitespace-pre-wrap leading-relaxed text-muted-foreground font-mono text-[11px] max-h-60 overflow-y-auto custom-scrollbar pl-5 border-l-2 border-border/50",children:f||((gt=p==null?void 0:p.response)==null?void 0:gt.thinking)})]}),a.jsxs("div",{className:"text-sm leading-7 text-foreground whitespace-pre-wrap",children:[c?((L=p==null?void 0:p.response)==null?void 0:L.message)||a.jsx("span",{className:"text-muted-foreground italic",children:"正在生成响应..."}):w||(p==null?void 0:p.error)&&a.jsx("span",{className:"text-destructive font-medium",children:p.error}),m&&a.jsx("span",{className:"inline-block w-1.5 h-4 bg-primary ml-1 align-middle animate-pulse"})]})]})]})]}),a.jsxs("div",{className:"p-4 lg:p-6 border-t border-border bg-card",children:[a.jsxs("div",{className:"max-w-4xl mx-auto relative group",children:[a.jsx("textarea",{className:"w-full bg-[#09090b] border border-border rounded-xl pl-4 pr-12 py-3 text-sm focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all resize-none custom-scrollbar placeholder:text-muted-foreground/50 text-foreground shadow-inner",placeholder:"输入消息...",rows:1,style:{minHeight:"52px"},value:o,onChange:E=>s(E.target.value),onKeyDown:E=>{E.key==="Enter"&&!E.shiftKey&&(E.preventDefault(),At())}}),a.jsx("div",{className:"absolute right-2 bottom-2",children:v&&m?a.jsx("button",{onClick:oe,className:"p-2 text-muted-foreground hover:text-destructive transition-colors",children:a.jsx(by,{className:"w-4 h-4 fill-current"})}):a.jsx("button",{onClick:At,disabled:v||!o.trim(),className:"p-2 text-primary hover:text-primary/80 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:v?a.jsx(vy,{className:"w-4 h-4 animate-spin"}):a.jsx(zy,{className:"w-4 h-4"})})})]}),a.jsx("div",{className:"max-w-4xl mx-auto mt-3 flex justify-center",children:a.jsx("span",{className:"text-[10px] text-muted-foreground/40 font-medium",children:"DeepSeek 管理员界面"})})]})]})]})}const qa={full:{name:"全量配置模板",desc:"包含密钥、账号及模型映射",config:{keys:["your-api-key-1","your-api-key-2"],accounts:[{email:"user1@example.com",password:"password1",token:""},{email:"user2@example.com",password:"password2",token:""},{mobile:"+8613800138001",password:"password3",token:""}],claude_model_mapping:{fast:"deepseek-chat",slow:"deepseek-reasoner"}}},email_only:{name:"仅邮箱账号",desc:"批量导入邮箱格式账号",config:{keys:["your-api-key"],accounts:[{email:"account1@example.com",password:"pass1",token:""},{email:"account2@example.com",password:"pass2",token:""},{email:"account3@example.com",password:"pass3",token:""}]}},mobile_only:{name:"仅手机号账号",desc:"批量导入手机号格式账号",config:{keys:["your-api-key"],accounts:[{mobile:"+8613800000001",password:"pass1",token:""},{mobile:"+8613800000002",password:"pass2",token:""},{mobile:"+8613800000003",password:"pass3",token:""}]}},keys_only:{name:"仅 API 密钥",desc:"仅添加 API 访问密钥",config:{keys:["key-1","key-2","key-3"]}}};function qy({onRefresh:e,onMessage:t,authFetch:n}){const[r,l]=g.useState(""),[o,s]=g.useState(!1),[i,u]=g.useState(null),[c,y]=g.useState(!1),p=n||fetch,h=async()=>{if(!r.trim()){t("error","请输入 JSON 配置内容");return}let N;try{N=JSON.parse(r)}catch{t("error","无效的 JSON 格式");return}s(!0),u(null);try{const f=await p("/admin/import",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)}),d=await f.json();f.ok?(u(d),t("success",`导入成功: ${d.imported_keys} 个密钥, ${d.imported_accounts} 个账号`),e()):t("error",d.detail||"导入失败")}catch{t("error","网络错误")}finally{s(!1)}},v=N=>{const f=qa[N];f&&(l(JSON.stringify(f.config,null,2)),t("info",`已加载模板: ${f.name}`))},x=async()=>{try{const N=await p("/admin/export");if(N.ok){const f=await N.json();l(JSON.stringify(JSON.parse(f.json),null,2)),t("success","当前配置已加载")}}catch{t("error","获取配置失败")}},w=async()=>{try{const N=await p("/admin/export");if(N.ok){const f=await N.json();await navigator.clipboard.writeText(f.base64),y(!0),setTimeout(()=>y(!1),2e3),t("success","Base64 配置已复制到剪贴板")}}catch{t("error","复制失败")}};return a.jsxs("div",{className:"flex flex-col lg:grid lg:grid-cols-3 gap-6 lg:h-[calc(100vh-140px)]",children:[a.jsxs("div",{className:"md:col-span-1 space-y-4",children:[a.jsxs("div",{className:"bg-card border border-border rounded-xl p-5 shadow-sm",children:[a.jsxs("h3",{className:"font-semibold flex items-center gap-2 mb-4",children:[a.jsx(dy,{className:"w-4 h-4 text-primary"}),"快速模板"]}),a.jsx("div",{className:"space-y-3",children:Object.entries(qa).map(([N,f])=>a.jsxs("button",{onClick:()=>v(N),className:"w-full text-left p-3 rounded-lg border border-border bg-secondary/20 hover:bg-secondary/50 hover:border-primary/50 transition-all custom-focus group",children:[a.jsx("div",{className:"font-medium text-sm group-hover:text-primary transition-colors",children:f.name}),a.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:f.desc})]},N))})]}),a.jsxs("div",{className:"bg-linear-to-br from-primary/10 to-transparent border border-primary/20 rounded-xl p-5 shadow-sm",children:[a.jsxs("h3",{className:"font-semibold flex items-center gap-2 mb-2 text-primary",children:[a.jsx(ay,{className:"w-4 h-4"}),"数据导出"]}),a.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"获取配置的 Base64 字符串,用于 Vercel 环境变量。"}),a.jsxs("button",{onClick:w,className:"w-full flex items-center justify-center gap-2 py-2.5 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-all font-medium text-sm shadow-sm",children:[c?a.jsx(Il,{className:"w-4 h-4"}):a.jsx(Od,{className:"w-4 h-4"}),c?"已复制":"复制 Base64 配置"]}),a.jsxs("p",{className:"text-[10px] text-muted-foreground mt-2 text-center",children:["变量名: ",a.jsx("code",{className:"bg-background px-1 py-0.5 rounded border border-border",children:"DS2API_CONFIG_JSON"})]})]})]}),a.jsxs("div",{className:"lg:col-span-2 flex flex-col bg-card border border-border rounded-xl shadow-sm overflow-hidden min-h-[400px] lg:h-full",children:[a.jsxs("div",{className:"p-4 border-b border-border flex items-center justify-between bg-muted/20",children:[a.jsxs("h3",{className:"font-semibold flex items-center gap-2",children:[a.jsx(bd,{className:"w-4 h-4 text-primary"}),"JSON 编辑器"]}),a.jsxs("div",{className:"flex gap-2",children:[a.jsx("button",{onClick:x,className:"px-3 py-1.5 bg-secondary text-secondary-foreground rounded-lg hover:bg-secondary/80 transition-colors text-xs font-medium border border-border",children:"加载当前配置"}),a.jsx("button",{onClick:h,disabled:o,className:"px-3 py-1.5 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors text-xs font-medium disabled:opacity-50",children:o?"正在导入...":"应用配置"})]})]}),a.jsx("div",{className:"flex-1 relative min-h-[400px]",children:a.jsx("textarea",{className:"absolute inset-0 w-full h-full p-4 font-mono text-sm bg-[#09090b] text-foreground resize-none focus:outline-none custom-scrollbar",value:r,onChange:N=>l(N.target.value),placeholder:`{
|
|
"keys": ["your-api-key"],
|
|
"accounts": [
|
|
{"email": "...", "password": "...", "token": ""}
|
|
]
|
|
}`,spellCheck:!1})}),i&&a.jsx("div",{className:ee("p-4 border-t",i.imported_keys||i.imported_accounts?"bg-emerald-500/10 border-emerald-500/20":"bg-destructive/10 border-destructive/20"),children:a.jsxs("div",{className:"flex items-start gap-3",children:[i.imported_keys||i.imported_accounts?a.jsx(Il,{className:"w-5 h-5 text-emerald-500 mt-0.5"}):a.jsx(Uy,{className:"w-5 h-5 text-destructive mt-0.5"}),a.jsxs("div",{children:[a.jsx("h4",{className:ee("font-medium",i.imported_keys||i.imported_accounts?"text-emerald-500":"text-destructive"),children:"导入操作已完成"}),a.jsxs("p",{className:"text-sm opacity-80 mt-1",children:["成功导入了 ",i.imported_keys," 个 API 密钥,并更新了 ",i.imported_accounts," 个账号。"]})]})]})})]})]})}function eg({onMessage:e,authFetch:t}){const[n,r]=g.useState(""),[l,o]=g.useState(""),[s,i]=g.useState(""),[u,c]=g.useState(!1),[y,p]=g.useState(null),[h,v]=g.useState(null),x=t||fetch;g.useEffect(()=>{(async()=>{try{const f=await x("/admin/vercel/config");if(f.ok){const d=await f.json();v(d),d.project_id&&o(d.project_id),d.team_id&&i(d.team_id)}}catch(f){console.error("Failed to load preconfig:",f)}})()},[]);const w=async()=>{if(!(h!=null&&h.has_token&&!n?"__USE_PRECONFIG__":n)&&!(h!=null&&h.has_token)){e("error","需要 Vercel 访问令牌");return}if(!l){e("error","需要项目 ID");return}c(!0),p(null);try{const f=await x("/admin/vercel/sync",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({vercel_token:n,project_id:l,team_id:s||void 0})}),d=await f.json();f.ok?(p({...d,success:!0}),e("success",d.message)):(p({...d,success:!1}),e("error",d.detail||"同步失败"))}catch{e("error","网络错误")}finally{c(!1)}};return a.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 max-w-5xl mx-auto h-[calc(100vh-140px)]",children:[a.jsxs("div",{className:"bg-card border border-border rounded-xl shadow-sm p-6 space-y-6",children:[a.jsxs("div",{className:"border-b border-border pb-6",children:[a.jsxs("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[a.jsx(zd,{className:"w-6 h-6 text-primary"}),"Vercel 部署"]}),a.jsx("p",{className:"text-muted-foreground text-sm mt-1",children:"将当前密钥和账号配置直接同步到 Vercel 环境变量中。"})]}),a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-sm font-medium flex items-center justify-between",children:["Vercel 访问令牌",a.jsxs("a",{href:"https://vercel.com/account/tokens",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline flex items-center gap-1",children:["获取令牌 ",a.jsx(Ja,{className:"w-3 h-3"})]})]}),a.jsxs("div",{className:"relative",children:[a.jsx("input",{type:"password",className:"w-full h-10 px-3 bg-background border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring transition-all pr-10",placeholder:h!=null&&h.has_token?"正在使用预配置的令牌":"输入 Vercel 访问令牌",value:n,onChange:N=>r(N.target.value)}),(h==null?void 0:h.has_token)&&!n&&a.jsx("div",{className:"absolute right-3 top-2.5 text-emerald-500",children:a.jsx(Dl,{className:"w-5 h-5"})})]})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-sm font-medium",children:"项目 ID"}),a.jsx("input",{type:"text",className:"w-full h-10 px-3 bg-background border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring transition-all",placeholder:"prj_xxxxxxxxxxxx or Project Name",value:l,onChange:N=>o(N.target.value)}),a.jsx("p",{className:"text-xs text-muted-foreground",children:"可在项目设置 (Project Settings) → 常规 (General) 中找到"})]}),a.jsxs("div",{className:"space-y-2",children:[a.jsxs("label",{className:"text-sm font-medium flex items-center gap-2",children:["团队 ID ",a.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"(可选)"})]}),a.jsx("input",{type:"text",className:"w-full h-10 px-3 bg-background border border-border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-ring focus:border-ring transition-all",placeholder:"team_xxxxxxxxxxxx",value:s,onChange:N=>i(N.target.value)})]})]}),a.jsxs("div",{className:"pt-4",children:[a.jsx("button",{onClick:w,disabled:u,className:"w-full flex items-center justify-center gap-2 py-3 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-all font-medium text-sm shadow-sm hover:shadow-md disabled:opacity-50 disabled:shadow-none",children:u?a.jsxs("span",{className:"flex items-center gap-2",children:[a.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),"正在同步..."]}):a.jsxs("span",{className:"flex items-center gap-2",children:["同步并重新部署 ",a.jsx(Td,{className:"w-4 h-4"})]})}),a.jsx("p",{className:"text-xs text-center text-muted-foreground mt-4",children:"这将触发 Vercel 的重新部署,大约需要 30-60 秒。"})]})]}),a.jsxs("div",{className:"space-y-6",children:[y&&a.jsx("div",{className:`p-6 rounded-xl border ${y.success?"bg-emerald-500/10 border-emerald-500/20":"bg-destructive/10 border-destructive/20"} animate-in fade-in slide-in-from-right-4`,children:a.jsxs("div",{className:"flex items-start gap-4",children:[y.success?a.jsx("div",{className:"p-2 bg-emerald-500 text-white rounded-full shadow-lg shadow-emerald-500/30",children:a.jsx(Dl,{className:"w-6 h-6"})}):a.jsx("div",{className:"p-2 bg-destructive text-white rounded-full shadow-lg shadow-destructive/30",children:a.jsx(ny,{className:"w-6 h-6"})}),a.jsxs("div",{className:"space-y-1",children:[a.jsx("h3",{className:`font-semibold text-lg ${y.success?"text-emerald-500":"text-destructive"}`,children:y.success?"同步成功":"同步失败"}),a.jsx("p",{className:"text-sm opacity-90",children:y.message}),y.deployment_url&&a.jsx("div",{className:"pt-3 mt-3 border-t border-emerald-500/20",children:a.jsxs("a",{href:`https://${y.deployment_url}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-sm font-medium hover:underline",children:["访问部署地址 ",a.jsx(Ja,{className:"w-3 h-3"})]})})]})]})}),a.jsxs("div",{className:"bg-secondary/20 border border-border rounded-xl p-6",children:[a.jsxs("h3",{className:"font-semibold flex items-center gap-2 mb-4",children:[a.jsx(py,{className:"w-5 h-5 text-primary"}),"工作原理"]}),a.jsxs("ul",{className:"space-y-4",children:[a.jsxs("li",{className:"flex gap-3",children:[a.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"1"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"当前配置 (密钥和账号) 被导出为 JSON 字符串。"})]}),a.jsxs("li",{className:"flex gap-3",children:[a.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"2"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"JSON 被编码为 Base64 以确保格式兼容性。"})]}),a.jsxs("li",{className:"flex gap-3",children:[a.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"3"}),a.jsxs("p",{className:"text-sm text-muted-foreground",children:["更新 Vercel 项目中的 ",a.jsx("code",{className:"bg-background px-1 py-0.5 rounded border border-border text-xs",children:"DS2API_CONFIG_JSON"})," 环境变量。"]})]}),a.jsxs("li",{className:"flex gap-3",children:[a.jsx("span",{className:"shrink-0 w-6 h-6 rounded-full bg-background border border-border flex items-center justify-center text-xs font-bold text-muted-foreground",children:"4"}),a.jsx("p",{className:"text-sm text-muted-foreground",children:"触发重新部署以应用新的环境变量。"})]})]})]})]})]})}function tg({onLogin:e,onMessage:t}){const[n,r]=g.useState(""),[l,o]=g.useState(!1),[s,i]=g.useState(!0),u=async c=>{if(c.preventDefault(),!!n.trim()){o(!0);try{const y=await fetch("/admin/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({admin_key:n})}),p=await y.json();if(y.ok&&p.success){const h=s?localStorage:sessionStorage;h.setItem("ds2api_token",p.token),h.setItem("ds2api_token_expires",Date.now()+p.expires_in*1e3),e(p.token),p.message&&t("warning",p.message)}else t("error",p.detail||"登录失败")}catch(y){t("error","网络错误: "+y.message)}finally{o(!1)}}};return a.jsx("div",{className:"min-h-screen w-full flex flex-col items-center justify-center p-4 bg-background text-foreground",children:a.jsxs("div",{className:"w-full max-w-[400px] relative z-10 animate-in fade-in zoom-in-95 duration-200",children:[a.jsxs("div",{className:"w-full bg-card border border-border rounded-xl p-8 shadow-sm",children:[a.jsxs("div",{className:"text-center space-y-2 mb-8 animate-in fade-in slide-in-from-top-4 duration-500",children:[a.jsx("div",{className:"inline-flex items-center justify-center w-12 h-12 rounded-xl bg-primary/10 text-primary mb-2",children:a.jsx(wy,{className:"w-6 h-6"})}),a.jsx("h1",{className:"text-3xl font-bold tracking-tight text-foreground",children:"欢迎回来"}),a.jsx("p",{className:"text-sm text-muted-foreground/80",children:"请输入管理员密钥以继续"})]}),a.jsxs("form",{onSubmit:u,className:"space-y-5 animate-in fade-in slide-in-from-bottom-4 duration-700 delay-150",children:[a.jsxs("div",{className:"space-y-2",children:[a.jsx("label",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-widest ml-1",children:"管理员密钥"}),a.jsxs("div",{className:"relative group",children:[a.jsx("div",{className:"absolute inset-y-0 left-0 pl-3.5 flex items-center pointer-events-none text-muted-foreground group-focus-within:text-primary transition-colors",children:a.jsx(hy,{className:"w-4 h-4"})}),a.jsx("input",{type:"password",className:"w-full bg-[#09090b] border border-border rounded-xl pl-10 pr-4 py-3 text-sm focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all placeholder:text-muted-foreground/30 text-foreground",placeholder:"输入您的管理员密钥...",value:n,onChange:c=>r(c.target.value),autoFocus:!0})]})]}),a.jsx("div",{className:"flex items-center justify-between px-1",children:a.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer group",children:[a.jsxs("div",{className:"relative flex items-center",children:[a.jsx("input",{type:"checkbox",className:"peer sr-only",checked:s,onChange:c=>i(c.target.checked)}),a.jsx("div",{className:"w-4.5 h-4.5 bg-secondary border border-border rounded-md peer-checked:bg-primary peer-checked:border-primary transition-all shadow-sm"}),a.jsx(Il,{className:"absolute w-3 h-3 text-primary-foreground opacity-0 peer-checked:opacity-100 left-0.5 transition-opacity"})]}),a.jsx("span",{className:"text-xs font-medium text-muted-foreground group-hover:text-foreground transition-colors",children:"记住登录状态"})]})}),a.jsx("button",{type:"submit",disabled:l,className:"w-full h-12 flex items-center justify-center gap-2 bg-primary text-primary-foreground rounded-xl hover:bg-primary/90 transition-all font-semibold text-sm shadow-lg shadow-primary/20 hover:shadow-primary/30 disabled:opacity-50 disabled:shadow-none",children:l?a.jsx("div",{className:"w-5 h-5 border-2 border-primary-foreground/30 border-t-primary-foreground rounded-full animate-spin"}):a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("span",{children:"登录"}),a.jsx(Td,{className:"w-4 h-4"})]})})]}),a.jsx("div",{className:"mt-6 pt-6 border-t border-border flex justify-center",children:a.jsxs("div",{className:"flex items-center gap-1.5 text-[10px] text-muted-foreground/60 font-medium tracking-wide uppercase",children:[a.jsx(Dd,{className:"w-3 h-3"}),a.jsx("span",{children:"安全连接"})]})})]}),a.jsx("div",{className:"mt-8 text-center",children:a.jsx("p",{className:"text-[10px] text-muted-foreground/30 font-mono text-center",children:"DS2API 管理员门户"})})]})})}const To=[{id:"accounts",label:"账号管理",icon:Qy,description:"管理 DeepSeek 账号池"},{id:"test",label:"API 测试",icon:Id,description:"测试 API 连接与响应"},{id:"import",label:"批量导入",icon:bd,description:"批量导入账号配置"},{id:"vercel",label:"Vercel 同步",icon:zd,description:"同步配置到 Vercel"}];function ng({token:e,onLogout:t,config:n,fetchConfig:r,showMessage:l,message:o}){var x,w,N,f;const[s,i]=g.useState("accounts"),[u,c]=g.useState(!1),[y,p]=g.useState(!1),h=async(d,m={})=>{const k={...m.headers,Authorization:`Bearer ${e}`},S=await fetch(d,{...m,headers:k});if(S.status===401)throw t(),new Error("认证已过期,请重新登录");return S},v=()=>{switch(s){case"accounts":return a.jsx(Gy,{config:n,onRefresh:r,onMessage:l,authFetch:h});case"test":return a.jsx(Zy,{config:n,onMessage:l,authFetch:h});case"import":return a.jsx(qy,{onRefresh:r,onMessage:l,authFetch:h});case"vercel":return a.jsx(eg,{onMessage:l,authFetch:h});default:return null}};return a.jsxs("div",{className:"flex h-screen bg-background overflow-hidden text-foreground",children:[u&&a.jsx("div",{className:"fixed inset-0 bg-background/80 backdrop-blur-sm z-40 lg:hidden",onClick:()=>c(!1)}),a.jsxs("aside",{className:ee("fixed lg:static inset-y-0 left-0 z-50 w-64 bg-card border-r border-border transition-transform duration-300 ease-in-out lg:transform-none flex flex-col shadow-2xl lg:shadow-none",u?"translate-x-0":"-translate-x-full"),children:[a.jsxs("div",{className:"p-6",children:[a.jsxs("div",{className:"flex items-center gap-2.5 font-bold text-xl text-foreground tracking-tight",children:[a.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground shadow-lg shadow-primary/20",children:a.jsx(Ya,{className:"w-5 h-5"})}),a.jsx("span",{children:"DS2API"})]}),a.jsx("p",{className:"text-[10px] text-muted-foreground mt-2 font-semibold tracking-[0.1em] uppercase opacity-60 px-1",children:"在线管理面板"})]}),a.jsx("nav",{className:"flex-1 px-3 space-y-1 overflow-y-auto pt-2",children:To.map(d=>{const m=d.icon,k=s===d.id;return a.jsxs("button",{onClick:()=>{i(d.id),c(!1)},className:ee("w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-all duration-200 group border",k?"bg-secondary text-primary border-border shadow-sm":"text-muted-foreground border-transparent hover:bg-secondary/80 hover:text-foreground"),children:[a.jsx(m,{className:ee("w-4 h-4 transition-colors",k?"text-primary":"text-muted-foreground group-hover:text-foreground")}),a.jsx("span",{className:"flex-1 text-left",children:d.label}),k&&a.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-primary"})]},d.id)})}),a.jsx("div",{className:"p-4 border-t border-border bg-card",children:a.jsxs("div",{className:"space-y-4",children:[a.jsxs("div",{className:"flex items-center justify-between text-sm px-1",children:[a.jsx("span",{className:"text-muted-foreground font-semibold text-[10px] uppercase tracking-wider",children:"系统状态"}),a.jsxs("span",{className:"flex items-center gap-1.5 text-[10px] font-bold text-emerald-500 bg-emerald-500/10 px-2 py-0.5 rounded-full border border-emerald-500/20",children:[a.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-emerald-500 animate-pulse"}),"在线"]})]}),a.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[a.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border shadow-sm",children:[a.jsx("div",{className:"text-[9px] text-muted-foreground font-bold uppercase tracking-wider mb-0.5 opacity-70",children:"账号"}),a.jsx("div",{className:"text-lg font-bold text-foreground leading-tight",children:((x=n.accounts)==null?void 0:x.length)||0})]}),a.jsxs("div",{className:"bg-background rounded-lg p-3 border border-border shadow-sm",children:[a.jsx("div",{className:"text-[9px] text-muted-foreground font-bold uppercase tracking-wider mb-0.5 opacity-70",children:"密钥"}),a.jsx("div",{className:"text-lg font-bold text-foreground",children:((w=n.keys)==null?void 0:w.length)||0})]})]}),a.jsxs("button",{onClick:t,className:"w-full h-10 flex items-center justify-center gap-2 rounded-lg border border-border text-xs font-medium text-muted-foreground hover:bg-destructive/10 hover:text-destructive hover:border-destructive/20 transition-all",children:[a.jsx(Ny,{className:"w-3.5 h-3.5"}),"退出登录"]})]})})]}),a.jsxs("main",{className:"flex-1 flex flex-col min-w-0 overflow-hidden relative",children:[a.jsxs("header",{className:"lg:hidden h-14 flex items-center justify-between px-4 border-b border-border bg-card",children:[a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-6 h-6 rounded bg-primary flex items-center justify-center text-primary-foreground text-[10px]",children:a.jsx(Ya,{className:"w-3.5 h-3.5"})}),a.jsx("span",{className:"font-semibold text-sm",children:"DS2API"})]}),a.jsx("button",{onClick:()=>c(!0),className:"p-2 -mr-2 text-muted-foreground hover:text-foreground",children:a.jsx(jy,{className:"w-5 h-5"})})]}),a.jsx("div",{className:"flex-1 overflow-auto bg-background p-4 lg:p-10",children:a.jsxs("div",{className:"max-w-6xl mx-auto space-y-4 lg:space-y-6",children:[a.jsxs("div",{className:"hidden lg:block mb-8",children:[a.jsx("h1",{className:"text-3xl font-bold tracking-tight mb-2",children:(N=To.find(d=>d.id===s))==null?void 0:N.label}),a.jsx("p",{className:"text-muted-foreground",children:(f=To.find(d=>d.id===s))==null?void 0:f.description})]}),o&&a.jsxs("div",{className:ee("p-4 rounded-lg border flex items-center gap-3 animate-in fade-in slide-in-from-top-2",o.type==="error"?"bg-destructive/10 border-destructive/20 text-destructive":"bg-emerald-500/10 border-emerald-500/20 text-emerald-500"),children:[o.type==="error"?a.jsx(Ps,{className:"w-5 h-5"}):a.jsx("div",{className:"w-5 h-5 rounded-full border-2 border-emerald-500 flex items-center justify-center text-[10px]",children:"✓"}),o.text]}),a.jsx("div",{className:"animate-in fade-in duration-500",children:v()})]})})]})]})}function rg(){Ci();const e=ht(),[t,n]=g.useState({keys:[],accounts:[]}),[r,l]=g.useState(!0),[o,s]=g.useState(null),[i,u]=g.useState(null),[c,y]=g.useState(!0),p=!0,h=e.pathname.startsWith("/admin")||p;g.useEffect(()=>{(async()=>{const d=localStorage.getItem("ds2api_token")||sessionStorage.getItem("ds2api_token"),m=parseInt(localStorage.getItem("ds2api_token_expires")||sessionStorage.getItem("ds2api_token_expires")||"0");if(d&&m>Date.now())try{(await fetch("/admin/verify",{headers:{Authorization:`Bearer ${d}`}})).ok?u(d):N()}catch{u(d)}y(!1)})()},[h]);const v=async()=>{if(i)try{l(!0);const f=await fetch("/admin/config",{headers:{Authorization:`Bearer ${i}`}});if(f.ok){const d=await f.json();n(d)}}catch(f){console.error("获取配置失败:",f),x("error",f.message)}finally{l(!1)}};g.useEffect(()=>{i&&v()},[i]);const x=(f,d)=>{s({type:f,text:d}),setTimeout(()=>s(null),5e3)},w=f=>{u(f)},N=()=>{u(null),localStorage.removeItem("ds2api_token"),localStorage.removeItem("ds2api_token_expires"),sessionStorage.removeItem("ds2api_token"),sessionStorage.removeItem("ds2api_token_expires")};return c?a.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:a.jsxs("div",{className:"flex flex-col items-center gap-4",children:[a.jsx("div",{className:"w-8 h-8 border-4 border-primary border-t-transparent rounded-full animate-spin"}),a.jsx("p",{className:"text-muted-foreground animate-pulse",children:"正在检查登录状态..."})]})}):a.jsxs(ch,{children:[!p,a.jsx(Cs,{path:"/",element:i?a.jsx(ng,{token:i,onLogout:N,config:t,fetchConfig:v,showMessage:x,message:o}):a.jsxs("div",{className:"min-h-screen flex flex-col bg-background relative overflow-hidden",children:[a.jsxs("div",{className:"absolute top-0 left-0 w-full h-full overflow-hidden pointer-events-none z-0",children:[a.jsx("div",{className:"absolute top-[-10%] right-[-10%] w-[50%] h-[50%] bg-primary/5 rounded-full blur-[120px]"}),a.jsx("div",{className:"absolute bottom-[-10%] left-[-10%] w-[50%] h-[50%] bg-accent/5 rounded-full blur-[120px]"})]}),o&&a.jsx("div",{className:ee("fixed top-4 right-4 z-50 px-4 py-3 rounded-lg shadow-lg border animate-in slide-in-from-top-2 fade-in",o.type==="error"?"bg-destructive/10 border-destructive/20 text-destructive":"bg-primary/10 border-primary/20 text-primary"),children:o.text}),a.jsx(tg,{onLogin:w,onMessage:x})]})}),a.jsx(Cs,{path:"*",element:a.jsx(ah,{to:"/",replace:!0})})]})}const lg="/admin";zo.createRoot(document.getElementById("root")).render(a.jsx(ef.StrictMode,{children:a.jsx(Ih,{basename:lg,children:a.jsx(rg,{})})}));
|