@lon-ask/dockit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +496 -0
- package/SKILL.md +154 -0
- package/apps/client/dist/assets/index-CqOXxsEZ.js +240 -0
- package/apps/client/dist/assets/index-DwvaANnI.css +1 -0
- package/apps/client/dist/index.html +13 -0
- package/apps/server/src/core/domain/entry.ts +22 -0
- package/apps/server/src/core/domain/errors.ts +27 -0
- package/apps/server/src/core/domain/knowledge-graph.ts +51 -0
- package/apps/server/src/core/domain/types.ts +168 -0
- package/apps/server/src/core/ports/IBuildRepository.ts +7 -0
- package/apps/server/src/core/ports/IDocumentNormalizer.ts +6 -0
- package/apps/server/src/core/ports/IDocumentStore.ts +4 -0
- package/apps/server/src/core/ports/IEntryReadModel.ts +9 -0
- package/apps/server/src/core/ports/IEntryRepository.ts +11 -0
- package/apps/server/src/core/ports/IKnowledgeGraph.ts +10 -0
- package/apps/server/src/core/ports/IPathResolver.ts +3 -0
- package/apps/server/src/core/ports/ISearchEngine.ts +9 -0
- package/apps/server/src/core/ports/ISourceProcessor.ts +7 -0
- package/apps/server/src/core/ports/ISourceRepository.ts +11 -0
- package/apps/server/src/core/usecases/BuildUseCase.ts +98 -0
- package/apps/server/src/core/usecases/ConfigUseCase.ts +64 -0
- package/apps/server/src/core/usecases/SearchUseCase.ts +16 -0
- package/apps/server/src/index.ts +98 -0
- package/apps/server/src/infrastructure/filesystem/FileSystemDocumentStore.ts +27 -0
- package/apps/server/src/infrastructure/graph/GraphSearchDecorator.ts +53 -0
- package/apps/server/src/infrastructure/graph/GraphifyKnowledgeGraph.ts +172 -0
- package/apps/server/src/infrastructure/graph/index.ts +2 -0
- package/apps/server/src/infrastructure/persistence/sqlite/SqliteBuildRepository.ts +34 -0
- package/apps/server/src/infrastructure/persistence/sqlite/SqliteEntryReadModel.ts +17 -0
- package/apps/server/src/infrastructure/persistence/sqlite/SqliteEntryRepository.ts +81 -0
- package/apps/server/src/infrastructure/persistence/sqlite/SqliteSourceRepository.ts +65 -0
- package/apps/server/src/infrastructure/persistence/sqlite/connection.ts +52 -0
- package/apps/server/src/infrastructure/search/SearchEngineFactory.ts +43 -0
- package/apps/server/src/infrastructure/search/json/JsonSearchEngine.ts +164 -0
- package/apps/server/src/infrastructure/search/vector/EmbeddingService.ts +23 -0
- package/apps/server/src/infrastructure/search/vector/VectorSearchEngine.ts +480 -0
- package/apps/server/src/infrastructure/source-processors/AntoraSourceProcessor.ts +14 -0
- package/apps/server/src/infrastructure/source-processors/AsciidocSourceProcessor.ts +12 -0
- package/apps/server/src/infrastructure/source-processors/DocumentNormalizer.ts +16 -0
- package/apps/server/src/infrastructure/source-processors/GithubMarkdownSourceProcessor.ts +12 -0
- package/apps/server/src/infrastructure/source-processors/MavenSourceProcessor.ts +12 -0
- package/apps/server/src/infrastructure/source-processors/PathResolver.ts +6 -0
- package/apps/server/src/infrastructure/source-processors/SourceCodeSourceProcessor.ts +260 -0
- package/apps/server/src/infrastructure/source-processors/ZipSourceProcessor.ts +12 -0
- package/apps/server/src/mcp-http.ts +102 -0
- package/apps/server/src/mcp.ts +432 -0
- package/apps/server/src/routes/build.ts +105 -0
- package/apps/server/src/routes/entries.ts +62 -0
- package/apps/server/src/routes/graph.ts +57 -0
- package/apps/server/src/routes/search.ts +28 -0
- package/apps/server/src/routes/sources.ts +105 -0
- package/apps/server/src/routes/viewer.ts +28 -0
- package/apps/server/src/services/antora.ts +238 -0
- package/apps/server/src/services/asciidoc.ts +221 -0
- package/apps/server/src/services/configLoader.ts +207 -0
- package/apps/server/src/services/githubMarkdown.ts +236 -0
- package/apps/server/src/services/maven.ts +178 -0
- package/apps/server/src/services/normalizer.ts +63 -0
- package/apps/server/src/services/paths.ts +5 -0
- package/apps/server/src/services/textExtractor.ts +49 -0
- package/apps/server/src/services/zip.ts +84 -0
- package/bin/commands/build.ts +85 -0
- package/bin/commands/dev.ts +36 -0
- package/bin/commands/get.ts +36 -0
- package/bin/commands/graph.ts +153 -0
- package/bin/commands/init.ts +170 -0
- package/bin/commands/list.ts +47 -0
- package/bin/commands/mcp.ts +32 -0
- package/bin/commands/search.ts +185 -0
- package/bin/commands/serve.ts +23 -0
- package/bin/commands/status.ts +46 -0
- package/bin/dockit-cli.ts +92 -0
- package/bin/dockit.js +17 -0
- package/bin/utils.ts +85 -0
- package/dockit.yaml +154 -0
- package/package.json +60 -0
- package/scripts/mcp-wrapper.sh +44 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
(function(){const f=document.createElement("link").relList;if(f&&f.supports&&f.supports("modulepreload"))return;for(const m of document.querySelectorAll('link[rel="modulepreload"]'))c(m);new MutationObserver(m=>{for(const h of m)if(h.type==="childList")for(const S of h.addedNodes)S.tagName==="LINK"&&S.rel==="modulepreload"&&c(S)}).observe(document,{childList:!0,subtree:!0});function d(m){const h={};return m.integrity&&(h.integrity=m.integrity),m.referrerPolicy&&(h.referrerPolicy=m.referrerPolicy),m.crossOrigin==="use-credentials"?h.credentials="include":m.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(m){if(m.ep)return;m.ep=!0;const h=d(m);fetch(m.href,h)}})();function Xm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var rr={exports:{}},yu={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Sm;function jv(){if(Sm)return yu;Sm=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.fragment");function d(c,m,h){var S=null;if(h!==void 0&&(S=""+h),m.key!==void 0&&(S=""+m.key),"key"in m){h={};for(var A in m)A!=="key"&&(h[A]=m[A])}else h=m;return m=h.ref,{$$typeof:i,type:c,key:S,ref:m!==void 0?m:null,props:h}}return yu.Fragment=f,yu.jsx=d,yu.jsxs=d,yu}var Em;function zv(){return Em||(Em=1,rr.exports=jv()),rr.exports}var r=zv(),fr={exports:{}},ae={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Nm;function Tv(){if(Nm)return ae;Nm=1;var i=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),S=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),H=Symbol.iterator;function Q(x){return x===null||typeof x!="object"?null:(x=H&&x[H]||x["@@iterator"],typeof x=="function"?x:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G=Object.assign,B={};function w(x,U,X){this.props=x,this.context=U,this.refs=B,this.updater=X||Z}w.prototype.isReactComponent={},w.prototype.setState=function(x,U){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,U,"setState")},w.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function $(){}$.prototype=w.prototype;function L(x,U,X){this.props=x,this.context=U,this.refs=B,this.updater=X||Z}var J=L.prototype=new $;J.constructor=L,G(J,w.prototype),J.isPureReactComponent=!0;var P=Array.isArray;function he(){}var F={H:null,A:null,T:null,S:null},Re=Object.prototype.hasOwnProperty;function De(x,U,X){var k=X.ref;return{$$typeof:i,type:x,key:U,ref:k!==void 0?k:null,props:X}}function ct(x,U){return De(x.type,U,x.props)}function He(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function _e(x){var U={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(X){return U[X]})}var nt=/\/+/g;function I(x,U){return typeof x=="object"&&x!==null&&x.key!=null?_e(""+x.key):U.toString(36)}function je(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(he,he):(x.status="pending",x.then(function(U){x.status==="pending"&&(x.status="fulfilled",x.value=U)},function(U){x.status==="pending"&&(x.status="rejected",x.reason=U)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function M(x,U,X,k,le){var ie=typeof x;(ie==="undefined"||ie==="boolean")&&(x=null);var fe=!1;if(x===null)fe=!0;else switch(ie){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(x.$$typeof){case i:case f:fe=!0;break;case T:return fe=x._init,M(fe(x._payload),U,X,k,le)}}if(fe)return le=le(x),fe=k===""?"."+I(x,0):k,P(le)?(X="",fe!=null&&(X=fe.replace(nt,"$&/")+"/"),M(le,U,X,"",function(ta){return ta})):le!=null&&(He(le)&&(le=ct(le,X+(le.key==null||x&&x.key===le.key?"":(""+le.key).replace(nt,"$&/")+"/")+fe)),U.push(le)),1;fe=0;var Pe=k===""?".":k+":";if(P(x))for(var Me=0;Me<x.length;Me++)k=x[Me],ie=Pe+I(k,Me),fe+=M(k,U,X,ie,le);else if(Me=Q(x),typeof Me=="function")for(x=Me.call(x),Me=0;!(k=x.next()).done;)k=k.value,ie=Pe+I(k,Me++),fe+=M(k,U,X,ie,le);else if(ie==="object"){if(typeof x.then=="function")return M(je(x),U,X,k,le);throw U=String(x),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return fe}function Y(x,U,X){if(x==null)return x;var k=[],le=0;return M(x,k,"","",function(ie){return U.call(X,ie,le++)}),k}function ee(x){if(x._status===-1){var U=x._result;U=U(),U.then(function(X){(x._status===0||x._status===-1)&&(x._status=1,x._result=X)},function(X){(x._status===0||x._status===-1)&&(x._status=2,x._result=X)}),x._status===-1&&(x._status=0,x._result=U)}if(x._status===1)return x._result.default;throw x._result}var ye=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Se={map:Y,forEach:function(x,U,X){Y(x,function(){U.apply(this,arguments)},X)},count:function(x){var U=0;return Y(x,function(){U++}),U},toArray:function(x){return Y(x,function(U){return U})||[]},only:function(x){if(!He(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ae.Activity=E,ae.Children=Se,ae.Component=w,ae.Fragment=d,ae.Profiler=m,ae.PureComponent=L,ae.StrictMode=c,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,ae.__COMPILER_RUNTIME={__proto__:null,c:function(x){return F.H.useMemoCache(x)}},ae.cache=function(x){return function(){return x.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(x,U,X){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var k=G({},x.props),le=x.key;if(U!=null)for(ie in U.key!==void 0&&(le=""+U.key),U)!Re.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(k[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)k.children=X;else if(1<ie){for(var fe=Array(ie),Pe=0;Pe<ie;Pe++)fe[Pe]=arguments[Pe+2];k.children=fe}return De(x.type,le,k)},ae.createContext=function(x){return x={$$typeof:S,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:h,_context:x},x},ae.createElement=function(x,U,X){var k,le={},ie=null;if(U!=null)for(k in U.key!==void 0&&(ie=""+U.key),U)Re.call(U,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(le[k]=U[k]);var fe=arguments.length-2;if(fe===1)le.children=X;else if(1<fe){for(var Pe=Array(fe),Me=0;Me<fe;Me++)Pe[Me]=arguments[Me+2];le.children=Pe}if(x&&x.defaultProps)for(k in fe=x.defaultProps,fe)le[k]===void 0&&(le[k]=fe[k]);return De(x,ie,le)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(x){return{$$typeof:A,render:x}},ae.isValidElement=He,ae.lazy=function(x){return{$$typeof:T,_payload:{_status:-1,_result:x},_init:ee}},ae.memo=function(x,U){return{$$typeof:y,type:x,compare:U===void 0?null:U}},ae.startTransition=function(x){var U=F.T,X={};F.T=X;try{var k=x(),le=F.S;le!==null&&le(X,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(he,ye)}catch(ie){ye(ie)}finally{U!==null&&X.types!==null&&(U.types=X.types),F.T=U}},ae.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},ae.use=function(x){return F.H.use(x)},ae.useActionState=function(x,U,X){return F.H.useActionState(x,U,X)},ae.useCallback=function(x,U){return F.H.useCallback(x,U)},ae.useContext=function(x){return F.H.useContext(x)},ae.useDebugValue=function(){},ae.useDeferredValue=function(x,U){return F.H.useDeferredValue(x,U)},ae.useEffect=function(x,U){return F.H.useEffect(x,U)},ae.useEffectEvent=function(x){return F.H.useEffectEvent(x)},ae.useId=function(){return F.H.useId()},ae.useImperativeHandle=function(x,U,X){return F.H.useImperativeHandle(x,U,X)},ae.useInsertionEffect=function(x,U){return F.H.useInsertionEffect(x,U)},ae.useLayoutEffect=function(x,U){return F.H.useLayoutEffect(x,U)},ae.useMemo=function(x,U){return F.H.useMemo(x,U)},ae.useOptimistic=function(x,U){return F.H.useOptimistic(x,U)},ae.useReducer=function(x,U,X){return F.H.useReducer(x,U,X)},ae.useRef=function(x){return F.H.useRef(x)},ae.useState=function(x){return F.H.useState(x)},ae.useSyncExternalStore=function(x,U,X){return F.H.useSyncExternalStore(x,U,X)},ae.useTransition=function(){return F.H.useTransition()},ae.version="19.2.6",ae}var jm;function Er(){return jm||(jm=1,fr.exports=Tv()),fr.exports}var p=Er();const Av=Xm(p);var or={exports:{}},vu={},dr={exports:{}},mr={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var zm;function Rv(){return zm||(zm=1,(function(i){function f(M,Y){var ee=M.length;M.push(Y);e:for(;0<ee;){var ye=ee-1>>>1,Se=M[ye];if(0<m(Se,Y))M[ye]=Y,M[ee]=Se,ee=ye;else break e}}function d(M){return M.length===0?null:M[0]}function c(M){if(M.length===0)return null;var Y=M[0],ee=M.pop();if(ee!==Y){M[0]=ee;e:for(var ye=0,Se=M.length,x=Se>>>1;ye<x;){var U=2*(ye+1)-1,X=M[U],k=U+1,le=M[k];if(0>m(X,ee))k<Se&&0>m(le,X)?(M[ye]=le,M[k]=ee,ye=k):(M[ye]=X,M[U]=ee,ye=U);else if(k<Se&&0>m(le,ee))M[ye]=le,M[k]=ee,ye=k;else break e}}return Y}function m(M,Y){var ee=M.sortIndex-Y.sortIndex;return ee!==0?ee:M.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;i.unstable_now=function(){return h.now()}}else{var S=Date,A=S.now();i.unstable_now=function(){return S.now()-A}}var b=[],y=[],T=1,E=null,H=3,Q=!1,Z=!1,G=!1,B=!1,w=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function J(M){for(var Y=d(y);Y!==null;){if(Y.callback===null)c(y);else if(Y.startTime<=M)c(y),Y.sortIndex=Y.expirationTime,f(b,Y);else break;Y=d(y)}}function P(M){if(G=!1,J(M),!Z)if(d(b)!==null)Z=!0,he||(he=!0,_e());else{var Y=d(y);Y!==null&&je(P,Y.startTime-M)}}var he=!1,F=-1,Re=5,De=-1;function ct(){return B?!0:!(i.unstable_now()-De<Re)}function He(){if(B=!1,he){var M=i.unstable_now();De=M;var Y=!0;try{e:{Z=!1,G&&(G=!1,$(F),F=-1),Q=!0;var ee=H;try{t:{for(J(M),E=d(b);E!==null&&!(E.expirationTime>M&&ct());){var ye=E.callback;if(typeof ye=="function"){E.callback=null,H=E.priorityLevel;var Se=ye(E.expirationTime<=M);if(M=i.unstable_now(),typeof Se=="function"){E.callback=Se,J(M),Y=!0;break t}E===d(b)&&c(b),J(M)}else c(b);E=d(b)}if(E!==null)Y=!0;else{var x=d(y);x!==null&&je(P,x.startTime-M),Y=!1}}break e}finally{E=null,H=ee,Q=!1}Y=void 0}}finally{Y?_e():he=!1}}}var _e;if(typeof L=="function")_e=function(){L(He)};else if(typeof MessageChannel<"u"){var nt=new MessageChannel,I=nt.port2;nt.port1.onmessage=He,_e=function(){I.postMessage(null)}}else _e=function(){w(He,0)};function je(M,Y){F=w(function(){M(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(M){M.callback=null},i.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Re=0<M?Math.floor(1e3/M):5},i.unstable_getCurrentPriorityLevel=function(){return H},i.unstable_next=function(M){switch(H){case 1:case 2:case 3:var Y=3;break;default:Y=H}var ee=H;H=Y;try{return M()}finally{H=ee}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var ee=H;H=M;try{return Y()}finally{H=ee}},i.unstable_scheduleCallback=function(M,Y,ee){var ye=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ye+ee:ye):ee=ye,M){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=ee+Se,M={id:T++,callback:Y,priorityLevel:M,startTime:ee,expirationTime:Se,sortIndex:-1},ee>ye?(M.sortIndex=ee,f(y,M),d(b)===null&&M===d(y)&&(G?($(F),F=-1):G=!0,je(P,ee-ye))):(M.sortIndex=Se,f(b,M),Z||Q||(Z=!0,he||(he=!0,_e()))),M},i.unstable_shouldYield=ct,i.unstable_wrapCallback=function(M){var Y=H;return function(){var ee=H;H=Y;try{return M.apply(this,arguments)}finally{H=ee}}}})(mr)),mr}var Tm;function Cv(){return Tm||(Tm=1,dr.exports=Rv()),dr.exports}var hr={exports:{}},ut={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Am;function Mv(){if(Am)return ut;Am=1;var i=Er();function f(b){var y="https://react.dev/errors/"+b;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)y+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+b+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(){}var c={d:{f:d,r:function(){throw Error(f(522))},D:d,C:d,L:d,m:d,X:d,S:d,M:d},p:0,findDOMNode:null},m=Symbol.for("react.portal");function h(b,y,T){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:m,key:E==null?null:""+E,children:b,containerInfo:y,implementation:T}}var S=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function A(b,y){if(b==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ut.createPortal=function(b,y){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(f(299));return h(b,y,null,T)},ut.flushSync=function(b){var y=S.T,T=c.p;try{if(S.T=null,c.p=2,b)return b()}finally{S.T=y,c.p=T,c.d.f()}},ut.preconnect=function(b,y){typeof b=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,c.d.C(b,y))},ut.prefetchDNS=function(b){typeof b=="string"&&c.d.D(b)},ut.preinit=function(b,y){if(typeof b=="string"&&y&&typeof y.as=="string"){var T=y.as,E=A(T,y.crossOrigin),H=typeof y.integrity=="string"?y.integrity:void 0,Q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;T==="style"?c.d.S(b,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:H,fetchPriority:Q}):T==="script"&&c.d.X(b,{crossOrigin:E,integrity:H,fetchPriority:Q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ut.preinitModule=function(b,y){if(typeof b=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var T=A(y.as,y.crossOrigin);c.d.M(b,{crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&c.d.M(b)},ut.preload=function(b,y){if(typeof b=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var T=y.as,E=A(T,y.crossOrigin);c.d.L(b,T,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ut.preloadModule=function(b,y){if(typeof b=="string")if(y){var T=A(y.as,y.crossOrigin);c.d.m(b,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:T,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else c.d.m(b)},ut.requestFormReset=function(b){c.d.r(b)},ut.unstable_batchedUpdates=function(b,y){return b(y)},ut.useFormState=function(b,y,T){return S.H.useFormState(b,y,T)},ut.useFormStatus=function(){return S.H.useHostTransitionStatus()},ut.version="19.2.6",ut}var Rm;function Dv(){if(Rm)return hr.exports;Rm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),hr.exports=Mv(),hr.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Cm;function _v(){if(Cm)return vu;Cm=1;var i=Cv(),f=Er(),d=Dv();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function m(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function S(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 A(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(h(e)!==e)throw Error(c(188))}function y(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return b(n),e;if(u===a)return b(n),t;u=u.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,o=n.child;o;){if(o===l){s=!0,l=n,a=u;break}if(o===a){s=!0,a=n,l=u;break}o=o.sibling}if(!s){for(o=u.child;o;){if(o===l){s=!0,l=u,a=n;break}if(o===a){s=!0,a=u,l=n;break}o=o.sibling}if(!s)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,H=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),G=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),L=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),Re=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),ct=Symbol.for("react.memo_cache_sentinel"),He=Symbol.iterator;function _e(e){return e===null||typeof e!="object"?null:(e=He&&e[He]||e["@@iterator"],typeof e=="function"?e:null)}var nt=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===nt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case G:return"Fragment";case w:return"Profiler";case B:return"StrictMode";case P:return"Suspense";case he:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case L:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case Re:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var je=Array.isArray,M=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=d.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ye=[],Se=-1;function x(e){return{current:e}}function U(e){0>Se||(e.current=ye[Se],ye[Se]=null,Se--)}function X(e,t){Se++,ye[Se]=e.current,e.current=t}var k=x(null),le=x(null),ie=x(null),fe=x(null);function Pe(e,t){switch(X(ie,t),X(le,e),X(k,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Zd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Zd(t),e=Vd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(k),X(k,e)}function Me(){U(k),U(le),U(ie)}function ta(e){e.memoizedState!==null&&X(fe,e);var t=k.current,l=Vd(t,e.type);t!==l&&(X(le,e),X(k,l))}function Al(e){le.current===e&&(U(k),U(le)),fe.current===e&&(U(fe),ou._currentValue=ee)}var yn,Sa;function It(e){if(yn===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yn=t&&t[1]||"",Sa=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+yn+e+Sa}var Rl=!1;function vn(e,t){if(!e||Rl)return"";Rl=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(C){var R=C}Reflect.construct(e,[],O)}else{try{O.call()}catch(C){R=C}e.call(O.prototype)}}else{try{throw Error()}catch(C){R=C}(O=e())&&typeof O.catch=="function"&&O.catch(function(){})}}catch(C){if(C&&R&&typeof C.stack=="string")return[C.stack,R.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),s=u[0],o=u[1];if(s&&o){var v=s.split(`
|
|
44
|
+
`),z=o.split(`
|
|
45
|
+
`);for(n=a=0;a<v.length&&!v[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===v.length||n===z.length)for(a=v.length-1,n=z.length-1;1<=a&&0<=n&&v[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(v[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||v[a]!==z[n]){var D=`
|
|
46
|
+
`+v[a].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=a&&0<=n);break}}}finally{Rl=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?It(l):""}function zu(e,t){switch(e.tag){case 26:case 27:case 5:return It(e.type);case 16:return It("Lazy");case 13:return e.child!==t&&t!==null?It("Suspense Fallback"):It("Suspense");case 19:return It("SuspenseList");case 0:case 15:return vn(e.type,!1);case 11:return vn(e.type.render,!1);case 1:return vn(e.type,!0);case 31:return It("Activity");default:return""}}function Tu(e){try{var t="",l=null;do t+=zu(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var la=Object.prototype.hasOwnProperty,pn=i.unstable_scheduleCallback,aa=i.unstable_cancelCallback,Ii=i.unstable_shouldYield,gn=i.unstable_requestPaint,st=i.unstable_now,xn=i.unstable_getCurrentPriorityLevel,Au=i.unstable_ImmediatePriority,bn=i.unstable_UserBlockingPriority,Ea=i.unstable_NormalPriority,At=i.unstable_LowPriority,Ru=i.unstable_IdlePriority,dt=i.log,ec=i.unstable_setDisableYieldValue,el=null,rt=null;function Rt(e){if(typeof dt=="function"&&ec(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(el,e)}catch{}}var ft=Math.clz32?Math.clz32:Na,Sn=Math.log,tc=Math.LN2;function Na(e){return e>>>=0,e===0?32:31-(Sn(e)/tc|0)|0}var ja=256,na=262144,za=4194304;function tl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function be(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~u,a!==0?n=tl(a):(s&=o,s!==0?n=tl(s):l||(l=o&~e,l!==0&&(n=tl(l))))):(o=a&~u,o!==0?n=tl(o):s!==0?n=tl(s):l||(l=a&~e,l!==0&&(n=tl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function ce(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function mt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Qe(){var e=za;return za<<=1,(za&62914560)===0&&(za=4194304),e}function Ta(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Cu(e,t,l,a,n,u){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var o=e.entanglements,v=e.expirationTimes,z=e.hiddenUpdates;for(l=s&~l;0<l;){var D=31-ft(l),O=1<<D;o[D]=0,v[D]=-1;var R=z[D];if(R!==null)for(z[D]=null,D=0;D<R.length;D++){var C=R[D];C!==null&&(C.lane&=-536870913)}l&=~O}a!==0&&En(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function En(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ft(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Nn(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ft(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function jn(e,t){var l=t&-t;return l=(l&42)!==0?1:Aa(l),(l&(e.suspendedLanes|t))!==0?0:l}function Aa(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ra(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function zn(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:hm(e.type))}function Tn(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var Gt=Math.random().toString(36).slice(2),Ze="__reactFiber$"+Gt,Ie="__reactProps$"+Gt,ll="__reactContainer$"+Gt,Ca="__reactEvents$"+Gt,Mu="__reactListeners$"+Gt,Du="__reactHandles$"+Gt,An="__reactResources$"+Gt,Ml="__reactMarker$"+Gt;function Ma(e){delete e[Ze],delete e[Ie],delete e[Ca],delete e[Mu],delete e[Du]}function al(e){var t=e[Ze];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ll]||l[Ze]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Pd(e);e!==null;){if(l=e[Ze])return l;e=Pd(e)}return t}e=l,l=e.parentNode}return null}function nl(e){if(e=e[Ze]||e[ll]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Dl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ul(e){var t=e[An];return t||(t=e[An]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Ml]=!0}var q=new Set,Ve={};function il(e,t){Da(e,t),Da(e+"Capture",t)}function Da(e,t){for(Ve[e]=t,e=0;e<t.length;e++)q.add(t[e])}var yh=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_r={},Or={};function vh(e){return la.call(Or,e)?!0:la.call(_r,e)?!1:yh.test(e)?Or[e]=!0:(_r[e]=!0,!1)}function _u(e,t,l){if(vh(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Ou(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function cl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ur(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ph(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lc(e){if(!e._valueTracker){var t=Ur(e)?"checked":"value";e._valueTracker=ph(e,t,""+e[t])}}function Hr(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ur(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Uu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var gh=/[\n"\\]/g;function Mt(e){return e.replace(gh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ac(e,t,l,a,n,u,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?nc(e,s,Ct(t)):l!=null?nc(e,s,Ct(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Ct(o):e.removeAttribute("name")}function Br(e,t,l,a,n,u,s,o){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){lc(e);return}l=l!=null?""+Ct(l):"",t=t!=null?""+Ct(t):l,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),lc(e)}function nc(e,t,l){t==="number"&&Uu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function _a(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ct(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Lr(e,t,l){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ct(l):""}function qr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(je(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ct(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),lc(e)}function Oa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var xh=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wr(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||xh.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Yr(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&wr(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&wr(e,u,t[u])}function uc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bh=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Sh=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hu(e){return Sh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sl(){}var ic=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,Ha=null;function Gr(e){var t=nl(e);if(t&&(e=t.stateNode)){var l=e[Ie]||null;e:switch(e=t.stateNode,t.type){case"input":if(ac(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Mt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Ie]||null;if(!n)throw Error(c(90));ac(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Hr(a)}break e;case"textarea":Lr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&_a(e,!!l.multiple,t,!1)}}}var sc=!1;function Xr(e,t,l){if(sc)return e(t,l);sc=!0;try{var a=e(t);return a}finally{if(sc=!1,(Ua!==null||Ha!==null)&&(Ei(),Ua&&(t=Ua,e=Ha,Ha=Ua=null,Gr(t),e)))for(t=0;t<e.length;t++)Gr(e[t])}}function Rn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Ie]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var rl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rc=!1;if(rl)try{var Cn={};Object.defineProperty(Cn,"passive",{get:function(){rc=!0}}),window.addEventListener("test",Cn,Cn),window.removeEventListener("test",Cn,Cn)}catch{rc=!1}var _l=null,fc=null,Bu=null;function Qr(){if(Bu)return Bu;var e,t=fc,l=t.length,a,n="value"in _l?_l.value:_l.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var s=l-e;for(a=1;a<=s&&t[l-a]===n[u-a];a++);return Bu=n.slice(e,1<a?1-a:void 0)}function Lu(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 qu(){return!0}function Zr(){return!1}function ht(e){function t(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(l=e[o],this[o]=l?l(u):u[o]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?qu:Zr,this.isPropagationStopped=Zr,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=qu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=qu)},persist:function(){},isPersistent:qu}),t}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=ht(ua),Mn=E({},ua,{view:0,detail:0}),Eh=ht(Mn),oc,dc,Dn,Yu=E({},Mn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,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!==Dn&&(Dn&&e.type==="mousemove"?(oc=e.screenX-Dn.screenX,dc=e.screenY-Dn.screenY):dc=oc=0,Dn=e),oc)},movementY:function(e){return"movementY"in e?e.movementY:dc}}),Vr=ht(Yu),Nh=E({},Yu,{dataTransfer:0}),jh=ht(Nh),zh=E({},Mn,{relatedTarget:0}),mc=ht(zh),Th=E({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),Ah=ht(Th),Rh=E({},ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ch=ht(Rh),Mh=E({},ua,{data:0}),kr=ht(Mh),Dh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_h={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"},Oh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Oh[e])?!!t[e]:!1}function hc(){return Uh}var Hh=E({},Mn,{key:function(e){if(e.key){var t=Dh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_h[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(e){return e.type==="keypress"?Lu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bh=ht(Hh),Lh=E({},Yu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kr=ht(Lh),qh=E({},Mn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),wh=ht(qh),Yh=E({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gh=ht(Yh),Xh=E({},Yu,{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}),Qh=ht(Xh),Zh=E({},ua,{newState:0,oldState:0}),Vh=ht(Zh),kh=[9,13,27,32],yc=rl&&"CompositionEvent"in window,_n=null;rl&&"documentMode"in document&&(_n=document.documentMode);var Kh=rl&&"TextEvent"in window&&!_n,Jr=rl&&(!yc||_n&&8<_n&&11>=_n),$r=" ",Fr=!1;function Wr(e,t){switch(e){case"keyup":return kh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ba=!1;function Jh(e,t){switch(e){case"compositionend":return Pr(t);case"keypress":return t.which!==32?null:(Fr=!0,$r);case"textInput":return e=t.data,e===$r&&Fr?null:e;default:return null}}function $h(e,t){if(Ba)return e==="compositionend"||!yc&&Wr(e,t)?(e=Qr(),Bu=fc=_l=null,Ba=!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 Jr&&t.locale!=="ko"?null:t.data;default:return null}}var Fh={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 Ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fh[e.type]:t==="textarea"}function ef(e,t,l,a){Ua?Ha?Ha.push(a):Ha=[a]:Ua=a,t=Ci(t,"onChange"),0<t.length&&(l=new wu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var On=null,Un=null;function Wh(e){qd(e,0)}function Gu(e){var t=Dl(e);if(Hr(t))return e}function tf(e,t){if(e==="change")return t}var lf=!1;if(rl){var vc;if(rl){var pc="oninput"in document;if(!pc){var af=document.createElement("div");af.setAttribute("oninput","return;"),pc=typeof af.oninput=="function"}vc=pc}else vc=!1;lf=vc&&(!document.documentMode||9<document.documentMode)}function nf(){On&&(On.detachEvent("onpropertychange",uf),Un=On=null)}function uf(e){if(e.propertyName==="value"&&Gu(Un)){var t=[];ef(t,Un,e,cc(e)),Xr(Wh,t)}}function Ph(e,t,l){e==="focusin"?(nf(),On=t,Un=l,On.attachEvent("onpropertychange",uf)):e==="focusout"&&nf()}function Ih(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gu(Un)}function ey(e,t){if(e==="click")return Gu(t)}function ty(e,t){if(e==="input"||e==="change")return Gu(t)}function ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:ly;function Hn(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!la.call(t,n)||!bt(e[n],t[n]))return!1}return!0}function cf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sf(e,t){var l=cf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=cf(l)}}function rf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ff(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Uu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Uu(e.document)}return t}function gc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var ay=rl&&"documentMode"in document&&11>=document.documentMode,La=null,xc=null,Bn=null,bc=!1;function of(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bc||La==null||La!==Uu(a)||(a=La,"selectionStart"in a&&gc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Bn&&Hn(Bn,a)||(Bn=a,a=Ci(xc,"onSelect"),0<a.length&&(t=new wu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=La)))}function ia(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var qa={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Sc={},df={};rl&&(df=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function ca(e){if(Sc[e])return Sc[e];if(!qa[e])return e;var t=qa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in df)return Sc[e]=t[l];return e}var mf=ca("animationend"),hf=ca("animationiteration"),yf=ca("animationstart"),ny=ca("transitionrun"),uy=ca("transitionstart"),iy=ca("transitioncancel"),vf=ca("transitionend"),pf=new Map,Ec="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ec.push("scrollEnd");function Xt(e,t){pf.set(e,t),il(t,[e])}var Xu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Dt=[],wa=0,Nc=0;function Qu(){for(var e=wa,t=Nc=wa=0;t<e;){var l=Dt[t];Dt[t++]=null;var a=Dt[t];Dt[t++]=null;var n=Dt[t];Dt[t++]=null;var u=Dt[t];if(Dt[t++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&gf(l,n,u)}}function Zu(e,t,l,a){Dt[wa++]=e,Dt[wa++]=t,Dt[wa++]=l,Dt[wa++]=a,Nc|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function jc(e,t,l,a){return Zu(e,t,l,a),Vu(e)}function sa(e,t){return Zu(e,null,null,t),Vu(e)}function gf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-ft(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Vu(e){if(50<nu)throw nu=0,Os=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ya={};function cy(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,l,a){return new cy(e,t,l,a)}function zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fl(e,t){var l=e.alternate;return l===null?(l=St(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function xf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ku(e,t,l,a,n,u){var s=0;if(a=e,typeof e=="function")zc(e)&&(s=1);else if(typeof e=="string")s=dv(e,l,k.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=St(31,l,t,n),e.elementType=De,e.lanes=u,e;case G:return ra(l.children,n,u,t);case B:s=8,n|=24;break;case w:return e=St(12,l,t,n|2),e.elementType=w,e.lanes=u,e;case P:return e=St(13,l,t,n),e.elementType=P,e.lanes=u,e;case he:return e=St(19,l,t,n),e.elementType=he,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:s=10;break e;case $:s=9;break e;case J:s=11;break e;case F:s=14;break e;case Re:s=16,a=null;break e}s=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=St(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function ra(e,t,l,a){return e=St(7,e,a,t),e.lanes=l,e}function Tc(e,t,l){return e=St(6,e,null,t),e.lanes=l,e}function bf(e){var t=St(18,null,null,0);return t.stateNode=e,t}function Ac(e,t,l){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Sf=new WeakMap;function _t(e,t){if(typeof e=="object"&&e!==null){var l=Sf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Tu(t)},Sf.set(e,t),t)}return{value:e,source:t,stack:Tu(t)}}var Ga=[],Xa=0,Ku=null,Ln=0,Ot=[],Ut=0,Ol=null,Jt=1,$t="";function ol(e,t){Ga[Xa++]=Ln,Ga[Xa++]=Ku,Ku=e,Ln=t}function Ef(e,t,l){Ot[Ut++]=Jt,Ot[Ut++]=$t,Ot[Ut++]=Ol,Ol=e;var a=Jt;e=$t;var n=32-ft(a)-1;a&=~(1<<n),l+=1;var u=32-ft(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Jt=1<<32-ft(t)+n|l<<n|a,$t=u+e}else Jt=1<<u|l<<n|a,$t=e}function Rc(e){e.return!==null&&(ol(e,1),Ef(e,1,0))}function Cc(e){for(;e===Ku;)Ku=Ga[--Xa],Ga[Xa]=null,Ln=Ga[--Xa],Ga[Xa]=null;for(;e===Ol;)Ol=Ot[--Ut],Ot[Ut]=null,$t=Ot[--Ut],Ot[Ut]=null,Jt=Ot[--Ut],Ot[Ut]=null}function Nf(e,t){Ot[Ut++]=Jt,Ot[Ut++]=$t,Ot[Ut++]=Ol,Jt=t.id,$t=t.overflow,Ol=e}var et=null,Oe=null,me=!1,Ul=null,Ht=!1,Mc=Error(c(519));function Hl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw qn(_t(t,e)),Mc}function jf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Ze]=e,t[Ie]=a,l){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(l=0;l<iu.length;l++)re(iu[l],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),Br(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),qr(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Xd(t.textContent,l)?(a.popover!=null&&(re("beforetoggle",t),re("toggle",t)),a.onScroll!=null&&re("scroll",t),a.onScrollEnd!=null&&re("scrollend",t),a.onClick!=null&&(t.onclick=sl),t=!0):t=!1,t||Hl(e,!0)}function zf(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:et=et.return}}function Qa(e){if(e!==et)return!1;if(!me)return zf(e),me=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Js(e.type,e.memoizedProps)),l=!l),l&&Oe&&Hl(e),zf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Oe=Wd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));Oe=Wd(e)}else t===27?(t=Oe,$l(e.type)?(e=Is,Is=null,Oe=e):Oe=t):Oe=et?Lt(e.stateNode.nextSibling):null;return!0}function fa(){Oe=et=null,me=!1}function Dc(){var e=Ul;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Ul=null),e}function qn(e){Ul===null?Ul=[e]:Ul.push(e)}var _c=x(null),oa=null,dl=null;function Bl(e,t,l){X(_c,t._currentValue),t._currentValue=l}function ml(e){e._currentValue=_c.current,U(_c)}function Oc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Uc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;e:for(;u!==null;){var o=u;u=n;for(var v=0;v<t.length;v++)if(o.context===t[v]){u.lanes|=l,o=u.alternate,o!==null&&(o.lanes|=l),Oc(u.return,l,e),a||(s=null);break e}u=o.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(c(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),Oc(s,l,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function Za(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(c(387));if(s=s.memoizedProps,s!==null){var o=n.type;bt(n.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(n===fe.current){if(s=n.alternate,s===null)throw Error(c(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ou):e=[ou])}n=n.return}e!==null&&Uc(t,e,l,a),t.flags|=262144}function Ju(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function da(e){oa=e,dl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return Tf(oa,e)}function $u(e,t){return oa===null&&da(e),Tf(e,t)}function Tf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},dl===null){if(e===null)throw Error(c(308));dl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else dl=dl.next=t;return l}var sy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},ry=i.unstable_scheduleCallback,fy=i.unstable_NormalPriority,ke={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hc(){return{controller:new sy,data:new Map,refCount:0}}function wn(e){e.refCount--,e.refCount===0&&ry(fy,function(){e.controller.abort()})}var Yn=null,Bc=0,Va=0,ka=null;function oy(e,t){if(Yn===null){var l=Yn=[];Bc=0,Va=ws(),ka={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Bc++,t.then(Af,Af),t}function Af(){if(--Bc===0&&Yn!==null){ka!==null&&(ka.status="fulfilled");var e=Yn;Yn=null,Va=0,ka=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dy(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Rf=M.S;M.S=function(e,t){dd=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&oy(e,t),Rf!==null&&Rf(e,t)};var ma=x(null);function Lc(){var e=ma.current;return e!==null?e:Ce.pooledCache}function Fu(e,t){t===null?X(ma,ma.current):X(ma,t.pool)}function Cf(){var e=Lc();return e===null?null:{parent:ke._currentValue,pool:e}}var Ka=Error(c(460)),qc=Error(c(474)),Wu=Error(c(542)),Pu={then:function(){}};function Mf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Df(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(sl,sl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Of(e),e;default:if(typeof t.status=="string")t.then(sl,sl);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Of(e),e}throw ya=t,Ka}}function ha(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ya=l,Ka):l}}var ya=null;function _f(){if(ya===null)throw Error(c(459));var e=ya;return ya=null,e}function Of(e){if(e===Ka||e===Wu)throw Error(c(483))}var Ja=null,Gn=0;function Iu(e){var t=Gn;return Gn+=1,Ja===null&&(Ja=[]),Df(Ja,e,t)}function Xn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ei(e,t){throw t.$$typeof===H?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Uf(e){function t(N,g){if(e){var j=N.deletions;j===null?(N.deletions=[g],N.flags|=16):j.push(g)}}function l(N,g){if(!e)return null;for(;g!==null;)t(N,g),g=g.sibling;return null}function a(N){for(var g=new Map;N!==null;)N.key!==null?g.set(N.key,N):g.set(N.index,N),N=N.sibling;return g}function n(N,g){return N=fl(N,g),N.index=0,N.sibling=null,N}function u(N,g,j){return N.index=j,e?(j=N.alternate,j!==null?(j=j.index,j<g?(N.flags|=67108866,g):j):(N.flags|=67108866,g)):(N.flags|=1048576,g)}function s(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function o(N,g,j,_){return g===null||g.tag!==6?(g=Tc(j,N.mode,_),g.return=N,g):(g=n(g,j),g.return=N,g)}function v(N,g,j,_){var W=j.type;return W===G?D(N,g,j.props.children,_,j.key):g!==null&&(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Re&&ha(W)===g.type)?(g=n(g,j.props),Xn(g,j),g.return=N,g):(g=ku(j.type,j.key,j.props,null,N.mode,_),Xn(g,j),g.return=N,g)}function z(N,g,j,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==j.containerInfo||g.stateNode.implementation!==j.implementation?(g=Ac(j,N.mode,_),g.return=N,g):(g=n(g,j.children||[]),g.return=N,g)}function D(N,g,j,_,W){return g===null||g.tag!==7?(g=ra(j,N.mode,_,W),g.return=N,g):(g=n(g,j),g.return=N,g)}function O(N,g,j){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Tc(""+g,N.mode,j),g.return=N,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Q:return j=ku(g.type,g.key,g.props,null,N.mode,j),Xn(j,g),j.return=N,j;case Z:return g=Ac(g,N.mode,j),g.return=N,g;case Re:return g=ha(g),O(N,g,j)}if(je(g)||_e(g))return g=ra(g,N.mode,j,null),g.return=N,g;if(typeof g.then=="function")return O(N,Iu(g),j);if(g.$$typeof===L)return O(N,$u(N,g),j);ei(N,g)}return null}function R(N,g,j,_){var W=g!==null?g.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return W!==null?null:o(N,g,""+j,_);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Q:return j.key===W?v(N,g,j,_):null;case Z:return j.key===W?z(N,g,j,_):null;case Re:return j=ha(j),R(N,g,j,_)}if(je(j)||_e(j))return W!==null?null:D(N,g,j,_,null);if(typeof j.then=="function")return R(N,g,Iu(j),_);if(j.$$typeof===L)return R(N,g,$u(N,j),_);ei(N,j)}return null}function C(N,g,j,_,W){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return N=N.get(j)||null,o(g,N,""+_,W);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Q:return N=N.get(_.key===null?j:_.key)||null,v(g,N,_,W);case Z:return N=N.get(_.key===null?j:_.key)||null,z(g,N,_,W);case Re:return _=ha(_),C(N,g,j,_,W)}if(je(_)||_e(_))return N=N.get(j)||null,D(g,N,_,W,null);if(typeof _.then=="function")return C(N,g,j,Iu(_),W);if(_.$$typeof===L)return C(N,g,j,$u(g,_),W);ei(g,_)}return null}function V(N,g,j,_){for(var W=null,ve=null,K=g,ue=g=0,de=null;K!==null&&ue<j.length;ue++){K.index>ue?(de=K,K=null):de=K.sibling;var pe=R(N,K,j[ue],_);if(pe===null){K===null&&(K=de);break}e&&K&&pe.alternate===null&&t(N,K),g=u(pe,g,ue),ve===null?W=pe:ve.sibling=pe,ve=pe,K=de}if(ue===j.length)return l(N,K),me&&ol(N,ue),W;if(K===null){for(;ue<j.length;ue++)K=O(N,j[ue],_),K!==null&&(g=u(K,g,ue),ve===null?W=K:ve.sibling=K,ve=K);return me&&ol(N,ue),W}for(K=a(K);ue<j.length;ue++)de=C(K,N,ue,j[ue],_),de!==null&&(e&&de.alternate!==null&&K.delete(de.key===null?ue:de.key),g=u(de,g,ue),ve===null?W=de:ve.sibling=de,ve=de);return e&&K.forEach(function(ea){return t(N,ea)}),me&&ol(N,ue),W}function te(N,g,j,_){if(j==null)throw Error(c(151));for(var W=null,ve=null,K=g,ue=g=0,de=null,pe=j.next();K!==null&&!pe.done;ue++,pe=j.next()){K.index>ue?(de=K,K=null):de=K.sibling;var ea=R(N,K,pe.value,_);if(ea===null){K===null&&(K=de);break}e&&K&&ea.alternate===null&&t(N,K),g=u(ea,g,ue),ve===null?W=ea:ve.sibling=ea,ve=ea,K=de}if(pe.done)return l(N,K),me&&ol(N,ue),W;if(K===null){for(;!pe.done;ue++,pe=j.next())pe=O(N,pe.value,_),pe!==null&&(g=u(pe,g,ue),ve===null?W=pe:ve.sibling=pe,ve=pe);return me&&ol(N,ue),W}for(K=a(K);!pe.done;ue++,pe=j.next())pe=C(K,N,ue,pe.value,_),pe!==null&&(e&&pe.alternate!==null&&K.delete(pe.key===null?ue:pe.key),g=u(pe,g,ue),ve===null?W=pe:ve.sibling=pe,ve=pe);return e&&K.forEach(function(Nv){return t(N,Nv)}),me&&ol(N,ue),W}function Ae(N,g,j,_){if(typeof j=="object"&&j!==null&&j.type===G&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case Q:e:{for(var W=j.key;g!==null;){if(g.key===W){if(W=j.type,W===G){if(g.tag===7){l(N,g.sibling),_=n(g,j.props.children),_.return=N,N=_;break e}}else if(g.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Re&&ha(W)===g.type){l(N,g.sibling),_=n(g,j.props),Xn(_,j),_.return=N,N=_;break e}l(N,g);break}else t(N,g);g=g.sibling}j.type===G?(_=ra(j.props.children,N.mode,_,j.key),_.return=N,N=_):(_=ku(j.type,j.key,j.props,null,N.mode,_),Xn(_,j),_.return=N,N=_)}return s(N);case Z:e:{for(W=j.key;g!==null;){if(g.key===W)if(g.tag===4&&g.stateNode.containerInfo===j.containerInfo&&g.stateNode.implementation===j.implementation){l(N,g.sibling),_=n(g,j.children||[]),_.return=N,N=_;break e}else{l(N,g);break}else t(N,g);g=g.sibling}_=Ac(j,N.mode,_),_.return=N,N=_}return s(N);case Re:return j=ha(j),Ae(N,g,j,_)}if(je(j))return V(N,g,j,_);if(_e(j)){if(W=_e(j),typeof W!="function")throw Error(c(150));return j=W.call(j),te(N,g,j,_)}if(typeof j.then=="function")return Ae(N,g,Iu(j),_);if(j.$$typeof===L)return Ae(N,g,$u(N,j),_);ei(N,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,g!==null&&g.tag===6?(l(N,g.sibling),_=n(g,j),_.return=N,N=_):(l(N,g),_=Tc(j,N.mode,_),_.return=N,N=_),s(N)):l(N,g)}return function(N,g,j,_){try{Gn=0;var W=Ae(N,g,j,_);return Ja=null,W}catch(K){if(K===Ka||K===Wu)throw K;var ve=St(29,K,null,N.mode);return ve.lanes=_,ve.return=N,ve}finally{}}}var va=Uf(!0),Hf=Uf(!1),Ll=!1;function wc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks: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,callbacks:null})}function ql(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Vu(e),gf(e,null,l),t}return Zu(e,a,t,l),Vu(e)}function Qn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Nn(e,l)}}function Gc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Xc=!1;function Zn(){if(Xc){var e=ka;if(e!==null)throw e}}function Vn(e,t,l,a){Xc=!1;var n=e.updateQueue;Ll=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var v=o,z=v.next;v.next=null,s===null?u=z:s.next=z,s=v;var D=e.alternate;D!==null&&(D=D.updateQueue,o=D.lastBaseUpdate,o!==s&&(o===null?D.firstBaseUpdate=z:o.next=z,D.lastBaseUpdate=v))}if(u!==null){var O=n.baseState;s=0,D=z=v=null,o=u;do{var R=o.lane&-536870913,C=R!==o.lane;if(C?(oe&R)===R:(a&R)===R){R!==0&&R===Va&&(Xc=!0),D!==null&&(D=D.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var V=e,te=o;R=t;var Ae=l;switch(te.tag){case 1:if(V=te.payload,typeof V=="function"){O=V.call(Ae,O,R);break e}O=V;break e;case 3:V.flags=V.flags&-65537|128;case 0:if(V=te.payload,R=typeof V=="function"?V.call(Ae,O,R):V,R==null)break e;O=E({},O,R);break e;case 2:Ll=!0}}R=o.callback,R!==null&&(e.flags|=64,C&&(e.flags|=8192),C=n.callbacks,C===null?n.callbacks=[R]:C.push(R))}else C={lane:R,tag:o.tag,payload:o.payload,callback:o.callback,next:null},D===null?(z=D=C,v=O):D=D.next=C,s|=R;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;C=o,o=C.next,C.next=null,n.lastBaseUpdate=C,n.shared.pending=null}}while(!0);D===null&&(v=O),n.baseState=v,n.firstBaseUpdate=z,n.lastBaseUpdate=D,u===null&&(n.shared.lanes=0),Zl|=s,e.lanes=s,e.memoizedState=O}}function Bf(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function Lf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Bf(l[e],t)}var $a=x(null),ti=x(0);function qf(e,t){e=El,X(ti,e),X($a,t),El=e|t.baseLanes}function Qc(){X(ti,El),X($a,$a.current)}function Zc(){El=ti.current,U($a),U(ti)}var Et=x(null),Bt=null;function Yl(e){var t=e.alternate;X(Ge,Ge.current&1),X(Et,e),Bt===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(Bt=e)}function Vc(e){X(Ge,Ge.current),X(Et,e),Bt===null&&(Bt=e)}function wf(e){e.tag===22?(X(Ge,Ge.current),X(Et,e),Bt===null&&(Bt=e)):Gl()}function Gl(){X(Ge,Ge.current),X(Et,Et.current)}function Nt(e){U(Et),Bt===e&&(Bt=null),U(Ge)}var Ge=x(0);function li(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ws(l)||Ps(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hl=0,ne=null,ze=null,Ke=null,ai=!1,Fa=!1,pa=!1,ni=0,kn=0,Wa=null,my=0;function qe(){throw Error(c(321))}function kc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!bt(e[l],t[l]))return!1;return!0}function Kc(e,t,l,a,n,u){return hl=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?No:ss,pa=!1,u=l(a,n),pa=!1,Fa&&(u=Gf(t,l,a,n)),Yf(e),u}function Yf(e){M.H=$n;var t=ze!==null&&ze.next!==null;if(hl=0,Ke=ze=ne=null,ai=!1,kn=0,Wa=null,t)throw Error(c(300));e===null||Je||(e=e.dependencies,e!==null&&Ju(e)&&(Je=!0))}function Gf(e,t,l,a){ne=e;var n=0;do{if(Fa&&(Wa=null),kn=0,Fa=!1,25<=n)throw Error(c(301));if(n+=1,Ke=ze=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=jo,u=t(l,a)}while(Fa);return u}function hy(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?Kn(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ne.flags|=1024),t}function Jc(){var e=ni!==0;return ni=0,e}function $c(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Fc(e){if(ai){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ai=!1}hl=0,Ke=ze=ne=null,Fa=!1,kn=ni=0,Wa=null}function ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Xe(){if(ze===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Ke===null?ne.memoizedState:Ke.next;if(t!==null)Ke=t,ze=e;else{if(e===null)throw ne.alternate===null?Error(c(467)):Error(c(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function ui(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kn(e){var t=kn;return kn+=1,Wa===null&&(Wa=[]),e=Df(Wa,e,t),t=ne,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?No:ss),e}function ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kn(e);if(e.$$typeof===L)return tt(e)}throw Error(c(438,String(e)))}function Wc(e){var t=null,l=ne.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ne.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ui(),ne.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ct;return t.index++,l}function yl(e,t){return typeof t=="function"?t(e):t}function ci(e){var t=Xe();return Pc(t,ze,e)}function Pc(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var o=s=null,v=null,z=t,D=!1;do{var O=z.lane&-536870913;if(O!==z.lane?(oe&O)===O:(hl&O)===O){var R=z.revertLane;if(R===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),O===Va&&(D=!0);else if((hl&R)===R){z=z.next,R===Va&&(D=!0);continue}else O={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},v===null?(o=v=O,s=u):v=v.next=O,ne.lanes|=R,Zl|=R;O=z.action,pa&&l(u,O),u=z.hasEagerState?z.eagerState:l(u,O)}else R={lane:O,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},v===null?(o=v=R,s=u):v=v.next=R,ne.lanes|=O,Zl|=O;z=z.next}while(z!==null&&z!==t);if(v===null?s=u:v.next=o,!bt(u,e.memoizedState)&&(Je=!0,D&&(l=ka,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=v,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ic(e){var t=Xe(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=e(u,s.action),s=s.next;while(s!==n);bt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Xf(e,t,l){var a=ne,n=Xe(),u=me;if(u){if(l===void 0)throw Error(c(407));l=l()}else l=t();var s=!bt((ze||n).memoizedState,l);if(s&&(n.memoizedState=l,Je=!0),n=n.queue,ls(Vf.bind(null,a,n,e),[e]),n.getSnapshot!==t||s||Ke!==null&&Ke.memoizedState.tag&1){if(a.flags|=2048,Pa(9,{destroy:void 0},Zf.bind(null,a,n,l,t),null),Ce===null)throw Error(c(349));u||(hl&127)!==0||Qf(a,t,l)}return l}function Qf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ne.updateQueue,t===null?(t=ui(),ne.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Zf(e,t,l,a){t.value=l,t.getSnapshot=a,kf(t)&&Kf(e)}function Vf(e,t,l){return l(function(){kf(t)&&Kf(e)})}function kf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!bt(e,l)}catch{return!0}}function Kf(e){var t=sa(e,2);t!==null&&xt(t,e,2)}function es(e){var t=ot();if(typeof e=="function"){var l=e;if(e=l(),pa){Rt(!0);try{l()}finally{Rt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:e},t}function Jf(e,t,l,a){return e.baseState=l,Pc(e,ze,typeof a=="function"?a:yl)}function yy(e,t,l,a,n){if(fi(e))throw Error(c(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};M.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,$f(t,u)):(u.next=l.next,t.pending=l.next=u)}}function $f(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=M.T,s={};M.T=s;try{var o=l(n,a),v=M.S;v!==null&&v(s,o),Ff(e,t,o)}catch(z){ts(e,t,z)}finally{u!==null&&s.types!==null&&(u.types=s.types),M.T=u}}else try{u=l(n,a),Ff(e,t,u)}catch(z){ts(e,t,z)}}function Ff(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Wf(e,t,a)},function(a){return ts(e,t,a)}):Wf(e,t,l)}function Wf(e,t,l){t.status="fulfilled",t.value=l,Pf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,$f(e,l)))}function ts(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Pf(t),t=t.next;while(t!==a)}e.action=null}function Pf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function If(e,t){return t}function eo(e,t){if(me){var l=Ce.formState;if(l!==null){e:{var a=ne;if(me){if(Oe){t:{for(var n=Oe,u=Ht;n.nodeType!==8;){if(!u){n=null;break t}if(n=Lt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Oe=Lt(n.nextSibling),a=n.data==="F!";break e}}Hl(a)}a=!1}a&&(t=l[0])}}return l=ot(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:If,lastRenderedState:t},l.queue=a,l=bo.bind(null,ne,a),a.dispatch=l,a=es(!1),u=cs.bind(null,ne,!1,a.queue),a=ot(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=yy.bind(null,ne,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function to(e){var t=Xe();return lo(t,ze,e)}function lo(e,t,l){if(t=Pc(e,t,If)[0],e=ci(yl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Kn(t)}catch(s){throw s===Ka?Wu:s}else a=t;t=Xe();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ne.flags|=2048,Pa(9,{destroy:void 0},vy.bind(null,n,l),null)),[a,u,e]}function vy(e,t){e.action=t}function ao(e){var t=Xe(),l=ze;if(l!==null)return lo(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Pa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=ui(),ne.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function no(){return Xe().memoizedState}function si(e,t,l,a){var n=ot();ne.flags|=e,n.memoizedState=Pa(1|t,{destroy:void 0},l,a===void 0?null:a)}function ri(e,t,l,a){var n=Xe();a=a===void 0?null:a;var u=n.memoizedState.inst;ze!==null&&a!==null&&kc(a,ze.memoizedState.deps)?n.memoizedState=Pa(t,u,l,a):(ne.flags|=e,n.memoizedState=Pa(1|t,u,l,a))}function uo(e,t){si(8390656,8,e,t)}function ls(e,t){ri(2048,8,e,t)}function py(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=ui(),ne.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function io(e){var t=Xe().memoizedState;return py({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function co(e,t){return ri(4,2,e,t)}function so(e,t){return ri(4,4,e,t)}function ro(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fo(e,t,l){l=l!=null?l.concat([e]):null,ri(4,4,ro.bind(null,t,e),l)}function as(){}function oo(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&kc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function mo(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&kc(t,a[1]))return a[0];if(a=e(),pa){Rt(!0);try{e()}finally{Rt(!1)}}return l.memoizedState=[a,t],a}function ns(e,t,l){return l===void 0||(hl&1073741824)!==0&&(oe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=hd(),ne.lanes|=e,Zl|=e,l)}function ho(e,t,l,a){return bt(l,t)?l:$a.current!==null?(e=ns(e,l,a),bt(e,t)||(Je=!0),e):(hl&42)===0||(hl&1073741824)!==0&&(oe&261930)===0?(Je=!0,e.memoizedState=l):(e=hd(),ne.lanes|=e,Zl|=e,t)}function yo(e,t,l,a,n){var u=Y.p;Y.p=u!==0&&8>u?u:8;var s=M.T,o={};M.T=o,cs(e,!1,t,l);try{var v=n(),z=M.S;if(z!==null&&z(o,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var D=dy(v,a);Jn(e,t,D,Tt(e))}else Jn(e,t,a,Tt(e))}catch(O){Jn(e,t,{then:function(){},status:"rejected",reason:O},Tt())}finally{Y.p=u,s!==null&&o.types!==null&&(s.types=o.types),M.T=s}}function gy(){}function us(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=vo(e).queue;yo(e,n,t,ee,l===null?gy:function(){return po(e),l(a)})}function vo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:yl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function po(e){var t=vo(e);t.next===null&&(t=e.alternate.memoizedState),Jn(e,t.next.queue,{},Tt())}function is(){return tt(ou)}function go(){return Xe().memoizedState}function xo(){return Xe().memoizedState}function xy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Tt();e=ql(l);var a=wl(t,e,l);a!==null&&(xt(a,t,l),Qn(a,t,l)),t={cache:Hc()},e.payload=t;return}t=t.return}}function by(e,t,l){var a=Tt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fi(e)?So(t,l):(l=jc(e,t,l,a),l!==null&&(xt(l,e,a),Eo(l,t,a)))}function bo(e,t,l){var a=Tt();Jn(e,t,l,a)}function Jn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(fi(e))So(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,o=u(s,l);if(n.hasEagerState=!0,n.eagerState=o,bt(o,s))return Zu(e,t,n,0),Ce===null&&Qu(),!1}catch{}finally{}if(l=jc(e,t,n,a),l!==null)return xt(l,e,a),Eo(l,t,a),!0}return!1}function cs(e,t,l,a){if(a={lane:2,revertLane:ws(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},fi(e)){if(t)throw Error(c(479))}else t=jc(e,l,a,2),t!==null&&xt(t,e,2)}function fi(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function So(e,t){Fa=ai=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Eo(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Nn(e,l)}}var $n={readContext:tt,use:ii,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};$n.useEffectEvent=qe;var No={readContext:tt,use:ii,useCallback:function(e,t){return ot().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:uo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,si(4194308,4,ro.bind(null,t,e),l)},useLayoutEffect:function(e,t){return si(4194308,4,e,t)},useInsertionEffect:function(e,t){si(4,2,e,t)},useMemo:function(e,t){var l=ot();t=t===void 0?null:t;var a=e();if(pa){Rt(!0);try{e()}finally{Rt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ot();if(l!==void 0){var n=l(t);if(pa){Rt(!0);try{l(t)}finally{Rt(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=by.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=ot();return e={current:e},t.memoizedState=e},useState:function(e){e=es(e);var t=e.queue,l=bo.bind(null,ne,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:as,useDeferredValue:function(e,t){var l=ot();return ns(l,e,t)},useTransition:function(){var e=es(!1);return e=yo.bind(null,ne,e.queue,!0,!1),ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ne,n=ot();if(me){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),Ce===null)throw Error(c(349));(oe&127)!==0||Qf(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,uo(Vf.bind(null,a,u,e),[e]),a.flags|=2048,Pa(9,{destroy:void 0},Zf.bind(null,a,u,l,t),null),l},useId:function(){var e=ot(),t=Ce.identifierPrefix;if(me){var l=$t,a=Jt;l=(a&~(1<<32-ft(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=ni++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=my++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:is,useFormState:eo,useActionState:eo,useOptimistic:function(e){var t=ot();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=cs.bind(null,ne,!0,l),l.dispatch=t,[e,t]},useMemoCache:Wc,useCacheRefresh:function(){return ot().memoizedState=xy.bind(null,ne)},useEffectEvent:function(e){var t=ot(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},ss={readContext:tt,use:ii,useCallback:oo,useContext:tt,useEffect:ls,useImperativeHandle:fo,useInsertionEffect:co,useLayoutEffect:so,useMemo:mo,useReducer:ci,useRef:no,useState:function(){return ci(yl)},useDebugValue:as,useDeferredValue:function(e,t){var l=Xe();return ho(l,ze.memoizedState,e,t)},useTransition:function(){var e=ci(yl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Kn(e),t]},useSyncExternalStore:Xf,useId:go,useHostTransitionStatus:is,useFormState:to,useActionState:to,useOptimistic:function(e,t){var l=Xe();return Jf(l,ze,e,t)},useMemoCache:Wc,useCacheRefresh:xo};ss.useEffectEvent=io;var jo={readContext:tt,use:ii,useCallback:oo,useContext:tt,useEffect:ls,useImperativeHandle:fo,useInsertionEffect:co,useLayoutEffect:so,useMemo:mo,useReducer:Ic,useRef:no,useState:function(){return Ic(yl)},useDebugValue:as,useDeferredValue:function(e,t){var l=Xe();return ze===null?ns(l,e,t):ho(l,ze.memoizedState,e,t)},useTransition:function(){var e=Ic(yl)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Kn(e),t]},useSyncExternalStore:Xf,useId:go,useHostTransitionStatus:is,useFormState:ao,useActionState:ao,useOptimistic:function(e,t){var l=Xe();return ze!==null?Jf(l,ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Wc,useCacheRefresh:xo};jo.useEffectEvent=io;function rs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:E({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var fs={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Tt(),n=ql(a);n.payload=t,l!=null&&(n.callback=l),t=wl(e,n,a),t!==null&&(xt(t,e,a),Qn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Tt(),n=ql(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=wl(e,n,a),t!==null&&(xt(t,e,a),Qn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Tt(),a=ql(l);a.tag=2,t!=null&&(a.callback=t),t=wl(e,a,l),t!==null&&(xt(t,e,l),Qn(t,e,l))}};function zo(e,t,l,a,n,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,s):t.prototype&&t.prototype.isPureReactComponent?!Hn(l,a)||!Hn(n,u):!0}function To(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&fs.enqueueReplaceState(t,t.state,null)}function ga(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=E({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Ao(e){Xu(e)}function Ro(e){console.error(e)}function Co(e){Xu(e)}function oi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Mo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function os(e,t,l){return l=ql(l),l.tag=3,l.payload={element:null},l.callback=function(){oi(e,t)},l}function Do(e){return e=ql(e),e.tag=3,e}function _o(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){Mo(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){Mo(t,l,a),typeof n!="function"&&(Vl===null?Vl=new Set([this]):Vl.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function Sy(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Za(t,l,n,!0),l=Et.current,l!==null){switch(l.tag){case 31:case 13:return Bt===null?Ni():l.alternate===null&&we===0&&(we=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Pu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Bs(e,a,n)),!1;case 22:return l.flags|=65536,a===Pu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Bs(e,a,n)),!1}throw Error(c(435,l.tag))}return Bs(e,a,n),Ni(),!1}if(me)return t=Et.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Mc&&(e=Error(c(422),{cause:a}),qn(_t(e,l)))):(a!==Mc&&(t=Error(c(423),{cause:a}),qn(_t(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=_t(a,l),n=os(e.stateNode,a,n),Gc(e,n),we!==4&&(we=2)),!1;var u=Error(c(520),{cause:a});if(u=_t(u,l),au===null?au=[u]:au.push(u),we!==4&&(we=2),t===null)return!0;a=_t(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=os(l.stateNode,a,e),Gc(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Vl===null||!Vl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Do(n),_o(n,e,l,a),Gc(l,n),!1}l=l.return}while(l!==null);return!1}var ds=Error(c(461)),Je=!1;function lt(e,t,l,a){t.child=e===null?Hf(t,null,l,a):va(t,e.child,l,a)}function Oo(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var s={};for(var o in a)o!=="ref"&&(s[o]=a[o])}else s=a;return da(t),a=Kc(e,t,l,s,u,n),o=Jc(),e!==null&&!Je?($c(e,t,n),vl(e,t,n)):(me&&o&&Rc(t),t.flags|=1,lt(e,t,a,n),t.child)}function Uo(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!zc(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Ho(e,t,u,a,n)):(e=ku(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!bs(e,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Hn,l(s,a)&&e.ref===t.ref)return vl(e,t,n)}return t.flags|=1,e=fl(u,a),e.ref=t.ref,e.return=t,t.child=e}function Ho(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Hn(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,bs(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,vl(e,t,n)}return ms(e,t,l,a,n)}function Bo(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Lo(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Fu(t,u!==null?u.cachePool:null),u!==null?qf(t,u):Qc(),wf(t);else return a=t.lanes=536870912,Lo(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(Fu(t,u.cachePool),qf(t,u),Gl(),t.memoizedState=null):(e!==null&&Fu(t,null),Qc(),Gl());return lt(e,t,n,l),t.child}function Fn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Lo(e,t,l,a,n){var u=Lc();return u=u===null?null:{parent:ke._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&Fu(t,null),Qc(),wf(t),e!==null&&Za(e,t,a,!0),t.childLanes=n,null}function di(e,t){return t=hi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function qo(e,t,l){return va(t,e.child,null,l),e=di(t,t.pendingProps),e.flags|=2,Nt(t),t.memoizedState=null,e}function Ey(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(a.mode==="hidden")return e=di(t,a),t.lanes=536870912,Fn(null,e);if(Vc(t),(e=Oe)?(e=Fd(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ol!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},l=bf(e),l.return=t,t.child=l,et=t,Oe=null)):e=null,e===null)throw Hl(t);return t.lanes=536870912,null}return di(t,a)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(Vc(t),n)if(t.flags&256)t.flags&=-257,t=qo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Je||Za(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=Ce,a!==null&&(s=jn(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,sa(e,s),xt(a,e,s),ds;Ni(),t=qo(e,t,l)}else e=u.treeContext,Oe=Lt(s.nextSibling),et=t,me=!0,Ul=null,Ht=!1,e!==null&&Nf(t,e),t=di(t,a),t.flags|=4096;return t}return e=fl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function mi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function ms(e,t,l,a,n){return da(t),l=Kc(e,t,l,a,void 0,n),a=Jc(),e!==null&&!Je?($c(e,t,n),vl(e,t,n)):(me&&a&&Rc(t),t.flags|=1,lt(e,t,l,n),t.child)}function wo(e,t,l,a,n,u){return da(t),t.updateQueue=null,l=Gf(t,a,l,n),Yf(e),a=Jc(),e!==null&&!Je?($c(e,t,u),vl(e,t,u)):(me&&a&&Rc(t),t.flags|=1,lt(e,t,l,u),t.child)}function Yo(e,t,l,a,n){if(da(t),t.stateNode===null){var u=Ya,s=l.contextType;typeof s=="object"&&s!==null&&(u=tt(s)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=fs,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},wc(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?tt(s):Ya,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(rs(t,l,s,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&fs.enqueueReplaceState(u,u.state,null),Vn(t,a,u,n),Zn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var o=t.memoizedProps,v=ga(l,o);u.props=v;var z=u.context,D=l.contextType;s=Ya,typeof D=="object"&&D!==null&&(s=tt(D));var O=l.getDerivedStateFromProps;D=typeof O=="function"||typeof u.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(o||z!==s)&&To(t,u,a,s),Ll=!1;var R=t.memoizedState;u.state=R,Vn(t,a,u,n),Zn(),z=t.memoizedState,o||R!==z||Ll?(typeof O=="function"&&(rs(t,l,O,a),z=t.memoizedState),(v=Ll||zo(t,l,v,a,R,z,s))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=s,a=v):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,Yc(e,t),s=t.memoizedProps,D=ga(l,s),u.props=D,O=t.pendingProps,R=u.context,z=l.contextType,v=Ya,typeof z=="object"&&z!==null&&(v=tt(z)),o=l.getDerivedStateFromProps,(z=typeof o=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==O||R!==v)&&To(t,u,a,v),Ll=!1,R=t.memoizedState,u.state=R,Vn(t,a,u,n),Zn();var C=t.memoizedState;s!==O||R!==C||Ll||e!==null&&e.dependencies!==null&&Ju(e.dependencies)?(typeof o=="function"&&(rs(t,l,o,a),C=t.memoizedState),(D=Ll||zo(t,l,D,a,R,C,v)||e!==null&&e.dependencies!==null&&Ju(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,C,v),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,C,v)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=C),u.props=a,u.state=C,u.context=v,a=D):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,mi(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=va(t,e.child,null,n),t.child=va(t,null,l,n)):lt(e,t,l,n),t.memoizedState=u.state,e=t.child):e=vl(e,t,n),e}function Go(e,t,l,a){return fa(),t.flags|=256,lt(e,t,l,a),t.child}var hs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ys(e){return{baseLanes:e,cachePool:Cf()}}function vs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=zt),e}function Xo(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(n?Yl(t):Gl(),(e=Oe)?(e=Fd(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ol!==null?{id:Jt,overflow:$t}:null,retryLane:536870912,hydrationErrors:null},l=bf(e),l.return=t,t.child=l,et=t,Oe=null)):e=null,e===null)throw Hl(t);return Ps(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,n?(Gl(),n=t.mode,o=hi({mode:"hidden",children:o},n),a=ra(a,n,l,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=ys(l),a.childLanes=vs(e,s,l),t.memoizedState=hs,Fn(null,a)):(Yl(t),ps(t,o))}var v=e.memoizedState;if(v!==null&&(o=v.dehydrated,o!==null)){if(u)t.flags&256?(Yl(t),t.flags&=-257,t=gs(e,t,l)):t.memoizedState!==null?(Gl(),t.child=e.child,t.flags|=128,t=null):(Gl(),o=a.fallback,n=t.mode,a=hi({mode:"visible",children:a.children},n),o=ra(o,n,l,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,va(t,e.child,null,l),a=t.child,a.memoizedState=ys(l),a.childLanes=vs(e,s,l),t.memoizedState=hs,t=Fn(null,a));else if(Yl(t),Ps(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var z=s.dgst;s=z,a=Error(c(419)),a.stack="",a.digest=s,qn({value:a,source:null,stack:null}),t=gs(e,t,l)}else if(Je||Za(e,t,l,!1),s=(l&e.childLanes)!==0,Je||s){if(s=Ce,s!==null&&(a=jn(s,l),a!==0&&a!==v.retryLane))throw v.retryLane=a,sa(e,a),xt(s,e,a),ds;Ws(o)||Ni(),t=gs(e,t,l)}else Ws(o)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Oe=Lt(o.nextSibling),et=t,me=!0,Ul=null,Ht=!1,e!==null&&Nf(t,e),t=ps(t,a.children),t.flags|=4096);return t}return n?(Gl(),o=a.fallback,n=t.mode,v=e.child,z=v.sibling,a=fl(v,{mode:"hidden",children:a.children}),a.subtreeFlags=v.subtreeFlags&65011712,z!==null?o=fl(z,o):(o=ra(o,n,l,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,Fn(null,a),a=t.child,o=e.child.memoizedState,o===null?o=ys(l):(n=o.cachePool,n!==null?(v=ke._currentValue,n=n.parent!==v?{parent:v,pool:v}:n):n=Cf(),o={baseLanes:o.baseLanes|l,cachePool:n}),a.memoizedState=o,a.childLanes=vs(e,s,l),t.memoizedState=hs,Fn(e.child,a)):(Yl(t),l=e.child,e=l.sibling,l=fl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function ps(e,t){return t=hi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function hi(e,t){return e=St(22,e,null,t),e.lanes=0,e}function gs(e,t,l){return va(t,e.child,null,l),e=ps(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qo(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Oc(e.return,t,l)}function xs(e,t,l,a,n,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function Zo(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=Ge.current,o=(s&2)!==0;if(o?(s=s&1|2,t.flags|=128):s&=1,X(Ge,s),lt(e,t,a,l),a=me?Ln:0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qo(e,l,t);else if(e.tag===19)Qo(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&li(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),xs(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&li(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}xs(t,!0,l,null,u,a);break;case"together":xs(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function vl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Zl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Za(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=fl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=fl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function bs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ju(e)))}function Ny(e,t,l){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),Bl(t,ke,e.memoizedState.cache),fa();break;case 27:case 5:ta(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:Bl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Yl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Xo(e,t,l):(Yl(t),e=vl(e,t,l),e!==null?e.sibling:null);Yl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Za(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Zo(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),X(Ge,Ge.current),a)break;return null;case 22:return t.lanes=0,Bo(e,t,l,t.pendingProps);case 24:Bl(t,ke,e.memoizedState.cache)}return vl(e,t,l)}function Vo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!bs(e,l)&&(t.flags&128)===0)return Je=!1,Ny(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,me&&(t.flags&1048576)!==0&&Ef(t,Ln,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ha(t.elementType),t.type=e,typeof e=="function")zc(e)?(a=ga(e,a),t.tag=1,t=Yo(null,t,e,a,l)):(t.tag=0,t=ms(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===J){t.tag=11,t=Oo(null,t,e,a,l);break e}else if(n===F){t.tag=14,t=Uo(null,t,e,a,l);break e}}throw t=I(e)||e,Error(c(306,t,""))}}return t;case 0:return ms(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ga(a,t.pendingProps),Yo(e,t,a,n,l);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,Yc(e,t),Vn(t,a,null,l);var s=t.memoizedState;if(a=s.cache,Bl(t,ke,a),a!==u.cache&&Uc(t,[ke],l,!0),Zn(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Go(e,t,a,l);break e}else if(a!==n){n=_t(Error(c(424)),t),qn(n),t=Go(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Oe=Lt(e.firstChild),et=t,me=!0,Ul=null,Ht=!0,l=Hf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(fa(),a===n){t=vl(e,t,l);break e}lt(e,t,a,l)}t=t.child}return t;case 26:return mi(e,t),e===null?(l=lm(t.type,null,t.pendingProps,null))?t.memoizedState=l:me||(l=t.type,e=t.pendingProps,a=Mi(ie.current).createElement(l),a[Ze]=t,a[Ie]=e,at(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=lm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ta(t),e===null&&me&&(a=t.stateNode=Id(t.type,t.pendingProps,ie.current),et=t,Ht=!0,n=Oe,$l(t.type)?(Is=n,Oe=Lt(a.firstChild)):Oe=n),lt(e,t,t.pendingProps.children,l),mi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((n=a=Oe)&&(a=Iy(a,t.type,t.pendingProps,Ht),a!==null?(t.stateNode=a,et=t,Oe=Lt(a.firstChild),Ht=!1,n=!0):n=!1),n||Hl(t)),ta(t),n=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,a=u.children,Js(n,u)?a=null:s!==null&&Js(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=Kc(e,t,hy,null,null,l),ou._currentValue=n),mi(e,t),lt(e,t,a,l),t.child;case 6:return e===null&&me&&((e=l=Oe)&&(l=ev(l,t.pendingProps,Ht),l!==null?(t.stateNode=l,et=t,Oe=null,e=!0):e=!1),e||Hl(t)),null;case 13:return Xo(e,t,l);case 4:return Pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=va(t,null,a,l):lt(e,t,a,l),t.child;case 11:return Oo(e,t,t.type,t.pendingProps,l);case 7:return lt(e,t,t.pendingProps,l),t.child;case 8:return lt(e,t,t.pendingProps.children,l),t.child;case 12:return lt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Bl(t,t.type,a.value),lt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,da(t),n=tt(n),a=a(n),t.flags|=1,lt(e,t,a,l),t.child;case 14:return Uo(e,t,t.type,t.pendingProps,l);case 15:return Ho(e,t,t.type,t.pendingProps,l);case 19:return Zo(e,t,l);case 31:return Ey(e,t,l);case 22:return Bo(e,t,l,t.pendingProps);case 24:return da(t),a=tt(ke),e===null?(n=Lc(),n===null&&(n=Ce,u=Hc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},wc(t),Bl(t,ke,n)):((e.lanes&l)!==0&&(Yc(e,t),Vn(t,null,null,l),Zn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Bl(t,ke,a)):(a=u.cache,Bl(t,ke,a),a!==n.cache&&Uc(t,[ke],l,!0))),lt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function pl(e){e.flags|=4}function Ss(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(gd())e.flags|=8192;else throw ya=Pu,qc}else e.flags&=-16777217}function ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!cm(t))if(gd())e.flags|=8192;else throw ya=Pu,qc}function yi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Qe():536870912,e.lanes|=t,ln|=t)}function Wn(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function jy(e,t,l){var a=t.pendingProps;switch(Cc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ml(ke),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?pl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dc())),Ue(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(pl(t),u!==null?(Ue(t),ko(t,u)):(Ue(t),Ss(t,n,null,a,l))):u?u!==e.memoizedState?(pl(t),Ue(t),ko(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&pl(t),Ue(t),Ss(t,n,e,a,l)),null;case 27:if(Al(t),l=ie.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}e=k.current,Qa(t)?jf(t):(e=Id(n,a,l),t.stateNode=e,pl(t))}return Ue(t),null;case 5:if(Al(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return Ue(t),null}if(u=k.current,Qa(t))jf(t);else{var s=Mi(ie.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[Ze]=t,u[Ie]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(at(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&pl(t)}}return Ue(t),Ss(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&pl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=ie.current,Qa(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=et,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Xd(e.nodeValue,l)),e||Hl(t,!0)}else e=Mi(e).createTextNode(a),e[Ze]=t,t.stateNode=e}return Ue(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Qa(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[Ze]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else l=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Nt(t),t):(Nt(t),null);if((t.flags&128)!==0)throw Error(c(558))}return Ue(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Qa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[Ze]=t}else fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),n=!1}else n=Dc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Nt(t),t):(Nt(t),null)}return Nt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),yi(t,t.updateQueue),Ue(t),null);case 4:return Me(),e===null&&Qs(t.stateNode.containerInfo),Ue(t),null;case 10:return ml(t.type),Ue(t),null;case 19:if(U(Ge),a=t.memoizedState,a===null)return Ue(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Wn(a,!1);else{if(we!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=li(e),u!==null){for(t.flags|=128,Wn(a,!1),e=u.updateQueue,t.updateQueue=e,yi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)xf(l,e),l=l.sibling;return X(Ge,Ge.current&1|2),me&&ol(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>bi&&(t.flags|=128,n=!0,Wn(a,!1),t.lanes=4194304)}else{if(!n)if(e=li(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,yi(t,e),Wn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!me)return Ue(t),null}else 2*st()-a.renderingStartTime>bi&&l!==536870912&&(t.flags|=128,n=!0,Wn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,l=Ge.current,X(Ge,n?l&1|2:l&1),me&&ol(t,a.treeForkCount),e):(Ue(t),null);case 22:case 23:return Nt(t),Zc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),l=t.updateQueue,l!==null&&yi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(ma),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ml(ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function zy(e,t){switch(Cc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ml(ke),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Al(t),null;case 31:if(t.memoizedState!==null){if(Nt(t),t.alternate===null)throw Error(c(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Nt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ge),null;case 4:return Me(),null;case 10:return ml(t.type),null;case 22:case 23:return Nt(t),Zc(),e!==null&&U(ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ml(ke),null;case 25:return null;default:return null}}function Ko(e,t){switch(Cc(t),t.tag){case 3:ml(ke),Me();break;case 26:case 27:case 5:Al(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&Nt(t);break;case 13:Nt(t);break;case 19:U(Ge);break;case 10:ml(t.type);break;case 22:case 23:Nt(t),Zc(),e!==null&&U(ma);break;case 24:ml(ke)}}function Pn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(o){Ne(t,t.return,o)}}function Xl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var s=a.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,n=t;var v=l,z=o;try{z()}catch(D){Ne(n,v,D)}}}a=a.next}while(a!==u)}}catch(D){Ne(t,t.return,D)}}function Jo(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Lf(t,l)}catch(a){Ne(e,e.return,a)}}}function $o(e,t,l){l.props=ga(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function In(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function Ft(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Fo(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function Es(e,t,l){try{var a=e.stateNode;Ky(a,e.type,l,t),a[Ie]=t}catch(n){Ne(e,e.return,n)}}function Wo(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$l(e.type)||e.tag===4}function Ns(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$l(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function js(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=sl));else if(a!==4&&(a===27&&$l(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(js(e,t,l),e=e.sibling;e!==null;)js(e,t,l),e=e.sibling}function vi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&$l(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(vi(e,t,l),e=e.sibling;e!==null;)vi(e,t,l),e=e.sibling}function Po(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);at(t,a,l),t[Ze]=e,t[Ie]=l}catch(u){Ne(e,e.return,u)}}var gl=!1,$e=!1,zs=!1,Io=typeof WeakSet=="function"?WeakSet:Set,We=null;function Ty(e,t){if(e=e.containerInfo,ks=Li,e=ff(e),gc(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var s=0,o=-1,v=-1,z=0,D=0,O=e,R=null;t:for(;;){for(var C;O!==l||n!==0&&O.nodeType!==3||(o=s+n),O!==u||a!==0&&O.nodeType!==3||(v=s+a),O.nodeType===3&&(s+=O.nodeValue.length),(C=O.firstChild)!==null;)R=O,O=C;for(;;){if(O===e)break t;if(R===l&&++z===n&&(o=s),R===u&&++D===a&&(v=s),(C=O.nextSibling)!==null)break;O=R,R=O.parentNode}O=C}l=o===-1||v===-1?null:{start:o,end:v}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ks={focusedElem:e,selectionRange:l},Li=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var V=ga(l.type,n);e=a.getSnapshotBeforeUpdate(V,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ne(l,l.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Fs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Fs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function ed(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:bl(e,l),a&4&&Pn(5,l);break;case 1:if(bl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){Ne(l,l.return,s)}else{var n=ga(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ne(l,l.return,s)}}a&64&&Jo(l),a&512&&In(l,l.return);break;case 3:if(bl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Lf(e,t)}catch(s){Ne(l,l.return,s)}}break;case 27:t===null&&a&4&&Po(l);case 26:case 5:bl(e,l),t===null&&a&4&&Fo(l),a&512&&In(l,l.return);break;case 12:bl(e,l);break;case 31:bl(e,l),a&4&&ad(e,l);break;case 13:bl(e,l),a&4&&nd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Hy.bind(null,l),tv(e,l))));break;case 22:if(a=l.memoizedState!==null||gl,!a){t=t!==null&&t.memoizedState!==null||$e,n=gl;var u=$e;gl=a,($e=t)&&!u?Sl(e,l,(l.subtreeFlags&8772)!==0):bl(e,l),gl=n,$e=u}break;case 30:break;default:bl(e,l)}}function td(e){var t=e.alternate;t!==null&&(e.alternate=null,td(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ma(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,yt=!1;function xl(e,t,l){for(l=l.child;l!==null;)ld(e,t,l),l=l.sibling}function ld(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(el,l)}catch{}switch(l.tag){case 26:$e||Ft(l,t),xl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$e||Ft(l,t);var a=Be,n=yt;$l(l.type)&&(Be=l.stateNode,yt=!1),xl(e,t,l),su(l.stateNode),Be=a,yt=n;break;case 5:$e||Ft(l,t);case 6:if(a=Be,n=yt,Be=null,xl(e,t,l),Be=a,yt=n,Be!==null)if(yt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(l.stateNode)}catch(u){Ne(l,t,u)}else try{Be.removeChild(l.stateNode)}catch(u){Ne(l,t,u)}break;case 18:Be!==null&&(yt?(e=Be,Jd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),on(e)):Jd(Be,l.stateNode));break;case 4:a=Be,n=yt,Be=l.stateNode.containerInfo,yt=!0,xl(e,t,l),Be=a,yt=n;break;case 0:case 11:case 14:case 15:Xl(2,l,t),$e||Xl(4,l,t),xl(e,t,l);break;case 1:$e||(Ft(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&$o(l,t,a)),xl(e,t,l);break;case 21:xl(e,t,l);break;case 22:$e=(a=$e)||l.memoizedState!==null,xl(e,t,l),$e=a;break;default:xl(e,t,l)}}function ad(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{on(e)}catch(l){Ne(t,t.return,l)}}}function nd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{on(e)}catch(l){Ne(t,t.return,l)}}function Ay(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Io),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Io),t;default:throw Error(c(435,e.tag))}}function pi(e,t){var l=Ay(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=By.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if($l(o.type)){Be=o.stateNode,yt=!1;break e}break;case 5:Be=o.stateNode,yt=!1;break e;case 3:case 4:Be=o.stateNode.containerInfo,yt=!0;break e}o=o.return}if(Be===null)throw Error(c(160));ld(u,s,n),Be=null,yt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ud(t,e),t=t.sibling}var Qt=null;function ud(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),a&4&&(Xl(3,e,e.return),Pn(3,e),Xl(5,e,e.return));break;case 1:vt(t,e),pt(e),a&512&&($e||l===null||Ft(l,l.return)),a&64&&gl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Qt;if(vt(t,e),pt(e),a&512&&($e||l===null||Ft(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Ml]||u[Ze]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),at(u,a,l),u[Ze]=e,Ye(u),a=u;break e;case"link":var s=um("link","href",n).get(a+(l.href||""));if(s){for(var o=0;o<s.length;o++)if(u=s[o],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(o,1);break t}}u=n.createElement(a),at(u,a,l),n.head.appendChild(u);break;case"meta":if(s=um("meta","content",n).get(a+(l.content||""))){for(o=0;o<s.length;o++)if(u=s[o],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(o,1);break t}}u=n.createElement(a),at(u,a,l),n.head.appendChild(u);break;default:throw Error(c(468,a))}u[Ze]=e,Ye(u),a=u}e.stateNode=a}else im(n,e.type,e.stateNode);else e.stateNode=nm(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?im(n,e.type,e.stateNode):nm(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Es(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),pt(e),a&512&&($e||l===null||Ft(l,l.return)),l!==null&&a&4&&Es(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),pt(e),a&512&&($e||l===null||Ft(l,l.return)),e.flags&32){n=e.stateNode;try{Oa(n,"")}catch(V){Ne(e,e.return,V)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Es(e,n,l!==null?l.memoizedProps:n)),a&1024&&(zs=!0);break;case 6:if(vt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(V){Ne(e,e.return,V)}}break;case 3:if(Oi=null,n=Qt,Qt=Di(t.containerInfo),vt(t,e),Qt=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{on(t.containerInfo)}catch(V){Ne(e,e.return,V)}zs&&(zs=!1,id(e));break;case 4:a=Qt,Qt=Di(e.stateNode.containerInfo),vt(t,e),pt(e),Qt=a;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,pi(e,a)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(xi=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,pi(e,a)));break;case 22:n=e.memoizedState!==null;var v=l!==null&&l.memoizedState!==null,z=gl,D=$e;if(gl=z||n,$e=D||v,vt(t,e),$e=D,gl=z,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||v||gl||$e||xa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){v=l=t;try{if(u=v.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=v.stateNode;var O=v.memoizedProps.style,R=O!=null&&O.hasOwnProperty("display")?O.display:null;o.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(V){Ne(v,v.return,V)}}}else if(t.tag===6){if(l===null){v=t;try{v.stateNode.nodeValue=n?"":v.memoizedProps}catch(V){Ne(v,v.return,V)}}}else if(t.tag===18){if(l===null){v=t;try{var C=v.stateNode;n?$d(C,!0):$d(v.stateNode,!1)}catch(V){Ne(v,v.return,V)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,pi(e,l))));break;case 19:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,pi(e,a)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Wo(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,u=Ns(e);vi(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(Oa(s,""),l.flags&=-33);var o=Ns(e);vi(e,o,s);break;case 3:case 4:var v=l.stateNode.containerInfo,z=Ns(e);js(e,z,v);break;default:throw Error(c(161))}}catch(D){Ne(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function id(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;id(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ed(e,t.alternate,t),t=t.sibling}function xa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xl(4,t,t.return),xa(t);break;case 1:Ft(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&$o(t,t.return,l),xa(t);break;case 27:su(t.stateNode);case 26:case 5:Ft(t,t.return),xa(t);break;case 22:t.memoizedState===null&&xa(t);break;case 30:xa(t);break;default:xa(t)}e=e.sibling}}function Sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,s=u.flags;switch(u.tag){case 0:case 11:case 15:Sl(n,u,l),Pn(4,u);break;case 1:if(Sl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){Ne(a,a.return,z)}if(a=u,n=a.updateQueue,n!==null){var o=a.stateNode;try{var v=n.shared.hiddenCallbacks;if(v!==null)for(n.shared.hiddenCallbacks=null,n=0;n<v.length;n++)Bf(v[n],o)}catch(z){Ne(a,a.return,z)}}l&&s&64&&Jo(u),In(u,u.return);break;case 27:Po(u);case 26:case 5:Sl(n,u,l),l&&a===null&&s&4&&Fo(u),In(u,u.return);break;case 12:Sl(n,u,l);break;case 31:Sl(n,u,l),l&&s&4&&ad(n,u);break;case 13:Sl(n,u,l),l&&s&4&&nd(n,u);break;case 22:u.memoizedState===null&&Sl(n,u,l),In(u,u.return);break;case 30:break;default:Sl(n,u,l)}t=t.sibling}}function Ts(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&wn(l))}function As(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wn(e))}function Zt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cd(e,t,l,a),t=t.sibling}function cd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,l,a),n&2048&&Pn(9,t);break;case 1:Zt(e,t,l,a);break;case 3:Zt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&wn(e)));break;case 12:if(n&2048){Zt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,o=u.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){Ne(t,t.return,v)}}else Zt(e,t,l,a);break;case 31:Zt(e,t,l,a);break;case 13:Zt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Zt(e,t,l,a):eu(e,t):u._visibility&2?Zt(e,t,l,a):(u._visibility|=2,Ia(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ts(s,t);break;case 24:Zt(e,t,l,a),n&2048&&As(t.alternate,t);break;default:Zt(e,t,l,a)}}function Ia(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,o=l,v=a,z=s.flags;switch(s.tag){case 0:case 11:case 15:Ia(u,s,o,v,n),Pn(8,s);break;case 23:break;case 22:var D=s.stateNode;s.memoizedState!==null?D._visibility&2?Ia(u,s,o,v,n):eu(u,s):(D._visibility|=2,Ia(u,s,o,v,n)),n&&z&2048&&Ts(s.alternate,s);break;case 24:Ia(u,s,o,v,n),n&&z&2048&&As(s.alternate,s);break;default:Ia(u,s,o,v,n)}t=t.sibling}}function eu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:eu(l,a),n&2048&&Ts(a.alternate,a);break;case 24:eu(l,a),n&2048&&As(a.alternate,a);break;default:eu(l,a)}t=t.sibling}}var tu=8192;function en(e,t,l){if(e.subtreeFlags&tu)for(e=e.child;e!==null;)sd(e,t,l),e=e.sibling}function sd(e,t,l){switch(e.tag){case 26:en(e,t,l),e.flags&tu&&e.memoizedState!==null&&mv(l,Qt,e.memoizedState,e.memoizedProps);break;case 5:en(e,t,l);break;case 3:case 4:var a=Qt;Qt=Di(e.stateNode.containerInfo),en(e,t,l),Qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=tu,tu=16777216,en(e,t,l),tu=a):en(e,t,l));break;default:en(e,t,l)}}function rd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];We=a,od(a,e)}rd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)fd(e),e=e.sibling}function fd(e){switch(e.tag){case 0:case 11:case 15:lu(e),e.flags&2048&&Xl(9,e,e.return);break;case 3:lu(e);break;case 12:lu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gi(e)):lu(e);break;default:lu(e)}}function gi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];We=a,od(a,e)}rd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xl(8,t,t.return),gi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,gi(t));break;default:gi(t)}e=e.sibling}}function od(e,t){for(;We!==null;){var l=We;switch(l.tag){case 0:case 11:case 15:Xl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:wn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,We=a;else e:for(l=e;We!==null;){a=We;var n=a.sibling,u=a.return;if(td(a),a===l){We=null;break e}if(n!==null){n.return=u,We=n;break e}We=u}}}var Ry={getCacheForType:function(e){var t=tt(ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return tt(ke).controller.signal}},Cy=typeof WeakMap=="function"?WeakMap:Map,xe=0,Ce=null,se=null,oe=0,Ee=0,jt=null,Ql=!1,tn=!1,Rs=!1,El=0,we=0,Zl=0,ba=0,Cs=0,zt=0,ln=0,au=null,gt=null,Ms=!1,xi=0,dd=0,bi=1/0,Si=null,Vl=null,Fe=0,kl=null,an=null,Nl=0,Ds=0,_s=null,md=null,nu=0,Os=null;function Tt(){return(xe&2)!==0&&oe!==0?oe&-oe:M.T!==null?ws():zn()}function hd(){if(zt===0)if((oe&536870912)===0||me){var e=na;na<<=1,(na&3932160)===0&&(na=262144),zt=e}else zt=536870912;return e=Et.current,e!==null&&(e.flags|=32),zt}function xt(e,t,l){(e===Ce&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(nn(e,0),Kl(e,oe,zt,!1)),Cl(e,l),((xe&2)===0||e!==Ce)&&(e===Ce&&((xe&2)===0&&(ba|=l),we===4&&Kl(e,oe,zt,!1)),Wt(e))}function yd(e,t,l){if((xe&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ce(e,t),n=a?_y(e,t):Hs(e,t,!0),u=a;do{if(n===0){tn&&!a&&Kl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!My(l)){n=Hs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;n=au;var v=o.current.memoizedState.isDehydrated;if(v&&(nn(o,s).flags|=256),s=Hs(o,s,!1),s!==2){if(Rs&&!v){o.errorRecoveryDisabledLanes|=u,ba|=u,n=4;break e}u=gt,gt=n,u!==null&&(gt===null?gt=u:gt.push.apply(gt,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){nn(e,0),Kl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:Kl(a,t,zt,!Ql);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=xi+300-st(),10<n)){if(Kl(a,t,zt,!Ql),be(a,0,!0)!==0)break e;Nl=t,a.timeoutHandle=kd(vd.bind(null,a,l,gt,Si,Ms,t,zt,ba,ln,Ql,u,"Throttled",-0,0),n);break e}vd(a,l,gt,Si,Ms,t,zt,ba,ln,Ql,u,null,-0,0)}}break}while(!0);Wt(e)}function vd(e,t,l,a,n,u,s,o,v,z,D,O,R,C){if(e.timeoutHandle=-1,O=t.subtreeFlags,O&8192||(O&16785408)===16785408){O={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sl},sd(t,u,O);var V=(u&62914560)===u?xi-st():(u&4194048)===u?dd-st():0;if(V=hv(O,V),V!==null){Nl=u,e.cancelPendingCommit=V(jd.bind(null,e,t,u,l,a,n,s,o,v,D,O,null,R,C)),Kl(e,u,s,!z);return}}jd(e,t,u,l,a,n,s,o,v)}function My(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!bt(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Kl(e,t,l,a){t&=~Cs,t&=~ba,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ft(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&En(e,l,t)}function Ei(){return(xe&6)===0?(uu(0),!1):!0}function Us(){if(se!==null){if(Ee===0)var e=se.return;else e=se,dl=oa=null,Fc(e),Ja=null,Gn=0,e=se;for(;e!==null;)Ko(e.alternate,e),e=e.return;se=null}}function nn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Fy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Nl=0,Us(),Ce=e,se=l=fl(e.current,null),oe=t,Ee=0,jt=null,Ql=!1,tn=ce(e,t),Rs=!1,ln=zt=Cs=ba=Zl=we=0,gt=au=null,Ms=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ft(a),u=1<<n;t|=e[n],a&=~u}return El=t,Qu(),l}function pd(e,t){ne=null,M.H=$n,t===Ka||t===Wu?(t=_f(),Ee=3):t===qc?(t=_f(),Ee=4):Ee=t===ds?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,se===null&&(we=1,oi(e,_t(t,e.current)))}function gd(){var e=Et.current;return e===null?!0:(oe&4194048)===oe?Bt===null:(oe&62914560)===oe||(oe&536870912)!==0?e===Bt:!1}function xd(){var e=M.H;return M.H=$n,e===null?$n:e}function bd(){var e=M.A;return M.A=Ry,e}function Ni(){we=4,Ql||(oe&4194048)!==oe&&Et.current!==null||(tn=!0),(Zl&134217727)===0&&(ba&134217727)===0||Ce===null||Kl(Ce,oe,zt,!1)}function Hs(e,t,l){var a=xe;xe|=2;var n=xd(),u=bd();(Ce!==e||oe!==t)&&(Si=null,nn(e,t)),t=!1;var s=we;e:do try{if(Ee!==0&&se!==null){var o=se,v=jt;switch(Ee){case 8:Us(),s=6;break e;case 3:case 2:case 9:case 6:Et.current===null&&(t=!0);var z=Ee;if(Ee=0,jt=null,un(e,o,v,z),l&&tn){s=0;break e}break;default:z=Ee,Ee=0,jt=null,un(e,o,v,z)}}Dy(),s=we;break}catch(D){pd(e,D)}while(!0);return t&&e.shellSuspendCounter++,dl=oa=null,xe=a,M.H=n,M.A=u,se===null&&(Ce=null,oe=0,Qu()),s}function Dy(){for(;se!==null;)Sd(se)}function _y(e,t){var l=xe;xe|=2;var a=xd(),n=bd();Ce!==e||oe!==t?(Si=null,bi=st()+500,nn(e,t)):tn=ce(e,t);e:do try{if(Ee!==0&&se!==null){t=se;var u=jt;t:switch(Ee){case 1:Ee=0,jt=null,un(e,t,u,1);break;case 2:case 9:if(Mf(u)){Ee=0,jt=null,Ed(t);break}t=function(){Ee!==2&&Ee!==9||Ce!==e||(Ee=7),Wt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Mf(u)?(Ee=0,jt=null,Ed(t)):(Ee=0,jt=null,un(e,t,u,7));break;case 5:var s=null;switch(se.tag){case 26:s=se.memoizedState;case 5:case 27:var o=se;if(s?cm(s):o.stateNode.complete){Ee=0,jt=null;var v=o.sibling;if(v!==null)se=v;else{var z=o.return;z!==null?(se=z,ji(z)):se=null}break t}}Ee=0,jt=null,un(e,t,u,5);break;case 6:Ee=0,jt=null,un(e,t,u,6);break;case 8:Us(),we=6;break e;default:throw Error(c(462))}}Oy();break}catch(D){pd(e,D)}while(!0);return dl=oa=null,M.H=a,M.A=n,xe=l,se!==null?0:(Ce=null,oe=0,Qu(),we)}function Oy(){for(;se!==null&&!Ii();)Sd(se)}function Sd(e){var t=Vo(e.alternate,e,El);e.memoizedProps=e.pendingProps,t===null?ji(e):se=t}function Ed(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=wo(l,t,t.pendingProps,t.type,void 0,oe);break;case 11:t=wo(l,t,t.pendingProps,t.type.render,t.ref,oe);break;case 5:Fc(t);default:Ko(l,t),t=se=xf(t,El),t=Vo(l,t,El)}e.memoizedProps=e.pendingProps,t===null?ji(e):se=t}function un(e,t,l,a){dl=oa=null,Fc(t),Ja=null,Gn=0;var n=t.return;try{if(Sy(e,n,t,l,oe)){we=1,oi(e,_t(l,e.current)),se=null;return}}catch(u){if(n!==null)throw se=n,u;we=1,oi(e,_t(l,e.current)),se=null;return}t.flags&32768?(me||a===1?e=!0:tn||(oe&536870912)!==0?e=!1:(Ql=e=!0,(a===2||a===9||a===3||a===6)&&(a=Et.current,a!==null&&a.tag===13&&(a.flags|=16384))),Nd(t,e)):ji(t)}function ji(e){var t=e;do{if((t.flags&32768)!==0){Nd(t,Ql);return}e=t.return;var l=jy(t.alternate,t,El);if(l!==null){se=l;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);we===0&&(we=5)}function Nd(e,t){do{var l=zy(e.alternate,e);if(l!==null){l.flags&=32767,se=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=l}while(e!==null);we=6,se=null}function jd(e,t,l,a,n,u,s,o,v){e.cancelPendingCommit=null;do zi();while(Fe!==0);if((xe&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(u=t.lanes|t.childLanes,u|=Nc,Cu(e,l,u,s,o,v),e===Ce&&(se=Ce=null,oe=0),an=t,kl=e,Nl=l,Ds=u,_s=n,md=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Ly(Ea,function(){return Cd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null,n=Y.p,Y.p=2,s=xe,xe|=4;try{Ty(e,t,l)}finally{xe=s,Y.p=n,M.T=a}}Fe=1,zd(),Td(),Ad()}}function zd(){if(Fe===1){Fe=0;var e=kl,t=an,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var a=Y.p;Y.p=2;var n=xe;xe|=4;try{ud(t,e);var u=Ks,s=ff(e.containerInfo),o=u.focusedElem,v=u.selectionRange;if(s!==o&&o&&o.ownerDocument&&rf(o.ownerDocument.documentElement,o)){if(v!==null&&gc(o)){var z=v.start,D=v.end;if(D===void 0&&(D=z),"selectionStart"in o)o.selectionStart=z,o.selectionEnd=Math.min(D,o.value.length);else{var O=o.ownerDocument||document,R=O&&O.defaultView||window;if(R.getSelection){var C=R.getSelection(),V=o.textContent.length,te=Math.min(v.start,V),Ae=v.end===void 0?te:Math.min(v.end,V);!C.extend&&te>Ae&&(s=Ae,Ae=te,te=s);var N=sf(o,te),g=sf(o,Ae);if(N&&g&&(C.rangeCount!==1||C.anchorNode!==N.node||C.anchorOffset!==N.offset||C.focusNode!==g.node||C.focusOffset!==g.offset)){var j=O.createRange();j.setStart(N.node,N.offset),C.removeAllRanges(),te>Ae?(C.addRange(j),C.extend(g.node,g.offset)):(j.setEnd(g.node,g.offset),C.addRange(j))}}}}for(O=[],C=o;C=C.parentNode;)C.nodeType===1&&O.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<O.length;o++){var _=O[o];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}Li=!!ks,Ks=ks=null}finally{xe=n,Y.p=a,M.T=l}}e.current=t,Fe=2}}function Td(){if(Fe===2){Fe=0;var e=kl,t=an,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var a=Y.p;Y.p=2;var n=xe;xe|=4;try{ed(e,t.alternate,t)}finally{xe=n,Y.p=a,M.T=l}}Fe=3}}function Ad(){if(Fe===4||Fe===3){Fe=0,gn();var e=kl,t=an,l=Nl,a=md;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,an=kl=null,Rd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Vl=null),Ra(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(el,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=Y.p,Y.p=2,M.T=null;try{for(var u=e.onRecoverableError,s=0;s<a.length;s++){var o=a[s];u(o.value,{componentStack:o.stack})}}finally{M.T=t,Y.p=n}}(Nl&3)!==0&&zi(),Wt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Os?nu++:(nu=0,Os=e):nu=0,uu(0)}}function Rd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,wn(t)))}function zi(){return zd(),Td(),Ad(),Cd()}function Cd(){if(Fe!==5)return!1;var e=kl,t=Ds;Ds=0;var l=Ra(Nl),a=M.T,n=Y.p;try{Y.p=32>l?32:l,M.T=null,l=_s,_s=null;var u=kl,s=Nl;if(Fe=0,an=kl=null,Nl=0,(xe&6)!==0)throw Error(c(331));var o=xe;if(xe|=4,fd(u.current),cd(u,u.current,s,l),xe=o,uu(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(el,u)}catch{}return!0}finally{Y.p=n,M.T=a,Rd(e,t)}}function Md(e,t,l){t=_t(l,t),t=os(e.stateNode,t,2),e=wl(e,t,2),e!==null&&(Cl(e,2),Wt(e))}function Ne(e,t,l){if(e.tag===3)Md(e,e,l);else for(;t!==null;){if(t.tag===3){Md(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Vl===null||!Vl.has(a))){e=_t(l,e),l=Do(2),a=wl(t,l,2),a!==null&&(_o(l,a,t,e),Cl(a,2),Wt(a));break}}t=t.return}}function Bs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Cy;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Rs=!0,n.add(l),e=Uy.bind(null,e,t,l),t.then(e,e))}function Uy(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ce===e&&(oe&l)===l&&(we===4||we===3&&(oe&62914560)===oe&&300>st()-xi?(xe&2)===0&&nn(e,0):Cs|=l,ln===oe&&(ln=0)),Wt(e)}function Dd(e,t){t===0&&(t=Qe()),e=sa(e,t),e!==null&&(Cl(e,t),Wt(e))}function Hy(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Dd(e,l)}function By(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),Dd(e,l)}function Ly(e,t){return pn(e,t)}var Ti=null,cn=null,Ls=!1,Ai=!1,qs=!1,Jl=0;function Wt(e){e!==cn&&e.next===null&&(cn===null?Ti=cn=e:cn=cn.next=e),Ai=!0,Ls||(Ls=!0,wy())}function uu(e,t){if(!qs&&Ai){qs=!0;do for(var l=!1,a=Ti;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,o=a.pingedLanes;u=(1<<31-ft(42|e)+1)-1,u&=n&~(s&~o),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Hd(a,u))}else u=oe,u=be(a,a===Ce?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||ce(a,u)||(l=!0,Hd(a,u));a=a.next}while(l);qs=!1}}function qy(){_d()}function _d(){Ai=Ls=!1;var e=0;Jl!==0&&$y()&&(e=Jl);for(var t=st(),l=null,a=Ti;a!==null;){var n=a.next,u=Od(a,t);u===0?(a.next=null,l===null?Ti=n:l.next=n,n===null&&(cn=l)):(l=a,(e!==0||(u&3)!==0)&&(Ai=!0)),a=n}Fe!==0&&Fe!==5||uu(e),Jl!==0&&(Jl=0)}function Od(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-ft(u),o=1<<s,v=n[s];v===-1?((o&l)===0||(o&a)!==0)&&(n[s]=mt(o,t)):v<=t&&(e.expiredLanes|=o),u&=~o}if(t=Ce,l=oe,l=be(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&aa(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ce(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&aa(a),Ra(l)){case 2:case 8:l=bn;break;case 32:l=Ea;break;case 268435456:l=Ru;break;default:l=Ea}return a=Ud.bind(null,e),l=pn(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&aa(a),e.callbackPriority=2,e.callbackNode=null,2}function Ud(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(zi()&&e.callbackNode!==l)return null;var a=oe;return a=be(e,e===Ce?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(yd(e,a,t),Od(e,st()),e.callbackNode!=null&&e.callbackNode===l?Ud.bind(null,e):null)}function Hd(e,t){if(zi())return null;yd(e,t,!0)}function wy(){Wy(function(){(xe&6)!==0?pn(Au,qy):_d()})}function ws(){if(Jl===0){var e=Va;e===0&&(e=ja,ja<<=1,(ja&261888)===0&&(ja=256)),Jl=e}return Jl}function Bd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hu(""+e)}function Ld(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Yy(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Bd((n[Ie]||null).action),s=a.submitter;s&&(t=(t=s[Ie]||null)?Bd(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var o=new wu("action","action",null,a,n);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Jl!==0){var v=s?Ld(n,s):new FormData(n);us(l,{pending:!0,data:v,method:n.method,action:u},null,v)}}else typeof u=="function"&&(o.preventDefault(),v=s?Ld(n,s):new FormData(n),us(l,{pending:!0,data:v,method:n.method,action:u},u,v))},currentTarget:n}]})}}for(var Ys=0;Ys<Ec.length;Ys++){var Gs=Ec[Ys],Gy=Gs.toLowerCase(),Xy=Gs[0].toUpperCase()+Gs.slice(1);Xt(Gy,"on"+Xy)}Xt(mf,"onAnimationEnd"),Xt(hf,"onAnimationIteration"),Xt(yf,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(ny,"onTransitionRun"),Xt(uy,"onTransitionStart"),Xt(iy,"onTransitionCancel"),Xt(vf,"onTransitionEnd"),Da("onMouseEnter",["mouseout","mouseover"]),Da("onMouseLeave",["mouseout","mouseover"]),Da("onPointerEnter",["pointerout","pointerover"]),Da("onPointerLeave",["pointerout","pointerover"]),il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),il("onBeforeInput",["compositionend","keypress","textInput","paste"]),il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var iu="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(" "),Qy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(iu));function qd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var s=a.length-1;0<=s;s--){var o=a[s],v=o.instance,z=o.currentTarget;if(o=o.listener,v!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=z;try{u(n)}catch(D){Xu(D)}n.currentTarget=null,u=v}else for(s=0;s<a.length;s++){if(o=a[s],v=o.instance,z=o.currentTarget,o=o.listener,v!==u&&n.isPropagationStopped())break e;u=o,n.currentTarget=z;try{u(n)}catch(D){Xu(D)}n.currentTarget=null,u=v}}}}function re(e,t){var l=t[Ca];l===void 0&&(l=t[Ca]=new Set);var a=e+"__bubble";l.has(a)||(wd(t,e,2,!1),l.add(a))}function Xs(e,t,l){var a=0;t&&(a|=4),wd(l,e,a,t)}var Ri="_reactListening"+Math.random().toString(36).slice(2);function Qs(e){if(!e[Ri]){e[Ri]=!0,q.forEach(function(l){l!=="selectionchange"&&(Qy.has(l)||Xs(l,!1,e),Xs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ri]||(t[Ri]=!0,Xs("selectionchange",!1,t))}}function wd(e,t,l,a){switch(hm(t)){case 2:var n=pv;break;case 8:n=gv;break;default:n=nr}l=n.bind(null,t,l,e),n=void 0,!rc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Zs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var o=a.stateNode.containerInfo;if(o===n)break;if(s===4)for(s=a.return;s!==null;){var v=s.tag;if((v===3||v===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;o!==null;){if(s=al(o),s===null)return;if(v=s.tag,v===5||v===6||v===26||v===27){a=u=s;continue e}o=o.parentNode}}a=a.return}Xr(function(){var z=u,D=cc(l),O=[];e:{var R=pf.get(e);if(R!==void 0){var C=wu,V=e;switch(e){case"keypress":if(Lu(l)===0)break e;case"keydown":case"keyup":C=Bh;break;case"focusin":V="focus",C=mc;break;case"focusout":V="blur",C=mc;break;case"beforeblur":case"afterblur":C=mc;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=jh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=wh;break;case mf:case hf:case yf:C=Ah;break;case vf:C=Gh;break;case"scroll":case"scrollend":C=Eh;break;case"wheel":C=Qh;break;case"copy":case"cut":case"paste":C=Ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=Kr;break;case"toggle":case"beforetoggle":C=Vh}var te=(t&4)!==0,Ae=!te&&(e==="scroll"||e==="scrollend"),N=te?R!==null?R+"Capture":null:R;te=[];for(var g=z,j;g!==null;){var _=g;if(j=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||j===null||N===null||(_=Rn(g,N),_!=null&&te.push(cu(g,_,j))),Ae)break;g=g.return}0<te.length&&(R=new C(R,V,null,l,D),O.push({event:R,listeners:te}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",C=e==="mouseout"||e==="pointerout",R&&l!==ic&&(V=l.relatedTarget||l.fromElement)&&(al(V)||V[ll]))break e;if((C||R)&&(R=D.window===D?D:(R=D.ownerDocument)?R.defaultView||R.parentWindow:window,C?(V=l.relatedTarget||l.toElement,C=z,V=V?al(V):null,V!==null&&(Ae=h(V),te=V.tag,V!==Ae||te!==5&&te!==27&&te!==6)&&(V=null)):(C=null,V=z),C!==V)){if(te=Vr,_="onMouseLeave",N="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(te=Kr,_="onPointerLeave",N="onPointerEnter",g="pointer"),Ae=C==null?R:Dl(C),j=V==null?R:Dl(V),R=new te(_,g+"leave",C,l,D),R.target=Ae,R.relatedTarget=j,_=null,al(D)===z&&(te=new te(N,g+"enter",V,l,D),te.target=j,te.relatedTarget=Ae,_=te),Ae=_,C&&V)t:{for(te=Zy,N=C,g=V,j=0,_=N;_;_=te(_))j++;_=0;for(var W=g;W;W=te(W))_++;for(;0<j-_;)N=te(N),j--;for(;0<_-j;)g=te(g),_--;for(;j--;){if(N===g||g!==null&&N===g.alternate){te=N;break t}N=te(N),g=te(g)}te=null}else te=null;C!==null&&Yd(O,R,C,te,!1),V!==null&&Ae!==null&&Yd(O,Ae,V,te,!0)}}e:{if(R=z?Dl(z):window,C=R.nodeName&&R.nodeName.toLowerCase(),C==="select"||C==="input"&&R.type==="file")var ve=tf;else if(Ir(R))if(lf)ve=ty;else{ve=Ih;var K=Ph}else C=R.nodeName,!C||C.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?z&&uc(z.elementType)&&(ve=tf):ve=ey;if(ve&&(ve=ve(e,z))){ef(O,ve,l,D);break e}K&&K(e,R,z),e==="focusout"&&z&&R.type==="number"&&z.memoizedProps.value!=null&&nc(R,"number",R.value)}switch(K=z?Dl(z):window,e){case"focusin":(Ir(K)||K.contentEditable==="true")&&(La=K,xc=z,Bn=null);break;case"focusout":Bn=xc=La=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,of(O,l,D);break;case"selectionchange":if(ay)break;case"keydown":case"keyup":of(O,l,D)}var ue;if(yc)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Ba?Wr(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(Jr&&l.locale!=="ko"&&(Ba||de!=="onCompositionStart"?de==="onCompositionEnd"&&Ba&&(ue=Qr()):(_l=D,fc="value"in _l?_l.value:_l.textContent,Ba=!0)),K=Ci(z,de),0<K.length&&(de=new kr(de,e,null,l,D),O.push({event:de,listeners:K}),ue?de.data=ue:(ue=Pr(l),ue!==null&&(de.data=ue)))),(ue=Kh?Jh(e,l):$h(e,l))&&(de=Ci(z,"onBeforeInput"),0<de.length&&(K=new kr("onBeforeInput","beforeinput",null,l,D),O.push({event:K,listeners:de}),K.data=ue)),Yy(O,e,z,l,D)}qd(O,t)})}function cu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Ci(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Rn(e,l),n!=null&&a.unshift(cu(e,n,u)),n=Rn(e,t),n!=null&&a.push(cu(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Zy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yd(e,t,l,a,n){for(var u=t._reactName,s=[];l!==null&&l!==a;){var o=l,v=o.alternate,z=o.stateNode;if(o=o.tag,v!==null&&v===a)break;o!==5&&o!==26&&o!==27||z===null||(v=z,n?(z=Rn(l,u),z!=null&&s.unshift(cu(l,z,v))):n||(z=Rn(l,u),z!=null&&s.push(cu(l,z,v)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Vy=/\r\n?/g,ky=/\u0000|\uFFFD/g;function Gd(e){return(typeof e=="string"?e:""+e).replace(Vy,`
|
|
49
|
+
`).replace(ky,"")}function Xd(e,t){return t=Gd(t),Gd(e)===t}function Te(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Oa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Oa(e,""+a);break;case"className":Ou(e,"class",a);break;case"tabIndex":Ou(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ou(e,l,a);break;case"style":Yr(e,a,u);break;case"data":if(t!=="object"){Ou(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Hu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&Te(e,t,"name",n.name,n,null),Te(e,t,"formEncType",n.formEncType,n,null),Te(e,t,"formMethod",n.formMethod,n,null),Te(e,t,"formTarget",n.formTarget,n,null)):(Te(e,t,"encType",n.encType,n,null),Te(e,t,"method",n.method,n,null),Te(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Hu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=sl);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=Hu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":re("beforetoggle",e),re("toggle",e),_u(e,"popover",a);break;case"xlinkActuate":cl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":cl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":cl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":cl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":cl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":cl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":cl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":cl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":cl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":_u(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=bh.get(l)||l,_u(e,l,a))}}function Vs(e,t,l,a,n,u){switch(l){case"style":Yr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Oa(e,a):(typeof a=="number"||typeof a=="bigint")&&Oa(e,""+a);break;case"onScroll":a!=null&&re("scroll",e);break;case"onScrollEnd":a!=null&&re("scrollend",e);break;case"onClick":a!=null&&(e.onclick=sl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ve.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Ie]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):_u(e,l,a)}}}function at(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Te(e,t,u,s,l,null)}}n&&Te(e,t,"srcSet",l.srcSet,l,null),a&&Te(e,t,"src",l.src,l,null);return;case"input":re("invalid",e);var o=u=s=n=null,v=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var D=l[a];if(D!=null)switch(a){case"name":n=D;break;case"type":s=D;break;case"checked":v=D;break;case"defaultChecked":z=D;break;case"value":u=D;break;case"defaultValue":o=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:Te(e,t,a,D,l,null)}}Br(e,u,o,v,z,s,n,!1);return;case"select":re("invalid",e),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(o=l[n],o!=null))switch(n){case"value":u=o;break;case"defaultValue":s=o;break;case"multiple":a=o;default:Te(e,t,n,o,l,null)}t=u,l=s,e.multiple=!!a,t!=null?_a(e,!!a,t,!1):l!=null&&_a(e,!!a,l,!0);return;case"textarea":re("invalid",e),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(o=l[s],o!=null))switch(s){case"value":a=o;break;case"defaultValue":n=o;break;case"children":u=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(c(91));break;default:Te(e,t,s,o,l,null)}qr(e,a,n,u);return;case"option":for(v in l)if(l.hasOwnProperty(v)&&(a=l[v],a!=null))switch(v){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Te(e,t,v,a,l,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(a=0;a<iu.length;a++)re(iu[a],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in l)if(l.hasOwnProperty(z)&&(a=l[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Te(e,t,z,a,l,null)}return;default:if(uc(t)){for(D in l)l.hasOwnProperty(D)&&(a=l[D],a!==void 0&&Vs(e,t,D,a,l,void 0));return}}for(o in l)l.hasOwnProperty(o)&&(a=l[o],a!=null&&Te(e,t,o,a,l,null))}function Ky(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,o=null,v=null,z=null,D=null;for(C in l){var O=l[C];if(l.hasOwnProperty(C)&&O!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":v=O;default:a.hasOwnProperty(C)||Te(e,t,C,null,a,O)}}for(var R in a){var C=a[R];if(O=l[R],a.hasOwnProperty(R)&&(C!=null||O!=null))switch(R){case"type":u=C;break;case"name":n=C;break;case"checked":z=C;break;case"defaultChecked":D=C;break;case"value":s=C;break;case"defaultValue":o=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,t));break;default:C!==O&&Te(e,t,R,C,a,O)}}ac(e,s,o,v,z,D,u,n);return;case"select":C=s=o=R=null;for(u in l)if(v=l[u],l.hasOwnProperty(u)&&v!=null)switch(u){case"value":break;case"multiple":C=v;default:a.hasOwnProperty(u)||Te(e,t,u,null,a,v)}for(n in a)if(u=a[n],v=l[n],a.hasOwnProperty(n)&&(u!=null||v!=null))switch(n){case"value":R=u;break;case"defaultValue":o=u;break;case"multiple":s=u;default:u!==v&&Te(e,t,n,u,a,v)}t=o,l=s,a=C,R!=null?_a(e,!!l,R,!1):!!a!=!!l&&(t!=null?_a(e,!!l,t,!0):_a(e,!!l,l?[]:"",!1));return;case"textarea":C=R=null;for(o in l)if(n=l[o],l.hasOwnProperty(o)&&n!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Te(e,t,o,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":R=n;break;case"defaultValue":C=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==u&&Te(e,t,s,n,a,u)}Lr(e,R,C);return;case"option":for(var V in l)if(R=l[V],l.hasOwnProperty(V)&&R!=null&&!a.hasOwnProperty(V))switch(V){case"selected":e.selected=!1;break;default:Te(e,t,V,null,a,R)}for(v in a)if(R=a[v],C=l[v],a.hasOwnProperty(v)&&R!==C&&(R!=null||C!=null))switch(v){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:Te(e,t,v,R,a,C)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in l)R=l[te],l.hasOwnProperty(te)&&R!=null&&!a.hasOwnProperty(te)&&Te(e,t,te,null,a,R);for(z in a)if(R=a[z],C=l[z],a.hasOwnProperty(z)&&R!==C&&(R!=null||C!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,t));break;default:Te(e,t,z,R,a,C)}return;default:if(uc(t)){for(var Ae in l)R=l[Ae],l.hasOwnProperty(Ae)&&R!==void 0&&!a.hasOwnProperty(Ae)&&Vs(e,t,Ae,void 0,a,R);for(D in a)R=a[D],C=l[D],!a.hasOwnProperty(D)||R===C||R===void 0&&C===void 0||Vs(e,t,D,R,a,C);return}}for(var N in l)R=l[N],l.hasOwnProperty(N)&&R!=null&&!a.hasOwnProperty(N)&&Te(e,t,N,null,a,R);for(O in a)R=a[O],C=l[O],!a.hasOwnProperty(O)||R===C||R==null&&C==null||Te(e,t,O,R,a,C)}function Qd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,o=n.duration;if(u&&o&&Qd(s)){for(s=0,o=n.responseEnd,a+=1;a<l.length;a++){var v=l[a],z=v.startTime;if(z>o)break;var D=v.transferSize,O=v.initiatorType;D&&Qd(O)&&(v=v.responseEnd,s+=D*(v<o?1:(o-z)/(v-z)))}if(--a,t+=8*(u+s)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ks=null,Ks=null;function Mi(e){return e.nodeType===9?e:e.ownerDocument}function Zd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Js(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $s=null;function $y(){var e=window.event;return e&&e.type==="popstate"?e===$s?!1:($s=e,!0):($s=null,!1)}var kd=typeof setTimeout=="function"?setTimeout:void 0,Fy=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,Wy=typeof queueMicrotask=="function"?queueMicrotask:typeof Kd<"u"?function(e){return Kd.resolve(null).then(e).catch(Py)}:kd;function Py(e){setTimeout(function(){throw e})}function $l(e){return e==="head"}function Jd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),on(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")su(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,su(l);for(var u=l.firstChild;u;){var s=u.nextSibling,o=u.nodeName;u[Ml]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&su(e.ownerDocument.body);l=n}while(l);on(t)}function $d(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Fs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Fs(l),Ma(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Iy(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ml])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function ev(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Lt(e.nextSibling),e===null))return null;return e}function Fd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function Ws(e){return e.data==="$?"||e.data==="$~"}function Ps(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function tv(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function 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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Is=null;function Wd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Lt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Id(e,t,l){switch(t=Mi(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function su(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ma(e)}var qt=new Map,em=new Set;function Di(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jl=Y.d;Y.d={f:lv,r:av,D:nv,C:uv,L:iv,m:cv,X:rv,S:sv,M:fv};function lv(){var e=jl.f(),t=Ei();return e||t}function av(e){var t=nl(e);t!==null&&t.tag===5&&t.type==="form"?po(t):jl.r(e)}var sn=typeof document>"u"?null:document;function tm(e,t,l){var a=sn;if(a&&typeof t=="string"&&t){var n=Mt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),em.has(n)||(em.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),at(t,"link",e),Ye(t),a.head.appendChild(t)))}}function nv(e){jl.D(e),tm("dns-prefetch",e,null)}function uv(e,t){jl.C(e,t),tm("preconnect",e,t)}function iv(e,t,l){jl.L(e,t,l);var a=sn;if(a&&e&&t){var n='link[rel="preload"][as="'+Mt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Mt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Mt(l.imageSizes)+'"]')):n+='[href="'+Mt(e)+'"]';var u=n;switch(t){case"style":u=rn(e);break;case"script":u=fn(e)}qt.has(u)||(e=E({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),qt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(ru(u))||t==="script"&&a.querySelector(fu(u))||(t=a.createElement("link"),at(t,"link",e),Ye(t),a.head.appendChild(t)))}}function cv(e,t){jl.m(e,t);var l=sn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Mt(a)+'"][href="'+Mt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=fn(e)}if(!qt.has(u)&&(e=E({rel:"modulepreload",href:e},t),qt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(fu(u)))return}a=l.createElement("link"),at(a,"link",e),Ye(a),l.head.appendChild(a)}}}function sv(e,t,l){jl.S(e,t,l);var a=sn;if(a&&e){var n=ul(a).hoistableStyles,u=rn(e);t=t||"default";var s=n.get(u);if(!s){var o={loading:0,preload:null};if(s=a.querySelector(ru(u)))o.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},l),(l=qt.get(u))&&er(e,l);var v=s=a.createElement("link");Ye(v),at(v,"link",e),v._p=new Promise(function(z,D){v.onload=z,v.onerror=D}),v.addEventListener("load",function(){o.loading|=1}),v.addEventListener("error",function(){o.loading|=2}),o.loading|=4,_i(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:o},n.set(u,s)}}}function rv(e,t){jl.X(e,t);var l=sn;if(l&&e){var a=ul(l).hoistableScripts,n=fn(e),u=a.get(n);u||(u=l.querySelector(fu(n)),u||(e=E({src:e,async:!0},t),(t=qt.get(n))&&tr(e,t),u=l.createElement("script"),Ye(u),at(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function fv(e,t){jl.M(e,t);var l=sn;if(l&&e){var a=ul(l).hoistableScripts,n=fn(e),u=a.get(n);u||(u=l.querySelector(fu(n)),u||(e=E({src:e,async:!0,type:"module"},t),(t=qt.get(n))&&tr(e,t),u=l.createElement("script"),Ye(u),at(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function lm(e,t,l,a){var n=(n=ie.current)?Di(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=rn(l.href),l=ul(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=rn(l.href);var u=ul(n).hoistableStyles,s=u.get(e);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=n.querySelector(ru(e)))&&!u._p&&(s.instance=u,s.state.loading=5),qt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},qt.set(e,l),u||ov(n,e,l,s.state))),t&&a===null)throw Error(c(528,""));return s}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fn(l),l=ul(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function rn(e){return'href="'+Mt(e)+'"'}function ru(e){return'link[rel="stylesheet"]['+e+"]"}function am(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function ov(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),at(t,"link",l),Ye(t),e.head.appendChild(t))}function fn(e){return'[src="'+Mt(e)+'"]'}function fu(e){return"script[async]"+e}function nm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Mt(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=E({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),at(a,"style",n),_i(a,l.precedence,e),t.instance=a;case"stylesheet":n=rn(l.href);var u=e.querySelector(ru(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=am(l),(n=qt.get(n))&&er(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var s=u;return s._p=new Promise(function(o,v){s.onload=o,s.onerror=v}),at(u,"link",a),t.state.loading|=4,_i(u,l.precedence,e),t.instance=u;case"script":return u=fn(l.src),(n=e.querySelector(fu(u)))?(t.instance=n,Ye(n),n):(a=l,(n=qt.get(u))&&(a=E({},l),tr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),at(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,_i(a,l.precedence,e));return t.instance}function _i(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var o=a[s];if(o.dataset.precedence===t)u=o;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function er(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function tr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Oi=null;function um(e,t,l){if(Oi===null){var a=new Map,n=Oi=new Map;n.set(l,a)}else n=Oi,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ml]||u[Ze]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var o=a.get(s);o?o.push(u):a.set(s,[u])}}return a}function im(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function dv(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function cm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mv(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=rn(a.href),u=t.querySelector(ru(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ui.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=am(a),(n=qt.get(n))&&er(a,n),u=u.createElement("link"),Ye(u);var s=u;s._p=new Promise(function(o,v){s.onload=o,s.onerror=v}),at(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ui.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var lr=0;function hv(e,t){return e.stylesheets&&e.count===0&&Bi(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Bi(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&lr===0&&(lr=62500*Jy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bi(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>lr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bi(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hi=null;function Bi(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hi=new Map,t.forEach(yv,e),Hi=null,Ui.call(e))}function yv(e,t){if(!(t.state.loading&4)){var l=Hi.get(e);if(l)var a=l.get(null);else{l=new Map,Hi.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=t.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=Ui.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ou={$$typeof:L,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function vv(e,t,l,a,n,u,s,o,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ta(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.hiddenUpdates=Ta(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function sm(e,t,l,a,n,u,s,o,v,z,D,O){return e=new vv(e,t,l,s,v,z,D,O,o),t=1,u===!0&&(t|=24),u=St(3,null,null,t),e.current=u,u.stateNode=e,t=Hc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},wc(u),e}function rm(e){return e?(e=Ya,e):Ya}function fm(e,t,l,a,n,u){n=rm(n),a.context===null?a.context=n:a.pendingContext=n,a=ql(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=wl(e,a,t),l!==null&&(xt(l,e,t),Qn(l,e,t))}function om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ar(e,t){om(e,t),(e=e.alternate)&&om(e,t)}function dm(e){if(e.tag===13||e.tag===31){var t=sa(e,67108864);t!==null&&xt(t,e,67108864),ar(e,67108864)}}function mm(e){if(e.tag===13||e.tag===31){var t=Tt();t=Aa(t);var l=sa(e,t);l!==null&&xt(l,e,t),ar(e,t)}}var Li=!0;function pv(e,t,l,a){var n=M.T;M.T=null;var u=Y.p;try{Y.p=2,nr(e,t,l,a)}finally{Y.p=u,M.T=n}}function gv(e,t,l,a){var n=M.T;M.T=null;var u=Y.p;try{Y.p=8,nr(e,t,l,a)}finally{Y.p=u,M.T=n}}function nr(e,t,l,a){if(Li){var n=ur(a);if(n===null)Zs(e,t,a,qi,l),ym(e,a);else if(bv(n,e,t,l,a))a.stopPropagation();else if(ym(e,a),t&4&&-1<xv.indexOf(e)){for(;n!==null;){var u=nl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=tl(u.pendingLanes);if(s!==0){var o=u;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var v=1<<31-ft(s);o.entanglements[1]|=v,s&=~v}Wt(u),(xe&6)===0&&(bi=st()+500,uu(0))}}break;case 31:case 13:o=sa(u,2),o!==null&&xt(o,u,2),Ei(),ar(u,2)}if(u=ur(a),u===null&&Zs(e,t,a,qi,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Zs(e,t,a,null,l)}}function ur(e){return e=cc(e),ir(e)}var qi=null;function ir(e){if(qi=null,e=al(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=S(t),e!==null)return e;e=null}else if(l===31){if(e=A(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return qi=e,null}function hm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xn()){case Au:return 2;case bn:return 8;case Ea:case At:return 32;case Ru:return 268435456;default:return 32}default:return 32}}var cr=!1,Fl=null,Wl=null,Pl=null,du=new Map,mu=new Map,Il=[],xv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ym(e,t){switch(e){case"focusin":case"focusout":Fl=null;break;case"dragenter":case"dragleave":Wl=null;break;case"mouseover":case"mouseout":Pl=null;break;case"pointerover":case"pointerout":du.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mu.delete(t.pointerId)}}function hu(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=nl(t),t!==null&&dm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function bv(e,t,l,a,n){switch(t){case"focusin":return Fl=hu(Fl,e,t,l,a,n),!0;case"dragenter":return Wl=hu(Wl,e,t,l,a,n),!0;case"mouseover":return Pl=hu(Pl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return du.set(u,hu(du.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,mu.set(u,hu(mu.get(u)||null,e,t,l,a,n)),!0}return!1}function vm(e){var t=al(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=S(l),t!==null){e.blockedOn=t,Tn(e.priority,function(){mm(l)});return}}else if(t===31){if(t=A(l),t!==null){e.blockedOn=t,Tn(e.priority,function(){mm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=ur(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);ic=a,l.target.dispatchEvent(a),ic=null}else return t=nl(l),t!==null&&dm(t),e.blockedOn=l,!1;t.shift()}return!0}function pm(e,t,l){wi(e)&&l.delete(t)}function Sv(){cr=!1,Fl!==null&&wi(Fl)&&(Fl=null),Wl!==null&&wi(Wl)&&(Wl=null),Pl!==null&&wi(Pl)&&(Pl=null),du.forEach(pm),mu.forEach(pm)}function Yi(e,t){e.blockedOn===t&&(e.blockedOn=null,cr||(cr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sv)))}var Gi=null;function gm(e){Gi!==e&&(Gi=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Gi===e&&(Gi=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(ir(a||l)===null)continue;break}var u=nl(l);u!==null&&(e.splice(t,3),t-=3,us(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function on(e){function t(v){return Yi(v,e)}Fl!==null&&Yi(Fl,e),Wl!==null&&Yi(Wl,e),Pl!==null&&Yi(Pl,e),du.forEach(t),mu.forEach(t);for(var l=0;l<Il.length;l++){var a=Il[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Il.length&&(l=Il[0],l.blockedOn===null);)vm(l),l.blockedOn===null&&Il.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[Ie]||null;if(typeof u=="function")s||gm(l);else if(s){var o=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[Ie]||null)o=s.formAction;else if(ir(n)!==null)continue}else o=s.action;typeof o=="function"?l[a+1]=o:(l.splice(a,3),a-=3),gm(l)}}}function xm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function sr(e){this._internalRoot=e}Xi.prototype.render=sr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=Tt();fm(l,a,e,t,null,null)},Xi.prototype.unmount=sr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fm(e.current,2,null,e,null,null),Ei(),t[ll]=null}};function Xi(e){this._internalRoot=e}Xi.prototype.unstable_scheduleHydration=function(e){if(e){var t=zn();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Il.length&&t!==0&&t<Il[l].priority;l++);Il.splice(l,0,e),l===0&&vm(e)}};var bm=f.version;if(bm!=="19.2.6")throw Error(c(527,bm,"19.2.6"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=y(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var Ev={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Qi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qi.isDisabled&&Qi.supportsFiber)try{el=Qi.inject(Ev),rt=Qi}catch{}}return vu.createRoot=function(e,t){if(!m(e))throw Error(c(299));var l=!1,a="",n=Ao,u=Ro,s=Co;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=sm(e,1,!1,null,null,l,a,null,n,u,s,xm),e[ll]=t.current,Qs(e),new sr(t)},vu.hydrateRoot=function(e,t,l){if(!m(e))throw Error(c(299));var a=!1,n="",u=Ao,s=Ro,o=Co,v=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(o=l.onRecoverableError),l.formState!==void 0&&(v=l.formState)),t=sm(e,1,!0,t,l??null,a,n,v,u,s,o,xm),t.context=rm(null),l=t.current,a=Tt(),a=Aa(a),n=ql(a),n.callback=null,wl(l,n,a),l=a,t.current.lanes=l,Cl(t,l),Wt(t),e[ll]=t.current,Qs(e),new Xi(t)},vu.version="19.2.6",vu}var Mm;function Ov(){if(Mm)return or.exports;Mm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(f){console.error(f)}}return i(),or.exports=_v(),or.exports}var Uv=Ov();const Hv=Xm(Uv);/**
|
|
50
|
+
* react-router v7.15.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Dm="popstate";function _m(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Bv(i={}){function f(c,m){var y;let h=(y=m.state)==null?void 0:y.masked,{pathname:S,search:A,hash:b}=h||c.location;return gr("",{pathname:S,search:A,hash:b},m.state&&m.state.usr||null,m.state&&m.state.key||"default",h?{pathname:c.location.pathname,search:c.location.search,hash:c.location.hash}:void 0)}function d(c,m){return typeof m=="string"?m:xu(m)}return qv(f,d,null,i)}function Le(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function kt(i,f){if(!i){typeof console<"u"&&console.warn(f);try{throw new Error(f)}catch{}}}function Lv(){return Math.random().toString(36).substring(2,10)}function Om(i,f){return{usr:i.state,key:i.key,idx:f,masked:i.mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function gr(i,f,d=null,c,m){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof f=="string"?dn(f):f,state:d,key:f&&f.key||c||Lv(),mask:m}}function xu({pathname:i="/",search:f="",hash:d=""}){return f&&f!=="?"&&(i+=f.charAt(0)==="?"?f:"?"+f),d&&d!=="#"&&(i+=d.charAt(0)==="#"?d:"#"+d),i}function dn(i){let f={};if(i){let d=i.indexOf("#");d>=0&&(f.hash=i.substring(d),i=i.substring(0,d));let c=i.indexOf("?");c>=0&&(f.search=i.substring(c),i=i.substring(0,c)),i&&(f.pathname=i)}return f}function qv(i,f,d,c={}){let{window:m=document.defaultView,v5Compat:h=!1}=c,S=m.history,A="POP",b=null,y=T();y==null&&(y=0,S.replaceState({...S.state,idx:y},""));function T(){return(S.state||{idx:null}).idx}function E(){A="POP";let B=T(),w=B==null?null:B-y;y=B,b&&b({action:A,location:G.location,delta:w})}function H(B,w){A="PUSH";let $=_m(B)?B:gr(G.location,B,w);y=T()+1;let L=Om($,y),J=G.createHref($.mask||$);try{S.pushState(L,"",J)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;m.location.assign(J)}h&&b&&b({action:A,location:G.location,delta:1})}function Q(B,w){A="REPLACE";let $=_m(B)?B:gr(G.location,B,w);y=T();let L=Om($,y),J=G.createHref($.mask||$);S.replaceState(L,"",J),h&&b&&b({action:A,location:G.location,delta:0})}function Z(B){return wv(B)}let G={get action(){return A},get location(){return i(m,S)},listen(B){if(b)throw new Error("A history only accepts one active listener");return m.addEventListener(Dm,E),b=B,()=>{m.removeEventListener(Dm,E),b=null}},createHref(B){return f(m,B)},createURL:Z,encodeLocation(B){let w=Z(B);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:H,replace:Q,go(B){return S.go(B)}};return G}function wv(i,f=!1){let d="http://localhost";typeof window<"u"&&(d=window.location.origin!=="null"?window.location.origin:window.location.href),Le(d,"No window.location.(origin|href) available to create URL");let c=typeof i=="string"?i:xu(i);return c=c.replace(/ $/,"%20"),!f&&c.startsWith("//")&&(c=d+c),new URL(c,d)}function Qm(i,f,d="/"){return Yv(i,f,d,!1)}function Yv(i,f,d,c,m){let h=typeof f=="string"?dn(f):f,S=Tl(h.pathname||"/",d);if(S==null)return null;let A=Gv(i),b=null,y=Iv(S);for(let T=0;b==null&&T<A.length;++T)b=Wv(A[T],y,c);return b}function Gv(i){let f=Zm(i);return Xv(f),f}function Zm(i,f=[],d=[],c="",m=!1){let h=(S,A,b=m,y)=>{let T={relativePath:y===void 0?S.path||"":y,caseSensitive:S.caseSensitive===!0,childrenIndex:A,route:S};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(c)&&b)return;Le(T.relativePath.startsWith(c),`Absolute route path "${T.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(c.length)}let E=Vt([c,T.relativePath]),H=d.concat(T);S.children&&S.children.length>0&&(Le(S.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),Zm(S.children,f,H,E,b)),!(S.path==null&&!S.index)&&f.push({path:E,score:$v(E,S.index),routesMeta:H})};return i.forEach((S,A)=>{var b;if(S.path===""||!((b=S.path)!=null&&b.includes("?")))h(S,A);else for(let y of Vm(S.path))h(S,A,!0,y)}),f}function Vm(i){let f=i.split("/");if(f.length===0)return[];let[d,...c]=f,m=d.endsWith("?"),h=d.replace(/\?$/,"");if(c.length===0)return m?[h,""]:[h];let S=Vm(c.join("/")),A=[];return A.push(...S.map(b=>b===""?h:[h,b].join("/"))),m&&A.push(...S),A.map(b=>i.startsWith("/")&&b===""?"/":b)}function Xv(i){i.sort((f,d)=>f.score!==d.score?d.score-f.score:Fv(f.routesMeta.map(c=>c.childrenIndex),d.routesMeta.map(c=>c.childrenIndex)))}var Qv=/^:[\w-]+$/,Zv=3,Vv=2,kv=1,Kv=10,Jv=-2,Um=i=>i==="*";function $v(i,f){let d=i.split("/"),c=d.length;return d.some(Um)&&(c+=Jv),f&&(c+=Vv),d.filter(m=>!Um(m)).reduce((m,h)=>m+(Qv.test(h)?Zv:h===""?kv:Kv),c)}function Fv(i,f){return i.length===f.length&&i.slice(0,-1).every((c,m)=>c===f[m])?i[i.length-1]-f[f.length-1]:0}function Wv(i,f,d=!1){let{routesMeta:c}=i,m={},h="/",S=[];for(let A=0;A<c.length;++A){let b=c[A],y=A===c.length-1,T=h==="/"?f:f.slice(h.length)||"/",E=Ki({path:b.relativePath,caseSensitive:b.caseSensitive,end:y},T),H=b.route;if(!E&&y&&d&&!c[c.length-1].route.index&&(E=Ki({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},T)),!E)return null;Object.assign(m,E.params),S.push({params:m,pathname:Vt([h,E.pathname]),pathnameBase:ap(Vt([h,E.pathnameBase])),route:H}),E.pathnameBase!=="/"&&(h=Vt([h,E.pathnameBase]))}return S}function Ki(i,f){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[d,c]=Pv(i.path,i.caseSensitive,i.end),m=f.match(d);if(!m)return null;let h=m[0],S=h.replace(/(.)\/+$/,"$1"),A=m.slice(1);return{params:c.reduce((y,{paramName:T,isOptional:E},H)=>{if(T==="*"){let Z=A[H]||"";S=h.slice(0,h.length-Z.length).replace(/(.)\/+$/,"$1")}const Q=A[H];return E&&!Q?y[T]=void 0:y[T]=(Q||"").replace(/%2F/g,"/"),y},{}),pathname:h,pathnameBase:S,pattern:i}}function Pv(i,f=!1,d=!0){kt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let c=[],m="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(S,A,b,y,T)=>{if(c.push({paramName:A,isOptional:b!=null}),b){let E=T.charAt(y+S.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(c.push({paramName:"*"}),m+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):d?m+="\\/*$":i!==""&&i!=="/"&&(m+="(?:(?=\\/|$))"),[new RegExp(m,f?void 0:"i"),c]}function Iv(i){try{return i.split("/").map(f=>decodeURIComponent(f).replace(/\//g,"%2F")).join("/")}catch(f){return kt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${f}).`),i}}function Tl(i,f){if(f==="/")return i;if(!i.toLowerCase().startsWith(f.toLowerCase()))return null;let d=f.endsWith("/")?f.length-1:f.length,c=i.charAt(d);return c&&c!=="/"?null:i.slice(d)||"/"}var ep=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function tp(i,f="/"){let{pathname:d,search:c="",hash:m=""}=typeof i=="string"?dn(i):i,h;return d?(d=Km(d),d.startsWith("/")?h=Hm(d.substring(1),"/"):h=Hm(d,f)):h=f,{pathname:h,search:np(c),hash:up(m)}}function Hm(i,f){let d=Ji(f).split("/");return i.split("/").forEach(m=>{m===".."?d.length>1&&d.pop():m!=="."&&d.push(m)}),d.length>1?d.join("/"):"/"}function yr(i,f,d,c){return`Cannot include a '${i}' character in a manually specified \`to.${f}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${d}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lp(i){return i.filter((f,d)=>d===0||f.route.path&&f.route.path.length>0)}function km(i){let f=lp(i);return f.map((d,c)=>c===f.length-1?d.pathname:d.pathnameBase)}function Nr(i,f,d,c=!1){let m;typeof i=="string"?m=dn(i):(m={...i},Le(!m.pathname||!m.pathname.includes("?"),yr("?","pathname","search",m)),Le(!m.pathname||!m.pathname.includes("#"),yr("#","pathname","hash",m)),Le(!m.search||!m.search.includes("#"),yr("#","search","hash",m)));let h=i===""||m.pathname==="",S=h?"/":m.pathname,A;if(S==null)A=d;else{let E=f.length-1;if(!c&&S.startsWith("..")){let H=S.split("/");for(;H[0]==="..";)H.shift(),E-=1;m.pathname=H.join("/")}A=E>=0?f[E]:"/"}let b=tp(m,A),y=S&&S!=="/"&&S.endsWith("/"),T=(h||S===".")&&d.endsWith("/");return!b.pathname.endsWith("/")&&(y||T)&&(b.pathname+="/"),b}var Km=i=>i.replace(/\/\/+/g,"/"),Vt=i=>Km(i.join("/")),Ji=i=>i.replace(/\/+$/,""),ap=i=>Ji(i).replace(/^\/*/,"/"),np=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,up=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,ip=class{constructor(i,f,d,c=!1){this.status=i,this.statusText=f||"",this.internal=c,d instanceof Error?(this.data=d.toString(),this.error=d):this.data=d}};function cp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function sp(i){let f=i.map(d=>d.route.path).filter(Boolean);return Vt(f)||"/"}var Jm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $m(i,f){let d=i;if(typeof d!="string"||!ep.test(d))return{absoluteURL:void 0,isExternal:!1,to:d};let c=d,m=!1;if(Jm)try{let h=new URL(window.location.href),S=d.startsWith("//")?new URL(h.protocol+d):new URL(d),A=Tl(S.pathname,f);S.origin===h.origin&&A!=null?d=A+S.search+S.hash:m=!0}catch{kt(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:m,to:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fm=["POST","PUT","PATCH","DELETE"];new Set(Fm);var rp=["GET",...Fm];new Set(rp);var mn=p.createContext(null);mn.displayName="DataRouter";var Fi=p.createContext(null);Fi.displayName="DataRouterState";var Wm=p.createContext(!1);function fp(){return p.useContext(Wm)}var Pm=p.createContext({isTransitioning:!1});Pm.displayName="ViewTransition";var op=p.createContext(new Map);op.displayName="Fetchers";var dp=p.createContext(null);dp.displayName="Await";var Yt=p.createContext(null);Yt.displayName="Navigation";var bu=p.createContext(null);bu.displayName="Location";var Pt=p.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var jr=p.createContext(null);jr.displayName="RouteError";var Im="REACT_ROUTER_ERROR",mp="REDIRECT",hp="ROUTE_ERROR_RESPONSE";function yp(i){if(i.startsWith(`${Im}:${mp}:{`))try{let f=JSON.parse(i.slice(28));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string"&&typeof f.location=="string"&&typeof f.reloadDocument=="boolean"&&typeof f.replace=="boolean")return f}catch{}}function vp(i){if(i.startsWith(`${Im}:${hp}:{`))try{let f=JSON.parse(i.slice(40));if(typeof f=="object"&&f&&typeof f.status=="number"&&typeof f.statusText=="string")return new ip(f.status,f.statusText,f.data)}catch{}}function pp(i,{relative:f}={}){Le(Su(),"useHref() may be used only in the context of a <Router> component.");let{basename:d,navigator:c}=p.useContext(Yt),{hash:m,pathname:h,search:S}=Eu(i,{relative:f}),A=h;return d!=="/"&&(A=h==="/"?d:Vt([d,h])),c.createHref({pathname:A,search:S,hash:m})}function Su(){return p.useContext(bu)!=null}function Kt(){return Le(Su(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(bu).location}var eh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function th(i){p.useContext(Yt).static||p.useLayoutEffect(i)}function hn(){let{isDataRoute:i}=p.useContext(Pt);return i?Mp():gp()}function gp(){Le(Su(),"useNavigate() may be used only in the context of a <Router> component.");let i=p.useContext(mn),{basename:f,navigator:d}=p.useContext(Yt),{matches:c}=p.useContext(Pt),{pathname:m}=Kt(),h=JSON.stringify(km(c)),S=p.useRef(!1);return th(()=>{S.current=!0}),p.useCallback((b,y={})=>{if(kt(S.current,eh),!S.current)return;if(typeof b=="number"){d.go(b);return}let T=Nr(b,JSON.parse(h),m,y.relative==="path");i==null&&f!=="/"&&(T.pathname=T.pathname==="/"?f:Vt([f,T.pathname])),(y.replace?d.replace:d.push)(T,y.state,y)},[f,d,h,m,i])}p.createContext(null);function lh(){let{matches:i}=p.useContext(Pt),f=i[i.length-1];return(f==null?void 0:f.params)??{}}function Eu(i,{relative:f}={}){let{matches:d}=p.useContext(Pt),{pathname:c}=Kt(),m=JSON.stringify(km(d));return p.useMemo(()=>Nr(i,JSON.parse(m),c,f==="path"),[i,m,c,f])}function xp(i,f){return ah(i,f)}function ah(i,f,d){var B;Le(Su(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=p.useContext(Yt),{matches:m}=p.useContext(Pt),h=m[m.length-1],S=h?h.params:{},A=h?h.pathname:"/",b=h?h.pathnameBase:"/",y=h&&h.route;{let w=y&&y.path||"";uh(A,!y||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${w}">) 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.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let T=Kt(),E;if(f){let w=typeof f=="string"?dn(f):f;Le(b==="/"||((B=w.pathname)==null?void 0:B.startsWith(b)),`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 "${b}" but pathname "${w.pathname}" was given in the \`location\` prop.`),E=w}else E=T;let H=E.pathname||"/",Q=H;if(b!=="/"){let w=b.replace(/^\//,"").split("/");Q="/"+H.replace(/^\//,"").split("/").slice(w.length).join("/")}let Z=d&&d.state.matches.length?d.state.matches.map(w=>Object.assign(w,{route:d.manifest[w.route.id]||w.route})):Qm(i,{pathname:Q});kt(y||Z!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),kt(Z==null||Z[Z.length-1].route.element!==void 0||Z[Z.length-1].route.Component!==void 0||Z[Z.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.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 G=jp(Z&&Z.map(w=>Object.assign({},w,{params:Object.assign({},S,w.params),pathname:Vt([b,c.encodeLocation?c.encodeLocation(w.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?b:Vt([b,c.encodeLocation?c.encodeLocation(w.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),m,d);return f&&G?p.createElement(bu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...E},navigationType:"POP"}},G):G}function bp(){let i=Cp(),f=cp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),d=i instanceof Error?i.stack:null,c="rgba(200,200,200, 0.5)",m={padding:"0.5rem",backgroundColor:c},h={padding:"2px 4px",backgroundColor:c},S=null;return console.error("Error handled by React Router default ErrorBoundary:",i),S=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:h},"ErrorBoundary")," or"," ",p.createElement("code",{style:h},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},f),d?p.createElement("pre",{style:m},d):null,S)}var Sp=p.createElement(bp,null),nh=class extends p.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,f){return f.location!==i.location||f.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:f.error,location:f.location,revalidation:i.revalidation||f.revalidation}}componentDidCatch(i,f){this.props.onError?this.props.onError(i,f):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const d=vp(i.digest);d&&(i=d)}let f=i!==void 0?p.createElement(Pt.Provider,{value:this.props.routeContext},p.createElement(jr.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?p.createElement(Ep,{error:i},f):f}};nh.contextType=Wm;var vr=new WeakMap;function Ep({children:i,error:f}){let{basename:d}=p.useContext(Yt);if(typeof f=="object"&&f&&"digest"in f&&typeof f.digest=="string"){let c=yp(f.digest);if(c){let m=vr.get(f);if(m)throw m;let h=$m(c.location,d);if(Jm&&!vr.get(f))if(h.isExternal||c.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const S=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:c.replace}));throw vr.set(f,S),S}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return i}function Np({routeContext:i,match:f,children:d}){let c=p.useContext(mn);return c&&c.static&&c.staticContext&&(f.route.errorElement||f.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=f.route.id),p.createElement(Pt.Provider,{value:i},d)}function jp(i,f=[],d){let c=d==null?void 0:d.state;if(i==null){if(!c)return null;if(c.errors)i=c.matches;else if(f.length===0&&!c.initialized&&c.matches.length>0)i=c.matches;else return null}let m=i,h=c==null?void 0:c.errors;if(h!=null){let T=m.findIndex(E=>E.route.id&&(h==null?void 0:h[E.route.id])!==void 0);Le(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(h).join(",")}`),m=m.slice(0,Math.min(m.length,T+1))}let S=!1,A=-1;if(d&&c){S=c.renderFallback;for(let T=0;T<m.length;T++){let E=m[T];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(A=T),E.route.id){let{loaderData:H,errors:Q}=c,Z=E.route.loader&&!H.hasOwnProperty(E.route.id)&&(!Q||Q[E.route.id]===void 0);if(E.route.lazy||Z){d.isStatic&&(S=!0),A>=0?m=m.slice(0,A+1):m=[m[0]];break}}}}let b=d==null?void 0:d.onError,y=c&&b?(T,E)=>{var H,Q;b(T,{location:c.location,params:((Q=(H=c.matches)==null?void 0:H[0])==null?void 0:Q.params)??{},pattern:sp(c.matches),errorInfo:E})}:void 0;return m.reduceRight((T,E,H)=>{let Q,Z=!1,G=null,B=null;c&&(Q=h&&E.route.id?h[E.route.id]:void 0,G=E.route.errorElement||Sp,S&&(A<0&&H===0?(uh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,B=null):A===H&&(Z=!0,B=E.route.hydrateFallbackElement||null)));let w=f.concat(m.slice(0,H+1)),$=()=>{let L;return Q?L=G:Z?L=B:E.route.Component?L=p.createElement(E.route.Component,null):E.route.element?L=E.route.element:L=T,p.createElement(Np,{match:E,routeContext:{outlet:T,matches:w,isDataRoute:c!=null},children:L})};return c&&(E.route.ErrorBoundary||E.route.errorElement||H===0)?p.createElement(nh,{location:c.location,revalidation:c.revalidation,component:G,error:Q,children:$(),routeContext:{outlet:null,matches:w,isDataRoute:!0},onError:y}):$()},null)}function zr(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zp(i){let f=p.useContext(mn);return Le(f,zr(i)),f}function Tp(i){let f=p.useContext(Fi);return Le(f,zr(i)),f}function Ap(i){let f=p.useContext(Pt);return Le(f,zr(i)),f}function Tr(i){let f=Ap(i),d=f.matches[f.matches.length-1];return Le(d.route.id,`${i} can only be used on routes that contain a unique "id"`),d.route.id}function Rp(){return Tr("useRouteId")}function Cp(){var c;let i=p.useContext(jr),f=Tp("useRouteError"),d=Tr("useRouteError");return i!==void 0?i:(c=f.errors)==null?void 0:c[d]}function Mp(){let{router:i}=zp("useNavigate"),f=Tr("useNavigate"),d=p.useRef(!1);return th(()=>{d.current=!0}),p.useCallback(async(m,h={})=>{kt(d.current,eh),d.current&&(typeof m=="number"?await i.navigate(m):await i.navigate(m,{fromRouteId:f,...h}))},[i,f])}var Bm={};function uh(i,f,d){!f&&!Bm[i]&&(Bm[i]=!0,kt(!1,d))}p.memo(Dp);function Dp({routes:i,manifest:f,future:d,state:c,isStatic:m,onError:h}){return ah(i,void 0,{manifest:f,state:c,isStatic:m,onError:h})}function gu(i){Le(!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 _p({basename:i="/",children:f=null,location:d,navigationType:c="POP",navigator:m,static:h=!1,useTransitions:S}){Le(!Su(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let A=i.replace(/^\/*/,"/"),b=p.useMemo(()=>({basename:A,navigator:m,static:h,useTransitions:S,future:{}}),[A,m,h,S]);typeof d=="string"&&(d=dn(d));let{pathname:y="/",search:T="",hash:E="",state:H=null,key:Q="default",mask:Z}=d,G=p.useMemo(()=>{let B=Tl(y,A);return B==null?null:{location:{pathname:B,search:T,hash:E,state:H,key:Q,mask:Z},navigationType:c}},[A,y,T,E,H,Q,c,Z]);return kt(G!=null,`<Router basename="${A}"> is not able to match the URL "${y}${T}${E}" because it does not start with the basename, so the <Router> won't render anything.`),G==null?null:p.createElement(Yt.Provider,{value:b},p.createElement(bu.Provider,{children:f,value:G}))}function Op({children:i,location:f}){return xp(xr(i),f)}function xr(i,f=[]){let d=[];return p.Children.forEach(i,(c,m)=>{if(!p.isValidElement(c))return;let h=[...f,m];if(c.type===p.Fragment){d.push.apply(d,xr(c.props.children,h));return}Le(c.type===gu,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Le(!c.props.index||!c.props.children,"An index route cannot have child routes.");let S={id:c.props.id||h.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(S.children=xr(c.props.children,h)),d.push(S)}),d}var Vi="get",ki="application/x-www-form-urlencoded";function Wi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Up(i){return Wi(i)&&i.tagName.toLowerCase()==="button"}function Hp(i){return Wi(i)&&i.tagName.toLowerCase()==="form"}function Bp(i){return Wi(i)&&i.tagName.toLowerCase()==="input"}function Lp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function qp(i,f){return i.button===0&&(!f||f==="_self")&&!Lp(i)}function br(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((f,d)=>{let c=i[d];return f.concat(Array.isArray(c)?c.map(m=>[d,m]):[[d,c]])},[]))}function wp(i,f){let d=br(i);return f&&f.forEach((c,m)=>{d.has(m)||f.getAll(m).forEach(h=>{d.append(m,h)})}),d}var Zi=null;function Yp(){if(Zi===null)try{new FormData(document.createElement("form"),0),Zi=!1}catch{Zi=!0}return Zi}var Gp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pr(i){return i!=null&&!Gp.has(i)?(kt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ki}"`),null):i}function Xp(i,f){let d,c,m,h,S;if(Hp(i)){let A=i.getAttribute("action");c=A?Tl(A,f):null,d=i.getAttribute("method")||Vi,m=pr(i.getAttribute("enctype"))||ki,h=new FormData(i)}else if(Up(i)||Bp(i)&&(i.type==="submit"||i.type==="image")){let A=i.form;if(A==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=i.getAttribute("formaction")||A.getAttribute("action");if(c=b?Tl(b,f):null,d=i.getAttribute("formmethod")||A.getAttribute("method")||Vi,m=pr(i.getAttribute("formenctype"))||pr(A.getAttribute("enctype"))||ki,h=new FormData(A,i),!Yp()){let{name:y,type:T,value:E}=i;if(T==="image"){let H=y?`${y}.`:"";h.append(`${H}x`,"0"),h.append(`${H}y`,"0")}else y&&h.append(y,E)}}else{if(Wi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');d=Vi,c=null,m=ki,S=i}return h&&m==="text/plain"&&(S=h,h=void 0),{action:c,method:d.toLowerCase(),encType:m,formData:h,body:S}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ar(i,f){if(i===!1||i===null||typeof i>"u")throw new Error(f)}function ih(i,f,d,c){let m=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return d?m.pathname.endsWith("/")?m.pathname=`${m.pathname}_.${c}`:m.pathname=`${m.pathname}.${c}`:m.pathname==="/"?m.pathname=`_root.${c}`:f&&Tl(m.pathname,f)==="/"?m.pathname=`${Ji(f)}/_root.${c}`:m.pathname=`${Ji(m.pathname)}.${c}`,m}async function Qp(i,f){if(i.id in f)return f[i.id];try{let d=await import(i.module);return f[i.id]=d,d}catch(d){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(d),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zp(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Vp(i,f,d){let c=await Promise.all(i.map(async m=>{let h=f.routes[m.route.id];if(h){let S=await Qp(h,d);return S.links?S.links():[]}return[]}));return $p(c.flat(1).filter(Zp).filter(m=>m.rel==="stylesheet"||m.rel==="preload").map(m=>m.rel==="stylesheet"?{...m,rel:"prefetch",as:"style"}:{...m,rel:"prefetch"}))}function Lm(i,f,d,c,m,h){let S=(b,y)=>d[y]?b.route.id!==d[y].route.id:!0,A=(b,y)=>{var T;return d[y].pathname!==b.pathname||((T=d[y].route.path)==null?void 0:T.endsWith("*"))&&d[y].params["*"]!==b.params["*"]};return h==="assets"?f.filter((b,y)=>S(b,y)||A(b,y)):h==="data"?f.filter((b,y)=>{var E;let T=c.routes[b.route.id];if(!T||!T.hasLoader)return!1;if(S(b,y)||A(b,y))return!0;if(b.route.shouldRevalidate){let H=b.route.shouldRevalidate({currentUrl:new URL(m.pathname+m.search+m.hash,window.origin),currentParams:((E=d[0])==null?void 0:E.params)||{},nextUrl:new URL(i,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof H=="boolean")return H}return!0}):[]}function kp(i,f,{includeHydrateFallback:d}={}){return Kp(i.map(c=>{let m=f.routes[c.route.id];if(!m)return[];let h=[m.module];return m.clientActionModule&&(h=h.concat(m.clientActionModule)),m.clientLoaderModule&&(h=h.concat(m.clientLoaderModule)),d&&m.hydrateFallbackModule&&(h=h.concat(m.hydrateFallbackModule)),m.imports&&(h=h.concat(m.imports)),h}).flat(1))}function Kp(i){return[...new Set(i)]}function Jp(i){let f={},d=Object.keys(i).sort();for(let c of d)f[c]=i[c];return f}function $p(i,f){let d=new Set;return new Set(f),i.reduce((c,m)=>{let h=JSON.stringify(Jp(m));return d.has(h)||(d.add(h),c.push({key:h,link:m})),c},[])}function Rr(){let i=p.useContext(mn);return Ar(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Fp(){let i=p.useContext(Fi);return Ar(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Cr=p.createContext(void 0);Cr.displayName="FrameworkContext";function Mr(){let i=p.useContext(Cr);return Ar(i,"You must render this element inside a <HydratedRouter> element"),i}function Wp(i,f){let d=p.useContext(Cr),[c,m]=p.useState(!1),[h,S]=p.useState(!1),{onFocus:A,onBlur:b,onMouseEnter:y,onMouseLeave:T,onTouchStart:E}=f,H=p.useRef(null);p.useEffect(()=>{if(i==="render"&&S(!0),i==="viewport"){let G=w=>{w.forEach($=>{S($.isIntersecting)})},B=new IntersectionObserver(G,{threshold:.5});return H.current&&B.observe(H.current),()=>{B.disconnect()}}},[i]),p.useEffect(()=>{if(c){let G=setTimeout(()=>{S(!0)},100);return()=>{clearTimeout(G)}}},[c]);let Q=()=>{m(!0)},Z=()=>{m(!1),S(!1)};return d?i!=="intent"?[h,H,{}]:[h,H,{onFocus:pu(A,Q),onBlur:pu(b,Z),onMouseEnter:pu(y,Q),onMouseLeave:pu(T,Z),onTouchStart:pu(E,Q)}]:[!1,H,{}]}function pu(i,f){return d=>{i&&i(d),d.defaultPrevented||f(d)}}function Pp({page:i,...f}){let d=fp(),{router:c}=Rr(),m=p.useMemo(()=>Qm(c.routes,i,c.basename),[c.routes,i,c.basename]);return m?d?p.createElement(eg,{page:i,matches:m,...f}):p.createElement(tg,{page:i,matches:m,...f}):null}function Ip(i){let{manifest:f,routeModules:d}=Mr(),[c,m]=p.useState([]);return p.useEffect(()=>{let h=!1;return Vp(i,f,d).then(S=>{h||m(S)}),()=>{h=!0}},[i,f,d]),c}function eg({page:i,matches:f,...d}){let c=Kt(),{future:m}=Mr(),{basename:h}=Rr(),S=p.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let A=ih(i,h,m.unstable_trailingSlashAwareDataRequests,"rsc"),b=!1,y=[];for(let T of f)typeof T.route.shouldRevalidate=="function"?b=!0:y.push(T.route.id);return b&&y.length>0&&A.searchParams.set("_routes",y.join(",")),[A.pathname+A.search]},[h,m.unstable_trailingSlashAwareDataRequests,i,c,f]);return p.createElement(p.Fragment,null,S.map(A=>p.createElement("link",{key:A,rel:"prefetch",as:"fetch",href:A,...d})))}function tg({page:i,matches:f,...d}){let c=Kt(),{future:m,manifest:h,routeModules:S}=Mr(),{basename:A}=Rr(),{loaderData:b,matches:y}=Fp(),T=p.useMemo(()=>Lm(i,f,y,h,c,"data"),[i,f,y,h,c]),E=p.useMemo(()=>Lm(i,f,y,h,c,"assets"),[i,f,y,h,c]),H=p.useMemo(()=>{if(i===c.pathname+c.search+c.hash)return[];let G=new Set,B=!1;if(f.forEach($=>{var J;let L=h.routes[$.route.id];!L||!L.hasLoader||(!T.some(P=>P.route.id===$.route.id)&&$.route.id in b&&((J=S[$.route.id])!=null&&J.shouldRevalidate)||L.hasClientLoader?B=!0:G.add($.route.id))}),G.size===0)return[];let w=ih(i,A,m.unstable_trailingSlashAwareDataRequests,"data");return B&&G.size>0&&w.searchParams.set("_routes",f.filter($=>G.has($.route.id)).map($=>$.route.id).join(",")),[w.pathname+w.search]},[A,m.unstable_trailingSlashAwareDataRequests,b,c,h,T,f,i,S]),Q=p.useMemo(()=>kp(E,h),[E,h]),Z=Ip(E);return p.createElement(p.Fragment,null,H.map(G=>p.createElement("link",{key:G,rel:"prefetch",as:"fetch",href:G,...d})),Q.map(G=>p.createElement("link",{key:G,rel:"modulepreload",href:G,...d})),Z.map(({key:G,link:B})=>p.createElement("link",{key:G,nonce:d.nonce,...B,crossOrigin:B.crossOrigin??d.crossOrigin})))}function lg(...i){return f=>{i.forEach(d=>{typeof d=="function"?d(f):d!=null&&(d.current=f)})}}var ag=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ag&&(window.__reactRouterVersion="7.15.0")}catch{}function ng({basename:i,children:f,useTransitions:d,window:c}){let m=p.useRef();m.current==null&&(m.current=Bv({window:c,v5Compat:!0}));let h=m.current,[S,A]=p.useState({action:h.action,location:h.location}),b=p.useCallback(y=>{d===!1?A(y):p.startTransition(()=>A(y))},[d]);return p.useLayoutEffect(()=>h.listen(b),[h,b]),p.createElement(_p,{basename:i,children:f,location:S.location,navigationType:S.action,navigator:h,useTransitions:d})}var ch=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zl=p.forwardRef(function({onClick:f,discover:d="render",prefetch:c="none",relative:m,reloadDocument:h,replace:S,mask:A,state:b,target:y,to:T,preventScrollReset:E,viewTransition:H,defaultShouldRevalidate:Q,...Z},G){let{basename:B,navigator:w,useTransitions:$}=p.useContext(Yt),L=typeof T=="string"&&ch.test(T),J=$m(T,B);T=J.to;let P=pp(T,{relative:m}),he=Kt(),F=null;if(A){let je=Nr(A,[],he.mask?he.mask.pathname:"/",!0);B!=="/"&&(je.pathname=je.pathname==="/"?B:Vt([B,je.pathname])),F=w.createHref(je)}let[Re,De,ct]=Wp(c,Z),He=sg(T,{replace:S,mask:A,state:b,target:y,preventScrollReset:E,relative:m,viewTransition:H,defaultShouldRevalidate:Q,useTransitions:$});function _e(je){f&&f(je),je.defaultPrevented||He(je)}let nt=!(J.isExternal||h),I=p.createElement("a",{...Z,...ct,href:(nt?F:void 0)||J.absoluteURL||P,onClick:nt?_e:f,ref:lg(G,De),target:y,"data-discover":!L&&d==="render"?"true":void 0});return Re&&!L?p.createElement(p.Fragment,null,I,p.createElement(Pp,{page:P})):I});zl.displayName="Link";var ug=p.forwardRef(function({"aria-current":f="page",caseSensitive:d=!1,className:c="",end:m=!1,style:h,to:S,viewTransition:A,children:b,...y},T){let E=Eu(S,{relative:y.relative}),H=Kt(),Q=p.useContext(Fi),{navigator:Z,basename:G}=p.useContext(Yt),B=Q!=null&&hg(E)&&A===!0,w=Z.encodeLocation?Z.encodeLocation(E).pathname:E.pathname,$=H.pathname,L=Q&&Q.navigation&&Q.navigation.location?Q.navigation.location.pathname:null;d||($=$.toLowerCase(),L=L?L.toLowerCase():null,w=w.toLowerCase()),L&&G&&(L=Tl(L,G)||L);const J=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let P=$===w||!m&&$.startsWith(w)&&$.charAt(J)==="/",he=L!=null&&(L===w||!m&&L.startsWith(w)&&L.charAt(w.length)==="/"),F={isActive:P,isPending:he,isTransitioning:B},Re=P?f:void 0,De;typeof c=="function"?De=c(F):De=[c,P?"active":null,he?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let ct=typeof h=="function"?h(F):h;return p.createElement(zl,{...y,"aria-current":Re,className:De,ref:T,style:ct,to:S,viewTransition:A},typeof b=="function"?b(F):b)});ug.displayName="NavLink";var ig=p.forwardRef(({discover:i="render",fetcherKey:f,navigate:d,reloadDocument:c,replace:m,state:h,method:S=Vi,action:A,onSubmit:b,relative:y,preventScrollReset:T,viewTransition:E,defaultShouldRevalidate:H,...Q},Z)=>{let{useTransitions:G}=p.useContext(Yt),B=dg(),w=mg(A,{relative:y}),$=S.toLowerCase()==="get"?"get":"post",L=typeof A=="string"&&ch.test(A),J=P=>{if(b&&b(P),P.defaultPrevented)return;P.preventDefault();let he=P.nativeEvent.submitter,F=(he==null?void 0:he.getAttribute("formmethod"))||S,Re=()=>B(he||P.currentTarget,{fetcherKey:f,method:F,navigate:d,replace:m,state:h,relative:y,preventScrollReset:T,viewTransition:E,defaultShouldRevalidate:H});G&&d!==!1?p.startTransition(()=>Re()):Re()};return p.createElement("form",{ref:Z,method:$,action:w,onSubmit:c?b:J,...Q,"data-discover":!L&&i==="render"?"true":void 0})});ig.displayName="Form";function cg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sh(i){let f=p.useContext(mn);return Le(f,cg(i)),f}function sg(i,{target:f,replace:d,mask:c,state:m,preventScrollReset:h,relative:S,viewTransition:A,defaultShouldRevalidate:b,useTransitions:y}={}){let T=hn(),E=Kt(),H=Eu(i,{relative:S});return p.useCallback(Q=>{if(qp(Q,f)){Q.preventDefault();let Z=d!==void 0?d:xu(E)===xu(H),G=()=>T(i,{replace:Z,mask:c,state:m,preventScrollReset:h,relative:S,viewTransition:A,defaultShouldRevalidate:b});y?p.startTransition(()=>G()):G()}},[E,T,H,d,c,m,f,i,h,S,A,b,y])}function rg(i){kt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let f=p.useRef(br(i)),d=p.useRef(!1),c=Kt(),m=p.useMemo(()=>wp(c.search,d.current?null:f.current),[c.search]),h=hn(),S=p.useCallback((A,b)=>{const y=br(typeof A=="function"?A(new URLSearchParams(m)):A);d.current=!0,h("?"+y,b)},[h,m]);return[m,S]}var fg=0,og=()=>`__${String(++fg)}__`;function dg(){let{router:i}=sh("useSubmit"),{basename:f}=p.useContext(Yt),d=Rp(),c=i.fetch,m=i.navigate;return p.useCallback(async(h,S={})=>{let{action:A,method:b,encType:y,formData:T,body:E}=Xp(h,f);if(S.navigate===!1){let H=S.fetcherKey||og();await c(H,d,S.action||A,{defaultShouldRevalidate:S.defaultShouldRevalidate,preventScrollReset:S.preventScrollReset,formData:T,body:E,formMethod:S.method||b,formEncType:S.encType||y,flushSync:S.flushSync})}else await m(S.action||A,{defaultShouldRevalidate:S.defaultShouldRevalidate,preventScrollReset:S.preventScrollReset,formData:T,body:E,formMethod:S.method||b,formEncType:S.encType||y,replace:S.replace,state:S.state,fromRouteId:d,flushSync:S.flushSync,viewTransition:S.viewTransition})},[c,m,f,d])}function mg(i,{relative:f}={}){let{basename:d}=p.useContext(Yt),c=p.useContext(Pt);Le(c,"useFormAction must be used inside a RouteContext");let[m]=c.matches.slice(-1),h={...Eu(i||".",{relative:f})},S=Kt();if(i==null){h.search=S.search;let A=new URLSearchParams(h.search),b=A.getAll("index");if(b.some(T=>T==="")){A.delete("index"),b.filter(E=>E).forEach(E=>A.append("index",E));let T=A.toString();h.search=T?`?${T}`:""}}return(!i||i===".")&&m.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),d!=="/"&&(h.pathname=h.pathname==="/"?d:Vt([d,h.pathname])),xu(h)}function hg(i,{relative:f}={}){let d=p.useContext(Pm);Le(d!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=sh("useViewTransitionState"),m=Eu(i,{relative:f});if(!d.isTransitioning)return!1;let h=Tl(d.currentLocation.pathname,c)||d.currentLocation.pathname,S=Tl(d.nextLocation.pathname,c)||d.nextLocation.pathname;return Ki(m.pathname,S)!=null||Ki(m.pathname,h)!=null}/**
|
|
61
|
+
* @license lucide-react v0.469.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const yg=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rh=(...i)=>i.filter((f,d,c)=>!!f&&f.trim()!==""&&c.indexOf(f)===d).join(" ").trim();/**
|
|
66
|
+
* @license lucide-react v0.469.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/var vg={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"};/**
|
|
71
|
+
* @license lucide-react v0.469.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const pg=p.forwardRef(({color:i="currentColor",size:f=24,strokeWidth:d=2,absoluteStrokeWidth:c,className:m="",children:h,iconNode:S,...A},b)=>p.createElement("svg",{ref:b,...vg,width:f,height:f,stroke:i,strokeWidth:c?Number(d)*24/Number(f):d,className:rh("lucide",m),...A},[...S.map(([y,T])=>p.createElement(y,T)),...Array.isArray(h)?h:[h]]));/**
|
|
76
|
+
* @license lucide-react v0.469.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const ge=(i,f)=>{const d=p.forwardRef(({className:c,...m},h)=>p.createElement(pg,{ref:h,iconNode:f,className:rh(`lucide-${yg(i)}`,c),...m}));return d.displayName=`${i}`,d};/**
|
|
81
|
+
* @license lucide-react v0.469.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const fh=ge("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
86
|
+
* @license lucide-react v0.469.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const oh=ge("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
91
|
+
* @license lucide-react v0.469.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const gg=ge("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
96
|
+
* @license lucide-react v0.469.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const xg=ge("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
101
|
+
* @license lucide-react v0.469.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const Nu=ge("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
106
|
+
* @license lucide-react v0.469.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Dr=ge("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
111
|
+
* @license lucide-react v0.469.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const dh=ge("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
116
|
+
* @license lucide-react v0.469.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const bg=ge("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
121
|
+
* @license lucide-react v0.469.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const Sg=ge("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
126
|
+
* @license lucide-react v0.469.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Eg=ge("ExternalLink",[["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"}]]);/**
|
|
131
|
+
* @license lucide-react v0.469.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const Ng=ge("FileArchive",[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]]);/**
|
|
136
|
+
* @license lucide-react v0.469.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const jg=ge("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
141
|
+
* @license lucide-react v0.469.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const Pi=ge("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
146
|
+
* @license lucide-react v0.469.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const zg=ge("FileWarning",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
151
|
+
* @license lucide-react v0.469.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const Tg=ge("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
156
|
+
* @license lucide-react v0.469.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const Ag=ge("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
161
|
+
* @license lucide-react v0.469.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const Rg=ge("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
|
|
166
|
+
* @license lucide-react v0.469.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const ju=ge("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
171
|
+
* @license lucide-react v0.469.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const Cg=ge("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
176
|
+
* @license lucide-react v0.469.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const Mg=ge("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
|
|
181
|
+
* @license lucide-react v0.469.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const Dg=ge("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
186
|
+
* @license lucide-react v0.469.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const _g=ge("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
|
191
|
+
* @license lucide-react v0.469.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const Og=ge("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
|
|
196
|
+
* @license lucide-react v0.469.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const Ug=ge("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
201
|
+
* @license lucide-react v0.469.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Hg=ge("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
206
|
+
* @license lucide-react v0.469.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const $i=ge("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
211
|
+
* @license lucide-react v0.469.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const Bg=ge("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
216
|
+
* @license lucide-react v0.469.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const mh=ge("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
221
|
+
* @license lucide-react v0.469.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const Lg=ge("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
226
|
+
* @license lucide-react v0.469.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const qg=ge("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
231
|
+
* @license lucide-react v0.469.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const hh=ge("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
236
|
+
* @license lucide-react v0.469.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const wg=ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Yg(){const[i,f]=p.useState(()=>{const m=localStorage.getItem("dockit-theme");return m==="dark"||m==="light"?m:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"});p.useEffect(()=>{document.documentElement.classList.toggle("dark",i==="dark"),localStorage.setItem("dockit-theme",i)},[i]);const d=p.useCallback(m=>f(m),[]),c=p.useCallback(()=>f(m=>m==="dark"?"light":"dark"),[]);return{theme:i,setTheme:d,toggleTheme:c}}function Gg(){const i=hn(),[f,d]=p.useState(""),[c,m]=p.useState([]),[h,S]=p.useState(!1),[A,b]=p.useState(!1),[y,T]=p.useState(!1),[E,H]=p.useState(),Q=p.useRef(null),Z=p.useRef(null),G=p.useCallback(async L=>{if(!L.trim()){m([]),b(!1);return}S(!0);try{const J=await fetch(`/api/search?q=${encodeURIComponent(L)}`).then(P=>P.json());m(J),b(!0)}catch{}finally{S(!1)}},[]),B=L=>{d(L),E&&clearTimeout(E);const J=setTimeout(()=>G(L),300);H(J)};p.useEffect(()=>{const L=J=>{var P,he;(J.metaKey||J.ctrlKey)&&J.key==="k"&&(J.preventDefault(),(P=Q.current)==null||P.focus()),J.key==="Escape"&&(b(!1),(he=Q.current)==null||he.blur())};return window.addEventListener("keydown",L),()=>window.removeEventListener("keydown",L)},[]),p.useEffect(()=>{const L=J=>{Z.current&&!Z.current.contains(J.target)&&b(!1)};return document.addEventListener("mousedown",L),()=>document.removeEventListener("mousedown",L)},[]);const w=L=>{b(!1),d(""),i(`/entries/${L.entryId}?doc=${encodeURIComponent(L.path)}`)},$=[];for(const L of c){let J=$.find(P=>P.entryId===L.entryId);J||(J={entryId:L.entryId,entryName:L.entryName,entryVersion:L.entryVersion,items:[]},$.push(J)),J.items.push(L)}return r.jsxs("div",{ref:Z,className:"relative flex-1 max-w-xl",children:[r.jsxs("div",{className:"relative",children:[r.jsx(mh,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-muted"}),r.jsx("input",{ref:Q,type:"text",value:f,onChange:L=>B(L.target.value),onFocus:()=>{T(!0),c.length>0&&b(!0)},placeholder:"Search all docs...",className:"w-full pl-9 pr-16 py-1.5 bg-surface ring-1 ring-border rounded-md text-sm text-text placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"}),h&&r.jsx("div",{className:"absolute right-12 top-1/2 -translate-y-1/2",children:r.jsx("div",{className:"w-3.5 h-3.5 border-2 border-border border-t-primary rounded-full animate-spin"})}),f&&r.jsx("button",{onClick:()=>{d(""),m([]),b(!1)},className:"absolute right-3 top-1/2 -translate-y-1/2 p-0.5 rounded text-text-muted hover:text-text transition-colors",children:r.jsx(wg,{size:13})}),!f&&r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none",children:r.jsx("kbd",{className:"hidden sm:inline-flex items-center px-1.5 py-0.5 text-[10px] font-mono text-text-muted bg-bg-alt ring-1 ring-border rounded",children:"⌘K"})})]}),A&&$.length>0&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsx("div",{className:"absolute left-0 right-0 z-50 top-full mt-1.5 bg-surface ring-1 ring-border rounded-xl shadow-xl max-h-96 overflow-auto",children:$.map(L=>r.jsxs("div",{children:[r.jsxs("div",{className:"px-3 py-1.5 text-[11px] font-semibold text-text-muted uppercase tracking-wider bg-bg-alt/50 border-b border-border",children:[L.entryName," ",r.jsxs("span",{className:"font-normal lowercase text-text-dim",children:["(",L.entryVersion,")"]})]}),L.items.map((J,P)=>r.jsxs("button",{type:"button",onClick:()=>w(J),className:"flex items-start gap-2.5 px-3 py-2.5 hover:bg-bg-alt transition-colors border-b border-border last:border-b-0 w-full text-left cursor-pointer",children:[r.jsx(Pi,{size:14,className:"text-text-muted mt-0.5 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("div",{className:"text-sm font-medium text-text truncate",children:J.title}),r.jsx("div",{className:"text-xs text-text-dim mt-0.5 line-clamp-2",children:J.snippet})]})]},`${L.entryId}-${P}`))]},L.entryId))})]}),A&&f&&!h&&c.length===0&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsxs("div",{className:"absolute left-0 right-0 z-50 top-full mt-1.5 bg-surface ring-1 ring-border rounded-xl shadow-xl p-4 text-center text-sm text-text-dim",children:["No results found for “",f,"”"]})]})]})}function Xg({children:i}){const f=Kt(),{theme:d,toggleTheme:c}=Yg();return r.jsxs("div",{className:"flex flex-col h-screen overflow-hidden",children:[r.jsxs("header",{className:"h-12 bg-bg-alt border-b border-border flex items-center px-4 gap-4 shrink-0",children:[r.jsxs(zl,{to:"/",className:"flex items-center gap-2 no-underline shrink-0",children:[r.jsx(oh,{size:18,className:"text-primary"}),r.jsx("span",{className:"font-semibold text-sm tracking-tight text-text",children:"Dockit"})]}),r.jsx("nav",{className:"flex items-center gap-1",children:r.jsx(zl,{to:"/",className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors ${f.pathname==="/"?"bg-primary/10 text-primary":"text-text-dim hover:text-text"}`,children:"Entries"})}),r.jsx(Gg,{}),r.jsx("div",{className:"flex-1"}),r.jsxs(zl,{to:"/entries/new",className:"flex items-center gap-1.5 px-3 py-1.5 rounded-md text-sm font-medium bg-primary text-white hover:bg-primary-hover transition-colors",children:[r.jsx($i,{size:14}),"New"]}),r.jsx("button",{onClick:c,className:"p-1.5 rounded-md text-text-dim hover:text-text hover:bg-surface transition-colors",title:`Switch to ${d==="dark"?"light":"dark"} mode`,children:d==="dark"?r.jsx(Lg,{size:16}):r.jsx(Dg,{size:16})})]}),r.jsx("main",{className:"flex-1 overflow-auto",children:i})]})}const Sr="/api";async function wt(i,f){const d=await fetch(`${Sr}${i}`,{headers:{"Content-Type":"application/json"},...f});if(!d.ok){const c=await d.json().catch(()=>({error:d.statusText}));throw new Error(c.error||`Request failed: ${d.status}`)}return d.json()}const it={entries:{list:()=>wt("/entries"),get:i=>wt(`/entries/${i}`),create:i=>wt("/entries",{method:"POST",body:JSON.stringify(i)}),update:(i,f)=>wt(`/entries/${i}`,{method:"PUT",body:JSON.stringify(f)}),delete:i=>wt(`/entries/${i}`,{method:"DELETE"})},sources:{create:(i,f)=>wt(`/entries/${i}/sources`,{method:"POST",body:JSON.stringify(f)}),update:(i,f)=>wt(`/sources/${i}`,{method:"PUT",body:JSON.stringify(f)}),delete:i=>wt(`/sources/${i}`,{method:"DELETE"})},build:{trigger:i=>wt(`/entries/${i}/build`,{method:"POST"}),status:i=>wt(`/entries/${i}/build-status`),cliScript:i=>fetch(`${Sr}/entries/${i}/cli-script`).then(f=>f.text())},search:(i,f)=>wt(`/entries/${i}/search?q=${encodeURIComponent(f)}`),searchGlobal:i=>wt(`/search?q=${encodeURIComponent(i)}`),bundleUrl:i=>`${Sr}/bundle/${i}/`},qm={pending:{icon:dh,color:"text-text-muted",bg:"bg-bg-alt",label:"Pending"},building:{icon:ju,color:"text-warning",bg:"bg-warning/5",label:"Building"},ready:{icon:Dr,color:"text-success",bg:"bg-success/5",label:"Ready"},error:{icon:Nu,color:"text-danger",bg:"bg-danger/5",label:"Error"}};function Qg(){const[i,f]=p.useState([]),[d,c]=p.useState(!0),[m,h]=p.useState(null),S=hn(),A=async()=>{try{c(!0);const y=await it.entries.list();f(y),h(null)}catch(y){h(y.message)}finally{c(!1)}};p.useEffect(()=>{A()},[]);const b=async(y,T,E)=>{if(y.stopPropagation(),!!confirm(`Delete entry "${E}" and all its data?`))try{await it.entries.delete(T),f(H=>H.filter(Q=>Q.id!==T))}catch(H){alert(`Failed to delete: ${H.message}`)}};return d?r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx(ju,{size:24,className:"animate-spin text-text-muted"})}):m?r.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3",children:[r.jsx(Nu,{size:32,className:"text-danger"}),r.jsx("p",{className:"text-sm text-danger",children:m}),r.jsx("button",{onClick:A,className:"text-sm text-primary hover:underline",children:"Retry"})]}):i.length===0?r.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-5",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-bg-alt flex items-center justify-center",children:r.jsx(oh,{size:28,className:"text-text-muted"})}),r.jsxs("div",{className:"text-center max-w-xs",children:[r.jsx("h2",{className:"text-lg font-semibold text-text",children:"No documentation entries yet"}),r.jsx("p",{className:"text-sm text-text-dim mt-1.5",children:"Create your first entry to start building your documentation hub."})]}),r.jsxs(zl,{to:"/entries/new",className:"flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-medium bg-primary text-white hover:bg-primary-hover transition-colors",children:[r.jsx($i,{size:16}),"New Entry"]})]}):r.jsxs("div",{className:"p-6 md:p-8",children:[r.jsxs("div",{className:"flex items-center justify-between mb-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-xl font-semibold text-text",children:"Documentation Hub"}),r.jsxs("p",{className:"text-sm text-text-dim mt-0.5",children:[i.length," entr",i.length===1?"y":"ies"]})]}),r.jsxs(zl,{to:"/entries/new",className:"flex items-center gap-1.5 px-3.5 py-2 rounded-lg text-sm font-medium bg-primary text-white hover:bg-primary-hover transition-colors",children:[r.jsx($i,{size:15}),"New Entry"]})]}),r.jsx("div",{className:"ring-1 ring-border rounded-xl overflow-hidden",children:r.jsxs("table",{className:"w-full",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"bg-bg-alt text-xs text-text-dim uppercase tracking-wider",children:[r.jsx("th",{className:"text-left px-4 py-2.5 font-medium",children:"Name"}),r.jsx("th",{className:"text-left px-4 py-2.5 font-medium w-24",children:"Version"}),r.jsx("th",{className:"text-left px-4 py-2.5 font-medium w-20",children:"Status"}),r.jsx("th",{className:"text-left px-4 py-2.5 font-medium w-20",children:"Sources"}),r.jsx("th",{className:"text-left px-4 py-2.5 font-medium hidden md:table-cell",children:"Description"}),r.jsx("th",{className:"w-10"})]})}),r.jsx("tbody",{children:i.map(y=>{const T=qm[y.status]||qm.pending,E=T.icon,H=y.status==="building"?"animate-spin":"";return r.jsxs("tr",{onClick:()=>S(`/entries/${y.id}`),className:"border-t border-border hover:bg-bg-alt/50 cursor-pointer transition-colors group",children:[r.jsx("td",{className:"px-4 py-3",children:r.jsx("span",{className:"text-sm font-medium text-text group-hover:text-primary transition-colors",children:y.name})}),r.jsx("td",{className:"px-4 py-3",children:r.jsx("span",{className:"text-xs text-text-dim font-mono",children:y.version})}),r.jsx("td",{className:"px-4 py-3",children:r.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium ${T.color} ${T.bg}`,children:[r.jsx(E,{size:11,className:H}),T.label]})}),r.jsx("td",{className:"px-4 py-3",children:r.jsx("span",{className:"text-xs text-text-dim",children:y.source_count??0})}),r.jsx("td",{className:"px-4 py-3 hidden md:table-cell",children:r.jsx("span",{className:"text-xs text-text-dim truncate block max-w-xs",children:y.description||"—"})}),r.jsx("td",{className:"px-2 py-3",children:r.jsx("button",{onClick:Q=>b(Q,y.id,y.name),className:"p-1 rounded text-text-muted hover:text-danger opacity-0 group-hover:opacity-100 transition-all",title:"Delete",children:r.jsx(hh,{size:14})})})]},y.id)})})]})})]})}function wm(){const{id:i}=lh(),f=!!i,d=hn(),[c,m]=p.useState(""),[h,S]=p.useState(""),[A,b]=p.useState(""),[y,T]=p.useState(!1),[E,H]=p.useState(null),[Q,Z]=p.useState(f);p.useEffect(()=>{i&&it.entries.get(i).then(B=>{m(B.name),S(B.version),b(B.description)}).catch(B=>H(B.message)).finally(()=>Z(!1))},[i]);const G=async B=>{if(B.preventDefault(),!c.trim()||!h.trim()){H("Name and version are required");return}T(!0),H(null);try{f&&i?await it.entries.update(i,{name:c.trim(),version:h.trim(),description:A.trim()}):await it.entries.create({name:c.trim(),version:h.trim(),description:A.trim()}),d("/")}catch(w){H(w.message)}finally{T(!1)}};return Q?r.jsx("div",{className:"py-20 text-center text-sm text-text-muted",children:"Loading..."}):r.jsxs("div",{className:"p-6 md:p-8 max-w-xl",children:[r.jsxs("button",{onClick:()=>d(-1),className:"flex items-center gap-1.5 text-sm text-text-dim hover:text-text mb-6 transition-colors",children:[r.jsx(fh,{size:16}),"Back"]}),r.jsx("h1",{className:"text-xl font-semibold text-text mb-6",children:f?"Edit Entry":"Create New Entry"}),r.jsxs("form",{onSubmit:G,className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-text mb-2",children:"Name"}),r.jsx("input",{type:"text",value:c,onChange:B=>m(B.target.value),placeholder:"e.g. Quarkus",className:"w-full px-3.5 py-2.5 bg-surface ring-1 ring-border rounded-lg text-sm text-text placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-text mb-2",children:"Version"}),r.jsx("input",{type:"text",value:h,onChange:B=>S(B.target.value),placeholder:"e.g. 3.8.0",className:"w-full px-3.5 py-2.5 bg-surface ring-1 ring-border rounded-lg text-sm text-text placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"block text-sm font-medium text-text mb-2",children:["Description ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("textarea",{value:A,onChange:B=>b(B.target.value),placeholder:"Brief description of this documentation entry",rows:3,className:"w-full px-3.5 py-2.5 bg-surface ring-1 ring-border rounded-lg text-sm text-text placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 transition-all resize-none"})]}),E&&r.jsx("div",{className:"px-3 py-2 bg-danger/5 ring-1 ring-danger/20 rounded-lg text-sm text-danger",children:E}),r.jsxs("button",{type:"submit",disabled:y,className:"flex items-center gap-2 px-5 py-2.5 rounded-lg text-sm font-medium bg-primary text-white hover:bg-primary-hover transition-colors disabled:opacity-50",children:[r.jsx(Bg,{size:16}),y?"Saving...":f?"Save Changes":"Create Entry"]})]})]})}const Ym={zip:"ZIP Bundle",antora:"Antora",maven:"Maven",asciidoc:"AsciiDoc","github-markdown":"GitHub Markdown","source-code":"Source Code"};function Zg({open:i,onClose:f,onCreate:d,initial:c}){var Ta,Cl,Cu,En,Nn,jn,Aa,Ra,zn,Tn,Gt,Ze,Ie,ll,Ca,Mu,Du,An,Ml,Ma,al,nl,Dl,ul,Ye;const[m,h]=p.useState((c==null?void 0:c.type)||"zip"),[S,A]=p.useState((c==null?void 0:c.label)||""),[b,y]=p.useState(!1),[T,E]=p.useState(null);function H(){return c!=null&&c.config&&c.config.localPath?"local":"remote"}function Q(){return c!=null&&c.config&&c.config.localJar?"localJar":c!=null&&c.config&&c.config.useMavenCommand?"cli":"direct"}function Z(){const q=c==null?void 0:c.config;return q!=null&&q.localPath?"localDir":q!=null&&q.zipPath&&!(q!=null&&q.repoUrl)?"zipFile":"git"}function G(){const q=c==null?void 0:c.config;return q!=null&&q.localPath?"localDir":"git"}function B(){const q=c==null?void 0:c.config;return q!=null&&q.localPath?"localDir":q!=null&&q.zipPath&&!(q!=null&&q.repoUrl)?"zipFile":"git"}const[w,$]=p.useState(H()),[L,J]=p.useState(Q()),[P,he]=p.useState(Z()),[F,Re]=p.useState(Z()),[De,ct]=p.useState(G()),[He,_e]=p.useState(B()),[nt,I]=p.useState(((Ta=c==null?void 0:c.config)==null?void 0:Ta.url)||""),[je,M]=p.useState(((Cl=c==null?void 0:c.config)==null?void 0:Cl.localPath)||""),[Y,ee]=p.useState(((Cu=c==null?void 0:c.config)==null?void 0:Cu.repoUrl)||""),[ye,Se]=p.useState(((En=c==null?void 0:c.config)==null?void 0:En.zipPath)||""),[x,U]=p.useState(((Nn=c==null?void 0:c.config)==null?void 0:Nn.localPath)||""),[X,k]=p.useState(((jn=c==null?void 0:c.config)==null?void 0:jn.groupId)||""),[le,ie]=p.useState(((Aa=c==null?void 0:c.config)==null?void 0:Aa.artifactId)||""),[fe,Pe]=p.useState(((Ra=c==null?void 0:c.config)==null?void 0:Ra.version)||""),[Me,ta]=p.useState(((zn=c==null?void 0:c.config)==null?void 0:zn.classifier)||"javadoc"),[Al,yn]=p.useState(((Tn=c==null?void 0:c.config)==null?void 0:Tn.localJar)||""),[Sa,It]=p.useState(((Gt=c==null?void 0:c.config)==null?void 0:Gt.repoUrl)||""),[Rl,vn]=p.useState(((Ze=c==null?void 0:c.config)==null?void 0:Ze.sourcePath)||""),[zu,Tu]=p.useState(((Ie=c==null?void 0:c.config)==null?void 0:Ie.zipPath)||""),[la,pn]=p.useState(((ll=c==null?void 0:c.config)==null?void 0:ll.localPath)||""),[aa,Ii]=p.useState(((Ca=c==null?void 0:c.config)==null?void 0:Ca.repoUrl)||""),[gn,st]=p.useState(((Mu=c==null?void 0:c.config)==null?void 0:Mu.localPath)||""),[xn,Au]=p.useState(((Du=c==null?void 0:c.config)==null?void 0:Du.sourcePath)||""),[bn,Ea]=p.useState(((An=c==null?void 0:c.config)==null?void 0:An.branch)||""),[At,Ru]=p.useState(((Ml=c==null?void 0:c.config)==null?void 0:Ml.graphifyEnabled)||!1),[dt,ec]=p.useState(((Ma=c==null?void 0:c.config)==null?void 0:Ma.graphifySourcePath)||""),[el,rt]=p.useState(((al=c==null?void 0:c.config)==null?void 0:al.repoUrl)||""),[Rt,ft]=p.useState(((nl=c==null?void 0:c.config)==null?void 0:nl.localPath)||""),[Sn,tc]=p.useState(((Dl=c==null?void 0:c.config)==null?void 0:Dl.zipPath)||""),[Na,ja]=p.useState(((ul=c==null?void 0:c.config)==null?void 0:ul.sourcePath)||""),[na,za]=p.useState(((Ye=c==null?void 0:c.config)==null?void 0:Ye.branch)||"");if(!i)return null;const tl=async q=>{q.preventDefault(),E(null);let Ve;switch(m){case"zip":if(w==="remote"){if(!nt.trim()){E("URL is required");return}Ve={url:nt.trim()}}else{if(!je.trim()){E("Local path is required");return}Ve={localPath:je.trim()}}break;case"antora":if(P==="git"){if(!Y.trim()){E("Repository URL is required");return}Ve={repoUrl:Y.trim(),graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}else if(P==="localDir"){if(!x.trim()){E("Local path is required");return}Ve={localPath:x.trim(),graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}else{if(!ye.trim()){E("ZIP path is required");return}Ve={zipPath:ye.trim(),graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}break;case"maven":if(!X.trim()||!le.trim()||!fe.trim()){E("Group ID, Artifact ID, and Version are required");return}if(L==="direct")Ve={groupId:X.trim(),artifactId:le.trim(),version:fe.trim(),classifier:Me.trim()||"javadoc"};else if(L==="cli")Ve={groupId:X.trim(),artifactId:le.trim(),version:fe.trim(),classifier:Me.trim()||"javadoc",useMavenCommand:!0};else{if(!Al.trim()){E("Local JAR path is required");return}Ve={groupId:X.trim(),artifactId:le.trim(),version:fe.trim(),classifier:Me.trim()||"javadoc",localJar:Al.trim()}}break;case"asciidoc":if(F==="git"){if(!Sa.trim()){E("Repository URL is required");return}Ve={repoUrl:Sa.trim(),sourcePath:Rl.trim()||void 0,graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}else if(F==="localDir"){if(!la.trim()){E("Local path is required");return}Ve={localPath:la.trim(),sourcePath:Rl.trim()||void 0,graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}else Ve={zipPath:zu.trim(),sourcePath:Rl.trim()||void 0,graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0};break;case"github-markdown":if(De==="git"){if(!aa.trim()){E("Repository URL is required");return}Ve={repoUrl:aa.trim(),sourcePath:xn.trim()||void 0,branch:bn.trim()||void 0,graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}else{if(!gn.trim()){E("Local path is required");return}Ve={localPath:gn.trim(),sourcePath:xn.trim()||void 0,graphifyEnabled:At,graphifySourcePath:dt.trim()||void 0}}break;case"source-code":if(He==="git"){if(!el.trim()){E("Repository URL is required");return}Ve={repoUrl:el.trim(),sourcePath:Na.trim()||void 0,branch:na.trim()||void 0,graphifySourcePath:dt.trim()||void 0}}else if(He==="localDir"){if(!Rt.trim()){E("Local path is required");return}Ve={localPath:Rt.trim(),sourcePath:Na.trim()||void 0,graphifySourcePath:dt.trim()||void 0}}else{if(!Sn.trim()){E("ZIP file path is required");return}Ve={zipPath:Sn.trim(),sourcePath:Na.trim()||void 0,graphifySourcePath:dt.trim()||void 0}}break}y(!0);try{await d({type:m,label:S.trim()||`${Ym[m]} source`,config:Ve}),f()}catch(il){E(il.message)}finally{y(!1)}},be="w-full px-3.5 py-2.5 bg-bg ring-1 ring-border rounded-lg text-sm text-text placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all",ce="block text-sm font-medium text-text mb-2",mt="text-xs text-text-muted mt-1.5",Qe=q=>`flex-1 px-2.5 py-2 rounded-lg text-xs font-medium ring-1 transition-all cursor-pointer text-center ${q?"ring-primary bg-primary/10 text-primary":"ring-border text-text-dim hover:ring-text-muted hover:bg-bg-alt"}`;return r.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[r.jsx("div",{className:"absolute inset-0 bg-black/40 backdrop-blur-sm",onClick:f}),r.jsxs("div",{className:"relative bg-surface ring-1 ring-border rounded-2xl shadow-2xl w-full max-w-md p-6 max-h-[90vh] overflow-auto",children:[r.jsx("h2",{className:"text-lg font-semibold text-text mb-1",children:c?"Edit Source":"Add Source"}),r.jsx("p",{className:"text-sm text-text-dim mb-5",children:"Select the source type and fill in the details."}),r.jsxs("form",{onSubmit:tl,className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Type"}),r.jsx("div",{className:"flex gap-2 flex-wrap",children:["zip","maven","antora","asciidoc","github-markdown","source-code"].map(q=>r.jsx("button",{type:"button",onClick:()=>h(q),className:Qe(m===q),children:Ym[q]},q))})]}),r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Label"}),r.jsx("input",{type:"text",value:S,onChange:q=>A(q.target.value),placeholder:"e.g. API Docs",className:be})]}),m==="zip"&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Source"}),r.jsxs("div",{className:"flex gap-2",children:[r.jsx("button",{type:"button",onClick:()=>$("remote"),className:Qe(w==="remote"),children:"Remote URL"}),r.jsx("button",{type:"button",onClick:()=>$("local"),className:Qe(w==="local"),children:"Local File"})]})]}),w==="remote"?r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"ZIP URL"}),r.jsx("input",{type:"url",value:nt,onChange:q=>I(q.target.value),placeholder:"https://example.com/docs.zip",className:be})]}):r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"File Path"}),r.jsx("input",{type:"text",value:je,onChange:q=>M(q.target.value),placeholder:"/home/user/docs.zip",className:be}),r.jsx("p",{className:mt,children:"Absolute path on the server to a pre-downloaded ZIP file."})]})]}),m==="antora"&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Source"}),r.jsxs("div",{className:"flex gap-1.5",children:[r.jsx("button",{type:"button",onClick:()=>he("git"),className:Qe(P==="git"),children:"Git Repo"}),r.jsx("button",{type:"button",onClick:()=>he("localDir"),className:Qe(P==="localDir"),children:"Local Dir"}),r.jsx("button",{type:"button",onClick:()=>he("zipFile"),className:Qe(P==="zipFile"),children:"ZIP File"})]})]}),P==="git"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Git Repository URL"}),r.jsx("input",{type:"text",value:Y,onChange:q=>ee(q.target.value),placeholder:"https://github.com/spring-projects/spring-boot.git",className:be})]}),P==="localDir"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Directory Path"}),r.jsx("input",{type:"text",value:x,onChange:q=>U(q.target.value),placeholder:"/home/user/repos/spring-boot",className:be}),r.jsx("p",{className:mt,children:"Absolute path to a pre-cloned Antora documentation repository."})]}),P==="zipFile"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"ZIP File Path"}),r.jsx("input",{type:"text",value:ye,onChange:q=>Se(q.target.value),placeholder:"/tmp/antora-content.zip",className:be})]})]}),m==="maven"&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Mode"}),r.jsxs("div",{className:"flex gap-1.5",children:[r.jsx("button",{type:"button",onClick:()=>J("direct"),className:Qe(L==="direct"),children:"Direct Download"}),r.jsx("button",{type:"button",onClick:()=>J("cli"),className:Qe(L==="cli"),children:"Maven CLI"}),r.jsx("button",{type:"button",onClick:()=>J("localJar"),className:Qe(L==="localJar"),children:"Local JAR"})]})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:ce,children:"Group ID"}),r.jsx("input",{type:"text",value:X,onChange:q=>k(q.target.value),placeholder:"io.quarkus",className:be})]}),r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:ce,children:"Artifact ID"}),r.jsx("input",{type:"text",value:le,onChange:q=>ie(q.target.value),placeholder:"quarkus-core-docs",className:be})]})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:ce,children:"Version"}),r.jsx("input",{type:"text",value:fe,onChange:q=>Pe(q.target.value),placeholder:"3.8.0",className:be})]}),r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:ce,children:"Classifier"}),r.jsx("input",{type:"text",value:Me,onChange:q=>ta(q.target.value),placeholder:"javadoc",className:be})]})]}),L==="cli"&&r.jsxs("p",{className:"text-xs text-accent bg-accent/5 ring-1 ring-accent/20 rounded-lg px-3 py-2",children:["Uses ",r.jsx("code",{className:"text-xs bg-accent/10 px-1 rounded",children:"mvn dependency:copy"})," with your local",r.jsx("code",{className:"text-xs bg-accent/10 px-1 rounded ml-1",children:"~/.m2/settings.xml"})," (proxy, mirrors, private repos). Requires Maven installed and in PATH."]}),L==="localJar"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"JAR File Path"}),r.jsx("input",{type:"text",value:Al,onChange:q=>yn(q.target.value),placeholder:"/home/user/.m2/repository/.../library-1.0-javadoc.jar",className:be}),r.jsx("p",{className:mt,children:"Absolute path to a pre-downloaded javadoc JAR."})]})]}),m==="asciidoc"&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Source"}),r.jsxs("div",{className:"flex gap-1.5",children:[r.jsx("button",{type:"button",onClick:()=>Re("git"),className:Qe(F==="git"),children:"Git Repo"}),r.jsx("button",{type:"button",onClick:()=>Re("localDir"),className:Qe(F==="localDir"),children:"Local Dir"}),r.jsx("button",{type:"button",onClick:()=>Re("zipFile"),className:Qe(F==="zipFile"),children:"ZIP File"})]})]}),F==="git"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Repository URL"}),r.jsx("input",{type:"text",value:Sa,onChange:q=>It(q.target.value),placeholder:"https://github.com/quarkusio/quarkus.git",className:be})]}),F==="localDir"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Directory Path"}),r.jsx("input",{type:"text",value:la,onChange:q=>pn(q.target.value),placeholder:"/home/user/repos/quarkus",className:be}),r.jsx("p",{className:mt,children:"Absolute path to a pre-cloned repository with .adoc files."})]}),F==="zipFile"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"ZIP File Path"}),r.jsx("input",{type:"text",value:zu,onChange:q=>Tu(q.target.value),placeholder:"/tmp/docs.zip",className:be})]}),r.jsxs("div",{children:[r.jsxs("label",{className:ce,children:["Source Path ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("input",{type:"text",value:Rl,onChange:q=>vn(q.target.value),placeholder:"e.g. docs/src/main/asciidoc",className:be}),r.jsx("p",{className:mt,children:"Path within the source where .adoc files are located. Leave empty to scan entire source."})]})]}),m==="github-markdown"&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Source"}),r.jsxs("div",{className:"flex gap-1.5",children:[r.jsx("button",{type:"button",onClick:()=>ct("git"),className:Qe(De==="git"),children:"Git Repo"}),r.jsx("button",{type:"button",onClick:()=>ct("localDir"),className:Qe(De==="localDir"),children:"Local Dir"})]})]}),De==="git"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Repository URL"}),r.jsx("input",{type:"text",value:aa,onChange:q=>Ii(q.target.value),placeholder:"https://github.com/reactjs/react.dev.git",className:be})]}),De==="localDir"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Directory Path"}),r.jsx("input",{type:"text",value:gn,onChange:q=>st(q.target.value),placeholder:"/home/user/repos/react.dev",className:be}),r.jsx("p",{className:mt,children:"Absolute path to a pre-cloned repository with .md files."})]}),r.jsxs("div",{children:[r.jsxs("label",{className:ce,children:["Source Path ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("input",{type:"text",value:xn,onChange:q=>Au(q.target.value),placeholder:"e.g. src/content",className:be}),r.jsx("p",{className:mt,children:"Path within the source where .md files are located. Leave empty to scan entire source."})]}),De==="git"&&r.jsxs("div",{children:[r.jsxs("label",{className:ce,children:["Branch ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("input",{type:"text",value:bn,onChange:q=>Ea(q.target.value),placeholder:"e.g. main",className:be}),r.jsx("p",{className:mt,children:"Git branch to clone. Defaults to the repository default branch."})]})]}),m==="source-code"&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Source"}),r.jsxs("div",{className:"flex gap-1.5",children:[r.jsx("button",{type:"button",onClick:()=>_e("git"),className:Qe(He==="git"),children:"Git Repo"}),r.jsx("button",{type:"button",onClick:()=>_e("localDir"),className:Qe(He==="localDir"),children:"Local Dir"}),r.jsx("button",{type:"button",onClick:()=>_e("zipFile"),className:Qe(He==="zipFile"),children:"ZIP File"})]})]}),He==="git"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Repository URL"}),r.jsx("input",{type:"text",value:el,onChange:q=>rt(q.target.value),placeholder:"https://github.com/org/repo.git",className:be})]}),He==="localDir"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"Directory Path"}),r.jsx("input",{type:"text",value:Rt,onChange:q=>ft(q.target.value),placeholder:"/home/user/repos/project",className:be}),r.jsx("p",{className:mt,children:"Absolute path to a pre-cloned repository with source code."})]}),He==="zipFile"&&r.jsxs("div",{children:[r.jsx("label",{className:ce,children:"ZIP File Path"}),r.jsx("input",{type:"text",value:Sn,onChange:q=>tc(q.target.value),placeholder:"/tmp/source-code.zip",className:be})]}),r.jsxs("div",{children:[r.jsxs("label",{className:ce,children:["Source Path ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("input",{type:"text",value:Na,onChange:q=>ja(q.target.value),placeholder:"e.g. src/main/java",className:be}),r.jsx("p",{className:mt,children:"Directory within the source to scan. Leave empty to scan the entire source."})]}),He==="git"&&r.jsxs("div",{children:[r.jsxs("label",{className:ce,children:["Branch ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("input",{type:"text",value:na,onChange:q=>za(q.target.value),placeholder:"e.g. main",className:be}),r.jsx("p",{className:mt,children:"Git branch to clone. Defaults to the repository default branch."})]}),r.jsx("div",{className:"px-3 py-2 bg-accent/5 ring-1 ring-accent/20 rounded-lg text-xs text-accent",children:"Generates a knowledge graph using Graphify (Tree-sitter AST analysis). Supports 15+ languages."})]}),(m==="asciidoc"||m==="github-markdown"||m==="antora")&&r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[r.jsx("input",{type:"checkbox",className:"sr-only peer",checked:At,onChange:q=>Ru(q.target.checked)}),r.jsx("div",{className:"w-9 h-5 bg-bg-alt ring-1 ring-border rounded-full peer peer-checked:bg-primary peer-checked:ring-primary/30 after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:after:translate-x-full"})]}),r.jsx("span",{className:"text-sm font-medium text-text",children:"Generate source code knowledge graph"})]}),At&&r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{children:[r.jsxs("label",{className:ce,children:["Source Code Path ",r.jsx("span",{className:"text-text-muted font-normal",children:"(optional)"})]}),r.jsx("input",{type:"text",value:dt,onChange:q=>ec(q.target.value),placeholder:"e.g. core/src/main/java",className:be}),r.jsx("p",{className:mt,children:"Directory within the repo containing source code. Scan the entire repo if empty (may be slow for large repos)."})]}),r.jsx("div",{className:"px-3 py-2 bg-accent/5 ring-1 ring-accent/20 rounded-lg text-xs text-accent",children:"Runs Graphify (Tree-sitter AST) on the source code to build a structural dependency graph. Auto-installed via pip if not present."})]})]}),T&&r.jsx("div",{className:"px-3 py-2 bg-danger/5 ring-1 ring-danger/20 rounded-lg text-sm text-danger",children:T}),r.jsxs("div",{className:"flex gap-2 justify-end pt-2",children:[r.jsx("button",{type:"button",onClick:f,className:"px-4 py-2 rounded-lg text-sm font-medium text-text-dim hover:bg-bg-alt hover:text-text transition-colors",children:"Cancel"}),r.jsx("button",{type:"submit",disabled:b,className:"px-5 py-2 rounded-lg text-sm font-medium bg-primary text-white hover:bg-primary-hover transition-colors disabled:opacity-50",children:b?"Saving...":c?"Save":"Add Source"})]})]})]})]})}function Vg({entryId:i,refreshKey:f}){const[d,c]=p.useState(null),[m,h]=p.useState(!1),S=p.useRef(null),A=p.useRef(void 0);if(p.useEffect(()=>{const y=async()=>{try{const T=await it.build.status(i);c(T),T.status==="building"&&h(!0),(T.status==="ready"||T.status==="error")&&A.current&&clearInterval(A.current)}catch{}};return y(),A.current=setInterval(y,1500),()=>{A.current&&clearInterval(A.current)}},[i,f]),!d||d.status==="none")return null;const b=d.status==="ready"?"bg-success":d.status==="error"?"bg-danger":"bg-warning";return r.jsxs("div",{className:"bg-surface ring-1 ring-border rounded-lg overflow-hidden",children:[r.jsxs("button",{onClick:()=>h(!m),className:"w-full flex items-center gap-2 px-3 py-2 hover:bg-bg-alt transition-colors text-left",children:[m?r.jsx(gg,{size:14,className:"text-text-muted"}):r.jsx(xg,{size:14,className:"text-text-muted"}),r.jsx(qg,{size:14,className:"text-text-dim"}),r.jsx("span",{className:"text-xs font-medium text-text",children:"Build Log"}),r.jsxs("span",{className:"flex items-center gap-1 ml-auto",children:[d.status==="building"&&r.jsx(ju,{size:12,className:"animate-spin text-warning"}),d.status==="ready"&&r.jsx(Dr,{size:12,className:"text-success"}),d.status==="error"&&r.jsx(Nu,{size:12,className:"text-danger"}),r.jsx("span",{className:`text-[11px] font-medium ${d.status==="ready"?"text-success":d.status==="error"?"text-danger":"text-warning"}`,children:d.status.charAt(0).toUpperCase()+d.status.slice(1)})]})]}),m&&r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-0.5 ${b}`}),r.jsxs("div",{className:"bg-terminal-bg text-terminal-fg p-3 pl-4 max-h-48 overflow-auto font-mono text-[11px] leading-relaxed",children:[r.jsx("pre",{className:"whitespace-pre-wrap",children:d.log||"Waiting for build to start..."}),r.jsx("div",{ref:S})]})]})]})}function kg({entryId:i,onSelectFile:f,scopeLabel:d}){const[c,m]=p.useState(""),[h,S]=p.useState([]),[A,b]=p.useState(!1),[y,T]=p.useState(!1),[E,H]=p.useState(),Q=p.useCallback(async G=>{if(!G.trim()){S([]),T(!1);return}b(!0);try{const B=await it.search(i,G);S(B),T(!0)}catch{}finally{b(!1)}},[i]),Z=G=>{m(G),E&&clearTimeout(E);const B=setTimeout(()=>Q(G),300);H(B)};return r.jsxs("div",{className:"relative",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[d&&r.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-md text-[11px] font-medium text-text-muted bg-bg-alt ring-1 ring-border shrink-0",children:[r.jsx(Tg,{size:10}),d]}),r.jsxs("div",{className:"relative flex-1",children:[r.jsx(mh,{size:16,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-muted"}),r.jsx("input",{type:"text",value:c,onChange:G=>Z(G.target.value),onFocus:()=>h.length>0&&T(!0),placeholder:"Search documentation...",className:"w-full pl-10 pr-3 py-2.5 bg-surface ring-1 ring-border rounded-lg text-sm text-text placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary transition-all"}),A&&r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:r.jsx("div",{className:"w-4 h-4 border-2 border-border border-t-primary rounded-full animate-spin"})})]})]}),y&&h.length>0&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>T(!1)}),r.jsx("div",{className:"absolute z-20 top-full mt-2 w-full bg-surface ring-1 ring-border rounded-xl shadow-lg max-h-80 overflow-auto",children:h.map((G,B)=>r.jsxs("button",{type:"button",onClick:()=>{f(G.path),T(!1)},className:"flex items-start gap-3 px-4 py-3 hover:bg-bg-alt transition-colors border-b border-border last:border-b-0 w-full text-left cursor-pointer",children:[r.jsx(Pi,{size:16,className:"text-text-muted mt-0.5 shrink-0"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("div",{className:"text-sm font-medium text-text truncate",children:G.title}),r.jsx("div",{className:"text-xs text-text-dim mt-0.5 line-clamp-2",children:G.snippet})]})]},B))})]}),y&&c&&!A&&h.length===0&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>T(!1)}),r.jsxs("div",{className:"absolute z-20 top-full mt-2 w-full bg-surface ring-1 ring-border rounded-xl shadow-lg p-4 text-center text-sm text-text-dim",children:["No results found for “",c,"”"]})]})]})}function Kg({entryId:i,selectedFile:f}){const[d,c]=p.useState(!1),[m,h]=p.useState(!1),S=f?`${it.bundleUrl(i)}${f}`:it.bundleUrl(i);return p.useEffect(()=>{h(!1)},[f]),f?m?r.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 text-center",children:[r.jsx("div",{className:"w-14 h-14 rounded-2xl bg-bg-alt flex items-center justify-center",children:r.jsx(zg,{size:26,className:"text-text-muted"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-text-dim font-medium",children:"Could not load document"}),r.jsx("p",{className:"text-xs text-text-muted mt-1",children:"The documentation may not be built yet. Click “Build” to generate it."})]})]}):r.jsxs("div",{className:`flex flex-col h-full ${d?"fixed inset-0 z-40 bg-bg p-4":""}`,children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2 shrink-0",children:[r.jsx("span",{className:"text-xs text-text-muted font-mono truncate flex-1",children:f}),r.jsx("button",{onClick:()=>c(!d),className:"p-1 rounded text-text-muted hover:text-text hover:bg-bg-alt transition-colors",title:d?"Exit fullscreen":"Fullscreen",children:d?r.jsx(Mg,{size:14}):r.jsx(Cg,{size:14})}),r.jsx("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"p-1 rounded text-text-muted hover:text-text hover:bg-bg-alt transition-colors",title:"Open in new tab",children:r.jsx(Eg,{size:14})})]}),r.jsx("iframe",{src:S,onError:()=>h(!0),className:"flex-1 w-full ring-1 ring-border rounded-lg bg-surface min-h-0",title:"Documentation Viewer"})]}):r.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3 text-center",children:[r.jsx("div",{className:"w-14 h-14 rounded-2xl bg-bg-alt flex items-center justify-center",children:r.jsx(Pi,{size:26,className:"text-text-muted"})}),r.jsxs("div",{children:[r.jsx("p",{className:"text-sm text-text-dim font-medium",children:"No document selected"}),r.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Search for a document and click a result to view it here."})]})]})}const Jg={zip:Ng,antora:Ag,maven:Og,asciidoc:Pi,"github-markdown":Rg,"source-code":jg},$g={zip:"ZIP",antora:"Antora",maven:"Maven",asciidoc:"AsciiDoc","github-markdown":"GitHub Markdown","source-code":"Source Code"},Gm={pending:{icon:dh,color:"text-text-muted",bg:"bg-bg-alt",label:"Pending"},building:{icon:ju,color:"text-warning",bg:"bg-warning/5",label:"Building"},ready:{icon:Dr,color:"text-success",bg:"bg-success/5",label:"Ready"},error:{icon:Nu,color:"text-danger",bg:"bg-danger/5",label:"Error"}};function Fg(){const{id:i}=lh(),f=hn(),[d]=rg(),[c,m]=p.useState(null),[h,S]=p.useState(!0),[A,b]=p.useState(null),[y,T]=p.useState(!1),[E,H]=p.useState(null),[Q,Z]=p.useState(0),[G,B]=p.useState(0),[w,$]=p.useState(null),[L,J]=p.useState(void 0),P=p.useCallback(async()=>{if(i)try{const I=await it.entries.get(i);m(I),b(null)}catch(I){b(I.message)}finally{S(!1)}},[i]);p.useEffect(()=>{P()},[P]),p.useEffect(()=>{const I=d.get("doc");I&&J(I)},[d]);const he=async()=>{if(c&&confirm(`Delete entry "${c.name}" and all its data permanently?`))try{await it.entries.delete(c.id),f("/")}catch(I){alert(`Failed to delete: ${I.message}`)}},F=async I=>{c&&(await it.sources.create(c.id,I),await P())},Re=async I=>{E&&(await it.sources.update(E.id,{label:I.label,config:I.config}),H(null),await P())},De=async I=>{confirm(`Remove source "${I.label}"?`)&&(await it.sources.delete(I.id),await P())},ct=async()=>{if(c)try{await it.build.trigger(c.id),B(I=>I+1),await P()}catch(I){alert(`Build failed: ${I.message}`)}},He=async()=>{if(c)try{const I=await it.build.cliScript(c.id),je=new Blob([I],{type:"text/plain"}),M=URL.createObjectURL(je),Y=document.createElement("a");Y.href=M;const ee=c.name.toLowerCase().replace(/[^a-z0-9]+/g,"-");Y.download=`dockit-build-${ee}.sh`,Y.click(),URL.revokeObjectURL(M)}catch(I){alert(`Failed to generate script: ${I.message}`)}};if(h)return r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx(ju,{size:24,className:"animate-spin text-text-muted"})});if(A||!c)return r.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-3",children:[r.jsx(Nu,{size:32,className:"text-danger"}),r.jsx("p",{className:"text-sm text-danger",children:A||"Entry not found"}),r.jsx(zl,{to:"/",className:"text-sm text-primary hover:underline",children:"Back to entries"})]});const _e=Gm[c.status]||Gm.pending,nt=_e.icon;return r.jsxs("div",{className:"flex h-full",children:[r.jsxs("div",{className:"w-[420px] shrink-0 border-r border-border overflow-auto p-5",children:[r.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[r.jsx("button",{onClick:()=>f("/"),className:"p-1.5 rounded-md text-text-dim hover:text-text hover:bg-bg-alt transition-colors",children:r.jsx(fh,{size:16})}),r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx("h1",{className:"text-lg font-semibold text-text truncate",children:c.name})}),r.jsx(zl,{to:`/entries/${c.id}/edit`,className:"p-1.5 rounded-md text-text-dim hover:text-text hover:bg-bg-alt transition-colors",title:"Edit",children:r.jsx(Ug,{size:14})}),r.jsx("button",{onClick:he,className:"p-1.5 rounded-md text-text-dim hover:text-danger hover:bg-danger/5 transition-colors",title:"Delete",children:r.jsx(hh,{size:14})})]}),r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx("span",{className:"text-xs text-text-dim font-mono bg-bg-alt px-2 py-0.5 rounded",children:c.version}),r.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium ${_e.color} ${_e.bg}`,children:[r.jsx(nt,{size:11,className:c.status==="building"?"animate-spin":""}),_e.label]})]}),c.description&&r.jsx("p",{className:"text-sm text-text-dim mb-4 leading-relaxed",children:c.description}),r.jsxs("div",{className:"flex gap-2 mb-5",children:[r.jsxs("button",{onClick:ct,disabled:c.status==="building",className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-sm font-medium bg-primary text-white hover:bg-primary-hover transition-colors disabled:opacity-50",children:[r.jsx(Hg,{size:14}),"Build"]}),r.jsx("button",{onClick:He,className:"flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-sm font-medium ring-1 ring-border text-text-dim hover:bg-bg-alt hover:text-text transition-colors",title:"Download CLI script",children:r.jsx(bg,{size:14})})]}),r.jsxs("div",{className:"mb-4",children:[r.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[r.jsxs("h3",{className:"text-xs font-semibold text-text-dim uppercase tracking-wider",children:["Sources (",c.sources.length,")"]}),r.jsxs("button",{onClick:()=>{H(null),Z(I=>I+1),T(!0)},className:"flex items-center gap-1 px-2 py-1 rounded-md text-xs font-medium text-primary hover:bg-primary/10 transition-colors",children:[r.jsx($i,{size:12}),"Add"]})]}),c.sources.length===0?r.jsx("div",{className:"bg-bg-alt ring-1 ring-border rounded-lg p-4 text-center",children:r.jsx("p",{className:"text-xs text-text-muted",children:"No sources yet"})}):r.jsx("div",{className:"space-y-1.5",children:c.sources.map(I=>{var M;const je=Jg[I.type];return r.jsxs("div",{className:"flex items-center gap-2.5 bg-surface ring-1 ring-border rounded-lg px-3 py-2 group/src",children:[r.jsx(je,{size:14,className:"text-text-muted shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-sm font-medium text-text truncate",children:I.label}),r.jsx("p",{className:"text-[11px] text-text-muted font-mono truncate",children:Wg(I)})]}),r.jsx("span",{className:"text-[10px] text-text-muted uppercase tracking-wider shrink-0",children:$g[I.type]}),!!((M=I.config)!=null&&M.graphifyEnabled)&&r.jsx(_g,{size:11,className:"text-accent shrink-0","aria-label":"Knowledge graph enabled"}),r.jsxs("div",{className:"relative",children:[r.jsx("button",{onClick:()=>$(w===I.id?null:I.id),className:"p-1 rounded text-text-muted hover:text-text opacity-0 group-hover/src:opacity-100 transition-all",children:r.jsx(Sg,{size:13})}),w===I.id&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-10",onClick:()=>$(null)}),r.jsxs("div",{className:"absolute right-0 top-full mt-1 z-20 bg-surface ring-1 ring-border rounded-lg shadow-lg py-1 w-28",children:[r.jsx("button",{onClick:()=>{H(I),Z(Y=>Y+1),T(!0),$(null)},className:"w-full text-left px-3 py-1.5 text-xs text-text hover:bg-bg-alt transition-colors",children:"Edit"}),r.jsx("button",{onClick:()=>{De(I),$(null)},className:"w-full text-left px-3 py-1.5 text-xs text-danger hover:bg-danger/5 transition-colors",children:"Remove"})]})]})]})]},I.id)})})]}),r.jsx(Vg,{entryId:c.id,refreshKey:G})]}),r.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[r.jsx("div",{className:"p-4 border-b border-border",children:r.jsx(kg,{entryId:c.id,onSelectFile:J,scopeLabel:"Entry only"})}),r.jsx("div",{className:"flex-1 overflow-auto p-4",children:r.jsx(Kg,{entryId:c.id,selectedFile:L})})]}),r.jsx(Zg,{open:y,onClose:()=>{T(!1),H(null)},onCreate:E?Re:F,initial:E?{type:E.type,label:E.label,config:E.config}:void 0},Q)]})}function Wg(i){const f=i.config;switch(i.type){case"zip":return f.localPath||f.url||"";case"maven":return`${f.groupId||"?"}:${f.artifactId||"?"}:${f.version||"?"}`;case"antora":return f.localPath||f.repoUrl||f.zipPath||"";case"asciidoc":return f.localPath||f.repoUrl||f.zipPath||"";case"github-markdown":return f.localPath||f.repoUrl||"";case"source-code":return f.localPath||f.repoUrl||f.zipPath||""}}function Pg(){return r.jsx(Xg,{children:r.jsxs(Op,{children:[r.jsx(gu,{path:"/",element:r.jsx(Qg,{})}),r.jsx(gu,{path:"/entries/new",element:r.jsx(wm,{})}),r.jsx(gu,{path:"/entries/:id/edit",element:r.jsx(wm,{})}),r.jsx(gu,{path:"/entries/:id",element:r.jsx(Fg,{})})]})})}Hv.createRoot(document.getElementById("root")).render(r.jsx(Av.StrictMode,{children:r.jsx(ng,{children:r.jsx(Pg,{})})}));
|