@openparachute/vault 0.4.9-rc.7 → 0.4.9-rc.8
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/package.json +1 -1
- package/src/mirror-import.test.ts +550 -0
- package/src/mirror-import.ts +484 -0
- package/src/mirror-routes.test.ts +318 -0
- package/src/mirror-routes.ts +215 -0
- package/src/routing.ts +25 -0
- package/web/ui/dist/assets/index-CudVv0Mv.js +60 -0
- package/web/ui/dist/index.html +1 -1
- package/web/ui/dist/assets/index-B1DwjHsG.js +0 -60
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const m of h)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&o(y)}).observe(document,{childList:!0,subtree:!0});function f(h){const m={};return h.integrity&&(m.integrity=h.integrity),h.referrerPolicy&&(m.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?m.credentials="include":h.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(h){if(h.ep)return;h.ep=!0;const m=f(h);fetch(h.href,m)}})();var Us={exports:{}},Un={};/**
|
|
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 uh;function Ey(){if(uh)return Un;uh=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function f(o,h,m){var y=null;if(m!==void 0&&(y=""+m),h.key!==void 0&&(y=""+h.key),"key"in h){m={};for(var _ in h)_!=="key"&&(m[_]=h[_])}else m=h;return h=m.ref,{$$typeof:i,type:o,key:y,ref:h!==void 0?h:null,props:m}}return Un.Fragment=r,Un.jsx=f,Un.jsxs=f,Un}var ih;function Ty(){return ih||(ih=1,Us.exports=Ey()),Us.exports}var c=Ty(),ws={exports:{}},te={};/**
|
|
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 ch;function _y(){if(ch)return te;ch=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),M=Symbol.iterator;function Y(E){return E===null||typeof E!="object"?null:(E=M&&E[M]||E["@@iterator"],typeof E=="function"?E:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,X={};function G(E,w,V){this.props=E,this.context=w,this.refs=X,this.updater=V||H}G.prototype.isReactComponent={},G.prototype.setState=function(E,w){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,w,"setState")},G.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function I(){}I.prototype=G.prototype;function W(E,w,V){this.props=E,this.context=w,this.refs=X,this.updater=V||H}var L=W.prototype=new I;L.constructor=W,B(L,G.prototype),L.isPureReactComponent=!0;var q=Array.isArray;function K(){}var k={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function Le(E,w,V){var J=V.ref;return{$$typeof:i,type:E,key:w,ref:J!==void 0?J:null,props:V}}function wt(E,w){return Le(E.type,w,E.props)}function pt(E){return typeof E=="object"&&E!==null&&E.$$typeof===i}function $e(E){var w={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(V){return w[V]})}var Ht=/\/+/g;function gt(E,w){return typeof E=="object"&&E!==null&&E.key!=null?$e(""+E.key):w.toString(36)}function Ue(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(K,K):(E.status="pending",E.then(function(w){E.status==="pending"&&(E.status="fulfilled",E.value=w)},function(w){E.status==="pending"&&(E.status="rejected",E.reason=w)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function O(E,w,V,J,le){var ue=typeof E;(ue==="undefined"||ue==="boolean")&&(E=null);var me=!1;if(E===null)me=!0;else switch(ue){case"bigint":case"string":case"number":me=!0;break;case"object":switch(E.$$typeof){case i:case r:me=!0;break;case j:return me=E._init,O(me(E._payload),w,V,J,le)}}if(me)return le=le(E),me=J===""?"."+gt(E,0):J,q(le)?(V="",me!=null&&(V=me.replace(Ht,"$&/")+"/"),O(le,w,V,"",function(Ya){return Ya})):le!=null&&(pt(le)&&(le=wt(le,V+(le.key==null||E&&E.key===le.key?"":(""+le.key).replace(Ht,"$&/")+"/")+me)),w.push(le)),1;me=0;var Fe=J===""?".":J+":";if(q(E))for(var Me=0;Me<E.length;Me++)J=E[Me],ue=Fe+gt(J,Me),me+=O(J,w,V,ue,le);else if(Me=Y(E),typeof Me=="function")for(E=Me.call(E),Me=0;!(J=E.next()).done;)J=J.value,ue=Fe+gt(J,Me++),me+=O(J,w,V,ue,le);else if(ue==="object"){if(typeof E.then=="function")return O(Ue(E),w,V,J,le);throw w=String(E),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return me}function Q(E,w,V){if(E==null)return E;var J=[],le=0;return O(E,J,"","",function(ue){return w.call(V,ue,le++)}),J}function ee(E){if(E._status===-1){var w=E._result;w=w(),w.then(function(V){(E._status===0||E._status===-1)&&(E._status=1,E._result=V)},function(V){(E._status===0||E._status===-1)&&(E._status=2,E._result=V)}),E._status===-1&&(E._status=0,E._result=w)}if(E._status===1)return E._result.default;throw E._result}var pe=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=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(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},xe={map:Q,forEach:function(E,w,V){Q(E,function(){w.apply(this,arguments)},V)},count:function(E){var w=0;return Q(E,function(){w++}),w},toArray:function(E){return Q(E,function(w){return w})||[]},only:function(E){if(!pt(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return te.Activity=S,te.Children=xe,te.Component=G,te.Fragment=f,te.Profiler=h,te.PureComponent=W,te.StrictMode=o,te.Suspense=g,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,te.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},te.cache=function(E){return function(){return E.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(E,w,V){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var J=B({},E.props),le=E.key;if(w!=null)for(ue in w.key!==void 0&&(le=""+w.key),w)!Te.call(w,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&w.ref===void 0||(J[ue]=w[ue]);var ue=arguments.length-2;if(ue===1)J.children=V;else if(1<ue){for(var me=Array(ue),Fe=0;Fe<ue;Fe++)me[Fe]=arguments[Fe+2];J.children=me}return Le(E.type,le,J)},te.createContext=function(E){return E={$$typeof:y,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:m,_context:E},E},te.createElement=function(E,w,V){var J,le={},ue=null;if(w!=null)for(J in w.key!==void 0&&(ue=""+w.key),w)Te.call(w,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(le[J]=w[J]);var me=arguments.length-2;if(me===1)le.children=V;else if(1<me){for(var Fe=Array(me),Me=0;Me<me;Me++)Fe[Me]=arguments[Me+2];le.children=Fe}if(E&&E.defaultProps)for(J in me=E.defaultProps,me)le[J]===void 0&&(le[J]=me[J]);return Le(E,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(E){return{$$typeof:_,render:E}},te.isValidElement=pt,te.lazy=function(E){return{$$typeof:j,_payload:{_status:-1,_result:E},_init:ee}},te.memo=function(E,w){return{$$typeof:v,type:E,compare:w===void 0?null:w}},te.startTransition=function(E){var w=k.T,V={};k.T=V;try{var J=E(),le=k.S;le!==null&&le(V,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(K,pe)}catch(ue){pe(ue)}finally{w!==null&&V.types!==null&&(w.types=V.types),k.T=w}},te.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},te.use=function(E){return k.H.use(E)},te.useActionState=function(E,w,V){return k.H.useActionState(E,w,V)},te.useCallback=function(E,w){return k.H.useCallback(E,w)},te.useContext=function(E){return k.H.useContext(E)},te.useDebugValue=function(){},te.useDeferredValue=function(E,w){return k.H.useDeferredValue(E,w)},te.useEffect=function(E,w){return k.H.useEffect(E,w)},te.useEffectEvent=function(E){return k.H.useEffectEvent(E)},te.useId=function(){return k.H.useId()},te.useImperativeHandle=function(E,w,V){return k.H.useImperativeHandle(E,w,V)},te.useInsertionEffect=function(E,w){return k.H.useInsertionEffect(E,w)},te.useLayoutEffect=function(E,w){return k.H.useLayoutEffect(E,w)},te.useMemo=function(E,w){return k.H.useMemo(E,w)},te.useOptimistic=function(E,w){return k.H.useOptimistic(E,w)},te.useReducer=function(E,w,V){return k.H.useReducer(E,w,V)},te.useRef=function(E){return k.H.useRef(E)},te.useState=function(E){return k.H.useState(E)},te.useSyncExternalStore=function(E,w,V){return k.H.useSyncExternalStore(E,w,V)},te.useTransition=function(){return k.H.useTransition()},te.version="19.2.5",te}var sh;function Zs(){return sh||(sh=1,ws.exports=_y()),ws.exports}var x=Zs(),Hs={exports:{}},wn={},Bs={exports:{}},qs={};/**
|
|
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 rh;function Ny(){return rh||(rh=1,(function(i){function r(O,Q){var ee=O.length;O.push(Q);e:for(;0<ee;){var pe=ee-1>>>1,xe=O[pe];if(0<h(xe,Q))O[pe]=Q,O[ee]=xe,ee=pe;else break e}}function f(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Q=O[0],ee=O.pop();if(ee!==Q){O[0]=ee;e:for(var pe=0,xe=O.length,E=xe>>>1;pe<E;){var w=2*(pe+1)-1,V=O[w],J=w+1,le=O[J];if(0>h(V,ee))J<xe&&0>h(le,V)?(O[pe]=le,O[J]=ee,pe=J):(O[pe]=V,O[w]=ee,pe=w);else if(J<xe&&0>h(le,ee))O[pe]=le,O[J]=ee,pe=J;else break e}}return Q}function h(O,Q){var ee=O.sortIndex-Q.sortIndex;return ee!==0?ee:O.id-Q.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var y=Date,_=y.now();i.unstable_now=function(){return y.now()-_}}var g=[],v=[],j=1,S=null,M=3,Y=!1,H=!1,B=!1,X=!1,G=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,W=typeof setImmediate<"u"?setImmediate:null;function L(O){for(var Q=f(v);Q!==null;){if(Q.callback===null)o(v);else if(Q.startTime<=O)o(v),Q.sortIndex=Q.expirationTime,r(g,Q);else break;Q=f(v)}}function q(O){if(B=!1,L(O),!H)if(f(g)!==null)H=!0,K||(K=!0,$e());else{var Q=f(v);Q!==null&&Ue(q,Q.startTime-O)}}var K=!1,k=-1,Te=5,Le=-1;function wt(){return X?!0:!(i.unstable_now()-Le<Te)}function pt(){if(X=!1,K){var O=i.unstable_now();Le=O;var Q=!0;try{e:{H=!1,B&&(B=!1,I(k),k=-1),Y=!0;var ee=M;try{t:{for(L(O),S=f(g);S!==null&&!(S.expirationTime>O&&wt());){var pe=S.callback;if(typeof pe=="function"){S.callback=null,M=S.priorityLevel;var xe=pe(S.expirationTime<=O);if(O=i.unstable_now(),typeof xe=="function"){S.callback=xe,L(O),Q=!0;break t}S===f(g)&&o(g),L(O)}else o(g);S=f(g)}if(S!==null)Q=!0;else{var E=f(v);E!==null&&Ue(q,E.startTime-O),Q=!1}}break e}finally{S=null,M=ee,Y=!1}Q=void 0}}finally{Q?$e():K=!1}}}var $e;if(typeof W=="function")$e=function(){W(pt)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,gt=Ht.port2;Ht.port1.onmessage=pt,$e=function(){gt.postMessage(null)}}else $e=function(){G(pt,0)};function Ue(O,Q){k=G(function(){O(i.unstable_now())},Q)}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(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Te=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return M},i.unstable_next=function(O){switch(M){case 1:case 2:case 3:var Q=3;break;default:Q=M}var ee=M;M=Q;try{return O()}finally{M=ee}},i.unstable_requestPaint=function(){X=!0},i.unstable_runWithPriority=function(O,Q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var ee=M;M=O;try{return Q()}finally{M=ee}},i.unstable_scheduleCallback=function(O,Q,ee){var pe=i.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?pe+ee:pe):ee=pe,O){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=ee+xe,O={id:j++,callback:Q,priorityLevel:O,startTime:ee,expirationTime:xe,sortIndex:-1},ee>pe?(O.sortIndex=ee,r(v,O),f(g)===null&&O===f(v)&&(B?(I(k),k=-1):B=!0,Ue(q,ee-pe))):(O.sortIndex=xe,r(g,O),H||Y||(H=!0,K||(K=!0,$e()))),O},i.unstable_shouldYield=wt,i.unstable_wrapCallback=function(O){var Q=M;return function(){var ee=M;M=Q;try{return O.apply(this,arguments)}finally{M=ee}}}})(qs)),qs}var oh;function zy(){return oh||(oh=1,Bs.exports=Ny()),Bs.exports}var Ls={exports:{}},We={};/**
|
|
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 fh;function Ry(){if(fh)return We;fh=1;var i=Zs();function r(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)v+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(){}var o={d:{f,r:function(){throw Error(r(522))},D:f,C:f,L:f,m:f,X:f,S:f,M:f},p:0,findDOMNode:null},h=Symbol.for("react.portal");function m(g,v,j){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:S==null?null:""+S,children:g,containerInfo:v,implementation:j}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return We.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,We.createPortal=function(g,v){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(r(299));return m(g,v,null,j)},We.flushSync=function(g){var v=y.T,j=o.p;try{if(y.T=null,o.p=2,g)return g()}finally{y.T=v,o.p=j,o.d.f()}},We.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(g,v))},We.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},We.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var j=v.as,S=_(j,v.crossOrigin),M=typeof v.integrity=="string"?v.integrity:void 0,Y=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;j==="style"?o.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:S,integrity:M,fetchPriority:Y}):j==="script"&&o.d.X(g,{crossOrigin:S,integrity:M,fetchPriority:Y,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},We.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var j=_(v.as,v.crossOrigin);o.d.M(g,{crossOrigin:j,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(g)},We.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var j=v.as,S=_(j,v.crossOrigin);o.d.L(g,j,{crossOrigin:S,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},We.preloadModule=function(g,v){if(typeof g=="string")if(v){var j=_(v.as,v.crossOrigin);o.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:j,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(g)},We.requestFormReset=function(g){o.d.r(g)},We.unstable_batchedUpdates=function(g,v){return g(v)},We.useFormState=function(g,v,j){return y.H.useFormState(g,v,j)},We.useFormStatus=function(){return y.H.useHostTransitionStatus()},We.version="19.2.5",We}var dh;function Ay(){if(dh)return Ls.exports;dh=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(r){console.error(r)}}return i(),Ls.exports=Ry(),Ls.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 hh;function Cy(){if(hh)return wn;hh=1;var i=zy(),r=Zs(),f=Ay();function o(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 h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(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 y(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 _(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 g(e){if(m(e)!==e)throw Error(o(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(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 g(n),e;if(u===a)return g(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,d=n.child;d;){if(d===l){s=!0,l=n,a=u;break}if(d===a){s=!0,a=n,l=u;break}d=d.sibling}if(!s){for(d=u.child;d;){if(d===l){s=!0,l=u,a=n;break}if(d===a){s=!0,a=u,l=n;break}d=d.sibling}if(!s)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,M=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),W=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),Le=Symbol.for("react.activity"),wt=Symbol.for("react.memo_cache_sentinel"),pt=Symbol.iterator;function $e(e){return e===null||typeof e!="object"?null:(e=pt&&e[pt]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Symbol.for("react.client.reference");function gt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ht?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case G:return"Profiler";case X:return"StrictMode";case q:return"Suspense";case K:return"SuspenseList";case Le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case H:return"Portal";case W:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:gt(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return gt(e(t))}catch{}}return null}var Ue=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=f.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},pe=[],xe=-1;function E(e){return{current:e}}function w(e){0>xe||(e.current=pe[xe],pe[xe]=null,xe--)}function V(e,t){xe++,pe[xe]=e.current,e.current=t}var J=E(null),le=E(null),ue=E(null),me=E(null);function Fe(e,t){switch(V(ue,t),V(le,e),V(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rd(t),e=Ad(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w(J),V(J,e)}function Me(){w(J),w(le),w(ue)}function Ya(e){e.memoizedState!==null&&V(me,e);var t=J.current,l=Ad(t,e.type);t!==l&&(V(le,e),V(J,l))}function Xn(e){le.current===e&&(w(J),w(le)),me.current===e&&(w(me),Cn._currentValue=ee)}var yi,lr;function wl(e){if(yi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);yi=t&&t[1]||"",lr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+yi+e+lr}var pi=!1;function gi(e,t){if(!e||pi)return"";pi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(A){var R=A}Reflect.construct(e,[],U)}else{try{U.call()}catch(A){R=A}e.call(U.prototype)}}else{try{throw Error()}catch(A){R=A}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(A){if(A&&R&&typeof A.stack=="string")return[A.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],d=u[1];if(s&&d){var p=s.split(`
|
|
44
|
+
`),z=d.split(`
|
|
45
|
+
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<z.length&&!z[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===z.length)for(a=p.length-1,n=z.length-1;1<=a&&0<=n&&p[a]!==z[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==z[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==z[n]){var C=`
|
|
46
|
+
`+p[a].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=a&&0<=n);break}}}finally{pi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?wl(l):""}function em(e,t){switch(e.tag){case 26:case 27:case 5:return wl(e.type);case 16:return wl("Lazy");case 13:return e.child!==t&&t!==null?wl("Suspense Fallback"):wl("Suspense");case 19:return wl("SuspenseList");case 0:case 15:return gi(e.type,!1);case 11:return gi(e.type.render,!1);case 1:return gi(e.type,!0);case 31:return wl("Activity");default:return""}}function ar(e){try{var t="",l=null;do t+=em(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var bi=Object.prototype.hasOwnProperty,Si=i.unstable_scheduleCallback,xi=i.unstable_cancelCallback,tm=i.unstable_shouldYield,lm=i.unstable_requestPaint,it=i.unstable_now,am=i.unstable_getCurrentPriorityLevel,nr=i.unstable_ImmediatePriority,ur=i.unstable_UserBlockingPriority,Qn=i.unstable_NormalPriority,nm=i.unstable_LowPriority,ir=i.unstable_IdlePriority,um=i.log,im=i.unstable_setDisableYieldValue,Ga=null,ct=null;function ol(e){if(typeof um=="function"&&im(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(Ga,e)}catch{}}var st=Math.clz32?Math.clz32:rm,cm=Math.log,sm=Math.LN2;function rm(e){return e>>>=0,e===0?32:31-(cm(e)/sm|0)|0}var Vn=256,kn=262144,Zn=4194304;function Hl(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 Kn(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 d=a&134217727;return d!==0?(a=d&~u,a!==0?n=Hl(a):(s&=d,s!==0?n=Hl(s):l||(l=d&~e,l!==0&&(n=Hl(l))))):(d=a&~u,d!==0?n=Hl(d):s!==0?n=Hl(s):l||(l=a&~e,l!==0&&(n=Hl(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 Xa(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function om(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 cr(){var e=Zn;return Zn<<=1,(Zn&62914560)===0&&(Zn=4194304),e}function ji(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Qa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function fm(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 d=e.entanglements,p=e.expirationTimes,z=e.hiddenUpdates;for(l=s&~l;0<l;){var C=31-st(l),U=1<<C;d[C]=0,p[C]=-1;var R=z[C];if(R!==null)for(z[C]=null,C=0;C<R.length;C++){var A=R[C];A!==null&&(A.lane&=-536870913)}l&=~U}a!==0&&sr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function sr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-st(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function rr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-st(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function or(e,t){var l=t&-t;return l=(l&42)!==0?1:Ei(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ei(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 Ti(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fr(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Id(e.type))}function dr(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var fl=Math.random().toString(36).slice(2),Qe="__reactFiber$"+fl,Pe="__reactProps$"+fl,ea="__reactContainer$"+fl,_i="__reactEvents$"+fl,dm="__reactListeners$"+fl,hm="__reactHandles$"+fl,hr="__reactResources$"+fl,Va="__reactMarker$"+fl;function Ni(e){delete e[Qe],delete e[Pe],delete e[_i],delete e[dm],delete e[hm]}function ta(e){var t=e[Qe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ea]||l[Qe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Hd(e);e!==null;){if(l=e[Qe])return l;e=Hd(e)}return t}e=l,l=e.parentNode}return null}function la(e){if(e=e[Qe]||e[ea]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ka(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function aa(e){var t=e[hr];return t||(t=e[hr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[Va]=!0}var mr=new Set,vr={};function Bl(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(vr[e]=t,e=0;e<t.length;e++)mr.add(t[e])}var mm=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]*$"),yr={},pr={};function vm(e){return bi.call(pr,e)?!0:bi.call(yr,e)?!1:mm.test(e)?pr[e]=!0:(yr[e]=!0,!1)}function Jn(e,t,l){if(vm(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 $n(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 Vt(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 bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ym(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 zi(e){if(!e._valueTracker){var t=gr(e)?"checked":"value";e._valueTracker=ym(e,t,""+e[t])}}function br(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=gr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Wn(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 pm=/[\n"\\]/g;function St(e){return e.replace(pm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ri(e,t,l,a,n,u,s,d){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=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Ai(e,s,bt(t)):l!=null?Ai(e,s,bt(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+bt(d):e.removeAttribute("name")}function Sr(e,t,l,a,n,u,s,d){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)){zi(e);return}l=l!=null?""+bt(l):"",t=t!=null?""+bt(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),zi(e)}function Ai(e,t,l){t==="number"&&Wn(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ua(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=""+bt(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 xr(e,t,l){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+bt(l):""}function jr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(Ue(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=bt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),zi(e)}function ia(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var gm=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 Er(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||gm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Tr(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(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&&Er(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Er(e,u,t[u])}function Ci(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 bm=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"]]),Sm=/^[\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 Fn(e){return Sm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function kt(){}var Mi=null;function Oi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,sa=null;function _r(e){var t=la(e);if(t&&(e=t.stateNode)){var l=e[Pe]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ri(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="'+St(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Pe]||null;if(!n)throw Error(o(90));Ri(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&&br(a)}break e;case"textarea":xr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ua(e,!!l.multiple,t,!1)}}}var Di=!1;function Nr(e,t,l){if(Di)return e(t,l);Di=!0;try{var a=e(t);return a}finally{if(Di=!1,(ca!==null||sa!==null)&&(qu(),ca&&(t=ca,e=sa,sa=ca=null,_r(t),e)))for(t=0;t<e.length;t++)_r(e[t])}}function Za(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Pe]||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(o(231,t,typeof l));return l}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ui=!1;if(Zt)try{var Ka={};Object.defineProperty(Ka,"passive",{get:function(){Ui=!0}}),window.addEventListener("test",Ka,Ka),window.removeEventListener("test",Ka,Ka)}catch{Ui=!1}var dl=null,wi=null,In=null;function zr(){if(In)return In;var e,t=wi,l=t.length,a,n="value"in dl?dl.value:dl.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 In=n.slice(e,1<a?1-a:void 0)}function Pn(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 eu(){return!0}function Rr(){return!1}function et(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 d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(u):u[d]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?eu:Rr,this.isPropagationStopped=Rr,this}return S(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=eu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=eu)},persist:function(){},isPersistent:eu}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tu=et(ql),Ja=S({},ql,{view:0,detail:0}),xm=et(Ja),Hi,Bi,$a,lu=S({},Ja,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Li,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!==$a&&($a&&e.type==="mousemove"?(Hi=e.screenX-$a.screenX,Bi=e.screenY-$a.screenY):Bi=Hi=0,$a=e),Hi)},movementY:function(e){return"movementY"in e?e.movementY:Bi}}),Ar=et(lu),jm=S({},lu,{dataTransfer:0}),Em=et(jm),Tm=S({},Ja,{relatedTarget:0}),qi=et(Tm),_m=S({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),Nm=et(_m),zm=S({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rm=et(zm),Am=S({},ql,{data:0}),Cr=et(Am),Cm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mm={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"},Om={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Om[e])?!!t[e]:!1}function Li(){return Dm}var Um=S({},Ja,{key:function(e){if(e.key){var t=Cm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pn(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Li,charCode:function(e){return e.type==="keypress"?Pn(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pn(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wm=et(Um),Hm=S({},lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mr=et(Hm),Bm=S({},Ja,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Li}),qm=et(Bm),Lm=S({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ym=et(Lm),Gm=S({},lu,{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}),Xm=et(Gm),Qm=S({},ql,{newState:0,oldState:0}),Vm=et(Qm),km=[9,13,27,32],Yi=Zt&&"CompositionEvent"in window,Wa=null;Zt&&"documentMode"in document&&(Wa=document.documentMode);var Zm=Zt&&"TextEvent"in window&&!Wa,Or=Zt&&(!Yi||Wa&&8<Wa&&11>=Wa),Dr=" ",Ur=!1;function wr(e,t){switch(e){case"keyup":return km.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function Km(e,t){switch(e){case"compositionend":return Hr(t);case"keypress":return t.which!==32?null:(Ur=!0,Dr);case"textInput":return e=t.data,e===Dr&&Ur?null:e;default:return null}}function Jm(e,t){if(ra)return e==="compositionend"||!Yi&&wr(e,t)?(e=zr(),In=wi=dl=null,ra=!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 Or&&t.locale!=="ko"?null:t.data;default:return null}}var $m={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 Br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$m[e.type]:t==="textarea"}function qr(e,t,l,a){ca?sa?sa.push(a):sa=[a]:ca=a,t=ku(t,"onChange"),0<t.length&&(l=new tu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Fa=null,Ia=null;function Wm(e){jd(e,0)}function au(e){var t=ka(e);if(br(t))return e}function Lr(e,t){if(e==="change")return t}var Yr=!1;if(Zt){var Gi;if(Zt){var Xi="oninput"in document;if(!Xi){var Gr=document.createElement("div");Gr.setAttribute("oninput","return;"),Xi=typeof Gr.oninput=="function"}Gi=Xi}else Gi=!1;Yr=Gi&&(!document.documentMode||9<document.documentMode)}function Xr(){Fa&&(Fa.detachEvent("onpropertychange",Qr),Ia=Fa=null)}function Qr(e){if(e.propertyName==="value"&&au(Ia)){var t=[];qr(t,Ia,e,Oi(e)),Nr(Wm,t)}}function Fm(e,t,l){e==="focusin"?(Xr(),Fa=t,Ia=l,Fa.attachEvent("onpropertychange",Qr)):e==="focusout"&&Xr()}function Im(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return au(Ia)}function Pm(e,t){if(e==="click")return au(t)}function ev(e,t){if(e==="input"||e==="change")return au(t)}function tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rt=typeof Object.is=="function"?Object.is:tv;function Pa(e,t){if(rt(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(!bi.call(t,n)||!rt(e[n],t[n]))return!1}return!0}function Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kr(e,t){var l=Vr(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=Vr(l)}}function Zr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Zr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wn(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=Wn(e.document)}return t}function Qi(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 lv=Zt&&"documentMode"in document&&11>=document.documentMode,oa=null,Vi=null,en=null,ki=!1;function Jr(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ki||oa==null||oa!==Wn(a)||(a=oa,"selectionStart"in a&&Qi(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}),en&&Pa(en,a)||(en=a,a=ku(Vi,"onSelect"),0<a.length&&(t=new tu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=oa)))}function Ll(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fa={animationend:Ll("Animation","AnimationEnd"),animationiteration:Ll("Animation","AnimationIteration"),animationstart:Ll("Animation","AnimationStart"),transitionrun:Ll("Transition","TransitionRun"),transitionstart:Ll("Transition","TransitionStart"),transitioncancel:Ll("Transition","TransitionCancel"),transitionend:Ll("Transition","TransitionEnd")},Zi={},$r={};Zt&&($r=document.createElement("div").style,"AnimationEvent"in window||(delete fa.animationend.animation,delete fa.animationiteration.animation,delete fa.animationstart.animation),"TransitionEvent"in window||delete fa.transitionend.transition);function Yl(e){if(Zi[e])return Zi[e];if(!fa[e])return e;var t=fa[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in $r)return Zi[e]=t[l];return e}var Wr=Yl("animationend"),Fr=Yl("animationiteration"),Ir=Yl("animationstart"),av=Yl("transitionrun"),nv=Yl("transitionstart"),uv=Yl("transitioncancel"),Pr=Yl("transitionend"),eo=new Map,Ki="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(" ");Ki.push("scrollEnd");function Mt(e,t){eo.set(e,t),Bl(t,[e])}var nu=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)},xt=[],da=0,Ji=0;function uu(){for(var e=da,t=Ji=da=0;t<e;){var l=xt[t];xt[t++]=null;var a=xt[t];xt[t++]=null;var n=xt[t];xt[t++]=null;var u=xt[t];if(xt[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&&to(l,n,u)}}function iu(e,t,l,a){xt[da++]=e,xt[da++]=t,xt[da++]=l,xt[da++]=a,Ji|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function $i(e,t,l,a){return iu(e,t,l,a),cu(e)}function Gl(e,t){return iu(e,null,null,t),cu(e)}function to(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-st(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function cu(e){if(50<En)throw En=0,ns=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ha={};function iv(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 ot(e,t,l,a){return new iv(e,t,l,a)}function Wi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kt(e,t){var l=e.alternate;return l===null?(l=ot(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 lo(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 su(e,t,l,a,n,u){var s=0;if(a=e,typeof e=="function")Wi(e)&&(s=1);else if(typeof e=="string")s=fy(e,l,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Le:return e=ot(31,l,t,n),e.elementType=Le,e.lanes=u,e;case B:return Xl(l.children,n,u,t);case X:s=8,n|=24;break;case G:return e=ot(12,l,t,n|2),e.elementType=G,e.lanes=u,e;case q:return e=ot(13,l,t,n),e.elementType=q,e.lanes=u,e;case K:return e=ot(19,l,t,n),e.elementType=K,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case W:s=10;break e;case I:s=9;break e;case L:s=11;break e;case k:s=14;break e;case Te:s=16,a=null;break e}s=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ot(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Xl(e,t,l,a){return e=ot(7,e,a,t),e.lanes=l,e}function Fi(e,t,l){return e=ot(6,e,null,t),e.lanes=l,e}function ao(e){var t=ot(18,null,null,0);return t.stateNode=e,t}function Ii(e,t,l){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var no=new WeakMap;function jt(e,t){if(typeof e=="object"&&e!==null){var l=no.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ar(t)},no.set(e,t),t)}return{value:e,source:t,stack:ar(t)}}var ma=[],va=0,ru=null,tn=0,Et=[],Tt=0,hl=null,Bt=1,qt="";function Jt(e,t){ma[va++]=tn,ma[va++]=ru,ru=e,tn=t}function uo(e,t,l){Et[Tt++]=Bt,Et[Tt++]=qt,Et[Tt++]=hl,hl=e;var a=Bt;e=qt;var n=32-st(a)-1;a&=~(1<<n),l+=1;var u=32-st(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,Bt=1<<32-st(t)+n|l<<n|a,qt=u+e}else Bt=1<<u|l<<n|a,qt=e}function Pi(e){e.return!==null&&(Jt(e,1),uo(e,1,0))}function ec(e){for(;e===ru;)ru=ma[--va],ma[va]=null,tn=ma[--va],ma[va]=null;for(;e===hl;)hl=Et[--Tt],Et[Tt]=null,qt=Et[--Tt],Et[Tt]=null,Bt=Et[--Tt],Et[Tt]=null}function io(e,t){Et[Tt++]=Bt,Et[Tt++]=qt,Et[Tt++]=hl,Bt=t.id,qt=t.overflow,hl=e}var Ve=null,_e=null,oe=!1,ml=null,_t=!1,tc=Error(o(519));function vl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ln(jt(t,e)),tc}function co(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Qe]=e,t[Pe]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<_n.length;l++)ce(_n[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Sr(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),jr(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||Nd(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=kt),t=!0):t=!1,t||vl(e,!0)}function so(e){for(Ve=e.return;Ve;)switch(Ve.tag){case 5:case 31:case 13:_t=!1;return;case 27:case 3:_t=!0;return;default:Ve=Ve.return}}function ya(e){if(e!==Ve)return!1;if(!oe)return so(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||bs(e.type,e.memoizedProps)),l=!l),l&&_e&&vl(e),so(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=wd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=wd(e)}else t===27?(t=_e,Al(e.type)?(e=Ts,Ts=null,_e=e):_e=t):_e=Ve?zt(e.stateNode.nextSibling):null;return!0}function Ql(){_e=Ve=null,oe=!1}function lc(){var e=ml;return e!==null&&(nt===null?nt=e:nt.push.apply(nt,e),ml=null),e}function ln(e){ml===null?ml=[e]:ml.push(e)}var ac=E(null),Vl=null,$t=null;function yl(e,t,l){V(ac,t._currentValue),t._currentValue=l}function Wt(e){e._currentValue=ac.current,w(ac)}function nc(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 d=u;u=n;for(var p=0;p<t.length;p++)if(d.context===t[p]){u.lanes|=l,d=u.alternate,d!==null&&(d.lanes|=l),nc(u.return,l,e),a||(s=null);break e}u=d.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(o(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),nc(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 pa(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(o(387));if(s=s.memoizedProps,s!==null){var d=n.type;rt(n.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(n===me.current){if(s=n.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Cn):e=[Cn])}n=n.return}e!==null&&uc(t,e,l,a),t.flags|=262144}function ou(e){for(e=e.firstContext;e!==null;){if(!rt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function kl(e){Vl=e,$t=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ke(e){return ro(Vl,e)}function fu(e,t){return Vl===null&&kl(e),ro(e,t)}function ro(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},$t===null){if(e===null)throw Error(o(308));$t=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else $t=$t.next=t;return l}var cv=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()})}},sv=i.unstable_scheduleCallback,rv=i.unstable_NormalPriority,we={$$typeof:W,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new cv,data:new Map,refCount:0}}function an(e){e.refCount--,e.refCount===0&&sv(rv,function(){e.controller.abort()})}var nn=null,cc=0,ga=0,ba=null;function ov(e,t){if(nn===null){var l=nn=[];cc=0,ga=os(),ba={status:"pending",value:void 0,then:function(a){l.push(a)}}}return cc++,t.then(oo,oo),t}function oo(){if(--cc===0&&nn!==null){ba!==null&&(ba.status="fulfilled");var e=nn;nn=null,ga=0,ba=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fv(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 fo=O.S;O.S=function(e,t){Wf=it(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ov(e,t),fo!==null&&fo(e,t)};var Zl=E(null);function sc(){var e=Zl.current;return e!==null?e:je.pooledCache}function du(e,t){t===null?V(Zl,Zl.current):V(Zl,t.pool)}function ho(){var e=sc();return e===null?null:{parent:we._currentValue,pool:e}}var Sa=Error(o(460)),rc=Error(o(474)),hu=Error(o(542)),mu={then:function(){}};function mo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(kt,kt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,po(e),e;default:if(typeof t.status=="string")t.then(kt,kt);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(o(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,po(e),e}throw Jl=t,Sa}}function Kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Jl=l,Sa):l}}var Jl=null;function yo(){if(Jl===null)throw Error(o(459));var e=Jl;return Jl=null,e}function po(e){if(e===Sa||e===hu)throw Error(o(483))}var xa=null,un=0;function vu(e){var t=un;return un+=1,xa===null&&(xa=[]),vo(xa,e,t)}function cn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yu(e,t){throw t.$$typeof===M?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function go(e){function t(T,b){if(e){var N=T.deletions;N===null?(T.deletions=[b],T.flags|=16):N.push(b)}}function l(T,b){if(!e)return null;for(;b!==null;)t(T,b),b=b.sibling;return null}function a(T){for(var b=new Map;T!==null;)T.key!==null?b.set(T.key,T):b.set(T.index,T),T=T.sibling;return b}function n(T,b){return T=Kt(T,b),T.index=0,T.sibling=null,T}function u(T,b,N){return T.index=N,e?(N=T.alternate,N!==null?(N=N.index,N<b?(T.flags|=67108866,b):N):(T.flags|=67108866,b)):(T.flags|=1048576,b)}function s(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function d(T,b,N,D){return b===null||b.tag!==6?(b=Fi(N,T.mode,D),b.return=T,b):(b=n(b,N),b.return=T,b)}function p(T,b,N,D){var F=N.type;return F===B?C(T,b,N.props.children,D,N.key):b!==null&&(b.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Te&&Kl(F)===b.type)?(b=n(b,N.props),cn(b,N),b.return=T,b):(b=su(N.type,N.key,N.props,null,T.mode,D),cn(b,N),b.return=T,b)}function z(T,b,N,D){return b===null||b.tag!==4||b.stateNode.containerInfo!==N.containerInfo||b.stateNode.implementation!==N.implementation?(b=Ii(N,T.mode,D),b.return=T,b):(b=n(b,N.children||[]),b.return=T,b)}function C(T,b,N,D,F){return b===null||b.tag!==7?(b=Xl(N,T.mode,D,F),b.return=T,b):(b=n(b,N),b.return=T,b)}function U(T,b,N){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Fi(""+b,T.mode,N),b.return=T,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Y:return N=su(b.type,b.key,b.props,null,T.mode,N),cn(N,b),N.return=T,N;case H:return b=Ii(b,T.mode,N),b.return=T,b;case Te:return b=Kl(b),U(T,b,N)}if(Ue(b)||$e(b))return b=Xl(b,T.mode,N,null),b.return=T,b;if(typeof b.then=="function")return U(T,vu(b),N);if(b.$$typeof===W)return U(T,fu(T,b),N);yu(T,b)}return null}function R(T,b,N,D){var F=b!==null?b.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return F!==null?null:d(T,b,""+N,D);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:return N.key===F?p(T,b,N,D):null;case H:return N.key===F?z(T,b,N,D):null;case Te:return N=Kl(N),R(T,b,N,D)}if(Ue(N)||$e(N))return F!==null?null:C(T,b,N,D,null);if(typeof N.then=="function")return R(T,b,vu(N),D);if(N.$$typeof===W)return R(T,b,fu(T,N),D);yu(T,N)}return null}function A(T,b,N,D,F){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return T=T.get(N)||null,d(b,T,""+D,F);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Y:return T=T.get(D.key===null?N:D.key)||null,p(b,T,D,F);case H:return T=T.get(D.key===null?N:D.key)||null,z(b,T,D,F);case Te:return D=Kl(D),A(T,b,N,D,F)}if(Ue(D)||$e(D))return T=T.get(N)||null,C(b,T,D,F,null);if(typeof D.then=="function")return A(T,b,N,vu(D),F);if(D.$$typeof===W)return A(T,b,N,fu(b,D),F);yu(b,D)}return null}function Z(T,b,N,D){for(var F=null,fe=null,$=b,ne=b=0,re=null;$!==null&&ne<N.length;ne++){$.index>ne?(re=$,$=null):re=$.sibling;var de=R(T,$,N[ne],D);if(de===null){$===null&&($=re);break}e&&$&&de.alternate===null&&t(T,$),b=u(de,b,ne),fe===null?F=de:fe.sibling=de,fe=de,$=re}if(ne===N.length)return l(T,$),oe&&Jt(T,ne),F;if($===null){for(;ne<N.length;ne++)$=U(T,N[ne],D),$!==null&&(b=u($,b,ne),fe===null?F=$:fe.sibling=$,fe=$);return oe&&Jt(T,ne),F}for($=a($);ne<N.length;ne++)re=A($,T,ne,N[ne],D),re!==null&&(e&&re.alternate!==null&&$.delete(re.key===null?ne:re.key),b=u(re,b,ne),fe===null?F=re:fe.sibling=re,fe=re);return e&&$.forEach(function(Ul){return t(T,Ul)}),oe&&Jt(T,ne),F}function P(T,b,N,D){if(N==null)throw Error(o(151));for(var F=null,fe=null,$=b,ne=b=0,re=null,de=N.next();$!==null&&!de.done;ne++,de=N.next()){$.index>ne?(re=$,$=null):re=$.sibling;var Ul=R(T,$,de.value,D);if(Ul===null){$===null&&($=re);break}e&&$&&Ul.alternate===null&&t(T,$),b=u(Ul,b,ne),fe===null?F=Ul:fe.sibling=Ul,fe=Ul,$=re}if(de.done)return l(T,$),oe&&Jt(T,ne),F;if($===null){for(;!de.done;ne++,de=N.next())de=U(T,de.value,D),de!==null&&(b=u(de,b,ne),fe===null?F=de:fe.sibling=de,fe=de);return oe&&Jt(T,ne),F}for($=a($);!de.done;ne++,de=N.next())de=A($,T,ne,de.value,D),de!==null&&(e&&de.alternate!==null&&$.delete(de.key===null?ne:de.key),b=u(de,b,ne),fe===null?F=de:fe.sibling=de,fe=de);return e&&$.forEach(function(jy){return t(T,jy)}),oe&&Jt(T,ne),F}function Se(T,b,N,D){if(typeof N=="object"&&N!==null&&N.type===B&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case Y:e:{for(var F=N.key;b!==null;){if(b.key===F){if(F=N.type,F===B){if(b.tag===7){l(T,b.sibling),D=n(b,N.props.children),D.return=T,T=D;break e}}else if(b.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Te&&Kl(F)===b.type){l(T,b.sibling),D=n(b,N.props),cn(D,N),D.return=T,T=D;break e}l(T,b);break}else t(T,b);b=b.sibling}N.type===B?(D=Xl(N.props.children,T.mode,D,N.key),D.return=T,T=D):(D=su(N.type,N.key,N.props,null,T.mode,D),cn(D,N),D.return=T,T=D)}return s(T);case H:e:{for(F=N.key;b!==null;){if(b.key===F)if(b.tag===4&&b.stateNode.containerInfo===N.containerInfo&&b.stateNode.implementation===N.implementation){l(T,b.sibling),D=n(b,N.children||[]),D.return=T,T=D;break e}else{l(T,b);break}else t(T,b);b=b.sibling}D=Ii(N,T.mode,D),D.return=T,T=D}return s(T);case Te:return N=Kl(N),Se(T,b,N,D)}if(Ue(N))return Z(T,b,N,D);if($e(N)){if(F=$e(N),typeof F!="function")throw Error(o(150));return N=F.call(N),P(T,b,N,D)}if(typeof N.then=="function")return Se(T,b,vu(N),D);if(N.$$typeof===W)return Se(T,b,fu(T,N),D);yu(T,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,b!==null&&b.tag===6?(l(T,b.sibling),D=n(b,N),D.return=T,T=D):(l(T,b),D=Fi(N,T.mode,D),D.return=T,T=D),s(T)):l(T,b)}return function(T,b,N,D){try{un=0;var F=Se(T,b,N,D);return xa=null,F}catch($){if($===Sa||$===hu)throw $;var fe=ot(29,$,null,T.mode);return fe.lanes=D,fe.return=T,fe}finally{}}}var $l=go(!0),bo=go(!1),pl=!1;function oc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(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 gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=cu(e),to(e,null,l),t}return iu(e,a,t,l),cu(e)}function sn(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,rr(e,l)}}function dc(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 hc=!1;function rn(){if(hc){var e=ba;if(e!==null)throw e}}function on(e,t,l,a){hc=!1;var n=e.updateQueue;pl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,z=p.next;p.next=null,s===null?u=z:s.next=z,s=p;var C=e.alternate;C!==null&&(C=C.updateQueue,d=C.lastBaseUpdate,d!==s&&(d===null?C.firstBaseUpdate=z:d.next=z,C.lastBaseUpdate=p))}if(u!==null){var U=n.baseState;s=0,C=z=p=null,d=u;do{var R=d.lane&-536870913,A=R!==d.lane;if(A?(se&R)===R:(a&R)===R){R!==0&&R===ga&&(hc=!0),C!==null&&(C=C.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var Z=e,P=d;R=t;var Se=l;switch(P.tag){case 1:if(Z=P.payload,typeof Z=="function"){U=Z.call(Se,U,R);break e}U=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=P.payload,R=typeof Z=="function"?Z.call(Se,U,R):Z,R==null)break e;U=S({},U,R);break e;case 2:pl=!0}}R=d.callback,R!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[R]:A.push(R))}else A={lane:R,tag:d.tag,payload:d.payload,callback:d.callback,next:null},C===null?(z=C=A,p=U):C=C.next=A,s|=R;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;A=d,d=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);C===null&&(p=U),n.baseState=p,n.firstBaseUpdate=z,n.lastBaseUpdate=C,u===null&&(n.shared.lanes=0),Tl|=s,e.lanes=s,e.memoizedState=U}}function So(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function xo(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)So(l[e],t)}var ja=E(null),pu=E(0);function jo(e,t){e=ul,V(pu,e),V(ja,t),ul=e|t.baseLanes}function mc(){V(pu,ul),V(ja,ja.current)}function vc(){ul=pu.current,w(ja),w(pu)}var ft=E(null),Nt=null;function Sl(e){var t=e.alternate;V(Oe,Oe.current&1),V(ft,e),Nt===null&&(t===null||ja.current!==null||t.memoizedState!==null)&&(Nt=e)}function yc(e){V(Oe,Oe.current),V(ft,e),Nt===null&&(Nt=e)}function Eo(e){e.tag===22?(V(Oe,Oe.current),V(ft,e),Nt===null&&(Nt=e)):xl()}function xl(){V(Oe,Oe.current),V(ft,ft.current)}function dt(e){w(ft),Nt===e&&(Nt=null),w(Oe)}var Oe=E(0);function gu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||js(l)||Es(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 Ft=0,ae=null,ge=null,He=null,bu=!1,Ea=!1,Wl=!1,Su=0,fn=0,Ta=null,dv=0;function Ae(){throw Error(o(321))}function pc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!rt(e[l],t[l]))return!1;return!0}function gc(e,t,l,a,n,u){return Ft=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?cf:Dc,Wl=!1,u=l(a,n),Wl=!1,Ea&&(u=_o(t,l,a,n)),To(e),u}function To(e){O.H=mn;var t=ge!==null&&ge.next!==null;if(Ft=0,He=ge=ae=null,bu=!1,fn=0,Ta=null,t)throw Error(o(300));e===null||Be||(e=e.dependencies,e!==null&&ou(e)&&(Be=!0))}function _o(e,t,l,a){ae=e;var n=0;do{if(Ea&&(Ta=null),fn=0,Ea=!1,25<=n)throw Error(o(301));if(n+=1,He=ge=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=sf,u=t(l,a)}while(Ea);return u}function hv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?dn(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(ae.flags|=1024),t}function bc(){var e=Su!==0;return Su=0,e}function Sc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function xc(e){if(bu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bu=!1}Ft=0,He=ge=ae=null,Ea=!1,fn=Su=0,Ta=null}function Ie(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?ae.memoizedState=He=e:He=He.next=e,He}function De(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=He===null?ae.memoizedState:He.next;if(t!==null)He=t,ge=e;else{if(e===null)throw ae.alternate===null?Error(o(467)):Error(o(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},He===null?ae.memoizedState=He=e:He=He.next=e}return He}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function dn(e){var t=fn;return fn+=1,Ta===null&&(Ta=[]),e=vo(Ta,e,t),t=ae,(He===null?t.memoizedState:He.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?cf:Dc),e}function ju(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return dn(e);if(e.$$typeof===W)return ke(e)}throw Error(o(438,String(e)))}function jc(e){var t=null,l=ae.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ae.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=xu(),ae.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]=wt;return t.index++,l}function It(e,t){return typeof t=="function"?t(e):t}function Eu(e){var t=De();return Ec(t,ge,e)}function Ec(e,t,l){var a=e.queue;if(a===null)throw Error(o(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 d=s=null,p=null,z=t,C=!1;do{var U=z.lane&-536870913;if(U!==z.lane?(se&U)===U:(Ft&U)===U){var R=z.revertLane;if(R===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),U===ga&&(C=!0);else if((Ft&R)===R){z=z.next,R===ga&&(C=!0);continue}else U={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=U,s=u):p=p.next=U,ae.lanes|=R,Tl|=R;U=z.action,Wl&&l(u,U),u=z.hasEagerState?z.eagerState:l(u,U)}else R={lane:U,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},p===null?(d=p=R,s=u):p=p.next=R,ae.lanes|=U,Tl|=U;z=z.next}while(z!==null&&z!==t);if(p===null?s=u:p.next=d,!rt(u,e.memoizedState)&&(Be=!0,C&&(l=ba,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Tc(e){var t=De(),l=t.queue;if(l===null)throw Error(o(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);rt(u,t.memoizedState)||(Be=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function No(e,t,l){var a=ae,n=De(),u=oe;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var s=!rt((ge||n).memoizedState,l);if(s&&(n.memoizedState=l,Be=!0),n=n.queue,zc(Ao.bind(null,a,n,e),[e]),n.getSnapshot!==t||s||He!==null&&He.memoizedState.tag&1){if(a.flags|=2048,_a(9,{destroy:void 0},Ro.bind(null,a,n,l,t),null),je===null)throw Error(o(349));u||(Ft&127)!==0||zo(a,t,l)}return l}function zo(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=xu(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Ro(e,t,l,a){t.value=l,t.getSnapshot=a,Co(t)&&Mo(e)}function Ao(e,t,l){return l(function(){Co(t)&&Mo(e)})}function Co(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!rt(e,l)}catch{return!0}}function Mo(e){var t=Gl(e,2);t!==null&&ut(t,e,2)}function _c(e){var t=Ie();if(typeof e=="function"){var l=e;if(e=l(),Wl){ol(!0);try{l()}finally{ol(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:e},t}function Oo(e,t,l,a){return e.baseState=l,Ec(e,ge,typeof a=="function"?a:It)}function mv(e,t,l,a,n){if(Nu(e))throw Error(o(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)}};O.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Do(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Do(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=O.T,s={};O.T=s;try{var d=l(n,a),p=O.S;p!==null&&p(s,d),Uo(e,t,d)}catch(z){Nc(e,t,z)}finally{u!==null&&s.types!==null&&(u.types=s.types),O.T=u}}else try{u=l(n,a),Uo(e,t,u)}catch(z){Nc(e,t,z)}}function Uo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){wo(e,t,a)},function(a){return Nc(e,t,a)}):wo(e,t,l)}function wo(e,t,l){t.status="fulfilled",t.value=l,Ho(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Do(e,l)))}function Nc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ho(t),t=t.next;while(t!==a)}e.action=null}function Ho(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Bo(e,t){return t}function qo(e,t){if(oe){var l=je.formState;if(l!==null){e:{var a=ae;if(oe){if(_e){t:{for(var n=_e,u=_t;n.nodeType!==8;){if(!u){n=null;break t}if(n=zt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){_e=zt(n.nextSibling),a=n.data==="F!";break e}}vl(a)}a=!1}a&&(t=l[0])}}return l=Ie(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:t},l.queue=a,l=af.bind(null,ae,a),a.dispatch=l,a=_c(!1),u=Oc.bind(null,ae,!1,a.queue),a=Ie(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=mv.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Lo(e){var t=De();return Yo(t,ge,e)}function Yo(e,t,l){if(t=Ec(e,t,Bo)[0],e=Eu(It)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=dn(t)}catch(s){throw s===Sa?hu:s}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,_a(9,{destroy:void 0},vv.bind(null,n,l),null)),[a,u,e]}function vv(e,t){e.action=t}function Go(e){var t=De(),l=ge;if(l!==null)return Yo(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function _a(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=xu(),ae.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 Xo(){return De().memoizedState}function Tu(e,t,l,a){var n=Ie();ae.flags|=e,n.memoizedState=_a(1|t,{destroy:void 0},l,a===void 0?null:a)}function _u(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;ge!==null&&a!==null&&pc(a,ge.memoizedState.deps)?n.memoizedState=_a(t,u,l,a):(ae.flags|=e,n.memoizedState=_a(1|t,u,l,a))}function Qo(e,t){Tu(8390656,8,e,t)}function zc(e,t){_u(2048,8,e,t)}function yv(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=xu(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Vo(e){var t=De().memoizedState;return yv({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function ko(e,t){return _u(4,2,e,t)}function Zo(e,t){return _u(4,4,e,t)}function Ko(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 Jo(e,t,l){l=l!=null?l.concat([e]):null,_u(4,4,Ko.bind(null,t,e),l)}function Rc(){}function $o(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&pc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Wo(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&pc(t,a[1]))return a[0];if(a=e(),Wl){ol(!0);try{e()}finally{ol(!1)}}return l.memoizedState=[a,t],a}function Ac(e,t,l){return l===void 0||(Ft&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=If(),ae.lanes|=e,Tl|=e,l)}function Fo(e,t,l,a){return rt(l,t)?l:ja.current!==null?(e=Ac(e,l,a),rt(e,t)||(Be=!0),e):(Ft&42)===0||(Ft&1073741824)!==0&&(se&261930)===0?(Be=!0,e.memoizedState=l):(e=If(),ae.lanes|=e,Tl|=e,t)}function Io(e,t,l,a,n){var u=Q.p;Q.p=u!==0&&8>u?u:8;var s=O.T,d={};O.T=d,Oc(e,!1,t,l);try{var p=n(),z=O.S;if(z!==null&&z(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var C=fv(p,a);hn(e,t,C,vt(e))}else hn(e,t,a,vt(e))}catch(U){hn(e,t,{then:function(){},status:"rejected",reason:U},vt())}finally{Q.p=u,s!==null&&d.types!==null&&(s.types=d.types),O.T=s}}function pv(){}function Cc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=Po(e).queue;Io(e,n,t,ee,l===null?pv:function(){return ef(e),l(a)})}function Po(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:It,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:It,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ef(e){var t=Po(e);t.next===null&&(t=e.alternate.memoizedState),hn(e,t.next.queue,{},vt())}function Mc(){return ke(Cn)}function tf(){return De().memoizedState}function lf(){return De().memoizedState}function gv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=vt();e=gl(l);var a=bl(t,e,l);a!==null&&(ut(a,t,l),sn(a,t,l)),t={cache:ic()},e.payload=t;return}t=t.return}}function bv(e,t,l){var a=vt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(e)?nf(t,l):(l=$i(e,t,l,a),l!==null&&(ut(l,e,a),uf(l,t,a)))}function af(e,t,l){var a=vt();hn(e,t,l,a)}function hn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Nu(e))nf(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,d=u(s,l);if(n.hasEagerState=!0,n.eagerState=d,rt(d,s))return iu(e,t,n,0),je===null&&uu(),!1}catch{}finally{}if(l=$i(e,t,n,a),l!==null)return ut(l,e,a),uf(l,t,a),!0}return!1}function Oc(e,t,l,a){if(a={lane:2,revertLane:os(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nu(e)){if(t)throw Error(o(479))}else t=$i(e,l,a,2),t!==null&&ut(t,e,2)}function Nu(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function nf(e,t){Ea=bu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function uf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,rr(e,l)}}var mn={readContext:ke,use:ju,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useLayoutEffect:Ae,useInsertionEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useSyncExternalStore:Ae,useId:Ae,useHostTransitionStatus:Ae,useFormState:Ae,useActionState:Ae,useOptimistic:Ae,useMemoCache:Ae,useCacheRefresh:Ae};mn.useEffectEvent=Ae;var cf={readContext:ke,use:ju,useCallback:function(e,t){return Ie().memoizedState=[e,t===void 0?null:t],e},useContext:ke,useEffect:Qo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Tu(4194308,4,Ko.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Tu(4194308,4,e,t)},useInsertionEffect:function(e,t){Tu(4,2,e,t)},useMemo:function(e,t){var l=Ie();t=t===void 0?null:t;var a=e();if(Wl){ol(!0);try{e()}finally{ol(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Ie();if(l!==void 0){var n=l(t);if(Wl){ol(!0);try{l(t)}finally{ol(!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=bv.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=Ie();return e={current:e},t.memoizedState=e},useState:function(e){e=_c(e);var t=e.queue,l=af.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Rc,useDeferredValue:function(e,t){var l=Ie();return Ac(l,e,t)},useTransition:function(){var e=_c(!1);return e=Io.bind(null,ae,e.queue,!0,!1),Ie().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=Ie();if(oe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),je===null)throw Error(o(349));(se&127)!==0||zo(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Qo(Ao.bind(null,a,u,e),[e]),a.flags|=2048,_a(9,{destroy:void 0},Ro.bind(null,a,u,l,t),null),l},useId:function(){var e=Ie(),t=je.identifierPrefix;if(oe){var l=qt,a=Bt;l=(a&~(1<<32-st(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Su++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=dv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Mc,useFormState:qo,useActionState:qo,useOptimistic:function(e){var t=Ie();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Oc.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:jc,useCacheRefresh:function(){return Ie().memoizedState=gv.bind(null,ae)},useEffectEvent:function(e){var t=Ie(),l={impl:e};return t.memoizedState=l,function(){if((he&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Dc={readContext:ke,use:ju,useCallback:$o,useContext:ke,useEffect:zc,useImperativeHandle:Jo,useInsertionEffect:ko,useLayoutEffect:Zo,useMemo:Wo,useReducer:Eu,useRef:Xo,useState:function(){return Eu(It)},useDebugValue:Rc,useDeferredValue:function(e,t){var l=De();return Fo(l,ge.memoizedState,e,t)},useTransition:function(){var e=Eu(It)[0],t=De().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:No,useId:tf,useHostTransitionStatus:Mc,useFormState:Lo,useActionState:Lo,useOptimistic:function(e,t){var l=De();return Oo(l,ge,e,t)},useMemoCache:jc,useCacheRefresh:lf};Dc.useEffectEvent=Vo;var sf={readContext:ke,use:ju,useCallback:$o,useContext:ke,useEffect:zc,useImperativeHandle:Jo,useInsertionEffect:ko,useLayoutEffect:Zo,useMemo:Wo,useReducer:Tc,useRef:Xo,useState:function(){return Tc(It)},useDebugValue:Rc,useDeferredValue:function(e,t){var l=De();return ge===null?Ac(l,e,t):Fo(l,ge.memoizedState,e,t)},useTransition:function(){var e=Tc(It)[0],t=De().memoizedState;return[typeof e=="boolean"?e:dn(e),t]},useSyncExternalStore:No,useId:tf,useHostTransitionStatus:Mc,useFormState:Go,useActionState:Go,useOptimistic:function(e,t){var l=De();return ge!==null?Oo(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:jc,useCacheRefresh:lf};sf.useEffectEvent=Vo;function Uc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:S({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var wc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=vt(),n=gl(a);n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(ut(t,e,a),sn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=vt(),n=gl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(ut(t,e,a),sn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=vt(),a=gl(l);a.tag=2,t!=null&&(a.callback=t),t=bl(e,a,l),t!==null&&(ut(t,e,l),sn(t,e,l))}};function rf(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?!Pa(l,a)||!Pa(n,u):!0}function of(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&&wc.enqueueReplaceState(t,t.state,null)}function Fl(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=S({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function ff(e){nu(e)}function df(e){console.error(e)}function hf(e){nu(e)}function zu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function mf(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 Hc(e,t,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){zu(e,t)},l}function vf(e){return e=gl(e),e.tag=3,e}function yf(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(){mf(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){mf(t,l,a),typeof n!="function"&&(_l===null?_l=new Set([this]):_l.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Sv(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pa(t,l,n,!0),l=ft.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?Lu():l.alternate===null&&Ce===0&&(Ce=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===mu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),cs(e,a,n)),!1;case 22:return l.flags|=65536,a===mu?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)),cs(e,a,n)),!1}throw Error(o(435,l.tag))}return cs(e,a,n),Lu(),!1}if(oe)return t=ft.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==tc&&(e=Error(o(422),{cause:a}),ln(jt(e,l)))):(a!==tc&&(t=Error(o(423),{cause:a}),ln(jt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=jt(a,l),n=Hc(e.stateNode,a,n),dc(e,n),Ce!==4&&(Ce=2)),!1;var u=Error(o(520),{cause:a});if(u=jt(u,l),jn===null?jn=[u]:jn.push(u),Ce!==4&&(Ce=2),t===null)return!0;a=jt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Hc(l.stateNode,a,e),dc(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"&&(_l===null||!_l.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=vf(n),yf(n,e,l,a),dc(l,n),!1}l=l.return}while(l!==null);return!1}var Bc=Error(o(461)),Be=!1;function Ze(e,t,l,a){t.child=e===null?bo(t,null,l,a):$l(t,e.child,l,a)}function pf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var s={};for(var d in a)d!=="ref"&&(s[d]=a[d])}else s=a;return kl(t),a=gc(e,t,l,s,u,n),d=bc(),e!==null&&!Be?(Sc(e,t,n),Pt(e,t,n)):(oe&&d&&Pi(t),t.flags|=1,Ze(e,t,a,n),t.child)}function gf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Wi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,bf(e,t,u,a,n)):(e=su(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!kc(e,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:Pa,l(s,a)&&e.ref===t.ref)return Pt(e,t,n)}return t.flags|=1,e=Kt(u,a),e.ref=t.ref,e.return=t,t.child=e}function bf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(Pa(u,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=u,kc(e,n))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,Pt(e,t,n)}return qc(e,t,l,a,n)}function Sf(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 xf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&du(t,u!==null?u.cachePool:null),u!==null?jo(t,u):mc(),Eo(t);else return a=t.lanes=536870912,xf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(du(t,u.cachePool),jo(t,u),xl(),t.memoizedState=null):(e!==null&&du(t,null),mc(),xl());return Ze(e,t,n,l),t.child}function vn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function xf(e,t,l,a,n){var u=sc();return u=u===null?null:{parent:we._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&du(t,null),mc(),Eo(t),e!==null&&pa(e,t,a,!0),t.childLanes=n,null}function Ru(e,t){return t=Cu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function jf(e,t,l){return $l(t,e.child,null,l),e=Ru(t,t.pendingProps),e.flags|=2,dt(t),t.memoizedState=null,e}function xv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=Ru(t,a),t.lanes=536870912,vn(null,e);if(yc(t),(e=_e)?(e=Ud(e,_t),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Bt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},l=ao(e),l.return=t,t.child=l,Ve=t,_e=null)):e=null,e===null)throw vl(t);return t.lanes=536870912,null}return Ru(t,a)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(yc(t),n)if(t.flags&256)t.flags&=-257,t=jf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Be||pa(e,t,l,!1),n=(l&e.childLanes)!==0,Be||n){if(a=je,a!==null&&(s=or(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,Gl(e,s),ut(a,e,s),Bc;Lu(),t=jf(e,t,l)}else e=u.treeContext,_e=zt(s.nextSibling),Ve=t,oe=!0,ml=null,_t=!1,e!==null&&io(t,e),t=Ru(t,a),t.flags|=4096;return t}return e=Kt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Au(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(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function qc(e,t,l,a,n){return kl(t),l=gc(e,t,l,a,void 0,n),a=bc(),e!==null&&!Be?(Sc(e,t,n),Pt(e,t,n)):(oe&&a&&Pi(t),t.flags|=1,Ze(e,t,l,n),t.child)}function Ef(e,t,l,a,n,u){return kl(t),t.updateQueue=null,l=_o(t,a,l,n),To(e),a=bc(),e!==null&&!Be?(Sc(e,t,u),Pt(e,t,u)):(oe&&a&&Pi(t),t.flags|=1,Ze(e,t,l,u),t.child)}function Tf(e,t,l,a,n){if(kl(t),t.stateNode===null){var u=ha,s=l.contextType;typeof s=="object"&&s!==null&&(u=ke(s)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=wc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},oc(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?ke(s):ha,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Uc(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&&wc.enqueueReplaceState(u,u.state,null),on(t,a,u,n),rn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var d=t.memoizedProps,p=Fl(l,d);u.props=p;var z=u.context,C=l.contextType;s=ha,typeof C=="object"&&C!==null&&(s=ke(C));var U=l.getDerivedStateFromProps;C=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,C||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||z!==s)&&of(t,u,a,s),pl=!1;var R=t.memoizedState;u.state=R,on(t,a,u,n),rn(),z=t.memoizedState,d||R!==z||pl?(typeof U=="function"&&(Uc(t,l,U,a),z=t.memoizedState),(p=pl||rf(t,l,p,a,R,z,s))?(C||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=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,fc(e,t),s=t.memoizedProps,C=Fl(l,s),u.props=C,U=t.pendingProps,R=u.context,z=l.contextType,p=ha,typeof z=="object"&&z!==null&&(p=ke(z)),d=l.getDerivedStateFromProps,(z=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==U||R!==p)&&of(t,u,a,p),pl=!1,R=t.memoizedState,u.state=R,on(t,a,u,n),rn();var A=t.memoizedState;s!==U||R!==A||pl||e!==null&&e.dependencies!==null&&ou(e.dependencies)?(typeof d=="function"&&(Uc(t,l,d,a),A=t.memoizedState),(C=pl||rf(t,l,C,a,R,A,p)||e!==null&&e.dependencies!==null&&ou(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,p),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,p)),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=A),u.props=a,u.state=A,u.context=p,a=C):(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,Au(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=$l(t,e.child,null,n),t.child=$l(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Pt(e,t,n),e}function _f(e,t,l,a){return Ql(),t.flags|=256,Ze(e,t,l,a),t.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:ho()}}function Gc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=mt),e}function Nf(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:(Oe.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?Sl(t):xl(),(e=_e)?(e=Ud(e,_t),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:Bt,overflow:qt}:null,retryLane:536870912,hydrationErrors:null},l=ao(e),l.return=t,t.child=l,Ve=t,_e=null)):e=null,e===null)throw vl(t);return Es(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(xl(),n=t.mode,d=Cu({mode:"hidden",children:d},n),a=Xl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Yc(l),a.childLanes=Gc(e,s,l),t.memoizedState=Lc,vn(null,a)):(Sl(t),Xc(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(u)t.flags&256?(Sl(t),t.flags&=-257,t=Qc(e,t,l)):t.memoizedState!==null?(xl(),t.child=e.child,t.flags|=128,t=null):(xl(),d=a.fallback,n=t.mode,a=Cu({mode:"visible",children:a.children},n),d=Xl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,$l(t,e.child,null,l),a=t.child,a.memoizedState=Yc(l),a.childLanes=Gc(e,s,l),t.memoizedState=Lc,t=vn(null,a));else if(Sl(t),Es(d)){if(s=d.nextSibling&&d.nextSibling.dataset,s)var z=s.dgst;s=z,a=Error(o(419)),a.stack="",a.digest=s,ln({value:a,source:null,stack:null}),t=Qc(e,t,l)}else if(Be||pa(e,t,l,!1),s=(l&e.childLanes)!==0,Be||s){if(s=je,s!==null&&(a=or(s,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Gl(e,a),ut(s,e,a),Bc;js(d)||Lu(),t=Qc(e,t,l)}else js(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,_e=zt(d.nextSibling),Ve=t,oe=!0,ml=null,_t=!1,e!==null&&io(t,e),t=Xc(t,a.children),t.flags|=4096);return t}return n?(xl(),d=a.fallback,n=t.mode,p=e.child,z=p.sibling,a=Kt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,z!==null?d=Kt(z,d):(d=Xl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,vn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Yc(l):(n=d.cachePool,n!==null?(p=we._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=ho(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Gc(e,s,l),t.memoizedState=Lc,vn(e.child,a)):(Sl(t),l=e.child,e=l.sibling,l=Kt(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 Xc(e,t){return t=Cu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Cu(e,t){return e=ot(22,e,null,t),e.lanes=0,e}function Qc(e,t,l){return $l(t,e.child,null,l),e=Xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function zf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),nc(e.return,t,l)}function Vc(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 Rf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=Oe.current,d=(s&2)!==0;if(d?(s=s&1|2,t.flags|=128):s&=1,V(Oe,s),Ze(e,t,a,l),a=oe?tn:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zf(e,l,t);else if(e.tag===19)zf(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&&gu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Vc(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&&gu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Vc(t,!0,l,null,u,a);break;case"together":Vc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Pt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pa(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Kt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Kt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function kc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ou(e)))}function jv(e,t,l){switch(t.tag){case 3:Fe(t,t.stateNode.containerInfo),yl(t,we,e.memoizedState.cache),Ql();break;case 27:case 5:Ya(t);break;case 4:Fe(t,t.stateNode.containerInfo);break;case 10:yl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,yc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Sl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Nf(e,t,l):(Sl(t),e=Pt(e,t,l),e!==null?e.sibling:null);Sl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Rf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(Oe,Oe.current),a)break;return null;case 22:return t.lanes=0,Sf(e,t,l,t.pendingProps);case 24:yl(t,we,e.memoizedState.cache)}return Pt(e,t,l)}function Af(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!kc(e,l)&&(t.flags&128)===0)return Be=!1,jv(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,oe&&(t.flags&1048576)!==0&&uo(t,tn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Kl(t.elementType),t.type=e,typeof e=="function")Wi(e)?(a=Fl(e,a),t.tag=1,t=Tf(null,t,e,a,l)):(t.tag=0,t=qc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===L){t.tag=11,t=pf(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=gf(null,t,e,a,l);break e}}throw t=gt(e)||e,Error(o(306,t,""))}}return t;case 0:return qc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Fl(a,t.pendingProps),Tf(e,t,a,n,l);case 3:e:{if(Fe(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,fc(e,t),on(t,a,null,l);var s=t.memoizedState;if(a=s.cache,yl(t,we,a),a!==u.cache&&uc(t,[we],l,!0),rn(),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=_f(e,t,a,l);break e}else if(a!==n){n=jt(Error(o(424)),t),ln(n),t=_f(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(_e=zt(e.firstChild),Ve=t,oe=!0,ml=null,_t=!0,l=bo(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),a===n){t=Pt(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Au(e,t),e===null?(l=Yd(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Zu(ue.current).createElement(l),a[Qe]=t,a[Pe]=e,Ke(a,l,e),Ge(a),t.stateNode=a):t.memoizedState=Yd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ya(t),e===null&&oe&&(a=t.stateNode=Bd(t.type,t.pendingProps,ue.current),Ve=t,_t=!0,n=_e,Al(t.type)?(Ts=n,_e=zt(a.firstChild)):_e=n),Ze(e,t,t.pendingProps.children,l),Au(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=_e)&&(a=Iv(a,t.type,t.pendingProps,_t),a!==null?(t.stateNode=a,Ve=t,_e=zt(a.firstChild),_t=!1,n=!0):n=!1),n||vl(t)),Ya(t),n=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,a=u.children,bs(n,u)?a=null:s!==null&&bs(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=gc(e,t,hv,null,null,l),Cn._currentValue=n),Au(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=_e)&&(l=Pv(l,t.pendingProps,_t),l!==null?(t.stateNode=l,Ve=t,_e=null,e=!0):e=!1),e||vl(t)),null;case 13:return Nf(e,t,l);case 4:return Fe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return pf(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,yl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,kl(t),n=ke(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return gf(e,t,t.type,t.pendingProps,l);case 15:return bf(e,t,t.type,t.pendingProps,l);case 19:return Rf(e,t,l);case 31:return xv(e,t,l);case 22:return Sf(e,t,l,t.pendingProps);case 24:return kl(t),a=ke(we),e===null?(n=sc(),n===null&&(n=je,u=ic(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},oc(t),yl(t,we,n)):((e.lanes&l)!==0&&(fc(e,t),on(t,null,null,l),rn()),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),yl(t,we,a)):(a=u.cache,yl(t,we,a),a!==n.cache&&uc(t,[we],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function el(e){e.flags|=4}function Zc(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(ld())e.flags|=8192;else throw Jl=mu,rc}else e.flags&=-16777217}function Cf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kd(t))if(ld())e.flags|=8192;else throw Jl=mu,rc}function Mu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cr():536870912,e.lanes|=t,Aa|=t)}function yn(e,t){if(!oe)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 Ne(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 Ev(e,t,l){var a=t.pendingProps;switch(ec(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(we),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ya(t)?el(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,lc())),Ne(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(el(t),u!==null?(Ne(t),Cf(t,u)):(Ne(t),Zc(t,n,null,a,l))):u?u!==e.memoizedState?(el(t),Ne(t),Cf(t,u)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&el(t),Ne(t),Zc(t,n,e,a,l)),null;case 27:if(Xn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}e=J.current,ya(t)?co(t):(e=Bd(n,a,l),t.stateNode=e,el(t))}return Ne(t),null;case 5:if(Xn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(u=J.current,ya(t))co(t);else{var s=Zu(ue.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[Qe]=t,u[Pe]=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(Ke(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&&el(t)}}return Ne(t),Zc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&el(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ue.current,ya(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ve,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Qe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Nd(e.nodeValue,l)),e||vl(t,!0)}else e=Zu(e).createTextNode(a),e[Qe]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ya(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Qe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=lc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(dt(t),t):(dt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ya(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Qe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=lc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(dt(t),t):(dt(t),null)}return dt(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),Mu(t,t.updateQueue),Ne(t),null);case 4:return Me(),e===null&&ms(t.stateNode.containerInfo),Ne(t),null;case 10:return Wt(t.type),Ne(t),null;case 19:if(w(Oe),a=t.memoizedState,a===null)return Ne(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)yn(a,!1);else{if(Ce!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=gu(e),u!==null){for(t.flags|=128,yn(a,!1),e=u.updateQueue,t.updateQueue=e,Mu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)lo(l,e),l=l.sibling;return V(Oe,Oe.current&1|2),oe&&Jt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&it()>Hu&&(t.flags|=128,n=!0,yn(a,!1),t.lanes=4194304)}else{if(!n)if(e=gu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Mu(t,e),yn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!oe)return Ne(t),null}else 2*it()-a.renderingStartTime>Hu&&l!==536870912&&(t.flags|=128,n=!0,yn(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=it(),e.sibling=null,l=Oe.current,V(Oe,n?l&1|2:l&1),oe&&Jt(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return dt(t),vc(),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&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),l=t.updateQueue,l!==null&&Mu(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&&w(Zl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(we),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Tv(e,t){switch(ec(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(we),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Xn(t),null;case 31:if(t.memoizedState!==null){if(dt(t),t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(Oe),null;case 4:return Me(),null;case 10:return Wt(t.type),null;case 22:case 23:return dt(t),vc(),e!==null&&w(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(we),null;case 25:return null;default:return null}}function Mf(e,t){switch(ec(t),t.tag){case 3:Wt(we),Me();break;case 26:case 27:case 5:Xn(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&dt(t);break;case 13:dt(t);break;case 19:w(Oe);break;case 10:Wt(t.type);break;case 22:case 23:dt(t),vc(),e!==null&&w(Zl);break;case 24:Wt(we)}}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(d){ye(t,t.return,d)}}function jl(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,d=s.destroy;if(d!==void 0){s.destroy=void 0,n=t;var p=l,z=d;try{z()}catch(C){ye(n,p,C)}}}a=a.next}while(a!==u)}}catch(C){ye(t,t.return,C)}}function Of(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{xo(t,l)}catch(a){ye(e,e.return,a)}}}function Df(e,t,l){l.props=Fl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ye(e,t,a)}}function gn(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){ye(e,t,n)}}function Lt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ye(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){ye(e,t,n)}else l.current=null}function Uf(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){ye(e,e.return,n)}}function Kc(e,t,l){try{var a=e.stateNode;Zv(a,e.type,l,t),a[Pe]=t}catch(n){ye(e,e.return,n)}}function wf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(e.type)||e.tag===4}function Jc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wf(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&&Al(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 $c(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=kt));else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,l),e=e.sibling;e!==null;)$c(e,t,l),e=e.sibling}function Ou(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&&Al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ou(e,t,l),e=e.sibling;e!==null;)Ou(e,t,l),e=e.sibling}function Hf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ke(t,a,l),t[Qe]=e,t[Pe]=l}catch(u){ye(e,e.return,u)}}var tl=!1,qe=!1,Wc=!1,Bf=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function _v(e,t){if(e=e.containerInfo,ps=Pu,e=Kr(e),Qi(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,d=-1,p=-1,z=0,C=0,U=e,R=null;t:for(;;){for(var A;U!==l||n!==0&&U.nodeType!==3||(d=s+n),U!==u||a!==0&&U.nodeType!==3||(p=s+a),U.nodeType===3&&(s+=U.nodeValue.length),(A=U.firstChild)!==null;)R=U,U=A;for(;;){if(U===e)break t;if(R===l&&++z===n&&(d=s),R===u&&++C===a&&(p=s),(A=U.nextSibling)!==null)break;U=R,R=U.parentNode}U=A}l=d===-1||p===-1?null:{start:d,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;for(gs={focusedElem:e,selectionRange:l},Pu=!1,Xe=t;Xe!==null;)if(t=Xe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Xe=e;else for(;Xe!==null;){switch(t=Xe,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 Z=Fl(l.type,n);e=a.getSnapshotBeforeUpdate(Z,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){ye(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)xs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":xs(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(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Xe=e;break}Xe=t.return}}function qf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:al(e,l),a&4&&pn(5,l);break;case 1:if(al(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){ye(l,l.return,s)}else{var n=Fl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){ye(l,l.return,s)}}a&64&&Of(l),a&512&&gn(l,l.return);break;case 3:if(al(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{xo(e,t)}catch(s){ye(l,l.return,s)}}break;case 27:t===null&&a&4&&Hf(l);case 26:case 5:al(e,l),t===null&&a&4&&Uf(l),a&512&&gn(l,l.return);break;case 12:al(e,l);break;case 31:al(e,l),a&4&&Gf(e,l);break;case 13:al(e,l),a&4&&Xf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Uv.bind(null,l),ey(e,l))));break;case 22:if(a=l.memoizedState!==null||tl,!a){t=t!==null&&t.memoizedState!==null||qe,n=tl;var u=qe;tl=a,(qe=t)&&!u?nl(e,l,(l.subtreeFlags&8772)!==0):al(e,l),tl=n,qe=u}break;case 30:break;default:al(e,l)}}function Lf(e){var t=e.alternate;t!==null&&(e.alternate=null,Lf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ni(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 ze=null,tt=!1;function ll(e,t,l){for(l=l.child;l!==null;)Yf(e,t,l),l=l.sibling}function Yf(e,t,l){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ga,l)}catch{}switch(l.tag){case 26:qe||Lt(l,t),ll(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qe||Lt(l,t);var a=ze,n=tt;Al(l.type)&&(ze=l.stateNode,tt=!1),ll(e,t,l),zn(l.stateNode),ze=a,tt=n;break;case 5:qe||Lt(l,t);case 6:if(a=ze,n=tt,ze=null,ll(e,t,l),ze=a,tt=n,ze!==null)if(tt)try{(ze.nodeType===9?ze.body:ze.nodeName==="HTML"?ze.ownerDocument.body:ze).removeChild(l.stateNode)}catch(u){ye(l,t,u)}else try{ze.removeChild(l.stateNode)}catch(u){ye(l,t,u)}break;case 18:ze!==null&&(tt?(e=ze,Od(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ba(e)):Od(ze,l.stateNode));break;case 4:a=ze,n=tt,ze=l.stateNode.containerInfo,tt=!0,ll(e,t,l),ze=a,tt=n;break;case 0:case 11:case 14:case 15:jl(2,l,t),qe||jl(4,l,t),ll(e,t,l);break;case 1:qe||(Lt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Df(l,t,a)),ll(e,t,l);break;case 21:ll(e,t,l);break;case 22:qe=(a=qe)||l.memoizedState!==null,ll(e,t,l),qe=a;break;default:ll(e,t,l)}}function Gf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ba(e)}catch(l){ye(t,t.return,l)}}}function Xf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ba(e)}catch(l){ye(t,t.return,l)}}function Nv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bf),t;default:throw Error(o(435,e.tag))}}function Du(e,t){var l=Nv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=wv.bind(null,e,a);a.then(n,n)}})}function lt(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,d=s;e:for(;d!==null;){switch(d.tag){case 27:if(Al(d.type)){ze=d.stateNode,tt=!1;break e}break;case 5:ze=d.stateNode,tt=!1;break e;case 3:case 4:ze=d.stateNode.containerInfo,tt=!0;break e}d=d.return}if(ze===null)throw Error(o(160));Yf(u,s,n),ze=null,tt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Qf(t,e),t=t.sibling}var Ot=null;function Qf(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:lt(t,e),at(e),a&4&&(jl(3,e,e.return),pn(3,e),jl(5,e,e.return));break;case 1:lt(t,e),at(e),a&512&&(qe||l===null||Lt(l,l.return)),a&64&&tl&&(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=Ot;if(lt(t,e),at(e),a&512&&(qe||l===null||Lt(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[Va]||u[Qe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ke(u,a,l),u[Qe]=e,Ge(u),a=u;break e;case"link":var s=Qd("link","href",n).get(a+(l.href||""));if(s){for(var d=0;d<s.length;d++)if(u=s[d],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(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;case"meta":if(s=Qd("meta","content",n).get(a+(l.content||""))){for(d=0;d<s.length;d++)if(u=s[d],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(d,1);break t}}u=n.createElement(a),Ke(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Qe]=e,Ge(u),a=u}e.stateNode=a}else Vd(n,e.type,e.stateNode);else e.stateNode=Xd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Vd(n,e.type,e.stateNode):Xd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,l.memoizedProps)}break;case 27:lt(t,e),at(e),a&512&&(qe||l===null||Lt(l,l.return)),l!==null&&a&4&&Kc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(lt(t,e),at(e),a&512&&(qe||l===null||Lt(l,l.return)),e.flags&32){n=e.stateNode;try{ia(n,"")}catch(Z){ye(e,e.return,Z)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Kc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Wc=!0);break;case 6:if(lt(t,e),at(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Z){ye(e,e.return,Z)}}break;case 3:if($u=null,n=Ot,Ot=Ku(t.containerInfo),lt(t,e),Ot=n,at(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ba(t.containerInfo)}catch(Z){ye(e,e.return,Z)}Wc&&(Wc=!1,Vf(e));break;case 4:a=Ot,Ot=Ku(e.stateNode.containerInfo),lt(t,e),at(e),Ot=a;break;case 12:lt(t,e),at(e);break;case 31:lt(t,e),at(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Du(e,a)));break;case 13:lt(t,e),at(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(wu=it()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Du(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,z=tl,C=qe;if(tl=z||n,qe=C||p,lt(t,e),qe=C,tl=z,at(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||tl||qe||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{d=p.stateNode;var U=p.memoizedProps.style,R=U!=null&&U.hasOwnProperty("display")?U.display:null;d.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(Z){ye(p,p.return,Z)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(Z){ye(p,p.return,Z)}}}else if(t.tag===18){if(l===null){p=t;try{var A=p.stateNode;n?Dd(A,!0):Dd(p.stateNode,!1)}catch(Z){ye(p,p.return,Z)}}}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,Du(e,l))));break;case 19:lt(t,e),at(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Du(e,a)));break;case 30:break;case 21:break;default:lt(t,e),at(e)}}function at(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(wf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Jc(e);Ou(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(ia(s,""),l.flags&=-33);var d=Jc(e);Ou(e,d,s);break;case 3:case 4:var p=l.stateNode.containerInfo,z=Jc(e);$c(e,z,p);break;default:throw Error(o(161))}}catch(C){ye(e,e.return,C)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function al(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qf(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jl(4,t,t.return),Il(t);break;case 1:Lt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Df(t,t.return,l),Il(t);break;case 27:zn(t.stateNode);case 26:case 5:Lt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function nl(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:nl(n,u,l),pn(4,u);break;case 1:if(nl(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(z){ye(a,a.return,z)}if(a=u,n=a.updateQueue,n!==null){var d=a.stateNode;try{var p=n.shared.hiddenCallbacks;if(p!==null)for(n.shared.hiddenCallbacks=null,n=0;n<p.length;n++)So(p[n],d)}catch(z){ye(a,a.return,z)}}l&&s&64&&Of(u),gn(u,u.return);break;case 27:Hf(u);case 26:case 5:nl(n,u,l),l&&a===null&&s&4&&Uf(u),gn(u,u.return);break;case 12:nl(n,u,l);break;case 31:nl(n,u,l),l&&s&4&&Gf(n,u);break;case 13:nl(n,u,l),l&&s&4&&Xf(n,u);break;case 22:u.memoizedState===null&&nl(n,u,l),gn(u,u.return);break;case 30:break;default:nl(n,u,l)}t=t.sibling}}function Fc(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&&an(l))}function Ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&an(e))}function Dt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kf(e,t,l,a),t=t.sibling}function kf(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Dt(e,t,l,a),n&2048&&pn(9,t);break;case 1:Dt(e,t,l,a);break;case 3:Dt(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&&an(e)));break;case 12:if(n&2048){Dt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,d=u.onPostCommit;typeof d=="function"&&d(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(p){ye(t,t.return,p)}}else Dt(e,t,l,a);break;case 31:Dt(e,t,l,a);break;case 13:Dt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?Dt(e,t,l,a):bn(e,t):u._visibility&2?Dt(e,t,l,a):(u._visibility|=2,Na(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Fc(s,t);break;case 24:Dt(e,t,l,a),n&2048&&Ic(t.alternate,t);break;default:Dt(e,t,l,a)}}function Na(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,d=l,p=a,z=s.flags;switch(s.tag){case 0:case 11:case 15:Na(u,s,d,p,n),pn(8,s);break;case 23:break;case 22:var C=s.stateNode;s.memoizedState!==null?C._visibility&2?Na(u,s,d,p,n):bn(u,s):(C._visibility|=2,Na(u,s,d,p,n)),n&&z&2048&&Fc(s.alternate,s);break;case 24:Na(u,s,d,p,n),n&&z&2048&&Ic(s.alternate,s);break;default:Na(u,s,d,p,n)}t=t.sibling}}function bn(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:bn(l,a),n&2048&&Fc(a.alternate,a);break;case 24:bn(l,a),n&2048&&Ic(a.alternate,a);break;default:bn(l,a)}t=t.sibling}}var Sn=8192;function za(e,t,l){if(e.subtreeFlags&Sn)for(e=e.child;e!==null;)Zf(e,t,l),e=e.sibling}function Zf(e,t,l){switch(e.tag){case 26:za(e,t,l),e.flags&Sn&&e.memoizedState!==null&&dy(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:za(e,t,l);break;case 3:case 4:var a=Ot;Ot=Ku(e.stateNode.containerInfo),za(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Sn,Sn=16777216,za(e,t,l),Sn=a):za(e,t,l));break;default:za(e,t,l)}}function Kf(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 xn(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];Xe=a,$f(a,e)}Kf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jf(e),e=e.sibling}function Jf(e){switch(e.tag){case 0:case 11:case 15:xn(e),e.flags&2048&&jl(9,e,e.return);break;case 3:xn(e);break;case 12:xn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uu(e)):xn(e);break;default:xn(e)}}function Uu(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];Xe=a,$f(a,e)}Kf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jl(8,t,t.return),Uu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Uu(t));break;default:Uu(t)}e=e.sibling}}function $f(e,t){for(;Xe!==null;){var l=Xe;switch(l.tag){case 0:case 11:case 15:jl(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:an(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Xe=a;else e:for(l=e;Xe!==null;){a=Xe;var n=a.sibling,u=a.return;if(Lf(a),a===l){Xe=null;break e}if(n!==null){n.return=u,Xe=n;break e}Xe=u}}}var zv={getCacheForType:function(e){var t=ke(we),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ke(we).controller.signal}},Rv=typeof WeakMap=="function"?WeakMap:Map,he=0,je=null,ie=null,se=0,ve=0,ht=null,El=!1,Ra=!1,Pc=!1,ul=0,Ce=0,Tl=0,Pl=0,es=0,mt=0,Aa=0,jn=null,nt=null,ts=!1,wu=0,Wf=0,Hu=1/0,Bu=null,_l=null,Ye=0,Nl=null,Ca=null,il=0,ls=0,as=null,Ff=null,En=0,ns=null;function vt(){return(he&2)!==0&&se!==0?se&-se:O.T!==null?os():fr()}function If(){if(mt===0)if((se&536870912)===0||oe){var e=kn;kn<<=1,(kn&3932160)===0&&(kn=262144),mt=e}else mt=536870912;return e=ft.current,e!==null&&(e.flags|=32),mt}function ut(e,t,l){(e===je&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),zl(e,se,mt,!1)),Qa(e,l),((he&2)===0||e!==je)&&(e===je&&((he&2)===0&&(Pl|=l),Ce===4&&zl(e,se,mt,!1)),Yt(e))}function Pf(e,t,l){if((he&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Xa(e,t),n=a?Mv(e,t):is(e,t,!0),u=a;do{if(n===0){Ra&&!a&&zl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Av(l)){n=is(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 d=e;n=jn;var p=d.current.memoizedState.isDehydrated;if(p&&(Ma(d,s).flags|=256),s=is(d,s,!1),s!==2){if(Pc&&!p){d.errorRecoveryDisabledLanes|=u,Pl|=u,n=4;break e}u=nt,nt=n,u!==null&&(nt===null?nt=u:nt.push.apply(nt,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){Ma(e,0),zl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:zl(a,t,mt,!El);break e;case 2:nt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=wu+300-it(),10<n)){if(zl(a,t,mt,!El),Kn(a,0,!0)!==0)break e;il=t,a.timeoutHandle=Cd(ed.bind(null,a,l,nt,Bu,ts,t,mt,Pl,Aa,El,u,"Throttled",-0,0),n);break e}ed(a,l,nt,Bu,ts,t,mt,Pl,Aa,El,u,null,-0,0)}}break}while(!0);Yt(e)}function ed(e,t,l,a,n,u,s,d,p,z,C,U,R,A){if(e.timeoutHandle=-1,U=t.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:kt},Zf(t,u,U);var Z=(u&62914560)===u?wu-it():(u&4194048)===u?Wf-it():0;if(Z=hy(U,Z),Z!==null){il=u,e.cancelPendingCommit=Z(sd.bind(null,e,t,u,l,a,n,s,d,p,C,U,null,R,A)),zl(e,u,s,!z);return}}sd(e,t,u,l,a,n,s,d,p)}function Av(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(!rt(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 zl(e,t,l,a){t&=~es,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-st(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&sr(e,l,t)}function qu(){return(he&6)===0?(Tn(0),!1):!0}function us(){if(ie!==null){if(ve===0)var e=ie.return;else e=ie,$t=Vl=null,xc(e),xa=null,un=0,e=ie;for(;e!==null;)Mf(e.alternate,e),e=e.return;ie=null}}function Ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,$v(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),il=0,us(),je=e,ie=l=Kt(e.current,null),se=t,ve=0,ht=null,El=!1,Ra=Xa(e,t),Pc=!1,Aa=mt=es=Pl=Tl=Ce=0,nt=jn=null,ts=!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-st(a),u=1<<n;t|=e[n],a&=~u}return ul=t,uu(),l}function td(e,t){ae=null,O.H=mn,t===Sa||t===hu?(t=yo(),ve=3):t===rc?(t=yo(),ve=4):ve=t===Bc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ht=t,ie===null&&(Ce=1,zu(e,jt(t,e.current)))}function ld(){var e=ft.current;return e===null?!0:(se&4194048)===se?Nt===null:(se&62914560)===se||(se&536870912)!==0?e===Nt:!1}function ad(){var e=O.H;return O.H=mn,e===null?mn:e}function nd(){var e=O.A;return O.A=zv,e}function Lu(){Ce=4,El||(se&4194048)!==se&&ft.current!==null||(Ra=!0),(Tl&134217727)===0&&(Pl&134217727)===0||je===null||zl(je,se,mt,!1)}function is(e,t,l){var a=he;he|=2;var n=ad(),u=nd();(je!==e||se!==t)&&(Bu=null,Ma(e,t)),t=!1;var s=Ce;e:do try{if(ve!==0&&ie!==null){var d=ie,p=ht;switch(ve){case 8:us(),s=6;break e;case 3:case 2:case 9:case 6:ft.current===null&&(t=!0);var z=ve;if(ve=0,ht=null,Oa(e,d,p,z),l&&Ra){s=0;break e}break;default:z=ve,ve=0,ht=null,Oa(e,d,p,z)}}Cv(),s=Ce;break}catch(C){td(e,C)}while(!0);return t&&e.shellSuspendCounter++,$t=Vl=null,he=a,O.H=n,O.A=u,ie===null&&(je=null,se=0,uu()),s}function Cv(){for(;ie!==null;)ud(ie)}function Mv(e,t){var l=he;he|=2;var a=ad(),n=nd();je!==e||se!==t?(Bu=null,Hu=it()+500,Ma(e,t)):Ra=Xa(e,t);e:do try{if(ve!==0&&ie!==null){t=ie;var u=ht;t:switch(ve){case 1:ve=0,ht=null,Oa(e,t,u,1);break;case 2:case 9:if(mo(u)){ve=0,ht=null,id(t);break}t=function(){ve!==2&&ve!==9||je!==e||(ve=7),Yt(e)},u.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:mo(u)?(ve=0,ht=null,id(t)):(ve=0,ht=null,Oa(e,t,u,7));break;case 5:var s=null;switch(ie.tag){case 26:s=ie.memoizedState;case 5:case 27:var d=ie;if(s?kd(s):d.stateNode.complete){ve=0,ht=null;var p=d.sibling;if(p!==null)ie=p;else{var z=d.return;z!==null?(ie=z,Yu(z)):ie=null}break t}}ve=0,ht=null,Oa(e,t,u,5);break;case 6:ve=0,ht=null,Oa(e,t,u,6);break;case 8:us(),Ce=6;break e;default:throw Error(o(462))}}Ov();break}catch(C){td(e,C)}while(!0);return $t=Vl=null,O.H=a,O.A=n,he=l,ie!==null?0:(je=null,se=0,uu(),Ce)}function Ov(){for(;ie!==null&&!tm();)ud(ie)}function ud(e){var t=Af(e.alternate,e,ul);e.memoizedProps=e.pendingProps,t===null?Yu(e):ie=t}function id(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Ef(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=Ef(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:xc(t);default:Mf(l,t),t=ie=lo(t,ul),t=Af(l,t,ul)}e.memoizedProps=e.pendingProps,t===null?Yu(e):ie=t}function Oa(e,t,l,a){$t=Vl=null,xc(t),xa=null,un=0;var n=t.return;try{if(Sv(e,n,t,l,se)){Ce=1,zu(e,jt(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Ce=1,zu(e,jt(l,e.current)),ie=null;return}t.flags&32768?(oe||a===1?e=!0:Ra||(se&536870912)!==0?e=!1:(El=e=!0,(a===2||a===9||a===3||a===6)&&(a=ft.current,a!==null&&a.tag===13&&(a.flags|=16384))),cd(t,e)):Yu(t)}function Yu(e){var t=e;do{if((t.flags&32768)!==0){cd(t,El);return}e=t.return;var l=Ev(t.alternate,t,ul);if(l!==null){ie=l;return}if(t=t.sibling,t!==null){ie=t;return}ie=t=e}while(t!==null);Ce===0&&(Ce=5)}function cd(e,t){do{var l=Tv(e.alternate,e);if(l!==null){l.flags&=32767,ie=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ie=e;return}ie=e=l}while(e!==null);Ce=6,ie=null}function sd(e,t,l,a,n,u,s,d,p){e.cancelPendingCommit=null;do Gu();while(Ye!==0);if((he&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Ji,fm(e,l,u,s,d,p),e===je&&(ie=je=null,se=0),Ca=t,Nl=e,il=l,ls=u,as=n,Ff=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Hv(Qn,function(){return hd(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=Q.p,Q.p=2,s=he,he|=4;try{_v(e,t,l)}finally{he=s,Q.p=n,O.T=a}}Ye=1,rd(),od(),fd()}}function rd(){if(Ye===1){Ye=0;var e=Nl,t=Ca,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var n=he;he|=4;try{Qf(t,e);var u=gs,s=Kr(e.containerInfo),d=u.focusedElem,p=u.selectionRange;if(s!==d&&d&&d.ownerDocument&&Zr(d.ownerDocument.documentElement,d)){if(p!==null&&Qi(d)){var z=p.start,C=p.end;if(C===void 0&&(C=z),"selectionStart"in d)d.selectionStart=z,d.selectionEnd=Math.min(C,d.value.length);else{var U=d.ownerDocument||document,R=U&&U.defaultView||window;if(R.getSelection){var A=R.getSelection(),Z=d.textContent.length,P=Math.min(p.start,Z),Se=p.end===void 0?P:Math.min(p.end,Z);!A.extend&&P>Se&&(s=Se,Se=P,P=s);var T=kr(d,P),b=kr(d,Se);if(T&&b&&(A.rangeCount!==1||A.anchorNode!==T.node||A.anchorOffset!==T.offset||A.focusNode!==b.node||A.focusOffset!==b.offset)){var N=U.createRange();N.setStart(T.node,T.offset),A.removeAllRanges(),P>Se?(A.addRange(N),A.extend(b.node,b.offset)):(N.setEnd(b.node,b.offset),A.addRange(N))}}}}for(U=[],A=d;A=A.parentNode;)A.nodeType===1&&U.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<U.length;d++){var D=U[d];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Pu=!!ps,gs=ps=null}finally{he=n,Q.p=a,O.T=l}}e.current=t,Ye=2}}function od(){if(Ye===2){Ye=0;var e=Nl,t=Ca,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Q.p;Q.p=2;var n=he;he|=4;try{qf(e,t.alternate,t)}finally{he=n,Q.p=a,O.T=l}}Ye=3}}function fd(){if(Ye===4||Ye===3){Ye=0,lm();var e=Nl,t=Ca,l=il,a=Ff;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ye=5:(Ye=0,Ca=Nl=null,dd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(_l=null),Ti(l),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(Ga,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=Q.p,Q.p=2,O.T=null;try{for(var u=e.onRecoverableError,s=0;s<a.length;s++){var d=a[s];u(d.value,{componentStack:d.stack})}}finally{O.T=t,Q.p=n}}(il&3)!==0&&Gu(),Yt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ns?En++:(En=0,ns=e):En=0,Tn(0)}}function dd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,an(t)))}function Gu(){return rd(),od(),fd(),hd()}function hd(){if(Ye!==5)return!1;var e=Nl,t=ls;ls=0;var l=Ti(il),a=O.T,n=Q.p;try{Q.p=32>l?32:l,O.T=null,l=as,as=null;var u=Nl,s=il;if(Ye=0,Ca=Nl=null,il=0,(he&6)!==0)throw Error(o(331));var d=he;if(he|=4,Jf(u.current),kf(u,u.current,s,l),he=d,Tn(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(Ga,u)}catch{}return!0}finally{Q.p=n,O.T=a,dd(e,t)}}function md(e,t,l){t=jt(l,t),t=Hc(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(Qa(e,2),Yt(e))}function ye(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"&&(_l===null||!_l.has(a))){e=jt(l,e),l=vf(2),a=bl(t,l,2),a!==null&&(yf(l,a,t,e),Qa(a,2),Yt(a));break}}t=t.return}}function cs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Rv;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)||(Pc=!0,n.add(l),e=Dv.bind(null,e,t,l),t.then(e,e))}function Dv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,je===e&&(se&l)===l&&(Ce===4||Ce===3&&(se&62914560)===se&&300>it()-wu?(he&2)===0&&Ma(e,0):es|=l,Aa===se&&(Aa=0)),Yt(e)}function vd(e,t){t===0&&(t=cr()),e=Gl(e,t),e!==null&&(Qa(e,t),Yt(e))}function Uv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),vd(e,l)}function wv(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(o(314))}a!==null&&a.delete(t),vd(e,l)}function Hv(e,t){return Si(e,t)}var Xu=null,Da=null,ss=!1,Qu=!1,rs=!1,Rl=0;function Yt(e){e!==Da&&e.next===null&&(Da===null?Xu=Da=e:Da=Da.next=e),Qu=!0,ss||(ss=!0,qv())}function Tn(e,t){if(!rs&&Qu){rs=!0;do for(var l=!1,a=Xu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-st(42|e)+1)-1,u&=n&~(s&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,bd(a,u))}else u=se,u=Kn(a,a===je?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Xa(a,u)||(l=!0,bd(a,u));a=a.next}while(l);rs=!1}}function Bv(){yd()}function yd(){Qu=ss=!1;var e=0;Rl!==0&&Jv()&&(e=Rl);for(var t=it(),l=null,a=Xu;a!==null;){var n=a.next,u=pd(a,t);u===0?(a.next=null,l===null?Xu=n:l.next=n,n===null&&(Da=l)):(l=a,(e!==0||(u&3)!==0)&&(Qu=!0)),a=n}Ye!==0&&Ye!==5||Tn(e),Rl!==0&&(Rl=0)}function pd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-st(u),d=1<<s,p=n[s];p===-1?((d&l)===0||(d&a)!==0)&&(n[s]=om(d,t)):p<=t&&(e.expiredLanes|=d),u&=~d}if(t=je,l=se,l=Kn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&xi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Xa(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xi(a),Ti(l)){case 2:case 8:l=ur;break;case 32:l=Qn;break;case 268435456:l=ir;break;default:l=Qn}return a=gd.bind(null,e),l=Si(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xi(a),e.callbackPriority=2,e.callbackNode=null,2}function gd(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Gu()&&e.callbackNode!==l)return null;var a=se;return a=Kn(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Pf(e,a,t),pd(e,it()),e.callbackNode!=null&&e.callbackNode===l?gd.bind(null,e):null)}function bd(e,t){if(Gu())return null;Pf(e,t,!0)}function qv(){Wv(function(){(he&6)!==0?Si(nr,Bv):yd()})}function os(){if(Rl===0){var e=ga;e===0&&(e=Vn,Vn<<=1,(Vn&261888)===0&&(Vn=256)),Rl=e}return Rl}function Sd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fn(""+e)}function xd(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 Lv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Sd((n[Pe]||null).action),s=a.submitter;s&&(t=(t=s[Pe]||null)?Sd(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var d=new tu("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Rl!==0){var p=s?xd(n,s):new FormData(n);Cc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(d.preventDefault(),p=s?xd(n,s):new FormData(n),Cc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var fs=0;fs<Ki.length;fs++){var ds=Ki[fs],Yv=ds.toLowerCase(),Gv=ds[0].toUpperCase()+ds.slice(1);Mt(Yv,"on"+Gv)}Mt(Wr,"onAnimationEnd"),Mt(Fr,"onAnimationIteration"),Mt(Ir,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(av,"onTransitionRun"),Mt(nv,"onTransitionStart"),Mt(uv,"onTransitionCancel"),Mt(Pr,"onTransitionEnd"),na("onMouseEnter",["mouseout","mouseover"]),na("onMouseLeave",["mouseout","mouseover"]),na("onPointerEnter",["pointerout","pointerover"]),na("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),Xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_n));function jd(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 d=a[s],p=d.instance,z=d.currentTarget;if(d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=z;try{u(n)}catch(C){nu(C)}n.currentTarget=null,u=p}else for(s=0;s<a.length;s++){if(d=a[s],p=d.instance,z=d.currentTarget,d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=z;try{u(n)}catch(C){nu(C)}n.currentTarget=null,u=p}}}}function ce(e,t){var l=t[_i];l===void 0&&(l=t[_i]=new Set);var a=e+"__bubble";l.has(a)||(Ed(t,e,2,!1),l.add(a))}function hs(e,t,l){var a=0;t&&(a|=4),Ed(l,e,a,t)}var Vu="_reactListening"+Math.random().toString(36).slice(2);function ms(e){if(!e[Vu]){e[Vu]=!0,mr.forEach(function(l){l!=="selectionchange"&&(Xv.has(l)||hs(l,!1,e),hs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Vu]||(t[Vu]=!0,hs("selectionchange",!1,t))}}function Ed(e,t,l,a){switch(Id(t)){case 2:var n=yy;break;case 8:n=py;break;default:n=As}l=n.bind(null,t,l,e),n=void 0,!Ui||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 vs(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 d=a.stateNode.containerInfo;if(d===n)break;if(s===4)for(s=a.return;s!==null;){var p=s.tag;if((p===3||p===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;d!==null;){if(s=ta(d),s===null)return;if(p=s.tag,p===5||p===6||p===26||p===27){a=u=s;continue e}d=d.parentNode}}a=a.return}Nr(function(){var z=u,C=Oi(l),U=[];e:{var R=eo.get(e);if(R!==void 0){var A=tu,Z=e;switch(e){case"keypress":if(Pn(l)===0)break e;case"keydown":case"keyup":A=wm;break;case"focusin":Z="focus",A=qi;break;case"focusout":Z="blur",A=qi;break;case"beforeblur":case"afterblur":A=qi;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":A=Ar;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Em;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=qm;break;case Wr:case Fr:case Ir:A=Nm;break;case Pr:A=Ym;break;case"scroll":case"scrollend":A=xm;break;case"wheel":A=Xm;break;case"copy":case"cut":case"paste":A=Rm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Mr;break;case"toggle":case"beforetoggle":A=Vm}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),T=P?R!==null?R+"Capture":null:R;P=[];for(var b=z,N;b!==null;){var D=b;if(N=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||N===null||T===null||(D=Za(b,T),D!=null&&P.push(Nn(b,D,N))),Se)break;b=b.return}0<P.length&&(R=new A(R,Z,null,l,C),U.push({event:R,listeners:P}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",R&&l!==Mi&&(Z=l.relatedTarget||l.fromElement)&&(ta(Z)||Z[ea]))break e;if((A||R)&&(R=C.window===C?C:(R=C.ownerDocument)?R.defaultView||R.parentWindow:window,A?(Z=l.relatedTarget||l.toElement,A=z,Z=Z?ta(Z):null,Z!==null&&(Se=m(Z),P=Z.tag,Z!==Se||P!==5&&P!==27&&P!==6)&&(Z=null)):(A=null,Z=z),A!==Z)){if(P=Ar,D="onMouseLeave",T="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(P=Mr,D="onPointerLeave",T="onPointerEnter",b="pointer"),Se=A==null?R:ka(A),N=Z==null?R:ka(Z),R=new P(D,b+"leave",A,l,C),R.target=Se,R.relatedTarget=N,D=null,ta(C)===z&&(P=new P(T,b+"enter",Z,l,C),P.target=N,P.relatedTarget=Se,D=P),Se=D,A&&Z)t:{for(P=Qv,T=A,b=Z,N=0,D=T;D;D=P(D))N++;D=0;for(var F=b;F;F=P(F))D++;for(;0<N-D;)T=P(T),N--;for(;0<D-N;)b=P(b),D--;for(;N--;){if(T===b||b!==null&&T===b.alternate){P=T;break t}T=P(T),b=P(b)}P=null}else P=null;A!==null&&Td(U,R,A,P,!1),Z!==null&&Se!==null&&Td(U,Se,Z,P,!0)}}e:{if(R=z?ka(z):window,A=R.nodeName&&R.nodeName.toLowerCase(),A==="select"||A==="input"&&R.type==="file")var fe=Lr;else if(Br(R))if(Yr)fe=ev;else{fe=Im;var $=Fm}else A=R.nodeName,!A||A.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?z&&Ci(z.elementType)&&(fe=Lr):fe=Pm;if(fe&&(fe=fe(e,z))){qr(U,fe,l,C);break e}$&&$(e,R,z),e==="focusout"&&z&&R.type==="number"&&z.memoizedProps.value!=null&&Ai(R,"number",R.value)}switch($=z?ka(z):window,e){case"focusin":(Br($)||$.contentEditable==="true")&&(oa=$,Vi=z,en=null);break;case"focusout":en=Vi=oa=null;break;case"mousedown":ki=!0;break;case"contextmenu":case"mouseup":case"dragend":ki=!1,Jr(U,l,C);break;case"selectionchange":if(lv)break;case"keydown":case"keyup":Jr(U,l,C)}var ne;if(Yi)e:{switch(e){case"compositionstart":var re="onCompositionStart";break e;case"compositionend":re="onCompositionEnd";break e;case"compositionupdate":re="onCompositionUpdate";break e}re=void 0}else ra?wr(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(Or&&l.locale!=="ko"&&(ra||re!=="onCompositionStart"?re==="onCompositionEnd"&&ra&&(ne=zr()):(dl=C,wi="value"in dl?dl.value:dl.textContent,ra=!0)),$=ku(z,re),0<$.length&&(re=new Cr(re,e,null,l,C),U.push({event:re,listeners:$}),ne?re.data=ne:(ne=Hr(l),ne!==null&&(re.data=ne)))),(ne=Zm?Km(e,l):Jm(e,l))&&(re=ku(z,"onBeforeInput"),0<re.length&&($=new Cr("onBeforeInput","beforeinput",null,l,C),U.push({event:$,listeners:re}),$.data=ne)),Lv(U,e,z,l,C)}jd(U,t)})}function Nn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ku(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=Za(e,l),n!=null&&a.unshift(Nn(e,n,u)),n=Za(e,t),n!=null&&a.push(Nn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Td(e,t,l,a,n){for(var u=t._reactName,s=[];l!==null&&l!==a;){var d=l,p=d.alternate,z=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||z===null||(p=z,n?(z=Za(l,u),z!=null&&s.unshift(Nn(l,z,p))):n||(z=Za(l,u),z!=null&&s.push(Nn(l,z,p)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var Vv=/\r\n?/g,kv=/\u0000|\uFFFD/g;function _d(e){return(typeof e=="string"?e:""+e).replace(Vv,`
|
|
49
|
+
`).replace(kv,"")}function Nd(e,t){return t=_d(t),_d(e)===t}function be(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ia(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ia(e,""+a);break;case"className":$n(e,"class",a);break;case"tabIndex":$n(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":$n(e,l,a);break;case"style":Tr(e,a,u);break;case"data":if(t!=="object"){$n(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=Fn(""+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"&&be(e,t,"name",n.name,n,null),be(e,t,"formEncType",n.formEncType,n,null),be(e,t,"formMethod",n.formMethod,n,null),be(e,t,"formTarget",n.formTarget,n,null)):(be(e,t,"encType",n.encType,n,null),be(e,t,"method",n.method,n,null),be(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=Fn(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=kt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(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=Fn(""+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":ce("beforetoggle",e),ce("toggle",e),Jn(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Jn(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=bm.get(l)||l,Jn(e,l,a))}}function ys(e,t,l,a,n,u){switch(l){case"style":Tr(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ia(e,a):(typeof a=="number"||typeof a=="bigint")&&ia(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=kt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vr.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[Pe]||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,""):Jn(e,l,a)}}}function Ke(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("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(o(137,t));default:be(e,t,u,s,l,null)}}n&&be(e,t,"srcSet",l.srcSet,l,null),a&&be(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var d=u=s=n=null,p=null,z=null;for(a in l)if(l.hasOwnProperty(a)){var C=l[a];if(C!=null)switch(a){case"name":n=C;break;case"type":s=C;break;case"checked":p=C;break;case"defaultChecked":z=C;break;case"value":u=C;break;case"defaultValue":d=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:be(e,t,a,C,l,null)}}Sr(e,u,d,p,z,s,n,!1);return;case"select":ce("invalid",e),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":s=d;break;case"multiple":a=d;default:be(e,t,n,d,l,null)}t=u,l=s,e.multiple=!!a,t!=null?ua(e,!!a,t,!1):l!=null&&ua(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(d=l[s],d!=null))switch(s){case"value":a=d;break;case"defaultValue":n=d;break;case"children":u=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(o(91));break;default:be(e,t,s,d,l,null)}jr(e,a,n,u);return;case"option":for(p in l)if(l.hasOwnProperty(p)&&(a=l[p],a!=null))switch(p){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:be(e,t,p,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<_n.length;a++)ce(_n[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(o(137,t));default:be(e,t,z,a,l,null)}return;default:if(Ci(t)){for(C in l)l.hasOwnProperty(C)&&(a=l[C],a!==void 0&&ys(e,t,C,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&be(e,t,d,a,l,null))}function Zv(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,d=null,p=null,z=null,C=null;for(A in l){var U=l[A];if(l.hasOwnProperty(A)&&U!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":p=U;default:a.hasOwnProperty(A)||be(e,t,A,null,a,U)}}for(var R in a){var A=a[R];if(U=l[R],a.hasOwnProperty(R)&&(A!=null||U!=null))switch(R){case"type":u=A;break;case"name":n=A;break;case"checked":z=A;break;case"defaultChecked":C=A;break;case"value":s=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==U&&be(e,t,R,A,a,U)}}Ri(e,s,d,p,z,C,u,n);return;case"select":A=s=d=R=null;for(u in l)if(p=l[u],l.hasOwnProperty(u)&&p!=null)switch(u){case"value":break;case"multiple":A=p;default:a.hasOwnProperty(u)||be(e,t,u,null,a,p)}for(n in a)if(u=a[n],p=l[n],a.hasOwnProperty(n)&&(u!=null||p!=null))switch(n){case"value":R=u;break;case"defaultValue":d=u;break;case"multiple":s=u;default:u!==p&&be(e,t,n,u,a,p)}t=d,l=s,a=A,R!=null?ua(e,!!l,R,!1):!!a!=!!l&&(t!=null?ua(e,!!l,t,!0):ua(e,!!l,l?[]:"",!1));return;case"textarea":A=R=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:be(e,t,d,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":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&be(e,t,s,n,a,u)}xr(e,R,A);return;case"option":for(var Z in l)if(R=l[Z],l.hasOwnProperty(Z)&&R!=null&&!a.hasOwnProperty(Z))switch(Z){case"selected":e.selected=!1;break;default:be(e,t,Z,null,a,R)}for(p in a)if(R=a[p],A=l[p],a.hasOwnProperty(p)&&R!==A&&(R!=null||A!=null))switch(p){case"selected":e.selected=R&&typeof R!="function"&&typeof R!="symbol";break;default:be(e,t,p,R,a,A)}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 P in l)R=l[P],l.hasOwnProperty(P)&&R!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,R);for(z in a)if(R=a[z],A=l[z],a.hasOwnProperty(z)&&R!==A&&(R!=null||A!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:be(e,t,z,R,a,A)}return;default:if(Ci(t)){for(var Se in l)R=l[Se],l.hasOwnProperty(Se)&&R!==void 0&&!a.hasOwnProperty(Se)&&ys(e,t,Se,void 0,a,R);for(C in a)R=a[C],A=l[C],!a.hasOwnProperty(C)||R===A||R===void 0&&A===void 0||ys(e,t,C,R,a,A);return}}for(var T in l)R=l[T],l.hasOwnProperty(T)&&R!=null&&!a.hasOwnProperty(T)&&be(e,t,T,null,a,R);for(U in a)R=a[U],A=l[U],!a.hasOwnProperty(U)||R===A||R==null&&A==null||be(e,t,U,R,a,A)}function zd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Kv(){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,d=n.duration;if(u&&d&&zd(s)){for(s=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],z=p.startTime;if(z>d)break;var C=p.transferSize,U=p.initiatorType;C&&zd(U)&&(p=p.responseEnd,s+=C*(p<d?1:(d-z)/(p-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 ps=null,gs=null;function Zu(e){return e.nodeType===9?e:e.ownerDocument}function Rd(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 Ad(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 bs(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 Ss=null;function Jv(){var e=window.event;return e&&e.type==="popstate"?e===Ss?!1:(Ss=e,!0):(Ss=null,!1)}var Cd=typeof setTimeout=="function"?setTimeout:void 0,$v=typeof clearTimeout=="function"?clearTimeout:void 0,Md=typeof Promise=="function"?Promise:void 0,Wv=typeof queueMicrotask=="function"?queueMicrotask:typeof Md<"u"?function(e){return Md.resolve(null).then(e).catch(Fv)}:Cd;function Fv(e){setTimeout(function(){throw e})}function Al(e){return e==="head"}function Od(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),Ba(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")zn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zn(l);for(var u=l.firstChild;u;){var s=u.nextSibling,d=u.nodeName;u[Va]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&zn(e.ownerDocument.body);l=n}while(l);Ba(t)}function Dd(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 xs(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":xs(l),Ni(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Iv(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[Va])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=zt(e.nextSibling),e===null)break}return null}function Pv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=zt(e.nextSibling),e===null))return null;return e}function Ud(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function js(e){return e.data==="$?"||e.data==="$~"}function Es(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ey(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 zt(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 Ts=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 zt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Hd(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 Bd(e,t,l){switch(t=Zu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function zn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ni(e)}var Rt=new Map,qd=new Set;function Ku(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=Q.d;Q.d={f:ty,r:ly,D:ay,C:ny,L:uy,m:iy,X:sy,S:cy,M:ry};function ty(){var e=cl.f(),t=qu();return e||t}function ly(e){var t=la(e);t!==null&&t.tag===5&&t.type==="form"?ef(t):cl.r(e)}var Ua=typeof document>"u"?null:document;function Ld(e,t,l){var a=Ua;if(a&&typeof t=="string"&&t){var n=St(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),qd.has(n)||(qd.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ke(t,"link",e),Ge(t),a.head.appendChild(t)))}}function ay(e){cl.D(e),Ld("dns-prefetch",e,null)}function ny(e,t){cl.C(e,t),Ld("preconnect",e,t)}function uy(e,t,l){cl.L(e,t,l);var a=Ua;if(a&&e&&t){var n='link[rel="preload"][as="'+St(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+St(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+St(l.imageSizes)+'"]')):n+='[href="'+St(e)+'"]';var u=n;switch(t){case"style":u=wa(e);break;case"script":u=Ha(e)}Rt.has(u)||(e=S({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Rt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Rn(u))||t==="script"&&a.querySelector(An(u))||(t=a.createElement("link"),Ke(t,"link",e),Ge(t),a.head.appendChild(t)))}}function iy(e,t){cl.m(e,t);var l=Ua;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+St(a)+'"][href="'+St(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ha(e)}if(!Rt.has(u)&&(e=S({rel:"modulepreload",href:e},t),Rt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(An(u)))return}a=l.createElement("link"),Ke(a,"link",e),Ge(a),l.head.appendChild(a)}}}function cy(e,t,l){cl.S(e,t,l);var a=Ua;if(a&&e){var n=aa(a).hoistableStyles,u=wa(e);t=t||"default";var s=n.get(u);if(!s){var d={loading:0,preload:null};if(s=a.querySelector(Rn(u)))d.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Rt.get(u))&&_s(e,l);var p=s=a.createElement("link");Ge(p),Ke(p,"link",e),p._p=new Promise(function(z,C){p.onload=z,p.onerror=C}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Ju(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:d},n.set(u,s)}}}function sy(e,t){cl.X(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(An(n)),u||(e=S({src:e,async:!0},t),(t=Rt.get(n))&&Ns(e,t),u=l.createElement("script"),Ge(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function ry(e,t){cl.M(e,t);var l=Ua;if(l&&e){var a=aa(l).hoistableScripts,n=Ha(e),u=a.get(n);u||(u=l.querySelector(An(n)),u||(e=S({src:e,async:!0,type:"module"},t),(t=Rt.get(n))&&Ns(e,t),u=l.createElement("script"),Ge(u),Ke(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Yd(e,t,l,a){var n=(n=ue.current)?Ku(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wa(l.href),l=aa(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=wa(l.href);var u=aa(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(Rn(e)))&&!u._p&&(s.instance=u,s.state.loading=5),Rt.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},Rt.set(e,l),u||oy(n,e,l,s.state))),t&&a===null)throw Error(o(528,""));return s}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ha(l),l=aa(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(o(444,e))}}function wa(e){return'href="'+St(e)+'"'}function Rn(e){return'link[rel="stylesheet"]['+e+"]"}function Gd(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function oy(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}),Ke(t,"link",l),Ge(t),e.head.appendChild(t))}function Ha(e){return'[src="'+St(e)+'"]'}function An(e){return"script[async]"+e}function Xd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+St(l.href)+'"]');if(a)return t.instance=a,Ge(a),a;var n=S({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ge(a),Ke(a,"style",n),Ju(a,l.precedence,e),t.instance=a;case"stylesheet":n=wa(l.href);var u=e.querySelector(Rn(n));if(u)return t.state.loading|=4,t.instance=u,Ge(u),u;a=Gd(l),(n=Rt.get(n))&&_s(a,n),u=(e.ownerDocument||e).createElement("link"),Ge(u);var s=u;return s._p=new Promise(function(d,p){s.onload=d,s.onerror=p}),Ke(u,"link",a),t.state.loading|=4,Ju(u,l.precedence,e),t.instance=u;case"script":return u=Ha(l.src),(n=e.querySelector(An(u)))?(t.instance=n,Ge(n),n):(a=l,(n=Rt.get(u))&&(a=S({},l),Ns(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ge(n),Ke(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Ju(a,l.precedence,e));return t.instance}function Ju(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 d=a[s];if(d.dataset.precedence===t)u=d;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 _s(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ns(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $u=null;function Qd(e,t,l){if($u===null){var a=new Map,n=$u=new Map;n.set(l,a)}else n=$u,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[Va]||u[Qe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var d=a.get(s);d?d.push(u):a.set(s,[u])}}return a}function Vd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function fy(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 kd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function dy(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=wa(a.href),u=t.querySelector(Rn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ge(u);return}u=t.ownerDocument||t,a=Gd(a),(n=Rt.get(n))&&_s(a,n),u=u.createElement("link"),Ge(u);var s=u;s._p=new Promise(function(d,p){s.onload=d,s.onerror=p}),Ke(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=Wu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var zs=0;function hy(e,t){return e.stylesheets&&e.count===0&&Iu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Iu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&zs===0&&(zs=62500*Kv());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Iu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>zs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Wu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Iu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fu=null;function Iu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fu=new Map,t.forEach(my,e),Fu=null,Wu.call(e))}function my(e,t){if(!(t.state.loading&4)){var l=Fu.get(e);if(l)var a=l.get(null);else{l=new Map,Fu.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=Wu.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 Cn={$$typeof:W,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function vy(e,t,l,a,n,u,s,d,p){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=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Zd(e,t,l,a,n,u,s,d,p,z,C,U){return e=new vy(e,t,l,s,p,z,C,U,d),t=1,u===!0&&(t|=24),u=ot(3,null,null,t),e.current=u,u.stateNode=e,t=ic(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},oc(u),e}function Kd(e){return e?(e=ha,e):ha}function Jd(e,t,l,a,n,u){n=Kd(n),a.context===null?a.context=n:a.pendingContext=n,a=gl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=bl(e,a,t),l!==null&&(ut(l,e,t),sn(l,e,t))}function $d(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Rs(e,t){$d(e,t),(e=e.alternate)&&$d(e,t)}function Wd(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&ut(t,e,67108864),Rs(e,67108864)}}function Fd(e){if(e.tag===13||e.tag===31){var t=vt();t=Ei(t);var l=Gl(e,t);l!==null&&ut(l,e,t),Rs(e,t)}}var Pu=!0;function yy(e,t,l,a){var n=O.T;O.T=null;var u=Q.p;try{Q.p=2,As(e,t,l,a)}finally{Q.p=u,O.T=n}}function py(e,t,l,a){var n=O.T;O.T=null;var u=Q.p;try{Q.p=8,As(e,t,l,a)}finally{Q.p=u,O.T=n}}function As(e,t,l,a){if(Pu){var n=Cs(a);if(n===null)vs(e,t,a,ei,l),Pd(e,a);else if(by(n,e,t,l,a))a.stopPropagation();else if(Pd(e,a),t&4&&-1<gy.indexOf(e)){for(;n!==null;){var u=la(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=Hl(u.pendingLanes);if(s!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;s;){var p=1<<31-st(s);d.entanglements[1]|=p,s&=~p}Yt(u),(he&6)===0&&(Hu=it()+500,Tn(0))}}break;case 31:case 13:d=Gl(u,2),d!==null&&ut(d,u,2),qu(),Rs(u,2)}if(u=Cs(a),u===null&&vs(e,t,a,ei,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else vs(e,t,a,null,l)}}function Cs(e){return e=Oi(e),Ms(e)}var ei=null;function Ms(e){if(ei=null,e=ta(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=_(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 ei=e,null}function Id(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(am()){case nr:return 2;case ur:return 8;case Qn:case nm:return 32;case ir:return 268435456;default:return 32}default:return 32}}var Os=!1,Cl=null,Ml=null,Ol=null,Mn=new Map,On=new Map,Dl=[],gy="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 Pd(e,t){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Ml=null;break;case"mouseover":case"mouseout":Ol=null;break;case"pointerover":case"pointerout":Mn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":On.delete(t.pointerId)}}function Dn(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=la(t),t!==null&&Wd(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function by(e,t,l,a,n){switch(t){case"focusin":return Cl=Dn(Cl,e,t,l,a,n),!0;case"dragenter":return Ml=Dn(Ml,e,t,l,a,n),!0;case"mouseover":return Ol=Dn(Ol,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Mn.set(u,Dn(Mn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,On.set(u,Dn(On.get(u)||null,e,t,l,a,n)),!0}return!1}function eh(e){var t=ta(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,dr(e.priority,function(){Fd(l)});return}}else if(t===31){if(t=_(l),t!==null){e.blockedOn=t,dr(e.priority,function(){Fd(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 ti(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Cs(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Mi=a,l.target.dispatchEvent(a),Mi=null}else return t=la(l),t!==null&&Wd(t),e.blockedOn=l,!1;t.shift()}return!0}function th(e,t,l){ti(e)&&l.delete(t)}function Sy(){Os=!1,Cl!==null&&ti(Cl)&&(Cl=null),Ml!==null&&ti(Ml)&&(Ml=null),Ol!==null&&ti(Ol)&&(Ol=null),Mn.forEach(th),On.forEach(th)}function li(e,t){e.blockedOn===t&&(e.blockedOn=null,Os||(Os=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Sy)))}var ai=null;function lh(e){ai!==e&&(ai=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ai===e&&(ai=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(Ms(a||l)===null)continue;break}var u=la(l);u!==null&&(e.splice(t,3),t-=3,Cc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ba(e){function t(p){return li(p,e)}Cl!==null&&li(Cl,e),Ml!==null&&li(Ml,e),Ol!==null&&li(Ol,e),Mn.forEach(t),On.forEach(t);for(var l=0;l<Dl.length;l++){var a=Dl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Dl.length&&(l=Dl[0],l.blockedOn===null);)eh(l),l.blockedOn===null&&Dl.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[Pe]||null;if(typeof u=="function")s||lh(l);else if(s){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[Pe]||null)d=s.formAction;else if(Ms(n)!==null)continue}else d=s.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),lh(l)}}}function ah(){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 Ds(e){this._internalRoot=e}ni.prototype.render=Ds.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=vt();Jd(l,a,e,t,null,null)},ni.prototype.unmount=Ds.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Jd(e.current,2,null,e,null,null),qu(),t[ea]=null}};function ni(e){this._internalRoot=e}ni.prototype.unstable_scheduleHydration=function(e){if(e){var t=fr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Dl.length&&t!==0&&t<Dl[l].priority;l++);Dl.splice(l,0,e),l===0&&eh(e)}};var nh=r.version;if(nh!=="19.2.5")throw Error(o(527,nh,"19.2.5"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=v(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e};var xy={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ui.isDisabled&&ui.supportsFiber)try{Ga=ui.inject(xy),ct=ui}catch{}}return wn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",n=ff,u=df,s=hf;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=Zd(e,1,!1,null,null,l,a,null,n,u,s,ah),e[ea]=t.current,ms(e),new Ds(t)},wn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,n="",u=ff,s=df,d=hf,p=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&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=Zd(e,1,!0,t,l??null,a,n,p,u,s,d,ah),t.context=Kd(null),l=t.current,a=vt(),a=Ei(a),n=gl(a),n.callback=null,bl(l,n,a),l=a,t.current.lanes=l,Qa(t,l),Yt(t),e[ea]=t.current,ms(e),new ni(t)},wn.version="19.2.5",wn}var mh;function My(){if(mh)return Hs.exports;mh=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(r){console.error(r)}}return i(),Hs.exports=Cy(),Hs.exports}var Oy=My();/**
|
|
50
|
+
* react-router v7.14.2
|
|
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 vh="popstate";function yh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function Dy(i={}){function r(o,h){var v;let m=(v=h.state)==null?void 0:v.masked,{pathname:y,search:_,hash:g}=m||o.location;return Vs("",{pathname:y,search:_,hash:g},h.state&&h.state.usr||null,h.state&&h.state.key||"default",m?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function f(o,h){return typeof h=="string"?h:Bn(h)}return wy(r,f,null,i)}function Re(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function Xt(i,r){if(!i){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Uy(){return Math.random().toString(36).substring(2,10)}function ph(i,r){return{usr:i.state,key:i.key,idx:r,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Vs(i,r,f=null,o,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof r=="string"?qa(r):r,state:f,key:r&&r.key||o||Uy(),unstable_mask:h}}function Bn({pathname:i="/",search:r="",hash:f=""}){return r&&r!=="?"&&(i+=r.charAt(0)==="?"?r:"?"+r),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function qa(i){let r={};if(i){let f=i.indexOf("#");f>=0&&(r.hash=i.substring(f),i=i.substring(0,f));let o=i.indexOf("?");o>=0&&(r.search=i.substring(o),i=i.substring(0,o)),i&&(r.pathname=i)}return r}function wy(i,r,f,o={}){let{window:h=document.defaultView,v5Compat:m=!1}=o,y=h.history,_="POP",g=null,v=j();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function j(){return(y.state||{idx:null}).idx}function S(){_="POP";let X=j(),G=X==null?null:X-v;v=X,g&&g({action:_,location:B.location,delta:G})}function M(X,G){_="PUSH";let I=yh(X)?X:Vs(B.location,X,G);v=j()+1;let W=ph(I,v),L=B.createHref(I.unstable_mask||I);try{y.pushState(W,"",L)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;h.location.assign(L)}m&&g&&g({action:_,location:B.location,delta:1})}function Y(X,G){_="REPLACE";let I=yh(X)?X:Vs(B.location,X,G);v=j();let W=ph(I,v),L=B.createHref(I.unstable_mask||I);y.replaceState(W,"",L),m&&g&&g({action:_,location:B.location,delta:0})}function H(X){return Hy(X)}let B={get action(){return _},get location(){return i(h,y)},listen(X){if(g)throw new Error("A history only accepts one active listener");return h.addEventListener(vh,S),g=X,()=>{h.removeEventListener(vh,S),g=null}},createHref(X){return r(h,X)},createURL:H,encodeLocation(X){let G=H(X);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:M,replace:Y,go(X){return y.go(X)}};return B}function Hy(i,r=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),Re(f,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Bn(i);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function Rh(i,r,f="/"){return By(i,r,f,!1)}function By(i,r,f,o){let h=typeof r=="string"?qa(r):r,m=sl(h.pathname||"/",f);if(m==null)return null;let y=Ah(i);qy(y);let _=null;for(let g=0;_==null&&g<y.length;++g){let v=$y(m);_=Ky(y[g],v,o)}return _}function Ah(i,r=[],f=[],o="",h=!1){let m=(y,_,g=h,v)=>{let j={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:_,route:y};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(o)&&g)return;Re(j.relativePath.startsWith(o),`Absolute route path "${j.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(o.length)}let S=Ut([o,j.relativePath]),M=f.concat(j);y.children&&y.children.length>0&&(Re(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${S}".`),Ah(y.children,r,M,S,g)),!(y.path==null&&!y.index)&&r.push({path:S,score:ky(S,y.index),routesMeta:M})};return i.forEach((y,_)=>{var g;if(y.path===""||!((g=y.path)!=null&&g.includes("?")))m(y,_);else for(let v of Ch(y.path))m(y,_,!0,v)}),r}function Ch(i){let r=i.split("/");if(r.length===0)return[];let[f,...o]=r,h=f.endsWith("?"),m=f.replace(/\?$/,"");if(o.length===0)return h?[m,""]:[m];let y=Ch(o.join("/")),_=[];return _.push(...y.map(g=>g===""?m:[m,g].join("/"))),h&&_.push(...y),_.map(g=>i.startsWith("/")&&g===""?"/":g)}function qy(i){i.sort((r,f)=>r.score!==f.score?f.score-r.score:Zy(r.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var Ly=/^:[\w-]+$/,Yy=3,Gy=2,Xy=1,Qy=10,Vy=-2,gh=i=>i==="*";function ky(i,r){let f=i.split("/"),o=f.length;return f.some(gh)&&(o+=Vy),r&&(o+=Gy),f.filter(h=>!gh(h)).reduce((h,m)=>h+(Ly.test(m)?Yy:m===""?Xy:Qy),o)}function Zy(i,r){return i.length===r.length&&i.slice(0,-1).every((o,h)=>o===r[h])?i[i.length-1]-r[r.length-1]:0}function Ky(i,r,f=!1){let{routesMeta:o}=i,h={},m="/",y=[];for(let _=0;_<o.length;++_){let g=o[_],v=_===o.length-1,j=m==="/"?r:r.slice(m.length)||"/",S=ri({path:g.relativePath,caseSensitive:g.caseSensitive,end:v},j),M=g.route;if(!S&&v&&f&&!o[o.length-1].route.index&&(S=ri({path:g.relativePath,caseSensitive:g.caseSensitive,end:!1},j)),!S)return null;Object.assign(h,S.params),y.push({params:h,pathname:Ut([m,S.pathname]),pathnameBase:Py(Ut([m,S.pathnameBase])),route:M}),S.pathnameBase!=="/"&&(m=Ut([m,S.pathnameBase]))}return y}function ri(i,r){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,o]=Jy(i.path,i.caseSensitive,i.end),h=r.match(f);if(!h)return null;let m=h[0],y=m.replace(/(.)\/+$/,"$1"),_=h.slice(1);return{params:o.reduce((v,{paramName:j,isOptional:S},M)=>{if(j==="*"){let H=_[M]||"";y=m.slice(0,m.length-H.length).replace(/(.)\/+$/,"$1")}const Y=_[M];return S&&!Y?v[j]=void 0:v[j]=(Y||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:i}}function Jy(i,r=!1,f=!0){Xt(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 o=[],h="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,_,g,v,j)=>{if(o.push({paramName:_,isOptional:g!=null}),g){let S=j.charAt(v+y.length);return S&&S!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,r?void 0:"i"),o]}function $y(i){try{return i.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return Xt(!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 (${r}).`),i}}function sl(i,r){if(r==="/")return i;if(!i.toLowerCase().startsWith(r.toLowerCase()))return null;let f=r.endsWith("/")?r.length-1:r.length,o=i.charAt(f);return o&&o!=="/"?null:i.slice(f)||"/"}var Wy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Fy(i,r="/"){let{pathname:f,search:o="",hash:h=""}=typeof i=="string"?qa(i):i,m;return f?(f=Oh(f),f.startsWith("/")?m=bh(f.substring(1),"/"):m=bh(f,r)):m=r,{pathname:m,search:ep(o),hash:tp(h)}}function bh(i,r){let f=oi(r).split("/");return i.split("/").forEach(h=>{h===".."?f.length>1&&f.pop():h!=="."&&f.push(h)}),f.length>1?f.join("/"):"/"}function Ys(i,r,f,o){return`Cannot include a '${i}' character in a manually specified \`to.${r}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${f}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Iy(i){return i.filter((r,f)=>f===0||r.route.path&&r.route.path.length>0)}function Mh(i){let r=Iy(i);return r.map((f,o)=>o===r.length-1?f.pathname:f.pathnameBase)}function Ks(i,r,f,o=!1){let h;typeof i=="string"?h=qa(i):(h={...i},Re(!h.pathname||!h.pathname.includes("?"),Ys("?","pathname","search",h)),Re(!h.pathname||!h.pathname.includes("#"),Ys("#","pathname","hash",h)),Re(!h.search||!h.search.includes("#"),Ys("#","search","hash",h)));let m=i===""||h.pathname==="",y=m?"/":h.pathname,_;if(y==null)_=f;else{let S=r.length-1;if(!o&&y.startsWith("..")){let M=y.split("/");for(;M[0]==="..";)M.shift(),S-=1;h.pathname=M.join("/")}_=S>=0?r[S]:"/"}let g=Fy(h,_),v=y&&y!=="/"&&y.endsWith("/"),j=(m||y===".")&&f.endsWith("/");return!g.pathname.endsWith("/")&&(v||j)&&(g.pathname+="/"),g}var Oh=i=>i.replace(/\/\/+/g,"/"),Ut=i=>Oh(i.join("/")),oi=i=>i.replace(/\/+$/,""),Py=i=>oi(i).replace(/^\/*/,"/"),ep=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,tp=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,lp=class{constructor(i,r,f,o=!1){this.status=i,this.statusText=r||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function ap(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function np(i){let r=i.map(f=>f.route.path).filter(Boolean);return Ut(r)||"/"}var Dh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uh(i,r){let f=i;if(typeof f!="string"||!Wy.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,h=!1;if(Dh)try{let m=new URL(window.location.href),y=f.startsWith("//")?new URL(m.protocol+f):new URL(f),_=sl(y.pathname,r);y.origin===m.origin&&_!=null?f=_+y.search+y.hash:h=!0}catch{Xt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:h,to:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var wh=["POST","PUT","PATCH","DELETE"];new Set(wh);var up=["GET",...wh];new Set(up);var La=x.createContext(null);La.displayName="DataRouter";var di=x.createContext(null);di.displayName="DataRouterState";var Hh=x.createContext(!1);function ip(){return x.useContext(Hh)}var Bh=x.createContext({isTransitioning:!1});Bh.displayName="ViewTransition";var cp=x.createContext(new Map);cp.displayName="Fetchers";var sp=x.createContext(null);sp.displayName="Await";var At=x.createContext(null);At.displayName="Navigation";var qn=x.createContext(null);qn.displayName="Location";var Qt=x.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var Js=x.createContext(null);Js.displayName="RouteError";var qh="REACT_ROUTER_ERROR",rp="REDIRECT",op="ROUTE_ERROR_RESPONSE";function fp(i){if(i.startsWith(`${qh}:${rp}:{`))try{let r=JSON.parse(i.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function dp(i){if(i.startsWith(`${qh}:${op}:{`))try{let r=JSON.parse(i.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new lp(r.status,r.statusText,r.data)}catch{}}function hp(i,{relative:r}={}){Re(Ln(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=x.useContext(At),{hash:h,pathname:m,search:y}=Yn(i,{relative:r}),_=m;return f!=="/"&&(_=m==="/"?f:Ut([f,m])),o.createHref({pathname:_,search:y,hash:h})}function Ln(){return x.useContext(qn)!=null}function rl(){return Re(Ln(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(qn).location}var Lh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Yh(i){x.useContext(At).static||x.useLayoutEffect(i)}function mp(){let{isDataRoute:i}=x.useContext(Qt);return i?zp():vp()}function vp(){Re(Ln(),"useNavigate() may be used only in the context of a <Router> component.");let i=x.useContext(La),{basename:r,navigator:f}=x.useContext(At),{matches:o}=x.useContext(Qt),{pathname:h}=rl(),m=JSON.stringify(Mh(o)),y=x.useRef(!1);return Yh(()=>{y.current=!0}),x.useCallback((g,v={})=>{if(Xt(y.current,Lh),!y.current)return;if(typeof g=="number"){f.go(g);return}let j=Ks(g,JSON.parse(m),h,v.relative==="path");i==null&&r!=="/"&&(j.pathname=j.pathname==="/"?r:Ut([r,j.pathname])),(v.replace?f.replace:f.push)(j,v.state,v)},[r,f,m,h,i])}x.createContext(null);function $s(){let{matches:i}=x.useContext(Qt),r=i[i.length-1];return(r==null?void 0:r.params)??{}}function Yn(i,{relative:r}={}){let{matches:f}=x.useContext(Qt),{pathname:o}=rl(),h=JSON.stringify(Mh(f));return x.useMemo(()=>Ks(i,JSON.parse(h),o,r==="path"),[i,h,o,r])}function yp(i,r){return Gh(i,r)}function Gh(i,r,f){var X;Re(Ln(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=x.useContext(At),{matches:h}=x.useContext(Qt),m=h[h.length-1],y=m?m.params:{},_=m?m.pathname:"/",g=m?m.pathnameBase:"/",v=m&&m.route;{let G=v&&v.path||"";Qh(_,!v||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${_}" (under <Route path="${G}">) 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="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let j=rl(),S;if(r){let G=typeof r=="string"?qa(r):r;Re(g==="/"||((X=G.pathname)==null?void 0:X.startsWith(g)),`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 "${g}" but pathname "${G.pathname}" was given in the \`location\` prop.`),S=G}else S=j;let M=S.pathname||"/",Y=M;if(g!=="/"){let G=g.replace(/^\//,"").split("/");Y="/"+M.replace(/^\//,"").split("/").slice(G.length).join("/")}let H=Rh(i,{pathname:Y});Xt(v||H!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Xt(H==null||H[H.length-1].route.element!==void 0||H[H.length-1].route.Component!==void 0||H[H.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 B=xp(H&&H.map(G=>Object.assign({},G,{params:Object.assign({},y,G.params),pathname:Ut([g,o.encodeLocation?o.encodeLocation(G.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?g:Ut([g,o.encodeLocation?o.encodeLocation(G.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),h,f);return r&&B?x.createElement(qn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...S},navigationType:"POP"}},B):B}function pp(){let i=Np(),r=ap(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),f=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",h={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},y=null;return console.error("Error handled by React Router default ErrorBoundary:",i),y=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:m},"ErrorBoundary")," or"," ",x.createElement("code",{style:m},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},r),f?x.createElement("pre",{style:h},f):null,y)}var gp=x.createElement(pp,null),Xh=class extends x.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,r){return r.location!==i.location||r.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:r.error,location:r.location,revalidation:i.revalidation||r.revalidation}}componentDidCatch(i,r){this.props.onError?this.props.onError(i,r):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 f=dp(i.digest);f&&(i=f)}let r=i!==void 0?x.createElement(Qt.Provider,{value:this.props.routeContext},x.createElement(Js.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?x.createElement(bp,{error:i},r):r}};Xh.contextType=Hh;var Gs=new WeakMap;function bp({children:i,error:r}){let{basename:f}=x.useContext(At);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=fp(r.digest);if(o){let h=Gs.get(r);if(h)throw h;let m=Uh(o.location,f);if(Dh&&!Gs.get(r))if(m.isExternal||o.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:o.replace}));throw Gs.set(r,y),y}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Sp({routeContext:i,match:r,children:f}){let o=x.useContext(La);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),x.createElement(Qt.Provider,{value:i},f)}function xp(i,r=[],f){let o=f==null?void 0:f.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(r.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let h=i,m=o==null?void 0:o.errors;if(m!=null){let j=h.findIndex(S=>S.route.id&&(m==null?void 0:m[S.route.id])!==void 0);Re(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,j+1))}let y=!1,_=-1;if(f&&o){y=o.renderFallback;for(let j=0;j<h.length;j++){let S=h[j];if((S.route.HydrateFallback||S.route.hydrateFallbackElement)&&(_=j),S.route.id){let{loaderData:M,errors:Y}=o,H=S.route.loader&&!M.hasOwnProperty(S.route.id)&&(!Y||Y[S.route.id]===void 0);if(S.route.lazy||H){f.isStatic&&(y=!0),_>=0?h=h.slice(0,_+1):h=[h[0]];break}}}}let g=f==null?void 0:f.onError,v=o&&g?(j,S)=>{var M,Y;g(j,{location:o.location,params:((Y=(M=o.matches)==null?void 0:M[0])==null?void 0:Y.params)??{},unstable_pattern:np(o.matches),errorInfo:S})}:void 0;return h.reduceRight((j,S,M)=>{let Y,H=!1,B=null,X=null;o&&(Y=m&&S.route.id?m[S.route.id]:void 0,B=S.route.errorElement||gp,y&&(_<0&&M===0?(Qh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),H=!0,X=null):_===M&&(H=!0,X=S.route.hydrateFallbackElement||null)));let G=r.concat(h.slice(0,M+1)),I=()=>{let W;return Y?W=B:H?W=X:S.route.Component?W=x.createElement(S.route.Component,null):S.route.element?W=S.route.element:W=j,x.createElement(Sp,{match:S,routeContext:{outlet:j,matches:G,isDataRoute:o!=null},children:W})};return o&&(S.route.ErrorBoundary||S.route.errorElement||M===0)?x.createElement(Xh,{location:o.location,revalidation:o.revalidation,component:B,error:Y,children:I(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):I()},null)}function Ws(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jp(i){let r=x.useContext(La);return Re(r,Ws(i)),r}function Ep(i){let r=x.useContext(di);return Re(r,Ws(i)),r}function Tp(i){let r=x.useContext(Qt);return Re(r,Ws(i)),r}function Fs(i){let r=Tp(i),f=r.matches[r.matches.length-1];return Re(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function _p(){return Fs("useRouteId")}function Np(){var o;let i=x.useContext(Js),r=Ep("useRouteError"),f=Fs("useRouteError");return i!==void 0?i:(o=r.errors)==null?void 0:o[f]}function zp(){let{router:i}=jp("useNavigate"),r=Fs("useNavigate"),f=x.useRef(!1);return Yh(()=>{f.current=!0}),x.useCallback(async(h,m={})=>{Xt(f.current,Lh),f.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:r,...m}))},[i,r])}var Sh={};function Qh(i,r,f){!r&&!Sh[i]&&(Sh[i]=!0,Xt(!1,f))}x.memo(Rp);function Rp({routes:i,future:r,state:f,isStatic:o,onError:h}){return Gh(i,void 0,{state:f,isStatic:o,onError:h})}function Gt(i){Re(!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 Ap({basename:i="/",children:r=null,location:f,navigationType:o="POP",navigator:h,static:m=!1,unstable_useTransitions:y}){Re(!Ln(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let _=i.replace(/^\/*/,"/"),g=x.useMemo(()=>({basename:_,navigator:h,static:m,unstable_useTransitions:y,future:{}}),[_,h,m,y]);typeof f=="string"&&(f=qa(f));let{pathname:v="/",search:j="",hash:S="",state:M=null,key:Y="default",unstable_mask:H}=f,B=x.useMemo(()=>{let X=sl(v,_);return X==null?null:{location:{pathname:X,search:j,hash:S,state:M,key:Y,unstable_mask:H},navigationType:o}},[_,v,j,S,M,Y,o,H]);return Xt(B!=null,`<Router basename="${_}"> is not able to match the URL "${v}${j}${S}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:x.createElement(At.Provider,{value:g},x.createElement(qn.Provider,{children:r,value:B}))}function xh({children:i,location:r}){return yp(ks(i),r)}function ks(i,r=[]){let f=[];return x.Children.forEach(i,(o,h)=>{if(!x.isValidElement(o))return;let m=[...r,h];if(o.type===x.Fragment){f.push.apply(f,ks(o.props.children,m));return}Re(o.type===Gt,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Re(!o.props.index||!o.props.children,"An index route cannot have child routes.");let y={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(y.children=ks(o.props.children,m)),f.push(y)}),f}var ci="get",si="application/x-www-form-urlencoded";function hi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function Cp(i){return hi(i)&&i.tagName.toLowerCase()==="button"}function Mp(i){return hi(i)&&i.tagName.toLowerCase()==="form"}function Op(i){return hi(i)&&i.tagName.toLowerCase()==="input"}function Dp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Up(i,r){return i.button===0&&(!r||r==="_self")&&!Dp(i)}var ii=null;function wp(){if(ii===null)try{new FormData(document.createElement("form"),0),ii=!1}catch{ii=!0}return ii}var Hp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xs(i){return i!=null&&!Hp.has(i)?(Xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${si}"`),null):i}function Bp(i,r){let f,o,h,m,y;if(Mp(i)){let _=i.getAttribute("action");o=_?sl(_,r):null,f=i.getAttribute("method")||ci,h=Xs(i.getAttribute("enctype"))||si,m=new FormData(i)}else if(Cp(i)||Op(i)&&(i.type==="submit"||i.type==="image")){let _=i.form;if(_==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let g=i.getAttribute("formaction")||_.getAttribute("action");if(o=g?sl(g,r):null,f=i.getAttribute("formmethod")||_.getAttribute("method")||ci,h=Xs(i.getAttribute("formenctype"))||Xs(_.getAttribute("enctype"))||si,m=new FormData(_,i),!wp()){let{name:v,type:j,value:S}=i;if(j==="image"){let M=v?`${v}.`:"";m.append(`${M}x`,"0"),m.append(`${M}y`,"0")}else v&&m.append(v,S)}}else{if(hi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=ci,o=null,h=si,y=i}return m&&h==="text/plain"&&(y=m,m=void 0),{action:o,method:f.toLowerCase(),encType:h,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Is(i,r){if(i===!1||i===null||typeof i>"u")throw new Error(r)}function Vh(i,r,f,o){let h=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return f?h.pathname.endsWith("/")?h.pathname=`${h.pathname}_.${o}`:h.pathname=`${h.pathname}.${o}`:h.pathname==="/"?h.pathname=`_root.${o}`:r&&sl(h.pathname,r)==="/"?h.pathname=`${oi(r)}/_root.${o}`:h.pathname=`${oi(h.pathname)}.${o}`,h}async function qp(i,r){if(i.id in r)return r[i.id];try{let f=await import(i.module);return r[i.id]=f,f}catch(f){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(f),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Lp(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 Yp(i,r,f){let o=await Promise.all(i.map(async h=>{let m=r.routes[h.route.id];if(m){let y=await qp(m,f);return y.links?y.links():[]}return[]}));return Vp(o.flat(1).filter(Lp).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function jh(i,r,f,o,h,m){let y=(g,v)=>f[v]?g.route.id!==f[v].route.id:!0,_=(g,v)=>{var j;return f[v].pathname!==g.pathname||((j=f[v].route.path)==null?void 0:j.endsWith("*"))&&f[v].params["*"]!==g.params["*"]};return m==="assets"?r.filter((g,v)=>y(g,v)||_(g,v)):m==="data"?r.filter((g,v)=>{var S;let j=o.routes[g.route.id];if(!j||!j.hasLoader)return!1;if(y(g,v)||_(g,v))return!0;if(g.route.shouldRevalidate){let M=g.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((S=f[0])==null?void 0:S.params)||{},nextUrl:new URL(i,window.origin),nextParams:g.params,defaultShouldRevalidate:!0});if(typeof M=="boolean")return M}return!0}):[]}function Gp(i,r,{includeHydrateFallback:f}={}){return Xp(i.map(o=>{let h=r.routes[o.route.id];if(!h)return[];let m=[h.module];return h.clientActionModule&&(m=m.concat(h.clientActionModule)),h.clientLoaderModule&&(m=m.concat(h.clientLoaderModule)),f&&h.hydrateFallbackModule&&(m=m.concat(h.hydrateFallbackModule)),h.imports&&(m=m.concat(h.imports)),m}).flat(1))}function Xp(i){return[...new Set(i)]}function Qp(i){let r={},f=Object.keys(i).sort();for(let o of f)r[o]=i[o];return r}function Vp(i,r){let f=new Set;return new Set(r),i.reduce((o,h)=>{let m=JSON.stringify(Qp(h));return f.has(m)||(f.add(m),o.push({key:m,link:h})),o},[])}function Ps(){let i=x.useContext(La);return Is(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function kp(){let i=x.useContext(di);return Is(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var er=x.createContext(void 0);er.displayName="FrameworkContext";function tr(){let i=x.useContext(er);return Is(i,"You must render this element inside a <HydratedRouter> element"),i}function Zp(i,r){let f=x.useContext(er),[o,h]=x.useState(!1),[m,y]=x.useState(!1),{onFocus:_,onBlur:g,onMouseEnter:v,onMouseLeave:j,onTouchStart:S}=r,M=x.useRef(null);x.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let B=G=>{G.forEach(I=>{y(I.isIntersecting)})},X=new IntersectionObserver(B,{threshold:.5});return M.current&&X.observe(M.current),()=>{X.disconnect()}}},[i]),x.useEffect(()=>{if(o){let B=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(B)}}},[o]);let Y=()=>{h(!0)},H=()=>{h(!1),y(!1)};return f?i!=="intent"?[m,M,{}]:[m,M,{onFocus:Hn(_,Y),onBlur:Hn(g,H),onMouseEnter:Hn(v,Y),onMouseLeave:Hn(j,H),onTouchStart:Hn(S,Y)}]:[!1,M,{}]}function Hn(i,r){return f=>{i&&i(f),f.defaultPrevented||r(f)}}function Kp({page:i,...r}){let f=ip(),{router:o}=Ps(),h=x.useMemo(()=>Rh(o.routes,i,o.basename),[o.routes,i,o.basename]);return h?f?x.createElement($p,{page:i,matches:h,...r}):x.createElement(Wp,{page:i,matches:h,...r}):null}function Jp(i){let{manifest:r,routeModules:f}=tr(),[o,h]=x.useState([]);return x.useEffect(()=>{let m=!1;return Yp(i,r,f).then(y=>{m||h(y)}),()=>{m=!0}},[i,r,f]),o}function $p({page:i,matches:r,...f}){let o=rl(),{future:h}=tr(),{basename:m}=Ps(),y=x.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let _=Vh(i,m,h.unstable_trailingSlashAwareDataRequests,"rsc"),g=!1,v=[];for(let j of r)typeof j.route.shouldRevalidate=="function"?g=!0:v.push(j.route.id);return g&&v.length>0&&_.searchParams.set("_routes",v.join(",")),[_.pathname+_.search]},[m,h.unstable_trailingSlashAwareDataRequests,i,o,r]);return x.createElement(x.Fragment,null,y.map(_=>x.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...f})))}function Wp({page:i,matches:r,...f}){let o=rl(),{future:h,manifest:m,routeModules:y}=tr(),{basename:_}=Ps(),{loaderData:g,matches:v}=kp(),j=x.useMemo(()=>jh(i,r,v,m,o,"data"),[i,r,v,m,o]),S=x.useMemo(()=>jh(i,r,v,m,o,"assets"),[i,r,v,m,o]),M=x.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let B=new Set,X=!1;if(r.forEach(I=>{var L;let W=m.routes[I.route.id];!W||!W.hasLoader||(!j.some(q=>q.route.id===I.route.id)&&I.route.id in g&&((L=y[I.route.id])!=null&&L.shouldRevalidate)||W.hasClientLoader?X=!0:B.add(I.route.id))}),B.size===0)return[];let G=Vh(i,_,h.unstable_trailingSlashAwareDataRequests,"data");return X&&B.size>0&&G.searchParams.set("_routes",r.filter(I=>B.has(I.route.id)).map(I=>I.route.id).join(",")),[G.pathname+G.search]},[_,h.unstable_trailingSlashAwareDataRequests,g,o,m,j,r,i,y]),Y=x.useMemo(()=>Gp(S,m),[S,m]),H=Jp(S);return x.createElement(x.Fragment,null,M.map(B=>x.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...f})),Y.map(B=>x.createElement("link",{key:B,rel:"modulepreload",href:B,...f})),H.map(({key:B,link:X})=>x.createElement("link",{key:B,nonce:f.nonce,...X,crossOrigin:X.crossOrigin??f.crossOrigin})))}function Fp(...i){return r=>{i.forEach(f=>{typeof f=="function"?f(r):f!=null&&(f.current=r)})}}var Ip=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ip&&(window.__reactRouterVersion="7.14.2")}catch{}function Pp({basename:i,children:r,unstable_useTransitions:f,window:o}){let h=x.useRef();h.current==null&&(h.current=Dy({window:o,v5Compat:!0}));let m=h.current,[y,_]=x.useState({action:m.action,location:m.location}),g=x.useCallback(v=>{f===!1?_(v):x.startTransition(()=>_(v))},[f]);return x.useLayoutEffect(()=>m.listen(g),[m,g]),x.createElement(Ap,{basename:i,children:r,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:f})}var kh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=x.forwardRef(function({onClick:r,discover:f="render",prefetch:o="none",relative:h,reloadDocument:m,replace:y,unstable_mask:_,state:g,target:v,to:j,preventScrollReset:S,viewTransition:M,unstable_defaultShouldRevalidate:Y,...H},B){let{basename:X,navigator:G,unstable_useTransitions:I}=x.useContext(At),W=typeof j=="string"&&kh.test(j),L=Uh(j,X);j=L.to;let q=hp(j,{relative:h}),K=rl(),k=null;if(_){let Ue=Ks(_,[],K.unstable_mask?K.unstable_mask.pathname:"/",!0);X!=="/"&&(Ue.pathname=Ue.pathname==="/"?X:Ut([X,Ue.pathname])),k=G.createHref(Ue)}let[Te,Le,wt]=Zp(o,H),pt=ag(j,{replace:y,unstable_mask:_,state:g,target:v,preventScrollReset:S,relative:h,viewTransition:M,unstable_defaultShouldRevalidate:Y,unstable_useTransitions:I});function $e(Ue){r&&r(Ue),Ue.defaultPrevented||pt(Ue)}let Ht=!(L.isExternal||m),gt=x.createElement("a",{...H,...wt,href:(Ht?k:void 0)||L.absoluteURL||q,onClick:Ht?$e:r,ref:Fp(B,Le),target:v,"data-discover":!W&&f==="render"?"true":void 0});return Te&&!W?x.createElement(x.Fragment,null,gt,x.createElement(Kp,{page:q})):gt});Je.displayName="Link";var eg=x.forwardRef(function({"aria-current":r="page",caseSensitive:f=!1,className:o="",end:h=!1,style:m,to:y,viewTransition:_,children:g,...v},j){let S=Yn(y,{relative:v.relative}),M=rl(),Y=x.useContext(di),{navigator:H,basename:B}=x.useContext(At),X=Y!=null&&sg(S)&&_===!0,G=H.encodeLocation?H.encodeLocation(S).pathname:S.pathname,I=M.pathname,W=Y&&Y.navigation&&Y.navigation.location?Y.navigation.location.pathname:null;f||(I=I.toLowerCase(),W=W?W.toLowerCase():null,G=G.toLowerCase()),W&&B&&(W=sl(W,B)||W);const L=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let q=I===G||!h&&I.startsWith(G)&&I.charAt(L)==="/",K=W!=null&&(W===G||!h&&W.startsWith(G)&&W.charAt(G.length)==="/"),k={isActive:q,isPending:K,isTransitioning:X},Te=q?r:void 0,Le;typeof o=="function"?Le=o(k):Le=[o,q?"active":null,K?"pending":null,X?"transitioning":null].filter(Boolean).join(" ");let wt=typeof m=="function"?m(k):m;return x.createElement(Je,{...v,"aria-current":Te,className:Le,ref:j,style:wt,to:y,viewTransition:_},typeof g=="function"?g(k):g)});eg.displayName="NavLink";var tg=x.forwardRef(({discover:i="render",fetcherKey:r,navigate:f,reloadDocument:o,replace:h,state:m,method:y=ci,action:_,onSubmit:g,relative:v,preventScrollReset:j,viewTransition:S,unstable_defaultShouldRevalidate:M,...Y},H)=>{let{unstable_useTransitions:B}=x.useContext(At),X=ig(),G=cg(_,{relative:v}),I=y.toLowerCase()==="get"?"get":"post",W=typeof _=="string"&&kh.test(_),L=q=>{if(g&&g(q),q.defaultPrevented)return;q.preventDefault();let K=q.nativeEvent.submitter,k=(K==null?void 0:K.getAttribute("formmethod"))||y,Te=()=>X(K||q.currentTarget,{fetcherKey:r,method:k,navigate:f,replace:h,state:m,relative:v,preventScrollReset:j,viewTransition:S,unstable_defaultShouldRevalidate:M});B&&f!==!1?x.startTransition(()=>Te()):Te()};return x.createElement("form",{ref:H,method:I,action:G,onSubmit:o?g:L,...Y,"data-discover":!W&&i==="render"?"true":void 0})});tg.displayName="Form";function lg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zh(i){let r=x.useContext(La);return Re(r,lg(i)),r}function ag(i,{target:r,replace:f,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:_,unstable_defaultShouldRevalidate:g,unstable_useTransitions:v}={}){let j=mp(),S=rl(),M=Yn(i,{relative:y});return x.useCallback(Y=>{if(Up(Y,r)){Y.preventDefault();let H=f!==void 0?f:Bn(S)===Bn(M),B=()=>j(i,{replace:H,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:_,unstable_defaultShouldRevalidate:g});v?x.startTransition(()=>B()):B()}},[S,j,M,f,o,h,r,i,m,y,_,g,v])}var ng=0,ug=()=>`__${String(++ng)}__`;function ig(){let{router:i}=Zh("useSubmit"),{basename:r}=x.useContext(At),f=_p(),o=i.fetch,h=i.navigate;return x.useCallback(async(m,y={})=>{let{action:_,method:g,encType:v,formData:j,body:S}=Bp(m,r);if(y.navigate===!1){let M=y.fetcherKey||ug();await o(M,f,y.action||_,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:j,body:S,formMethod:y.method||g,formEncType:y.encType||v,flushSync:y.flushSync})}else await h(y.action||_,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:j,body:S,formMethod:y.method||g,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:f,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,h,r,f])}function cg(i,{relative:r}={}){let{basename:f}=x.useContext(At),o=x.useContext(Qt);Re(o,"useFormAction must be used inside a RouteContext");let[h]=o.matches.slice(-1),m={...Yn(i||".",{relative:r})},y=rl();if(i==null){m.search=y.search;let _=new URLSearchParams(m.search),g=_.getAll("index");if(g.some(j=>j==="")){_.delete("index"),g.filter(S=>S).forEach(S=>_.append("index",S));let j=_.toString();m.search=j?`?${j}`:""}}return(!i||i===".")&&h.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:Ut([f,m.pathname])),Bn(m)}function sg(i,{relative:r}={}){let f=x.useContext(Bh);Re(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=Zh("useViewTransitionState"),h=Yn(i,{relative:r});if(!f.isTransitioning)return!1;let m=sl(f.currentLocation.pathname,o)||f.currentLocation.pathname,y=sl(f.nextLocation.pathname,o)||f.nextLocation.pathname;return ri(h.pathname,y)!=null||ri(h.pathname,m)!=null}const Kh=/^\/vault\/([^/]+)\/admin(?=\/|$)/;function Jh(){if(typeof window>"u")return null;const i=window.location.pathname.match(Kh);if(!i)return null;try{return decodeURIComponent(i[1])}catch{return null}}function rg(){if(typeof window>"u")return"";const i=window.location.pathname,r=i.match(Kh);return r?`/vault/${r[1]}/admin`:i==="/admin"||i.startsWith("/admin/")?"/admin":""}let fi=null;function og(){if(typeof window>"u")return;const i=window.location.hash;if(!i||i.length<2)return;const r=new URLSearchParams(i.slice(1)),f=r.get("token");if(!f)return;fi=f,r.delete("token");const o=r.toString(),h=o.length>0?`#${o}`:"",m=`${window.location.pathname}${window.location.search}${h}`;window.history.replaceState(null,"",m)}function Gn(){return fi}async function fg(i){if(!(typeof window>"u")&&!fi)try{const r=await fetch(`/admin/vault-admin-token/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"});if(!r.ok)return;const f=await r.json();typeof f.token=="string"&&f.token.length>0&&(fi=f.token)}catch{}}class Ee extends Error{constructor(r,f){super(f),this.status=r,this.name="HttpError"}}async function dg(){const i=await fetch("/vaults/list",{headers:{accept:"application/json"}});if(i.status===404)return[];if(!i.ok)throw new Ee(i.status,`vaults/list fetch failed: ${i.status}`);return(await i.json()).vaults??[]}async function hg(i){const r=Gn();if(!r)throw new Ee(401,"no admin token — open this page from the hub directory");const f=await fetch(`/vault/${encodeURIComponent(i)}/`,{headers:{accept:"application/json",authorization:`Bearer ${r}`}});if(!f.ok)throw new Ee(f.status,await yt(f));return await f.json()}function Ct(){const i=Gn();if(!i)throw new Ee(401,"no admin token — open this page from the hub directory");return{accept:"application/json",authorization:`Bearer ${i}`}}async function mg(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror`,{headers:Ct()});if(!r.ok)throw new Ee(r.status,await yt(r));return await r.json()}async function vg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror`,{method:"PUT",headers:{...Ct(),"content-type":"application/json"},body:JSON.stringify(r)});if(!f.ok)throw new Ee(f.status,await yt(f));return await f.json()}async function yg(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/run-now`,{method:"POST",headers:Ct()});if(!r.ok)throw new Ee(r.status,await yt(r));return await r.json()}async function $h(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`,{headers:Ct()});if(!r.ok)throw new Ee(r.status,await yt(r));return await r.json()}async function pg(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`,{method:"DELETE",headers:Ct()});if(!r.ok)throw new Ee(r.status,await yt(r));return await r.json()}async function gg(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/device-code`,{method:"POST",headers:Ct()});if(!r.ok)throw new Ee(r.status,await yt(r));return await r.json()}async function bg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/poll`,{method:"POST",headers:{...Ct(),"content-type":"application/json"},body:JSON.stringify({polling_id:r})});if(!f.ok&&f.status!==404)throw new Ee(f.status,await yt(f));return await f.json()}async function Sg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/pat`,{method:"POST",headers:{...Ct(),"content-type":"application/json"},body:JSON.stringify(r)});if(!f.ok)throw new Ee(f.status,await yt(f));return await f.json()}async function Wh(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/repos`,{headers:Ct()});if(!r.ok)throw new Ee(r.status,await yt(r));return await r.json()}async function xg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/create-repo`,{method:"POST",headers:{...Ct(),"content-type":"application/json"},body:JSON.stringify(r)});if(!f.ok)throw new Ee(f.status,await yt(f));return await f.json()}async function jg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/select-repo`,{method:"POST",headers:{...Ct(),"content-type":"application/json"},body:JSON.stringify(r)});if(!f.ok)throw new Ee(f.status,await yt(f));return await f.json()}async function Eg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/.parachute/mirror/import`,{method:"POST",headers:{...Ct(),"content-type":"application/json"},body:JSON.stringify(r)});if(!f.ok)throw new Ee(f.status,await yt(f));return await f.json()}async function yt(i){try{const r=await i.text(),f=JSON.parse(r);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(r)return r}catch{}return`${i.status} ${i.statusText}`}function Fh(i){const r=i.split(".");if(r.length!==3)return null;try{const f=r[1].replace(/-/g,"+").replace(/_/g,"/"),o=f.length%4===0?"":"=".repeat(4-f.length%4),h=atob(f+o),m=JSON.parse(h);return m===null||typeof m!="object"?null:m}catch{return null}}function Tg(i){if(!i)return[];const r=Fh(i);if(!r)return[];const f=r.scope;if(typeof f=="string"&&f.length>0)return f.split(/\s+/).filter(h=>h.length>0);const o=r.scopes;return Array.isArray(o)?o.filter(h=>typeof h=="string"&&h.length>0):[]}function Ih(i){return Tg(Gn()).includes(`vault:${i}:admin`)}function _g(){const i=Gn();if(!i)return null;const r=Fh(i);if(!r)return null;const f=r.iss;return typeof f!="string"||f.length===0?null:f.replace(/\/$/,"")}function Eh({vaultName:i}={}){const r=$s(),f=i??r.name,o=i!==void 0,h=o?"/tokens":`/vault/${encodeURIComponent(f??"")}/tokens`,m=o?"/mirror":`/vault/${encodeURIComponent(f??"")}/mirror`,[y,_]=x.useState({kind:"loading"});if(x.useEffect(()=>{let j=!1;if(!f){_({kind:"missing"});return}return hg(f).then(S=>{j||_({kind:"ok",vault:S})}).catch(S=>{if(j)return;if(S instanceof Ee){if(S.status===401||S.status===403){_({kind:"auth-required"});return}if(S.status===404){_({kind:"missing"});return}_({kind:"error",message:`${S.status}: ${S.message}`});return}const M=S instanceof Error?S.message:String(S);_({kind:"error",message:M})}),()=>{j=!0}},[f]),y.kind==="loading")return c.jsxs("div",{children:[c.jsx("h2",{children:"Vault"}),c.jsx("p",{className:"muted",children:"Loading…"})]});if(y.kind==="auth-required")return c.jsxs("div",{children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:f})]}),c.jsxs("div",{className:"warn-banner",children:[`Open this page from the hub's directory — the "Manage" link supplies the admin token. Direct loads of`," ",c.jsxs("code",{children:["/vault/",f,"/admin"]})," can't see protected vault data."]}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});if(y.kind==="missing")return c.jsxs("div",{children:[c.jsx("h2",{children:"Vault not found"}),c.jsxs("p",{className:"muted",children:["No vault named ",c.jsx("code",{children:f})," is registered on this server."]}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});if(y.kind==="error")return c.jsxs("div",{children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:f})]}),c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:y.message})}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});const{vault:g}=y,v=`/vault/${g.name}`;return c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Vault ",c.jsx("code",{children:g.name})]}),o?null:c.jsx(Je,{to:"/",className:"muted",children:"← All vaults"})]}),c.jsxs("div",{className:"kv section",children:[c.jsx("div",{children:"Name"}),c.jsx("div",{children:c.jsx("code",{children:g.name})}),g.description?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Description"}),c.jsx("div",{children:g.description})]}):null,c.jsx("div",{children:"Mount"}),c.jsx("div",{children:c.jsx("code",{children:v})}),g.createdAt?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Created"}),c.jsx("div",{children:c.jsx("code",{children:g.createdAt})})]}):null]}),c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Stats"}),c.jsxs("div",{className:"stats",children:[c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Notes"}),c.jsx("div",{className:"value",children:g.stats.totalNotes})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Tags"}),c.jsx("div",{className:"value",children:g.stats.tagCount})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Attachments"}),c.jsx("div",{className:"value",children:g.stats.attachmentCount})]}),c.jsxs("div",{className:"stat",children:[c.jsx("div",{className:"label",children:"Links"}),c.jsx("div",{className:"value",children:g.stats.linkCount})]})]})]}),c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Manage"}),c.jsxs("ul",{className:"manage-list",children:[c.jsxs("li",{children:[c.jsx(Je,{to:h,children:"Tokens →"}),c.jsxs("span",{className:"dim",children:[" mint, list, and revoke ",c.jsx("code",{children:"pvt_*"})," tokens"]})]}),c.jsxs("li",{children:[c.jsx(Je,{to:m,children:"Git backup →"}),c.jsx("span",{className:"dim",children:" mirror this vault to a git repository on a schedule, or on demand"})]}),c.jsx(Ng,{vaultName:g.name})]})]})]})}function Ng({vaultName:i}){const r=_g();if(!r)return c.jsxs("li",{children:[c.jsx("span",{children:"Permissions →"}),c.jsxs("span",{className:"dim",children:[" ","grants are managed on hub (the OAuth issuer); link will be live when hub ships its permissions UI."]})]});const f=`${r}/hub/permissions?vault=${encodeURIComponent(i)}`;return c.jsxs("li",{children:[c.jsx("a",{href:f,children:"Permissions →"}),c.jsxs("span",{className:"dim",children:[" ","grants are managed on hub (the OAuth issuer); link will be live when hub ships its permissions UI."]})]})}const zg=[{value:"events",label:"On change (default)"},{value:"manual",label:"Manual only"}],Rg=[{id:"history",label:"History",subtext:"Local audit trail. Hidden under vault data. Events-driven.",apply:i=>({...i,enabled:!0,location:"internal",sync_mode:"events",auto_commit:!0,auto_push:!1})},{id:"live",label:"Live Mirror",subtext:"Visible folder. Open in Obsidian, push to GitHub. Events-driven.",apply:i=>({...i,enabled:!0,location:"external",sync_mode:"events",auto_commit:!0})},{id:"manual",label:"Manual Export",subtext:"Snapshot on demand. No auto-fire.",apply:i=>({...i,enabled:!0,location:"external",sync_mode:"manual",auto_commit:!0,auto_push:!1})}];function Th({vaultName:i}={}){const r=$s(),f=i??r.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=x.useState({kind:"loading"}),[_,g]=x.useState(0);return x.useEffect(()=>{let v=!1;if(f)return y({kind:"loading"}),mg(f).then(j=>{v||y({kind:"ok",snapshot:j})}).catch(j=>{if(v)return;if(j instanceof Ee&&(j.status===401||j.status===403)){y({kind:"auth-required"});return}const S=j instanceof Error?j.message:String(j);y({kind:"error",message:S})}),()=>{v=!0}},[f,_]),f?c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Git backup for ",c.jsx("code",{children:f})]}),c.jsx(Je,{to:h,className:"muted",children:"← Vault detail"})]}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsxs("div",{className:"warn-banner",children:[`Open this page from the hub's directory — the "Manage" link supplies the admin token. Direct loads of `,c.jsxs("code",{children:["/vault/",f,"/admin/mirror"]})," can't see protected vault data."]}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(Ag,{vaultName:f,snapshot:m.snapshot,onRefresh:()=>g(v=>v+1),onSnapshot:v=>y({kind:"ok",snapshot:v})}):null]}):c.jsxs("div",{children:[c.jsx("h2",{children:"Mirror"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]})}function Ag({vaultName:i,snapshot:r,onRefresh:f,onSnapshot:o}){const h=Ih(i),[m,y]=x.useState(null),[_,g]=x.useState(null);return x.useEffect(()=>{if(!h)return;let v=!1;return $h(i).then(j=>{v||y(j)}).catch(j=>{v||g(j instanceof Error?j.message:String(j))}),()=>{v=!0}},[i,h]),c.jsxs(c.Fragment,{children:[c.jsx(Cg,{status:r.status,enabled:r.config.enabled,canRun:h&&r.status.enabled,vaultName:i,onSnapshot:o}),h?null:c.jsxs("div",{className:"warn-banner",children:["You're viewing this page with a read-only token. Saving config + manual run require ",c.jsxs("code",{children:["vault:",i,":admin"]}),`. Re-enter from the hub directory's "Manage" link with an admin-scoped session to make changes.`]}),c.jsx(Mg,{vaultName:i,initial:r.config,readOnly:!h,creds:m,onSaved:v=>{o(v),f()}}),h?c.jsx(Og,{vaultName:i,creds:m,credsError:_,onCredsChanged:y,locationIsExternal:r.config.location==="external"}):null,h?c.jsx(Bg,{vaultName:i,creds:m}):null]})}function Cg({status:i,enabled:r,canRun:f,vaultName:o,onSnapshot:h}){const[m,y]=x.useState(!1),[_,g]=x.useState(null),v=async()=>{y(!0),g(null);try{const j=await yg(o);h(j)}catch(j){g(j instanceof Error?j.message:String(j))}finally{y(!1)}};return c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Status"}),c.jsxs("div",{className:"kv",children:[c.jsx("div",{children:"Enabled"}),c.jsx("div",{children:r?c.jsx("code",{children:"yes"}):c.jsx("code",{children:"no"})}),c.jsx("div",{children:"Watch loop"}),c.jsx("div",{children:i.watch_running?c.jsx("code",{children:"running"}):c.jsx("code",{children:"stopped"})}),c.jsx("div",{children:"Path"}),c.jsx("div",{children:i.mirror_path?c.jsx("code",{children:i.mirror_path}):c.jsx("span",{className:"dim",children:"—"})}),c.jsx("div",{children:"Last export"}),c.jsx("div",{children:i.last_export_at?c.jsxs(c.Fragment,{children:[c.jsx("code",{children:i.last_export_at}),i.last_export_notes_count!==null?c.jsxs("span",{className:"dim",children:[" ","· ",i.last_export_notes_count," note",i.last_export_notes_count===1?"":"s"]}):null]}):c.jsx("span",{className:"dim",children:"never"})}),c.jsx("div",{children:"Last commit"}),c.jsx("div",{children:i.last_commit_sha?c.jsx("code",{children:i.last_commit_sha.slice(0,10)}):c.jsx("span",{className:"dim",children:"—"})})]}),i.last_error?c.jsxs("div",{className:"error-banner",style:{marginTop:"1rem"},children:[c.jsx("strong",{children:"Last error:"})," ",c.jsx("code",{children:i.last_error})]}):null,_?c.jsx("div",{className:"error-banner",style:{marginTop:"1rem"},children:c.jsx("code",{children:_})}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:v,disabled:!f||m,title:r?f?void 0:"Admin scope required to trigger a manual export.":"Enable the mirror first, then trigger a manual export.",children:m?"Running…":"Run export now"})})]})}function Mg({vaultName:i,initial:r,readOnly:f,creds:o,onSaved:h}){const[m,y]=x.useState(r),[_,g]=x.useState(!1),[v,j]=x.useState(!1),[S,M]=x.useState(null),[Y,H]=x.useState(null),[B,X]=x.useState(0);x.useEffect(()=>{y(r)},[r]);const G=L=>{const q=L.apply(m);y(q)},I=L=>{y(q=>({...q,sync_mode:L}))},W=async L=>{if(L.preventDefault(),!f){j(!0),M(null),H(null);try{const q=await vg(i,m);h(q),X(K=>K+1),setTimeout(()=>X(0),3e3)}catch(q){if(q instanceof Ee){const K=q.message;M(K);const k=K.toLowerCase();k.includes("external_path")?H("external_path"):k.includes("commit_template")?H("commit_template"):k.includes("safety_net_seconds")?H("safety_net_seconds"):k.includes("sync_mode")?H("sync_mode"):k.includes("auto_push")?H("auto_push"):k.includes("location")?H("location"):H(null)}else M(q instanceof Error?q.message:String(q))}finally{j(!1)}}};return c.jsxs("form",{className:"section",onSubmit:W,children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Configuration"}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.enabled,disabled:f,onChange:L=>y(q=>({...q,enabled:L.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Enable mirror"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"Master switch. When off, no export / commit / push runs."})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Presets"}),c.jsxs("p",{className:"dim",style:{marginTop:0,marginBottom:"0.5rem",fontSize:"0.9em"},children:[c.jsx("strong",{children:"History"})," is the easiest start — vault manages the mirror folder under its own data dir, no path to pick, no remote to configure. ",c.jsx("strong",{children:"Live Mirror"})," + ",c.jsx("strong",{children:"Manual Export"})," are for operators who want to point at a visible folder (Obsidian, GitHub)."]}),c.jsx("div",{className:"preset-grid",children:Rg.map(L=>c.jsxs("button",{type:"button",className:"preset-card",disabled:f,onClick:()=>G(L),"aria-label":`Apply ${L.label} preset`,children:[c.jsx("strong",{children:L.label}),c.jsx("span",{className:"dim",children:L.subtext})]},L.id))})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Location"}),c.jsxs("div",{children:[c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"location",value:"internal",checked:m.location==="internal",disabled:f,onChange:()=>y(L=>({...L,location:"internal"}))}),c.jsxs("span",{children:["Internal ",c.jsx("span",{className:"dim",children:"— hidden under vault data dir"})]})]}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"location",value:"external",checked:m.location==="external",disabled:f,onChange:()=>y(L=>({...L,location:"external"}))}),c.jsxs("span",{children:["External ",c.jsx("span",{className:"dim",children:"— operator-picked path"})]})]})]})]}),m.location==="external"?c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"external-path",children:"External path"}),c.jsx("input",{id:"external-path",type:"text",value:m.external_path??"",disabled:f,onChange:L=>y(q=>({...q,external_path:L.target.value.length>0?L.target.value:null})),placeholder:"/Users/you/Documents/vault-mirror","aria-invalid":Y==="external_path"}),c.jsxs("div",{className:"warn-banner",style:{marginTop:"0.5rem"},role:"alert",children:["Path must exist AND be a git repo (run ",c.jsx("code",{children:"git init"})," first if needed)."]})]}):null,c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"sync-mode-select",children:"Sync mode"}),c.jsx("select",{id:"sync-mode-select",value:m.sync_mode,disabled:f,onChange:L=>I(L.target.value),children:zg.map(L=>c.jsx("option",{value:L.value,children:L.label},L.value))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:m.sync_mode==="manual"?'No auto-fire. Exports only run when you click "Run export now" (or run `parachute-vault export` from the CLI).':"Every change to a note, tag, or attachment triggers an export within ~500ms. A background safety check runs hourly to catch anything missed."})]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_commit,disabled:f,onChange:L=>y(q=>({...q,auto_commit:L.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Commit after each export"]}),m.auto_commit?null:c.jsx("p",{className:"hint",style:{marginTop:"0.25rem",fontSize:"0.85em"},children:"Note: the export cursor still advances after each pass. Subsequent runs only re-export notes written since the last pass — even when triggered manually."})]}),m.location==="external"?c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_push,disabled:f,onChange:L=>y(q=>({...q,auto_push:L.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Push after each commit"]}),m.auto_push?o!=null&&o.active_method?c.jsxs("div",{className:"info-banner",style:{marginTop:"0.5rem"},role:"status",children:[o.active_method==="github_oauth"&&o.github_oauth?c.jsxs(c.Fragment,{children:["Will push to ",c.jsxs("code",{children:["@",o.github_oauth.user_login]})," on GitHub."]}):o.active_method==="pat"&&o.pat?c.jsxs(c.Fragment,{children:["Will push using saved credential: ",c.jsx("code",{children:o.pat.label}),"."]}):c.jsx(c.Fragment,{children:"Will push using saved credential."})," ","Failed pushes are logged but won't crash the export."]}):c.jsxs("div",{className:"warn-banner",style:{marginTop:"0.5rem"},role:"alert",children:["Auto-push needs git credentials. Either connect GitHub in the"," ",c.jsx("strong",{children:"Git remote"})," section below, or paste a Personal Access Token + remote URL. Failed pushes are logged but won't crash the export."]}):null]}):null,c.jsx("div",{className:"form-row",children:c.jsxs("button",{type:"button",className:"secondary",onClick:()=>g(L=>!L),children:[_?"Hide":"Show"," advanced"]})}),_?c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"commit-template",children:"Commit template"}),c.jsx("input",{id:"commit-template",type:"text",value:m.commit_template,disabled:f,onChange:L=>y(q=>({...q,commit_template:L.target.value})),"aria-invalid":Y==="commit_template"}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Supports ",c.jsx("code",{children:"{{date}}"}),", ",c.jsx("code",{children:"{{notes_changed}}"}),","," ",c.jsx("code",{children:"{{plural}}"}),", ",c.jsx("code",{children:"{{first_note_title}}"}),","," ",c.jsx("code",{children:"{{vault_name}}"}),"."]})]}):null,S?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:S})}):null,B>0?c.jsx("div",{className:"mint-banner",style:{padding:"0.75rem 1rem",marginBottom:"1rem"},role:"status",children:"Saved."}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"submit",disabled:f||v,children:v?"Saving…":"Save"})})]})}function Og({vaultName:i,creds:r,credsError:f,onCredsChanged:o,locationIsExternal:h}){const[m,y]=x.useState(!1),[_,g]=x.useState(!1),[v,j]=x.useState(!1),[S,M]=x.useState(null),Y=(r==null?void 0:r.active_method)!==null&&(r==null?void 0:r.active_method)!==void 0,H=async()=>{if(confirm("Disconnect git remote credentials? Auto-push will stop working until you reconnect.")){j(!0),M(null);try{const B=await pg(i);o(B)}catch(B){M(B instanceof Error?B.message:String(B))}finally{j(!1)}}};return c.jsxs("div",{className:"section",id:"git-remote-section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Git remote"}),c.jsxs("p",{className:"dim",style:{marginTop:0},children:["Credentials for ",c.jsx("code",{children:"auto-push"}),". Stored on this server with"," ",c.jsx("code",{children:"0600"})," file permissions. Never sent to GitHub or any third party."]}),h?null:c.jsxs("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:["Internal mirrors live under the vault's data directory and have no remote. Switch the location above to ",c.jsx("strong",{children:"External"})," to enable pushing."]}),f?c.jsxs("div",{className:"error-banner",role:"alert",children:["Could not load credential status: ",c.jsx("code",{children:f})]}):null,Y?c.jsxs("div",{className:"kv",style:{marginBottom:"0.75rem"},children:[c.jsx("div",{children:"Status"}),c.jsx("div",{children:(r==null?void 0:r.active_method)==="github_oauth"&&r.github_oauth?c.jsxs(c.Fragment,{children:["Connected to ",c.jsxs("code",{children:["@",r.github_oauth.user_login]})," on GitHub"]}):(r==null?void 0:r.active_method)==="pat"&&r.pat?c.jsxs(c.Fragment,{children:["Custom credential: ",c.jsx("code",{children:r.pat.label})]}):null}),(r==null?void 0:r.active_method)==="github_oauth"&&r.github_oauth?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Token"}),c.jsxs("div",{children:[c.jsx("code",{children:r.github_oauth.token_preview})," ",c.jsxs("span",{className:"dim",children:["· scope ",r.github_oauth.scope||"—"," · authorized"," ",r.github_oauth.authorized_at.slice(0,10)]})]})]}):null,(r==null?void 0:r.active_method)==="pat"&&r.pat?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Remote"}),c.jsx("div",{children:c.jsx("code",{children:r.pat.remote_url})}),c.jsx("div",{children:"Token"}),c.jsx("div",{children:c.jsx("code",{children:r.pat.token_preview})})]}):null]}):c.jsx("p",{className:"dim",children:"Not connected. Auto-push won't work until you connect. Personal Access Token is the universal path (works with GitHub, GitLab, Gitea, Bitbucket, anything that takes an HTTPS token); the GitHub shortcut just saves a step for GitHub users."}),S?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:S})}):null,c.jsx("div",{className:"actions",children:Y?c.jsx("button",{type:"button",className:"secondary",onClick:H,disabled:v,children:v?"Disconnecting…":"Disconnect"}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",onClick:()=>g(!0),children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>y(!0),children:"Connect GitHub (one-click for GitHub users)"})]})}),m?c.jsx(Dg,{vaultName:i,onClose:()=>y(!1),onConnected:B=>{o(B),y(!1)}}):null,_?c.jsx(Hg,{vaultName:i,onClose:()=>g(!1),onSaved:B=>{o(B),g(!1)}}):null]})}function Dg({vaultName:i,onClose:r,onConnected:f}){const[o,h]=x.useState({kind:"starting"}),[m,y]=x.useState(Date.now()),_=x.useRef(!1);x.useEffect(()=>{const v=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(v)},[]),x.useEffect(()=>{let v=!1;return _.current=!1,gg(i).then(j=>{v||h({kind:"polling",code:j,pollIntervalMs:Math.max(j.interval,1)*1e3,startedAt:Date.now()})}).catch(j=>{v||h({kind:"error",message:j instanceof Error?j.message:String(j)})}),()=>{v=!0,_.current=!0}},[i]),x.useEffect(()=>{if(o.kind!=="polling")return;const v=o.code;let j=!1,S=null,M=o.pollIntervalMs;const Y=async()=>{if(!(j||_.current))try{const H=await bg(i,v.polling_id);if(j)return;if(H.state==="granted"){h({kind:"granted",user:{login:H.user.login}});return}if(H.state==="denied"){h({kind:"error",message:"Authorization denied."});return}if(H.state==="expired"){h({kind:"error",message:"The device code expired. Try again."});return}H.state==="slow_down"&&(M=H.interval*1e3),S=setTimeout(Y,M)}catch(H){if(j)return;h({kind:"error",message:H instanceof Error?H.message:String(H)})}};return S=setTimeout(Y,M),()=>{j=!0,S&&clearTimeout(S)}},[o,i]);const g=async v=>{try{await navigator.clipboard.writeText(v)}catch{}};return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Connect GitHub"}),c.jsx("button",{type:"button",className:"secondary",onClick:r,children:"Close"})]}),o.kind==="starting"?c.jsx("p",{className:"muted",children:"Requesting device code from GitHub…"}):null,o.kind==="polling"?c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:[c.jsx("strong",{children:"Step 1."})," Open"," ",c.jsx("a",{href:o.code.verification_uri,target:"_blank",rel:"noreferrer",children:o.code.verification_uri})," ","in your browser."]}),c.jsxs("p",{children:[c.jsx("strong",{children:"Step 2."})," Enter this code:"]}),c.jsxs("div",{className:"device-code-row",children:[c.jsx("code",{className:"device-code",children:o.code.user_code}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>g(o.code.user_code),children:"Copy"})]}),c.jsxs("p",{className:"dim",children:["Waiting for authorization…"," ",Ug(o.code.expires_in,o.startedAt,m)]})]}):null,o.kind==="granted"?c.jsx(wg,{vaultName:i,user:o.user,onPicked:async(v,j)=>{await jg(i,{owner:v,name:j});const S=await $h(i);f(S)},onError:v=>h({kind:"error",message:v})}):null,o.kind==="error"?c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:o.message})}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:()=>h({kind:"starting"}),children:"Try again"}),c.jsx("button",{type:"button",className:"secondary",onClick:r,children:"Close"})]})]}):null]})})}function Ug(i,r,f){const o=Math.floor((f-r)/1e3),h=Math.max(0,i-o),m=Math.floor(h/60),y=h%60;return`${m}:${String(y).padStart(2,"0")} remaining`}function wg({vaultName:i,user:r,onPicked:f,onError:o}){const[h,m]=x.useState(null),[y,_]=x.useState(!1),[g,v]=x.useState(""),[j,S]=x.useState(null),[M,Y]=x.useState(!1),[H,B]=x.useState(""),[X,G]=x.useState(!1);x.useEffect(()=>{let q=!1;return Wh(i).then(({repos:K,truncated:k})=>{q||(m(K),_(!!k))}).catch(K=>{q||o(K instanceof Error?K.message:String(K))}),()=>{q=!0}},[i,o]);const I=(h??[]).filter(q=>g.length===0?!0:q.full_name.toLowerCase().includes(g.toLowerCase())),W=async(q,K)=>{S(`${q}/${K}`);try{await f(q,K)}catch(k){o(k instanceof Error?k.message:String(k))}finally{S(null)}},L=async()=>{if(H.trim().length!==0){Y(!0);try{const q=await xg(i,{name:H.trim(),description:"Parachute Vault mirror",private:!0});await f(q.owner,q.name)}catch(q){o(q instanceof Error?q.message:String(q))}finally{Y(!1)}}};return c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:["Authorized as ",c.jsxs("code",{children:["@",r.login]}),". Pick a repository to push the mirror to:"]}),c.jsx("div",{className:"form-row",children:c.jsx("input",{type:"search",placeholder:"Filter by name…",value:g,onChange:q=>v(q.target.value)})}),y?c.jsx("p",{className:"muted",style:{fontSize:"0.85em"},children:"Showing the first 300 repos. Use the filter above to narrow down — or paste the clone URL directly via Personal Access Token below if your repo isn't here."}):null,h===null?c.jsx("p",{className:"muted",children:"Loading repos…"}):null,h!==null?c.jsxs("div",{className:"repo-list",children:[I.length===0&&g.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',g,'".']}):null,I.length===0&&g.length===0&&h.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account yet."}):null,I.map(q=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>W(q.owner,q.name),disabled:j!==null,children:[c.jsxs("span",{children:[c.jsx("strong",{children:q.name}),q.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:q.updated_at.slice(0,10)})]},q.full_name))]}):null,X?c.jsxs("div",{className:"form-row",style:{marginTop:"0.75rem"},children:[c.jsx("label",{htmlFor:"new-repo-name",children:"New repo name"}),c.jsx("input",{id:"new-repo-name",type:"text",value:H,placeholder:"my-vault-backup",onChange:q=>B(q.target.value)}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:L,disabled:M||H.trim().length===0,children:M?"Creating…":"Create"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>G(!1),disabled:M,children:"Cancel"})]})]}):c.jsx("div",{className:"actions",style:{marginTop:"0.75rem"},children:c.jsx("button",{type:"button",className:"secondary",onClick:()=>G(!0),children:"+ Create new private repo"})})]})}function Hg({vaultName:i,onClose:r,onSaved:f}){const[o,h]=x.useState(""),[m,y]=x.useState(""),[_,g]=x.useState(""),[v,j]=x.useState(!1),[S,M]=x.useState(null),Y=async H=>{H.preventDefault(),j(!0),M(null);try{const B=await Sg(i,{token:o.trim(),remote_url:m.trim(),label:_.trim()||void 0});f(B)}catch(B){M(B instanceof Error?B.message:String(B))}finally{j(!1)}};return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:r,disabled:v,children:"Close"})]}),c.jsxs("p",{className:"dim",children:["Works for any provider that supports HTTPS push with a token in the URL (GitHub, GitLab, Codeberg, Gitea, …). The token is stored with"," ",c.jsx("code",{children:"0600"})," file perms on this server."]}),c.jsxs("form",{onSubmit:Y,children:[c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-token",children:"Token"}),c.jsx("input",{id:"pat-token",type:"password",value:o,autoComplete:"off",onChange:H=>h(H.target.value),placeholder:"ghp_… or glpat-… or similar",required:!0})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-url",children:"Remote URL"}),c.jsx("input",{id:"pat-url",type:"url",value:m,onChange:H=>y(H.target.value),placeholder:"https://github.com/owner/repo.git",required:!0}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["We'll embed your token in the URL before saving (using GitHub's"," ",c.jsx("code",{children:"x-access-token"})," convention). The URL you see on disk will carry the token; ensure the file isn't shared."]})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"pat-label",children:"Label (optional)"}),c.jsx("input",{id:"pat-label",type:"text",value:_,onChange:H=>g(H.target.value),placeholder:"GitHub PAT for backup"})]}),S?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:S})}):null,c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"submit",disabled:v,children:v?"Validating…":"Validate & save"}),c.jsx("button",{type:"button",className:"secondary",onClick:r,disabled:v,children:"Cancel"})]})]})]})})}function Bg({vaultName:i,creds:r}){const[f,o]=x.useState(""),[h,m]=x.useState("merge"),[y,_]=x.useState(!1),[g,v]=x.useState(""),[j,S]=x.useState({kind:"idle"}),[M,Y]=x.useState(""),[H,B]=x.useState(!1),X=(r==null?void 0:r.active_method)==="github_oauth"&&r.github_oauth!==null,G=(r==null?void 0:r.active_method)!==null&&(r==null?void 0:r.active_method)!==void 0,I=h!=="replace"||M.trim()===i,W=j.kind!=="running"&&f.trim().length>0&&I&&(!y||g.trim().length>0),L=async()=>{S({kind:"running",stage:"cloning"});let K;y?K={kind:"pat",token:g.trim()}:G?K=null:K={kind:"none"};try{const k=window.setTimeout(()=>S(Le=>Le.kind==="running"?{kind:"running",stage:"importing"}:Le),1500),Te=await Eg(i,{remote_url:f.trim(),mode:h,credentials:K});window.clearTimeout(k),S({kind:"success",result:Te,remoteUrl:f.trim(),mode:h})}catch(k){const Te=k instanceof Ee?`${k.status===409?"Already running. ":""}${k.message}`:k instanceof Error?k.message:String(k);S({kind:"error",message:Te})}},q=()=>{S({kind:"idle"}),Y("")};return c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Import from a git repo"}),c.jsxs("p",{className:"dim",style:{marginTop:0},children:["Pull a vault state from a remote git repo into ",c.jsx("strong",{children:"this"})," vault. Use this to load a vault someone has been mirroring, or to sync a vault between machines you control. The remote must be a Parachute vault export (created by ",c.jsx("code",{children:"parachute-vault export"})," or the mirror's export flow)."]}),c.jsxs("div",{className:"warn-banner",style:{marginBottom:"1rem"},role:"note",children:[c.jsx("strong",{children:"One vault per remote."})," Multiple vaults pushing to the same git repo isn't a supported shape — the last push wins, and vaults that diverge silently overwrite each other. Today's working pattern is one vault per remote. Active two-way sync is a future direction; for now, do exports from one place and imports as snapshots elsewhere."]}),j.kind==="success"?c.jsx(qg,{vaultName:i,result:j.result,remoteUrl:j.remoteUrl,mode:j.mode,onReset:q}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"import-remote-url",children:"Remote URL"}),c.jsx("input",{id:"import-remote-url",type:"text",value:f,placeholder:"https://github.com/aaron/my-vault.git",onChange:K=>o(K.target.value),disabled:j.kind==="running"}),X?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.9em"},children:["Or"," ",c.jsx("button",{type:"button",onClick:()=>B(!0),disabled:j.kind==="running",style:{background:"none",border:"none",padding:0,color:"var(--accent)",textDecoration:"underline",cursor:"pointer",fontSize:"inherit"},children:"pick from your GitHub repos"}),"."]}):null,!G&&!y?c.jsx("p",{className:"hint",style:{marginTop:"0.35rem",fontSize:"0.85em"},children:"No saved git credentials. The import will be unauthenticated — works for public repos; private repos will fail with a clear error. Use the one-time credential toggle below if needed."}):null]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{children:"Mode"}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"import-mode",value:"merge",checked:h==="merge",onChange:()=>{m("merge"),Y("")},disabled:j.kind==="running"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Merge"})," ",c.jsxs("span",{className:"dim",children:["— upsert by id. Notes in the remote get created/updated; any notes that exist only locally ",c.jsx("strong",{children:"survive"}),"."]})]})]}),c.jsxs("label",{className:"radio-row",children:[c.jsx("input",{type:"radio",name:"import-mode",value:"replace",checked:h==="replace",onChange:()=>m("replace"),disabled:j.kind==="running"}),c.jsxs("span",{children:[c.jsx("strong",{children:"Replace"})," ",c.jsxs("span",{className:"dim",children:["— wipe this vault first, then import. The remote becomes the new source of truth. ",c.jsx("strong",{children:"Destructive."})]})]})]})]}),h==="replace"?c.jsxs("div",{className:"form-row",children:[c.jsxs("div",{className:"error-banner",role:"alert",style:{marginBottom:"0.5rem"},children:[c.jsxs("strong",{children:['Replace will delete every note in vault "',i,'" before importing.']})," To confirm, type the vault name below:"]}),c.jsx("input",{id:"import-confirm-name",type:"text",value:M,placeholder:i,onChange:K=>Y(K.target.value),disabled:j.kind==="running","aria-label":"Type vault name to confirm"})]}):null,c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:y,onChange:K=>_(K.target.checked),disabled:j.kind==="running",style:{width:"auto",marginRight:"0.5rem"}}),"One-time credential for this import only"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.85em"},children:"Use a different Personal Access Token just for this clone, without changing your saved credentials."}),y?c.jsx("input",{id:"import-per-call-pat",type:"password",value:g,placeholder:"ghp_… or similar",onChange:K=>v(K.target.value),disabled:j.kind==="running",autoComplete:"off",style:{marginTop:"0.5rem"}}):null]}),j.kind==="error"?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:j.message})}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:L,disabled:!W,title:I?f.trim().length===0?"Provide a remote URL.":y&&g.trim().length===0?"Provide a token for one-time credential.":void 0:"Type the vault name to confirm Replace.",children:j.kind==="running"?j.stage==="cloning"?"Cloning…":"Importing…":"Start import"})})]}),H?c.jsx(Lg,{vaultName:i,onClose:()=>B(!1),onPicked:K=>{o(K),B(!1)}}):null]})}function qg({vaultName:i,result:r,remoteUrl:f,mode:o,onReset:h}){const[m,y]=x.useState(!0);return c.jsxs(c.Fragment,{children:[c.jsxs("div",{className:"mint-banner",role:"status",style:{marginBottom:"0.75rem"},children:[c.jsx("strong",{children:"Import succeeded."})," Imported ",r.notes_imported," note",r.notes_imported===1?"":"s",", ",r.tags_imported," tag schema",r.tags_imported===1?"":"s",", ",r.attachments_imported," ","attachment",r.attachments_imported===1?"":"s",o==="replace"&&r.notes_deleted!==void 0?`, wiped ${r.notes_deleted} pre-existing note${r.notes_deleted===1?"":"s"}`:"","."]}),r.warnings.length>0?c.jsxs("details",{style:{marginBottom:"0.75rem"},children:[c.jsxs("summary",{children:[r.warnings.length," warning",r.warnings.length===1?"":"s"," ","(see details)"]}),c.jsx("ul",{style:{marginTop:"0.5rem"},children:r.warnings.map((_,g)=>c.jsx("li",{children:c.jsx("code",{style:{fontSize:"0.85em"},children:_})},g))})]}):null,m?c.jsxs("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsxs("p",{style:{marginTop:0},children:[c.jsx("strong",{children:"Set this repo as the active mirror remote?"})," Future exports from vault ",c.jsx("code",{children:i})," would push back to"," ",c.jsx("code",{children:f}),`. Skip if you'd rather keep them separate — see the "one vault per remote" note above.`]}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:()=>{var _;y(!1),(_=document.getElementById("git-remote-section"))==null||_.scrollIntoView({behavior:"smooth",block:"start"})},children:"Yes — configure mirror push above"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>y(!1),children:"No, keep import-only"})]})]}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",className:"secondary",onClick:h,children:"Run another import"})})]})}function Lg({vaultName:i,onClose:r,onPicked:f}){const[o,h]=x.useState(null),[m,y]=x.useState(!1),[_,g]=x.useState(""),[v,j]=x.useState(null);x.useEffect(()=>{let M=!1;return Wh(i).then(({repos:Y,truncated:H})=>{M||(h(Y),y(!!H))}).catch(Y=>{M||j(Y instanceof Error?Y.message:String(Y))}),()=>{M=!0}},[i]);const S=(o??[]).filter(M=>_.length===0?!0:M.full_name.toLowerCase().includes(_.toLowerCase()));return c.jsx("div",{className:"modal-backdrop",role:"dialog","aria-modal":"true",children:c.jsxs("div",{className:"modal",children:[c.jsxs("div",{className:"list-header",children:[c.jsx("h3",{style:{margin:0},children:"Pick a repo to import from"}),c.jsx("button",{type:"button",className:"secondary",onClick:r,children:"Close"})]}),v?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:v})}):null,c.jsx("div",{className:"form-row",children:c.jsx("input",{type:"search",placeholder:"Filter by name…",value:_,onChange:M=>g(M.target.value)})}),m?c.jsx("p",{className:"muted",style:{fontSize:"0.85em"},children:"Showing the first 300 repos. Use the filter above to narrow down."}):null,o===null&&!v?c.jsx("p",{className:"muted",children:"Loading repos…"}):null,o!==null?c.jsxs("div",{className:"repo-list",children:[S.length===0&&_.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',_,'".']}):null,S.length===0&&_.length===0&&o.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account."}):null,S.map(M=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>f(M.clone_url),children:[c.jsxs("span",{children:[c.jsx("strong",{children:M.name}),M.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:M.updated_at.slice(0,10)})]},M.full_name))]}):null]})})}async function Yg(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/api/tags`,{headers:mi()});if(!r.ok)throw new Ee(r.status,await vi(r));const f=await r.json();return Array.isArray(f)?f:[]}function mi(){const i=Gn();if(!i)throw new Ee(401,"no admin token — open this page from the hub directory");return{accept:"application/json",authorization:`Bearer ${i}`}}async function vi(i){try{const r=await i.text(),f=JSON.parse(r);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(r)return r}catch{}return`${i.status} ${i.statusText}`}async function Gg(i){const r=await fetch(`/vault/${encodeURIComponent(i)}/tokens`,{headers:mi()});if(!r.ok)throw new Ee(r.status,await vi(r));return(await r.json()).tokens??[]}async function Xg(i,r){const f={};r.label&&r.label.length>0&&(f.label=r.label),r.scopes&&r.scopes.length>0&&(f.scopes=r.scopes),r.tags&&r.tags.length>0&&(f.tags=r.tags),r.expires_at!==void 0&&(f.expires_at=r.expires_at);const o=await fetch(`/vault/${encodeURIComponent(i)}/tokens`,{method:"POST",headers:{...mi(),"content-type":"application/json"},body:JSON.stringify(f)});if(!o.ok)throw new Ee(o.status,await vi(o));return await o.json()}async function Qg(i,r){const f=await fetch(`/vault/${encodeURIComponent(i)}/tokens/${encodeURIComponent(r)}`,{method:"DELETE",headers:mi()});if(!f.ok)throw new Ee(f.status,await vi(f))}function _h({vaultName:i}={}){const r=$s(),f=i??r.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=x.useState({kind:"loading"}),[_,g]=x.useState(null),[v,j]=x.useState(null),[S,M]=x.useState(0);if(x.useEffect(()=>{let H=!1;if(f)return y({kind:"loading"}),Gg(f).then(B=>{H||y({kind:"ok",tokens:B})}).catch(B=>{if(H)return;if(B instanceof Ee&&(B.status===401||B.status===403)){y({kind:"auth-required"});return}const X=B instanceof Error?B.message:String(B);y({kind:"error",message:X})}),()=>{H=!0}},[f,S]),x.useEffect(()=>{if(!_)return;const H=B=>{B.preventDefault(),B.returnValue=""};return window.addEventListener("beforeunload",H),()=>window.removeEventListener("beforeunload",H)},[_]),!f)return c.jsxs("div",{children:[c.jsx("h2",{children:"Tokens"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx(Je,{to:"/",children:"← Back to vaults"})]});const Y=Ih(f);return c.jsxs("div",{children:[c.jsxs("div",{className:"list-header",children:[c.jsxs("h2",{children:["Tokens for ",c.jsx("code",{children:f})]}),c.jsx(Je,{to:h,className:"muted",children:"← Vault detail"})]}),Y?null:c.jsxs("div",{className:"warn-banner",children:["You're viewing this page with a read-only token. Mint and revoke require"," ",c.jsxs("code",{children:["vault:",f,":admin"]}),`. Re-enter from the hub directory's "Manage" link with an admin-scoped session to manage tokens.`]}),_?c.jsx(Vg,{result:_,onDismiss:()=>g(null)}):null,m.kind==="ok"&&Y&&!_?c.jsx(kg,{vaultName:f,onMinted:H=>{g(H),M(B=>B+1)}}):null,c.jsxs("div",{className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Existing tokens"}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsx("div",{className:"warn-banner",children:`Open this page from the hub's directory — the "Manage" link supplies the admin token.`}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(Zg,{vaultName:f,tokens:m.tokens,allowRevoke:Y,confirmingRevokeId:v,onAskConfirm:j,onRevoked:()=>{j(null),M(H=>H+1)}}):null]})]})}function Vg({result:i,onDismiss:r}){const[f,o]=x.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(i.token),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return c.jsxs("div",{className:"mint-banner",children:[c.jsx("h3",{children:"New token (shown once)"}),c.jsx("p",{className:"muted",children:"This is the only time the vault will show this token. Copy it now and store it somewhere safe — a password manager, the operator's notes, paraclaw's secrets store. If you lose it, revoke it and mint a new one."}),c.jsxs("div",{className:"token-box",children:[c.jsx("code",{children:i.token}),c.jsx("button",{type:"button",onClick:h,className:"secondary",children:f?"Copied":"Copy"})]}),c.jsx("p",{className:"warn",children:"⚠ Don't dismiss this banner until you've saved the token."}),c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:r,children:"Done — I've saved the token"})})]})}function kg({vaultName:i,onMinted:r}){const[f,o]=x.useState(""),[h,m]=x.useState("admin"),[y,_]=x.useState(!1),[g,v]=x.useState(null),[j,S]=x.useState([]),[M,Y]=x.useState(null),[H,B]=x.useState(new Set);x.useEffect(()=>{let L=!1;return Yg(i).then(q=>{if(L)return;const K=q.map(k=>k.name).filter(k=>!k.includes("/")).sort();S(K)}).catch(q=>{L||Y(q instanceof Error?q.message:String(q))}),()=>{L=!0}},[i]);const X=f.trim(),G=X.length===0,I=L=>{B(q=>{const K=new Set(q);return K.has(L)?K.delete(L):K.add(L),K})},W=async L=>{if(L.preventDefault(),G){v("label required — give the token a recognizable name");return}_(!0),v(null);try{const q=[...H],K=await Xg(i,{label:X,scopes:[`vault:${i}:${h}`],tags:q.length>0?q:null});r(K),o(""),m("admin"),B(new Set)}catch(q){v(q instanceof Error?q.message:String(q))}finally{_(!1)}};return c.jsxs("form",{onSubmit:W,className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Mint a token"}),g?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:g})}):null,c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{htmlFor:"mint-label",children:["Label ",c.jsx("span",{className:"dim",children:"(required)"})]}),c.jsx("input",{id:"mint-label",type:"text",value:f,onChange:L=>o(L.target.value),placeholder:"e.g. ci, paraclaw-prod, my-laptop",maxLength:120,required:!0})]}),c.jsxs("div",{className:"form-row",children:[c.jsx("label",{htmlFor:"mint-scope",children:"Scope"}),c.jsxs("select",{id:"mint-scope",value:h,onChange:L=>m(L.target.value),children:[c.jsx("option",{value:"read",children:"read — query notes only"}),c.jsx("option",{value:"write",children:"write — query + create/update notes"}),c.jsx("option",{value:"admin",children:"admin — full control (incl. token mgmt)"})]}),c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Issued as ",c.jsxs("code",{children:["vault:",i,":",h]}),". Lower scopes inherit narrower powers."]})]}),c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:["Tag scope ",c.jsx("span",{className:"dim",children:"(optional)"})]}),M?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Couldn't load tags: ",c.jsx("code",{children:M}),". Token will be unscoped."]}):j.length===0?c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:"No root tags in this vault yet — token will see the full vault."}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"tag-picker",children:j.map(L=>c.jsxs("label",{className:"tag-checkbox",children:[c.jsx("input",{type:"checkbox",checked:H.has(L),onChange:()=>I(L)}),c.jsx("code",{children:L})]},L))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:H.size===0?"Nothing selected — token sees the full vault (unscoped).":`Token limited to: ${[...H].join(", ")}. Sub-tags (e.g. health/food) are reachable when their root is selected.`})]})]}),c.jsx("div",{className:"actions",children:c.jsx("button",{type:"submit",disabled:y||G,children:y?"Minting…":"Mint token"})})]})}function Zg({vaultName:i,tokens:r,allowRevoke:f,confirmingRevokeId:o,onAskConfirm:h,onRevoked:m}){return r.length===0?c.jsx("p",{className:"muted",children:"No tokens yet. Mint one above to get started."}):c.jsx("div",{className:"token-list",children:r.map(y=>c.jsx(Kg,{vaultName:i,token:y,allowRevoke:f,confirming:o===y.id,onAskConfirm:h,onRevoked:m},y.id))})}function Kg({vaultName:i,token:r,allowRevoke:f,confirming:o,onAskConfirm:h,onRevoked:m}){const[y,_]=x.useState(!1),[g,v]=x.useState(null),j=async()=>{_(!0),v(null);try{await Qg(i,r.id),m()}catch(S){v(S instanceof Error?S.message:String(S)),_(!1)}};return c.jsxs("div",{className:"token-row",children:[c.jsxs("div",{className:"body",children:[c.jsxs("div",{className:"name",children:[c.jsx("strong",{children:r.label}),c.jsx("code",{className:"dim",children:r.id}),r.vault_name===null?c.jsx("code",{className:"scope-tag",title:"Pre-v16 token, not bound to any vault. Usable across vaults this session can see.",children:"server-wide"}):null]}),c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"scopes:"})," ",r.scopes.length>0?r.scopes.map(S=>c.jsx("code",{className:"scope-tag",children:S},S)):c.jsxs("span",{className:"dim",children:["(legacy — ",r.permission,")"]})]}),r.scoped_tags&&r.scoped_tags.length>0?c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"tags:"})," ",r.scoped_tags.map(S=>c.jsxs("code",{className:"scope-tag tag-pill",children:["#",S]},S))]}):null,c.jsxs("div",{className:"meta dim",children:["created ",r.created_at,r.last_used_at?` · last used ${r.last_used_at}`:" · never used",r.expires_at?` · expires ${r.expires_at}`:""]}),g?c.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:c.jsx("code",{children:g})}):null]}),f?o?c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:j,disabled:y,children:y?"Revoking…":"Confirm revoke"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>h(null),disabled:y,children:"Cancel"})]}):c.jsx("button",{type:"button",className:"secondary",onClick:()=>h(r.id),children:"Revoke"}):null]})}function Jg(){const[i,r]=x.useState({kind:"loading"});return x.useEffect(()=>{let f=!1;return dg().then(o=>{f||r({kind:"ok",vaults:o})}).catch(o=>{if(f)return;const h=o instanceof Ee?`${o.status}: ${o.message}`:o instanceof Error?o.message:String(o);r({kind:"error",message:h})}),()=>{f=!0}},[]),i.kind==="loading"?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsx("p",{className:"muted",children:"Loading…"})]}):i.kind==="error"?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:i.message})})]}):i.vaults.length===0?c.jsxs("div",{children:[c.jsx("h2",{children:"Vaults"}),c.jsxs("div",{className:"empty",children:["No vaults yet. Run ",c.jsx("code",{children:"parachute-vault create <name>"})," on the host to create one."]})]}):c.jsxs("div",{children:[c.jsx("div",{className:"list-header",children:c.jsx("h2",{children:"Vaults"})}),i.vaults.map(f=>c.jsxs(Je,{to:`/vault/${f}`,className:"vault-row",children:[c.jsx("div",{className:"body",children:c.jsx("div",{className:"name",children:c.jsx("code",{children:f})})}),c.jsx("div",{className:"chev",children:"→"})]},f))]})}function $g(){const i=Jh();return c.jsxs("div",{className:"page",children:[c.jsxs("nav",{className:"nav",children:[c.jsxs(Je,{to:"/",className:"brand",children:["Parachute Vault ",c.jsx("span",{className:"sub",children:"admin"})]}),i?c.jsx(Je,{to:"/",children:c.jsx("code",{children:i})}):c.jsx(Je,{to:"/",children:"Vaults"})]}),i?c.jsxs(xh,{children:[c.jsx(Gt,{path:"/",element:c.jsx(Eh,{vaultName:i})}),c.jsx(Gt,{path:"/tokens",element:c.jsx(_h,{vaultName:i})}),c.jsx(Gt,{path:"/mirror",element:c.jsx(Th,{vaultName:i})}),c.jsx(Gt,{path:"*",element:c.jsx(Nh,{})})]}):c.jsxs(xh,{children:[c.jsx(Gt,{path:"/",element:c.jsx(Jg,{})}),c.jsx(Gt,{path:"/vault/:name",element:c.jsx(Eh,{})}),c.jsx(Gt,{path:"/vault/:name/tokens",element:c.jsx(_h,{})}),c.jsx(Gt,{path:"/vault/:name/mirror",element:c.jsx(Th,{})}),c.jsx(Gt,{path:"*",element:c.jsx(Nh,{})})]})]})}function Nh(){return c.jsxs("div",{className:"empty",children:["404 — back to ",c.jsx(Je,{to:"/",children:"vault"}),"."]})}og();const Ph=document.getElementById("root");if(!Ph)throw new Error("#root not found");function Qs(){Oy.createRoot(Ph).render(c.jsx(x.StrictMode,{children:c.jsx(Pp,{basename:rg(),children:c.jsx($g,{})})}))}const zh=Jh();zh?fg(zh).then(Qs,Qs):Qs();
|