@openparachute/vault 0.4.8 → 0.4.9-rc.10
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/core/src/hooks.test.ts +320 -1
- package/core/src/hooks.ts +243 -38
- package/core/src/mcp.ts +35 -0
- package/core/src/portable-md.test.ts +252 -1
- package/core/src/portable-md.ts +370 -2
- package/core/src/schema.ts +51 -2
- package/core/src/store.ts +68 -2
- package/package.json +1 -1
- package/src/auth.ts +29 -1
- package/src/auto-transcribe.test.ts +7 -2
- package/src/auto-transcribe.ts +6 -2
- package/src/export-watch.test.ts +74 -0
- package/src/export-watch.ts +108 -7
- package/src/github-device-flow.test.ts +404 -0
- package/src/github-device-flow.ts +415 -0
- package/src/mcp-http.ts +24 -36
- package/src/mcp-tools.ts +286 -2
- package/src/mirror-config.test.ts +184 -14
- package/src/mirror-config.ts +220 -24
- package/src/mirror-credentials.test.ts +450 -0
- package/src/mirror-credentials.ts +577 -0
- package/src/mirror-deps.ts +42 -1
- package/src/mirror-import.test.ts +550 -0
- package/src/mirror-import.ts +484 -0
- package/src/mirror-manager.test.ts +423 -12
- package/src/mirror-manager.ts +579 -62
- package/src/mirror-routes.test.ts +966 -10
- package/src/mirror-routes.ts +1096 -5
- package/src/module-config.ts +11 -5
- package/src/routing.test.ts +92 -1
- package/src/routing.ts +165 -1
- package/src/server.ts +21 -8
- package/src/token-store.ts +158 -5
- package/src/transcription-worker.ts +9 -4
- package/src/triggers.ts +16 -3
- package/src/vault.test.ts +380 -1
- package/web/ui/dist/assets/{index-BOa-JJtV.css → index-DBe8Xiah.css} +1 -1
- package/web/ui/dist/assets/index-DE18QJMx.js +60 -0
- package/web/ui/dist/index.html +2 -2
- package/web/ui/dist/assets/index-BzA5LgE3.js +0 -60
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.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 Bs={exports:{}},Ln={};/**
|
|
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 fh;function Oy(){if(fh)return Ln;fh=1;var i=Symbol.for("react.transitional.element"),s=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 E in h)E!=="key"&&(m[E]=h[E])}else m=h;return h=m.ref,{$$typeof:i,type:o,key:y,ref:h!==void 0?h:null,props:m}}return Ln.Fragment=s,Ln.jsx=f,Ln.jsxs=f,Ln}var dh;function Dy(){return dh||(dh=1,Bs.exports=Oy()),Bs.exports}var c=Dy(),Ls={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 hh;function wy(){if(hh)return te;hh=1;var i=Symbol.for("react.transitional.element"),s=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"),E=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),C=Symbol.iterator;function G(j){return j===null||typeof j!="object"?null:(j=C&&j[C]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,Y={};function L(j,H,V){this.props=j,this.context=H,this.refs=Y,this.updater=V||w}L.prototype.isReactComponent={},L.prototype.setState=function(j,H){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,H,"setState")},L.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function X(){}X.prototype=L.prototype;function K(j,H,V){this.props=j,this.context=H,this.refs=Y,this.updater=V||w}var k=K.prototype=new X;k.constructor=K,B(k,L.prototype),k.isPureReactComponent=!0;var q=Array.isArray;function $(){}var Z={H:null,A:null,T:null,S:null},Te=Object.prototype.hasOwnProperty;function qe(j,H,V){var W=V.ref;return{$$typeof:i,type:j,key:H,ref:W!==void 0?W:null,props:V}}function Ut(j,H){return qe(j.type,H,j.props)}function gt(j){return typeof j=="object"&&j!==null&&j.$$typeof===i}function We(j){var H={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(V){return H[V]})}var Ht=/\/+/g;function bt(j,H){return typeof j=="object"&&j!==null&&j.key!=null?We(""+j.key):H.toString(36)}function we(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then($,$):(j.status="pending",j.then(function(H){j.status==="pending"&&(j.status="fulfilled",j.value=H)},function(H){j.status==="pending"&&(j.status="rejected",j.reason=H)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,H,V,W,le){var ue=typeof j;(ue==="undefined"||ue==="boolean")&&(j=null);var me=!1;if(j===null)me=!0;else switch(ue){case"bigint":case"string":case"number":me=!0;break;case"object":switch(j.$$typeof){case i:case s:me=!0;break;case T:return me=j._init,O(me(j._payload),H,V,W,le)}}if(me)return le=le(j),me=W===""?"."+bt(j,0):W,q(le)?(V="",me!=null&&(V=me.replace(Ht,"$&/")+"/"),O(le,H,V,"",function(Qa){return Qa})):le!=null&&(gt(le)&&(le=Ut(le,V+(le.key==null||j&&j.key===le.key?"":(""+le.key).replace(Ht,"$&/")+"/")+me)),H.push(le)),1;me=0;var Ie=W===""?".":W+":";if(q(j))for(var Me=0;Me<j.length;Me++)W=j[Me],ue=Ie+bt(W,Me),me+=O(W,H,V,ue,le);else if(Me=G(j),typeof Me=="function")for(j=Me.call(j),Me=0;!(W=j.next()).done;)W=W.value,ue=Ie+bt(W,Me++),me+=O(W,H,V,ue,le);else if(ue==="object"){if(typeof j.then=="function")return O(we(j),H,V,W,le);throw H=String(j),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return me}function Q(j,H,V){if(j==null)return j;var W=[],le=0;return O(j,W,"","",function(ue){return H.call(V,ue,le++)}),W}function ee(j){if(j._status===-1){var H=j._result;H=H(),H.then(function(V){(j._status===0||j._status===-1)&&(j._status=1,j._result=V)},function(V){(j._status===0||j._status===-1)&&(j._status=2,j._result=V)}),j._status===-1&&(j._status=0,j._result=H)}if(j._status===1)return j._result.default;throw j._result}var pe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},xe={map:Q,forEach:function(j,H,V){Q(j,function(){H.apply(this,arguments)},V)},count:function(j){var H=0;return Q(j,function(){H++}),H},toArray:function(j){return Q(j,function(H){return H})||[]},only:function(j){if(!gt(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return te.Activity=g,te.Children=xe,te.Component=L,te.Fragment=f,te.Profiler=h,te.PureComponent=K,te.StrictMode=o,te.Suspense=b,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,te.__COMPILER_RUNTIME={__proto__:null,c:function(j){return Z.H.useMemoCache(j)}},te.cache=function(j){return function(){return j.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(j,H,V){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var W=B({},j.props),le=j.key;if(H!=null)for(ue in H.key!==void 0&&(le=""+H.key),H)!Te.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(W[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)W.children=V;else if(1<ue){for(var me=Array(ue),Ie=0;Ie<ue;Ie++)me[Ie]=arguments[Ie+2];W.children=me}return qe(j.type,le,W)},te.createContext=function(j){return j={$$typeof:y,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:m,_context:j},j},te.createElement=function(j,H,V){var W,le={},ue=null;if(H!=null)for(W in H.key!==void 0&&(ue=""+H.key),H)Te.call(H,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(le[W]=H[W]);var me=arguments.length-2;if(me===1)le.children=V;else if(1<me){for(var Ie=Array(me),Me=0;Me<me;Me++)Ie[Me]=arguments[Me+2];le.children=Ie}if(j&&j.defaultProps)for(W in me=j.defaultProps,me)le[W]===void 0&&(le[W]=me[W]);return qe(j,ue,le)},te.createRef=function(){return{current:null}},te.forwardRef=function(j){return{$$typeof:E,render:j}},te.isValidElement=gt,te.lazy=function(j){return{$$typeof:T,_payload:{_status:-1,_result:j},_init:ee}},te.memo=function(j,H){return{$$typeof:v,type:j,compare:H===void 0?null:H}},te.startTransition=function(j){var H=Z.T,V={};Z.T=V;try{var W=j(),le=Z.S;le!==null&&le(V,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then($,pe)}catch(ue){pe(ue)}finally{H!==null&&V.types!==null&&(H.types=V.types),Z.T=H}},te.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},te.use=function(j){return Z.H.use(j)},te.useActionState=function(j,H,V){return Z.H.useActionState(j,H,V)},te.useCallback=function(j,H){return Z.H.useCallback(j,H)},te.useContext=function(j){return Z.H.useContext(j)},te.useDebugValue=function(){},te.useDeferredValue=function(j,H){return Z.H.useDeferredValue(j,H)},te.useEffect=function(j,H){return Z.H.useEffect(j,H)},te.useEffectEvent=function(j){return Z.H.useEffectEvent(j)},te.useId=function(){return Z.H.useId()},te.useImperativeHandle=function(j,H,V){return Z.H.useImperativeHandle(j,H,V)},te.useInsertionEffect=function(j,H){return Z.H.useInsertionEffect(j,H)},te.useLayoutEffect=function(j,H){return Z.H.useLayoutEffect(j,H)},te.useMemo=function(j,H){return Z.H.useMemo(j,H)},te.useOptimistic=function(j,H){return Z.H.useOptimistic(j,H)},te.useReducer=function(j,H,V){return Z.H.useReducer(j,H,V)},te.useRef=function(j){return Z.H.useRef(j)},te.useState=function(j){return Z.H.useState(j)},te.useSyncExternalStore=function(j,H,V){return Z.H.useSyncExternalStore(j,H,V)},te.useTransition=function(){return Z.H.useTransition()},te.version="19.2.5",te}var mh;function Ws(){return mh||(mh=1,Ls.exports=wy()),Ls.exports}var x=Ws(),qs={exports:{}},qn={},Ys={exports:{}},Gs={};/**
|
|
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 vh;function Uy(){return vh||(vh=1,(function(i){function s(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,j=xe>>>1;pe<j;){var H=2*(pe+1)-1,V=O[H],W=H+1,le=O[W];if(0>h(V,ee))W<xe&&0>h(le,V)?(O[pe]=le,O[W]=ee,pe=W):(O[pe]=V,O[H]=ee,pe=H);else if(W<xe&&0>h(le,ee))O[pe]=le,O[W]=ee,pe=W;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,E=y.now();i.unstable_now=function(){return y.now()-E}}var b=[],v=[],T=1,g=null,C=3,G=!1,w=!1,B=!1,Y=!1,L=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function k(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,s(b,Q);else break;Q=f(v)}}function q(O){if(B=!1,k(O),!w)if(f(b)!==null)w=!0,$||($=!0,We());else{var Q=f(v);Q!==null&&we(q,Q.startTime-O)}}var $=!1,Z=-1,Te=5,qe=-1;function Ut(){return Y?!0:!(i.unstable_now()-qe<Te)}function gt(){if(Y=!1,$){var O=i.unstable_now();qe=O;var Q=!0;try{e:{w=!1,B&&(B=!1,X(Z),Z=-1),G=!0;var ee=C;try{t:{for(k(O),g=f(b);g!==null&&!(g.expirationTime>O&&Ut());){var pe=g.callback;if(typeof pe=="function"){g.callback=null,C=g.priorityLevel;var xe=pe(g.expirationTime<=O);if(O=i.unstable_now(),typeof xe=="function"){g.callback=xe,k(O),Q=!0;break t}g===f(b)&&o(b),k(O)}else o(b);g=f(b)}if(g!==null)Q=!0;else{var j=f(v);j!==null&&we(q,j.startTime-O),Q=!1}}break e}finally{g=null,C=ee,G=!1}Q=void 0}}finally{Q?We():$=!1}}}var We;if(typeof K=="function")We=function(){K(gt)};else if(typeof MessageChannel<"u"){var Ht=new MessageChannel,bt=Ht.port2;Ht.port1.onmessage=gt,We=function(){bt.postMessage(null)}}else We=function(){L(gt,0)};function we(O,Q){Z=L(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 C},i.unstable_next=function(O){switch(C){case 1:case 2:case 3:var Q=3;break;default:Q=C}var ee=C;C=Q;try{return O()}finally{C=ee}},i.unstable_requestPaint=function(){Y=!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=C;C=O;try{return Q()}finally{C=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:T++,callback:Q,priorityLevel:O,startTime:ee,expirationTime:xe,sortIndex:-1},ee>pe?(O.sortIndex=ee,s(v,O),f(b)===null&&O===f(v)&&(B?(X(Z),Z=-1):B=!0,we(q,ee-pe))):(O.sortIndex=xe,s(b,O),w||G||(w=!0,$||($=!0,We()))),O},i.unstable_shouldYield=Ut,i.unstable_wrapCallback=function(O){var Q=C;return function(){var ee=C;C=Q;try{return O.apply(this,arguments)}finally{C=ee}}}})(Gs)),Gs}var yh;function Hy(){return yh||(yh=1,Ys.exports=Uy()),Ys.exports}var ks={exports:{}},Fe={};/**
|
|
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 ph;function By(){if(ph)return Fe;ph=1;var i=Ws();function s(b){var v="https://react.dev/errors/"+b;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)v+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+b+"; 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(s(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(b,v,T){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:g==null?null:""+g,children:b,containerInfo:v,implementation:T}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(b,v){if(b==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Fe.createPortal=function(b,v){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return m(b,v,null,T)},Fe.flushSync=function(b){var v=y.T,T=o.p;try{if(y.T=null,o.p=2,b)return b()}finally{y.T=v,o.p=T,o.d.f()}},Fe.preconnect=function(b,v){typeof b=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(b,v))},Fe.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},Fe.preinit=function(b,v){if(typeof b=="string"&&v&&typeof v.as=="string"){var T=v.as,g=E(T,v.crossOrigin),C=typeof v.integrity=="string"?v.integrity:void 0,G=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;T==="style"?o.d.S(b,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:g,integrity:C,fetchPriority:G}):T==="script"&&o.d.X(b,{crossOrigin:g,integrity:C,fetchPriority:G,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Fe.preinitModule=function(b,v){if(typeof b=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var T=E(v.as,v.crossOrigin);o.d.M(b,{crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(b)},Fe.preload=function(b,v){if(typeof b=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var T=v.as,g=E(T,v.crossOrigin);o.d.L(b,T,{crossOrigin:g,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})}},Fe.preloadModule=function(b,v){if(typeof b=="string")if(v){var T=E(v.as,v.crossOrigin);o.d.m(b,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(b)},Fe.requestFormReset=function(b){o.d.r(b)},Fe.unstable_batchedUpdates=function(b,v){return b(v)},Fe.useFormState=function(b,v,T){return y.H.useFormState(b,v,T)},Fe.useFormStatus=function(){return y.H.useHostTransitionStatus()},Fe.version="19.2.5",Fe}var gh;function Ly(){if(gh)return ks.exports;gh=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(s){console.error(s)}}return i(),ks.exports=By(),ks.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 bh;function qy(){if(bh)return qn;bh=1;var i=Hy(),s=Ws(),f=Ly();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(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function b(e){if(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 b(n),e;if(u===a)return b(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var r=!1,d=n.child;d;){if(d===l){r=!0,l=n,a=u;break}if(d===a){r=!0,a=n,l=u;break}d=d.sibling}if(!r){for(d=u.child;d;){if(d===l){r=!0,l=u,a=n;break}if(d===a){r=!0,a=u,l=n;break}d=d.sibling}if(!r)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 T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,C=Symbol.for("react.element"),G=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),Y=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),K=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),qe=Symbol.for("react.activity"),Ut=Symbol.for("react.memo_cache_sentinel"),gt=Symbol.iterator;function We(e){return e===null||typeof e!="object"?null:(e=gt&&e[gt]||e["@@iterator"],typeof e=="function"?e:null)}var Ht=Symbol.for("react.client.reference");function bt(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 L:return"Profiler";case Y:return"StrictMode";case q:return"Suspense";case $:return"SuspenseList";case qe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case K:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:bt(e.type)||"Memo";case Te:t=e._payload,e=e._init;try{return bt(e(t))}catch{}}return null}var we=Array.isArray,O=s.__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 j(e){return{current:e}}function H(e){0>xe||(e.current=pe[xe],pe[xe]=null,xe--)}function V(e,t){xe++,pe[xe]=e.current,e.current=t}var W=j(null),le=j(null),ue=j(null),me=j(null);function Ie(e,t){switch(V(ue,t),V(le,e),V(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?wd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=wd(t),e=Ud(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(W),V(W,e)}function Me(){H(W),H(le),H(ue)}function Qa(e){e.memoizedState!==null&&V(me,e);var t=W.current,l=Ud(t,e.type);t!==l&&(V(le,e),V(W,l))}function Zn(e){le.current===e&&(H(W),H(le)),me.current===e&&(H(me),wn._currentValue=ee)}var bi,sr;function Ll(e){if(bi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);bi=t&&t[1]||"",sr=-1<l.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+bi+e+sr}var Si=!1;function xi(e,t){if(!e||Si)return"";Si=!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 z=A}Reflect.construct(e,[],U)}else{try{U.call()}catch(A){z=A}e.call(U.prototype)}}else{try{throw Error()}catch(A){z=A}(U=e())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(A){if(A&&z&&typeof A.stack=="string")return[A.stack,z.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(),r=u[0],d=u[1];if(r&&d){var p=r.split(`
|
|
44
|
+
`),N=d.split(`
|
|
45
|
+
`);for(n=a=0;a<p.length&&!p[a].includes("DetermineComponentFrameRoot");)a++;for(;n<N.length&&!N[n].includes("DetermineComponentFrameRoot");)n++;if(a===p.length||n===N.length)for(a=p.length-1,n=N.length-1;1<=a&&0<=n&&p[a]!==N[n];)n--;for(;1<=a&&0<=n;a--,n--)if(p[a]!==N[n]){if(a!==1||n!==1)do if(a--,n--,0>n||p[a]!==N[n]){var M=`
|
|
46
|
+
`+p[a].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=a&&0<=n);break}}}finally{Si=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ll(l):""}function rm(e,t){switch(e.tag){case 26:case 27:case 5:return Ll(e.type);case 16:return Ll("Lazy");case 13:return e.child!==t&&t!==null?Ll("Suspense Fallback"):Ll("Suspense");case 19:return Ll("SuspenseList");case 0:case 15:return xi(e.type,!1);case 11:return xi(e.type.render,!1);case 1:return xi(e.type,!0);case 31:return Ll("Activity");default:return""}}function rr(e){try{var t="",l=null;do t+=rm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var ji=Object.prototype.hasOwnProperty,Ei=i.unstable_scheduleCallback,Ti=i.unstable_cancelCallback,om=i.unstable_shouldYield,fm=i.unstable_requestPaint,st=i.unstable_now,dm=i.unstable_getCurrentPriorityLevel,or=i.unstable_ImmediatePriority,fr=i.unstable_UserBlockingPriority,Kn=i.unstable_NormalPriority,hm=i.unstable_LowPriority,dr=i.unstable_IdlePriority,mm=i.log,vm=i.unstable_setDisableYieldValue,Va=null,rt=null;function dl(e){if(typeof mm=="function"&&vm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Va,e)}catch{}}var ot=Math.clz32?Math.clz32:gm,ym=Math.log,pm=Math.LN2;function gm(e){return e>>>=0,e===0?32:31-(ym(e)/pm|0)|0}var Jn=256,$n=262144,Wn=4194304;function ql(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 Fn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,r=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~u,a!==0?n=ql(a):(r&=d,r!==0?n=ql(r):l||(l=d&~e,l!==0&&(n=ql(l))))):(d=a&~u,d!==0?n=ql(d):r!==0?n=ql(r):l||(l=a&~e,l!==0&&(n=ql(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 Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bm(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 hr(){var e=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),e}function _i(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Sm(e,t,l,a,n,u){var r=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,N=e.hiddenUpdates;for(l=r&~l;0<l;){var M=31-ot(l),U=1<<M;d[M]=0,p[M]=-1;var z=N[M];if(z!==null)for(N[M]=null,M=0;M<z.length;M++){var A=z[M];A!==null&&(A.lane&=-536870913)}l&=~U}a!==0&&mr(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(r&~t))}function mr(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ot(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function vr(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ot(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function yr(e,t){var l=t&-t;return l=(l&42)!==0?1:Ri(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ri(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 Ni(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pr(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:nh(e.type))}function gr(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var hl=Math.random().toString(36).slice(2),Qe="__reactFiber$"+hl,et="__reactProps$"+hl,na="__reactContainer$"+hl,zi="__reactEvents$"+hl,xm="__reactListeners$"+hl,jm="__reactHandles$"+hl,br="__reactResources$"+hl,Ja="__reactMarker$"+hl;function Ai(e){delete e[Qe],delete e[et],delete e[zi],delete e[xm],delete e[jm]}function ua(e){var t=e[Qe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[Qe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=kd(e);e!==null;){if(l=e[Qe])return l;e=kd(e)}return t}e=l,l=e.parentNode}return null}function ia(e){if(e=e[Qe]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $a(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function ca(e){var t=e[br];return t||(t=e[br]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ge(e){e[Ja]=!0}var Sr=new Set,xr={};function Yl(e,t){sa(e,t),sa(e+"Capture",t)}function sa(e,t){for(xr[e]=t,e=0;e<t.length;e++)Sr.add(t[e])}var Em=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]*$"),jr={},Er={};function Tm(e){return ji.call(Er,e)?!0:ji.call(jr,e)?!1:Em.test(e)?Er[e]=!0:(jr[e]=!0,!1)}function In(e,t,l){if(Tm(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 Pn(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 St(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tr(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _m(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(r){l=""+r,u.call(this,r)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(r){l=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ci(e){if(!e._valueTracker){var t=Tr(e)?"checked":"value";e._valueTracker=_m(e,t,""+e[t])}}function _r(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Tr(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function eu(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 Rm=/[\n"\\]/g;function xt(e){return e.replace(Rm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mi(e,t,l,a,n,u,r,d){e.name="",r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.type=r:e.removeAttribute("type"),t!=null?r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+St(t)):e.value!==""+St(t)&&(e.value=""+St(t)):r!=="submit"&&r!=="reset"||e.removeAttribute("value"),t!=null?Oi(e,r,St(t)):l!=null?Oi(e,r,St(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=""+St(d):e.removeAttribute("name")}function Rr(e,t,l,a,n,u,r,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)){Ci(e);return}l=l!=null?""+St(l):"",t=t!=null?""+St(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,r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.name=r),Ci(e)}function Oi(e,t,l){t==="number"&&eu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ra(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=""+St(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 Nr(e,t,l){if(t!=null&&(t=""+St(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+St(l):""}function zr(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(we(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=St(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Ci(e)}function oa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Nm=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 Ar(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||Nm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Cr(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&&Ar(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Ar(e,u,t[u])}function Di(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 zm=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"]]),Am=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tu(e){return Am.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var wi=null;function Ui(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var fa=null,da=null;function Mr(e){var t=ia(e);if(t&&(e=t.stateNode)){var l=e[et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mi(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="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[et]||null;if(!n)throw Error(o(90));Mi(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&&_r(a)}break e;case"textarea":Nr(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ra(e,!!l.multiple,t,!1)}}}var Hi=!1;function Or(e,t,l){if(Hi)return e(t,l);Hi=!0;try{var a=e(t);return a}finally{if(Hi=!1,(fa!==null||da!==null)&&(ku(),fa&&(t=fa,e=da,da=fa=null,Mr(t),e)))for(t=0;t<e.length;t++)Mr(e[t])}}function Wa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[et]||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 Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bi=!1;if(Kt)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Bi=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Bi=!1}var ml=null,Li=null,lu=null;function Dr(){if(lu)return lu;var e,t=Li,l=t.length,a,n="value"in ml?ml.value:ml.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var r=l-e;for(a=1;a<=r&&t[l-a]===n[u-a];a++);return lu=n.slice(e,1<a?1-a:void 0)}function au(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 nu(){return!0}function wr(){return!1}function tt(e){function t(l,a,n,u,r){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=r,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)?nu:wr,this.isPropagationStopped=wr,this}return g(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=nu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),t}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uu=tt(Gl),Ia=g({},Gl,{view:0,detail:0}),Cm=tt(Ia),qi,Yi,Pa,iu=g({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ki,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!==Pa&&(Pa&&e.type==="mousemove"?(qi=e.screenX-Pa.screenX,Yi=e.screenY-Pa.screenY):Yi=qi=0,Pa=e),qi)},movementY:function(e){return"movementY"in e?e.movementY:Yi}}),Ur=tt(iu),Mm=g({},iu,{dataTransfer:0}),Om=tt(Mm),Dm=g({},Ia,{relatedTarget:0}),Gi=tt(Dm),wm=g({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),Um=tt(wm),Hm=g({},Gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Bm=tt(Hm),Lm=g({},Gl,{data:0}),Hr=tt(Lm),qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ym={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"},Gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function km(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gm[e])?!!t[e]:!1}function ki(){return km}var Xm=g({},Ia,{key:function(e){if(e.key){var t=qm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=au(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ym[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ki,charCode:function(e){return e.type==="keypress"?au(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?au(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qm=tt(Xm),Vm=g({},iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Br=tt(Vm),Zm=g({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ki}),Km=tt(Zm),Jm=g({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),$m=tt(Jm),Wm=g({},iu,{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}),Fm=tt(Wm),Im=g({},Gl,{newState:0,oldState:0}),Pm=tt(Im),ev=[9,13,27,32],Xi=Kt&&"CompositionEvent"in window,en=null;Kt&&"documentMode"in document&&(en=document.documentMode);var tv=Kt&&"TextEvent"in window&&!en,Lr=Kt&&(!Xi||en&&8<en&&11>=en),qr=" ",Yr=!1;function Gr(e,t){switch(e){case"keyup":return ev.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kr(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function lv(e,t){switch(e){case"compositionend":return kr(t);case"keypress":return t.which!==32?null:(Yr=!0,qr);case"textInput":return e=t.data,e===qr&&Yr?null:e;default:return null}}function av(e,t){if(ha)return e==="compositionend"||!Xi&&Gr(e,t)?(e=Dr(),lu=Li=ml=null,ha=!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 Lr&&t.locale!=="ko"?null:t.data;default:return null}}var nv={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 Xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nv[e.type]:t==="textarea"}function Qr(e,t,l,a){fa?da?da.push(a):da=[a]:fa=a,t=$u(t,"onChange"),0<t.length&&(l=new uu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var tn=null,ln=null;function uv(e){zd(e,0)}function cu(e){var t=$a(e);if(_r(t))return e}function Vr(e,t){if(e==="change")return t}var Zr=!1;if(Kt){var Qi;if(Kt){var Vi="oninput"in document;if(!Vi){var Kr=document.createElement("div");Kr.setAttribute("oninput","return;"),Vi=typeof Kr.oninput=="function"}Qi=Vi}else Qi=!1;Zr=Qi&&(!document.documentMode||9<document.documentMode)}function Jr(){tn&&(tn.detachEvent("onpropertychange",$r),ln=tn=null)}function $r(e){if(e.propertyName==="value"&&cu(ln)){var t=[];Qr(t,ln,e,Ui(e)),Or(uv,t)}}function iv(e,t,l){e==="focusin"?(Jr(),tn=t,ln=l,tn.attachEvent("onpropertychange",$r)):e==="focusout"&&Jr()}function cv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cu(ln)}function sv(e,t){if(e==="click")return cu(t)}function rv(e,t){if(e==="input"||e==="change")return cu(t)}function ov(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ft=typeof Object.is=="function"?Object.is:ov;function an(e,t){if(ft(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(!ji.call(t,n)||!ft(e[n],t[n]))return!1}return!0}function Wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fr(e,t){var l=Wr(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=Wr(l)}}function Ir(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ir(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=eu(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=eu(e.document)}return t}function Zi(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 fv=Kt&&"documentMode"in document&&11>=document.documentMode,ma=null,Ki=null,nn=null,Ji=!1;function eo(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ji||ma==null||ma!==eu(a)||(a=ma,"selectionStart"in a&&Zi(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}),nn&&an(nn,a)||(nn=a,a=$u(Ki,"onSelect"),0<a.length&&(t=new uu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ma)))}function kl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var va={animationend:kl("Animation","AnimationEnd"),animationiteration:kl("Animation","AnimationIteration"),animationstart:kl("Animation","AnimationStart"),transitionrun:kl("Transition","TransitionRun"),transitionstart:kl("Transition","TransitionStart"),transitioncancel:kl("Transition","TransitionCancel"),transitionend:kl("Transition","TransitionEnd")},$i={},to={};Kt&&(to=document.createElement("div").style,"AnimationEvent"in window||(delete va.animationend.animation,delete va.animationiteration.animation,delete va.animationstart.animation),"TransitionEvent"in window||delete va.transitionend.transition);function Xl(e){if($i[e])return $i[e];if(!va[e])return e;var t=va[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in to)return $i[e]=t[l];return e}var lo=Xl("animationend"),ao=Xl("animationiteration"),no=Xl("animationstart"),dv=Xl("transitionrun"),hv=Xl("transitionstart"),mv=Xl("transitioncancel"),uo=Xl("transitionend"),io=new Map,Wi="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(" ");Wi.push("scrollEnd");function Mt(e,t){io.set(e,t),Yl(t,[e])}var su=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)},jt=[],ya=0,Fi=0;function ru(){for(var e=ya,t=Fi=ya=0;t<e;){var l=jt[t];jt[t++]=null;var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var u=jt[t];if(jt[t++]=null,a!==null&&n!==null){var r=a.pending;r===null?n.next=n:(n.next=r.next,r.next=n),a.pending=n}u!==0&&co(l,n,u)}}function ou(e,t,l,a){jt[ya++]=e,jt[ya++]=t,jt[ya++]=l,jt[ya++]=a,Fi|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Ii(e,t,l,a){return ou(e,t,l,a),fu(e)}function Ql(e,t){return ou(e,null,null,t),fu(e)}function co(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-ot(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function fu(e){if(50<Nn)throw Nn=0,cs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var pa={};function vv(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 dt(e,t,l,a){return new vv(e,t,l,a)}function Pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jt(e,t){var l=e.alternate;return l===null?(l=dt(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 so(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 du(e,t,l,a,n,u){var r=0;if(a=e,typeof e=="function")Pi(e)&&(r=1);else if(typeof e=="string")r=Sy(e,l,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case qe:return e=dt(31,l,t,n),e.elementType=qe,e.lanes=u,e;case B:return Vl(l.children,n,u,t);case Y:r=8,n|=24;break;case L:return e=dt(12,l,t,n|2),e.elementType=L,e.lanes=u,e;case q:return e=dt(13,l,t,n),e.elementType=q,e.lanes=u,e;case $:return e=dt(19,l,t,n),e.elementType=$,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:r=10;break e;case X:r=9;break e;case k:r=11;break e;case Z:r=14;break e;case Te:r=16,a=null;break e}r=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=dt(r,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Vl(e,t,l,a){return e=dt(7,e,a,t),e.lanes=l,e}function ec(e,t,l){return e=dt(6,e,null,t),e.lanes=l,e}function ro(e){var t=dt(18,null,null,0);return t.stateNode=e,t}function tc(e,t,l){return t=dt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var oo=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var l=oo.get(e);return l!==void 0?l:(t={value:e,source:t,stack:rr(t)},oo.set(e,t),t)}return{value:e,source:t,stack:rr(t)}}var ga=[],ba=0,hu=null,un=0,Tt=[],_t=0,vl=null,Bt=1,Lt="";function $t(e,t){ga[ba++]=un,ga[ba++]=hu,hu=e,un=t}function fo(e,t,l){Tt[_t++]=Bt,Tt[_t++]=Lt,Tt[_t++]=vl,vl=e;var a=Bt;e=Lt;var n=32-ot(a)-1;a&=~(1<<n),l+=1;var u=32-ot(t)+n;if(30<u){var r=n-n%5;u=(a&(1<<r)-1).toString(32),a>>=r,n-=r,Bt=1<<32-ot(t)+n|l<<n|a,Lt=u+e}else Bt=1<<u|l<<n|a,Lt=e}function lc(e){e.return!==null&&($t(e,1),fo(e,1,0))}function ac(e){for(;e===hu;)hu=ga[--ba],ga[ba]=null,un=ga[--ba],ga[ba]=null;for(;e===vl;)vl=Tt[--_t],Tt[_t]=null,Lt=Tt[--_t],Tt[_t]=null,Bt=Tt[--_t],Tt[_t]=null}function ho(e,t){Tt[_t++]=Bt,Tt[_t++]=Lt,Tt[_t++]=vl,Bt=t.id,Lt=t.overflow,vl=e}var Ve=null,_e=null,oe=!1,yl=null,Rt=!1,nc=Error(o(519));function pl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(Et(t,e)),nc}function mo(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Qe]=e,t[et]=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<An.length;l++)ce(An[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),Rr(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),zr(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||Od(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=Zt),t=!0):t=!1,t||pl(e,!0)}function vo(e){for(Ve=e.return;Ve;)switch(Ve.tag){case 5:case 31:case 13:Rt=!1;return;case 27:case 3:Rt=!0;return;default:Ve=Ve.return}}function Sa(e){if(e!==Ve)return!1;if(!oe)return vo(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")||js(e.type,e.memoizedProps)),l=!l),l&&_e&&pl(e),vo(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=Gd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));_e=Gd(e)}else t===27?(t=_e,Ml(e.type)?(e=Ns,Ns=null,_e=e):_e=t):_e=Ve?zt(e.stateNode.nextSibling):null;return!0}function Zl(){_e=Ve=null,oe=!1}function uc(){var e=yl;return e!==null&&(ut===null?ut=e:ut.push.apply(ut,e),yl=null),e}function cn(e){yl===null?yl=[e]:yl.push(e)}var ic=j(null),Kl=null,Wt=null;function gl(e,t,l){V(ic,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=ic.current,H(ic)}function cc(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 sc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var r=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),cc(u.return,l,e),a||(r=null);break e}u=d.next}}else if(n.tag===18){if(r=n.return,r===null)throw Error(o(341));r.lanes|=l,u=r.alternate,u!==null&&(u.lanes|=l),cc(r,l,e),r=null}else r=n.child;if(r!==null)r.return=n;else for(r=n;r!==null;){if(r===e){r=null;break}if(n=r.sibling,n!==null){n.return=r.return,r=n;break}r=r.return}n=r}}function xa(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 r=n.alternate;if(r===null)throw Error(o(387));if(r=r.memoizedProps,r!==null){var d=n.type;ft(n.pendingProps.value,r.value)||(e!==null?e.push(d):e=[d])}}else if(n===me.current){if(r=n.alternate,r===null)throw Error(o(387));r.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(wn):e=[wn])}n=n.return}e!==null&&sc(t,e,l,a),t.flags|=262144}function mu(e){for(e=e.firstContext;e!==null;){if(!ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jl(e){Kl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return yo(Kl,e)}function vu(e,t){return Kl===null&&Jl(e),yo(e,t)}function yo(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var yv=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()})}},pv=i.unstable_scheduleCallback,gv=i.unstable_NormalPriority,Ue={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rc(){return{controller:new yv,data:new Map,refCount:0}}function sn(e){e.refCount--,e.refCount===0&&pv(gv,function(){e.controller.abort()})}var rn=null,oc=0,ja=0,Ea=null;function bv(e,t){if(rn===null){var l=rn=[];oc=0,ja=hs(),Ea={status:"pending",value:void 0,then:function(a){l.push(a)}}}return oc++,t.then(po,po),t}function po(){if(--oc===0&&rn!==null){Ea!==null&&(Ea.status="fulfilled");var e=rn;rn=null,ja=0,Ea=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Sv(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 go=O.S;O.S=function(e,t){ld=st(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&bv(e,t),go!==null&&go(e,t)};var $l=j(null);function fc(){var e=$l.current;return e!==null?e:je.pooledCache}function yu(e,t){t===null?V($l,$l.current):V($l,t.pool)}function bo(){var e=fc();return e===null?null:{parent:Ue._currentValue,pool:e}}var Ta=Error(o(460)),dc=Error(o(474)),pu=Error(o(542)),gu={then:function(){}};function So(e){return e=e.status,e==="fulfilled"||e==="rejected"}function xo(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eo(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);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,Eo(e),e}throw Fl=t,Ta}}function Wl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,Ta):l}}var Fl=null;function jo(){if(Fl===null)throw Error(o(459));var e=Fl;return Fl=null,e}function Eo(e){if(e===Ta||e===pu)throw Error(o(483))}var _a=null,on=0;function bu(e){var t=on;return on+=1,_a===null&&(_a=[]),xo(_a,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Su(e,t){throw t.$$typeof===C?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function To(e){function t(_,S){if(e){var R=_.deletions;R===null?(_.deletions=[S],_.flags|=16):R.push(S)}}function l(_,S){if(!e)return null;for(;S!==null;)t(_,S),S=S.sibling;return null}function a(_){for(var S=new Map;_!==null;)_.key!==null?S.set(_.key,_):S.set(_.index,_),_=_.sibling;return S}function n(_,S){return _=Jt(_,S),_.index=0,_.sibling=null,_}function u(_,S,R){return _.index=R,e?(R=_.alternate,R!==null?(R=R.index,R<S?(_.flags|=67108866,S):R):(_.flags|=67108866,S)):(_.flags|=1048576,S)}function r(_){return e&&_.alternate===null&&(_.flags|=67108866),_}function d(_,S,R,D){return S===null||S.tag!==6?(S=ec(R,_.mode,D),S.return=_,S):(S=n(S,R),S.return=_,S)}function p(_,S,R,D){var I=R.type;return I===B?M(_,S,R.props.children,D,R.key):S!==null&&(S.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Te&&Wl(I)===S.type)?(S=n(S,R.props),fn(S,R),S.return=_,S):(S=du(R.type,R.key,R.props,null,_.mode,D),fn(S,R),S.return=_,S)}function N(_,S,R,D){return S===null||S.tag!==4||S.stateNode.containerInfo!==R.containerInfo||S.stateNode.implementation!==R.implementation?(S=tc(R,_.mode,D),S.return=_,S):(S=n(S,R.children||[]),S.return=_,S)}function M(_,S,R,D,I){return S===null||S.tag!==7?(S=Vl(R,_.mode,D,I),S.return=_,S):(S=n(S,R),S.return=_,S)}function U(_,S,R){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=ec(""+S,_.mode,R),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case G:return R=du(S.type,S.key,S.props,null,_.mode,R),fn(R,S),R.return=_,R;case w:return S=tc(S,_.mode,R),S.return=_,S;case Te:return S=Wl(S),U(_,S,R)}if(we(S)||We(S))return S=Vl(S,_.mode,R,null),S.return=_,S;if(typeof S.then=="function")return U(_,bu(S),R);if(S.$$typeof===K)return U(_,vu(_,S),R);Su(_,S)}return null}function z(_,S,R,D){var I=S!==null?S.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return I!==null?null:d(_,S,""+R,D);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case G:return R.key===I?p(_,S,R,D):null;case w:return R.key===I?N(_,S,R,D):null;case Te:return R=Wl(R),z(_,S,R,D)}if(we(R)||We(R))return I!==null?null:M(_,S,R,D,null);if(typeof R.then=="function")return z(_,S,bu(R),D);if(R.$$typeof===K)return z(_,S,vu(_,R),D);Su(_,R)}return null}function A(_,S,R,D,I){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return _=_.get(R)||null,d(S,_,""+D,I);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case G:return _=_.get(D.key===null?R:D.key)||null,p(S,_,D,I);case w:return _=_.get(D.key===null?R:D.key)||null,N(S,_,D,I);case Te:return D=Wl(D),A(_,S,R,D,I)}if(we(D)||We(D))return _=_.get(R)||null,M(S,_,D,I,null);if(typeof D.then=="function")return A(_,S,R,bu(D),I);if(D.$$typeof===K)return A(_,S,R,vu(S,D),I);Su(S,D)}return null}function J(_,S,R,D){for(var I=null,fe=null,F=S,ne=S=0,re=null;F!==null&&ne<R.length;ne++){F.index>ne?(re=F,F=null):re=F.sibling;var de=z(_,F,R[ne],D);if(de===null){F===null&&(F=re);break}e&&F&&de.alternate===null&&t(_,F),S=u(de,S,ne),fe===null?I=de:fe.sibling=de,fe=de,F=re}if(ne===R.length)return l(_,F),oe&&$t(_,ne),I;if(F===null){for(;ne<R.length;ne++)F=U(_,R[ne],D),F!==null&&(S=u(F,S,ne),fe===null?I=F:fe.sibling=F,fe=F);return oe&&$t(_,ne),I}for(F=a(F);ne<R.length;ne++)re=A(F,_,ne,R[ne],D),re!==null&&(e&&re.alternate!==null&&F.delete(re.key===null?ne:re.key),S=u(re,S,ne),fe===null?I=re:fe.sibling=re,fe=re);return e&&F.forEach(function(Hl){return t(_,Hl)}),oe&&$t(_,ne),I}function P(_,S,R,D){if(R==null)throw Error(o(151));for(var I=null,fe=null,F=S,ne=S=0,re=null,de=R.next();F!==null&&!de.done;ne++,de=R.next()){F.index>ne?(re=F,F=null):re=F.sibling;var Hl=z(_,F,de.value,D);if(Hl===null){F===null&&(F=re);break}e&&F&&Hl.alternate===null&&t(_,F),S=u(Hl,S,ne),fe===null?I=Hl:fe.sibling=Hl,fe=Hl,F=re}if(de.done)return l(_,F),oe&&$t(_,ne),I;if(F===null){for(;!de.done;ne++,de=R.next())de=U(_,de.value,D),de!==null&&(S=u(de,S,ne),fe===null?I=de:fe.sibling=de,fe=de);return oe&&$t(_,ne),I}for(F=a(F);!de.done;ne++,de=R.next())de=A(F,_,ne,de.value,D),de!==null&&(e&&de.alternate!==null&&F.delete(de.key===null?ne:de.key),S=u(de,S,ne),fe===null?I=de:fe.sibling=de,fe=de);return e&&F.forEach(function(My){return t(_,My)}),oe&&$t(_,ne),I}function Se(_,S,R,D){if(typeof R=="object"&&R!==null&&R.type===B&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case G:e:{for(var I=R.key;S!==null;){if(S.key===I){if(I=R.type,I===B){if(S.tag===7){l(_,S.sibling),D=n(S,R.props.children),D.return=_,_=D;break e}}else if(S.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Te&&Wl(I)===S.type){l(_,S.sibling),D=n(S,R.props),fn(D,R),D.return=_,_=D;break e}l(_,S);break}else t(_,S);S=S.sibling}R.type===B?(D=Vl(R.props.children,_.mode,D,R.key),D.return=_,_=D):(D=du(R.type,R.key,R.props,null,_.mode,D),fn(D,R),D.return=_,_=D)}return r(_);case w:e:{for(I=R.key;S!==null;){if(S.key===I)if(S.tag===4&&S.stateNode.containerInfo===R.containerInfo&&S.stateNode.implementation===R.implementation){l(_,S.sibling),D=n(S,R.children||[]),D.return=_,_=D;break e}else{l(_,S);break}else t(_,S);S=S.sibling}D=tc(R,_.mode,D),D.return=_,_=D}return r(_);case Te:return R=Wl(R),Se(_,S,R,D)}if(we(R))return J(_,S,R,D);if(We(R)){if(I=We(R),typeof I!="function")throw Error(o(150));return R=I.call(R),P(_,S,R,D)}if(typeof R.then=="function")return Se(_,S,bu(R),D);if(R.$$typeof===K)return Se(_,S,vu(_,R),D);Su(_,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,S!==null&&S.tag===6?(l(_,S.sibling),D=n(S,R),D.return=_,_=D):(l(_,S),D=ec(R,_.mode,D),D.return=_,_=D),r(_)):l(_,S)}return function(_,S,R,D){try{on=0;var I=Se(_,S,R,D);return _a=null,I}catch(F){if(F===Ta||F===pu)throw F;var fe=dt(29,F,null,_.mode);return fe.lanes=D,fe.return=_,fe}finally{}}}var Il=To(!0),_o=To(!1),bl=!1;function hc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mc(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 Sl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(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=fu(e),co(e,null,l),t}return ou(e,a,t,l),fu(e)}function dn(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,vr(e,l)}}function vc(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 r={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=r:u=u.next=r,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 yc=!1;function hn(){if(yc){var e=Ea;if(e!==null)throw e}}function mn(e,t,l,a){yc=!1;var n=e.updateQueue;bl=!1;var u=n.firstBaseUpdate,r=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var p=d,N=p.next;p.next=null,r===null?u=N:r.next=N,r=p;var M=e.alternate;M!==null&&(M=M.updateQueue,d=M.lastBaseUpdate,d!==r&&(d===null?M.firstBaseUpdate=N:d.next=N,M.lastBaseUpdate=p))}if(u!==null){var U=n.baseState;r=0,M=N=p=null,d=u;do{var z=d.lane&-536870913,A=z!==d.lane;if(A?(se&z)===z:(a&z)===z){z!==0&&z===ja&&(yc=!0),M!==null&&(M=M.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var J=e,P=d;z=t;var Se=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){U=J.call(Se,U,z);break e}U=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,z=typeof J=="function"?J.call(Se,U,z):J,z==null)break e;U=g({},U,z);break e;case 2:bl=!0}}z=d.callback,z!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[z]:A.push(z))}else A={lane:z,tag:d.tag,payload:d.payload,callback:d.callback,next:null},M===null?(N=M=A,p=U):M=M.next=A,r|=z;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);M===null&&(p=U),n.baseState=p,n.firstBaseUpdate=N,n.lastBaseUpdate=M,u===null&&(n.shared.lanes=0),Rl|=r,e.lanes=r,e.memoizedState=U}}function Ro(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function No(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ro(l[e],t)}var Ra=j(null),xu=j(0);function zo(e,t){e=il,V(xu,e),V(Ra,t),il=e|t.baseLanes}function pc(){V(xu,il),V(Ra,Ra.current)}function gc(){il=xu.current,H(Ra),H(xu)}var ht=j(null),Nt=null;function jl(e){var t=e.alternate;V(Oe,Oe.current&1),V(ht,e),Nt===null&&(t===null||Ra.current!==null||t.memoizedState!==null)&&(Nt=e)}function bc(e){V(Oe,Oe.current),V(ht,e),Nt===null&&(Nt=e)}function Ao(e){e.tag===22?(V(Oe,Oe.current),V(ht,e),Nt===null&&(Nt=e)):El()}function El(){V(Oe,Oe.current),V(ht,ht.current)}function mt(e){H(ht),Nt===e&&(Nt=null),H(Oe)}var Oe=j(0);function ju(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||_s(l)||Rs(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 It=0,ae=null,ge=null,He=null,Eu=!1,Na=!1,Pl=!1,Tu=0,vn=0,za=null,xv=0;function Ae(){throw Error(o(321))}function Sc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ft(e[l],t[l]))return!1;return!0}function xc(e,t,l,a,n,u){return It=u,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?hf:Hc,Pl=!1,u=l(a,n),Pl=!1,Na&&(u=Mo(t,l,a,n)),Co(e),u}function Co(e){O.H=gn;var t=ge!==null&&ge.next!==null;if(It=0,He=ge=ae=null,Eu=!1,vn=0,za=null,t)throw Error(o(300));e===null||Be||(e=e.dependencies,e!==null&&mu(e)&&(Be=!0))}function Mo(e,t,l,a){ae=e;var n=0;do{if(Na&&(za=null),vn=0,Na=!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=mf,u=t(l,a)}while(Na);return u}function jv(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?yn(t):t,e=e.useState()[0],(ge!==null?ge.memoizedState:null)!==e&&(ae.flags|=1024),t}function jc(){var e=Tu!==0;return Tu=0,e}function Ec(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Tc(e){if(Eu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Eu=!1}It=0,He=ge=ae=null,Na=!1,vn=Tu=0,za=null}function Pe(){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 _u(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yn(e){var t=vn;return vn+=1,za===null&&(za=[]),e=xo(za,e,t),t=ae,(He===null?t.memoizedState:He.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?hf:Hc),e}function Ru(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yn(e);if(e.$$typeof===K)return Ze(e)}throw Error(o(438,String(e)))}function _c(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=_u(),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]=Ut;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=De();return Rc(t,ge,e)}function Rc(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 r=n.next;n.next=u.next,u.next=r}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var d=r=null,p=null,N=t,M=!1;do{var U=N.lane&-536870913;if(U!==N.lane?(se&U)===U:(It&U)===U){var z=N.revertLane;if(z===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),U===ja&&(M=!0);else if((It&z)===z){N=N.next,z===ja&&(M=!0);continue}else U={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},p===null?(d=p=U,r=u):p=p.next=U,ae.lanes|=z,Rl|=z;U=N.action,Pl&&l(u,U),u=N.hasEagerState?N.eagerState:l(u,U)}else z={lane:U,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},p===null?(d=p=z,r=u):p=p.next=z,ae.lanes|=U,Rl|=U;N=N.next}while(N!==null&&N!==t);if(p===null?r=u:p.next=d,!ft(u,e.memoizedState)&&(Be=!0,M&&(l=Ea,l!==null)))throw l;e.memoizedState=u,e.baseState=r,e.baseQueue=p,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Nc(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 r=n=n.next;do u=e(u,r.action),r=r.next;while(r!==n);ft(u,t.memoizedState)||(Be=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function Oo(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 r=!ft((ge||n).memoizedState,l);if(r&&(n.memoizedState=l,Be=!0),n=n.queue,Cc(Uo.bind(null,a,n,e),[e]),n.getSnapshot!==t||r||He!==null&&He.memoizedState.tag&1){if(a.flags|=2048,Aa(9,{destroy:void 0},wo.bind(null,a,n,l,t),null),je===null)throw Error(o(349));u||(It&127)!==0||Do(a,t,l)}return l}function Do(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ae.updateQueue,t===null?(t=_u(),ae.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wo(e,t,l,a){t.value=l,t.getSnapshot=a,Ho(t)&&Bo(e)}function Uo(e,t,l){return l(function(){Ho(t)&&Bo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ft(e,l)}catch{return!0}}function Bo(e){var t=Ql(e,2);t!==null&&it(t,e,2)}function zc(e){var t=Pe();if(typeof e=="function"){var l=e;if(e=l(),Pl){dl(!0);try{l()}finally{dl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function Lo(e,t,l,a){return e.baseState=l,Rc(e,ge,typeof a=="function"?a:Pt)}function Ev(e,t,l,a,n){if(Cu(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(r){u.listeners.push(r)}};O.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,qo(t,u)):(u.next=l.next,t.pending=l.next=u)}}function qo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=O.T,r={};O.T=r;try{var d=l(n,a),p=O.S;p!==null&&p(r,d),Yo(e,t,d)}catch(N){Ac(e,t,N)}finally{u!==null&&r.types!==null&&(u.types=r.types),O.T=u}}else try{u=l(n,a),Yo(e,t,u)}catch(N){Ac(e,t,N)}}function Yo(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Go(e,t,a)},function(a){return Ac(e,t,a)}):Go(e,t,l)}function Go(e,t,l){t.status="fulfilled",t.value=l,ko(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,qo(e,l)))}function Ac(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,ko(t),t=t.next;while(t!==a)}e.action=null}function ko(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Xo(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=Rt;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}}pl(a)}a=!1}a&&(t=l[0])}}return l=Pe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:t},l.queue=a,l=of.bind(null,ae,a),a.dispatch=l,a=zc(!1),u=Uc.bind(null,ae,!1,a.queue),a=Pe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Ev.bind(null,ae,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Vo(e){var t=De();return Zo(t,ge,e)}function Zo(e,t,l){if(t=Rc(e,t,Xo)[0],e=Nu(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=yn(t)}catch(r){throw r===Ta?pu:r}else a=t;t=De();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(ae.flags|=2048,Aa(9,{destroy:void 0},Tv.bind(null,n,l),null)),[a,u,e]}function Tv(e,t){e.action=t}function Ko(e){var t=De(),l=ge;if(l!==null)return Zo(t,l,e);De(),t=t.memoizedState,l=De();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Aa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ae.updateQueue,t===null&&(t=_u(),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 Jo(){return De().memoizedState}function zu(e,t,l,a){var n=Pe();ae.flags|=e,n.memoizedState=Aa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Au(e,t,l,a){var n=De();a=a===void 0?null:a;var u=n.memoizedState.inst;ge!==null&&a!==null&&Sc(a,ge.memoizedState.deps)?n.memoizedState=Aa(t,u,l,a):(ae.flags|=e,n.memoizedState=Aa(1|t,u,l,a))}function $o(e,t){zu(8390656,8,e,t)}function Cc(e,t){Au(2048,8,e,t)}function _v(e){ae.flags|=4;var t=ae.updateQueue;if(t===null)t=_u(),ae.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Wo(e){var t=De().memoizedState;return _v({ref:t,nextImpl:e}),function(){if((he&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Fo(e,t){return Au(4,2,e,t)}function Io(e,t){return Au(4,4,e,t)}function Po(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 ef(e,t,l){l=l!=null?l.concat([e]):null,Au(4,4,Po.bind(null,t,e),l)}function Mc(){}function tf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Sc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function lf(e,t){var l=De();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Sc(t,a[1]))return a[0];if(a=e(),Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a}function Oc(e,t,l){return l===void 0||(It&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=nd(),ae.lanes|=e,Rl|=e,l)}function af(e,t,l,a){return ft(l,t)?l:Ra.current!==null?(e=Oc(e,l,a),ft(e,t)||(Be=!0),e):(It&42)===0||(It&1073741824)!==0&&(se&261930)===0?(Be=!0,e.memoizedState=l):(e=nd(),ae.lanes|=e,Rl|=e,t)}function nf(e,t,l,a,n){var u=Q.p;Q.p=u!==0&&8>u?u:8;var r=O.T,d={};O.T=d,Uc(e,!1,t,l);try{var p=n(),N=O.S;if(N!==null&&N(d,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var M=Sv(p,a);pn(e,t,M,pt(e))}else pn(e,t,a,pt(e))}catch(U){pn(e,t,{then:function(){},status:"rejected",reason:U},pt())}finally{Q.p=u,r!==null&&d.types!==null&&(r.types=d.types),O.T=r}}function Rv(){}function Dc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=uf(e).queue;nf(e,n,t,ee,l===null?Rv:function(){return cf(e),l(a)})}function uf(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:Pt,lastRenderedState:ee},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function cf(e){var t=uf(e);t.next===null&&(t=e.alternate.memoizedState),pn(e,t.next.queue,{},pt())}function wc(){return Ze(wn)}function sf(){return De().memoizedState}function rf(){return De().memoizedState}function Nv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=pt();e=Sl(l);var a=xl(t,e,l);a!==null&&(it(a,t,l),dn(a,t,l)),t={cache:rc()},e.payload=t;return}t=t.return}}function zv(e,t,l){var a=pt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Cu(e)?ff(t,l):(l=Ii(e,t,l,a),l!==null&&(it(l,e,a),df(l,t,a)))}function of(e,t,l){var a=pt();pn(e,t,l,a)}function pn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Cu(e))ff(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var r=t.lastRenderedState,d=u(r,l);if(n.hasEagerState=!0,n.eagerState=d,ft(d,r))return ou(e,t,n,0),je===null&&ru(),!1}catch{}finally{}if(l=Ii(e,t,n,a),l!==null)return it(l,e,a),df(l,t,a),!0}return!1}function Uc(e,t,l,a){if(a={lane:2,revertLane:hs(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Cu(e)){if(t)throw Error(o(479))}else t=Ii(e,l,a,2),t!==null&&it(t,e,2)}function Cu(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function ff(e,t){Na=Eu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function df(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,vr(e,l)}}var gn={readContext:Ze,use:Ru,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};gn.useEffectEvent=Ae;var hf={readContext:Ze,use:Ru,useCallback:function(e,t){return Pe().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:$o,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,zu(4194308,4,Po.bind(null,t,e),l)},useLayoutEffect:function(e,t){return zu(4194308,4,e,t)},useInsertionEffect:function(e,t){zu(4,2,e,t)},useMemo:function(e,t){var l=Pe();t=t===void 0?null:t;var a=e();if(Pl){dl(!0);try{e()}finally{dl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Pe();if(l!==void 0){var n=l(t);if(Pl){dl(!0);try{l(t)}finally{dl(!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=zv.bind(null,ae,e),[a.memoizedState,e]},useRef:function(e){var t=Pe();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,l=of.bind(null,ae,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=Pe();return Oc(l,e,t)},useTransition:function(){var e=zc(!1);return e=nf.bind(null,ae,e.queue,!0,!1),Pe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ae,n=Pe();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||Do(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,$o(Uo.bind(null,a,u,e),[e]),a.flags|=2048,Aa(9,{destroy:void 0},wo.bind(null,a,u,l,t),null),l},useId:function(){var e=Pe(),t=je.identifierPrefix;if(oe){var l=Lt,a=Bt;l=(a&~(1<<32-ot(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Tu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=xv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wc,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Pe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Uc.bind(null,ae,!0,l),l.dispatch=t,[e,t]},useMemoCache:_c,useCacheRefresh:function(){return Pe().memoizedState=Nv.bind(null,ae)},useEffectEvent:function(e){var t=Pe(),l={impl:e};return t.memoizedState=l,function(){if((he&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Hc={readContext:Ze,use:Ru,useCallback:tf,useContext:Ze,useEffect:Cc,useImperativeHandle:ef,useInsertionEffect:Fo,useLayoutEffect:Io,useMemo:lf,useReducer:Nu,useRef:Jo,useState:function(){return Nu(Pt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=De();return af(l,ge.memoizedState,e,t)},useTransition:function(){var e=Nu(Pt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:yn(e),t]},useSyncExternalStore:Oo,useId:sf,useHostTransitionStatus:wc,useFormState:Vo,useActionState:Vo,useOptimistic:function(e,t){var l=De();return Lo(l,ge,e,t)},useMemoCache:_c,useCacheRefresh:rf};Hc.useEffectEvent=Wo;var mf={readContext:Ze,use:Ru,useCallback:tf,useContext:Ze,useEffect:Cc,useImperativeHandle:ef,useInsertionEffect:Fo,useLayoutEffect:Io,useMemo:lf,useReducer:Nc,useRef:Jo,useState:function(){return Nc(Pt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=De();return ge===null?Oc(l,e,t):af(l,ge.memoizedState,e,t)},useTransition:function(){var e=Nc(Pt)[0],t=De().memoizedState;return[typeof e=="boolean"?e:yn(e),t]},useSyncExternalStore:Oo,useId:sf,useHostTransitionStatus:wc,useFormState:Ko,useActionState:Ko,useOptimistic:function(e,t){var l=De();return ge!==null?Lo(l,ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:_c,useCacheRefresh:rf};mf.useEffectEvent=Wo;function Bc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Lc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=pt(),n=Sl(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(it(t,e,a),dn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=pt(),n=Sl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(it(t,e,a),dn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=pt(),a=Sl(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(it(t,e,l),dn(t,e,l))}};function vf(e,t,l,a,n,u,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,r):t.prototype&&t.prototype.isPureReactComponent?!an(l,a)||!an(n,u):!0}function yf(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&&Lc.enqueueReplaceState(t,t.state,null)}function ea(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=g({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function pf(e){su(e)}function gf(e){console.error(e)}function bf(e){su(e)}function Mu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Sf(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 qc(e,t,l){return l=Sl(l),l.tag=3,l.payload={element:null},l.callback=function(){Mu(e,t)},l}function xf(e){return e=Sl(e),e.tag=3,e}function jf(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(){Sf(t,l,a)}}var r=l.stateNode;r!==null&&typeof r.componentDidCatch=="function"&&(e.callback=function(){Sf(t,l,a),typeof n!="function"&&(Nl===null?Nl=new Set([this]):Nl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Av(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&xa(t,l,n,!0),l=ht.current,l!==null){switch(l.tag){case 31:case 13:return Nt===null?Xu():l.alternate===null&&Ce===0&&(Ce=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===gu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),os(e,a,n)),!1;case 22:return l.flags|=65536,a===gu?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)),os(e,a,n)),!1}throw Error(o(435,l.tag))}return os(e,a,n),Xu(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==nc&&(e=Error(o(422),{cause:a}),cn(Et(e,l)))):(a!==nc&&(t=Error(o(423),{cause:a}),cn(Et(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Et(a,l),n=qc(e.stateNode,a,n),vc(e,n),Ce!==4&&(Ce=2)),!1;var u=Error(o(520),{cause:a});if(u=Et(u,l),Rn===null?Rn=[u]:Rn.push(u),Ce!==4&&(Ce=2),t===null)return!0;a=Et(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=qc(l.stateNode,a,e),vc(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"&&(Nl===null||!Nl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=xf(n),jf(n,e,l,a),vc(l,n),!1}l=l.return}while(l!==null);return!1}var Yc=Error(o(461)),Be=!1;function Ke(e,t,l,a){t.child=e===null?_o(t,null,l,a):Il(t,e.child,l,a)}function Ef(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var r={};for(var d in a)d!=="ref"&&(r[d]=a[d])}else r=a;return Jl(t),a=xc(e,t,l,r,u,n),d=jc(),e!==null&&!Be?(Ec(e,t,n),el(e,t,n)):(oe&&d&&lc(t),t.flags|=1,Ke(e,t,a,n),t.child)}function Tf(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Pi(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,_f(e,t,u,a,n)):(e=du(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Jc(e,n)){var r=u.memoizedProps;if(l=l.compare,l=l!==null?l:an,l(r,a)&&e.ref===t.ref)return el(e,t,n)}return t.flags|=1,e=Jt(u,a),e.ref=t.ref,e.return=t,t.child=e}function _f(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(an(u,a)&&e.ref===t.ref)if(Be=!1,t.pendingProps=a=u,Jc(e,n))(e.flags&131072)!==0&&(Be=!0);else return t.lanes=e.lanes,el(e,t,n)}return Gc(e,t,l,a,n)}function Rf(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 Nf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yu(t,u!==null?u.cachePool:null),u!==null?zo(t,u):pc(),Ao(t);else return a=t.lanes=536870912,Nf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(yu(t,u.cachePool),zo(t,u),El(),t.memoizedState=null):(e!==null&&yu(t,null),pc(),El());return Ke(e,t,n,l),t.child}function bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Nf(e,t,l,a,n){var u=fc();return u=u===null?null:{parent:Ue._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&yu(t,null),pc(),Ao(t),e!==null&&xa(e,t,a,!0),t.childLanes=n,null}function Ou(e,t){return t=wu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zf(e,t,l){return Il(t,e.child,null,l),e=Ou(t,t.pendingProps),e.flags|=2,mt(t),t.memoizedState=null,e}function Cv(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=Ou(t,a),t.lanes=536870912,bn(null,e);if(bc(t),(e=_e)?(e=Yd(e,Rt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Bt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=ro(e),l.return=t,t.child=l,Ve=t,_e=null)):e=null,e===null)throw pl(t);return t.lanes=536870912,null}return Ou(t,a)}var u=e.memoizedState;if(u!==null){var r=u.dehydrated;if(bc(t),n)if(t.flags&256)t.flags&=-257,t=zf(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||xa(e,t,l,!1),n=(l&e.childLanes)!==0,Be||n){if(a=je,a!==null&&(r=yr(a,l),r!==0&&r!==u.retryLane))throw u.retryLane=r,Ql(e,r),it(a,e,r),Yc;Xu(),t=zf(e,t,l)}else e=u.treeContext,_e=zt(r.nextSibling),Ve=t,oe=!0,yl=null,Rt=!1,e!==null&&ho(t,e),t=Ou(t,a),t.flags|=4096;return t}return e=Jt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Du(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 Gc(e,t,l,a,n){return Jl(t),l=xc(e,t,l,a,void 0,n),a=jc(),e!==null&&!Be?(Ec(e,t,n),el(e,t,n)):(oe&&a&&lc(t),t.flags|=1,Ke(e,t,l,n),t.child)}function Af(e,t,l,a,n,u){return Jl(t),t.updateQueue=null,l=Mo(t,a,l,n),Co(e),a=jc(),e!==null&&!Be?(Ec(e,t,u),el(e,t,u)):(oe&&a&&lc(t),t.flags|=1,Ke(e,t,l,u),t.child)}function Cf(e,t,l,a,n){if(Jl(t),t.stateNode===null){var u=pa,r=l.contextType;typeof r=="object"&&r!==null&&(u=Ze(r)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Lc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},hc(t),r=l.contextType,u.context=typeof r=="object"&&r!==null?Ze(r):pa,u.state=t.memoizedState,r=l.getDerivedStateFromProps,typeof r=="function"&&(Bc(t,l,r,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(r=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),r!==u.state&&Lc.enqueueReplaceState(u,u.state,null),mn(t,a,u,n),hn(),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=ea(l,d);u.props=p;var N=u.context,M=l.contextType;r=pa,typeof M=="object"&&M!==null&&(r=Ze(M));var U=l.getDerivedStateFromProps;M=typeof U=="function"||typeof u.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,M||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d||N!==r)&&yf(t,u,a,r),bl=!1;var z=t.memoizedState;u.state=z,mn(t,a,u,n),hn(),N=t.memoizedState,d||z!==N||bl?(typeof U=="function"&&(Bc(t,l,U,a),N=t.memoizedState),(p=bl||vf(t,l,p,a,z,N,r))?(M||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=N),u.props=a,u.state=N,u.context=r,a=p):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,mc(e,t),r=t.memoizedProps,M=ea(l,r),u.props=M,U=t.pendingProps,z=u.context,N=l.contextType,p=pa,typeof N=="object"&&N!==null&&(p=Ze(N)),d=l.getDerivedStateFromProps,(N=typeof d=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(r!==U||z!==p)&&yf(t,u,a,p),bl=!1,z=t.memoizedState,u.state=z,mn(t,a,u,n),hn();var A=t.memoizedState;r!==U||z!==A||bl||e!==null&&e.dependencies!==null&&mu(e.dependencies)?(typeof d=="function"&&(Bc(t,l,d,a),A=t.memoizedState),(M=bl||vf(t,l,M,a,z,A,p)||e!==null&&e.dependencies!==null&&mu(e.dependencies))?(N||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"||r===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=p,a=M):(typeof u.componentDidUpdate!="function"||r===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||r===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Du(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=Il(t,e.child,null,n),t.child=Il(t,null,l,n)):Ke(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function Mf(e,t,l,a){return Zl(),t.flags|=256,Ke(e,t,l,a),t.child}var kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:bo()}}function Qc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yt),e}function Of(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,r;if((r=u)||(r=e!==null&&e.memoizedState===null?!1:(Oe.current&2)!==0),r&&(n=!0,t.flags&=-129),r=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?jl(t):El(),(e=_e)?(e=Yd(e,Rt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vl!==null?{id:Bt,overflow:Lt}:null,retryLane:536870912,hydrationErrors:null},l=ro(e),l.return=t,t.child=l,Ve=t,_e=null)):e=null,e===null)throw pl(t);return Rs(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(El(),n=t.mode,d=wu({mode:"hidden",children:d},n),a=Vl(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=Xc(l),a.childLanes=Qc(e,r,l),t.memoizedState=kc,bn(null,a)):(jl(t),Vc(t,d))}var p=e.memoizedState;if(p!==null&&(d=p.dehydrated,d!==null)){if(u)t.flags&256?(jl(t),t.flags&=-257,t=Zc(e,t,l)):t.memoizedState!==null?(El(),t.child=e.child,t.flags|=128,t=null):(El(),d=a.fallback,n=t.mode,a=wu({mode:"visible",children:a.children},n),d=Vl(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,Il(t,e.child,null,l),a=t.child,a.memoizedState=Xc(l),a.childLanes=Qc(e,r,l),t.memoizedState=kc,t=bn(null,a));else if(jl(t),Rs(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r)var N=r.dgst;r=N,a=Error(o(419)),a.stack="",a.digest=r,cn({value:a,source:null,stack:null}),t=Zc(e,t,l)}else if(Be||xa(e,t,l,!1),r=(l&e.childLanes)!==0,Be||r){if(r=je,r!==null&&(a=yr(r,l),a!==0&&a!==p.retryLane))throw p.retryLane=a,Ql(e,a),it(r,e,a),Yc;_s(d)||Xu(),t=Zc(e,t,l)}else _s(d)?(t.flags|=192,t.child=e.child,t=null):(e=p.treeContext,_e=zt(d.nextSibling),Ve=t,oe=!0,yl=null,Rt=!1,e!==null&&ho(t,e),t=Vc(t,a.children),t.flags|=4096);return t}return n?(El(),d=a.fallback,n=t.mode,p=e.child,N=p.sibling,a=Jt(p,{mode:"hidden",children:a.children}),a.subtreeFlags=p.subtreeFlags&65011712,N!==null?d=Jt(N,d):(d=Vl(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,bn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=Xc(l):(n=d.cachePool,n!==null?(p=Ue._currentValue,n=n.parent!==p?{parent:p,pool:p}:n):n=bo(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=Qc(e,r,l),t.memoizedState=kc,bn(e.child,a)):(jl(t),l=e.child,e=l.sibling,l=Jt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=l,t.memoizedState=null,l)}function Vc(e,t){return t=wu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wu(e,t){return e=dt(22,e,null,t),e.lanes=0,e}function Zc(e,t,l){return Il(t,e.child,null,l),e=Vc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Df(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),cc(e.return,t,l)}function Kc(e,t,l,a,n,u){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=a,r.tail=l,r.tailMode=n,r.treeForkCount=u)}function wf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var r=Oe.current,d=(r&2)!==0;if(d?(r=r&1|2,t.flags|=128):r&=1,V(Oe,r),Ke(e,t,a,l),a=oe?un:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Df(e,l,t);else if(e.tag===19)Df(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&&ju(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Kc(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&&ju(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Kc(t,!0,l,null,u,a);break;case"together":Kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Rl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(xa(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=Jt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Jt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Jc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mu(e)))}function Mv(e,t,l){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),gl(t,Ue,e.memoizedState.cache),Zl();break;case 27:case 5:Qa(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:gl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,bc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Of(e,t,l):(jl(t),e=el(e,t,l),e!==null?e.sibling:null);jl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(xa(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return wf(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,Rf(e,t,l,t.pendingProps);case 24:gl(t,Ue,e.memoizedState.cache)}return el(e,t,l)}function Uf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Be=!0;else{if(!Jc(e,l)&&(t.flags&128)===0)return Be=!1,Mv(e,t,l);Be=(e.flags&131072)!==0}else Be=!1,oe&&(t.flags&1048576)!==0&&fo(t,un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Wl(t.elementType),t.type=e,typeof e=="function")Pi(e)?(a=ea(e,a),t.tag=1,t=Cf(null,t,e,a,l)):(t.tag=0,t=Gc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===k){t.tag=11,t=Ef(null,t,e,a,l);break e}else if(n===Z){t.tag=14,t=Tf(null,t,e,a,l);break e}}throw t=bt(e)||e,Error(o(306,t,""))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ea(a,t.pendingProps),Cf(e,t,a,n,l);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,mc(e,t),mn(t,a,null,l);var r=t.memoizedState;if(a=r.cache,gl(t,Ue,a),a!==u.cache&&sc(t,[Ue],l,!0),hn(),a=r.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:r.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Mf(e,t,a,l);break e}else if(a!==n){n=Et(Error(o(424)),t),cn(n),t=Mf(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,yl=null,Rt=!0,l=_o(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),a===n){t=el(e,t,l);break e}Ke(e,t,a,l)}t=t.child}return t;case 26:return Du(e,t),e===null?(l=Zd(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Wu(ue.current).createElement(l),a[Qe]=t,a[et]=e,Je(a,l,e),Ge(a),t.stateNode=a):t.memoizedState=Zd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Qa(t),e===null&&oe&&(a=t.stateNode=Xd(t.type,t.pendingProps,ue.current),Ve=t,Rt=!0,n=_e,Ml(t.type)?(Ns=n,_e=zt(a.firstChild)):_e=n),Ke(e,t,t.pendingProps.children,l),Du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=_e)&&(a=cy(a,t.type,t.pendingProps,Rt),a!==null?(t.stateNode=a,Ve=t,_e=zt(a.firstChild),Rt=!1,n=!0):n=!1),n||pl(t)),Qa(t),n=t.type,u=t.pendingProps,r=e!==null?e.memoizedProps:null,a=u.children,js(n,u)?a=null:r!==null&&js(n,r)&&(t.flags|=32),t.memoizedState!==null&&(n=xc(e,t,jv,null,null,l),wn._currentValue=n),Du(e,t),Ke(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=_e)&&(l=sy(l,t.pendingProps,Rt),l!==null?(t.stateNode=l,Ve=t,_e=null,e=!0):e=!1),e||pl(t)),null;case 13:return Of(e,t,l);case 4:return Ie(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Il(t,null,a,l):Ke(e,t,a,l),t.child;case 11:return Ef(e,t,t.type,t.pendingProps,l);case 7:return Ke(e,t,t.pendingProps,l),t.child;case 8:return Ke(e,t,t.pendingProps.children,l),t.child;case 12:return Ke(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,gl(t,t.type,a.value),Ke(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Jl(t),n=Ze(n),a=a(n),t.flags|=1,Ke(e,t,a,l),t.child;case 14:return Tf(e,t,t.type,t.pendingProps,l);case 15:return _f(e,t,t.type,t.pendingProps,l);case 19:return wf(e,t,l);case 31:return Cv(e,t,l);case 22:return Rf(e,t,l,t.pendingProps);case 24:return Jl(t),a=Ze(Ue),e===null?(n=fc(),n===null&&(n=je,u=rc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},hc(t),gl(t,Ue,n)):((e.lanes&l)!==0&&(mc(e,t),mn(t,null,null,l),hn()),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),gl(t,Ue,a)):(a=u.cache,gl(t,Ue,a),a!==n.cache&&sc(t,[Ue],l,!0))),Ke(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function tl(e){e.flags|=4}function $c(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(sd())e.flags|=8192;else throw Fl=gu,dc}else e.flags&=-16777217}function Hf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fd(t))if(sd())e.flags|=8192;else throw Fl=gu,dc}function Uu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?hr():536870912,e.lanes|=t,Da|=t)}function Sn(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 Re(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 Ov(e,t,l){var a=t.pendingProps;switch(ac(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(t),null;case 1:return Re(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(Ue),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Sa(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uc())),Re(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(Re(t),Hf(t,u)):(Re(t),$c(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),Re(t),Hf(t,u)):(Re(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),Re(t),$c(t,n,e,a,l)),null;case 27:if(Zn(t),l=ue.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Re(t),null}e=W.current,Sa(t)?mo(t):(e=Xd(n,a,l),t.stateNode=e,tl(t))}return Re(t),null;case 5:if(Zn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Re(t),null}if(u=W.current,Sa(t))mo(t);else{var r=Wu(ue.current);switch(u){case 1:u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=r.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?r.createElement(n,{is:a.is}):r.createElement(n)}}u[Qe]=t,u[et]=a;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)u.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=u;e:switch(Je(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&&tl(t)}}return Re(t),$c(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ue.current,Sa(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||Od(e.nodeValue,l)),e||pl(t,!0)}else e=Wu(e).createTextNode(a),e[Qe]=t,t.stateNode=e}return Re(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Sa(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 Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),e=!1}else l=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(mt(t),t):(mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Re(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Sa(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 Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Re(t),n=!1}else n=uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(mt(t),t):(mt(t),null)}return mt(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),Uu(t,t.updateQueue),Re(t),null);case 4:return Me(),e===null&&ps(t.stateNode.containerInfo),Re(t),null;case 10:return Ft(t.type),Re(t),null;case 19:if(H(Oe),a=t.memoizedState,a===null)return Re(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Sn(a,!1);else{if(Ce!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ju(e),u!==null){for(t.flags|=128,Sn(a,!1),e=u.updateQueue,t.updateQueue=e,Uu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)so(l,e),l=l.sibling;return V(Oe,Oe.current&1|2),oe&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&st()>Yu&&(t.flags|=128,n=!0,Sn(a,!1),t.lanes=4194304)}else{if(!n)if(e=ju(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Uu(t,e),Sn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!oe)return Re(t),null}else 2*st()-a.renderingStartTime>Yu&&l!==536870912&&(t.flags|=128,n=!0,Sn(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=st(),e.sibling=null,l=Oe.current,V(Oe,n?l&1|2:l&1),oe&&$t(t,a.treeForkCount),e):(Re(t),null);case 22:case 23:return mt(t),gc(),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&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),l=t.updateQueue,l!==null&&Uu(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&&H($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(Ue),Re(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Dv(e,t){switch(ac(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(Ue),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Zn(t),null;case 31:if(t.memoizedState!==null){if(mt(t),t.alternate===null)throw Error(o(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Oe),null;case 4:return Me(),null;case 10:return Ft(t.type),null;case 22:case 23:return mt(t),gc(),e!==null&&H($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(Ue),null;case 25:return null;default:return null}}function Bf(e,t){switch(ac(t),t.tag){case 3:Ft(Ue),Me();break;case 26:case 27:case 5:Zn(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&mt(t);break;case 13:mt(t);break;case 19:H(Oe);break;case 10:Ft(t.type);break;case 22:case 23:mt(t),gc(),e!==null&&H($l);break;case 24:Ft(Ue)}}function xn(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,r=l.inst;a=u(),r.destroy=a}l=l.next}while(l!==n)}}catch(d){ye(t,t.return,d)}}function Tl(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 r=a.inst,d=r.destroy;if(d!==void 0){r.destroy=void 0,n=t;var p=l,N=d;try{N()}catch(M){ye(n,p,M)}}}a=a.next}while(a!==u)}}catch(M){ye(t,t.return,M)}}function Lf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{No(t,l)}catch(a){ye(e,e.return,a)}}}function qf(e,t,l){l.props=ea(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ye(e,t,a)}}function jn(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 qt(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 Yf(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 Wc(e,t,l){try{var a=e.stateNode;ty(a,e.type,l,t),a[et]=t}catch(n){ye(e,e.return,n)}}function Gf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ml(e.type)||e.tag===4}function Fc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gf(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&&Ml(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 Ic(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=Zt));else if(a!==4&&(a===27&&Ml(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ic(e,t,l),e=e.sibling;e!==null;)Ic(e,t,l),e=e.sibling}function Hu(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&&Ml(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hu(e,t,l),e=e.sibling;e!==null;)Hu(e,t,l),e=e.sibling}function kf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Je(t,a,l),t[Qe]=e,t[et]=l}catch(u){ye(e,e.return,u)}}var ll=!1,Le=!1,Pc=!1,Xf=typeof WeakSet=="function"?WeakSet:Set,ke=null;function wv(e,t){if(e=e.containerInfo,Ss=ai,e=Pr(e),Zi(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 r=0,d=-1,p=-1,N=0,M=0,U=e,z=null;t:for(;;){for(var A;U!==l||n!==0&&U.nodeType!==3||(d=r+n),U!==u||a!==0&&U.nodeType!==3||(p=r+a),U.nodeType===3&&(r+=U.nodeValue.length),(A=U.firstChild)!==null;)z=U,U=A;for(;;){if(U===e)break t;if(z===l&&++N===n&&(d=r),z===u&&++M===a&&(p=r),(A=U.nextSibling)!==null)break;U=z,z=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(xs={focusedElem:e,selectionRange:l},ai=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){switch(t=ke,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 J=ea(l.type,n);e=a.getSnapshotBeforeUpdate(J,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)Ts(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ts(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,ke=e;break}ke=t.return}}function Qf(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&xn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(r){ye(l,l.return,r)}else{var n=ea(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(r){ye(l,l.return,r)}}a&64&&Lf(l),a&512&&jn(l,l.return);break;case 3:if(nl(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{No(e,t)}catch(r){ye(l,l.return,r)}}break;case 27:t===null&&a&4&&kf(l);case 26:case 5:nl(e,l),t===null&&a&4&&Yf(l),a&512&&jn(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&Kf(e,l);break;case 13:nl(e,l),a&4&&Jf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Xv.bind(null,l),ry(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Le,n=ll;var u=Le;ll=a,(Le=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,Le=u}break;case 30:break;default:nl(e,l)}}function Vf(e){var t=e.alternate;t!==null&&(e.alternate=null,Vf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ai(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 Ne=null,lt=!1;function al(e,t,l){for(l=l.child;l!==null;)Zf(e,t,l),l=l.sibling}function Zf(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Va,l)}catch{}switch(l.tag){case 26:Le||qt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Le||qt(l,t);var a=Ne,n=lt;Ml(l.type)&&(Ne=l.stateNode,lt=!1),al(e,t,l),Mn(l.stateNode),Ne=a,lt=n;break;case 5:Le||qt(l,t);case 6:if(a=Ne,n=lt,Ne=null,al(e,t,l),Ne=a,lt=n,Ne!==null)if(lt)try{(Ne.nodeType===9?Ne.body:Ne.nodeName==="HTML"?Ne.ownerDocument.body:Ne).removeChild(l.stateNode)}catch(u){ye(l,t,u)}else try{Ne.removeChild(l.stateNode)}catch(u){ye(l,t,u)}break;case 18:Ne!==null&&(lt?(e=Ne,Ld(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ga(e)):Ld(Ne,l.stateNode));break;case 4:a=Ne,n=lt,Ne=l.stateNode.containerInfo,lt=!0,al(e,t,l),Ne=a,lt=n;break;case 0:case 11:case 14:case 15:Tl(2,l,t),Le||Tl(4,l,t),al(e,t,l);break;case 1:Le||(qt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&qf(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Le=(a=Le)||l.memoizedState!==null,al(e,t,l),Le=a;break;default:al(e,t,l)}}function Kf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ga(e)}catch(l){ye(t,t.return,l)}}}function Jf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ga(e)}catch(l){ye(t,t.return,l)}}function Uv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Xf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Xf),t;default:throw Error(o(435,e.tag))}}function Bu(e,t){var l=Uv(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Qv.bind(null,e,a);a.then(n,n)}})}function at(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,r=t,d=r;e:for(;d!==null;){switch(d.tag){case 27:if(Ml(d.type)){Ne=d.stateNode,lt=!1;break e}break;case 5:Ne=d.stateNode,lt=!1;break e;case 3:case 4:Ne=d.stateNode.containerInfo,lt=!0;break e}d=d.return}if(Ne===null)throw Error(o(160));Zf(u,r,n),Ne=null,lt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)$f(t,e),t=t.sibling}var Ot=null;function $f(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:at(t,e),nt(e),a&4&&(Tl(3,e,e.return),xn(3,e),Tl(5,e,e.return));break;case 1:at(t,e),nt(e),a&512&&(Le||l===null||qt(l,l.return)),a&64&&ll&&(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(at(t,e),nt(e),a&512&&(Le||l===null||qt(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[Ja]||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"))),Je(u,a,l),u[Qe]=e,Ge(u),a=u;break e;case"link":var r=$d("link","href",n).get(a+(l.href||""));if(r){for(var d=0;d<r.length;d++)if(u=r[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)){r.splice(d,1);break t}}u=n.createElement(a),Je(u,a,l),n.head.appendChild(u);break;case"meta":if(r=$d("meta","content",n).get(a+(l.content||""))){for(d=0;d<r.length;d++)if(u=r[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)){r.splice(d,1);break t}}u=n.createElement(a),Je(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 Wd(n,e.type,e.stateNode);else e.stateNode=Jd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Wd(n,e.type,e.stateNode):Jd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Wc(e,e.memoizedProps,l.memoizedProps)}break;case 27:at(t,e),nt(e),a&512&&(Le||l===null||qt(l,l.return)),l!==null&&a&4&&Wc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(at(t,e),nt(e),a&512&&(Le||l===null||qt(l,l.return)),e.flags&32){n=e.stateNode;try{oa(n,"")}catch(J){ye(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Wc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Pc=!0);break;case 6:if(at(t,e),nt(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){ye(e,e.return,J)}}break;case 3:if(Pu=null,n=Ot,Ot=Fu(t.containerInfo),at(t,e),Ot=n,nt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(J){ye(e,e.return,J)}Pc&&(Pc=!1,Wf(e));break;case 4:a=Ot,Ot=Fu(e.stateNode.containerInfo),at(t,e),nt(e),Ot=a;break;case 12:at(t,e),nt(e);break;case 31:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 13:at(t,e),nt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(qu=st()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 22:n=e.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,N=ll,M=Le;if(ll=N||n,Le=M||p,at(t,e),Le=M,ll=N,nt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||p||ll||Le||ta(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){p=l=t;try{if(u=p.stateNode,n)r=u.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{d=p.stateNode;var U=p.memoizedProps.style,z=U!=null&&U.hasOwnProperty("display")?U.display:null;d.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){ye(p,p.return,J)}}}else if(t.tag===6){if(l===null){p=t;try{p.stateNode.nodeValue=n?"":p.memoizedProps}catch(J){ye(p,p.return,J)}}}else if(t.tag===18){if(l===null){p=t;try{var A=p.stateNode;n?qd(A,!0):qd(p.stateNode,!1)}catch(J){ye(p,p.return,J)}}}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,Bu(e,l))));break;case 19:at(t,e),nt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Bu(e,a)));break;case 30:break;case 21:break;default:at(t,e),nt(e)}}function nt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Gf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Fc(e);Hu(e,u,n);break;case 5:var r=l.stateNode;l.flags&32&&(oa(r,""),l.flags&=-33);var d=Fc(e);Hu(e,d,r);break;case 3:case 4:var p=l.stateNode.containerInfo,N=Fc(e);Ic(e,N,p);break;default:throw Error(o(161))}}catch(M){ye(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Wf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Qf(e,t.alternate,t),t=t.sibling}function ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tl(4,t,t.return),ta(t);break;case 1:qt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&qf(t,t.return,l),ta(t);break;case 27:Mn(t.stateNode);case 26:case 5:qt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,r=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),xn(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(N){ye(a,a.return,N)}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++)Ro(p[n],d)}catch(N){ye(a,a.return,N)}}l&&r&64&&Lf(u),jn(u,u.return);break;case 27:kf(u);case 26:case 5:ul(n,u,l),l&&a===null&&r&4&&Yf(u),jn(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&r&4&&Kf(n,u);break;case 13:ul(n,u,l),l&&r&4&&Jf(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),jn(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function es(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&&sn(l))}function ts(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e))}function Dt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ff(e,t,l,a),t=t.sibling}function Ff(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Dt(e,t,l,a),n&2048&&xn(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&&sn(e)));break;case 12:if(n&2048){Dt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,r=u.id,d=u.onPostCommit;typeof d=="function"&&d(r,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,r=t.alternate,t.memoizedState!==null?u._visibility&2?Dt(e,t,l,a):En(e,t):u._visibility&2?Dt(e,t,l,a):(u._visibility|=2,Ca(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&es(r,t);break;case 24:Dt(e,t,l,a),n&2048&&ts(t.alternate,t);break;default:Dt(e,t,l,a)}}function Ca(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,r=t,d=l,p=a,N=r.flags;switch(r.tag){case 0:case 11:case 15:Ca(u,r,d,p,n),xn(8,r);break;case 23:break;case 22:var M=r.stateNode;r.memoizedState!==null?M._visibility&2?Ca(u,r,d,p,n):En(u,r):(M._visibility|=2,Ca(u,r,d,p,n)),n&&N&2048&&es(r.alternate,r);break;case 24:Ca(u,r,d,p,n),n&&N&2048&&ts(r.alternate,r);break;default:Ca(u,r,d,p,n)}t=t.sibling}}function En(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:En(l,a),n&2048&&es(a.alternate,a);break;case 24:En(l,a),n&2048&&ts(a.alternate,a);break;default:En(l,a)}t=t.sibling}}var Tn=8192;function Ma(e,t,l){if(e.subtreeFlags&Tn)for(e=e.child;e!==null;)If(e,t,l),e=e.sibling}function If(e,t,l){switch(e.tag){case 26:Ma(e,t,l),e.flags&Tn&&e.memoizedState!==null&&xy(l,Ot,e.memoizedState,e.memoizedProps);break;case 5:Ma(e,t,l);break;case 3:case 4:var a=Ot;Ot=Fu(e.stateNode.containerInfo),Ma(e,t,l),Ot=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Tn,Tn=16777216,Ma(e,t,l),Tn=a):Ma(e,t,l));break;default:Ma(e,t,l)}}function Pf(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 _n(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];ke=a,td(a,e)}Pf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ed(e),e=e.sibling}function ed(e){switch(e.tag){case 0:case 11:case 15:_n(e),e.flags&2048&&Tl(9,e,e.return);break;case 3:_n(e);break;case 12:_n(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lu(e)):_n(e);break;default:_n(e)}}function Lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ke=a,td(a,e)}Pf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tl(8,t,t.return),Lu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Lu(t));break;default:Lu(t)}e=e.sibling}}function td(e,t){for(;ke!==null;){var l=ke;switch(l.tag){case 0:case 11:case 15:Tl(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:sn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ke=a;else e:for(l=e;ke!==null;){a=ke;var n=a.sibling,u=a.return;if(Vf(a),a===l){ke=null;break e}if(n!==null){n.return=u,ke=n;break e}ke=u}}}var Hv={getCacheForType:function(e){var t=Ze(Ue),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ze(Ue).controller.signal}},Bv=typeof WeakMap=="function"?WeakMap:Map,he=0,je=null,ie=null,se=0,ve=0,vt=null,_l=!1,Oa=!1,ls=!1,il=0,Ce=0,Rl=0,la=0,as=0,yt=0,Da=0,Rn=null,ut=null,ns=!1,qu=0,ld=0,Yu=1/0,Gu=null,Nl=null,Ye=0,zl=null,wa=null,cl=0,us=0,is=null,ad=null,Nn=0,cs=null;function pt(){return(he&2)!==0&&se!==0?se&-se:O.T!==null?hs():pr()}function nd(){if(yt===0)if((se&536870912)===0||oe){var e=$n;$n<<=1,($n&3932160)===0&&($n=262144),yt=e}else yt=536870912;return e=ht.current,e!==null&&(e.flags|=32),yt}function it(e,t,l){(e===je&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ua(e,0),Al(e,se,yt,!1)),Ka(e,l),((he&2)===0||e!==je)&&(e===je&&((he&2)===0&&(la|=l),Ce===4&&Al(e,se,yt,!1)),Yt(e))}function ud(e,t,l){if((he&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Za(e,t),n=a?Yv(e,t):rs(e,t,!0),u=a;do{if(n===0){Oa&&!a&&Al(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Lv(l)){n=rs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var r=0;else r=e.pendingLanes&-536870913,r=r!==0?r:r&536870912?536870912:0;if(r!==0){t=r;e:{var d=e;n=Rn;var p=d.current.memoizedState.isDehydrated;if(p&&(Ua(d,r).flags|=256),r=rs(d,r,!1),r!==2){if(ls&&!p){d.errorRecoveryDisabledLanes|=u,la|=u,n=4;break e}u=ut,ut=n,u!==null&&(ut===null?ut=u:ut.push.apply(ut,u))}n=r}if(u=!1,n!==2)continue}}if(n===1){Ua(e,0),Al(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:Al(a,t,yt,!_l);break e;case 2:ut=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=qu+300-st(),10<n)){if(Al(a,t,yt,!_l),Fn(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Hd(id.bind(null,a,l,ut,Gu,ns,t,yt,la,Da,_l,u,"Throttled",-0,0),n);break e}id(a,l,ut,Gu,ns,t,yt,la,Da,_l,u,null,-0,0)}}break}while(!0);Yt(e)}function id(e,t,l,a,n,u,r,d,p,N,M,U,z,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:Zt},If(t,u,U);var J=(u&62914560)===u?qu-st():(u&4194048)===u?ld-st():0;if(J=jy(U,J),J!==null){cl=u,e.cancelPendingCommit=J(md.bind(null,e,t,u,l,a,n,r,d,p,M,U,null,z,A)),Al(e,u,r,!N);return}}md(e,t,u,l,a,n,r,d,p)}function Lv(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(!ft(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 Al(e,t,l,a){t&=~as,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ot(n),r=1<<u;a[u]=-1,n&=~r}l!==0&&mr(e,l,t)}function ku(){return(he&6)===0?(zn(0),!1):!0}function ss(){if(ie!==null){if(ve===0)var e=ie.return;else e=ie,Wt=Kl=null,Tc(e),_a=null,on=0,e=ie;for(;e!==null;)Bf(e.alternate,e),e=e.return;ie=null}}function Ua(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,ny(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,ss(),je=e,ie=l=Jt(e.current,null),se=t,ve=0,vt=null,_l=!1,Oa=Za(e,t),ls=!1,Da=yt=as=la=Rl=Ce=0,ut=Rn=null,ns=!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-ot(a),u=1<<n;t|=e[n],a&=~u}return il=t,ru(),l}function cd(e,t){ae=null,O.H=gn,t===Ta||t===pu?(t=jo(),ve=3):t===dc?(t=jo(),ve=4):ve=t===Yc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,ie===null&&(Ce=1,Mu(e,Et(t,e.current)))}function sd(){var e=ht.current;return e===null?!0:(se&4194048)===se?Nt===null:(se&62914560)===se||(se&536870912)!==0?e===Nt:!1}function rd(){var e=O.H;return O.H=gn,e===null?gn:e}function od(){var e=O.A;return O.A=Hv,e}function Xu(){Ce=4,_l||(se&4194048)!==se&&ht.current!==null||(Oa=!0),(Rl&134217727)===0&&(la&134217727)===0||je===null||Al(je,se,yt,!1)}function rs(e,t,l){var a=he;he|=2;var n=rd(),u=od();(je!==e||se!==t)&&(Gu=null,Ua(e,t)),t=!1;var r=Ce;e:do try{if(ve!==0&&ie!==null){var d=ie,p=vt;switch(ve){case 8:ss(),r=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var N=ve;if(ve=0,vt=null,Ha(e,d,p,N),l&&Oa){r=0;break e}break;default:N=ve,ve=0,vt=null,Ha(e,d,p,N)}}qv(),r=Ce;break}catch(M){cd(e,M)}while(!0);return t&&e.shellSuspendCounter++,Wt=Kl=null,he=a,O.H=n,O.A=u,ie===null&&(je=null,se=0,ru()),r}function qv(){for(;ie!==null;)fd(ie)}function Yv(e,t){var l=he;he|=2;var a=rd(),n=od();je!==e||se!==t?(Gu=null,Yu=st()+500,Ua(e,t)):Oa=Za(e,t);e:do try{if(ve!==0&&ie!==null){t=ie;var u=vt;t:switch(ve){case 1:ve=0,vt=null,Ha(e,t,u,1);break;case 2:case 9:if(So(u)){ve=0,vt=null,dd(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:So(u)?(ve=0,vt=null,dd(t)):(ve=0,vt=null,Ha(e,t,u,7));break;case 5:var r=null;switch(ie.tag){case 26:r=ie.memoizedState;case 5:case 27:var d=ie;if(r?Fd(r):d.stateNode.complete){ve=0,vt=null;var p=d.sibling;if(p!==null)ie=p;else{var N=d.return;N!==null?(ie=N,Qu(N)):ie=null}break t}}ve=0,vt=null,Ha(e,t,u,5);break;case 6:ve=0,vt=null,Ha(e,t,u,6);break;case 8:ss(),Ce=6;break e;default:throw Error(o(462))}}Gv();break}catch(M){cd(e,M)}while(!0);return Wt=Kl=null,O.H=a,O.A=n,he=l,ie!==null?0:(je=null,se=0,ru(),Ce)}function Gv(){for(;ie!==null&&!om();)fd(ie)}function fd(e){var t=Uf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Qu(e):ie=t}function dd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Af(l,t,t.pendingProps,t.type,void 0,se);break;case 11:t=Af(l,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:Tc(t);default:Bf(l,t),t=ie=so(t,il),t=Uf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Qu(e):ie=t}function Ha(e,t,l,a){Wt=Kl=null,Tc(t),_a=null,on=0;var n=t.return;try{if(Av(e,n,t,l,se)){Ce=1,Mu(e,Et(l,e.current)),ie=null;return}}catch(u){if(n!==null)throw ie=n,u;Ce=1,Mu(e,Et(l,e.current)),ie=null;return}t.flags&32768?(oe||a===1?e=!0:Oa||(se&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=ht.current,a!==null&&a.tag===13&&(a.flags|=16384))),hd(t,e)):Qu(t)}function Qu(e){var t=e;do{if((t.flags&32768)!==0){hd(t,_l);return}e=t.return;var l=Ov(t.alternate,t,il);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 hd(e,t){do{var l=Dv(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 md(e,t,l,a,n,u,r,d,p){e.cancelPendingCommit=null;do Vu();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|=Fi,Sm(e,l,u,r,d,p),e===je&&(ie=je=null,se=0),wa=t,zl=e,cl=l,us=u,is=n,ad=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Vv(Kn,function(){return bd(),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,r=he,he|=4;try{wv(e,t,l)}finally{he=r,Q.p=n,O.T=a}}Ye=1,vd(),yd(),pd()}}function vd(){if(Ye===1){Ye=0;var e=zl,t=wa,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{$f(t,e);var u=xs,r=Pr(e.containerInfo),d=u.focusedElem,p=u.selectionRange;if(r!==d&&d&&d.ownerDocument&&Ir(d.ownerDocument.documentElement,d)){if(p!==null&&Zi(d)){var N=p.start,M=p.end;if(M===void 0&&(M=N),"selectionStart"in d)d.selectionStart=N,d.selectionEnd=Math.min(M,d.value.length);else{var U=d.ownerDocument||document,z=U&&U.defaultView||window;if(z.getSelection){var A=z.getSelection(),J=d.textContent.length,P=Math.min(p.start,J),Se=p.end===void 0?P:Math.min(p.end,J);!A.extend&&P>Se&&(r=Se,Se=P,P=r);var _=Fr(d,P),S=Fr(d,Se);if(_&&S&&(A.rangeCount!==1||A.anchorNode!==_.node||A.anchorOffset!==_.offset||A.focusNode!==S.node||A.focusOffset!==S.offset)){var R=U.createRange();R.setStart(_.node,_.offset),A.removeAllRanges(),P>Se?(A.addRange(R),A.extend(S.node,S.offset)):(R.setEnd(S.node,S.offset),A.addRange(R))}}}}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}}ai=!!Ss,xs=Ss=null}finally{he=n,Q.p=a,O.T=l}}e.current=t,Ye=2}}function yd(){if(Ye===2){Ye=0;var e=zl,t=wa,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 pd(){if(Ye===4||Ye===3){Ye=0,fm();var e=zl,t=wa,l=cl,a=ad;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ye=5:(Ye=0,wa=zl=null,gd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Nl=null),Ni(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Va,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,r=0;r<a.length;r++){var d=a[r];u(d.value,{componentStack:d.stack})}}finally{O.T=t,Q.p=n}}(cl&3)!==0&&Vu(),Yt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===cs?Nn++:(Nn=0,cs=e):Nn=0,zn(0)}}function gd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sn(t)))}function Vu(){return vd(),yd(),pd(),bd()}function bd(){if(Ye!==5)return!1;var e=zl,t=us;us=0;var l=Ni(cl),a=O.T,n=Q.p;try{Q.p=32>l?32:l,O.T=null,l=is,is=null;var u=zl,r=cl;if(Ye=0,wa=zl=null,cl=0,(he&6)!==0)throw Error(o(331));var d=he;if(he|=4,ed(u.current),Ff(u,u.current,r,l),he=d,zn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Va,u)}catch{}return!0}finally{Q.p=n,O.T=a,gd(e,t)}}function Sd(e,t,l){t=Et(l,t),t=qc(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(Ka(e,2),Yt(e))}function ye(e,t,l){if(e.tag===3)Sd(e,e,l);else for(;t!==null;){if(t.tag===3){Sd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nl===null||!Nl.has(a))){e=Et(l,e),l=xf(2),a=xl(t,l,2),a!==null&&(jf(l,a,t,e),Ka(a,2),Yt(a));break}}t=t.return}}function os(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Bv;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)||(ls=!0,n.add(l),e=kv.bind(null,e,t,l),t.then(e,e))}function kv(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>st()-qu?(he&2)===0&&Ua(e,0):as|=l,Da===se&&(Da=0)),Yt(e)}function xd(e,t){t===0&&(t=hr()),e=Ql(e,t),e!==null&&(Ka(e,t),Yt(e))}function Xv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),xd(e,l)}function Qv(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),xd(e,l)}function Vv(e,t){return Ei(e,t)}var Zu=null,Ba=null,fs=!1,Ku=!1,ds=!1,Cl=0;function Yt(e){e!==Ba&&e.next===null&&(Ba===null?Zu=Ba=e:Ba=Ba.next=e),Ku=!0,fs||(fs=!0,Kv())}function zn(e,t){if(!ds&&Ku){ds=!0;do for(var l=!1,a=Zu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var r=a.suspendedLanes,d=a.pingedLanes;u=(1<<31-ot(42|e)+1)-1,u&=n&~(r&~d),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,_d(a,u))}else u=se,u=Fn(a,a===je?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Za(a,u)||(l=!0,_d(a,u));a=a.next}while(l);ds=!1}}function Zv(){jd()}function jd(){Ku=fs=!1;var e=0;Cl!==0&&ay()&&(e=Cl);for(var t=st(),l=null,a=Zu;a!==null;){var n=a.next,u=Ed(a,t);u===0?(a.next=null,l===null?Zu=n:l.next=n,n===null&&(Ba=l)):(l=a,(e!==0||(u&3)!==0)&&(Ku=!0)),a=n}Ye!==0&&Ye!==5||zn(e),Cl!==0&&(Cl=0)}function Ed(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var r=31-ot(u),d=1<<r,p=n[r];p===-1?((d&l)===0||(d&a)!==0)&&(n[r]=bm(d,t)):p<=t&&(e.expiredLanes|=d),u&=~d}if(t=je,l=se,l=Fn(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&&Ti(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Za(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Ti(a),Ni(l)){case 2:case 8:l=fr;break;case 32:l=Kn;break;case 268435456:l=dr;break;default:l=Kn}return a=Td.bind(null,e),l=Ei(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Ti(a),e.callbackPriority=2,e.callbackNode=null,2}function Td(e,t){if(Ye!==0&&Ye!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Vu()&&e.callbackNode!==l)return null;var a=se;return a=Fn(e,e===je?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(ud(e,a,t),Ed(e,st()),e.callbackNode!=null&&e.callbackNode===l?Td.bind(null,e):null)}function _d(e,t){if(Vu())return null;ud(e,t,!0)}function Kv(){uy(function(){(he&6)!==0?Ei(or,Zv):jd()})}function hs(){if(Cl===0){var e=ja;e===0&&(e=Jn,Jn<<=1,(Jn&261888)===0&&(Jn=256)),Cl=e}return Cl}function Rd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tu(""+e)}function Nd(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 Jv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Rd((n[et]||null).action),r=a.submitter;r&&(t=(t=r[et]||null)?Rd(t.formAction):r.getAttribute("formAction"),t!==null&&(u=t,r=null));var d=new uu("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Cl!==0){var p=r?Nd(n,r):new FormData(n);Dc(l,{pending:!0,data:p,method:n.method,action:u},null,p)}}else typeof u=="function"&&(d.preventDefault(),p=r?Nd(n,r):new FormData(n),Dc(l,{pending:!0,data:p,method:n.method,action:u},u,p))},currentTarget:n}]})}}for(var ms=0;ms<Wi.length;ms++){var vs=Wi[ms],$v=vs.toLowerCase(),Wv=vs[0].toUpperCase()+vs.slice(1);Mt($v,"on"+Wv)}Mt(lo,"onAnimationEnd"),Mt(ao,"onAnimationIteration"),Mt(no,"onAnimationStart"),Mt("dblclick","onDoubleClick"),Mt("focusin","onFocus"),Mt("focusout","onBlur"),Mt(dv,"onTransitionRun"),Mt(hv,"onTransitionStart"),Mt(mv,"onTransitionCancel"),Mt(uo,"onTransitionEnd"),sa("onMouseEnter",["mouseout","mouseover"]),sa("onMouseLeave",["mouseout","mouseover"]),sa("onPointerEnter",["pointerout","pointerover"]),sa("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="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(" "),Fv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(An));function zd(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 r=a.length-1;0<=r;r--){var d=a[r],p=d.instance,N=d.currentTarget;if(d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=N;try{u(n)}catch(M){su(M)}n.currentTarget=null,u=p}else for(r=0;r<a.length;r++){if(d=a[r],p=d.instance,N=d.currentTarget,d=d.listener,p!==u&&n.isPropagationStopped())break e;u=d,n.currentTarget=N;try{u(n)}catch(M){su(M)}n.currentTarget=null,u=p}}}}function ce(e,t){var l=t[zi];l===void 0&&(l=t[zi]=new Set);var a=e+"__bubble";l.has(a)||(Ad(t,e,2,!1),l.add(a))}function ys(e,t,l){var a=0;t&&(a|=4),Ad(l,e,a,t)}var Ju="_reactListening"+Math.random().toString(36).slice(2);function ps(e){if(!e[Ju]){e[Ju]=!0,Sr.forEach(function(l){l!=="selectionchange"&&(Fv.has(l)||ys(l,!1,e),ys(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ju]||(t[Ju]=!0,ys("selectionchange",!1,t))}}function Ad(e,t,l,a){switch(nh(t)){case 2:var n=_y;break;case 8:n=Ry;break;default:n=Os}l=n.bind(null,t,l,e),n=void 0,!Bi||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 gs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var r=a.tag;if(r===3||r===4){var d=a.stateNode.containerInfo;if(d===n)break;if(r===4)for(r=a.return;r!==null;){var p=r.tag;if((p===3||p===4)&&r.stateNode.containerInfo===n)return;r=r.return}for(;d!==null;){if(r=ua(d),r===null)return;if(p=r.tag,p===5||p===6||p===26||p===27){a=u=r;continue e}d=d.parentNode}}a=a.return}Or(function(){var N=u,M=Ui(l),U=[];e:{var z=io.get(e);if(z!==void 0){var A=uu,J=e;switch(e){case"keypress":if(au(l)===0)break e;case"keydown":case"keyup":A=Qm;break;case"focusin":J="focus",A=Gi;break;case"focusout":J="blur",A=Gi;break;case"beforeblur":case"afterblur":A=Gi;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=Ur;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=Km;break;case lo:case ao:case no:A=Um;break;case uo:A=$m;break;case"scroll":case"scrollend":A=Cm;break;case"wheel":A=Fm;break;case"copy":case"cut":case"paste":A=Bm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Br;break;case"toggle":case"beforetoggle":A=Pm}var P=(t&4)!==0,Se=!P&&(e==="scroll"||e==="scrollend"),_=P?z!==null?z+"Capture":null:z;P=[];for(var S=N,R;S!==null;){var D=S;if(R=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||R===null||_===null||(D=Wa(S,_),D!=null&&P.push(Cn(S,D,R))),Se)break;S=S.return}0<P.length&&(z=new A(z,J,null,l,M),U.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",z&&l!==wi&&(J=l.relatedTarget||l.fromElement)&&(ua(J)||J[na]))break e;if((A||z)&&(z=M.window===M?M:(z=M.ownerDocument)?z.defaultView||z.parentWindow:window,A?(J=l.relatedTarget||l.toElement,A=N,J=J?ua(J):null,J!==null&&(Se=m(J),P=J.tag,J!==Se||P!==5&&P!==27&&P!==6)&&(J=null)):(A=null,J=N),A!==J)){if(P=Ur,D="onMouseLeave",_="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(P=Br,D="onPointerLeave",_="onPointerEnter",S="pointer"),Se=A==null?z:$a(A),R=J==null?z:$a(J),z=new P(D,S+"leave",A,l,M),z.target=Se,z.relatedTarget=R,D=null,ua(M)===N&&(P=new P(_,S+"enter",J,l,M),P.target=R,P.relatedTarget=Se,D=P),Se=D,A&&J)t:{for(P=Iv,_=A,S=J,R=0,D=_;D;D=P(D))R++;D=0;for(var I=S;I;I=P(I))D++;for(;0<R-D;)_=P(_),R--;for(;0<D-R;)S=P(S),D--;for(;R--;){if(_===S||S!==null&&_===S.alternate){P=_;break t}_=P(_),S=P(S)}P=null}else P=null;A!==null&&Cd(U,z,A,P,!1),J!==null&&Se!==null&&Cd(U,Se,J,P,!0)}}e:{if(z=N?$a(N):window,A=z.nodeName&&z.nodeName.toLowerCase(),A==="select"||A==="input"&&z.type==="file")var fe=Vr;else if(Xr(z))if(Zr)fe=rv;else{fe=cv;var F=iv}else A=z.nodeName,!A||A.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?N&&Di(N.elementType)&&(fe=Vr):fe=sv;if(fe&&(fe=fe(e,N))){Qr(U,fe,l,M);break e}F&&F(e,z,N),e==="focusout"&&N&&z.type==="number"&&N.memoizedProps.value!=null&&Oi(z,"number",z.value)}switch(F=N?$a(N):window,e){case"focusin":(Xr(F)||F.contentEditable==="true")&&(ma=F,Ki=N,nn=null);break;case"focusout":nn=Ki=ma=null;break;case"mousedown":Ji=!0;break;case"contextmenu":case"mouseup":case"dragend":Ji=!1,eo(U,l,M);break;case"selectionchange":if(fv)break;case"keydown":case"keyup":eo(U,l,M)}var ne;if(Xi)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 ha?Gr(e,l)&&(re="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(re="onCompositionStart");re&&(Lr&&l.locale!=="ko"&&(ha||re!=="onCompositionStart"?re==="onCompositionEnd"&&ha&&(ne=Dr()):(ml=M,Li="value"in ml?ml.value:ml.textContent,ha=!0)),F=$u(N,re),0<F.length&&(re=new Hr(re,e,null,l,M),U.push({event:re,listeners:F}),ne?re.data=ne:(ne=kr(l),ne!==null&&(re.data=ne)))),(ne=tv?lv(e,l):av(e,l))&&(re=$u(N,"onBeforeInput"),0<re.length&&(F=new Hr("onBeforeInput","beforeinput",null,l,M),U.push({event:F,listeners:re}),F.data=ne)),Jv(U,e,N,l,M)}zd(U,t)})}function Cn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $u(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=Wa(e,l),n!=null&&a.unshift(Cn(e,n,u)),n=Wa(e,t),n!=null&&a.push(Cn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Iv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cd(e,t,l,a,n){for(var u=t._reactName,r=[];l!==null&&l!==a;){var d=l,p=d.alternate,N=d.stateNode;if(d=d.tag,p!==null&&p===a)break;d!==5&&d!==26&&d!==27||N===null||(p=N,n?(N=Wa(l,u),N!=null&&r.unshift(Cn(l,N,p))):n||(N=Wa(l,u),N!=null&&r.push(Cn(l,N,p)))),l=l.return}r.length!==0&&e.push({event:t,listeners:r})}var Pv=/\r\n?/g,ey=/\u0000|\uFFFD/g;function Md(e){return(typeof e=="string"?e:""+e).replace(Pv,`
|
|
49
|
+
`).replace(ey,"")}function Od(e,t){return t=Md(t),Md(e)===t}function be(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||oa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&oa(e,""+a);break;case"className":Pn(e,"class",a);break;case"tabIndex":Pn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pn(e,l,a);break;case"style":Cr(e,a,u);break;case"data":if(t!=="object"){Pn(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=tu(""+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=tu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);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=tu(""+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),In(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":In(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=zm.get(l)||l,In(e,l,a))}}function bs(e,t,l,a,n,u){switch(l){case"style":Cr(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"?oa(e,a):(typeof a=="number"||typeof a=="bigint")&&oa(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=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xr.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[et]||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,""):In(e,l,a)}}}function Je(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 r=l[u];if(r!=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,r,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=r=n=null,p=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":r=M;break;case"checked":p=M;break;case"defaultChecked":N=M;break;case"value":u=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:be(e,t,a,M,l,null)}}Rr(e,u,d,p,N,r,n,!1);return;case"select":ce("invalid",e),a=r=u=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":u=d;break;case"defaultValue":r=d;break;case"multiple":a=d;default:be(e,t,n,d,l,null)}t=u,l=r,e.multiple=!!a,t!=null?ra(e,!!a,t,!1):l!=null&&ra(e,!!a,l,!0);return;case"textarea":ce("invalid",e),u=n=a=null;for(r in l)if(l.hasOwnProperty(r)&&(d=l[r],d!=null))switch(r){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,r,d,l,null)}zr(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<An.length;a++)ce(An[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(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:be(e,t,N,a,l,null)}return;default:if(Di(t)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&bs(e,t,M,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 ty(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,r=null,d=null,p=null,N=null,M=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 z in a){var A=a[z];if(U=l[z],a.hasOwnProperty(z)&&(A!=null||U!=null))switch(z){case"type":u=A;break;case"name":n=A;break;case"checked":N=A;break;case"defaultChecked":M=A;break;case"value":r=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,z,A,a,U)}}Mi(e,r,d,p,N,M,u,n);return;case"select":A=r=d=z=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":z=u;break;case"defaultValue":d=u;break;case"multiple":r=u;default:u!==p&&be(e,t,n,u,a,p)}t=d,l=r,a=A,z!=null?ra(e,!!l,z,!1):!!a!=!!l&&(t!=null?ra(e,!!l,t,!0):ra(e,!!l,l?[]:"",!1));return;case"textarea":A=z=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(r in a)if(n=a[r],u=l[r],a.hasOwnProperty(r)&&(n!=null||u!=null))switch(r){case"value":z=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,r,n,a,u)}Nr(e,z,A);return;case"option":for(var J in l)if(z=l[J],l.hasOwnProperty(J)&&z!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:be(e,t,J,null,a,z)}for(p in a)if(z=a[p],A=l[p],a.hasOwnProperty(p)&&z!==A&&(z!=null||A!=null))switch(p){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:be(e,t,p,z,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)z=l[P],l.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&be(e,t,P,null,a,z);for(N in a)if(z=a[N],A=l[N],a.hasOwnProperty(N)&&z!==A&&(z!=null||A!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:be(e,t,N,z,a,A)}return;default:if(Di(t)){for(var Se in l)z=l[Se],l.hasOwnProperty(Se)&&z!==void 0&&!a.hasOwnProperty(Se)&&bs(e,t,Se,void 0,a,z);for(M in a)z=a[M],A=l[M],!a.hasOwnProperty(M)||z===A||z===void 0&&A===void 0||bs(e,t,M,z,a,A);return}}for(var _ in l)z=l[_],l.hasOwnProperty(_)&&z!=null&&!a.hasOwnProperty(_)&&be(e,t,_,null,a,z);for(U in a)z=a[U],A=l[U],!a.hasOwnProperty(U)||z===A||z==null&&A==null||be(e,t,U,z,a,A)}function Dd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ly(){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,r=n.initiatorType,d=n.duration;if(u&&d&&Dd(r)){for(r=0,d=n.responseEnd,a+=1;a<l.length;a++){var p=l[a],N=p.startTime;if(N>d)break;var M=p.transferSize,U=p.initiatorType;M&&Dd(U)&&(p=p.responseEnd,r+=M*(p<d?1:(d-N)/(p-N)))}if(--a,t+=8*(u+r)/(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 Ss=null,xs=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function wd(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 Ud(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function js(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Es=null;function ay(){var e=window.event;return e&&e.type==="popstate"?e===Es?!1:(Es=e,!0):(Es=null,!1)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,ny=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,uy=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(e){return Bd.resolve(null).then(e).catch(iy)}:Hd;function iy(e){setTimeout(function(){throw e})}function Ml(e){return e==="head"}function Ld(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),Ga(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Mn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Mn(l);for(var u=l.firstChild;u;){var r=u.nextSibling,d=u.nodeName;u[Ja]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=r}}else l==="body"&&Mn(e.ownerDocument.body);l=n}while(l);Ga(t)}function qd(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 Ts(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":Ts(l),Ai(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function cy(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[Ja])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 sy(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 Yd(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 _s(e){return e.data==="$?"||e.data==="$~"}function Rs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ry(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 Ns=null;function Gd(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 kd(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 Xd(e,t,l){switch(t=Wu(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 Mn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ai(e)}var At=new Map,Qd=new Set;function Fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=Q.d;Q.d={f:oy,r:fy,D:dy,C:hy,L:my,m:vy,X:py,S:yy,M:gy};function oy(){var e=sl.f(),t=ku();return e||t}function fy(e){var t=ia(e);t!==null&&t.tag===5&&t.type==="form"?cf(t):sl.r(e)}var La=typeof document>"u"?null:document;function Vd(e,t,l){var a=La;if(a&&typeof t=="string"&&t){var n=xt(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"),Je(t,"link",e),Ge(t),a.head.appendChild(t)))}}function dy(e){sl.D(e),Vd("dns-prefetch",e,null)}function hy(e,t){sl.C(e,t),Vd("preconnect",e,t)}function my(e,t,l){sl.L(e,t,l);var a=La;if(a&&e&&t){var n='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+xt(l.imageSizes)+'"]')):n+='[href="'+xt(e)+'"]';var u=n;switch(t){case"style":u=qa(e);break;case"script":u=Ya(e)}At.has(u)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),At.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(On(u))||t==="script"&&a.querySelector(Dn(u))||(t=a.createElement("link"),Je(t,"link",e),Ge(t),a.head.appendChild(t)))}}function vy(e,t){sl.m(e,t);var l=La;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Ya(e)}if(!At.has(u)&&(e=g({rel:"modulepreload",href:e},t),At.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Dn(u)))return}a=l.createElement("link"),Je(a,"link",e),Ge(a),l.head.appendChild(a)}}}function yy(e,t,l){sl.S(e,t,l);var a=La;if(a&&e){var n=ca(a).hoistableStyles,u=qa(e);t=t||"default";var r=n.get(u);if(!r){var d={loading:0,preload:null};if(r=a.querySelector(On(u)))d.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=At.get(u))&&zs(e,l);var p=r=a.createElement("link");Ge(p),Je(p,"link",e),p._p=new Promise(function(N,M){p.onload=N,p.onerror=M}),p.addEventListener("load",function(){d.loading|=1}),p.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Iu(r,t,a)}r={type:"stylesheet",instance:r,count:1,state:d},n.set(u,r)}}}function py(e,t){sl.X(e,t);var l=La;if(l&&e){var a=ca(l).hoistableScripts,n=Ya(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=g({src:e,async:!0},t),(t=At.get(n))&&As(e,t),u=l.createElement("script"),Ge(u),Je(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function gy(e,t){sl.M(e,t);var l=La;if(l&&e){var a=ca(l).hoistableScripts,n=Ya(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=g({src:e,async:!0,type:"module"},t),(t=At.get(n))&&As(e,t),u=l.createElement("script"),Ge(u),Je(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Zd(e,t,l,a){var n=(n=ue.current)?Fu(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=qa(l.href),l=ca(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=qa(l.href);var u=ca(n).hoistableStyles,r=u.get(e);if(r||(n=n.ownerDocument||n,r={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,r),(u=n.querySelector(On(e)))&&!u._p&&(r.instance=u,r.state.loading=5),At.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},At.set(e,l),u||by(n,e,l,r.state))),t&&a===null)throw Error(o(528,""));return r}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=Ya(l),l=ca(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 qa(e){return'href="'+xt(e)+'"'}function On(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function by(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}),Je(t,"link",l),Ge(t),e.head.appendChild(t))}function Ya(e){return'[src="'+xt(e)+'"]'}function Dn(e){return"script[async]"+e}function Jd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,Ge(a),a;var n=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ge(a),Je(a,"style",n),Iu(a,l.precedence,e),t.instance=a;case"stylesheet":n=qa(l.href);var u=e.querySelector(On(n));if(u)return t.state.loading|=4,t.instance=u,Ge(u),u;a=Kd(l),(n=At.get(n))&&zs(a,n),u=(e.ownerDocument||e).createElement("link"),Ge(u);var r=u;return r._p=new Promise(function(d,p){r.onload=d,r.onerror=p}),Je(u,"link",a),t.state.loading|=4,Iu(u,l.precedence,e),t.instance=u;case"script":return u=Ya(l.src),(n=e.querySelector(Dn(u)))?(t.instance=n,Ge(n),n):(a=l,(n=At.get(u))&&(a=g({},l),As(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ge(n),Je(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,Iu(a,l.precedence,e));return t.instance}function Iu(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,r=0;r<a.length;r++){var d=a[r];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 zs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function As(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pu=null;function $d(e,t,l){if(Pu===null){var a=new Map,n=Pu=new Map;n.set(l,a)}else n=Pu,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[Ja]||u[Qe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var r=u.getAttribute(t)||"";r=e+r;var d=a.get(r);d?d.push(u):a.set(r,[u])}}return a}function Wd(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Sy(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 Fd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function xy(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=qa(a.href),u=t.querySelector(On(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ei.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ge(u);return}u=t.ownerDocument||t,a=Kd(a),(n=At.get(n))&&zs(a,n),u=u.createElement("link"),Ge(u);var r=u;r._p=new Promise(function(d,p){r.onload=d,r.onerror=p}),Je(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=ei.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Cs=0;function jy(e,t){return e.stylesheets&&e.count===0&&li(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&li(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Cs===0&&(Cs=62500*ly());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&li(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Cs?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ei(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)li(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ti=null;function li(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ti=new Map,t.forEach(Ey,e),ti=null,ei.call(e))}function Ey(e,t){if(!(t.state.loading&4)){var l=ti.get(e);if(l)var a=l.get(null);else{l=new Map,ti.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var r=n[u];(r.nodeName==="LINK"||r.getAttribute("media")!=="not all")&&(l.set(r.dataset.precedence,r),a=r)}a&&l.set(null,a)}n=t.instance,r=n.getAttribute("data-precedence"),u=l.get(r)||a,u===a&&l.set(null,n),l.set(r,n),this.count++,a=ei.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 wn={$$typeof:K,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Ty(e,t,l,a,n,u,r,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=_i(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_i(0),this.hiddenUpdates=_i(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=r,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map}function Id(e,t,l,a,n,u,r,d,p,N,M,U){return e=new Ty(e,t,l,r,p,N,M,U,d),t=1,u===!0&&(t|=24),u=dt(3,null,null,t),e.current=u,u.stateNode=e,t=rc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},hc(u),e}function Pd(e){return e?(e=pa,e):pa}function eh(e,t,l,a,n,u){n=Pd(n),a.context===null?a.context=n:a.pendingContext=n,a=Sl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=xl(e,a,t),l!==null&&(it(l,e,t),dn(l,e,t))}function th(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ms(e,t){th(e,t),(e=e.alternate)&&th(e,t)}function lh(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&it(t,e,67108864),Ms(e,67108864)}}function ah(e){if(e.tag===13||e.tag===31){var t=pt();t=Ri(t);var l=Ql(e,t);l!==null&&it(l,e,t),Ms(e,t)}}var ai=!0;function _y(e,t,l,a){var n=O.T;O.T=null;var u=Q.p;try{Q.p=2,Os(e,t,l,a)}finally{Q.p=u,O.T=n}}function Ry(e,t,l,a){var n=O.T;O.T=null;var u=Q.p;try{Q.p=8,Os(e,t,l,a)}finally{Q.p=u,O.T=n}}function Os(e,t,l,a){if(ai){var n=Ds(a);if(n===null)gs(e,t,a,ni,l),uh(e,a);else if(zy(n,e,t,l,a))a.stopPropagation();else if(uh(e,a),t&4&&-1<Ny.indexOf(e)){for(;n!==null;){var u=ia(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var r=ql(u.pendingLanes);if(r!==0){var d=u;for(d.pendingLanes|=2,d.entangledLanes|=2;r;){var p=1<<31-ot(r);d.entanglements[1]|=p,r&=~p}Yt(u),(he&6)===0&&(Yu=st()+500,zn(0))}}break;case 31:case 13:d=Ql(u,2),d!==null&&it(d,u,2),ku(),Ms(u,2)}if(u=Ds(a),u===null&&gs(e,t,a,ni,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else gs(e,t,a,null,l)}}function Ds(e){return e=Ui(e),ws(e)}var ni=null;function ws(e){if(ni=null,e=ua(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=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 ni=e,null}function nh(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(dm()){case or:return 2;case fr:return 8;case Kn:case hm:return 32;case dr:return 268435456;default:return 32}default:return 32}}var Us=!1,Ol=null,Dl=null,wl=null,Un=new Map,Hn=new Map,Ul=[],Ny="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 uh(e,t){switch(e){case"focusin":case"focusout":Ol=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":wl=null;break;case"pointerover":case"pointerout":Un.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Bn(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=ia(t),t!==null&&lh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function zy(e,t,l,a,n){switch(t){case"focusin":return Ol=Bn(Ol,e,t,l,a,n),!0;case"dragenter":return Dl=Bn(Dl,e,t,l,a,n),!0;case"mouseover":return wl=Bn(wl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return Un.set(u,Bn(Un.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Hn.set(u,Bn(Hn.get(u)||null,e,t,l,a,n)),!0}return!1}function ih(e){var t=ua(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,gr(e.priority,function(){ah(l)});return}}else if(t===31){if(t=E(l),t!==null){e.blockedOn=t,gr(e.priority,function(){ah(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 ui(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ds(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);wi=a,l.target.dispatchEvent(a),wi=null}else return t=ia(l),t!==null&&lh(t),e.blockedOn=l,!1;t.shift()}return!0}function ch(e,t,l){ui(e)&&l.delete(t)}function Ay(){Us=!1,Ol!==null&&ui(Ol)&&(Ol=null),Dl!==null&&ui(Dl)&&(Dl=null),wl!==null&&ui(wl)&&(wl=null),Un.forEach(ch),Hn.forEach(ch)}function ii(e,t){e.blockedOn===t&&(e.blockedOn=null,Us||(Us=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ay)))}var ci=null;function sh(e){ci!==e&&(ci=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ci===e&&(ci=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(ws(a||l)===null)continue;break}var u=ia(l);u!==null&&(e.splice(t,3),t-=3,Dc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ga(e){function t(p){return ii(p,e)}Ol!==null&&ii(Ol,e),Dl!==null&&ii(Dl,e),wl!==null&&ii(wl,e),Un.forEach(t),Hn.forEach(t);for(var l=0;l<Ul.length;l++){var a=Ul[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)ih(l),l.blockedOn===null&&Ul.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],r=n[et]||null;if(typeof u=="function")r||sh(l);else if(r){var d=null;if(u&&u.hasAttribute("formAction")){if(n=u,r=u[et]||null)d=r.formAction;else if(ws(n)!==null)continue}else d=r.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),sh(l)}}}function rh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(r){return n=r})},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 Hs(e){this._internalRoot=e}si.prototype.render=Hs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=pt();eh(l,a,e,t,null,null)},si.prototype.unmount=Hs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;eh(e.current,2,null,e,null,null),ku(),t[na]=null}};function si(e){this._internalRoot=e}si.prototype.unstable_scheduleHydration=function(e){if(e){var t=pr();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Ul.length&&t!==0&&t<Ul[l].priority;l++);Ul.splice(l,0,e),l===0&&ih(e)}};var oh=s.version;if(oh!=="19.2.5")throw Error(o(527,oh,"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?T(e):null,e=e===null?null:e.stateNode,e};var Cy={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ri=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ri.isDisabled&&ri.supportsFiber)try{Va=ri.inject(Cy),rt=ri}catch{}}return qn.createRoot=function(e,t){if(!h(e))throw Error(o(299));var l=!1,a="",n=pf,u=gf,r=bf;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&&(r=t.onRecoverableError)),t=Id(e,1,!1,null,null,l,a,null,n,u,r,rh),e[na]=t.current,ps(e),new Hs(t)},qn.hydrateRoot=function(e,t,l){if(!h(e))throw Error(o(299));var a=!1,n="",u=pf,r=gf,d=bf,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&&(r=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),t=Id(e,1,!0,t,l??null,a,n,p,u,r,d,rh),t.context=Pd(null),l=t.current,a=pt(),a=Ri(a),n=Sl(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,Ka(t,l),Yt(t),e[na]=t.current,ps(e),new si(t)},qn.version="19.2.5",qn}var Sh;function Yy(){if(Sh)return qs.exports;Sh=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(s){console.error(s)}}return i(),qs.exports=qy(),qs.exports}var Gy=Yy();/**
|
|
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 xh="popstate";function jh(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function ky(i={}){function s(o,h){var v;let m=(v=h.state)==null?void 0:v.masked,{pathname:y,search:E,hash:b}=m||o.location;return Ks("",{pathname:y,search:E,hash:b},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:Gn(h)}return Qy(s,f,null,i)}function ze(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function Xt(i,s){if(!i){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function Xy(){return Math.random().toString(36).substring(2,10)}function Eh(i,s){return{usr:i.state,key:i.key,idx:s,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Ks(i,s,f=null,o,h){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof s=="string"?ka(s):s,state:f,key:s&&s.key||o||Xy(),unstable_mask:h}}function Gn({pathname:i="/",search:s="",hash:f=""}){return s&&s!=="?"&&(i+=s.charAt(0)==="?"?s:"?"+s),f&&f!=="#"&&(i+=f.charAt(0)==="#"?f:"#"+f),i}function ka(i){let s={};if(i){let f=i.indexOf("#");f>=0&&(s.hash=i.substring(f),i=i.substring(0,f));let o=i.indexOf("?");o>=0&&(s.search=i.substring(o),i=i.substring(0,o)),i&&(s.pathname=i)}return s}function Qy(i,s,f,o={}){let{window:h=document.defaultView,v5Compat:m=!1}=o,y=h.history,E="POP",b=null,v=T();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function T(){return(y.state||{idx:null}).idx}function g(){E="POP";let Y=T(),L=Y==null?null:Y-v;v=Y,b&&b({action:E,location:B.location,delta:L})}function C(Y,L){E="PUSH";let X=jh(Y)?Y:Ks(B.location,Y,L);v=T()+1;let K=Eh(X,v),k=B.createHref(X.unstable_mask||X);try{y.pushState(K,"",k)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;h.location.assign(k)}m&&b&&b({action:E,location:B.location,delta:1})}function G(Y,L){E="REPLACE";let X=jh(Y)?Y:Ks(B.location,Y,L);v=T();let K=Eh(X,v),k=B.createHref(X.unstable_mask||X);y.replaceState(K,"",k),m&&b&&b({action:E,location:B.location,delta:0})}function w(Y){return Vy(Y)}let B={get action(){return E},get location(){return i(h,y)},listen(Y){if(b)throw new Error("A history only accepts one active listener");return h.addEventListener(xh,g),b=Y,()=>{h.removeEventListener(xh,g),b=null}},createHref(Y){return s(h,Y)},createURL:w,encodeLocation(Y){let L=w(Y);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:C,replace:G,go(Y){return y.go(Y)}};return B}function Vy(i,s=!1){let f="http://localhost";typeof window<"u"&&(f=window.location.origin!=="null"?window.location.origin:window.location.href),ze(f,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Gn(i);return o=o.replace(/ $/,"%20"),!s&&o.startsWith("//")&&(o=f+o),new URL(o,f)}function Hh(i,s,f="/"){return Zy(i,s,f,!1)}function Zy(i,s,f,o){let h=typeof s=="string"?ka(s):s,m=ol(h.pathname||"/",f);if(m==null)return null;let y=Bh(i);Ky(y);let E=null;for(let b=0;E==null&&b<y.length;++b){let v=np(m);E=lp(y[b],v,o)}return E}function Bh(i,s=[],f=[],o="",h=!1){let m=(y,E,b=h,v)=>{let T={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:E,route:y};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(o)&&b)return;ze(T.relativePath.startsWith(o),`Absolute route path "${T.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(o.length)}let g=wt([o,T.relativePath]),C=f.concat(T);y.children&&y.children.length>0&&(ze(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Bh(y.children,s,C,g,b)),!(y.path==null&&!y.index)&&s.push({path:g,score:ep(g,y.index),routesMeta:C})};return i.forEach((y,E)=>{var b;if(y.path===""||!((b=y.path)!=null&&b.includes("?")))m(y,E);else for(let v of Lh(y.path))m(y,E,!0,v)}),s}function Lh(i){let s=i.split("/");if(s.length===0)return[];let[f,...o]=s,h=f.endsWith("?"),m=f.replace(/\?$/,"");if(o.length===0)return h?[m,""]:[m];let y=Lh(o.join("/")),E=[];return E.push(...y.map(b=>b===""?m:[m,b].join("/"))),h&&E.push(...y),E.map(b=>i.startsWith("/")&&b===""?"/":b)}function Ky(i){i.sort((s,f)=>s.score!==f.score?f.score-s.score:tp(s.routesMeta.map(o=>o.childrenIndex),f.routesMeta.map(o=>o.childrenIndex)))}var Jy=/^:[\w-]+$/,$y=3,Wy=2,Fy=1,Iy=10,Py=-2,Th=i=>i==="*";function ep(i,s){let f=i.split("/"),o=f.length;return f.some(Th)&&(o+=Py),s&&(o+=Wy),f.filter(h=>!Th(h)).reduce((h,m)=>h+(Jy.test(m)?$y:m===""?Fy:Iy),o)}function tp(i,s){return i.length===s.length&&i.slice(0,-1).every((o,h)=>o===s[h])?i[i.length-1]-s[s.length-1]:0}function lp(i,s,f=!1){let{routesMeta:o}=i,h={},m="/",y=[];for(let E=0;E<o.length;++E){let b=o[E],v=E===o.length-1,T=m==="/"?s:s.slice(m.length)||"/",g=hi({path:b.relativePath,caseSensitive:b.caseSensitive,end:v},T),C=b.route;if(!g&&v&&f&&!o[o.length-1].route.index&&(g=hi({path:b.relativePath,caseSensitive:b.caseSensitive,end:!1},T)),!g)return null;Object.assign(h,g.params),y.push({params:h,pathname:wt([m,g.pathname]),pathnameBase:sp(wt([m,g.pathnameBase])),route:C}),g.pathnameBase!=="/"&&(m=wt([m,g.pathnameBase]))}return y}function hi(i,s){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[f,o]=ap(i.path,i.caseSensitive,i.end),h=s.match(f);if(!h)return null;let m=h[0],y=m.replace(/(.)\/+$/,"$1"),E=h.slice(1);return{params:o.reduce((v,{paramName:T,isOptional:g},C)=>{if(T==="*"){let w=E[C]||"";y=m.slice(0,m.length-w.length).replace(/(.)\/+$/,"$1")}const G=E[C];return g&&!G?v[T]=void 0:v[T]=(G||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:i}}function ap(i,s=!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,E,b,v,T)=>{if(o.push({paramName:E,isOptional:b!=null}),b){let g=T.charAt(v+y.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),h+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):f?h+="\\/*$":i!==""&&i!=="/"&&(h+="(?:(?=\\/|$))"),[new RegExp(h,s?void 0:"i"),o]}function np(i){try{return i.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){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 (${s}).`),i}}function ol(i,s){if(s==="/")return i;if(!i.toLowerCase().startsWith(s.toLowerCase()))return null;let f=s.endsWith("/")?s.length-1:s.length,o=i.charAt(f);return o&&o!=="/"?null:i.slice(f)||"/"}var up=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ip(i,s="/"){let{pathname:f,search:o="",hash:h=""}=typeof i=="string"?ka(i):i,m;return f?(f=Yh(f),f.startsWith("/")?m=_h(f.substring(1),"/"):m=_h(f,s)):m=s,{pathname:m,search:rp(o),hash:op(h)}}function _h(i,s){let f=mi(s).split("/");return i.split("/").forEach(h=>{h===".."?f.length>1&&f.pop():h!=="."&&f.push(h)}),f.length>1?f.join("/"):"/"}function Xs(i,s,f,o){return`Cannot include a '${i}' character in a manually specified \`to.${s}\` 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 cp(i){return i.filter((s,f)=>f===0||s.route.path&&s.route.path.length>0)}function qh(i){let s=cp(i);return s.map((f,o)=>o===s.length-1?f.pathname:f.pathnameBase)}function Fs(i,s,f,o=!1){let h;typeof i=="string"?h=ka(i):(h={...i},ze(!h.pathname||!h.pathname.includes("?"),Xs("?","pathname","search",h)),ze(!h.pathname||!h.pathname.includes("#"),Xs("#","pathname","hash",h)),ze(!h.search||!h.search.includes("#"),Xs("#","search","hash",h)));let m=i===""||h.pathname==="",y=m?"/":h.pathname,E;if(y==null)E=f;else{let g=s.length-1;if(!o&&y.startsWith("..")){let C=y.split("/");for(;C[0]==="..";)C.shift(),g-=1;h.pathname=C.join("/")}E=g>=0?s[g]:"/"}let b=ip(h,E),v=y&&y!=="/"&&y.endsWith("/"),T=(m||y===".")&&f.endsWith("/");return!b.pathname.endsWith("/")&&(v||T)&&(b.pathname+="/"),b}var Yh=i=>i.replace(/\/\/+/g,"/"),wt=i=>Yh(i.join("/")),mi=i=>i.replace(/\/+$/,""),sp=i=>mi(i).replace(/^\/*/,"/"),rp=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,op=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,fp=class{constructor(i,s,f,o=!1){this.status=i,this.statusText=s||"",this.internal=o,f instanceof Error?(this.data=f.toString(),this.error=f):this.data=f}};function dp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function hp(i){let s=i.map(f=>f.route.path).filter(Boolean);return wt(s)||"/"}var Gh=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function kh(i,s){let f=i;if(typeof f!="string"||!up.test(f))return{absoluteURL:void 0,isExternal:!1,to:f};let o=f,h=!1;if(Gh)try{let m=new URL(window.location.href),y=f.startsWith("//")?new URL(m.protocol+f):new URL(f),E=ol(y.pathname,s);y.origin===m.origin&&E!=null?f=E+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 Xh=["POST","PUT","PATCH","DELETE"];new Set(Xh);var mp=["GET",...Xh];new Set(mp);var Xa=x.createContext(null);Xa.displayName="DataRouter";var vi=x.createContext(null);vi.displayName="DataRouterState";var Qh=x.createContext(!1);function vp(){return x.useContext(Qh)}var Vh=x.createContext({isTransitioning:!1});Vh.displayName="ViewTransition";var yp=x.createContext(new Map);yp.displayName="Fetchers";var pp=x.createContext(null);pp.displayName="Await";var Ct=x.createContext(null);Ct.displayName="Navigation";var Xn=x.createContext(null);Xn.displayName="Location";var Qt=x.createContext({outlet:null,matches:[],isDataRoute:!1});Qt.displayName="Route";var Is=x.createContext(null);Is.displayName="RouteError";var Zh="REACT_ROUTER_ERROR",gp="REDIRECT",bp="ROUTE_ERROR_RESPONSE";function Sp(i){if(i.startsWith(`${Zh}:${gp}:{`))try{let s=JSON.parse(i.slice(28));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.location=="string"&&typeof s.reloadDocument=="boolean"&&typeof s.replace=="boolean")return s}catch{}}function xp(i){if(i.startsWith(`${Zh}:${bp}:{`))try{let s=JSON.parse(i.slice(40));if(typeof s=="object"&&s&&typeof s.status=="number"&&typeof s.statusText=="string")return new fp(s.status,s.statusText,s.data)}catch{}}function jp(i,{relative:s}={}){ze(Qn(),"useHref() may be used only in the context of a <Router> component.");let{basename:f,navigator:o}=x.useContext(Ct),{hash:h,pathname:m,search:y}=Vn(i,{relative:s}),E=m;return f!=="/"&&(E=m==="/"?f:wt([f,m])),o.createHref({pathname:E,search:y,hash:h})}function Qn(){return x.useContext(Xn)!=null}function fl(){return ze(Qn(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Xn).location}var Kh="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jh(i){x.useContext(Ct).static||x.useLayoutEffect(i)}function Ep(){let{isDataRoute:i}=x.useContext(Qt);return i?Hp():Tp()}function Tp(){ze(Qn(),"useNavigate() may be used only in the context of a <Router> component.");let i=x.useContext(Xa),{basename:s,navigator:f}=x.useContext(Ct),{matches:o}=x.useContext(Qt),{pathname:h}=fl(),m=JSON.stringify(qh(o)),y=x.useRef(!1);return Jh(()=>{y.current=!0}),x.useCallback((b,v={})=>{if(Xt(y.current,Kh),!y.current)return;if(typeof b=="number"){f.go(b);return}let T=Fs(b,JSON.parse(m),h,v.relative==="path");i==null&&s!=="/"&&(T.pathname=T.pathname==="/"?s:wt([s,T.pathname])),(v.replace?f.replace:f.push)(T,v.state,v)},[s,f,m,h,i])}x.createContext(null);function Ps(){let{matches:i}=x.useContext(Qt),s=i[i.length-1];return(s==null?void 0:s.params)??{}}function Vn(i,{relative:s}={}){let{matches:f}=x.useContext(Qt),{pathname:o}=fl(),h=JSON.stringify(qh(f));return x.useMemo(()=>Fs(i,JSON.parse(h),o,s==="path"),[i,h,o,s])}function _p(i,s){return $h(i,s)}function $h(i,s,f){var Y;ze(Qn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=x.useContext(Ct),{matches:h}=x.useContext(Qt),m=h[h.length-1],y=m?m.params:{},E=m?m.pathname:"/",b=m?m.pathnameBase:"/",v=m&&m.route;{let L=v&&v.path||"";Fh(E,!v||L.endsWith("*")||L.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${E}" (under <Route path="${L}">) 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="${L}"> to <Route path="${L==="/"?"*":`${L}/*`}">.`)}let T=fl(),g;if(s){let L=typeof s=="string"?ka(s):s;ze(b==="/"||((Y=L.pathname)==null?void 0:Y.startsWith(b)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${L.pathname}" was given in the \`location\` prop.`),g=L}else g=T;let C=g.pathname||"/",G=C;if(b!=="/"){let L=b.replace(/^\//,"").split("/");G="/"+C.replace(/^\//,"").split("/").slice(L.length).join("/")}let w=Hh(i,{pathname:G});Xt(v||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Xt(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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=Cp(w&&w.map(L=>Object.assign({},L,{params:Object.assign({},y,L.params),pathname:wt([b,o.encodeLocation?o.encodeLocation(L.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?b:wt([b,o.encodeLocation?o.encodeLocation(L.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:L.pathnameBase])})),h,f);return s&&B?x.createElement(Xn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},B):B}function Rp(){let i=Up(),s=dp(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"}},s),f?x.createElement("pre",{style:h},f):null,y)}var Np=x.createElement(Rp,null),Wh=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,s){return s.location!==i.location||s.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:s.error,location:s.location,revalidation:i.revalidation||s.revalidation}}componentDidCatch(i,s){this.props.onError?this.props.onError(i,s):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=xp(i.digest);f&&(i=f)}let s=i!==void 0?x.createElement(Qt.Provider,{value:this.props.routeContext},x.createElement(Is.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?x.createElement(zp,{error:i},s):s}};Wh.contextType=Qh;var Qs=new WeakMap;function zp({children:i,error:s}){let{basename:f}=x.useContext(Ct);if(typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){let o=Sp(s.digest);if(o){let h=Qs.get(s);if(h)throw h;let m=kh(o.location,f);if(Gh&&!Qs.get(s))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 Qs.set(s,y),y}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function Ap({routeContext:i,match:s,children:f}){let o=x.useContext(Xa);return o&&o.static&&o.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=s.route.id),x.createElement(Qt.Provider,{value:i},f)}function Cp(i,s=[],f){let o=f==null?void 0:f.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(s.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 T=h.findIndex(g=>g.route.id&&(m==null?void 0:m[g.route.id])!==void 0);ze(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),h=h.slice(0,Math.min(h.length,T+1))}let y=!1,E=-1;if(f&&o){y=o.renderFallback;for(let T=0;T<h.length;T++){let g=h[T];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(E=T),g.route.id){let{loaderData:C,errors:G}=o,w=g.route.loader&&!C.hasOwnProperty(g.route.id)&&(!G||G[g.route.id]===void 0);if(g.route.lazy||w){f.isStatic&&(y=!0),E>=0?h=h.slice(0,E+1):h=[h[0]];break}}}}let b=f==null?void 0:f.onError,v=o&&b?(T,g)=>{var C,G;b(T,{location:o.location,params:((G=(C=o.matches)==null?void 0:C[0])==null?void 0:G.params)??{},unstable_pattern:hp(o.matches),errorInfo:g})}:void 0;return h.reduceRight((T,g,C)=>{let G,w=!1,B=null,Y=null;o&&(G=m&&g.route.id?m[g.route.id]:void 0,B=g.route.errorElement||Np,y&&(E<0&&C===0?(Fh("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,Y=null):E===C&&(w=!0,Y=g.route.hydrateFallbackElement||null)));let L=s.concat(h.slice(0,C+1)),X=()=>{let K;return G?K=B:w?K=Y:g.route.Component?K=x.createElement(g.route.Component,null):g.route.element?K=g.route.element:K=T,x.createElement(Ap,{match:g,routeContext:{outlet:T,matches:L,isDataRoute:o!=null},children:K})};return o&&(g.route.ErrorBoundary||g.route.errorElement||C===0)?x.createElement(Wh,{location:o.location,revalidation:o.revalidation,component:B,error:G,children:X(),routeContext:{outlet:null,matches:L,isDataRoute:!0},onError:v}):X()},null)}function er(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mp(i){let s=x.useContext(Xa);return ze(s,er(i)),s}function Op(i){let s=x.useContext(vi);return ze(s,er(i)),s}function Dp(i){let s=x.useContext(Qt);return ze(s,er(i)),s}function tr(i){let s=Dp(i),f=s.matches[s.matches.length-1];return ze(f.route.id,`${i} can only be used on routes that contain a unique "id"`),f.route.id}function wp(){return tr("useRouteId")}function Up(){var o;let i=x.useContext(Is),s=Op("useRouteError"),f=tr("useRouteError");return i!==void 0?i:(o=s.errors)==null?void 0:o[f]}function Hp(){let{router:i}=Mp("useNavigate"),s=tr("useNavigate"),f=x.useRef(!1);return Jh(()=>{f.current=!0}),x.useCallback(async(h,m={})=>{Xt(f.current,Kh),f.current&&(typeof h=="number"?await i.navigate(h):await i.navigate(h,{fromRouteId:s,...m}))},[i,s])}var Rh={};function Fh(i,s,f){!s&&!Rh[i]&&(Rh[i]=!0,Xt(!1,f))}x.memo(Bp);function Bp({routes:i,future:s,state:f,isStatic:o,onError:h}){return $h(i,void 0,{state:f,isStatic:o,onError:h})}function Gt(i){ze(!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 Lp({basename:i="/",children:s=null,location:f,navigationType:o="POP",navigator:h,static:m=!1,unstable_useTransitions:y}){ze(!Qn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let E=i.replace(/^\/*/,"/"),b=x.useMemo(()=>({basename:E,navigator:h,static:m,unstable_useTransitions:y,future:{}}),[E,h,m,y]);typeof f=="string"&&(f=ka(f));let{pathname:v="/",search:T="",hash:g="",state:C=null,key:G="default",unstable_mask:w}=f,B=x.useMemo(()=>{let Y=ol(v,E);return Y==null?null:{location:{pathname:Y,search:T,hash:g,state:C,key:G,unstable_mask:w},navigationType:o}},[E,v,T,g,C,G,o,w]);return Xt(B!=null,`<Router basename="${E}"> is not able to match the URL "${v}${T}${g}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:x.createElement(Ct.Provider,{value:b},x.createElement(Xn.Provider,{children:s,value:B}))}function Nh({children:i,location:s}){return _p(Js(i),s)}function Js(i,s=[]){let f=[];return x.Children.forEach(i,(o,h)=>{if(!x.isValidElement(o))return;let m=[...s,h];if(o.type===x.Fragment){f.push.apply(f,Js(o.props.children,m));return}ze(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>`),ze(!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=Js(o.props.children,m)),f.push(y)}),f}var fi="get",di="application/x-www-form-urlencoded";function yi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function qp(i){return yi(i)&&i.tagName.toLowerCase()==="button"}function Yp(i){return yi(i)&&i.tagName.toLowerCase()==="form"}function Gp(i){return yi(i)&&i.tagName.toLowerCase()==="input"}function kp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function Xp(i,s){return i.button===0&&(!s||s==="_self")&&!kp(i)}var oi=null;function Qp(){if(oi===null)try{new FormData(document.createElement("form"),0),oi=!1}catch{oi=!0}return oi}var Vp=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vs(i){return i!=null&&!Vp.has(i)?(Xt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${di}"`),null):i}function Zp(i,s){let f,o,h,m,y;if(Yp(i)){let E=i.getAttribute("action");o=E?ol(E,s):null,f=i.getAttribute("method")||fi,h=Vs(i.getAttribute("enctype"))||di,m=new FormData(i)}else if(qp(i)||Gp(i)&&(i.type==="submit"||i.type==="image")){let E=i.form;if(E==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let b=i.getAttribute("formaction")||E.getAttribute("action");if(o=b?ol(b,s):null,f=i.getAttribute("formmethod")||E.getAttribute("method")||fi,h=Vs(i.getAttribute("formenctype"))||Vs(E.getAttribute("enctype"))||di,m=new FormData(E,i),!Qp()){let{name:v,type:T,value:g}=i;if(T==="image"){let C=v?`${v}.`:"";m.append(`${C}x`,"0"),m.append(`${C}y`,"0")}else v&&m.append(v,g)}}else{if(yi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');f=fi,o=null,h=di,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 lr(i,s){if(i===!1||i===null||typeof i>"u")throw new Error(s)}function Ih(i,s,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}`:s&&ol(h.pathname,s)==="/"?h.pathname=`${mi(s)}/_root.${o}`:h.pathname=`${mi(h.pathname)}.${o}`,h}async function Kp(i,s){if(i.id in s)return s[i.id];try{let f=await import(i.module);return s[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 Jp(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 $p(i,s,f){let o=await Promise.all(i.map(async h=>{let m=s.routes[h.route.id];if(m){let y=await Kp(m,f);return y.links?y.links():[]}return[]}));return Pp(o.flat(1).filter(Jp).filter(h=>h.rel==="stylesheet"||h.rel==="preload").map(h=>h.rel==="stylesheet"?{...h,rel:"prefetch",as:"style"}:{...h,rel:"prefetch"}))}function zh(i,s,f,o,h,m){let y=(b,v)=>f[v]?b.route.id!==f[v].route.id:!0,E=(b,v)=>{var T;return f[v].pathname!==b.pathname||((T=f[v].route.path)==null?void 0:T.endsWith("*"))&&f[v].params["*"]!==b.params["*"]};return m==="assets"?s.filter((b,v)=>y(b,v)||E(b,v)):m==="data"?s.filter((b,v)=>{var g;let T=o.routes[b.route.id];if(!T||!T.hasLoader)return!1;if(y(b,v)||E(b,v))return!0;if(b.route.shouldRevalidate){let C=b.route.shouldRevalidate({currentUrl:new URL(h.pathname+h.search+h.hash,window.origin),currentParams:((g=f[0])==null?void 0:g.params)||{},nextUrl:new URL(i,window.origin),nextParams:b.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function Wp(i,s,{includeHydrateFallback:f}={}){return Fp(i.map(o=>{let h=s.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 Fp(i){return[...new Set(i)]}function Ip(i){let s={},f=Object.keys(i).sort();for(let o of f)s[o]=i[o];return s}function Pp(i,s){let f=new Set;return new Set(s),i.reduce((o,h)=>{let m=JSON.stringify(Ip(h));return f.has(m)||(f.add(m),o.push({key:m,link:h})),o},[])}function ar(){let i=x.useContext(Xa);return lr(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function eg(){let i=x.useContext(vi);return lr(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var nr=x.createContext(void 0);nr.displayName="FrameworkContext";function ur(){let i=x.useContext(nr);return lr(i,"You must render this element inside a <HydratedRouter> element"),i}function tg(i,s){let f=x.useContext(nr),[o,h]=x.useState(!1),[m,y]=x.useState(!1),{onFocus:E,onBlur:b,onMouseEnter:v,onMouseLeave:T,onTouchStart:g}=s,C=x.useRef(null);x.useEffect(()=>{if(i==="render"&&y(!0),i==="viewport"){let B=L=>{L.forEach(X=>{y(X.isIntersecting)})},Y=new IntersectionObserver(B,{threshold:.5});return C.current&&Y.observe(C.current),()=>{Y.disconnect()}}},[i]),x.useEffect(()=>{if(o){let B=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(B)}}},[o]);let G=()=>{h(!0)},w=()=>{h(!1),y(!1)};return f?i!=="intent"?[m,C,{}]:[m,C,{onFocus:Yn(E,G),onBlur:Yn(b,w),onMouseEnter:Yn(v,G),onMouseLeave:Yn(T,w),onTouchStart:Yn(g,G)}]:[!1,C,{}]}function Yn(i,s){return f=>{i&&i(f),f.defaultPrevented||s(f)}}function lg({page:i,...s}){let f=vp(),{router:o}=ar(),h=x.useMemo(()=>Hh(o.routes,i,o.basename),[o.routes,i,o.basename]);return h?f?x.createElement(ng,{page:i,matches:h,...s}):x.createElement(ug,{page:i,matches:h,...s}):null}function ag(i){let{manifest:s,routeModules:f}=ur(),[o,h]=x.useState([]);return x.useEffect(()=>{let m=!1;return $p(i,s,f).then(y=>{m||h(y)}),()=>{m=!0}},[i,s,f]),o}function ng({page:i,matches:s,...f}){let o=fl(),{future:h}=ur(),{basename:m}=ar(),y=x.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let E=Ih(i,m,h.unstable_trailingSlashAwareDataRequests,"rsc"),b=!1,v=[];for(let T of s)typeof T.route.shouldRevalidate=="function"?b=!0:v.push(T.route.id);return b&&v.length>0&&E.searchParams.set("_routes",v.join(",")),[E.pathname+E.search]},[m,h.unstable_trailingSlashAwareDataRequests,i,o,s]);return x.createElement(x.Fragment,null,y.map(E=>x.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...f})))}function ug({page:i,matches:s,...f}){let o=fl(),{future:h,manifest:m,routeModules:y}=ur(),{basename:E}=ar(),{loaderData:b,matches:v}=eg(),T=x.useMemo(()=>zh(i,s,v,m,o,"data"),[i,s,v,m,o]),g=x.useMemo(()=>zh(i,s,v,m,o,"assets"),[i,s,v,m,o]),C=x.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let B=new Set,Y=!1;if(s.forEach(X=>{var k;let K=m.routes[X.route.id];!K||!K.hasLoader||(!T.some(q=>q.route.id===X.route.id)&&X.route.id in b&&((k=y[X.route.id])!=null&&k.shouldRevalidate)||K.hasClientLoader?Y=!0:B.add(X.route.id))}),B.size===0)return[];let L=Ih(i,E,h.unstable_trailingSlashAwareDataRequests,"data");return Y&&B.size>0&&L.searchParams.set("_routes",s.filter(X=>B.has(X.route.id)).map(X=>X.route.id).join(",")),[L.pathname+L.search]},[E,h.unstable_trailingSlashAwareDataRequests,b,o,m,T,s,i,y]),G=x.useMemo(()=>Wp(g,m),[g,m]),w=ag(g);return x.createElement(x.Fragment,null,C.map(B=>x.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...f})),G.map(B=>x.createElement("link",{key:B,rel:"modulepreload",href:B,...f})),w.map(({key:B,link:Y})=>x.createElement("link",{key:B,nonce:f.nonce,...Y,crossOrigin:Y.crossOrigin??f.crossOrigin})))}function ig(...i){return s=>{i.forEach(f=>{typeof f=="function"?f(s):f!=null&&(f.current=s)})}}var cg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cg&&(window.__reactRouterVersion="7.14.2")}catch{}function sg({basename:i,children:s,unstable_useTransitions:f,window:o}){let h=x.useRef();h.current==null&&(h.current=ky({window:o,v5Compat:!0}));let m=h.current,[y,E]=x.useState({action:m.action,location:m.location}),b=x.useCallback(v=>{f===!1?E(v):x.startTransition(()=>E(v))},[f]);return x.useLayoutEffect(()=>m.listen(b),[m,b]),x.createElement(Lp,{basename:i,children:s,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:f})}var Ph=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$e=x.forwardRef(function({onClick:s,discover:f="render",prefetch:o="none",relative:h,reloadDocument:m,replace:y,unstable_mask:E,state:b,target:v,to:T,preventScrollReset:g,viewTransition:C,unstable_defaultShouldRevalidate:G,...w},B){let{basename:Y,navigator:L,unstable_useTransitions:X}=x.useContext(Ct),K=typeof T=="string"&&Ph.test(T),k=kh(T,Y);T=k.to;let q=jp(T,{relative:h}),$=fl(),Z=null;if(E){let we=Fs(E,[],$.unstable_mask?$.unstable_mask.pathname:"/",!0);Y!=="/"&&(we.pathname=we.pathname==="/"?Y:wt([Y,we.pathname])),Z=L.createHref(we)}let[Te,qe,Ut]=tg(o,w),gt=dg(T,{replace:y,unstable_mask:E,state:b,target:v,preventScrollReset:g,relative:h,viewTransition:C,unstable_defaultShouldRevalidate:G,unstable_useTransitions:X});function We(we){s&&s(we),we.defaultPrevented||gt(we)}let Ht=!(k.isExternal||m),bt=x.createElement("a",{...w,...Ut,href:(Ht?Z:void 0)||k.absoluteURL||q,onClick:Ht?We:s,ref:ig(B,qe),target:v,"data-discover":!K&&f==="render"?"true":void 0});return Te&&!K?x.createElement(x.Fragment,null,bt,x.createElement(lg,{page:q})):bt});$e.displayName="Link";var rg=x.forwardRef(function({"aria-current":s="page",caseSensitive:f=!1,className:o="",end:h=!1,style:m,to:y,viewTransition:E,children:b,...v},T){let g=Vn(y,{relative:v.relative}),C=fl(),G=x.useContext(vi),{navigator:w,basename:B}=x.useContext(Ct),Y=G!=null&&pg(g)&&E===!0,L=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,X=C.pathname,K=G&&G.navigation&&G.navigation.location?G.navigation.location.pathname:null;f||(X=X.toLowerCase(),K=K?K.toLowerCase():null,L=L.toLowerCase()),K&&B&&(K=ol(K,B)||K);const k=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let q=X===L||!h&&X.startsWith(L)&&X.charAt(k)==="/",$=K!=null&&(K===L||!h&&K.startsWith(L)&&K.charAt(L.length)==="/"),Z={isActive:q,isPending:$,isTransitioning:Y},Te=q?s:void 0,qe;typeof o=="function"?qe=o(Z):qe=[o,q?"active":null,$?"pending":null,Y?"transitioning":null].filter(Boolean).join(" ");let Ut=typeof m=="function"?m(Z):m;return x.createElement($e,{...v,"aria-current":Te,className:qe,ref:T,style:Ut,to:y,viewTransition:E},typeof b=="function"?b(Z):b)});rg.displayName="NavLink";var og=x.forwardRef(({discover:i="render",fetcherKey:s,navigate:f,reloadDocument:o,replace:h,state:m,method:y=fi,action:E,onSubmit:b,relative:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:C,...G},w)=>{let{unstable_useTransitions:B}=x.useContext(Ct),Y=vg(),L=yg(E,{relative:v}),X=y.toLowerCase()==="get"?"get":"post",K=typeof E=="string"&&Ph.test(E),k=q=>{if(b&&b(q),q.defaultPrevented)return;q.preventDefault();let $=q.nativeEvent.submitter,Z=($==null?void 0:$.getAttribute("formmethod"))||y,Te=()=>Y($||q.currentTarget,{fetcherKey:s,method:Z,navigate:f,replace:h,state:m,relative:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:C});B&&f!==!1?x.startTransition(()=>Te()):Te()};return x.createElement("form",{ref:w,method:X,action:L,onSubmit:o?b:k,...G,"data-discover":!K&&i==="render"?"true":void 0})});og.displayName="Form";function fg(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function em(i){let s=x.useContext(Xa);return ze(s,fg(i)),s}function dg(i,{target:s,replace:f,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:E,unstable_defaultShouldRevalidate:b,unstable_useTransitions:v}={}){let T=Ep(),g=fl(),C=Vn(i,{relative:y});return x.useCallback(G=>{if(Xp(G,s)){G.preventDefault();let w=f!==void 0?f:Gn(g)===Gn(C),B=()=>T(i,{replace:w,unstable_mask:o,state:h,preventScrollReset:m,relative:y,viewTransition:E,unstable_defaultShouldRevalidate:b});v?x.startTransition(()=>B()):B()}},[g,T,C,f,o,h,s,i,m,y,E,b,v])}var hg=0,mg=()=>`__${String(++hg)}__`;function vg(){let{router:i}=em("useSubmit"),{basename:s}=x.useContext(Ct),f=wp(),o=i.fetch,h=i.navigate;return x.useCallback(async(m,y={})=>{let{action:E,method:b,encType:v,formData:T,body:g}=Zp(m,s);if(y.navigate===!1){let C=y.fetcherKey||mg();await o(C,f,y.action||E,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:g,formMethod:y.method||b,formEncType:y.encType||v,flushSync:y.flushSync})}else await h(y.action||E,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:g,formMethod:y.method||b,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:f,flushSync:y.flushSync,viewTransition:y.viewTransition})},[o,h,s,f])}function yg(i,{relative:s}={}){let{basename:f}=x.useContext(Ct),o=x.useContext(Qt);ze(o,"useFormAction must be used inside a RouteContext");let[h]=o.matches.slice(-1),m={...Vn(i||".",{relative:s})},y=fl();if(i==null){m.search=y.search;let E=new URLSearchParams(m.search),b=E.getAll("index");if(b.some(T=>T==="")){E.delete("index"),b.filter(g=>g).forEach(g=>E.append("index",g));let T=E.toString();m.search=T?`?${T}`:""}}return(!i||i===".")&&h.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),f!=="/"&&(m.pathname=m.pathname==="/"?f:wt([f,m.pathname])),Gn(m)}function pg(i,{relative:s}={}){let f=x.useContext(Vh);ze(f!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=em("useViewTransitionState"),h=Vn(i,{relative:s});if(!f.isTransitioning)return!1;let m=ol(f.currentLocation.pathname,o)||f.currentLocation.pathname,y=ol(f.nextLocation.pathname,o)||f.nextLocation.pathname;return hi(h.pathname,y)!=null||hi(h.pathname,m)!=null}const tm=/^\/vault\/([^/]+)\/admin(?=\/|$)/;function lm(){if(typeof window>"u")return null;const i=window.location.pathname.match(tm);if(!i)return null;try{return decodeURIComponent(i[1])}catch{return null}}function gg(){if(typeof window>"u")return"";const i=window.location.pathname,s=i.match(tm);return s?`/vault/${s[1]}/admin`:i==="/admin"||i.startsWith("/admin/")?"/admin":""}let Bl=null,kt=null,aa=null,rl=null,Ah=!1;const bg=.8,Sg=1e3,xg=3e4;function jg(){if(typeof window>"u")return;const i=window.location.hash;if(!i||i.length<2)return;const s=new URLSearchParams(i.slice(1)),f=s.get("token");if(!f)return;Bl=f,kt=null,s.delete("token");const o=s.toString(),h=o.length>0?`#${o}`:"",m=`${window.location.pathname}${window.location.search}${h}`;window.history.replaceState(null,"",m)}function ir(){return Bl}function Eg(){Bl=null,kt=null,rl=null,pi()}async function kn(i){if(typeof window>"u")return{kind:"network-error",message:"no window"};let s;try{s=await fetch(`/admin/vault-admin-token/${encodeURIComponent(i)}`,{method:"GET",headers:{accept:"application/json"},credentials:"same-origin"})}catch(o){return{kind:"network-error",message:o instanceof Error?o.message:String(o)}}if(s.status===401||s.status===403||s.status===404)return{kind:"auth-required",status:s.status};if(!s.ok)return{kind:"network-error",message:`hub returned ${s.status}`};let f;try{f=await s.json()}catch(o){return{kind:"network-error",message:o instanceof Error?o.message:"could not parse mint response"}}return typeof f.token!="string"||f.token.length===0?{kind:"network-error",message:"mint response missing token"}:(Bl=f.token,kt=f.expires_at?Tg(f.expires_at):null,rl=i,am(),Ng(),{kind:"ok",token:f.token})}function Tg(i){const s=Date.parse(i);return Number.isNaN(s)?null:s}async function $s(i){if(Bl){if(kt===null||kt>Date.now())return{kind:"ok",token:Bl};Bl=null,kt=null,pi()}return kn(i)}async function _g(i){typeof window>"u"||Bl||await kn(i).catch(()=>{})}function am(){if(pi(),kt===null||rl===null||typeof document<"u"&&document.visibilityState==="hidden")return;const i=Date.now(),s=kt-i;if(s<=0)return;const f=Math.max(Math.floor(s*bg),Sg);aa=setTimeout(()=>{Rg()},f)}function pi(){aa!==null&&(clearTimeout(aa),aa=null)}async function Rg(){if(aa=null,rl===null)return;const i=await kn(rl);i.kind!=="ok"&&(typeof console<"u"&&console.warn("[vault-admin-spa] proactive token refresh failed; will retry once",i),aa=setTimeout(()=>{aa=null,rl!==null&&kn(rl).catch(()=>{})},xg))}function Ng(){Ah||typeof document>"u"||(Ah=!0,document.addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){pi();return}if(rl!==null){if(kt!==null&&kt<=Date.now()){kn(rl).catch(()=>{});return}am()}}))}class Ee extends Error{constructor(s,f){super(f),this.status=s,this.name="HttpError"}}async function Xe(i,s,f={}){let o=ir();if(!o){const v=await $s(i);if(v.kind!=="ok")throw new Ee(401,"no admin token — sign in to the hub to refresh");o=v.token}const{headers:h,...m}=f,y=v=>({accept:"application/json",...h??{},authorization:`Bearer ${v}`}),E=await fetch(s,{...m,headers:y(o)});if(E.status!==401)return E;Eg();const b=await $s(i);return b.kind!=="ok"?E:fetch(s,{...m,headers:y(b.token)})}async function zg(){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 Ag(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/`);if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function Cg(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror`);if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function Mg(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Ee(f.status,await ct(f));return await f.json()}async function Og(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/run-now`,{method:"POST"});if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function Dg(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/push-now`,{method:"POST"});if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function nm(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`);if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function wg(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth`,{method:"DELETE"});if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function Ug(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/device-code`,{method:"POST"});if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function Hg(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/poll`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({polling_id:s})});if(!f.ok&&f.status!==404)throw new Ee(f.status,await ct(f));return await f.json()}async function Bg(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/pat`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Ee(f.status,await ct(f));return await f.json()}async function um(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/repos`);if(!s.ok)throw new Ee(s.status,await ct(s));return await s.json()}async function Lg(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/create-repo`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Ee(f.status,await ct(f));return await f.json()}async function qg(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/auth/github/select-repo`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Ee(f.status,await ct(f));return await f.json()}async function Yg(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/.parachute/mirror/import`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(s)});if(!f.ok)throw new Ee(f.status,await ct(f));return await f.json()}async function ct(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}function im(i){const s=i.split(".");if(s.length!==3)return null;try{const f=s[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 Gg(i){if(!i)return[];const s=im(i);if(!s)return[];const f=s.scope;if(typeof f=="string"&&f.length>0)return f.split(/\s+/).filter(h=>h.length>0);const o=s.scopes;return Array.isArray(o)?o.filter(h=>typeof h=="string"&&h.length>0):[]}function cm(i){return Gg(ir()).includes(`vault:${i}:admin`)}function kg(){const i=ir();if(!i)return null;const s=im(i);if(!s)return null;const f=s.iss;return typeof f!="string"||f.length===0?null:f.replace(/\/$/,"")}const Ch=5e3;function cr({vaultName:i,status:s,onRecovered:f}){x.useEffect(()=>{let y=!1,E=null;const b=async()=>{if(y||typeof document<"u"&&document.visibilityState!=="visible")return;const T=await $s(i);if(!y){if(T.kind==="ok"){f();return}E=setTimeout(()=>void b(),Ch)}},v=()=>{typeof document>"u"||document.visibilityState==="visible"&&(E!==null&&(clearTimeout(E),E=null),b())};return E=setTimeout(()=>void b(),Ch),typeof document<"u"&&document.addEventListener("visibilitychange",v),()=>{y=!0,E!==null&&clearTimeout(E),typeof document<"u"&&document.removeEventListener("visibilitychange",v)}},[i,f]);const o=Xg(),h=`/login?next=${encodeURIComponent(o)}`,m=s===404?"This hub doesn't host a vault by that name.":"You're not signed in to the hub.";return c.jsxs("div",{className:"warn-banner",role:"status",children:[c.jsxs("p",{style:{margin:"0 0 0.5rem"},children:[m," ",c.jsx("a",{href:h,children:"Sign in to the hub →"})]}),c.jsx("p",{className:"dim",style:{margin:0,fontSize:"0.85rem"},children:"After signing in, this page will refresh automatically."})]})}function Xg(){return typeof window>"u"?"/":`${window.location.pathname}${window.location.search}${window.location.hash}`}function Mh({vaultName:i}={}){const s=Ps(),f=i??s.name,o=i!==void 0,h=o?"/tokens":`/vault/${encodeURIComponent(f??"")}/tokens`,m=o?"/mirror":`/vault/${encodeURIComponent(f??"")}/mirror`,[y,E]=x.useState({kind:"loading"}),[b,v]=x.useState(0),T=x.useCallback(()=>v(G=>G+1),[]);if(x.useEffect(()=>{let G=!1;if(!f){E({kind:"missing"});return}return E({kind:"loading"}),Ag(f).then(w=>{G||E({kind:"ok",vault:w})}).catch(w=>{if(G)return;if(w instanceof Ee){if(w.status===401||w.status===403){E({kind:"auth-required",status:w.status});return}if(w.status===404){E({kind:"missing"});return}E({kind:"error",message:`${w.status}: ${w.message}`});return}const B=w instanceof Error?w.message:String(w);E({kind:"error",message:B})}),()=>{G=!0}},[f,b]),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.jsx(cr,{vaultName:f??"",status:y.status,onRecovered:T}),o?null:c.jsx($e,{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($e,{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($e,{to:"/",children:"← Back to vaults"})]});const{vault:g}=y,C=`/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($e,{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:C})}),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($e,{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($e,{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(Qg,{vaultName:g.name})]})]})]})}function Qg({vaultName:i}){const s=kg();if(!s)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=`${s}/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 Vg=[{value:"events",label:"On change (default)"},{value:"manual",label:"Manual only"}],Zg=[{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 Oh({vaultName:i}={}){const s=Ps(),f=i??s.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=x.useState({kind:"loading"}),[E,b]=x.useState(0);x.useEffect(()=>{let T=!1;if(f)return y({kind:"loading"}),Cg(f).then(g=>{T||y({kind:"ok",snapshot:g})}).catch(g=>{if(T)return;if(g instanceof Ee&&(g.status===401||g.status===403)){y({kind:"auth-required",status:g.status});return}const C=g instanceof Error?g.message:String(g);y({kind:"error",message:C})}),()=>{T=!0}},[f,E]);const v=x.useCallback(()=>b(T=>T+1),[]);return 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($e,{to:h,className:"muted",children:"← Vault detail"})]}),m.kind==="loading"?c.jsx("p",{className:"muted",children:"Loading…"}):null,m.kind==="auth-required"?c.jsx(cr,{vaultName:f,status:m.status,onRecovered:v}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(Kg,{vaultName:f,snapshot:m.snapshot,onRefresh:()=>b(T=>T+1),onSnapshot:T=>y({kind:"ok",snapshot:T})}):null]}):c.jsxs("div",{children:[c.jsx("h2",{children:"Mirror"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx($e,{to:"/",children:"← Back to vaults"})]})}function Kg({vaultName:i,snapshot:s,onRefresh:f,onSnapshot:o}){const h=cm(i),[m,y]=x.useState(null),[E,b]=x.useState(null);return x.useEffect(()=>{if(!h)return;let v=!1;return nm(i).then(T=>{v||y(T)}).catch(T=>{v||b(T instanceof Error?T.message:String(T))}),()=>{v=!0}},[i,h]),c.jsxs(c.Fragment,{children:[c.jsx(Jg,{status:s.status,config:s.config,creds:m,canRun:h&&s.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($g,{vaultName:i,initial:s.config,readOnly:!h,creds:m,onSaved:v=>{o(v),f()}}),h?c.jsx(Wg,{vaultName:i,creds:m,credsError:E,onCredsChanged:y,onCredsSaved:()=>{f()},locationIsExternal:s.config.location==="external"}):null,h?c.jsx(t0,{vaultName:i,creds:m}):null]})}function Jg({status:i,config:s,creds:f,canRun:o,vaultName:h,onSnapshot:m}){const y=s.enabled,[E,b]=x.useState(!1),[v,T]=x.useState(!1),[g,C]=x.useState(null),G=async()=>{b(!0),C(null);try{const L=await Og(h);m(L)}catch(L){C(L instanceof Error?L.message:String(L))}finally{b(!1)}},w=async()=>{T(!0),C(null);try{const L=await Dg(h);m(L)}catch(L){C(L instanceof Error?L.message:String(L))}finally{T(!1)}},B=!!(f!=null&&f.active_method)||s.auto_push,Y=!o||v||!B;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:y?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:"—"})}),c.jsx("div",{children:"Last push"}),c.jsx("div",{children:i.last_push_at?c.jsxs(c.Fragment,{children:[c.jsx("code",{children:i.last_push_at}),i.last_push_sha?c.jsxs("span",{className:"dim",children:[" ","· ",c.jsx("code",{children:i.last_push_sha.slice(0,10)})]}):null]}):c.jsx("span",{className:"dim",children:"never"})}),i.commits_unpushed!==null&&i.commits_unpushed>0?c.jsxs(c.Fragment,{children:[c.jsx("div",{}),c.jsxs("div",{className:"dim",children:[i.commits_unpushed," commit",i.commits_unpushed===1?"":"s"," ready to push"]})]}):null]}),i.last_push_error?c.jsxs("div",{className:"error-banner",style:{marginTop:"1rem"},children:[c.jsx("strong",{children:"Last push failed:"})," ",c.jsx("code",{children:i.last_push_error})]}):null,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,g?c.jsx("div",{className:"error-banner",style:{marginTop:"1rem"},children:c.jsx("code",{children:g})}):null,c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:G,disabled:!o||E,title:y?o?void 0:"Admin scope required to trigger a manual export.":"Enable the mirror first, then trigger a manual export.",children:E?"Running…":"Run export now"}),c.jsx("button",{type:"button",className:"secondary",onClick:w,disabled:Y,title:y?o?B?void 0:"Wire credentials or turn on auto-push to push to a remote.":"Admin scope required to push.":"Enable the mirror first, then push.",children:v?"Pushing…":"Push now"})]})]})}function $g({vaultName:i,initial:s,readOnly:f,creds:o,onSaved:h}){const[m,y]=x.useState(s),[E,b]=x.useState(!1),[v,T]=x.useState(!1),[g,C]=x.useState(null),[G,w]=x.useState(null),[B,Y]=x.useState(0);x.useEffect(()=>{y(s)},[s]);const L=k=>{const q=k.apply(m);y(q)},X=k=>{y(q=>({...q,sync_mode:k}))},K=async k=>{if(k.preventDefault(),!f){T(!0),C(null),w(null);try{const q=await Mg(i,m);h(q),Y($=>$+1),setTimeout(()=>Y(0),3e3)}catch(q){if(q instanceof Ee){const $=q.message;C($);const Z=$.toLowerCase();Z.includes("external_path")?w("external_path"):Z.includes("commit_template")?w("commit_template"):Z.includes("safety_net_seconds")?w("safety_net_seconds"):Z.includes("sync_mode")?w("sync_mode"):Z.includes("auto_push")?w("auto_push"):Z.includes("location")?w("location"):w(null)}else C(q instanceof Error?q.message:String(q))}finally{T(!1)}}};return c.jsxs("form",{className:"section",onSubmit:K,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:k=>y(q=>({...q,enabled:k.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:Zg.map(k=>c.jsxs("button",{type:"button",className:"preset-card",disabled:f,onClick:()=>L(k),"aria-label":`Apply ${k.label} preset`,children:[c.jsx("strong",{children:k.label}),c.jsx("span",{className:"dim",children:k.subtext})]},k.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(k=>({...k,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(k=>({...k,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:k=>y(q=>({...q,external_path:k.target.value.length>0?k.target.value:null})),placeholder:"/Users/you/Documents/vault-mirror","aria-invalid":G==="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:k=>X(k.target.value),children:Vg.map(k=>c.jsx("option",{value:k.value,children:k.label},k.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:k=>y(q=>({...q,auto_commit:k.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"||o!=null&&o.active_method?c.jsxs("div",{className:"form-row",children:[c.jsxs("label",{children:[c.jsx("input",{type:"checkbox",checked:m.auto_push,disabled:f,onChange:k=>y(q=>({...q,auto_push:k.target.checked})),style:{width:"auto",marginRight:"0.5rem"}}),"Push after each commit"]}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0",fontSize:"0.9em"},children:"When credentials are configured, vault can push the mirror's commits to your remote regardless of whether the mirror folder lives under vault's data dir or somewhere visible."}),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:()=>b(k=>!k),children:[E?"Hide":"Show"," advanced"]})}),E?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:k=>y(q=>({...q,commit_template:k.target.value})),"aria-invalid":G==="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,g?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:g})}):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 Wg({vaultName:i,creds:s,credsError:f,onCredsChanged:o,onCredsSaved:h,locationIsExternal:m}){const[y,E]=x.useState(!1),[b,v]=x.useState(!1),[T,g]=x.useState(!1),[C,G]=x.useState(null),[w,B]=x.useState(null),Y=(s==null?void 0:s.active_method)!==null&&(s==null?void 0:s.active_method)!==void 0,L=async()=>{if(confirm("Disconnect git remote credentials? Auto-push will stop working until you reconnect.")){g(!0),G(null);try{const X=await wg(i);o(X)}catch(X){G(X instanceof Error?X.message:String(X))}finally{g(!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."]}),!m&&!(s!=null&&s.active_method)?c.jsx("div",{className:"info-banner",style:{marginBottom:"0.75rem"},role:"status",children:"Internal mirrors live under the vault's data directory. To push them to a remote, paste a Personal Access Token + remote URL below — that wires the remote and turns on auto-push automatically."}):null,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:(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth?c.jsxs(c.Fragment,{children:["Connected to ",c.jsxs("code",{children:["@",s.github_oauth.user_login]})," on GitHub"]}):(s==null?void 0:s.active_method)==="pat"&&s.pat?c.jsxs(c.Fragment,{children:["Custom credential: ",c.jsx("code",{children:s.pat.label})]}):null}),(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Token"}),c.jsxs("div",{children:[c.jsx("code",{children:s.github_oauth.token_preview})," ",c.jsxs("span",{className:"dim",children:["· scope ",s.github_oauth.scope||"—"," · authorized"," ",s.github_oauth.authorized_at.slice(0,10)]})]})]}):null,(s==null?void 0:s.active_method)==="pat"&&s.pat?c.jsxs(c.Fragment,{children:[c.jsx("div",{children:"Remote"}),c.jsx("div",{children:c.jsx("code",{children:s.pat.remote_url})}),c.jsx("div",{children:"Token"}),c.jsx("div",{children:c.jsx("code",{children:s.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."}),C?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:C})}):null,w?c.jsxs("div",{className:"mint-banner",style:{marginBottom:"0.75rem"},role:"status",children:[c.jsx("strong",{children:"Credentials saved."})," ",(()=>{const X=w,K=X.initial_push.fired&&X.initial_push.pushed?X.initial_push.sha:void 0,k=X.initial_push.fired&&!X.initial_push.pushed?X.initial_push.error:void 0;return X.auto_push_was_already_enabled?K?c.jsxs(c.Fragment,{children:["Auto-push was already on; just pushed"," ",c.jsx("code",{children:K.slice(0,10)}),"."]}):k?c.jsx(c.Fragment,{children:"Auto-push was already on; the push attempt failed — see the Status card above for details."}):c.jsx(c.Fragment,{children:"Auto-push was already on; nothing to push right now."}):X.auto_push_enabled?K?c.jsxs(c.Fragment,{children:["Auto-push enabled and the first push landed"," ",c.jsx("code",{children:K.slice(0,10)}),". Your next commit will push to the remote too."]}):k?c.jsx(c.Fragment,{children:"Auto-push enabled. The initial push attempt failed — see the Status card above for the error."}):c.jsx(c.Fragment,{children:"Auto-push enabled. Your next commit will push to the remote."}):c.jsx(c.Fragment,{children:"Credentials wired. Auto-push remains off; flip it on in Configuration above to push commits automatically."})})()," ",c.jsx("button",{type:"button",className:"secondary",onClick:()=>B(null),style:{marginLeft:"0.5rem"},"aria-label":"Dismiss",children:"Dismiss"})]}):null,c.jsx("div",{className:"actions",children:Y?c.jsx("button",{type:"button",className:"secondary",onClick:L,disabled:T,children:T?"Disconnecting…":"Disconnect"}):c.jsxs(c.Fragment,{children:[c.jsx("button",{type:"button",onClick:()=>v(!0),children:"Use Personal Access Token"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>E(!0),children:"Connect GitHub (one-click for GitHub users)"})]})}),y?c.jsx(Fg,{vaultName:i,onClose:()=>E(!1),onConnected:(X,K)=>{o(X),K&&(B(K),h(K)),E(!1)}}):null,b?c.jsx(e0,{vaultName:i,onClose:()=>v(!1),onSaved:X=>{o(X),B(X),h(X),v(!1)}}):null]})}function Fg({vaultName:i,onClose:s,onConnected:f}){const[o,h]=x.useState({kind:"starting"}),[m,y]=x.useState(Date.now()),E=x.useRef(!1);x.useEffect(()=>{const v=setInterval(()=>y(Date.now()),1e3);return()=>clearInterval(v)},[]),x.useEffect(()=>{let v=!1;return E.current=!1,Ug(i).then(T=>{v||h({kind:"polling",code:T,pollIntervalMs:Math.max(T.interval,1)*1e3,startedAt:Date.now()})}).catch(T=>{v||h({kind:"error",message:T instanceof Error?T.message:String(T)})}),()=>{v=!0,E.current=!0}},[i]),x.useEffect(()=>{if(o.kind!=="polling")return;const v=o.code;let T=!1,g=null,C=o.pollIntervalMs;const G=async()=>{if(!(T||E.current))try{const w=await Hg(i,v.polling_id);if(T)return;if(w.state==="granted"){h({kind:"granted",user:{login:w.user.login}});return}if(w.state==="denied"){h({kind:"error",message:"Authorization denied."});return}if(w.state==="expired"){h({kind:"error",message:"The device code expired. Try again."});return}w.state==="slow_down"&&(C=w.interval*1e3),g=setTimeout(G,C)}catch(w){if(T)return;h({kind:"error",message:w instanceof Error?w.message:String(w)})}};return g=setTimeout(G,C),()=>{T=!0,g&&clearTimeout(g)}},[o,i]);const b=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:s,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:()=>b(o.code.user_code),children:"Copy"})]}),c.jsxs("p",{className:"dim",children:["Waiting for authorization…"," ",Ig(o.code.expires_in,o.startedAt,m)]})]}):null,o.kind==="granted"?c.jsx(Pg,{vaultName:i,user:o.user,onPicked:async(v,T)=>{const g=await qg(i,{owner:v,name:T}),C=await nm(i);f(C,g)},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:s,children:"Close"})]})]}):null]})})}function Ig(i,s,f){const o=Math.floor((f-s)/1e3),h=Math.max(0,i-o),m=Math.floor(h/60),y=h%60;return`${m}:${String(y).padStart(2,"0")} remaining`}function Pg({vaultName:i,user:s,onPicked:f,onError:o}){const[h,m]=x.useState(null),[y,E]=x.useState(!1),[b,v]=x.useState(""),[T,g]=x.useState(null),[C,G]=x.useState(!1),[w,B]=x.useState(""),[Y,L]=x.useState(!1);x.useEffect(()=>{let q=!1;return um(i).then(({repos:$,truncated:Z})=>{q||(m($),E(!!Z))}).catch($=>{q||o($ instanceof Error?$.message:String($))}),()=>{q=!0}},[i,o]);const X=(h??[]).filter(q=>b.length===0?!0:q.full_name.toLowerCase().includes(b.toLowerCase())),K=async(q,$)=>{g(`${q}/${$}`);try{await f(q,$)}catch(Z){o(Z instanceof Error?Z.message:String(Z))}finally{g(null)}},k=async()=>{if(w.trim().length!==0){G(!0);try{const q=await Lg(i,{name:w.trim(),description:"Parachute Vault mirror",private:!0});await f(q.owner,q.name)}catch(q){o(q instanceof Error?q.message:String(q))}finally{G(!1)}}};return c.jsxs(c.Fragment,{children:[c.jsxs("p",{children:["Authorized as ",c.jsxs("code",{children:["@",s.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:b,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:[X.length===0&&b.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',b,'".']}):null,X.length===0&&b.length===0&&h.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account yet."}):null,X.map(q=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>K(q.owner,q.name),disabled:T!==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,Y?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:w,placeholder:"my-vault-backup",onChange:q=>B(q.target.value)}),c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:k,disabled:C||w.trim().length===0,children:C?"Creating…":"Create"}),c.jsx("button",{type:"button",className:"secondary",onClick:()=>L(!1),disabled:C,children:"Cancel"})]})]}):c.jsx("div",{className:"actions",style:{marginTop:"0.75rem"},children:c.jsx("button",{type:"button",className:"secondary",onClick:()=>L(!0),children:"+ Create new private repo"})})]})}function e0({vaultName:i,onClose:s,onSaved:f}){const[o,h]=x.useState(""),[m,y]=x.useState(""),[E,b]=x.useState(""),[v,T]=x.useState(!1),[g,C]=x.useState(null),G=async w=>{w.preventDefault(),T(!0),C(null);try{const B=await Bg(i,{token:o.trim(),remote_url:m.trim(),label:E.trim()||void 0});f(B)}catch(B){C(B instanceof Error?B.message:String(B))}finally{T(!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:s,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:G,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:w=>h(w.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:w=>y(w.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:E,onChange:w=>b(w.target.value),placeholder:"GitHub PAT for backup"})]}),g?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:g})}):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:s,disabled:v,children:"Cancel"})]})]})]})})}function t0({vaultName:i,creds:s}){const[f,o]=x.useState(""),[h,m]=x.useState("merge"),[y,E]=x.useState(!1),[b,v]=x.useState(""),[T,g]=x.useState({kind:"idle"}),[C,G]=x.useState(""),[w,B]=x.useState(!1),Y=(s==null?void 0:s.active_method)==="github_oauth"&&s.github_oauth!==null,L=(s==null?void 0:s.active_method)!==null&&(s==null?void 0:s.active_method)!==void 0,X=h!=="replace"||C.trim()===i,K=T.kind!=="running"&&f.trim().length>0&&X&&(!y||b.trim().length>0),k=async()=>{g({kind:"running",stage:"cloning"});let $;y?$={kind:"pat",token:b.trim()}:L?$=null:$={kind:"none"};try{const Z=window.setTimeout(()=>g(qe=>qe.kind==="running"?{kind:"running",stage:"importing"}:qe),1500),Te=await Yg(i,{remote_url:f.trim(),mode:h,credentials:$});window.clearTimeout(Z),g({kind:"success",result:Te,remoteUrl:f.trim(),mode:h})}catch(Z){const Te=Z instanceof Ee?`${Z.status===409?"Already running. ":""}${Z.message}`:Z instanceof Error?Z.message:String(Z);g({kind:"error",message:Te})}},q=()=>{g({kind:"idle"}),G("")};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."]}),T.kind==="success"?c.jsx(l0,{vaultName:i,result:T.result,remoteUrl:T.remoteUrl,mode:T.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:$=>o($.target.value),disabled:T.kind==="running"}),Y?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:T.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,!L&&!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"),G("")},disabled:T.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:T.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:C,placeholder:i,onChange:$=>G($.target.value),disabled:T.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:$=>E($.target.checked),disabled:T.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:b,placeholder:"ghp_… or similar",onChange:$=>v($.target.value),disabled:T.kind==="running",autoComplete:"off",style:{marginTop:"0.5rem"}}):null]}),T.kind==="error"?c.jsx("div",{className:"error-banner",role:"alert",children:c.jsx("code",{children:T.message})}):null,c.jsx("div",{className:"actions",children:c.jsx("button",{type:"button",onClick:k,disabled:!K,title:X?f.trim().length===0?"Provide a remote URL.":y&&b.trim().length===0?"Provide a token for one-time credential.":void 0:"Type the vault name to confirm Replace.",children:T.kind==="running"?T.stage==="cloning"?"Cloning…":"Importing…":"Start import"})})]}),w?c.jsx(a0,{vaultName:i,onClose:()=>B(!1),onPicked:$=>{o($),B(!1)}}):null]})}function l0({vaultName:i,result:s,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 ",s.notes_imported," note",s.notes_imported===1?"":"s",", ",s.tags_imported," tag schema",s.tags_imported===1?"":"s",", ",s.attachments_imported," ","attachment",s.attachments_imported===1?"":"s",o==="replace"&&s.notes_deleted!==void 0?`, wiped ${s.notes_deleted} pre-existing note${s.notes_deleted===1?"":"s"}`:"","."]}),s.warnings.length>0?c.jsxs("details",{style:{marginBottom:"0.75rem"},children:[c.jsxs("summary",{children:[s.warnings.length," warning",s.warnings.length===1?"":"s"," ","(see details)"]}),c.jsx("ul",{style:{marginTop:"0.5rem"},children:s.warnings.map((E,b)=>c.jsx("li",{children:c.jsx("code",{style:{fontSize:"0.85em"},children:E})},b))})]}):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 E;y(!1),(E=document.getElementById("git-remote-section"))==null||E.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 a0({vaultName:i,onClose:s,onPicked:f}){const[o,h]=x.useState(null),[m,y]=x.useState(!1),[E,b]=x.useState(""),[v,T]=x.useState(null);x.useEffect(()=>{let C=!1;return um(i).then(({repos:G,truncated:w})=>{C||(h(G),y(!!w))}).catch(G=>{C||T(G instanceof Error?G.message:String(G))}),()=>{C=!0}},[i]);const g=(o??[]).filter(C=>E.length===0?!0:C.full_name.toLowerCase().includes(E.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:s,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:E,onChange:C=>b(C.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:[g.length===0&&E.length>0?c.jsxs("p",{className:"dim",children:['No repos match "',E,'".']}):null,g.length===0&&E.length===0&&o.length===0?c.jsx("p",{className:"dim",children:"You don't own any repos on this account."}):null,g.map(C=>c.jsxs("button",{type:"button",className:"repo-row",onClick:()=>f(C.clone_url),children:[c.jsxs("span",{children:[c.jsx("strong",{children:C.name}),C.private?c.jsx("span",{className:"dim",children:" · private"}):null]}),c.jsx("span",{className:"dim",children:C.updated_at.slice(0,10)})]},C.full_name))]}):null]})})}async function n0(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/api/tags`);if(!s.ok)throw new Ee(s.status,await gi(s));const f=await s.json();return Array.isArray(f)?f:[]}async function gi(i){try{const s=await i.text(),f=JSON.parse(s);if(f.error_description)return f.error_description;if(f.message)return f.message;if(f.error)return f.error;if(s)return s}catch{}return`${i.status} ${i.statusText}`}async function u0(i){const s=await Xe(i,`/vault/${encodeURIComponent(i)}/tokens`);if(!s.ok)throw new Ee(s.status,await gi(s));return(await s.json()).tokens??[]}async function i0(i,s){const f={};s.label&&s.label.length>0&&(f.label=s.label),s.scopes&&s.scopes.length>0&&(f.scopes=s.scopes),s.tags&&s.tags.length>0&&(f.tags=s.tags),s.expires_at!==void 0&&(f.expires_at=s.expires_at);const o=await Xe(i,`/vault/${encodeURIComponent(i)}/tokens`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(f)});if(!o.ok)throw new Ee(o.status,await gi(o));return await o.json()}async function c0(i,s){const f=await Xe(i,`/vault/${encodeURIComponent(i)}/tokens/${encodeURIComponent(s)}`,{method:"DELETE"});if(!f.ok)throw new Ee(f.status,await gi(f))}function Dh({vaultName:i}={}){const s=Ps(),f=i??s.name,o=i!==void 0,h=o?"/":`/vault/${encodeURIComponent(f??"")}`,[m,y]=x.useState({kind:"loading"}),[E,b]=x.useState(null),[v,T]=x.useState(null),[g,C]=x.useState(0);x.useEffect(()=>{let B=!1;if(f)return y({kind:"loading"}),u0(f).then(Y=>{B||y({kind:"ok",tokens:Y})}).catch(Y=>{if(B)return;if(Y instanceof Ee&&(Y.status===401||Y.status===403)){y({kind:"auth-required",status:Y.status});return}const L=Y instanceof Error?Y.message:String(Y);y({kind:"error",message:L})}),()=>{B=!0}},[f,g]);const G=x.useCallback(()=>C(B=>B+1),[]);if(x.useEffect(()=>{if(!E)return;const B=Y=>{Y.preventDefault(),Y.returnValue=""};return window.addEventListener("beforeunload",B),()=>window.removeEventListener("beforeunload",B)},[E]),!f)return c.jsxs("div",{children:[c.jsx("h2",{children:"Tokens"}),c.jsx("p",{className:"muted",children:"Missing vault name."}),o?null:c.jsx($e,{to:"/",children:"← Back to vaults"})]});const w=cm(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($e,{to:h,className:"muted",children:"← Vault detail"})]}),w?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.`]}),E?c.jsx(s0,{result:E,onDismiss:()=>b(null)}):null,m.kind==="ok"&&w&&!E?c.jsx(r0,{vaultName:f,onMinted:B=>{b(B),C(Y=>Y+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(cr,{vaultName:f,status:m.status,onRecovered:G}):null,m.kind==="error"?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:m.message})}):null,m.kind==="ok"?c.jsx(o0,{vaultName:f,tokens:m.tokens,allowRevoke:w,confirmingRevokeId:v,onAskConfirm:T,onRevoked:()=>{T(null),C(B=>B+1)}}):null]})]})}function s0({result:i,onDismiss:s}){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:s,children:"Done — I've saved the token"})})]})}function r0({vaultName:i,onMinted:s}){const[f,o]=x.useState(""),[h,m]=x.useState("admin"),[y,E]=x.useState(!1),[b,v]=x.useState(null),[T,g]=x.useState([]),[C,G]=x.useState(null),[w,B]=x.useState(new Set);x.useEffect(()=>{let k=!1;return n0(i).then(q=>{if(k)return;const $=q.map(Z=>Z.name).filter(Z=>!Z.includes("/")).sort();g($)}).catch(q=>{k||G(q instanceof Error?q.message:String(q))}),()=>{k=!0}},[i]);const Y=f.trim(),L=Y.length===0,X=k=>{B(q=>{const $=new Set(q);return $.has(k)?$.delete(k):$.add(k),$})},K=async k=>{if(k.preventDefault(),L){v("label required — give the token a recognizable name");return}E(!0),v(null);try{const q=[...w],$=await i0(i,{label:Y,scopes:[`vault:${i}:${h}`],tags:q.length>0?q:null});s($),o(""),m("admin"),B(new Set)}catch(q){v(q instanceof Error?q.message:String(q))}finally{E(!1)}};return c.jsxs("form",{onSubmit:K,className:"section",children:[c.jsx("h3",{style:{margin:"0 0 0.85rem",fontSize:"1rem",fontWeight:500},children:"Mint a token"}),b?c.jsx("div",{className:"error-banner",children:c.jsx("code",{children:b})}):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:k=>o(k.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:k=>m(k.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)"})]}),C?c.jsxs("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:["Couldn't load tags: ",c.jsx("code",{children:C}),". Token will be unscoped."]}):T.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:T.map(k=>c.jsxs("label",{className:"tag-checkbox",children:[c.jsx("input",{type:"checkbox",checked:w.has(k),onChange:()=>X(k)}),c.jsx("code",{children:k})]},k))}),c.jsx("p",{className:"dim",style:{margin:"0.35rem 0 0"},children:w.size===0?"Nothing selected — token sees the full vault (unscoped).":`Token limited to: ${[...w].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||L,children:y?"Minting…":"Mint token"})})]})}function o0({vaultName:i,tokens:s,allowRevoke:f,confirmingRevokeId:o,onAskConfirm:h,onRevoked:m}){return s.length===0?c.jsx("p",{className:"muted",children:"No tokens yet. Mint one above to get started."}):c.jsx("div",{className:"token-list",children:s.map(y=>c.jsx(f0,{vaultName:i,token:y,allowRevoke:f,confirming:o===y.id,onAskConfirm:h,onRevoked:m},y.id))})}function f0({vaultName:i,token:s,allowRevoke:f,confirming:o,onAskConfirm:h,onRevoked:m}){const[y,E]=x.useState(!1),[b,v]=x.useState(null),T=async()=>{E(!0),v(null);try{await c0(i,s.id),m()}catch(g){v(g instanceof Error?g.message:String(g)),E(!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:s.label}),c.jsx("code",{className:"dim",children:s.id}),s.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:"})," ",s.scopes.length>0?s.scopes.map(g=>c.jsx("code",{className:"scope-tag",children:g},g)):c.jsxs("span",{className:"dim",children:["(legacy — ",s.permission,")"]})]}),s.scoped_tags&&s.scoped_tags.length>0?c.jsxs("div",{className:"meta",children:[c.jsx("span",{className:"dim",children:"tags:"})," ",s.scoped_tags.map(g=>c.jsxs("code",{className:"scope-tag tag-pill",children:["#",g]},g))]}):null,c.jsxs("div",{className:"meta dim",children:["created ",s.created_at,s.last_used_at?` · last used ${s.last_used_at}`:" · never used",s.expires_at?` · expires ${s.expires_at}`:""]}),b?c.jsx("div",{className:"error-banner",style:{marginTop:"0.5rem"},children:c.jsx("code",{children:b})}):null]}),f?o?c.jsxs("div",{className:"actions",children:[c.jsx("button",{type:"button",onClick:T,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(s.id),children:"Revoke"}):null]})}function d0(){const[i,s]=x.useState({kind:"loading"});return x.useEffect(()=>{let f=!1;return zg().then(o=>{f||s({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);s({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($e,{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 h0(){const i=lm();return c.jsxs("div",{className:"page",children:[c.jsxs("nav",{className:"nav",children:[c.jsxs($e,{to:"/",className:"brand",children:["Parachute Vault ",c.jsx("span",{className:"sub",children:"admin"})]}),i?c.jsx($e,{to:"/",children:c.jsx("code",{children:i})}):c.jsx($e,{to:"/",children:"Vaults"})]}),i?c.jsxs(Nh,{children:[c.jsx(Gt,{path:"/",element:c.jsx(Mh,{vaultName:i})}),c.jsx(Gt,{path:"/tokens",element:c.jsx(Dh,{vaultName:i})}),c.jsx(Gt,{path:"/mirror",element:c.jsx(Oh,{vaultName:i})}),c.jsx(Gt,{path:"*",element:c.jsx(wh,{})})]}):c.jsxs(Nh,{children:[c.jsx(Gt,{path:"/",element:c.jsx(d0,{})}),c.jsx(Gt,{path:"/vault/:name",element:c.jsx(Mh,{})}),c.jsx(Gt,{path:"/vault/:name/tokens",element:c.jsx(Dh,{})}),c.jsx(Gt,{path:"/vault/:name/mirror",element:c.jsx(Oh,{})}),c.jsx(Gt,{path:"*",element:c.jsx(wh,{})})]})]})}function wh(){return c.jsxs("div",{className:"empty",children:["404 — back to ",c.jsx($e,{to:"/",children:"vault"}),"."]})}jg();const sm=document.getElementById("root");if(!sm)throw new Error("#root not found");function Zs(){Gy.createRoot(sm).render(c.jsx(x.StrictMode,{children:c.jsx(sg,{basename:gg(),children:c.jsx(h0,{})})}))}const Uh=lm();Uh?_g(Uh).then(Zs,Zs):Zs();
|