@m8i-51/shoal 0.1.15 → 0.1.16
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/framework/diary.ts +96 -0
- package/package.json +1 -1
- package/server/index.ts +38 -0
- package/web/dist/assets/index-BHrkJsFb.js +85 -0
- package/web/dist/index.html +1 -1
- package/web/dist/assets/index-riAs4l9D.js +0 -85
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function c(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=c(o);fetch(o.href,f)}})();var $r={exports:{}},Gn={};/**
|
|
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 Oh;function ly(){if(Oh)return Gn;Oh=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var p in o)p!=="key"&&(f[p]=o[p])}else f=o;return o=f.ref,{$$typeof:s,type:r,key:h,ref:o!==void 0?o:null,props:f}}return Gn.Fragment=i,Gn.jsx=c,Gn.jsxs=c,Gn}var Dh;function ny(){return Dh||(Dh=1,$r.exports=ly()),$r.exports}var O=ny(),kr={exports:{}},se={};/**
|
|
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 Mh;function iy(){if(Mh)return se;Mh=1;var s=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),C=Symbol.iterator;function j(x){return x===null||typeof x!="object"?null:(x=C&&x[C]||x["@@iterator"],typeof x=="function"?x:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,G={};function Y(x,U,K){this.props=x,this.context=U,this.refs=G,this.updater=K||_}Y.prototype.isReactComponent={},Y.prototype.setState=function(x,U){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,U,"setState")},Y.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function V(){}V.prototype=Y.prototype;function X(x,U,K){this.props=x,this.context=U,this.refs=G,this.updater=K||_}var Q=X.prototype=new V;Q.constructor=X,w(Q,Y.prototype),Q.isPureReactComponent=!0;var P=Array.isArray;function re(){}var $={H:null,A:null,T:null,S:null},Ee=Object.prototype.hasOwnProperty;function pe(x,U,K){var Z=K.ref;return{$$typeof:s,type:x,key:U,ref:Z!==void 0?Z:null,props:K}}function I(x,U){return pe(x.type,U,x.props)}function Re(x){return typeof x=="object"&&x!==null&&x.$$typeof===s}function ne(x){var U={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(K){return U[K]})}var te=/\/+/g;function ae(x,U){return typeof x=="object"&&x!==null&&x.key!=null?ne(""+x.key):U.toString(36)}function ie(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(re,re):(x.status="pending",x.then(function(U){x.status==="pending"&&(x.status="fulfilled",x.value=U)},function(U){x.status==="pending"&&(x.status="rejected",x.reason=U)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function M(x,U,K,Z,ue){var fe=typeof x;(fe==="undefined"||fe==="boolean")&&(x=null);var ze=!1;if(x===null)ze=!0;else switch(fe){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(x.$$typeof){case s:case i:ze=!0;break;case b:return ze=x._init,M(ze(x._payload),U,K,Z,ue)}}if(ze)return ue=ue(x),ze=Z===""?"."+ae(x,0):Z,P(ue)?(K="",ze!=null&&(K=ze.replace(te,"$&/")+"/"),M(ue,U,K,"",function(Jl){return Jl})):ue!=null&&(Re(ue)&&(ue=I(ue,K+(ue.key==null||x&&x.key===ue.key?"":(""+ue.key).replace(te,"$&/")+"/")+ze)),U.push(ue)),1;ze=0;var ut=Z===""?".":Z+":";if(P(x))for(var Ge=0;Ge<x.length;Ge++)Z=x[Ge],fe=ut+ae(Z,Ge),ze+=M(Z,U,K,fe,ue);else if(Ge=j(x),typeof Ge=="function")for(x=Ge.call(x),Ge=0;!(Z=x.next()).done;)Z=Z.value,fe=ut+ae(Z,Ge++),ze+=M(Z,U,K,fe,ue);else if(fe==="object"){if(typeof x.then=="function")return M(ie(x),U,K,Z,ue);throw U=String(x),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return ze}function q(x,U,K){if(x==null)return x;var Z=[],ue=0;return M(x,Z,"","",function(fe){return U.call(K,fe,ue++)}),Z}function k(x){if(x._status===-1){var U=x._result;U=U(),U.then(function(K){(x._status===0||x._status===-1)&&(x._status=1,x._result=K)},function(K){(x._status===0||x._status===-1)&&(x._status=2,x._result=K)}),x._status===-1&&(x._status=0,x._result=U)}if(x._status===1)return x._result.default;throw x._result}var ye=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Ce={map:q,forEach:function(x,U,K){q(x,function(){U.apply(this,arguments)},K)},count:function(x){var U=0;return q(x,function(){U++}),U},toArray:function(x){return q(x,function(U){return U})||[]},only:function(x){if(!Re(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return se.Activity=v,se.Children=Ce,se.Component=Y,se.Fragment=c,se.Profiler=o,se.PureComponent=X,se.StrictMode=r,se.Suspense=y,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,se.__COMPILER_RUNTIME={__proto__:null,c:function(x){return $.H.useMemoCache(x)}},se.cache=function(x){return function(){return x.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(x,U,K){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=w({},x.props),ue=x.key;if(U!=null)for(fe in U.key!==void 0&&(ue=""+U.key),U)!Ee.call(U,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&U.ref===void 0||(Z[fe]=U[fe]);var fe=arguments.length-2;if(fe===1)Z.children=K;else if(1<fe){for(var ze=Array(fe),ut=0;ut<fe;ut++)ze[ut]=arguments[ut+2];Z.children=ze}return pe(x.type,ue,Z)},se.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},se.createElement=function(x,U,K){var Z,ue={},fe=null;if(U!=null)for(Z in U.key!==void 0&&(fe=""+U.key),U)Ee.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ue[Z]=U[Z]);var ze=arguments.length-2;if(ze===1)ue.children=K;else if(1<ze){for(var ut=Array(ze),Ge=0;Ge<ze;Ge++)ut[Ge]=arguments[Ge+2];ue.children=ut}if(x&&x.defaultProps)for(Z in ze=x.defaultProps,ze)ue[Z]===void 0&&(ue[Z]=ze[Z]);return pe(x,fe,ue)},se.createRef=function(){return{current:null}},se.forwardRef=function(x){return{$$typeof:p,render:x}},se.isValidElement=Re,se.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:k}},se.memo=function(x,U){return{$$typeof:m,type:x,compare:U===void 0?null:U}},se.startTransition=function(x){var U=$.T,K={};$.T=K;try{var Z=x(),ue=$.S;ue!==null&&ue(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(re,ye)}catch(fe){ye(fe)}finally{U!==null&&K.types!==null&&(U.types=K.types),$.T=U}},se.unstable_useCacheRefresh=function(){return $.H.useCacheRefresh()},se.use=function(x){return $.H.use(x)},se.useActionState=function(x,U,K){return $.H.useActionState(x,U,K)},se.useCallback=function(x,U){return $.H.useCallback(x,U)},se.useContext=function(x){return $.H.useContext(x)},se.useDebugValue=function(){},se.useDeferredValue=function(x,U){return $.H.useDeferredValue(x,U)},se.useEffect=function(x,U){return $.H.useEffect(x,U)},se.useEffectEvent=function(x){return $.H.useEffectEvent(x)},se.useId=function(){return $.H.useId()},se.useImperativeHandle=function(x,U,K){return $.H.useImperativeHandle(x,U,K)},se.useInsertionEffect=function(x,U){return $.H.useInsertionEffect(x,U)},se.useLayoutEffect=function(x,U){return $.H.useLayoutEffect(x,U)},se.useMemo=function(x,U){return $.H.useMemo(x,U)},se.useOptimistic=function(x,U){return $.H.useOptimistic(x,U)},se.useReducer=function(x,U,K){return $.H.useReducer(x,U,K)},se.useRef=function(x){return $.H.useRef(x)},se.useState=function(x){return $.H.useState(x)},se.useSyncExternalStore=function(x,U,K){return $.H.useSyncExternalStore(x,U,K)},se.useTransition=function(){return $.H.useTransition()},se.version="19.2.5",se}var Lh;function zu(){return Lh||(Lh=1,kr.exports=iy()),kr.exports}var T=zu(),Fr={exports:{}},Vn={},Wr={exports:{}},Ir={};/**
|
|
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 _h;function uy(){return _h||(_h=1,(function(s){function i(M,q){var k=M.length;M.push(q);e:for(;0<k;){var ye=k-1>>>1,Ce=M[ye];if(0<o(Ce,q))M[ye]=q,M[k]=Ce,k=ye;else break e}}function c(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var q=M[0],k=M.pop();if(k!==q){M[0]=k;e:for(var ye=0,Ce=M.length,x=Ce>>>1;ye<x;){var U=2*(ye+1)-1,K=M[U],Z=U+1,ue=M[Z];if(0>o(K,k))Z<Ce&&0>o(ue,K)?(M[ye]=ue,M[Z]=k,ye=Z):(M[ye]=K,M[U]=k,ye=U);else if(Z<Ce&&0>o(ue,k))M[ye]=ue,M[Z]=k,ye=Z;else break e}}return q}function o(M,q){var k=M.sortIndex-q.sortIndex;return k!==0?k:M.id-q.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;s.unstable_now=function(){return f.now()}}else{var h=Date,p=h.now();s.unstable_now=function(){return h.now()-p}}var y=[],m=[],b=1,v=null,C=3,j=!1,_=!1,w=!1,G=!1,Y=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Q(M){for(var q=c(m);q!==null;){if(q.callback===null)r(m);else if(q.startTime<=M)r(m),q.sortIndex=q.expirationTime,i(y,q);else break;q=c(m)}}function P(M){if(w=!1,Q(M),!_)if(c(y)!==null)_=!0,re||(re=!0,ne());else{var q=c(m);q!==null&&ie(P,q.startTime-M)}}var re=!1,$=-1,Ee=5,pe=-1;function I(){return G?!0:!(s.unstable_now()-pe<Ee)}function Re(){if(G=!1,re){var M=s.unstable_now();pe=M;var q=!0;try{e:{_=!1,w&&(w=!1,V($),$=-1),j=!0;var k=C;try{t:{for(Q(M),v=c(y);v!==null&&!(v.expirationTime>M&&I());){var ye=v.callback;if(typeof ye=="function"){v.callback=null,C=v.priorityLevel;var Ce=ye(v.expirationTime<=M);if(M=s.unstable_now(),typeof Ce=="function"){v.callback=Ce,Q(M),q=!0;break t}v===c(y)&&r(y),Q(M)}else r(y);v=c(y)}if(v!==null)q=!0;else{var x=c(m);x!==null&&ie(P,x.startTime-M),q=!1}}break e}finally{v=null,C=k,j=!1}q=void 0}}finally{q?ne():re=!1}}}var ne;if(typeof X=="function")ne=function(){X(Re)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,ae=te.port2;te.port1.onmessage=Re,ne=function(){ae.postMessage(null)}}else ne=function(){Y(Re,0)};function ie(M,q){$=Y(function(){M(s.unstable_now())},q)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(M){M.callback=null},s.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<M?Math.floor(1e3/M):5},s.unstable_getCurrentPriorityLevel=function(){return C},s.unstable_next=function(M){switch(C){case 1:case 2:case 3:var q=3;break;default:q=C}var k=C;C=q;try{return M()}finally{C=k}},s.unstable_requestPaint=function(){G=!0},s.unstable_runWithPriority=function(M,q){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var k=C;C=M;try{return q()}finally{C=k}},s.unstable_scheduleCallback=function(M,q,k){var ye=s.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?ye+k:ye):k=ye,M){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=k+Ce,M={id:b++,callback:q,priorityLevel:M,startTime:k,expirationTime:Ce,sortIndex:-1},k>ye?(M.sortIndex=k,i(m,M),c(y)===null&&M===c(m)&&(w?(V($),$=-1):w=!0,ie(P,k-ye))):(M.sortIndex=Ce,i(y,M),_||j||(_=!0,re||(re=!0,ne()))),M},s.unstable_shouldYield=I,s.unstable_wrapCallback=function(M){var q=C;return function(){var k=C;C=q;try{return M.apply(this,arguments)}finally{C=k}}}})(Ir)),Ir}var jh;function sy(){return jh||(jh=1,Wr.exports=uy()),Wr.exports}var Pr={exports:{}},it={};/**
|
|
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 Nh;function ry(){if(Nh)return it;Nh=1;var s=zu();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(y,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:y,containerInfo:m,implementation:b}}var h=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,it.createPortal=function(y,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(y,m,null,b)},it.flushSync=function(y){var m=h.T,b=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=m,r.p=b,r.d.f()}},it.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},it.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},it.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var b=m.as,v=p(b,m.crossOrigin),C=typeof m.integrity=="string"?m.integrity:void 0,j=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:C,fetchPriority:j}):b==="script"&&r.d.X(y,{crossOrigin:v,integrity:C,fetchPriority:j,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},it.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},it.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=p(b,m.crossOrigin);r.d.L(y,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},it.preloadModule=function(y,m){if(typeof y=="string")if(m){var b=p(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},it.requestFormReset=function(y){r.d.r(y)},it.unstable_batchedUpdates=function(y,m){return y(m)},it.useFormState=function(y,m,b){return h.H.useFormState(y,m,b)},it.useFormStatus=function(){return h.H.useHostTransitionStatus()},it.version="19.2.5",it}var Uh;function cy(){if(Uh)return Pr.exports;Uh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Pr.exports=ry(),Pr.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Hh;function oy(){if(Hh)return Vn;Hh=1;var s=sy(),i=zu(),c=cy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(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 p(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 y(e){if(f(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var u=n.alternate;if(u===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===a)return y(n),e;if(u===l)return y(n),t;u=u.sibling}throw Error(r(188))}if(a.return!==l.return)a=n,l=u;else{for(var d=!1,g=n.child;g;){if(g===a){d=!0,a=n,l=u;break}if(g===l){d=!0,l=n,a=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===a){d=!0,a=u,l=n;break}if(g===l){d=!0,l=u,a=n;break}g=g.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,C=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),Ee=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var te=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===te?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case Y:return"Profiler";case G:return"StrictMode";case P:return"Suspense";case re:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case X:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case Ee:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var ie=Array.isArray,M=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},ye=[],Ce=-1;function x(e){return{current:e}}function U(e){0>Ce||(e.current=ye[Ce],ye[Ce]=null,Ce--)}function K(e,t){Ce++,ye[Ce]=e.current,e.current=t}var Z=x(null),ue=x(null),fe=x(null),ze=x(null);function ut(e,t){switch(K(fe,t),K(ue,e),K(Z,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=Id(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),K(Z,e)}function Ge(){U(Z),U(ue),U(fe)}function Jl(e){e.memoizedState!==null&&K(ze,e);var t=Z.current,a=Id(t,e.type);t!==a&&(K(ue,e),K(Z,a))}function Pn(e){ue.current===e&&(U(Z),U(ue)),ze.current===e&&(U(ze),Bn._currentValue=k)}var Mu,Cc;function Ya(e){if(Mu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Mu=t&&t[1]||"",Cc=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Mu+e+Cc}var Lu=!1;function _u(e,t){if(!e||Lu)return"";Lu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(L){var D=L}Reflect.construct(e,[],B)}else{try{B.call()}catch(L){D=L}e.call(B.prototype)}}else{try{throw Error()}catch(L){D=L}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(L){if(L&&D&&typeof L.stack=="string")return[L.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),d=u[0],g=u[1];if(d&&g){var S=d.split(`
|
|
44
|
+
`),A=g.split(`
|
|
45
|
+
`);for(n=l=0;l<S.length&&!S[l].includes("DetermineComponentFrameRoot");)l++;for(;n<A.length&&!A[n].includes("DetermineComponentFrameRoot");)n++;if(l===S.length||n===A.length)for(l=S.length-1,n=A.length-1;1<=l&&0<=n&&S[l]!==A[n];)n--;for(;1<=l&&0<=n;l--,n--)if(S[l]!==A[n]){if(l!==1||n!==1)do if(l--,n--,0>n||S[l]!==A[n]){var N=`
|
|
46
|
+
`+S[l].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=l&&0<=n);break}}}finally{Lu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ya(a):""}function Nm(e,t){switch(e.tag){case 26:case 27:case 5:return Ya(e.type);case 16:return Ya("Lazy");case 13:return e.child!==t&&t!==null?Ya("Suspense Fallback"):Ya("Suspense");case 19:return Ya("SuspenseList");case 0:case 15:return _u(e.type,!1);case 11:return _u(e.type.render,!1);case 1:return _u(e.type,!0);case 31:return Ya("Activity");default:return""}}function zc(e){try{var t="",a=null;do t+=Nm(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var ju=Object.prototype.hasOwnProperty,Nu=s.unstable_scheduleCallback,Uu=s.unstable_cancelCallback,Um=s.unstable_shouldYield,Hm=s.unstable_requestPaint,gt=s.unstable_now,Bm=s.unstable_getCurrentPriorityLevel,Ac=s.unstable_ImmediatePriority,Oc=s.unstable_UserBlockingPriority,ei=s.unstable_NormalPriority,wm=s.unstable_LowPriority,Dc=s.unstable_IdlePriority,Ym=s.log,qm=s.unstable_setDisableYieldValue,$l=null,pt=null;function ma(e){if(typeof Ym=="function"&&qm(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode($l,e)}catch{}}var yt=Math.clz32?Math.clz32:Xm,Gm=Math.log,Vm=Math.LN2;function Xm(e){return e>>>=0,e===0?32:31-(Gm(e)/Vm|0)|0}var ti=256,ai=262144,li=4194304;function qa(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 ni(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,u=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?n=qa(l):(d&=g,d!==0?n=qa(d):a||(a=g&~e,a!==0&&(n=qa(a))))):(g=l&~u,g!==0?n=qa(g):d!==0?n=qa(d):a||(a=l&~e,a!==0&&(n=qa(a)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:n}function kl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qm(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 Mc(){var e=li;return li<<=1,(li&62914560)===0&&(li=4194304),e}function Hu(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Km(e,t,a,l,n,u){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,S=e.expirationTimes,A=e.hiddenUpdates;for(a=d&~a;0<a;){var N=31-yt(a),B=1<<N;g[N]=0,S[N]=-1;var D=A[N];if(D!==null)for(A[N]=null,N=0;N<D.length;N++){var L=D[N];L!==null&&(L.lane&=-536870913)}a&=~B}l!==0&&Lc(e,l,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(d&~t))}function Lc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-yt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function _c(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-yt(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function jc(e,t){var a=t&-t;return a=(a&42)!==0?1:Bu(a),(a&(e.suspendedLanes|t))!==0?0:a}function Bu(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 wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nc(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:xh(e.type))}function Uc(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var ga=Math.random().toString(36).slice(2),et="__reactFiber$"+ga,rt="__reactProps$"+ga,ul="__reactContainer$"+ga,Yu="__reactEvents$"+ga,Zm="__reactListeners$"+ga,Jm="__reactHandles$"+ga,Hc="__reactResources$"+ga,Wl="__reactMarker$"+ga;function qu(e){delete e[et],delete e[rt],delete e[Yu],delete e[Zm],delete e[Jm]}function sl(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ul]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=ih(e);e!==null;){if(a=e[et])return a;e=ih(e)}return t}e=a,a=e.parentNode}return null}function rl(e){if(e=e[et]||e[ul]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Il(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function cl(e){var t=e[Hc];return t||(t=e[Hc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Wl]=!0}var Bc=new Set,wc={};function Ga(e,t){ol(e,t),ol(e+"Capture",t)}function ol(e,t){for(wc[e]=t,e=0;e<t.length;e++)Bc.add(t[e])}var $m=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]*$"),Yc={},qc={};function km(e){return ju.call(qc,e)?!0:ju.call(Yc,e)?!1:$m.test(e)?qc[e]=!0:(Yc[e]=!0,!1)}function ii(e,t,a){if(km(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ui(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Jt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Fm(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(d){a=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gu(e){if(!e._valueTracker){var t=Gc(e)?"checked":"value";e._valueTracker=Fm(e,t,""+e[t])}}function Vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Gc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function si(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 Wm=/[\n"\\]/g;function zt(e){return e.replace(Wm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Vu(e,t,a,l,n,u,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ct(t)):e.value!==""+Ct(t)&&(e.value=""+Ct(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Xu(e,d,Ct(t)):a!=null?Xu(e,d,Ct(a)):l!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Ct(g):e.removeAttribute("name")}function Xc(e,t,a,l,n,u,d,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Gu(e);return}a=a!=null?""+Ct(a):"",t=t!=null?""+Ct(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Gu(e)}function Xu(e,t,a){t==="number"&&si(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function fl(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Ct(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Qc(e,t,a){if(t!=null&&(t=""+Ct(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ct(a):""}function Kc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(ie(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Ct(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Gu(e)}function dl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Im=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 Zc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Im.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Jc(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&Zc(e,n,l)}else for(var u in t)t.hasOwnProperty(u)&&Zc(e,u,t[u])}function Qu(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 Pm=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"]]),eg=/^[\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 ri(e){return eg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function $t(){}var Ku=null;function Zu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hl=null,ml=null;function $c(e){var t=rl(e);if(t&&(e=t.stateNode)){var a=e[rt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Vu(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[rt]||null;if(!n)throw Error(r(90));Vu(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Vc(l)}break e;case"textarea":Qc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&fl(e,!!a.multiple,t,!1)}}}var Ju=!1;function kc(e,t,a){if(Ju)return e(t,a);Ju=!0;try{var l=e(t);return l}finally{if(Ju=!1,(hl!==null||ml!==null)&&(ki(),hl&&(t=hl,e=ml,ml=hl=null,$c(t),e)))for(t=0;t<e.length;t++)$c(e[t])}}function Pl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[rt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$u=!1;if(kt)try{var en={};Object.defineProperty(en,"passive",{get:function(){$u=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{$u=!1}var pa=null,ku=null,ci=null;function Fc(){if(ci)return ci;var e,t=ku,a=t.length,l,n="value"in pa?pa.value:pa.textContent,u=n.length;for(e=0;e<a&&t[e]===n[e];e++);var d=a-e;for(l=1;l<=d&&t[a-l]===n[u-l];l++);return ci=n.slice(e,1<l?1-l:void 0)}function oi(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 fi(){return!0}function Wc(){return!1}function ct(e){function t(a,l,n,u,d){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?fi:Wc,this.isPropagationStopped=Wc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=fi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},di=ct(Va),tn=v({},Va,{view:0,detail:0}),tg=ct(tn),Fu,Wu,an,hi=v({},tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&e.type==="mousemove"?(Fu=e.screenX-an.screenX,Wu=e.screenY-an.screenY):Wu=Fu=0,an=e),Fu)},movementY:function(e){return"movementY"in e?e.movementY:Wu}}),Ic=ct(hi),ag=v({},hi,{dataTransfer:0}),lg=ct(ag),ng=v({},tn,{relatedTarget:0}),Iu=ct(ng),ig=v({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),ug=ct(ig),sg=v({},Va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),rg=ct(sg),cg=v({},Va,{data:0}),Pc=ct(cg),og={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},fg={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"},dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dg[e])?!!t[e]:!1}function Pu(){return hg}var mg=v({},tn,{key:function(e){if(e.key){var t=og[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?fg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pu,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),gg=ct(mg),pg=v({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eo=ct(pg),yg=v({},tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pu}),vg=ct(yg),bg=v({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sg=ct(bg),xg=v({},hi,{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}),Eg=ct(xg),Rg=v({},Va,{newState:0,oldState:0}),Tg=ct(Rg),Cg=[9,13,27,32],es=kt&&"CompositionEvent"in window,ln=null;kt&&"documentMode"in document&&(ln=document.documentMode);var zg=kt&&"TextEvent"in window&&!ln,to=kt&&(!es||ln&&8<ln&&11>=ln),ao=" ",lo=!1;function no(e,t){switch(e){case"keyup":return Cg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function io(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gl=!1;function Ag(e,t){switch(e){case"compositionend":return io(t);case"keypress":return t.which!==32?null:(lo=!0,ao);case"textInput":return e=t.data,e===ao&&lo?null:e;default:return null}}function Og(e,t){if(gl)return e==="compositionend"||!es&&no(e,t)?(e=Fc(),ci=ku=pa=null,gl=!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 to&&t.locale!=="ko"?null:t.data;default:return null}}var Dg={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 uo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dg[e.type]:t==="textarea"}function so(e,t,a,l){hl?ml?ml.push(l):ml=[l]:hl=l,t=au(t,"onChange"),0<t.length&&(a=new di("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var nn=null,un=null;function Mg(e){Kd(e,0)}function mi(e){var t=Il(e);if(Vc(t))return e}function ro(e,t){if(e==="change")return t}var co=!1;if(kt){var ts;if(kt){var as="oninput"in document;if(!as){var oo=document.createElement("div");oo.setAttribute("oninput","return;"),as=typeof oo.oninput=="function"}ts=as}else ts=!1;co=ts&&(!document.documentMode||9<document.documentMode)}function fo(){nn&&(nn.detachEvent("onpropertychange",ho),un=nn=null)}function ho(e){if(e.propertyName==="value"&&mi(un)){var t=[];so(t,un,e,Zu(e)),kc(Mg,t)}}function Lg(e,t,a){e==="focusin"?(fo(),nn=t,un=a,nn.attachEvent("onpropertychange",ho)):e==="focusout"&&fo()}function _g(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mi(un)}function jg(e,t){if(e==="click")return mi(t)}function Ng(e,t){if(e==="input"||e==="change")return mi(t)}function Ug(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:Ug;function sn(e,t){if(vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!ju.call(t,n)||!vt(e[n],t[n]))return!1}return!0}function mo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function go(e,t){var a=mo(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mo(a)}}function po(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?po(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=si(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=si(e.document)}return t}function ls(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 Hg=kt&&"documentMode"in document&&11>=document.documentMode,pl=null,ns=null,rn=null,is=!1;function vo(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;is||pl==null||pl!==si(l)||(l=pl,"selectionStart"in l&&ls(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),rn&&sn(rn,l)||(rn=l,l=au(ns,"onSelect"),0<l.length&&(t=new di("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=pl)))}function Xa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var yl={animationend:Xa("Animation","AnimationEnd"),animationiteration:Xa("Animation","AnimationIteration"),animationstart:Xa("Animation","AnimationStart"),transitionrun:Xa("Transition","TransitionRun"),transitionstart:Xa("Transition","TransitionStart"),transitioncancel:Xa("Transition","TransitionCancel"),transitionend:Xa("Transition","TransitionEnd")},us={},bo={};kt&&(bo=document.createElement("div").style,"AnimationEvent"in window||(delete yl.animationend.animation,delete yl.animationiteration.animation,delete yl.animationstart.animation),"TransitionEvent"in window||delete yl.transitionend.transition);function Qa(e){if(us[e])return us[e];if(!yl[e])return e;var t=yl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in bo)return us[e]=t[a];return e}var So=Qa("animationend"),xo=Qa("animationiteration"),Eo=Qa("animationstart"),Bg=Qa("transitionrun"),wg=Qa("transitionstart"),Yg=Qa("transitioncancel"),Ro=Qa("transitionend"),To=new Map,ss="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(" ");ss.push("scrollEnd");function Ht(e,t){To.set(e,t),Ga(t,[e])}var gi=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)},At=[],vl=0,rs=0;function pi(){for(var e=vl,t=rs=vl=0;t<e;){var a=At[t];At[t++]=null;var l=At[t];At[t++]=null;var n=At[t];At[t++]=null;var u=At[t];if(At[t++]=null,l!==null&&n!==null){var d=l.pending;d===null?n.next=n:(n.next=d.next,d.next=n),l.pending=n}u!==0&&Co(a,n,u)}}function yi(e,t,a,l){At[vl++]=e,At[vl++]=t,At[vl++]=a,At[vl++]=l,rs|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function cs(e,t,a,l){return yi(e,t,a,l),vi(e)}function Ka(e,t){return yi(e,null,null,t),vi(e)}function Co(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),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-yt(a),e=u.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),u):null}function vi(e){if(50<Mn)throw Mn=0,vr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var bl={};function qg(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,a,l){return new qg(e,t,a,l)}function os(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ft(e,t){var a=e.alternate;return a===null?(a=bt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function zo(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bi(e,t,a,l,n,u){var d=0;if(l=e,typeof e=="function")os(e)&&(d=1);else if(typeof e=="string")d=Kp(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case pe:return e=bt(31,a,t,n),e.elementType=pe,e.lanes=u,e;case w:return Za(a.children,n,u,t);case G:d=8,n|=24;break;case Y:return e=bt(12,a,t,n|2),e.elementType=Y,e.lanes=u,e;case P:return e=bt(13,a,t,n),e.elementType=P,e.lanes=u,e;case re:return e=bt(19,a,t,n),e.elementType=re,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case V:d=9;break e;case Q:d=11;break e;case $:d=14;break e;case Ee:d=16,l=null;break e}d=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=bt(d,a,t,n),t.elementType=e,t.type=l,t.lanes=u,t}function Za(e,t,a,l){return e=bt(7,e,l,t),e.lanes=a,e}function fs(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Ao(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function ds(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Oo=new WeakMap;function Ot(e,t){if(typeof e=="object"&&e!==null){var a=Oo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:zc(t)},Oo.set(e,t),t)}return{value:e,source:t,stack:zc(t)}}var Sl=[],xl=0,Si=null,cn=0,Dt=[],Mt=0,ya=null,qt=1,Gt="";function Wt(e,t){Sl[xl++]=cn,Sl[xl++]=Si,Si=e,cn=t}function Do(e,t,a){Dt[Mt++]=qt,Dt[Mt++]=Gt,Dt[Mt++]=ya,ya=e;var l=qt;e=Gt;var n=32-yt(l)-1;l&=~(1<<n),a+=1;var u=32-yt(t)+n;if(30<u){var d=n-n%5;u=(l&(1<<d)-1).toString(32),l>>=d,n-=d,qt=1<<32-yt(t)+n|a<<n|l,Gt=u+e}else qt=1<<u|a<<n|l,Gt=e}function hs(e){e.return!==null&&(Wt(e,1),Do(e,1,0))}function ms(e){for(;e===Si;)Si=Sl[--xl],Sl[xl]=null,cn=Sl[--xl],Sl[xl]=null;for(;e===ya;)ya=Dt[--Mt],Dt[Mt]=null,Gt=Dt[--Mt],Dt[Mt]=null,qt=Dt[--Mt],Dt[Mt]=null}function Mo(e,t){Dt[Mt++]=qt,Dt[Mt++]=Gt,Dt[Mt++]=ya,qt=t.id,Gt=t.overflow,ya=e}var tt=null,Ne=null,ve=!1,va=null,Lt=!1,gs=Error(r(519));function ba(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw on(Ot(t,e)),gs}function Lo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[et]=e,t[rt]=l,a){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(a=0;a<_n.length;a++)he(_n[a],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Xc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Kc(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||kd(t.textContent,a)?(l.popover!=null&&(he("beforetoggle",t),he("toggle",t)),l.onScroll!=null&&he("scroll",t),l.onScrollEnd!=null&&he("scrollend",t),l.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||ba(e,!0)}function _o(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:tt=tt.return}}function El(e){if(e!==tt)return!1;if(!ve)return _o(e),ve=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||jr(e.type,e.memoizedProps)),a=!a),a&&Ne&&ba(e),_o(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=nh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=nh(e)}else t===27?(t=Ne,ja(e.type)?(e=wr,wr=null,Ne=e):Ne=t):Ne=tt?jt(e.stateNode.nextSibling):null;return!0}function Ja(){Ne=tt=null,ve=!1}function ps(){var e=va;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),va=null),e}function on(e){va===null?va=[e]:va.push(e)}var ys=x(null),$a=null,It=null;function Sa(e,t,a){K(ys,t._currentValue),t._currentValue=a}function Pt(e){e._currentValue=ys.current,U(ys)}function vs(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function bs(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var d=n.child;u=u.firstContext;e:for(;u!==null;){var g=u;u=n;for(var S=0;S<t.length;S++)if(g.context===t[S]){u.lanes|=a,g=u.alternate,g!==null&&(g.lanes|=a),vs(u.return,a,e),l||(d=null);break e}u=g.next}}else if(n.tag===18){if(d=n.return,d===null)throw Error(r(341));d.lanes|=a,u=d.alternate,u!==null&&(u.lanes|=a),vs(d,a,e),d=null}else d=n.child;if(d!==null)d.return=n;else for(d=n;d!==null;){if(d===e){d=null;break}if(n=d.sibling,n!==null){n.return=d.return,d=n;break}d=d.return}n=d}}function Rl(e,t,a,l){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 d=n.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var g=n.type;vt(n.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(n===ze.current){if(d=n.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Bn):e=[Bn])}n=n.return}e!==null&&bs(t,e,a,l),t.flags|=262144}function xi(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ka(e){$a=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return jo($a,e)}function Ei(e,t){return $a===null&&ka(e),jo(e,t)}function jo(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},It===null){if(e===null)throw Error(r(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return a}var Gg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Vg=s.unstable_scheduleCallback,Xg=s.unstable_NormalPriority,Ke={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ss(){return{controller:new Gg,data:new Map,refCount:0}}function fn(e){e.refCount--,e.refCount===0&&Vg(Xg,function(){e.controller.abort()})}var dn=null,xs=0,Tl=0,Cl=null;function Qg(e,t){if(dn===null){var a=dn=[];xs=0,Tl=Tr(),Cl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return xs++,t.then(No,No),t}function No(){if(--xs===0&&dn!==null){Cl!==null&&(Cl.status="fulfilled");var e=dn;dn=null,Tl=0,Cl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Kg(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Uo=M.S;M.S=function(e,t){bd=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qg(e,t),Uo!==null&&Uo(e,t)};var Fa=x(null);function Es(){var e=Fa.current;return e!==null?e:je.pooledCache}function Ri(e,t){t===null?K(Fa,Fa.current):K(Fa,t.pool)}function Ho(){var e=Es();return e===null?null:{parent:Ke._currentValue,pool:e}}var zl=Error(r(460)),Rs=Error(r(474)),Ti=Error(r(542)),Ci={then:function(){}};function Bo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function wo(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then($t,$t),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e;default:if(typeof t.status=="string")t.then($t,$t);else{if(e=je,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qo(e),e}throw Ia=t,zl}}function Wa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ia=a,zl):a}}var Ia=null;function Yo(){if(Ia===null)throw Error(r(459));var e=Ia;return Ia=null,e}function qo(e){if(e===zl||e===Ti)throw Error(r(483))}var Al=null,hn=0;function zi(e){var t=hn;return hn+=1,Al===null&&(Al=[]),wo(Al,e,t)}function mn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ai(e,t){throw t.$$typeof===C?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Go(e){function t(R,E){if(e){var z=R.deletions;z===null?(R.deletions=[E],R.flags|=16):z.push(E)}}function a(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function l(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function n(R,E){return R=Ft(R,E),R.index=0,R.sibling=null,R}function u(R,E,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<E?(R.flags|=67108866,E):z):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function g(R,E,z,H){return E===null||E.tag!==6?(E=fs(z,R.mode,H),E.return=R,E):(E=n(E,z),E.return=R,E)}function S(R,E,z,H){var W=z.type;return W===w?N(R,E,z.props.children,H,z.key):E!==null&&(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Ee&&Wa(W)===E.type)?(E=n(E,z.props),mn(E,z),E.return=R,E):(E=bi(z.type,z.key,z.props,null,R.mode,H),mn(E,z),E.return=R,E)}function A(R,E,z,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==z.containerInfo||E.stateNode.implementation!==z.implementation?(E=ds(z,R.mode,H),E.return=R,E):(E=n(E,z.children||[]),E.return=R,E)}function N(R,E,z,H,W){return E===null||E.tag!==7?(E=Za(z,R.mode,H,W),E.return=R,E):(E=n(E,z),E.return=R,E)}function B(R,E,z){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=fs(""+E,R.mode,z),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case j:return z=bi(E.type,E.key,E.props,null,R.mode,z),mn(z,E),z.return=R,z;case _:return E=ds(E,R.mode,z),E.return=R,E;case Ee:return E=Wa(E),B(R,E,z)}if(ie(E)||ne(E))return E=Za(E,R.mode,z,null),E.return=R,E;if(typeof E.then=="function")return B(R,zi(E),z);if(E.$$typeof===X)return B(R,Ei(R,E),z);Ai(R,E)}return null}function D(R,E,z,H){var W=E!==null?E.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return W!==null?null:g(R,E,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j:return z.key===W?S(R,E,z,H):null;case _:return z.key===W?A(R,E,z,H):null;case Ee:return z=Wa(z),D(R,E,z,H)}if(ie(z)||ne(z))return W!==null?null:N(R,E,z,H,null);if(typeof z.then=="function")return D(R,E,zi(z),H);if(z.$$typeof===X)return D(R,E,Ei(R,z),H);Ai(R,z)}return null}function L(R,E,z,H,W){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return R=R.get(z)||null,g(E,R,""+H,W);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case j:return R=R.get(H.key===null?z:H.key)||null,S(E,R,H,W);case _:return R=R.get(H.key===null?z:H.key)||null,A(E,R,H,W);case Ee:return H=Wa(H),L(R,E,z,H,W)}if(ie(H)||ne(H))return R=R.get(z)||null,N(E,R,H,W,null);if(typeof H.then=="function")return L(R,E,z,zi(H),W);if(H.$$typeof===X)return L(R,E,z,Ei(E,H),W);Ai(E,H)}return null}function J(R,E,z,H){for(var W=null,Se=null,F=E,oe=E=0,ge=null;F!==null&&oe<z.length;oe++){F.index>oe?(ge=F,F=null):ge=F.sibling;var xe=D(R,F,z[oe],H);if(xe===null){F===null&&(F=ge);break}e&&F&&xe.alternate===null&&t(R,F),E=u(xe,E,oe),Se===null?W=xe:Se.sibling=xe,Se=xe,F=ge}if(oe===z.length)return a(R,F),ve&&Wt(R,oe),W;if(F===null){for(;oe<z.length;oe++)F=B(R,z[oe],H),F!==null&&(E=u(F,E,oe),Se===null?W=F:Se.sibling=F,Se=F);return ve&&Wt(R,oe),W}for(F=l(F);oe<z.length;oe++)ge=L(F,R,oe,z[oe],H),ge!==null&&(e&&ge.alternate!==null&&F.delete(ge.key===null?oe:ge.key),E=u(ge,E,oe),Se===null?W=ge:Se.sibling=ge,Se=ge);return e&&F.forEach(function(wa){return t(R,wa)}),ve&&Wt(R,oe),W}function ee(R,E,z,H){if(z==null)throw Error(r(151));for(var W=null,Se=null,F=E,oe=E=0,ge=null,xe=z.next();F!==null&&!xe.done;oe++,xe=z.next()){F.index>oe?(ge=F,F=null):ge=F.sibling;var wa=D(R,F,xe.value,H);if(wa===null){F===null&&(F=ge);break}e&&F&&wa.alternate===null&&t(R,F),E=u(wa,E,oe),Se===null?W=wa:Se.sibling=wa,Se=wa,F=ge}if(xe.done)return a(R,F),ve&&Wt(R,oe),W;if(F===null){for(;!xe.done;oe++,xe=z.next())xe=B(R,xe.value,H),xe!==null&&(E=u(xe,E,oe),Se===null?W=xe:Se.sibling=xe,Se=xe);return ve&&Wt(R,oe),W}for(F=l(F);!xe.done;oe++,xe=z.next())xe=L(F,R,oe,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&F.delete(xe.key===null?oe:xe.key),E=u(xe,E,oe),Se===null?W=xe:Se.sibling=xe,Se=xe);return e&&F.forEach(function(ay){return t(R,ay)}),ve&&Wt(R,oe),W}function Le(R,E,z,H){if(typeof z=="object"&&z!==null&&z.type===w&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case j:e:{for(var W=z.key;E!==null;){if(E.key===W){if(W=z.type,W===w){if(E.tag===7){a(R,E.sibling),H=n(E,z.props.children),H.return=R,R=H;break e}}else if(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===Ee&&Wa(W)===E.type){a(R,E.sibling),H=n(E,z.props),mn(H,z),H.return=R,R=H;break e}a(R,E);break}else t(R,E);E=E.sibling}z.type===w?(H=Za(z.props.children,R.mode,H,z.key),H.return=R,R=H):(H=bi(z.type,z.key,z.props,null,R.mode,H),mn(H,z),H.return=R,R=H)}return d(R);case _:e:{for(W=z.key;E!==null;){if(E.key===W)if(E.tag===4&&E.stateNode.containerInfo===z.containerInfo&&E.stateNode.implementation===z.implementation){a(R,E.sibling),H=n(E,z.children||[]),H.return=R,R=H;break e}else{a(R,E);break}else t(R,E);E=E.sibling}H=ds(z,R.mode,H),H.return=R,R=H}return d(R);case Ee:return z=Wa(z),Le(R,E,z,H)}if(ie(z))return J(R,E,z,H);if(ne(z)){if(W=ne(z),typeof W!="function")throw Error(r(150));return z=W.call(z),ee(R,E,z,H)}if(typeof z.then=="function")return Le(R,E,zi(z),H);if(z.$$typeof===X)return Le(R,E,Ei(R,z),H);Ai(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,E!==null&&E.tag===6?(a(R,E.sibling),H=n(E,z),H.return=R,R=H):(a(R,E),H=fs(z,R.mode,H),H.return=R,R=H),d(R)):a(R,E)}return function(R,E,z,H){try{hn=0;var W=Le(R,E,z,H);return Al=null,W}catch(F){if(F===zl||F===Ti)throw F;var Se=bt(29,F,null,R.mode);return Se.lanes=H,Se.return=R,Se}finally{}}}var Pa=Go(!0),Vo=Go(!1),xa=!1;function Ts(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cs(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 Ea(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Te&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=vi(e),Co(e,null,a),t}return yi(e,l,t,a),vi(e)}function gn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,_c(e,a)}}function zs(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?n=u=d:u=u.next=d,a=a.next}while(a!==null);u===null?n=u=t:u=u.next=t}else n=u=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var As=!1;function pn(){if(As){var e=Cl;if(e!==null)throw e}}function yn(e,t,a,l){As=!1;var n=e.updateQueue;xa=!1;var u=n.firstBaseUpdate,d=n.lastBaseUpdate,g=n.shared.pending;if(g!==null){n.shared.pending=null;var S=g,A=S.next;S.next=null,d===null?u=A:d.next=A,d=S;var N=e.alternate;N!==null&&(N=N.updateQueue,g=N.lastBaseUpdate,g!==d&&(g===null?N.firstBaseUpdate=A:g.next=A,N.lastBaseUpdate=S))}if(u!==null){var B=n.baseState;d=0,N=A=S=null,g=u;do{var D=g.lane&-536870913,L=D!==g.lane;if(L?(me&D)===D:(l&D)===D){D!==0&&D===Tl&&(As=!0),N!==null&&(N=N.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var J=e,ee=g;D=t;var Le=a;switch(ee.tag){case 1:if(J=ee.payload,typeof J=="function"){B=J.call(Le,B,D);break e}B=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,D=typeof J=="function"?J.call(Le,B,D):J,D==null)break e;B=v({},B,D);break e;case 2:xa=!0}}D=g.callback,D!==null&&(e.flags|=64,L&&(e.flags|=8192),L=n.callbacks,L===null?n.callbacks=[D]:L.push(D))}else L={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},N===null?(A=N=L,S=B):N=N.next=L,d|=D;if(g=g.next,g===null){if(g=n.shared.pending,g===null)break;L=g,g=L.next,L.next=null,n.lastBaseUpdate=L,n.shared.pending=null}}while(!0);N===null&&(S=B),n.baseState=S,n.firstBaseUpdate=A,n.lastBaseUpdate=N,u===null&&(n.shared.lanes=0),Oa|=d,e.lanes=d,e.memoizedState=B}}function Xo(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Qo(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Xo(a[e],t)}var Ol=x(null),Oi=x(0);function Ko(e,t){e=ra,K(Oi,e),K(Ol,t),ra=e|t.baseLanes}function Os(){K(Oi,ra),K(Ol,Ol.current)}function Ds(){ra=Oi.current,U(Ol),U(Oi)}var St=x(null),_t=null;function Ta(e){var t=e.alternate;K(Ve,Ve.current&1),K(St,e),_t===null&&(t===null||Ol.current!==null||t.memoizedState!==null)&&(_t=e)}function Ms(e){K(Ve,Ve.current),K(St,e),_t===null&&(_t=e)}function Zo(e){e.tag===22?(K(Ve,Ve.current),K(St,e),_t===null&&(_t=e)):Ca()}function Ca(){K(Ve,Ve.current),K(St,St.current)}function xt(e){U(St),_t===e&&(_t=null),U(Ve)}var Ve=x(0);function Di(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Hr(a)||Br(a)))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 ea=0,ce=null,De=null,Ze=null,Mi=!1,Dl=!1,el=!1,Li=0,vn=0,Ml=null,Zg=0;function Ye(){throw Error(r(321))}function Ls(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vt(e[a],t[a]))return!1;return!0}function _s(e,t,a,l,n,u){return ea=u,ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Mf:Js,el=!1,u=a(l,n),el=!1,Dl&&(u=$o(t,a,l,n)),Jo(e),u}function Jo(e){M.H=xn;var t=De!==null&&De.next!==null;if(ea=0,Ze=De=ce=null,Mi=!1,vn=0,Ml=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&xi(e)&&(Je=!0))}function $o(e,t,a,l){ce=e;var n=0;do{if(Dl&&(Ml=null),vn=0,Dl=!1,25<=n)throw Error(r(301));if(n+=1,Ze=De=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=Lf,u=t(a,l)}while(Dl);return u}function Jg(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?bn(t):t,e=e.useState()[0],(De!==null?De.memoizedState:null)!==e&&(ce.flags|=1024),t}function js(){var e=Li!==0;return Li=0,e}function Ns(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Us(e){if(Mi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mi=!1}ea=0,Ze=De=ce=null,Dl=!1,vn=Li=0,Ml=null}function st(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ce.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(De===null){var e=ce.alternate;e=e!==null?e.memoizedState:null}else e=De.next;var t=Ze===null?ce.memoizedState:Ze.next;if(t!==null)Ze=t,De=e;else{if(e===null)throw ce.alternate===null?Error(r(467)):Error(r(310));De=e,e={memoizedState:De.memoizedState,baseState:De.baseState,baseQueue:De.baseQueue,queue:De.queue,next:null},Ze===null?ce.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function _i(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bn(e){var t=vn;return vn+=1,Ml===null&&(Ml=[]),e=wo(Ml,e,t),t=ce,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Mf:Js),e}function ji(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bn(e);if(e.$$typeof===X)return at(e)}throw Error(r(438,String(e)))}function Hs(e){var t=null,a=ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=_i(),ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=I;return t.index++,a}function ta(e,t){return typeof t=="function"?t(e):t}function Ni(e){var t=Xe();return Bs(t,De,e)}function Bs(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var n=e.baseQueue,u=l.pending;if(u!==null){if(n!==null){var d=n.next;n.next=u.next,u.next=d}t.baseQueue=n=u,l.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var g=d=null,S=null,A=t,N=!1;do{var B=A.lane&-536870913;if(B!==A.lane?(me&B)===B:(ea&B)===B){var D=A.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),B===Tl&&(N=!0);else if((ea&D)===D){A=A.next,D===Tl&&(N=!0);continue}else B={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(g=S=B,d=u):S=S.next=B,ce.lanes|=D,Oa|=D;B=A.action,el&&a(u,B),u=A.hasEagerState?A.eagerState:a(u,B)}else D={lane:B,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},S===null?(g=S=D,d=u):S=S.next=D,ce.lanes|=B,Oa|=B;A=A.next}while(A!==null&&A!==t);if(S===null?d=u:S.next=g,!vt(u,e.memoizedState)&&(Je=!0,N&&(a=Cl,a!==null)))throw a;e.memoizedState=u,e.baseState=d,e.baseQueue=S,l.lastRenderedState=u}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function ws(e){var t=Xe(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,u=t.memoizedState;if(n!==null){a.pending=null;var d=n=n.next;do u=e(u,d.action),d=d.next;while(d!==n);vt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function ko(e,t,a){var l=ce,n=Xe(),u=ve;if(u){if(a===void 0)throw Error(r(407));a=a()}else a=t();var d=!vt((De||n).memoizedState,a);if(d&&(n.memoizedState=a,Je=!0),n=n.queue,Gs(Io.bind(null,l,n,e),[e]),n.getSnapshot!==t||d||Ze!==null&&Ze.memoizedState.tag&1){if(l.flags|=2048,Ll(9,{destroy:void 0},Wo.bind(null,l,n,a,t),null),je===null)throw Error(r(349));u||(ea&127)!==0||Fo(l,t,a)}return a}function Fo(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ce.updateQueue,t===null?(t=_i(),ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Wo(e,t,a,l){t.value=a,t.getSnapshot=l,Po(t)&&ef(e)}function Io(e,t,a){return a(function(){Po(t)&&ef(e)})}function Po(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vt(e,a)}catch{return!0}}function ef(e){var t=Ka(e,2);t!==null&&mt(t,e,2)}function Ys(e){var t=st();if(typeof e=="function"){var a=e;if(e=a(),el){ma(!0);try{a()}finally{ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t}function tf(e,t,a,l){return e.baseState=a,Bs(e,De,typeof l=="function"?l:ta)}function $g(e,t,a,l,n){if(Bi(e))throw Error(r(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(d){u.listeners.push(d)}};M.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,af(t,u)):(u.next=a.next,t.pending=a.next=u)}}function af(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var u=M.T,d={};M.T=d;try{var g=a(n,l),S=M.S;S!==null&&S(d,g),lf(e,t,g)}catch(A){qs(e,t,A)}finally{u!==null&&d.types!==null&&(u.types=d.types),M.T=u}}else try{u=a(n,l),lf(e,t,u)}catch(A){qs(e,t,A)}}function lf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){nf(e,t,l)},function(l){return qs(e,t,l)}):nf(e,t,a)}function nf(e,t,a){t.status="fulfilled",t.value=a,uf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,af(e,a)))}function qs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,uf(t),t=t.next;while(t!==l)}e.action=null}function uf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function sf(e,t){return t}function rf(e,t){if(ve){var a=je.formState;if(a!==null){e:{var l=ce;if(ve){if(Ne){t:{for(var n=Ne,u=Lt;n.nodeType!==8;){if(!u){n=null;break t}if(n=jt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){Ne=jt(n.nextSibling),l=n.data==="F!";break e}}ba(l)}l=!1}l&&(t=a[0])}}return a=st(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sf,lastRenderedState:t},a.queue=l,a=Af.bind(null,ce,l),l.dispatch=a,l=Ys(!1),u=Zs.bind(null,ce,!1,l.queue),l=st(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=$g.bind(null,ce,n,u,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function cf(e){var t=Xe();return of(t,De,e)}function of(e,t,a){if(t=Bs(e,t,sf)[0],e=Ni(ta)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=bn(t)}catch(d){throw d===zl?Ti:d}else l=t;t=Xe();var n=t.queue,u=n.dispatch;return a!==t.memoizedState&&(ce.flags|=2048,Ll(9,{destroy:void 0},kg.bind(null,n,a),null)),[l,u,e]}function kg(e,t){e.action=t}function ff(e){var t=Xe(),a=De;if(a!==null)return of(t,a,e);Xe(),t=t.memoizedState,a=Xe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ll(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ce.updateQueue,t===null&&(t=_i(),ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function df(){return Xe().memoizedState}function Ui(e,t,a,l){var n=st();ce.flags|=e,n.memoizedState=Ll(1|t,{destroy:void 0},a,l===void 0?null:l)}function Hi(e,t,a,l){var n=Xe();l=l===void 0?null:l;var u=n.memoizedState.inst;De!==null&&l!==null&&Ls(l,De.memoizedState.deps)?n.memoizedState=Ll(t,u,a,l):(ce.flags|=e,n.memoizedState=Ll(1|t,u,a,l))}function hf(e,t){Ui(8390656,8,e,t)}function Gs(e,t){Hi(2048,8,e,t)}function Fg(e){ce.flags|=4;var t=ce.updateQueue;if(t===null)t=_i(),ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function mf(e){var t=Xe().memoizedState;return Fg({ref:t,nextImpl:e}),function(){if((Te&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function gf(e,t){return Hi(4,2,e,t)}function pf(e,t){return Hi(4,4,e,t)}function yf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vf(e,t,a){a=a!=null?a.concat([e]):null,Hi(4,4,yf.bind(null,t,e),a)}function Vs(){}function bf(e,t){var a=Xe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Ls(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Sf(e,t){var a=Xe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Ls(t,l[1]))return l[0];if(l=e(),el){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[l,t],l}function Xs(e,t,a){return a===void 0||(ea&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=xd(),ce.lanes|=e,Oa|=e,a)}function xf(e,t,a,l){return vt(a,t)?a:Ol.current!==null?(e=Xs(e,a,l),vt(e,t)||(Je=!0),e):(ea&42)===0||(ea&1073741824)!==0&&(me&261930)===0?(Je=!0,e.memoizedState=a):(e=xd(),ce.lanes|=e,Oa|=e,t)}function Ef(e,t,a,l,n){var u=q.p;q.p=u!==0&&8>u?u:8;var d=M.T,g={};M.T=g,Zs(e,!1,t,a);try{var S=n(),A=M.S;if(A!==null&&A(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var N=Kg(S,l);Sn(e,t,N,Tt(e))}else Sn(e,t,l,Tt(e))}catch(B){Sn(e,t,{then:function(){},status:"rejected",reason:B},Tt())}finally{q.p=u,d!==null&&g.types!==null&&(d.types=g.types),M.T=d}}function Wg(){}function Qs(e,t,a,l){if(e.tag!==5)throw Error(r(476));var n=Rf(e).queue;Ef(e,n,t,k,a===null?Wg:function(){return Tf(e),a(l)})}function Rf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:k},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Tf(e){var t=Rf(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},Tt())}function Ks(){return at(Bn)}function Cf(){return Xe().memoizedState}function zf(){return Xe().memoizedState}function Ig(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Tt();e=Ea(a);var l=Ra(t,e,a);l!==null&&(mt(l,t,a),gn(l,t,a)),t={cache:Ss()},e.payload=t;return}t=t.return}}function Pg(e,t,a){var l=Tt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bi(e)?Of(t,a):(a=cs(e,t,a,l),a!==null&&(mt(a,e,l),Df(a,t,l)))}function Af(e,t,a){var l=Tt();Sn(e,t,a,l)}function Sn(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))Of(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,a);if(n.hasEagerState=!0,n.eagerState=g,vt(g,d))return yi(e,t,n,0),je===null&&pi(),!1}catch{}finally{}if(a=cs(e,t,n,l),a!==null)return mt(a,e,l),Df(a,t,l),!0}return!1}function Zs(e,t,a,l){if(l={lane:2,revertLane:Tr(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(r(479))}else t=cs(e,a,l,2),t!==null&&mt(t,e,2)}function Bi(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Of(e,t){Dl=Mi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Df(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,_c(e,a)}}var xn={readContext:at,use:ji,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};xn.useEffectEvent=Ye;var Mf={readContext:at,use:ji,useCallback:function(e,t){return st().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:hf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ui(4194308,4,yf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){Ui(4,2,e,t)},useMemo:function(e,t){var a=st();t=t===void 0?null:t;var l=e();if(el){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=st();if(a!==void 0){var n=a(t);if(el){ma(!0);try{a(t)}finally{ma(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Pg.bind(null,ce,e),[l.memoizedState,e]},useRef:function(e){var t=st();return e={current:e},t.memoizedState=e},useState:function(e){e=Ys(e);var t=e.queue,a=Af.bind(null,ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Vs,useDeferredValue:function(e,t){var a=st();return Xs(a,e,t)},useTransition:function(){var e=Ys(!1);return e=Ef.bind(null,ce,e.queue,!0,!1),st().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ce,n=st();if(ve){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),je===null)throw Error(r(349));(me&127)!==0||Fo(l,t,a)}n.memoizedState=a;var u={value:a,getSnapshot:t};return n.queue=u,hf(Io.bind(null,l,u,e),[e]),l.flags|=2048,Ll(9,{destroy:void 0},Wo.bind(null,l,u,a,t),null),a},useId:function(){var e=st(),t=je.identifierPrefix;if(ve){var a=Gt,l=qt;a=(l&~(1<<32-yt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Li++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Zg++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ks,useFormState:rf,useActionState:rf,useOptimistic:function(e){var t=st();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Zs.bind(null,ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:Hs,useCacheRefresh:function(){return st().memoizedState=Ig.bind(null,ce)},useEffectEvent:function(e){var t=st(),a={impl:e};return t.memoizedState=a,function(){if((Te&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Js={readContext:at,use:ji,useCallback:bf,useContext:at,useEffect:Gs,useImperativeHandle:vf,useInsertionEffect:gf,useLayoutEffect:pf,useMemo:Sf,useReducer:Ni,useRef:df,useState:function(){return Ni(ta)},useDebugValue:Vs,useDeferredValue:function(e,t){var a=Xe();return xf(a,De.memoizedState,e,t)},useTransition:function(){var e=Ni(ta)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:ko,useId:Cf,useHostTransitionStatus:Ks,useFormState:cf,useActionState:cf,useOptimistic:function(e,t){var a=Xe();return tf(a,De,e,t)},useMemoCache:Hs,useCacheRefresh:zf};Js.useEffectEvent=mf;var Lf={readContext:at,use:ji,useCallback:bf,useContext:at,useEffect:Gs,useImperativeHandle:vf,useInsertionEffect:gf,useLayoutEffect:pf,useMemo:Sf,useReducer:ws,useRef:df,useState:function(){return ws(ta)},useDebugValue:Vs,useDeferredValue:function(e,t){var a=Xe();return De===null?Xs(a,e,t):xf(a,De.memoizedState,e,t)},useTransition:function(){var e=ws(ta)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:bn(e),t]},useSyncExternalStore:ko,useId:Cf,useHostTransitionStatus:Ks,useFormState:ff,useActionState:ff,useOptimistic:function(e,t){var a=Xe();return De!==null?tf(a,De,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Hs,useCacheRefresh:zf};Lf.useEffectEvent=mf;function $s(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var ks={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Tt(),n=Ea(l);n.payload=t,a!=null&&(n.callback=a),t=Ra(e,n,l),t!==null&&(mt(t,e,l),gn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Tt(),n=Ea(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Ra(e,n,l),t!==null&&(mt(t,e,l),gn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Tt(),l=Ea(a);l.tag=2,t!=null&&(l.callback=t),t=Ra(e,l,a),t!==null&&(mt(t,e,a),gn(t,e,a))}};function _f(e,t,a,l,n,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,d):t.prototype&&t.prototype.isPureReactComponent?!sn(a,l)||!sn(n,u):!0}function jf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&ks.enqueueReplaceState(t,t.state,null)}function tl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function Nf(e){gi(e)}function Uf(e){console.error(e)}function Hf(e){gi(e)}function wi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Bf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Fs(e,t,a){return a=Ea(a),a.tag=3,a.payload={element:null},a.callback=function(){wi(e,t)},a}function wf(e){return e=Ea(e),e.tag=3,e}function Yf(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var u=l.value;e.payload=function(){return n(u)},e.callback=function(){Bf(t,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){Bf(t,a,l),typeof n!="function"&&(Da===null?Da=new Set([this]):Da.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function ep(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Rl(t,a,n,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return _t===null?Fi():a.alternate===null&&qe===0&&(qe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===Ci?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),xr(e,l,n)),!1;case 22:return a.flags|=65536,l===Ci?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),xr(e,l,n)),!1}throw Error(r(435,a.tag))}return xr(e,l,n),Fi(),!1}if(ve)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==gs&&(e=Error(r(422),{cause:l}),on(Ot(e,a)))):(l!==gs&&(t=Error(r(423),{cause:l}),on(Ot(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=Ot(l,a),n=Fs(e.stateNode,l,n),zs(e,n),qe!==4&&(qe=2)),!1;var u=Error(r(520),{cause:l});if(u=Ot(u,a),Dn===null?Dn=[u]:Dn.push(u),qe!==4&&(qe=2),t===null)return!0;l=Ot(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Fs(a.stateNode,l,e),zs(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Da===null||!Da.has(u))))return a.flags|=65536,n&=-n,a.lanes|=n,n=wf(n),Yf(n,e,a,l),zs(a,n),!1}a=a.return}while(a!==null);return!1}var Ws=Error(r(461)),Je=!1;function lt(e,t,a,l){t.child=e===null?Vo(t,null,a,l):Pa(t,e.child,a,l)}function qf(e,t,a,l,n){a=a.render;var u=t.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return ka(t),l=_s(e,t,a,d,u,n),g=js(),e!==null&&!Je?(Ns(e,t,n),aa(e,t,n)):(ve&&g&&hs(t),t.flags|=1,lt(e,t,l,n),t.child)}function Gf(e,t,a,l,n){if(e===null){var u=a.type;return typeof u=="function"&&!os(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,Vf(e,t,u,l,n)):(e=bi(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!ir(e,n)){var d=u.memoizedProps;if(a=a.compare,a=a!==null?a:sn,a(d,l)&&e.ref===t.ref)return aa(e,t,n)}return t.flags|=1,e=Ft(u,l),e.ref=t.ref,e.return=t,t.child=e}function Vf(e,t,a,l,n){if(e!==null){var u=e.memoizedProps;if(sn(u,l)&&e.ref===t.ref)if(Je=!1,t.pendingProps=l=u,ir(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,aa(e,t,n)}return Is(e,t,a,l,n)}function Xf(e,t,a,l){var n=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~u}else l=0,t.child=null;return Qf(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ri(t,u!==null?u.cachePool:null),u!==null?Ko(t,u):Os(),Zo(t);else return l=t.lanes=536870912,Qf(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(Ri(t,u.cachePool),Ko(t,u),Ca(),t.memoizedState=null):(e!==null&&Ri(t,null),Os(),Ca());return lt(e,t,n,a),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Qf(e,t,a,l,n){var u=Es();return u=u===null?null:{parent:Ke._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Ri(t,null),Os(),Zo(t),e!==null&&Rl(e,t,l,!0),t.childLanes=n,null}function Yi(e,t){return t=Gi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kf(e,t,a){return Pa(t,e.child,null,a),e=Yi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function tp(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(l.mode==="hidden")return e=Yi(t,l),t.lanes=536870912,En(null,e);if(Ms(t),(e=Ne)?(e=lh(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:qt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},a=Ao(e),a.return=t,t.child=a,tt=t,Ne=null)):e=null,e===null)throw ba(t);return t.lanes=536870912,null}return Yi(t,l)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(Ms(t),n)if(t.flags&256)t.flags&=-257,t=Kf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Rl(e,t,a,!1),n=(a&e.childLanes)!==0,Je||n){if(l=je,l!==null&&(d=jc(l,a),d!==0&&d!==u.retryLane))throw u.retryLane=d,Ka(e,d),mt(l,e,d),Ws;Fi(),t=Kf(e,t,a)}else e=u.treeContext,Ne=jt(d.nextSibling),tt=t,ve=!0,va=null,Lt=!1,e!==null&&Mo(t,e),t=Yi(t,l),t.flags|=4096;return t}return e=Ft(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qi(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Is(e,t,a,l,n){return ka(t),a=_s(e,t,a,l,void 0,n),l=js(),e!==null&&!Je?(Ns(e,t,n),aa(e,t,n)):(ve&&l&&hs(t),t.flags|=1,lt(e,t,a,n),t.child)}function Zf(e,t,a,l,n,u){return ka(t),t.updateQueue=null,a=$o(t,l,a,n),Jo(e),l=js(),e!==null&&!Je?(Ns(e,t,u),aa(e,t,u)):(ve&&l&&hs(t),t.flags|=1,lt(e,t,a,u),t.child)}function Jf(e,t,a,l,n){if(ka(t),t.stateNode===null){var u=bl,d=a.contextType;typeof d=="object"&&d!==null&&(u=at(d)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=ks,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Ts(t),d=a.contextType,u.context=typeof d=="object"&&d!==null?at(d):bl,u.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&($s(t,a,d,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&ks.enqueueReplaceState(u,u.state,null),yn(t,l,u,n),pn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var g=t.memoizedProps,S=tl(a,g);u.props=S;var A=u.context,N=a.contextType;d=bl,typeof N=="object"&&N!==null&&(d=at(N));var B=a.getDerivedStateFromProps;N=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,N||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||A!==d)&&jf(t,u,l,d),xa=!1;var D=t.memoizedState;u.state=D,yn(t,l,u,n),pn(),A=t.memoizedState,g||D!==A||xa?(typeof B=="function"&&($s(t,a,B,l),A=t.memoizedState),(S=xa||_f(t,a,S,l,D,A,d))?(N||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=l,t.memoizedState=A),u.props=l,u.state=A,u.context=d,l=S):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Cs(e,t),d=t.memoizedProps,N=tl(a,d),u.props=N,B=t.pendingProps,D=u.context,A=a.contextType,S=bl,typeof A=="object"&&A!==null&&(S=at(A)),g=a.getDerivedStateFromProps,(A=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==B||D!==S)&&jf(t,u,l,S),xa=!1,D=t.memoizedState,u.state=D,yn(t,l,u,n),pn();var L=t.memoizedState;d!==B||D!==L||xa||e!==null&&e.dependencies!==null&&xi(e.dependencies)?(typeof g=="function"&&($s(t,a,g,l),L=t.memoizedState),(N=xa||_f(t,a,N,l,D,L,S)||e!==null&&e.dependencies!==null&&xi(e.dependencies))?(A||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,L,S),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,L,S)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=L),u.props=l,u.state=L,u.context=S,l=N):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,qi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Pa(t,e.child,null,n),t.child=Pa(t,null,a,n)):lt(e,t,a,n),t.memoizedState=u.state,e=t.child):e=aa(e,t,n),e}function $f(e,t,a,l){return Ja(),t.flags|=256,lt(e,t,a,l),t.child}var Ps={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function er(e){return{baseLanes:e,cachePool:Ho()}}function tr(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Rt),e}function kf(e,t,a){var l=t.pendingProps,n=!1,u=(t.flags&128)!==0,d;if((d=u)||(d=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),d&&(n=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Ta(t):Ca(),(e=Ne)?(e=lh(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:qt,overflow:Gt}:null,retryLane:536870912,hydrationErrors:null},a=Ao(e),a.return=t,t.child=a,tt=t,Ne=null)):e=null,e===null)throw ba(t);return Br(e)?t.lanes=32:t.lanes=536870912,null}var g=l.children;return l=l.fallback,n?(Ca(),n=t.mode,g=Gi({mode:"hidden",children:g},n),l=Za(l,n,a,null),g.return=t,l.return=t,g.sibling=l,t.child=g,l=t.child,l.memoizedState=er(a),l.childLanes=tr(e,d,a),t.memoizedState=Ps,En(null,l)):(Ta(t),ar(t,g))}var S=e.memoizedState;if(S!==null&&(g=S.dehydrated,g!==null)){if(u)t.flags&256?(Ta(t),t.flags&=-257,t=lr(e,t,a)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),g=l.fallback,n=t.mode,l=Gi({mode:"visible",children:l.children},n),g=Za(g,n,a,null),g.flags|=2,l.return=t,g.return=t,l.sibling=g,t.child=l,Pa(t,e.child,null,a),l=t.child,l.memoizedState=er(a),l.childLanes=tr(e,d,a),t.memoizedState=Ps,t=En(null,l));else if(Ta(t),Br(g)){if(d=g.nextSibling&&g.nextSibling.dataset,d)var A=d.dgst;d=A,l=Error(r(419)),l.stack="",l.digest=d,on({value:l,source:null,stack:null}),t=lr(e,t,a)}else if(Je||Rl(e,t,a,!1),d=(a&e.childLanes)!==0,Je||d){if(d=je,d!==null&&(l=jc(d,a),l!==0&&l!==S.retryLane))throw S.retryLane=l,Ka(e,l),mt(d,e,l),Ws;Hr(g)||Fi(),t=lr(e,t,a)}else Hr(g)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ne=jt(g.nextSibling),tt=t,ve=!0,va=null,Lt=!1,e!==null&&Mo(t,e),t=ar(t,l.children),t.flags|=4096);return t}return n?(Ca(),g=l.fallback,n=t.mode,S=e.child,A=S.sibling,l=Ft(S,{mode:"hidden",children:l.children}),l.subtreeFlags=S.subtreeFlags&65011712,A!==null?g=Ft(A,g):(g=Za(g,n,a,null),g.flags|=2),g.return=t,l.return=t,l.sibling=g,t.child=l,En(null,l),l=t.child,g=e.child.memoizedState,g===null?g=er(a):(n=g.cachePool,n!==null?(S=Ke._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=Ho(),g={baseLanes:g.baseLanes|a,cachePool:n}),l.memoizedState=g,l.childLanes=tr(e,d,a),t.memoizedState=Ps,En(e.child,l)):(Ta(t),a=e.child,e=a.sibling,a=Ft(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function ar(e,t){return t=Gi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gi(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function lr(e,t,a){return Pa(t,e.child,null,a),e=ar(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ff(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),vs(e.return,t,a)}function nr(e,t,a,l,n,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=n,d.treeForkCount=u)}function Wf(e,t,a){var l=t.pendingProps,n=l.revealOrder,u=l.tail;l=l.children;var d=Ve.current,g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,K(Ve,d),lt(e,t,l,a),l=ve?cn:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ff(e,a,t);else if(e.tag===19)Ff(e,a,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(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&Di(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),nr(t,!1,n,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Di(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}nr(t,!0,a,null,u,l);break;case"together":nr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function aa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Rl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=Ft(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ft(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ir(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xi(e)))}function ap(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),Sa(t,Ke,e.memoizedState.cache),Ja();break;case 27:case 5:Jl(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ms(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ta(t),t.flags|=128,null):(a&t.child.childLanes)!==0?kf(e,t,a):(Ta(t),e=aa(e,t,a),e!==null?e.sibling:null);Ta(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Rl(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Wf(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Ve,Ve.current),l)break;return null;case 22:return t.lanes=0,Xf(e,t,a,t.pendingProps);case 24:Sa(t,Ke,e.memoizedState.cache)}return aa(e,t,a)}function If(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!ir(e,a)&&(t.flags&128)===0)return Je=!1,ap(e,t,a);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&Do(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Wa(t.elementType),t.type=e,typeof e=="function")os(e)?(l=tl(e,l),t.tag=1,t=Jf(null,t,e,l,a)):(t.tag=0,t=Is(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===Q){t.tag=11,t=qf(null,t,e,l,a);break e}else if(n===$){t.tag=14,t=Gf(null,t,e,l,a);break e}}throw t=ae(e)||e,Error(r(306,t,""))}}return t;case 0:return Is(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=tl(l,t.pendingProps),Jf(e,t,l,n,a);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var u=t.memoizedState;n=u.element,Cs(e,t),yn(t,l,null,a);var d=t.memoizedState;if(l=d.cache,Sa(t,Ke,l),l!==u.cache&&bs(t,[Ke],a,!0),pn(),l=d.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=$f(e,t,l,a);break e}else if(l!==n){n=Ot(Error(r(424)),t),on(n),t=$f(e,t,l,a);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(Ne=jt(e.firstChild),tt=t,ve=!0,va=null,Lt=!0,a=Vo(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ja(),l===n){t=aa(e,t,a);break e}lt(e,t,l,a)}t=t.child}return t;case 26:return qi(e,t),e===null?(a=ch(t.type,null,t.pendingProps,null))?t.memoizedState=a:ve||(a=t.type,e=t.pendingProps,l=lu(fe.current).createElement(a),l[et]=t,l[rt]=e,nt(l,a,e),We(l),t.stateNode=l):t.memoizedState=ch(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Jl(t),e===null&&ve&&(l=t.stateNode=uh(t.type,t.pendingProps,fe.current),tt=t,Lt=!0,n=Ne,ja(t.type)?(wr=n,Ne=jt(l.firstChild)):Ne=n),lt(e,t,t.pendingProps.children,a),qi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=l=Ne)&&(l=_p(l,t.type,t.pendingProps,Lt),l!==null?(t.stateNode=l,tt=t,Ne=jt(l.firstChild),Lt=!1,n=!0):n=!1),n||ba(t)),Jl(t),n=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,l=u.children,jr(n,u)?l=null:d!==null&&jr(n,d)&&(t.flags|=32),t.memoizedState!==null&&(n=_s(e,t,Jg,null,null,a),Bn._currentValue=n),qi(e,t),lt(e,t,l,a),t.child;case 6:return e===null&&ve&&((e=a=Ne)&&(a=jp(a,t.pendingProps,Lt),a!==null?(t.stateNode=a,tt=t,Ne=null,e=!0):e=!1),e||ba(t)),null;case 13:return kf(e,t,a);case 4:return ut(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Pa(t,null,l,a):lt(e,t,l,a),t.child;case 11:return qf(e,t,t.type,t.pendingProps,a);case 7:return lt(e,t,t.pendingProps,a),t.child;case 8:return lt(e,t,t.pendingProps.children,a),t.child;case 12:return lt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Sa(t,t.type,l.value),lt(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,ka(t),n=at(n),l=l(n),t.flags|=1,lt(e,t,l,a),t.child;case 14:return Gf(e,t,t.type,t.pendingProps,a);case 15:return Vf(e,t,t.type,t.pendingProps,a);case 19:return Wf(e,t,a);case 31:return tp(e,t,a);case 22:return Xf(e,t,a,t.pendingProps);case 24:return ka(t),l=at(Ke),e===null?(n=Es(),n===null&&(n=je,u=Ss(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=a),n=u),t.memoizedState={parent:l,cache:n},Ts(t),Sa(t,Ke,n)):((e.lanes&a)!==0&&(Cs(e,t),yn(t,null,null,a),pn()),n=e.memoizedState,u=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Sa(t,Ke,l)):(l=u.cache,Sa(t,Ke,l),l!==n.cache&&bs(t,[Ke],a,!0))),lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function la(e){e.flags|=4}function ur(e,t,a,l,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(Cd())e.flags|=8192;else throw Ia=Ci,Rs}else e.flags&=-16777217}function Pf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!mh(t))if(Cd())e.flags|=8192;else throw Ia=Ci,Rs}function Vi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mc():536870912,e.lanes|=t,Ul|=t)}function Rn(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function lp(e,t,a){var l=t.pendingProps;switch(ms(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Pt(Ke),Ge(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(El(t)?la(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ps())),Ue(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(la(t),u!==null?(Ue(t),Pf(t,u)):(Ue(t),ur(t,n,null,l,a))):u?u!==e.memoizedState?(la(t),Ue(t),Pf(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&la(t),Ue(t),ur(t,n,e,l,a)),null;case 27:if(Pn(t),a=fe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&la(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}e=Z.current,El(t)?Lo(t):(e=uh(n,l,a),t.stateNode=e,la(t))}return Ue(t),null;case 5:if(Pn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&la(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return Ue(t),null}if(u=Z.current,El(t))Lo(t);else{var d=lu(fe.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?d.createElement(n,{is:l.is}):d.createElement(n)}}u[et]=t,u[rt]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=u;e:switch(nt(u,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&la(t)}}return Ue(t),ur(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&la(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=fe.current,El(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=tt,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||kd(e.nodeValue,a)),e||ba(t,!0)}else e=lu(e).createTextNode(l),e[et]=t,t.stateNode=e}return Ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=El(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[et]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else a=ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=El(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[et]=t}else Ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),n=!1}else n=ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vi(t,t.updateQueue),Ue(t),null);case 4:return Ge(),e===null&&Or(t.stateNode.containerInfo),Ue(t),null;case 10:return Pt(t.type),Ue(t),null;case 19:if(U(Ve),l=t.memoizedState,l===null)return Ue(t),null;if(n=(t.flags&128)!==0,u=l.rendering,u===null)if(n)Rn(l,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Di(e),u!==null){for(t.flags|=128,Rn(l,!1),e=u.updateQueue,t.updateQueue=e,Vi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zo(a,e),a=a.sibling;return K(Ve,Ve.current&1|2),ve&&Wt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&>()>Ji&&(t.flags|=128,n=!0,Rn(l,!1),t.lanes=4194304)}else{if(!n)if(e=Di(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Vi(t,e),Rn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!ve)return Ue(t),null}else 2*gt()-l.renderingStartTime>Ji&&a!==536870912&&(t.flags|=128,n=!0,Rn(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=gt(),e.sibling=null,a=Ve.current,K(Ve,n?a&1|2:a&1),ve&&Wt(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return xt(t),Ds(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&Vi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(Fa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Pt(Ke),Ue(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function np(e,t){switch(ms(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pt(Ke),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Pn(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(r(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ve),null;case 4:return Ge(),null;case 10:return Pt(t.type),null;case 22:case 23:return xt(t),Ds(),e!==null&&U(Fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Pt(Ke),null;case 25:return null;default:return null}}function ed(e,t){switch(ms(t),t.tag){case 3:Pt(Ke),Ge();break;case 26:case 27:case 5:Pn(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:U(Ve);break;case 10:Pt(t.type);break;case 22:case 23:xt(t),Ds(),e!==null&&U(Fa);break;case 24:Pt(Ke)}}function Tn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var u=a.create,d=a.inst;l=u(),d.destroy=l}a=a.next}while(a!==n)}}catch(g){Oe(t,t.return,g)}}function za(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&e)===e){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,n=t;var S=a,A=g;try{A()}catch(N){Oe(n,S,N)}}}l=l.next}while(l!==u)}}catch(N){Oe(t,t.return,N)}}function td(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Qo(t,a)}catch(l){Oe(e,e.return,l)}}}function ad(e,t,a){a.props=tl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Oe(e,t,l)}}function Cn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){Oe(e,t,n)}}function Vt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){Oe(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){Oe(e,t,n)}else a.current=null}function ld(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){Oe(e,e.return,n)}}function sr(e,t,a){try{var l=e.stateNode;zp(l,e.type,a,t),l[rt]=t}catch(n){Oe(e,e.return,n)}}function nd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ja(e.type)||e.tag===4}function rr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nd(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&&ja(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 cr(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=$t));else if(l!==4&&(l===27&&ja(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(cr(e,t,a),e=e.sibling;e!==null;)cr(e,t,a),e=e.sibling}function Xi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&ja(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Xi(e,t,a),e=e.sibling;e!==null;)Xi(e,t,a),e=e.sibling}function id(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,l,a),t[et]=e,t[rt]=a}catch(u){Oe(e,e.return,u)}}var na=!1,$e=!1,or=!1,ud=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function ip(e,t){if(e=e.containerInfo,Lr=ou,e=yo(e),ls(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var d=0,g=-1,S=-1,A=0,N=0,B=e,D=null;t:for(;;){for(var L;B!==a||n!==0&&B.nodeType!==3||(g=d+n),B!==u||l!==0&&B.nodeType!==3||(S=d+l),B.nodeType===3&&(d+=B.nodeValue.length),(L=B.firstChild)!==null;)D=B,B=L;for(;;){if(B===e)break t;if(D===a&&++A===n&&(g=d),D===u&&++N===l&&(S=d),(L=B.nextSibling)!==null)break;B=D,D=B.parentNode}B=L}a=g===-1||S===-1?null:{start:g,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(_r={focusedElem:e,selectionRange:a},ou=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,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(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,n=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var J=tl(a.type,n);e=l.getSnapshotBeforeUpdate(J,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Oe(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ur(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ur(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function sd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ua(e,a),l&4&&Tn(5,a);break;case 1:if(ua(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Oe(a,a.return,d)}else{var n=tl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Oe(a,a.return,d)}}l&64&&td(a),l&512&&Cn(a,a.return);break;case 3:if(ua(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Qo(e,t)}catch(d){Oe(a,a.return,d)}}break;case 27:t===null&&l&4&&id(a);case 26:case 5:ua(e,a),t===null&&l&4&&ld(a),l&512&&Cn(a,a.return);break;case 12:ua(e,a);break;case 31:ua(e,a),l&4&&od(e,a);break;case 13:ua(e,a),l&4&&fd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=mp.bind(null,a),Np(e,a))));break;case 22:if(l=a.memoizedState!==null||na,!l){t=t!==null&&t.memoizedState!==null||$e,n=na;var u=$e;na=l,($e=t)&&!u?sa(e,a,(a.subtreeFlags&8772)!==0):ua(e,a),na=n,$e=u}break;case 30:break;default:ua(e,a)}}function rd(e){var t=e.alternate;t!==null&&(e.alternate=null,rd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&qu(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 He=null,ot=!1;function ia(e,t,a){for(a=a.child;a!==null;)cd(e,t,a),a=a.sibling}function cd(e,t,a){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount($l,a)}catch{}switch(a.tag){case 26:$e||Vt(a,t),ia(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||Vt(a,t);var l=He,n=ot;ja(a.type)&&(He=a.stateNode,ot=!1),ia(e,t,a),Nn(a.stateNode),He=l,ot=n;break;case 5:$e||Vt(a,t);case 6:if(l=He,n=ot,He=null,ia(e,t,a),He=l,ot=n,He!==null)if(ot)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(a.stateNode)}catch(u){Oe(a,t,u)}else try{He.removeChild(a.stateNode)}catch(u){Oe(a,t,u)}break;case 18:He!==null&&(ot?(e=He,th(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Xl(e)):th(He,a.stateNode));break;case 4:l=He,n=ot,He=a.stateNode.containerInfo,ot=!0,ia(e,t,a),He=l,ot=n;break;case 0:case 11:case 14:case 15:za(2,a,t),$e||za(4,a,t),ia(e,t,a);break;case 1:$e||(Vt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&ad(a,t,l)),ia(e,t,a);break;case 21:ia(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,ia(e,t,a),$e=l;break;default:ia(e,t,a)}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xl(e)}catch(a){Oe(t,t.return,a)}}}function fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xl(e)}catch(a){Oe(t,t.return,a)}}function up(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ud),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ud),t;default:throw Error(r(435,e.tag))}}function Qi(e,t){var a=up(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=gp.bind(null,e,l);l.then(n,n)}})}function ft(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],u=e,d=t,g=d;e:for(;g!==null;){switch(g.tag){case 27:if(ja(g.type)){He=g.stateNode,ot=!1;break e}break;case 5:He=g.stateNode,ot=!1;break e;case 3:case 4:He=g.stateNode.containerInfo,ot=!0;break e}g=g.return}if(He===null)throw Error(r(160));cd(u,d,n),He=null,ot=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dd(t,e),t=t.sibling}var Bt=null;function dd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),l&4&&(za(3,e,e.return),Tn(3,e),za(5,e,e.return));break;case 1:ft(t,e),dt(e),l&512&&($e||a===null||Vt(a,a.return)),l&64&&na&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Bt;if(ft(t,e),dt(e),l&512&&($e||a===null||Vt(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Wl]||u[et]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(l),n.head.insertBefore(u,n.querySelector("head > title"))),nt(u,l,a),u[et]=e,We(u),l=u;break e;case"link":var d=dh("link","href",n).get(l+(a.href||""));if(d){for(var g=0;g<d.length;g++)if(u=d[g],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(g,1);break t}}u=n.createElement(l),nt(u,l,a),n.head.appendChild(u);break;case"meta":if(d=dh("meta","content",n).get(l+(a.content||""))){for(g=0;g<d.length;g++)if(u=d[g],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(g,1);break t}}u=n.createElement(l),nt(u,l,a),n.head.appendChild(u);break;default:throw Error(r(468,l))}u[et]=e,We(u),l=u}e.stateNode=l}else hh(n,e.type,e.stateNode);else e.stateNode=fh(n,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?hh(n,e.type,e.stateNode):fh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&sr(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),l&512&&($e||a===null||Vt(a,a.return)),a!==null&&l&4&&sr(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),l&512&&($e||a===null||Vt(a,a.return)),e.flags&32){n=e.stateNode;try{dl(n,"")}catch(J){Oe(e,e.return,J)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,sr(e,n,a!==null?a.memoizedProps:n)),l&1024&&(or=!0);break;case 6:if(ft(t,e),dt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Oe(e,e.return,J)}}break;case 3:if(uu=null,n=Bt,Bt=nu(t.containerInfo),ft(t,e),Bt=n,dt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Xl(t.containerInfo)}catch(J){Oe(e,e.return,J)}or&&(or=!1,hd(e));break;case 4:l=Bt,Bt=nu(e.stateNode.containerInfo),ft(t,e),dt(e),Bt=l;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qi(e,l)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Zi=gt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qi(e,l)));break;case 22:n=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,A=na,N=$e;if(na=A||n,$e=N||S,ft(t,e),$e=N,na=A,dt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||S||na||$e||al(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(u=S.stateNode,n)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{g=S.stateNode;var B=S.memoizedProps.style,D=B!=null&&B.hasOwnProperty("display")?B.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(J){Oe(S,S.return,J)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(J){Oe(S,S.return,J)}}}else if(t.tag===18){if(a===null){S=t;try{var L=S.stateNode;n?ah(L,!0):ah(S.stateNode,!1)}catch(J){Oe(S,S.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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Qi(e,a))));break;case 19:ft(t,e),dt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qi(e,l)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(nd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var n=a.stateNode,u=rr(e);Xi(e,u,n);break;case 5:var d=a.stateNode;a.flags&32&&(dl(d,""),a.flags&=-33);var g=rr(e);Xi(e,g,d);break;case 3:case 4:var S=a.stateNode.containerInfo,A=rr(e);cr(e,A,S);break;default:throw Error(r(161))}}catch(N){Oe(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ua(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sd(e,t.alternate,t),t=t.sibling}function al(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:za(4,t,t.return),al(t);break;case 1:Vt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ad(t,t.return,a),al(t);break;case 27:Nn(t.stateNode);case 26:case 5:Vt(t,t.return),al(t);break;case 22:t.memoizedState===null&&al(t);break;case 30:al(t);break;default:al(t)}e=e.sibling}}function sa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,u=t,d=u.flags;switch(u.tag){case 0:case 11:case 15:sa(n,u,a),Tn(4,u);break;case 1:if(sa(n,u,a),l=u,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(A){Oe(l,l.return,A)}if(l=u,n=l.updateQueue,n!==null){var g=l.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Xo(S[n],g)}catch(A){Oe(l,l.return,A)}}a&&d&64&&td(u),Cn(u,u.return);break;case 27:id(u);case 26:case 5:sa(n,u,a),a&&l===null&&d&4&&ld(u),Cn(u,u.return);break;case 12:sa(n,u,a);break;case 31:sa(n,u,a),a&&d&4&&od(n,u);break;case 13:sa(n,u,a),a&&d&4&&fd(n,u);break;case 22:u.memoizedState===null&&sa(n,u,a),Cn(u,u.return);break;case 30:break;default:sa(n,u,a)}t=t.sibling}}function fr(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&fn(a))}function dr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e))}function wt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)md(e,t,a,l),t=t.sibling}function md(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,a,l),n&2048&&Tn(9,t);break;case 1:wt(e,t,a,l);break;case 3:wt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e)));break;case 12:if(n&2048){wt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,d=u.id,g=u.onPostCommit;typeof g=="function"&&g(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Oe(t,t.return,S)}}else wt(e,t,a,l);break;case 31:wt(e,t,a,l);break;case 13:wt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,d=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,a,l):zn(e,t):u._visibility&2?wt(e,t,a,l):(u._visibility|=2,_l(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&fr(d,t);break;case 24:wt(e,t,a,l),n&2048&&dr(t.alternate,t);break;default:wt(e,t,a,l)}}function _l(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,d=t,g=a,S=l,A=d.flags;switch(d.tag){case 0:case 11:case 15:_l(u,d,g,S,n),Tn(8,d);break;case 23:break;case 22:var N=d.stateNode;d.memoizedState!==null?N._visibility&2?_l(u,d,g,S,n):zn(u,d):(N._visibility|=2,_l(u,d,g,S,n)),n&&A&2048&&fr(d.alternate,d);break;case 24:_l(u,d,g,S,n),n&&A&2048&&dr(d.alternate,d);break;default:_l(u,d,g,S,n)}t=t.sibling}}function zn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:zn(a,l),n&2048&&fr(l.alternate,l);break;case 24:zn(a,l),n&2048&&dr(l.alternate,l);break;default:zn(a,l)}t=t.sibling}}var An=8192;function jl(e,t,a){if(e.subtreeFlags&An)for(e=e.child;e!==null;)gd(e,t,a),e=e.sibling}function gd(e,t,a){switch(e.tag){case 26:jl(e,t,a),e.flags&An&&e.memoizedState!==null&&Zp(a,Bt,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,a);break;case 3:case 4:var l=Bt;Bt=nu(e.stateNode.containerInfo),jl(e,t,a),Bt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=An,An=16777216,jl(e,t,a),An=l):jl(e,t,a));break;default:jl(e,t,a)}}function pd(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 On(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,vd(l,e)}pd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yd(e),e=e.sibling}function yd(e){switch(e.tag){case 0:case 11:case 15:On(e),e.flags&2048&&za(9,e,e.return);break;case 3:On(e);break;case 12:On(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ki(e)):On(e);break;default:On(e)}}function Ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ie=l,vd(l,e)}pd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:za(8,t,t.return),Ki(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ki(t));break;default:Ki(t)}e=e.sibling}}function vd(e,t){for(;Ie!==null;){var a=Ie;switch(a.tag){case 0:case 11:case 15:za(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:fn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ie=l;else e:for(a=e;Ie!==null;){l=Ie;var n=l.sibling,u=l.return;if(rd(l),l===a){Ie=null;break e}if(n!==null){n.return=u,Ie=n;break e}Ie=u}}}var sp={getCacheForType:function(e){var t=at(Ke),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Ke).controller.signal}},rp=typeof WeakMap=="function"?WeakMap:Map,Te=0,je=null,de=null,me=0,Ae=0,Et=null,Aa=!1,Nl=!1,hr=!1,ra=0,qe=0,Oa=0,ll=0,mr=0,Rt=0,Ul=0,Dn=null,ht=null,gr=!1,Zi=0,bd=0,Ji=1/0,$i=null,Da=null,Fe=0,Ma=null,Hl=null,ca=0,pr=0,yr=null,Sd=null,Mn=0,vr=null;function Tt(){return(Te&2)!==0&&me!==0?me&-me:M.T!==null?Tr():Nc()}function xd(){if(Rt===0)if((me&536870912)===0||ve){var e=ai;ai<<=1,(ai&3932160)===0&&(ai=262144),Rt=e}else Rt=536870912;return e=St.current,e!==null&&(e.flags|=32),Rt}function mt(e,t,a){(e===je&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(Bl(e,0),La(e,me,Rt,!1)),Fl(e,a),((Te&2)===0||e!==je)&&(e===je&&((Te&2)===0&&(ll|=a),qe===4&&La(e,me,Rt,!1)),Xt(e))}function Ed(e,t,a){if((Te&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||kl(e,t),n=l?fp(e,t):Sr(e,t,!0),u=l;do{if(n===0){Nl&&!l&&La(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!cp(a)){n=Sr(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;n=Dn;var S=g.current.memoizedState.isDehydrated;if(S&&(Bl(g,d).flags|=256),d=Sr(g,d,!1),d!==2){if(hr&&!S){g.errorRecoveryDisabledLanes|=u,ll|=u,n=4;break e}u=ht,ht=n,u!==null&&(ht===null?ht=u:ht.push.apply(ht,u))}n=d}if(u=!1,n!==2)continue}}if(n===1){Bl(e,0),La(e,t,0,!0);break}e:{switch(l=e,u=n,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:La(l,t,Rt,!Aa);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Zi+300-gt(),10<n)){if(La(l,t,Rt,!Aa),ni(l,0,!0)!==0)break e;ca=t,l.timeoutHandle=Pd(Rd.bind(null,l,a,ht,$i,gr,t,Rt,ll,Ul,Aa,u,"Throttled",-0,0),n);break e}Rd(l,a,ht,$i,gr,t,Rt,ll,Ul,Aa,u,null,-0,0)}}break}while(!0);Xt(e)}function Rd(e,t,a,l,n,u,d,g,S,A,N,B,D,L){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},gd(t,u,B);var J=(u&62914560)===u?Zi-gt():(u&4194048)===u?bd-gt():0;if(J=Jp(B,J),J!==null){ca=u,e.cancelPendingCommit=J(Ld.bind(null,e,t,u,a,l,n,d,g,S,N,B,null,D,L)),La(e,u,d,!A);return}}Ld(e,t,u,a,l,n,d,g,S)}function cp(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],u=n.getSnapshot;n=n.value;try{if(!vt(u(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 La(e,t,a,l){t&=~mr,t&=~ll,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var u=31-yt(n),d=1<<u;l[u]=-1,n&=~d}a!==0&&Lc(e,a,t)}function ki(){return(Te&6)===0?(Ln(0),!1):!0}function br(){if(de!==null){if(Ae===0)var e=de.return;else e=de,It=$a=null,Us(e),Al=null,hn=0,e=de;for(;e!==null;)ed(e.alternate,e),e=e.return;de=null}}function Bl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Dp(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ca=0,br(),je=e,de=a=Ft(e.current,null),me=t,Ae=0,Et=null,Aa=!1,Nl=kl(e,t),hr=!1,Ul=Rt=mr=ll=Oa=qe=0,ht=Dn=null,gr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-yt(l),u=1<<n;t|=e[n],l&=~u}return ra=t,pi(),a}function Td(e,t){ce=null,M.H=xn,t===zl||t===Ti?(t=Yo(),Ae=3):t===Rs?(t=Yo(),Ae=4):Ae=t===Ws?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(qe=1,wi(e,Ot(t,e.current)))}function Cd(){var e=St.current;return e===null?!0:(me&4194048)===me?_t===null:(me&62914560)===me||(me&536870912)!==0?e===_t:!1}function zd(){var e=M.H;return M.H=xn,e===null?xn:e}function Ad(){var e=M.A;return M.A=sp,e}function Fi(){qe=4,Aa||(me&4194048)!==me&&St.current!==null||(Nl=!0),(Oa&134217727)===0&&(ll&134217727)===0||je===null||La(je,me,Rt,!1)}function Sr(e,t,a){var l=Te;Te|=2;var n=zd(),u=Ad();(je!==e||me!==t)&&($i=null,Bl(e,t)),t=!1;var d=qe;e:do try{if(Ae!==0&&de!==null){var g=de,S=Et;switch(Ae){case 8:br(),d=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var A=Ae;if(Ae=0,Et=null,wl(e,g,S,A),a&&Nl){d=0;break e}break;default:A=Ae,Ae=0,Et=null,wl(e,g,S,A)}}op(),d=qe;break}catch(N){Td(e,N)}while(!0);return t&&e.shellSuspendCounter++,It=$a=null,Te=l,M.H=n,M.A=u,de===null&&(je=null,me=0,pi()),d}function op(){for(;de!==null;)Od(de)}function fp(e,t){var a=Te;Te|=2;var l=zd(),n=Ad();je!==e||me!==t?($i=null,Ji=gt()+500,Bl(e,t)):Nl=kl(e,t);e:do try{if(Ae!==0&&de!==null){t=de;var u=Et;t:switch(Ae){case 1:Ae=0,Et=null,wl(e,t,u,1);break;case 2:case 9:if(Bo(u)){Ae=0,Et=null,Dd(t);break}t=function(){Ae!==2&&Ae!==9||je!==e||(Ae=7),Xt(e)},u.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:Bo(u)?(Ae=0,Et=null,Dd(t)):(Ae=0,Et=null,wl(e,t,u,7));break;case 5:var d=null;switch(de.tag){case 26:d=de.memoizedState;case 5:case 27:var g=de;if(d?mh(d):g.stateNode.complete){Ae=0,Et=null;var S=g.sibling;if(S!==null)de=S;else{var A=g.return;A!==null?(de=A,Wi(A)):de=null}break t}}Ae=0,Et=null,wl(e,t,u,5);break;case 6:Ae=0,Et=null,wl(e,t,u,6);break;case 8:br(),qe=6;break e;default:throw Error(r(462))}}dp();break}catch(N){Td(e,N)}while(!0);return It=$a=null,M.H=l,M.A=n,Te=a,de!==null?0:(je=null,me=0,pi(),qe)}function dp(){for(;de!==null&&!Um();)Od(de)}function Od(e){var t=If(e.alternate,e,ra);e.memoizedProps=e.pendingProps,t===null?Wi(e):de=t}function Dd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Zf(a,t,t.pendingProps,t.type,void 0,me);break;case 11:t=Zf(a,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Us(t);default:ed(a,t),t=de=zo(t,ra),t=If(a,t,ra)}e.memoizedProps=e.pendingProps,t===null?Wi(e):de=t}function wl(e,t,a,l){It=$a=null,Us(t),Al=null,hn=0;var n=t.return;try{if(ep(e,n,t,a,me)){qe=1,wi(e,Ot(a,e.current)),de=null;return}}catch(u){if(n!==null)throw de=n,u;qe=1,wi(e,Ot(a,e.current)),de=null;return}t.flags&32768?(ve||l===1?e=!0:Nl||(me&536870912)!==0?e=!1:(Aa=e=!0,(l===2||l===9||l===3||l===6)&&(l=St.current,l!==null&&l.tag===13&&(l.flags|=16384))),Md(t,e)):Wi(t)}function Wi(e){var t=e;do{if((t.flags&32768)!==0){Md(t,Aa);return}e=t.return;var a=lp(t.alternate,t,ra);if(a!==null){de=a;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function Md(e,t){do{var a=np(e.alternate,e);if(a!==null){a.flags&=32767,de=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=a}while(e!==null);qe=6,de=null}function Ld(e,t,a,l,n,u,d,g,S){e.cancelPendingCommit=null;do Ii();while(Fe!==0);if((Te&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=rs,Km(e,a,u,d,g,S),e===je&&(de=je=null,me=0),Hl=t,Ma=e,ca=a,pr=u,yr=n,Sd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pp(ei,function(){return Hd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,n=q.p,q.p=2,d=Te,Te|=4;try{ip(e,t,a)}finally{Te=d,q.p=n,M.T=l}}Fe=1,_d(),jd(),Nd()}}function _d(){if(Fe===1){Fe=0;var e=Ma,t=Hl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var l=q.p;q.p=2;var n=Te;Te|=4;try{dd(t,e);var u=_r,d=yo(e.containerInfo),g=u.focusedElem,S=u.selectionRange;if(d!==g&&g&&g.ownerDocument&&po(g.ownerDocument.documentElement,g)){if(S!==null&&ls(g)){var A=S.start,N=S.end;if(N===void 0&&(N=A),"selectionStart"in g)g.selectionStart=A,g.selectionEnd=Math.min(N,g.value.length);else{var B=g.ownerDocument||document,D=B&&B.defaultView||window;if(D.getSelection){var L=D.getSelection(),J=g.textContent.length,ee=Math.min(S.start,J),Le=S.end===void 0?ee:Math.min(S.end,J);!L.extend&&ee>Le&&(d=Le,Le=ee,ee=d);var R=go(g,ee),E=go(g,Le);if(R&&E&&(L.rangeCount!==1||L.anchorNode!==R.node||L.anchorOffset!==R.offset||L.focusNode!==E.node||L.focusOffset!==E.offset)){var z=B.createRange();z.setStart(R.node,R.offset),L.removeAllRanges(),ee>Le?(L.addRange(z),L.extend(E.node,E.offset)):(z.setEnd(E.node,E.offset),L.addRange(z))}}}}for(B=[],L=g;L=L.parentNode;)L.nodeType===1&&B.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<B.length;g++){var H=B[g];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}ou=!!Lr,_r=Lr=null}finally{Te=n,q.p=l,M.T=a}}e.current=t,Fe=2}}function jd(){if(Fe===2){Fe=0;var e=Ma,t=Hl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var l=q.p;q.p=2;var n=Te;Te|=4;try{sd(e,t.alternate,t)}finally{Te=n,q.p=l,M.T=a}}Fe=3}}function Nd(){if(Fe===4||Fe===3){Fe=0,Hm();var e=Ma,t=Hl,a=ca,l=Sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Hl=Ma=null,Ud(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Da=null),wu(a),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot($l,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=M.T,n=q.p,q.p=2,M.T=null;try{for(var u=e.onRecoverableError,d=0;d<l.length;d++){var g=l[d];u(g.value,{componentStack:g.stack})}}finally{M.T=t,q.p=n}}(ca&3)!==0&&Ii(),Xt(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===vr?Mn++:(Mn=0,vr=e):Mn=0,Ln(0)}}function Ud(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fn(t)))}function Ii(){return _d(),jd(),Nd(),Hd()}function Hd(){if(Fe!==5)return!1;var e=Ma,t=pr;pr=0;var a=wu(ca),l=M.T,n=q.p;try{q.p=32>a?32:a,M.T=null,a=yr,yr=null;var u=Ma,d=ca;if(Fe=0,Hl=Ma=null,ca=0,(Te&6)!==0)throw Error(r(331));var g=Te;if(Te|=4,yd(u.current),md(u,u.current,d,a),Te=g,Ln(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot($l,u)}catch{}return!0}finally{q.p=n,M.T=l,Ud(e,t)}}function Bd(e,t,a){t=Ot(a,t),t=Fs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Fl(e,2),Xt(e))}function Oe(e,t,a){if(e.tag===3)Bd(e,e,a);else for(;t!==null;){if(t.tag===3){Bd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Da===null||!Da.has(l))){e=Ot(a,e),a=wf(2),l=Ra(t,a,2),l!==null&&(Yf(a,l,t,e),Fl(l,2),Xt(l));break}}t=t.return}}function xr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new rp;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(hr=!0,n.add(a),e=hp.bind(null,e,t,a),t.then(e,e))}function hp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,je===e&&(me&a)===a&&(qe===4||qe===3&&(me&62914560)===me&&300>gt()-Zi?(Te&2)===0&&Bl(e,0):mr|=a,Ul===me&&(Ul=0)),Xt(e)}function wd(e,t){t===0&&(t=Mc()),e=Ka(e,t),e!==null&&(Fl(e,t),Xt(e))}function mp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),wd(e,a)}function gp(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),wd(e,a)}function pp(e,t){return Nu(e,t)}var Pi=null,Yl=null,Er=!1,eu=!1,Rr=!1,_a=0;function Xt(e){e!==Yl&&e.next===null&&(Yl===null?Pi=Yl=e:Yl=Yl.next=e),eu=!0,Er||(Er=!0,vp())}function Ln(e,t){if(!Rr&&eu){Rr=!0;do for(var a=!1,l=Pi;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var u=0;else{var d=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-yt(42|e)+1)-1,u&=n&~(d&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Vd(l,u))}else u=me,u=ni(l,l===je?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||kl(l,u)||(a=!0,Vd(l,u));l=l.next}while(a);Rr=!1}}function yp(){Yd()}function Yd(){eu=Er=!1;var e=0;_a!==0&&Op()&&(e=_a);for(var t=gt(),a=null,l=Pi;l!==null;){var n=l.next,u=qd(l,t);u===0?(l.next=null,a===null?Pi=n:a.next=n,n===null&&(Yl=a)):(a=l,(e!==0||(u&3)!==0)&&(eu=!0)),l=n}Fe!==0&&Fe!==5||Ln(e),_a!==0&&(_a=0)}function qd(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var d=31-yt(u),g=1<<d,S=n[d];S===-1?((g&a)===0||(g&l)!==0)&&(n[d]=Qm(g,t)):S<=t&&(e.expiredLanes|=g),u&=~g}if(t=je,a=me,a=ni(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Uu(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||kl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Uu(l),wu(a)){case 2:case 8:a=Oc;break;case 32:a=ei;break;case 268435456:a=Dc;break;default:a=ei}return l=Gd.bind(null,e),a=Nu(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Uu(l),e.callbackPriority=2,e.callbackNode=null,2}function Gd(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Ii()&&e.callbackNode!==a)return null;var l=me;return l=ni(e,e===je?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Ed(e,l,t),qd(e,gt()),e.callbackNode!=null&&e.callbackNode===a?Gd.bind(null,e):null)}function Vd(e,t){if(Ii())return null;Ed(e,t,!0)}function vp(){Mp(function(){(Te&6)!==0?Nu(Ac,yp):Yd()})}function Tr(){if(_a===0){var e=Tl;e===0&&(e=ti,ti<<=1,(ti&261888)===0&&(ti=256)),_a=e}return _a}function Xd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ri(""+e)}function Qd(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function bp(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var u=Xd((n[rt]||null).action),d=l.submitter;d&&(t=(t=d[rt]||null)?Xd(t.formAction):d.getAttribute("formAction"),t!==null&&(u=t,d=null));var g=new di("action","action",null,l,n);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(_a!==0){var S=d?Qd(n,d):new FormData(n);Qs(a,{pending:!0,data:S,method:n.method,action:u},null,S)}}else typeof u=="function"&&(g.preventDefault(),S=d?Qd(n,d):new FormData(n),Qs(a,{pending:!0,data:S,method:n.method,action:u},u,S))},currentTarget:n}]})}}for(var Cr=0;Cr<ss.length;Cr++){var zr=ss[Cr],Sp=zr.toLowerCase(),xp=zr[0].toUpperCase()+zr.slice(1);Ht(Sp,"on"+xp)}Ht(So,"onAnimationEnd"),Ht(xo,"onAnimationIteration"),Ht(Eo,"onAnimationStart"),Ht("dblclick","onDoubleClick"),Ht("focusin","onFocus"),Ht("focusout","onBlur"),Ht(Bg,"onTransitionRun"),Ht(wg,"onTransitionStart"),Ht(Yg,"onTransitionCancel"),Ht(Ro,"onTransitionEnd"),ol("onMouseEnter",["mouseout","mouseover"]),ol("onMouseLeave",["mouseout","mouseover"]),ol("onPointerEnter",["pointerout","pointerover"]),ol("onPointerLeave",["pointerout","pointerover"]),Ga("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ga("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ga("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ga("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ga("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ga("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ep=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_n));function Kd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var d=l.length-1;0<=d;d--){var g=l[d],S=g.instance,A=g.currentTarget;if(g=g.listener,S!==u&&n.isPropagationStopped())break e;u=g,n.currentTarget=A;try{u(n)}catch(N){gi(N)}n.currentTarget=null,u=S}else for(d=0;d<l.length;d++){if(g=l[d],S=g.instance,A=g.currentTarget,g=g.listener,S!==u&&n.isPropagationStopped())break e;u=g,n.currentTarget=A;try{u(n)}catch(N){gi(N)}n.currentTarget=null,u=S}}}}function he(e,t){var a=t[Yu];a===void 0&&(a=t[Yu]=new Set);var l=e+"__bubble";a.has(l)||(Zd(t,e,2,!1),a.add(l))}function Ar(e,t,a){var l=0;t&&(l|=4),Zd(a,e,l,t)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Or(e){if(!e[tu]){e[tu]=!0,Bc.forEach(function(a){a!=="selectionchange"&&(Ep.has(a)||Ar(a,!1,e),Ar(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tu]||(t[tu]=!0,Ar("selectionchange",!1,t))}}function Zd(e,t,a,l){switch(xh(t)){case 2:var n=Fp;break;case 8:n=Wp;break;default:n=Xr}a=n.bind(null,t,a,e),n=void 0,!$u||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function Dr(e,t,a,l,n){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===n)break;if(d===4)for(d=l.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===n)return;d=d.return}for(;g!==null;){if(d=sl(g),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){l=u=d;continue e}g=g.parentNode}}l=l.return}kc(function(){var A=u,N=Zu(a),B=[];e:{var D=To.get(e);if(D!==void 0){var L=di,J=e;switch(e){case"keypress":if(oi(a)===0)break e;case"keydown":case"keyup":L=gg;break;case"focusin":J="focus",L=Iu;break;case"focusout":J="blur",L=Iu;break;case"beforeblur":case"afterblur":L=Iu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Ic;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=lg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=vg;break;case So:case xo:case Eo:L=ug;break;case Ro:L=Sg;break;case"scroll":case"scrollend":L=tg;break;case"wheel":L=Eg;break;case"copy":case"cut":case"paste":L=rg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=eo;break;case"toggle":case"beforetoggle":L=Tg}var ee=(t&4)!==0,Le=!ee&&(e==="scroll"||e==="scrollend"),R=ee?D!==null?D+"Capture":null:D;ee=[];for(var E=A,z;E!==null;){var H=E;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||R===null||(H=Pl(E,R),H!=null&&ee.push(jn(E,H,z))),Le)break;E=E.return}0<ee.length&&(D=new L(D,J,null,a,N),B.push({event:D,listeners:ee}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",D&&a!==Ku&&(J=a.relatedTarget||a.fromElement)&&(sl(J)||J[ul]))break e;if((L||D)&&(D=N.window===N?N:(D=N.ownerDocument)?D.defaultView||D.parentWindow:window,L?(J=a.relatedTarget||a.toElement,L=A,J=J?sl(J):null,J!==null&&(Le=f(J),ee=J.tag,J!==Le||ee!==5&&ee!==27&&ee!==6)&&(J=null)):(L=null,J=A),L!==J)){if(ee=Ic,H="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ee=eo,H="onPointerLeave",R="onPointerEnter",E="pointer"),Le=L==null?D:Il(L),z=J==null?D:Il(J),D=new ee(H,E+"leave",L,a,N),D.target=Le,D.relatedTarget=z,H=null,sl(N)===A&&(ee=new ee(R,E+"enter",J,a,N),ee.target=z,ee.relatedTarget=Le,H=ee),Le=H,L&&J)t:{for(ee=Rp,R=L,E=J,z=0,H=R;H;H=ee(H))z++;H=0;for(var W=E;W;W=ee(W))H++;for(;0<z-H;)R=ee(R),z--;for(;0<H-z;)E=ee(E),H--;for(;z--;){if(R===E||E!==null&&R===E.alternate){ee=R;break t}R=ee(R),E=ee(E)}ee=null}else ee=null;L!==null&&Jd(B,D,L,ee,!1),J!==null&&Le!==null&&Jd(B,Le,J,ee,!0)}}e:{if(D=A?Il(A):window,L=D.nodeName&&D.nodeName.toLowerCase(),L==="select"||L==="input"&&D.type==="file")var Se=ro;else if(uo(D))if(co)Se=Ng;else{Se=_g;var F=Lg}else L=D.nodeName,!L||L.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?A&&Qu(A.elementType)&&(Se=ro):Se=jg;if(Se&&(Se=Se(e,A))){so(B,Se,a,N);break e}F&&F(e,D,A),e==="focusout"&&A&&D.type==="number"&&A.memoizedProps.value!=null&&Xu(D,"number",D.value)}switch(F=A?Il(A):window,e){case"focusin":(uo(F)||F.contentEditable==="true")&&(pl=F,ns=A,rn=null);break;case"focusout":rn=ns=pl=null;break;case"mousedown":is=!0;break;case"contextmenu":case"mouseup":case"dragend":is=!1,vo(B,a,N);break;case"selectionchange":if(Hg)break;case"keydown":case"keyup":vo(B,a,N)}var oe;if(es)e:{switch(e){case"compositionstart":var ge="onCompositionStart";break e;case"compositionend":ge="onCompositionEnd";break e;case"compositionupdate":ge="onCompositionUpdate";break e}ge=void 0}else gl?no(e,a)&&(ge="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ge="onCompositionStart");ge&&(to&&a.locale!=="ko"&&(gl||ge!=="onCompositionStart"?ge==="onCompositionEnd"&&gl&&(oe=Fc()):(pa=N,ku="value"in pa?pa.value:pa.textContent,gl=!0)),F=au(A,ge),0<F.length&&(ge=new Pc(ge,e,null,a,N),B.push({event:ge,listeners:F}),oe?ge.data=oe:(oe=io(a),oe!==null&&(ge.data=oe)))),(oe=zg?Ag(e,a):Og(e,a))&&(ge=au(A,"onBeforeInput"),0<ge.length&&(F=new Pc("onBeforeInput","beforeinput",null,a,N),B.push({event:F,listeners:ge}),F.data=oe)),bp(B,e,A,a,N)}Kd(B,t)})}function jn(e,t,a){return{instance:e,listener:t,currentTarget:a}}function au(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Pl(e,a),n!=null&&l.unshift(jn(e,n,u)),n=Pl(e,t),n!=null&&l.push(jn(e,n,u))),e.tag===3)return l;e=e.return}return[]}function Rp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jd(e,t,a,l,n){for(var u=t._reactName,d=[];a!==null&&a!==l;){var g=a,S=g.alternate,A=g.stateNode;if(g=g.tag,S!==null&&S===l)break;g!==5&&g!==26&&g!==27||A===null||(S=A,n?(A=Pl(a,u),A!=null&&d.unshift(jn(a,A,S))):n||(A=Pl(a,u),A!=null&&d.push(jn(a,A,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Tp=/\r\n?/g,Cp=/\u0000|\uFFFD/g;function $d(e){return(typeof e=="string"?e:""+e).replace(Tp,`
|
|
49
|
+
`).replace(Cp,"")}function kd(e,t){return t=$d(t),$d(e)===t}function Me(e,t,a,l,n,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||dl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&dl(e,""+l);break;case"className":ui(e,"class",l);break;case"tabIndex":ui(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ui(e,a,l);break;case"style":Jc(e,l,u);break;case"data":if(t!=="object"){ui(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ri(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",n.name,n,null),Me(e,t,"formEncType",n.formEncType,n,null),Me(e,t,"formMethod",n.formMethod,n,null),Me(e,t,"formTarget",n.formTarget,n,null)):(Me(e,t,"encType",n.encType,n,null),Me(e,t,"method",n.method,n,null),Me(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ri(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=$t);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ri(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":he("beforetoggle",e),he("toggle",e),ii(e,"popover",l);break;case"xlinkActuate":Jt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Jt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Jt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Jt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Jt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Jt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Jt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ii(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Pm.get(a)||a,ii(e,a,l))}}function Mr(e,t,a,l,n,u){switch(a){case"style":Jc(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?dl(e,l):(typeof l=="number"||typeof l=="bigint")&&dl(e,""+l);break;case"onScroll":l!=null&&he("scroll",e);break;case"onScrollEnd":l!=null&&he("scrollend",e);break;case"onClick":l!=null&&(e.onclick=$t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),u=e[rt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):ii(e,a,l)}}}function nt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var l=!1,n=!1,u;for(u in a)if(a.hasOwnProperty(u)){var d=a[u];if(d!=null)switch(u){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,u,d,a,null)}}n&&Me(e,t,"srcSet",a.srcSet,a,null),l&&Me(e,t,"src",a.src,a,null);return;case"input":he("invalid",e);var g=u=d=n=null,S=null,A=null;for(l in a)if(a.hasOwnProperty(l)){var N=a[l];if(N!=null)switch(l){case"name":n=N;break;case"type":d=N;break;case"checked":S=N;break;case"defaultChecked":A=N;break;case"value":u=N;break;case"defaultValue":g=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(r(137,t));break;default:Me(e,t,l,N,a,null)}}Xc(e,u,g,S,A,d,n,!1);return;case"select":he("invalid",e),l=d=u=null;for(n in a)if(a.hasOwnProperty(n)&&(g=a[n],g!=null))switch(n){case"value":u=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:Me(e,t,n,g,a,null)}t=u,a=d,e.multiple=!!l,t!=null?fl(e,!!l,t,!1):a!=null&&fl(e,!!l,a,!0);return;case"textarea":he("invalid",e),u=n=l=null;for(d in a)if(a.hasOwnProperty(d)&&(g=a[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":n=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:Me(e,t,d,g,a,null)}Kc(e,l,n,u);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(l=a[S],l!=null))switch(S){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Me(e,t,S,l,a,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(l=0;l<_n.length;l++)he(_n[l],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("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(A in a)if(a.hasOwnProperty(A)&&(l=a[A],l!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Me(e,t,A,l,a,null)}return;default:if(Qu(t)){for(N in a)a.hasOwnProperty(N)&&(l=a[N],l!==void 0&&Mr(e,t,N,l,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(l=a[g],l!=null&&Me(e,t,g,l,a,null))}function zp(e,t,a,l){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,d=null,g=null,S=null,A=null,N=null;for(L in a){var B=a[L];if(a.hasOwnProperty(L)&&B!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":S=B;default:l.hasOwnProperty(L)||Me(e,t,L,null,l,B)}}for(var D in l){var L=l[D];if(B=a[D],l.hasOwnProperty(D)&&(L!=null||B!=null))switch(D){case"type":u=L;break;case"name":n=L;break;case"checked":A=L;break;case"defaultChecked":N=L;break;case"value":d=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:L!==B&&Me(e,t,D,L,l,B)}}Vu(e,d,g,S,A,N,u,n);return;case"select":L=d=g=D=null;for(u in a)if(S=a[u],a.hasOwnProperty(u)&&S!=null)switch(u){case"value":break;case"multiple":L=S;default:l.hasOwnProperty(u)||Me(e,t,u,null,l,S)}for(n in l)if(u=l[n],S=a[n],l.hasOwnProperty(n)&&(u!=null||S!=null))switch(n){case"value":D=u;break;case"defaultValue":g=u;break;case"multiple":d=u;default:u!==S&&Me(e,t,n,u,l,S)}t=g,a=d,l=L,D!=null?fl(e,!!a,D,!1):!!l!=!!a&&(t!=null?fl(e,!!a,t,!0):fl(e,!!a,a?[]:"",!1));return;case"textarea":L=D=null;for(g in a)if(n=a[g],a.hasOwnProperty(g)&&n!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Me(e,t,g,null,l,n)}for(d in l)if(n=l[d],u=a[d],l.hasOwnProperty(d)&&(n!=null||u!=null))switch(d){case"value":D=n;break;case"defaultValue":L=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==u&&Me(e,t,d,n,l,u)}Qc(e,D,L);return;case"option":for(var J in a)if(D=a[J],a.hasOwnProperty(J)&&D!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Me(e,t,J,null,l,D)}for(S in l)if(D=l[S],L=a[S],l.hasOwnProperty(S)&&D!==L&&(D!=null||L!=null))switch(S){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Me(e,t,S,D,l,L)}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 ee in a)D=a[ee],a.hasOwnProperty(ee)&&D!=null&&!l.hasOwnProperty(ee)&&Me(e,t,ee,null,l,D);for(A in l)if(D=l[A],L=a[A],l.hasOwnProperty(A)&&D!==L&&(D!=null||L!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,t));break;default:Me(e,t,A,D,l,L)}return;default:if(Qu(t)){for(var Le in a)D=a[Le],a.hasOwnProperty(Le)&&D!==void 0&&!l.hasOwnProperty(Le)&&Mr(e,t,Le,void 0,l,D);for(N in l)D=l[N],L=a[N],!l.hasOwnProperty(N)||D===L||D===void 0&&L===void 0||Mr(e,t,N,D,l,L);return}}for(var R in a)D=a[R],a.hasOwnProperty(R)&&D!=null&&!l.hasOwnProperty(R)&&Me(e,t,R,null,l,D);for(B in l)D=l[B],L=a[B],!l.hasOwnProperty(B)||D===L||D==null&&L==null||Me(e,t,B,D,l,L)}function Fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ap(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],u=n.transferSize,d=n.initiatorType,g=n.duration;if(u&&g&&Fd(d)){for(d=0,g=n.responseEnd,l+=1;l<a.length;l++){var S=a[l],A=S.startTime;if(A>g)break;var N=S.transferSize,B=S.initiatorType;N&&Fd(B)&&(S=S.responseEnd,d+=N*(S<g?1:(g-A)/(S-A)))}if(--l,t+=8*(u+d)/(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 Lr=null,_r=null;function lu(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 Id(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 jr(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 Nr=null;function Op(){var e=window.event;return e&&e.type==="popstate"?e===Nr?!1:(Nr=e,!0):(Nr=null,!1)}var Pd=typeof setTimeout=="function"?setTimeout:void 0,Dp=typeof clearTimeout=="function"?clearTimeout:void 0,eh=typeof Promise=="function"?Promise:void 0,Mp=typeof queueMicrotask=="function"?queueMicrotask:typeof eh<"u"?function(e){return eh.resolve(null).then(e).catch(Lp)}:Pd;function Lp(e){setTimeout(function(){throw e})}function ja(e){return e==="head"}function th(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Xl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Nn(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Nn(a);for(var u=a.firstChild;u;){var d=u.nextSibling,g=u.nodeName;u[Wl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=d}}else a==="body"&&Nn(e.ownerDocument.body);a=n}while(a);Xl(t)}function ah(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Ur(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ur(a),qu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function _p(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Wl])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=jt(e.nextSibling),e===null)break}return null}function jp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=jt(e.nextSibling),e===null))return null;return e}function lh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jt(e.nextSibling),e===null))return null;return e}function Hr(e){return e.data==="$?"||e.data==="$~"}function Br(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Np(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function jt(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 wr=null;function nh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return jt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function ih(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function uh(e,t,a){switch(t=lu(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Nn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);qu(e)}var Nt=new Map,sh=new Set;function nu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var oa=q.d;q.d={f:Up,r:Hp,D:Bp,C:wp,L:Yp,m:qp,X:Vp,S:Gp,M:Xp};function Up(){var e=oa.f(),t=ki();return e||t}function Hp(e){var t=rl(e);t!==null&&t.tag===5&&t.type==="form"?Tf(t):oa.r(e)}var ql=typeof document>"u"?null:document;function rh(e,t,a){var l=ql;if(l&&typeof t=="string"&&t){var n=zt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),sh.has(n)||(sh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),nt(t,"link",e),We(t),l.head.appendChild(t)))}}function Bp(e){oa.D(e),rh("dns-prefetch",e,null)}function wp(e,t){oa.C(e,t),rh("preconnect",e,t)}function Yp(e,t,a){oa.L(e,t,a);var l=ql;if(l&&e&&t){var n='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+zt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+zt(a.imageSizes)+'"]')):n+='[href="'+zt(e)+'"]';var u=n;switch(t){case"style":u=Gl(e);break;case"script":u=Vl(e)}Nt.has(u)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Nt.set(u,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Un(u))||t==="script"&&l.querySelector(Hn(u))||(t=l.createElement("link"),nt(t,"link",e),We(t),l.head.appendChild(t)))}}function qp(e,t){oa.m(e,t);var a=ql;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+zt(l)+'"][href="'+zt(e)+'"]',u=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Vl(e)}if(!Nt.has(u)&&(e=v({rel:"modulepreload",href:e},t),Nt.set(u,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Hn(u)))return}l=a.createElement("link"),nt(l,"link",e),We(l),a.head.appendChild(l)}}}function Gp(e,t,a){oa.S(e,t,a);var l=ql;if(l&&e){var n=cl(l).hoistableStyles,u=Gl(e);t=t||"default";var d=n.get(u);if(!d){var g={loading:0,preload:null};if(d=l.querySelector(Un(u)))g.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Nt.get(u))&&Yr(e,a);var S=d=l.createElement("link");We(S),nt(S,"link",e),S._p=new Promise(function(A,N){S.onload=A,S.onerror=N}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,iu(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:g},n.set(u,d)}}}function Vp(e,t){oa.X(e,t);var a=ql;if(a&&e){var l=cl(a).hoistableScripts,n=Vl(e),u=l.get(n);u||(u=a.querySelector(Hn(n)),u||(e=v({src:e,async:!0},t),(t=Nt.get(n))&&qr(e,t),u=a.createElement("script"),We(u),nt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function Xp(e,t){oa.M(e,t);var a=ql;if(a&&e){var l=cl(a).hoistableScripts,n=Vl(e),u=l.get(n);u||(u=a.querySelector(Hn(n)),u||(e=v({src:e,async:!0,type:"module"},t),(t=Nt.get(n))&&qr(e,t),u=a.createElement("script"),We(u),nt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(n,u))}}function ch(e,t,a,l){var n=(n=fe.current)?nu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Gl(a.href),a=cl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Gl(a.href);var u=cl(n).hoistableStyles,d=u.get(e);if(d||(n=n.ownerDocument||n,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=n.querySelector(Un(e)))&&!u._p&&(d.instance=u,d.state.loading=5),Nt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Nt.set(e,a),u||Qp(n,e,a,d.state))),t&&l===null)throw Error(r(528,""));return d}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Vl(a),a=cl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Gl(e){return'href="'+zt(e)+'"'}function Un(e){return'link[rel="stylesheet"]['+e+"]"}function oh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Qp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),nt(t,"link",a),We(t),e.head.appendChild(t))}function Vl(e){return'[src="'+zt(e)+'"]'}function Hn(e){return"script[async]"+e}function fh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+zt(a.href)+'"]');if(l)return t.instance=l,We(l),l;var n=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),We(l),nt(l,"style",n),iu(l,a.precedence,e),t.instance=l;case"stylesheet":n=Gl(a.href);var u=e.querySelector(Un(n));if(u)return t.state.loading|=4,t.instance=u,We(u),u;l=oh(a),(n=Nt.get(n))&&Yr(l,n),u=(e.ownerDocument||e).createElement("link"),We(u);var d=u;return d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),nt(u,"link",l),t.state.loading|=4,iu(u,a.precedence,e),t.instance=u;case"script":return u=Vl(a.src),(n=e.querySelector(Hn(u)))?(t.instance=n,We(n),n):(l=a,(n=Nt.get(u))&&(l=v({},a),qr(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,iu(l,a.precedence,e));return t.instance}function iu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,u=n,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===t)u=g;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Yr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function qr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var uu=null;function dh(e,t,a){if(uu===null){var l=new Map,n=uu=new Map;n.set(a,l)}else n=uu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var u=a[n];if(!(u[Wl]||u[et]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(t)||"";d=e+d;var g=l.get(d);g?g.push(u):l.set(d,[u])}}return l}function hh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Kp(e,t,a){if(a===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 mh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Zp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=Gl(l.href),u=t.querySelector(Un(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=su.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,We(u);return}u=t.ownerDocument||t,l=oh(l),(n=Nt.get(n))&&Yr(l,n),u=u.createElement("link"),We(u);var d=u;d._p=new Promise(function(g,S){d.onload=g,d.onerror=S}),nt(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=su.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Gr=0;function Jp(e,t){return e.stylesheets&&e.count===0&&cu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&cu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Gr===0&&(Gr=62500*Ap());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&cu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Gr?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)cu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ru=null;function cu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ru=new Map,t.forEach($p,e),ru=null,su.call(e))}function $p(e,t){if(!(t.state.loading&4)){var a=ru.get(e);if(a)var l=a.get(null);else{a=new Map,ru.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var d=n[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}n=t.instance,d=n.getAttribute("data-precedence"),u=a.get(d)||l,u===l&&a.set(null,n),a.set(d,n),this.count++,l=su.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Bn={$$typeof:X,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function kp(e,t,a,l,n,u,d,g,S){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=Hu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.hiddenUpdates=Hu(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function gh(e,t,a,l,n,u,d,g,S,A,N,B){return e=new kp(e,t,a,d,S,A,N,B,g),t=1,u===!0&&(t|=24),u=bt(3,null,null,t),e.current=u,u.stateNode=e,t=Ss(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Ts(u),e}function ph(e){return e?(e=bl,e):bl}function yh(e,t,a,l,n,u){n=ph(n),l.context===null?l.context=n:l.pendingContext=n,l=Ea(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Ra(e,l,t),a!==null&&(mt(a,e,t),gn(a,e,t))}function vh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Vr(e,t){vh(e,t),(e=e.alternate)&&vh(e,t)}function bh(e){if(e.tag===13||e.tag===31){var t=Ka(e,67108864);t!==null&&mt(t,e,67108864),Vr(e,67108864)}}function Sh(e){if(e.tag===13||e.tag===31){var t=Tt();t=Bu(t);var a=Ka(e,t);a!==null&&mt(a,e,t),Vr(e,t)}}var ou=!0;function Fp(e,t,a,l){var n=M.T;M.T=null;var u=q.p;try{q.p=2,Xr(e,t,a,l)}finally{q.p=u,M.T=n}}function Wp(e,t,a,l){var n=M.T;M.T=null;var u=q.p;try{q.p=8,Xr(e,t,a,l)}finally{q.p=u,M.T=n}}function Xr(e,t,a,l){if(ou){var n=Qr(l);if(n===null)Dr(e,t,l,fu,a),Eh(e,l);else if(Pp(n,e,t,a,l))l.stopPropagation();else if(Eh(e,l),t&4&&-1<Ip.indexOf(e)){for(;n!==null;){var u=rl(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=qa(u.pendingLanes);if(d!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var S=1<<31-yt(d);g.entanglements[1]|=S,d&=~S}Xt(u),(Te&6)===0&&(Ji=gt()+500,Ln(0))}}break;case 31:case 13:g=Ka(u,2),g!==null&&mt(g,u,2),ki(),Vr(u,2)}if(u=Qr(l),u===null&&Dr(e,t,l,fu,a),u===n)break;n=u}n!==null&&l.stopPropagation()}else Dr(e,t,l,null,a)}}function Qr(e){return e=Zu(e),Kr(e)}var fu=null;function Kr(e){if(fu=null,e=sl(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fu=e,null}function xh(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(Bm()){case Ac:return 2;case Oc:return 8;case ei:case wm:return 32;case Dc:return 268435456;default:return 32}default:return 32}}var Zr=!1,Na=null,Ua=null,Ha=null,wn=new Map,Yn=new Map,Ba=[],Ip="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 Eh(e,t){switch(e){case"focusin":case"focusout":Na=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yn.delete(t.pointerId)}}function qn(e,t,a,l,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[n]},t!==null&&(t=rl(t),t!==null&&bh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Pp(e,t,a,l,n){switch(t){case"focusin":return Na=qn(Na,e,t,a,l,n),!0;case"dragenter":return Ua=qn(Ua,e,t,a,l,n),!0;case"mouseover":return Ha=qn(Ha,e,t,a,l,n),!0;case"pointerover":var u=n.pointerId;return wn.set(u,qn(wn.get(u)||null,e,t,a,l,n)),!0;case"gotpointercapture":return u=n.pointerId,Yn.set(u,qn(Yn.get(u)||null,e,t,a,l,n)),!0}return!1}function Rh(e){var t=sl(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Uc(e.priority,function(){Sh(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Uc(e.priority,function(){Sh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Qr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Ku=l,a.target.dispatchEvent(l),Ku=null}else return t=rl(a),t!==null&&bh(t),e.blockedOn=a,!1;t.shift()}return!0}function Th(e,t,a){du(e)&&a.delete(t)}function ey(){Zr=!1,Na!==null&&du(Na)&&(Na=null),Ua!==null&&du(Ua)&&(Ua=null),Ha!==null&&du(Ha)&&(Ha=null),wn.forEach(Th),Yn.forEach(Th)}function hu(e,t){e.blockedOn===t&&(e.blockedOn=null,Zr||(Zr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,ey)))}var mu=null;function Ch(e){mu!==e&&(mu=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){mu===e&&(mu=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(Kr(l||a)===null)continue;break}var u=rl(a);u!==null&&(e.splice(t,3),t-=3,Qs(u,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Xl(e){function t(S){return hu(S,e)}Na!==null&&hu(Na,e),Ua!==null&&hu(Ua,e),Ha!==null&&hu(Ha,e),wn.forEach(t),Yn.forEach(t);for(var a=0;a<Ba.length;a++){var l=Ba[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ba.length&&(a=Ba[0],a.blockedOn===null);)Rh(a),a.blockedOn===null&&Ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],u=a[l+1],d=n[rt]||null;if(typeof u=="function")d||Ch(a);else if(d){var g=null;if(u&&u.hasAttribute("formAction")){if(n=u,d=u[rt]||null)g=d.formAction;else if(Kr(n)!==null)continue}else g=d.action;typeof g=="function"?a[l+1]=g:(a.splice(l,3),l-=3),Ch(a)}}}function zh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return n=d})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Jr(e){this._internalRoot=e}gu.prototype.render=Jr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Tt();yh(a,l,e,t,null,null)},gu.prototype.unmount=Jr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),ki(),t[ul]=null}};function gu(e){this._internalRoot=e}gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ba.length&&t!==0&&t<Ba[a].priority;a++);Ba.splice(a,0,e),a===0&&Rh(e)}};var Ah=i.version;if(Ah!=="19.2.5")throw Error(r(527,Ah,"19.2.5"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var ty={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pu.isDisabled&&pu.supportsFiber)try{$l=pu.inject(ty),pt=pu}catch{}}return Vn.createRoot=function(e,t){if(!o(e))throw Error(r(299));var a=!1,l="",n=Nf,u=Uf,d=Hf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=gh(e,1,!1,null,null,a,l,null,n,u,d,zh),e[ul]=t.current,Or(e),new Jr(t)},Vn.hydrateRoot=function(e,t,a){if(!o(e))throw Error(r(299));var l=!1,n="",u=Nf,d=Uf,g=Hf,S=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=gh(e,1,!0,t,a??null,l,n,S,u,d,g,zh),t.context=ph(null),a=t.current,l=Tt(),l=Bu(l),n=Ea(l),n.callback=null,Ra(a,n,l),a=l,t.current.lanes=a,Fl(t,a),Xt(t),e[ul]=t.current,Or(e),new gu(t)},Vn.version="19.2.5",Vn}var Bh;function fy(){if(Bh)return Fr.exports;Bh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(i){console.error(i)}}return s(),Fr.exports=oy(),Fr.exports}var dy=fy();/**
|
|
50
|
+
* react-router v7.16.0
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var wh="popstate";function Yh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function hy(s={}){function i(r,o){var m;let f=(m=o.state)==null?void 0:m.masked,{pathname:h,search:p,hash:y}=f||r.location;return cc("",{pathname:h,search:p,hash:y},o.state&&o.state.usr||null,o.state&&o.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,o){return typeof o=="string"?o:$n(o)}return gy(i,c,null,s)}function we(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Kt(s,i){if(!s){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function my(){return Math.random().toString(36).substring(2,10)}function qh(s,i){return{usr:s.state,key:s.key,idx:i,masked:s.mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function cc(s,i,c=null,r,o){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof i=="string"?Kl(i):i,state:c,key:i&&i.key||r||my(),mask:o}}function $n({pathname:s="/",search:i="",hash:c=""}){return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Kl(s){let i={};if(s){let c=s.indexOf("#");c>=0&&(i.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(i.search=s.substring(r),s=s.substring(0,r)),s&&(i.pathname=s)}return i}function gy(s,i,c,r={}){let{window:o=document.defaultView,v5Compat:f=!1}=r,h=o.history,p="POP",y=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function v(){p="POP";let G=b(),Y=G==null?null:G-m;m=G,y&&y({action:p,location:w.location,delta:Y})}function C(G,Y){p="PUSH";let V=Yh(G)?G:cc(w.location,G,Y);m=b()+1;let X=qh(V,m),Q=w.createHref(V.mask||V);try{h.pushState(X,"",Q)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(Q)}f&&y&&y({action:p,location:w.location,delta:1})}function j(G,Y){p="REPLACE";let V=Yh(G)?G:cc(w.location,G,Y);m=b();let X=qh(V,m),Q=w.createHref(V.mask||V);h.replaceState(X,"",Q),f&&y&&y({action:p,location:w.location,delta:0})}function _(G){return py(o,G)}let w={get action(){return p},get location(){return s(o,h)},listen(G){if(y)throw new Error("A history only accepts one active listener");return o.addEventListener(wh,v),y=G,()=>{o.removeEventListener(wh,v),y=null}},createHref(G){return i(o,G)},createURL:_,encodeLocation(G){let Y=_(G);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:C,replace:j,go(G){return h.go(G)}};return w}function py(s,i,c=!1){let r="http://localhost";s&&(r=s.location.origin!=="null"?s.location.origin:s.location.href),we(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:$n(i);return o=o.replace(/ $/,"%20"),!c&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function rm(s,i,c="/"){return yy(s,i,c,!1)}function yy(s,i,c,r,o){let f=typeof i=="string"?Kl(i):i,h=da(f.pathname||"/",c);if(h==null)return null;let p=vy(s),y=null,m=My(h);for(let b=0;y==null&&b<p.length;++b)y=Oy(p[b],m,r);return y}function vy(s){let i=cm(s);return by(i),i}function cm(s,i=[],c=[],r="",o=!1){let f=(h,p,y=o,m)=>{let b={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&y)return;we(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let v=Yt([r,b.relativePath]),C=c.concat(b);h.children&&h.children.length>0&&(we(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),cm(h.children,i,C,v,y)),!(h.path==null&&!h.index)&&i.push({path:v,score:zy(v,h.index),routesMeta:C})};return s.forEach((h,p)=>{var y;if(h.path===""||!((y=h.path)!=null&&y.includes("?")))f(h,p);else for(let m of om(h.path))f(h,p,!0,m)}),i}function om(s){let i=s.split("/");if(i.length===0)return[];let[c,...r]=i,o=c.endsWith("?"),f=c.replace(/\?$/,"");if(r.length===0)return o?[f,""]:[f];let h=om(r.join("/")),p=[];return p.push(...h.map(y=>y===""?f:[f,y].join("/"))),o&&p.push(...h),p.map(y=>s.startsWith("/")&&y===""?"/":y)}function by(s){s.sort((i,c)=>i.score!==c.score?c.score-i.score:Ay(i.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var Sy=/^:[\w-]+$/,xy=3,Ey=2,Ry=1,Ty=10,Cy=-2,Gh=s=>s==="*";function zy(s,i){let c=s.split("/"),r=c.length;return c.some(Gh)&&(r+=Cy),i&&(r+=Ey),c.filter(o=>!Gh(o)).reduce((o,f)=>o+(Sy.test(f)?xy:f===""?Ry:Ty),r)}function Ay(s,i){return s.length===i.length&&s.slice(0,-1).every((r,o)=>r===i[o])?s[s.length-1]-i[i.length-1]:0}function Oy(s,i,c=!1){let{routesMeta:r}=s,o={},f="/",h=[];for(let p=0;p<r.length;++p){let y=r[p],m=p===r.length-1,b=f==="/"?i:i.slice(f.length)||"/",v=xu({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},b),C=y.route;if(!v&&m&&c&&!r[r.length-1].route.index&&(v=xu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!v)return null;Object.assign(o,v.params),h.push({params:o,pathname:Yt([f,v.pathname]),pathnameBase:Ny(Yt([f,v.pathnameBase])),route:C}),v.pathnameBase!=="/"&&(f=Yt([f,v.pathnameBase]))}return h}function xu(s,i){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=Dy(s.path,s.caseSensitive,s.end),o=i.match(c);if(!o)return null;let f=o[0],h=f.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:r.reduce((m,{paramName:b,isOptional:v},C)=>{if(b==="*"){let _=p[C]||"";h=f.slice(0,f.length-_.length).replace(/(.)\/+$/,"$1")}const j=p[C];return v&&!j?m[b]=void 0:m[b]=(j||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:s}}function Dy(s,i=!1,c=!0){Kt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],o="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,y,m,b)=>{if(r.push({paramName:p,isOptional:y!=null}),y){let v=b.charAt(m+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),o+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?o+="\\/*$":s!==""&&s!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),r]}function My(s){try{return s.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return Kt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),s}}function da(s,i){if(i==="/")return s;if(!s.toLowerCase().startsWith(i.toLowerCase()))return null;let c=i.endsWith("/")?i.length-1:i.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var Ly=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function _y(s,i="/"){let{pathname:c,search:r="",hash:o=""}=typeof s=="string"?Kl(s):s,f;return c?(c=dm(c),c.startsWith("/")?f=Vh(c.substring(1),"/"):f=Vh(c,i)):f=i,{pathname:f,search:Uy(r),hash:Hy(o)}}function Vh(s,i){let c=Eu(i).split("/");return s.split("/").forEach(o=>{o===".."?c.length>1&&c.pop():o!=="."&&c.push(o)}),c.length>1?c.join("/"):"/"}function ec(s,i,c,r){return`Cannot include a '${s}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jy(s){return s.filter((i,c)=>c===0||i.route.path&&i.route.path.length>0)}function fm(s){let i=jy(s);return i.map((c,r)=>r===i.length-1?c.pathname:c.pathnameBase)}function pc(s,i,c,r=!1){let o;typeof s=="string"?o=Kl(s):(o={...s},we(!o.pathname||!o.pathname.includes("?"),ec("?","pathname","search",o)),we(!o.pathname||!o.pathname.includes("#"),ec("#","pathname","hash",o)),we(!o.search||!o.search.includes("#"),ec("#","search","hash",o)));let f=s===""||o.pathname==="",h=f?"/":o.pathname,p;if(h==null)p=c;else{let v=i.length-1;if(!r&&h.startsWith("..")){let C=h.split("/");for(;C[0]==="..";)C.shift(),v-=1;o.pathname=C.join("/")}p=v>=0?i[v]:"/"}let y=_y(o,p),m=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(m||b)&&(y.pathname+="/"),y}var dm=s=>s.replace(/\/\/+/g,"/"),Yt=s=>dm(s.join("/")),Eu=s=>s.replace(/\/+$/,""),Ny=s=>Eu(s).replace(/^\/*/,"/"),Uy=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,Hy=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,By=class{constructor(s,i,c,r=!1){this.status=s,this.statusText=i||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function wy(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Yy(s){let i=s.map(c=>c.route.path).filter(Boolean);return Yt(i)||"/"}var hm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function mm(s,i){let c=s;if(typeof c!="string"||!Ly.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,o=!1;if(hm)try{let f=new URL(window.location.href),h=c.startsWith("//")?new URL(f.protocol+c):new URL(c),p=da(h.pathname,i);h.origin===f.origin&&p!=null?c=p+h.search+h.hash:o=!0}catch{Kt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var gm=["POST","PUT","PATCH","DELETE"];new Set(gm);var qy=["GET",...gm];new Set(qy);var Zl=T.createContext(null);Zl.displayName="DataRouter";var Au=T.createContext(null);Au.displayName="DataRouterState";var pm=T.createContext(!1);function Gy(){return T.useContext(pm)}var ym=T.createContext({isTransitioning:!1});ym.displayName="ViewTransition";var Vy=T.createContext(new Map);Vy.displayName="Fetchers";var Xy=T.createContext(null);Xy.displayName="Await";var Ut=T.createContext(null);Ut.displayName="Navigation";var Fn=T.createContext(null);Fn.displayName="Location";var Zt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Zt.displayName="Route";var yc=T.createContext(null);yc.displayName="RouteError";var vm="REACT_ROUTER_ERROR",Qy="REDIRECT",Ky="ROUTE_ERROR_RESPONSE";function Zy(s){if(s.startsWith(`${vm}:${Qy}:{`))try{let i=JSON.parse(s.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Jy(s){if(s.startsWith(`${vm}:${Ky}:{`))try{let i=JSON.parse(s.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new By(i.status,i.statusText,i.data)}catch{}}function $y(s,{relative:i}={}){we(Wn(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=T.useContext(Ut),{hash:o,pathname:f,search:h}=In(s,{relative:i}),p=f;return c!=="/"&&(p=f==="/"?c:Yt([c,f])),r.createHref({pathname:p,search:h,hash:o})}function Wn(){return T.useContext(Fn)!=null}function ha(){return we(Wn(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(Fn).location}var bm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Sm(s){T.useContext(Ut).static||T.useLayoutEffect(s)}function vc(){let{isDataRoute:s}=T.useContext(Zt);return s?r0():ky()}function ky(){we(Wn(),"useNavigate() may be used only in the context of a <Router> component.");let s=T.useContext(Zl),{basename:i,navigator:c}=T.useContext(Ut),{matches:r}=T.useContext(Zt),{pathname:o}=ha(),f=JSON.stringify(fm(r)),h=T.useRef(!1);return Sm(()=>{h.current=!0}),T.useCallback((y,m={})=>{if(Kt(h.current,bm),!h.current)return;if(typeof y=="number"){c.go(y);return}let b=pc(y,JSON.parse(f),o,m.relative==="path");s==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Yt([i,b.pathname])),(m.replace?c.replace:c.push)(b,m.state,m)},[i,c,f,o,s])}T.createContext(null);function Fy(){let{matches:s}=T.useContext(Zt),i=s[s.length-1];return(i==null?void 0:i.params)??{}}function In(s,{relative:i}={}){let{matches:c}=T.useContext(Zt),{pathname:r}=ha(),o=JSON.stringify(fm(c));return T.useMemo(()=>pc(s,JSON.parse(o),r,i==="path"),[s,o,r,i])}function Wy(s,i){return xm(s,i)}function xm(s,i,c){var G;we(Wn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(Ut),{matches:o}=T.useContext(Zt),f=o[o.length-1],h=f?f.params:{},p=f?f.pathname:"/",y=f?f.pathnameBase:"/",m=f&&f.route;{let Y=m&&m.path||"";Rm(p,!m||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${Y}">) 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="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let b=ha(),v;if(i){let Y=typeof i=="string"?Kl(i):i;we(y==="/"||((G=Y.pathname)==null?void 0:G.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),v=Y}else v=b;let C=v.pathname||"/",j=C;if(y!=="/"){let Y=y.replace(/^\//,"").split("/");j="/"+C.replace(/^\//,"").split("/").slice(Y.length).join("/")}let _=c&&c.state.matches.length?c.state.matches.map(Y=>Object.assign(Y,{route:c.manifest[Y.route.id]||Y.route})):rm(s,{pathname:j});Kt(m||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Kt(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=a0(_&&_.map(Y=>Object.assign({},Y,{params:Object.assign({},h,Y.params),pathname:Yt([y,r.encodeLocation?r.encodeLocation(Y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?y:Yt([y,r.encodeLocation?r.encodeLocation(Y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),o,c);return i&&w?T.createElement(Fn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},w):w}function Iy(){let s=s0(),i=wy(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),c?T.createElement("pre",{style:o},c):null,h)}var Py=T.createElement(Iy,null),Em=class extends T.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){this.props.onError?this.props.onError(s,i):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=Jy(s.digest);c&&(s=c)}let i=s!==void 0?T.createElement(Zt.Provider,{value:this.props.routeContext},T.createElement(yc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?T.createElement(e0,{error:s},i):i}};Em.contextType=pm;var tc=new WeakMap;function e0({children:s,error:i}){let{basename:c}=T.useContext(Ut);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=Zy(i.digest);if(r){let o=tc.get(i);if(o)throw o;let f=mm(r.location,c);if(hm&&!tc.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw tc.set(i,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return s}function t0({routeContext:s,match:i,children:c}){let r=T.useContext(Zl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(Zt.Provider,{value:s},c)}function a0(s,i=[],c){let r=c==null?void 0:c.state;if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let o=s,f=r==null?void 0:r.errors;if(f!=null){let b=o.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);we(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let h=!1,p=-1;if(c&&r){h=r.renderFallback;for(let b=0;b<o.length;b++){let v=o[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=b),v.route.id){let{loaderData:C,errors:j}=r,_=v.route.loader&&!C.hasOwnProperty(v.route.id)&&(!j||j[v.route.id]===void 0);if(v.route.lazy||_){c.isStatic&&(h=!0),p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let y=c==null?void 0:c.onError,m=r&&y?(b,v)=>{var C,j;y(b,{location:r.location,params:((j=(C=r.matches)==null?void 0:C[0])==null?void 0:j.params)??{},pattern:Yy(r.matches),errorInfo:v})}:void 0;return o.reduceRight((b,v,C)=>{let j,_=!1,w=null,G=null;r&&(j=f&&v.route.id?f[v.route.id]:void 0,w=v.route.errorElement||Py,h&&(p<0&&C===0?(Rm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,G=null):p===C&&(_=!0,G=v.route.hydrateFallbackElement||null)));let Y=i.concat(o.slice(0,C+1)),V=()=>{let X;return j?X=w:_?X=G:v.route.Component?X=T.createElement(v.route.Component,null):v.route.element?X=v.route.element:X=b,T.createElement(t0,{match:v,routeContext:{outlet:b,matches:Y,isDataRoute:r!=null},children:X})};return r&&(v.route.ErrorBoundary||v.route.errorElement||C===0)?T.createElement(Em,{location:r.location,revalidation:r.revalidation,component:w,error:j,children:V(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:m}):V()},null)}function bc(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l0(s){let i=T.useContext(Zl);return we(i,bc(s)),i}function n0(s){let i=T.useContext(Au);return we(i,bc(s)),i}function i0(s){let i=T.useContext(Zt);return we(i,bc(s)),i}function Sc(s){let i=i0(s),c=i.matches[i.matches.length-1];return we(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function u0(){return Sc("useRouteId")}function s0(){var r;let s=T.useContext(yc),i=n0("useRouteError"),c=Sc("useRouteError");return s!==void 0?s:(r=i.errors)==null?void 0:r[c]}function r0(){let{router:s}=l0("useNavigate"),i=Sc("useNavigate"),c=T.useRef(!1);return Sm(()=>{c.current=!0}),T.useCallback(async(o,f={})=>{Kt(c.current,bm),c.current&&(typeof o=="number"?await s.navigate(o):await s.navigate(o,{fromRouteId:i,...f}))},[s,i])}var Xh={};function Rm(s,i,c){!i&&!Xh[s]&&(Xh[s]=!0,Kt(!1,c))}T.memo(c0);function c0({routes:s,manifest:i,future:c,state:r,isStatic:o,onError:f}){return xm(s,void 0,{manifest:i,state:r,isStatic:o,onError:f})}function oc(s){we(!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 o0({basename:s="/",children:i=null,location:c,navigationType:r="POP",navigator:o,static:f=!1,useTransitions:h}){we(!Wn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=s.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:p,navigator:o,static:f,useTransitions:h,future:{}}),[p,o,f,h]);typeof c=="string"&&(c=Kl(c));let{pathname:m="/",search:b="",hash:v="",state:C=null,key:j="default",mask:_}=c,w=T.useMemo(()=>{let G=da(m,p);return G==null?null:{location:{pathname:G,search:b,hash:v,state:C,key:j,mask:_},navigationType:r}},[p,m,b,v,C,j,r,_]);return Kt(w!=null,`<Router basename="${p}"> is not able to match the URL "${m}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:T.createElement(Ut.Provider,{value:y},T.createElement(Fn.Provider,{children:i,value:w}))}function f0({children:s,location:i}){return Wy(fc(s),i)}function fc(s,i=[]){let c=[];return T.Children.forEach(s,(r,o)=>{if(!T.isValidElement(r))return;let f=[...i,o];if(r.type===T.Fragment){c.push.apply(c,fc(r.props.children,f));return}we(r.type===oc,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=fc(r.props.children,f)),c.push(h)}),c}var bu="get",Su="application/x-www-form-urlencoded";function Ou(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function d0(s){return Ou(s)&&s.tagName.toLowerCase()==="button"}function h0(s){return Ou(s)&&s.tagName.toLowerCase()==="form"}function m0(s){return Ou(s)&&s.tagName.toLowerCase()==="input"}function g0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function p0(s,i){return s.button===0&&(!i||i==="_self")&&!g0(s)}var yu=null;function y0(){if(yu===null)try{new FormData(document.createElement("form"),0),yu=!1}catch{yu=!0}return yu}var v0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ac(s){return s!=null&&!v0.has(s)?(Kt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Su}"`),null):s}function b0(s,i){let c,r,o,f,h;if(h0(s)){let p=s.getAttribute("action");r=p?da(p,i):null,c=s.getAttribute("method")||bu,o=ac(s.getAttribute("enctype"))||Su,f=new FormData(s)}else if(d0(s)||m0(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||p.getAttribute("action");if(r=y?da(y,i):null,c=s.getAttribute("formmethod")||p.getAttribute("method")||bu,o=ac(s.getAttribute("formenctype"))||ac(p.getAttribute("enctype"))||Su,f=new FormData(p,s),!y0()){let{name:m,type:b,value:v}=s;if(b==="image"){let C=m?`${m}.`:"";f.append(`${C}x`,"0"),f.append(`${C}y`,"0")}else m&&f.append(m,v)}}else{if(Ou(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=bu,r=null,o=Su,h=s}return f&&o==="text/plain"&&(h=f,f=void 0),{action:r,method:c.toLowerCase(),encType:o,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xc(s,i){if(s===!1||s===null||typeof s>"u")throw new Error(i)}function Tm(s,i,c,r){let o=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:i&&da(o.pathname,i)==="/"?o.pathname=`${Eu(i)}/_root.${r}`:o.pathname=`${Eu(o.pathname)}.${r}`,o}async function S0(s,i){if(s.id in i)return i[s.id];try{let c=await import(s.module);return i[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function x0(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function E0(s,i,c){let r=await Promise.all(s.map(async o=>{let f=i.routes[o.route.id];if(f){let h=await S0(f,c);return h.links?h.links():[]}return[]}));return z0(r.flat(1).filter(x0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Qh(s,i,c,r,o,f){let h=(y,m)=>c[m]?y.route.id!==c[m].route.id:!0,p=(y,m)=>{var b;return c[m].pathname!==y.pathname||((b=c[m].route.path)==null?void 0:b.endsWith("*"))&&c[m].params["*"]!==y.params["*"]};return f==="assets"?i.filter((y,m)=>h(y,m)||p(y,m)):f==="data"?i.filter((y,m)=>{var v;let b=r.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(h(y,m)||p(y,m))return!0;if(y.route.shouldRevalidate){let C=y.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=c[0])==null?void 0:v.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function R0(s,i,{includeHydrateFallback:c}={}){return T0(s.map(r=>{let o=i.routes[r.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),c&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function T0(s){return[...new Set(s)]}function C0(s){let i={},c=Object.keys(s).sort();for(let r of c)i[r]=s[r];return i}function z0(s,i){let c=new Set;return new Set(i),s.reduce((r,o)=>{let f=JSON.stringify(C0(o));return c.has(f)||(c.add(f),r.push({key:f,link:o})),r},[])}function Ec(){let s=T.useContext(Zl);return xc(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function A0(){let s=T.useContext(Au);return xc(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Rc=T.createContext(void 0);Rc.displayName="FrameworkContext";function Tc(){let s=T.useContext(Rc);return xc(s,"You must render this element inside a <HydratedRouter> element"),s}function O0(s,i){let c=T.useContext(Rc),[r,o]=T.useState(!1),[f,h]=T.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:m,onMouseLeave:b,onTouchStart:v}=i,C=T.useRef(null);T.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let w=Y=>{Y.forEach(V=>{h(V.isIntersecting)})},G=new IntersectionObserver(w,{threshold:.5});return C.current&&G.observe(C.current),()=>{G.disconnect()}}},[s]),T.useEffect(()=>{if(r){let w=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(w)}}},[r]);let j=()=>{o(!0)},_=()=>{o(!1),h(!1)};return c?s!=="intent"?[f,C,{}]:[f,C,{onFocus:Xn(p,j),onBlur:Xn(y,_),onMouseEnter:Xn(m,j),onMouseLeave:Xn(b,_),onTouchStart:Xn(v,j)}]:[!1,C,{}]}function Xn(s,i){return c=>{s&&s(c),c.defaultPrevented||i(c)}}function D0({page:s,...i}){let c=Gy(),{router:r}=Ec(),o=T.useMemo(()=>rm(r.routes,s,r.basename),[r.routes,s,r.basename]);return o?c?T.createElement(L0,{page:s,matches:o,...i}):T.createElement(_0,{page:s,matches:o,...i}):null}function M0(s){let{manifest:i,routeModules:c}=Tc(),[r,o]=T.useState([]);return T.useEffect(()=>{let f=!1;return E0(s,i,c).then(h=>{f||o(h)}),()=>{f=!0}},[s,i,c]),r}function L0({page:s,matches:i,...c}){let r=ha(),{future:o}=Tc(),{basename:f}=Ec(),h=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let p=Tm(s,f,o.v8_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?y=!0:m.push(b.route.id);return y&&m.length>0&&p.searchParams.set("_routes",m.join(",")),[p.pathname+p.search]},[f,o.v8_trailingSlashAwareDataRequests,s,r,i]);return T.createElement(T.Fragment,null,h.map(p=>T.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...c})))}function _0({page:s,matches:i,...c}){let r=ha(),{future:o,manifest:f,routeModules:h}=Tc(),{basename:p}=Ec(),{loaderData:y,matches:m}=A0(),b=T.useMemo(()=>Qh(s,i,m,f,r,"data"),[s,i,m,f,r]),v=T.useMemo(()=>Qh(s,i,m,f,r,"assets"),[s,i,m,f,r]),C=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let w=new Set,G=!1;if(i.forEach(V=>{var Q;let X=f.routes[V.route.id];!X||!X.hasLoader||(!b.some(P=>P.route.id===V.route.id)&&V.route.id in y&&((Q=h[V.route.id])!=null&&Q.shouldRevalidate)||X.hasClientLoader?G=!0:w.add(V.route.id))}),w.size===0)return[];let Y=Tm(s,p,o.v8_trailingSlashAwareDataRequests,"data");return G&&w.size>0&&Y.searchParams.set("_routes",i.filter(V=>w.has(V.route.id)).map(V=>V.route.id).join(",")),[Y.pathname+Y.search]},[p,o.v8_trailingSlashAwareDataRequests,y,r,f,b,i,s,h]),j=T.useMemo(()=>R0(v,f),[v,f]),_=M0(v);return T.createElement(T.Fragment,null,C.map(w=>T.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...c})),j.map(w=>T.createElement("link",{key:w,rel:"modulepreload",href:w,...c})),_.map(({key:w,link:G})=>T.createElement("link",{key:w,nonce:c.nonce,...G,crossOrigin:G.crossOrigin??c.crossOrigin})))}function j0(...s){return i=>{s.forEach(c=>{typeof c=="function"?c(i):c!=null&&(c.current=i)})}}var N0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{N0&&(window.__reactRouterVersion="7.16.0")}catch{}function U0({basename:s,children:i,useTransitions:c,window:r}){let o=T.useRef();o.current==null&&(o.current=hy({window:r,v5Compat:!0}));let f=o.current,[h,p]=T.useState({action:f.action,location:f.location}),y=T.useCallback(m=>{c===!1?p(m):T.startTransition(()=>p(m))},[c]);return T.useLayoutEffect(()=>f.listen(y),[f,y]),T.createElement(o0,{basename:s,children:i,location:h.location,navigationType:h.action,navigator:f,useTransitions:c})}var Cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,zm=T.forwardRef(function({onClick:i,discover:c="render",prefetch:r="none",relative:o,reloadDocument:f,replace:h,mask:p,state:y,target:m,to:b,preventScrollReset:v,viewTransition:C,defaultShouldRevalidate:j,..._},w){let{basename:G,navigator:Y,useTransitions:V}=T.useContext(Ut),X=typeof b=="string"&&Cm.test(b),Q=mm(b,G);b=Q.to;let P=$y(b,{relative:o}),re=ha(),$=null;if(p){let ie=pc(p,[],re.mask?re.mask.pathname:"/",!0);G!=="/"&&(ie.pathname=ie.pathname==="/"?G:Yt([G,ie.pathname])),$=Y.createHref(ie)}let[Ee,pe,I]=O0(r,_),Re=Y0(b,{replace:h,mask:p,state:y,target:m,preventScrollReset:v,relative:o,viewTransition:C,defaultShouldRevalidate:j,useTransitions:V});function ne(ie){i&&i(ie),ie.defaultPrevented||Re(ie)}let te=!(Q.isExternal||f),ae=T.createElement("a",{..._,...I,href:(te?$:void 0)||Q.absoluteURL||P,onClick:te?ne:i,ref:j0(w,pe),target:m,"data-discover":!X&&c==="render"?"true":void 0});return Ee&&!X?T.createElement(T.Fragment,null,ae,T.createElement(D0,{page:P})):ae});zm.displayName="Link";var H0=T.forwardRef(function({"aria-current":i="page",caseSensitive:c=!1,className:r="",end:o=!1,style:f,to:h,viewTransition:p,children:y,...m},b){let v=In(h,{relative:m.relative}),C=ha(),j=T.useContext(Au),{navigator:_,basename:w}=T.useContext(Ut),G=j!=null&&Q0(v)&&p===!0,Y=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,V=C.pathname,X=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;c||(V=V.toLowerCase(),X=X?X.toLowerCase():null,Y=Y.toLowerCase()),X&&w&&(X=da(X,w)||X);const Q=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let P=V===Y||!o&&V.startsWith(Y)&&V.charAt(Q)==="/",re=X!=null&&(X===Y||!o&&X.startsWith(Y)&&X.charAt(Y.length)==="/"),$={isActive:P,isPending:re,isTransitioning:G},Ee=P?i:void 0,pe;typeof r=="function"?pe=r($):pe=[r,P?"active":null,re?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let I=typeof f=="function"?f($):f;return T.createElement(zm,{...m,"aria-current":Ee,className:pe,ref:b,style:I,to:h,viewTransition:p},typeof y=="function"?y($):y)});H0.displayName="NavLink";var B0=T.forwardRef(({discover:s="render",fetcherKey:i,navigate:c,reloadDocument:r,replace:o,state:f,method:h=bu,action:p,onSubmit:y,relative:m,preventScrollReset:b,viewTransition:v,defaultShouldRevalidate:C,...j},_)=>{let{useTransitions:w}=T.useContext(Ut),G=V0(),Y=X0(p,{relative:m}),V=h.toLowerCase()==="get"?"get":"post",X=typeof p=="string"&&Cm.test(p),Q=P=>{if(y&&y(P),P.defaultPrevented)return;P.preventDefault();let re=P.nativeEvent.submitter,$=(re==null?void 0:re.getAttribute("formmethod"))||h,Ee=()=>G(re||P.currentTarget,{fetcherKey:i,method:$,navigate:c,replace:o,state:f,relative:m,preventScrollReset:b,viewTransition:v,defaultShouldRevalidate:C});w&&c!==!1?T.startTransition(()=>Ee()):Ee()};return T.createElement("form",{ref:_,method:V,action:Y,onSubmit:r?y:Q,...j,"data-discover":!X&&s==="render"?"true":void 0})});B0.displayName="Form";function w0(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Am(s){let i=T.useContext(Zl);return we(i,w0(s)),i}function Y0(s,{target:i,replace:c,mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:p,defaultShouldRevalidate:y,useTransitions:m}={}){let b=vc(),v=ha(),C=In(s,{relative:h});return T.useCallback(j=>{if(p0(j,i)){j.preventDefault();let _=c!==void 0?c:$n(v)===$n(C),w=()=>b(s,{replace:_,mask:r,state:o,preventScrollReset:f,relative:h,viewTransition:p,defaultShouldRevalidate:y});m?T.startTransition(()=>w()):w()}},[v,b,C,c,r,o,i,s,f,h,p,y,m])}var q0=0,G0=()=>`__${String(++q0)}__`;function V0(){let{router:s}=Am("useSubmit"),{basename:i}=T.useContext(Ut),c=u0(),r=s.fetch,o=s.navigate;return T.useCallback(async(f,h={})=>{let{action:p,method:y,encType:m,formData:b,body:v}=b0(f,i);if(h.navigate===!1){let C=h.fetcherKey||G0();await r(C,c,h.action||p,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,flushSync:h.flushSync})}else await o(h.action||p,{defaultShouldRevalidate:h.defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,o,i,c])}function X0(s,{relative:i}={}){let{basename:c}=T.useContext(Ut),r=T.useContext(Zt);we(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),f={...In(s||".",{relative:i})},h=ha();if(s==null){f.search=h.search;let p=new URLSearchParams(f.search),y=p.getAll("index");if(y.some(b=>b==="")){p.delete("index"),y.filter(v=>v).forEach(v=>p.append("index",v));let b=p.toString();f.search=b?`?${b}`:""}}return(!s||s===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(f.pathname=f.pathname==="/"?c:Yt([c,f.pathname])),$n(f)}function Q0(s,{relative:i}={}){let c=T.useContext(ym);we(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Am("useViewTransitionState"),o=In(s,{relative:i});if(!c.isTransitioning)return!1;let f=da(c.currentLocation.pathname,r)||c.currentLocation.pathname,h=da(c.nextLocation.pathname,r)||c.nextLocation.pathname;return xu(o.pathname,h)!=null||xu(o.pathname,f)!=null}const le=s=>typeof s=="string",Qn=()=>{let s,i;const c=new Promise((r,o)=>{s=r,i=o});return c.resolve=s,c.reject=i,c},Kh=s=>s==null?"":String(s),K0=(s,i,c)=>{s.forEach(r=>{i[r]&&(c[r]=i[r])})},Z0=/###/g,Zh=s=>s&&s.includes("###")?s.replace(Z0,"."):s,Jh=s=>!s||le(s),Zn=(s,i,c)=>{const r=le(i)?i.split("."):i;let o=0;for(;o<r.length-1;){if(Jh(s))return{};const f=Zh(r[o]);!s[f]&&c&&(s[f]=new c),Object.prototype.hasOwnProperty.call(s,f)?s=s[f]:s={},++o}return Jh(s)?{}:{obj:s,k:Zh(r[o])}},$h=(s,i,c)=>{const{obj:r,k:o}=Zn(s,i,Object);if(r!==void 0||i.length===1){r[o]=c;return}let f=i[i.length-1],h=i.slice(0,i.length-1),p=Zn(s,h,Object);for(;p.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),p=Zn(s,h,Object),p!=null&&p.obj&&typeof p.obj[`${p.k}.${f}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${f}`]=c},J0=(s,i,c,r)=>{const{obj:o,k:f}=Zn(s,i,Object);o[f]=o[f]||[],o[f].push(c)},Ru=(s,i)=>{const{obj:c,k:r}=Zn(s,i);if(c&&Object.prototype.hasOwnProperty.call(c,r))return c[r]},$0=(s,i,c)=>{const r=Ru(s,c);return r!==void 0?r:Ru(i,c)},Om=(s,i,c)=>{for(const r in i)r!=="__proto__"&&r!=="constructor"&&(r in s?le(s[r])||s[r]instanceof String||le(i[r])||i[r]instanceof String?c&&(s[r]=i[r]):Om(s[r],i[r],c):s[r]=i[r]);return s},fa=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),k0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},F0=s=>le(s)?s.replace(/[&<>"'\/]/g,i=>k0[i]):s;class W0{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const c=this.regExpMap.get(i);if(c!==void 0)return c;const r=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,r),this.regExpQueue.push(i),r}}const I0=[" ",",","?","!",";"],P0=new W0(20),ev=(s,i,c)=>{i=i||"",c=c||"";const r=I0.filter(h=>!i.includes(h)&&!c.includes(h));if(r.length===0)return!0;const o=P0.getRegExp(`(${r.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!o.test(s);if(!f){const h=s.indexOf(c);h>0&&!o.test(s.substring(0,h))&&(f=!0)}return f},dc=(s,i,c=".")=>{if(!s)return;if(s[i])return Object.prototype.hasOwnProperty.call(s,i)?s[i]:void 0;const r=i.split(c);let o=s;for(let f=0;f<r.length;){if(!o||typeof o!="object")return;let h,p="";for(let y=f;y<r.length;++y)if(y!==f&&(p+=c),p+=r[y],h=o[p],h!==void 0){if(["string","number","boolean"].includes(typeof h)&&y<r.length-1)continue;f+=y-f+1;break}o=h}return o},kn=s=>s==null?void 0:s.replace(/_/g,"-"),tv={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,i){var c,r;(r=(c=console==null?void 0:console[s])==null?void 0:c.apply)==null||r.call(c,console,i)}};class Tu{constructor(i,c={}){this.init(i,c)}init(i,c={}){this.prefix=c.prefix||"i18next:",this.logger=i||tv,this.options=c,this.debug=c.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,c,r,o){return o&&!this.debug?null:(i=i.map(f=>le(f)?f.replace(/[\r\n\x00-\x1F\x7F]/g," "):f),le(i[0])&&(i[0]=`${r}${this.prefix} ${i[0]}`),this.logger[c](i))}create(i){return new Tu(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new Tu(this.logger,i)}}var Qt=new Tu;class Du{constructor(){this.observers={}}on(i,c){return i.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(c)||0;this.observers[r].set(c,o+1)}),this}off(i,c){if(this.observers[i]){if(!c){delete this.observers[i];return}this.observers[i].delete(c)}}once(i,c){const r=(...o)=>{c(...o),this.off(i,r)};return this.on(i,r),this}emit(i,...c){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([o,f])=>{for(let h=0;h<f;h++)o(...c)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,f])=>{for(let h=0;h<f;h++)o(i,...c)})}}class kh extends Du{constructor(i,c={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.includes(i)||this.options.ns.push(i)}removeNamespaces(i){const c=this.options.ns.indexOf(i);c>-1&&this.options.ns.splice(c,1)}getResource(i,c,r,o={}){var m,b;const f=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,h=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;i.includes(".")?p=i.split("."):(p=[i,c],r&&(Array.isArray(r)?p.push(...r):le(r)&&f?p.push(...r.split(f)):p.push(r)));const y=Ru(this.data,p);return!y&&!c&&!r&&i.includes(".")&&(i=p[0],c=p[1],r=p.slice(2).join(".")),y||!h||!le(r)?y:dc((b=(m=this.data)==null?void 0:m[i])==null?void 0:b[c],r,f)}addResource(i,c,r,o,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let p=[i,c];r&&(p=p.concat(h?r.split(h):r)),i.includes(".")&&(p=i.split("."),o=c,c=p[1]),this.addNamespaces(c),$h(this.data,p,o),f.silent||this.emit("added",i,c,r,o)}addResources(i,c,r,o={silent:!1}){for(const f in r)(le(r[f])||Array.isArray(r[f]))&&this.addResource(i,c,f,r[f],{silent:!0});o.silent||this.emit("added",i,c,r)}addResourceBundle(i,c,r,o,f,h={silent:!1,skipCopy:!1}){let p=[i,c];i.includes(".")&&(p=i.split("."),o=r,r=c,c=p[1]),this.addNamespaces(c);let y=Ru(this.data,p)||{};h.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?Om(y,r,f):y={...y,...r},$h(this.data,p,y),h.silent||this.emit("added",i,c,r)}removeResourceBundle(i,c){this.hasResourceBundle(i,c)&&delete this.data[i][c],this.removeNamespaces(c),this.emit("removed",i,c)}hasResourceBundle(i,c){return this.getResource(i,c)!==void 0}getResourceBundle(i,c){return c||(c=this.options.defaultNS),this.getResource(i,c)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const c=this.getDataByLanguage(i);return!!(c&&Object.keys(c)||[]).find(o=>c[o]&&Object.keys(c[o]).length>0)}toJSON(){return this.data}}var Dm={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,i,c,r,o){return s.forEach(f=>{var h;i=((h=this.processors[f])==null?void 0:h.process(i,c,r,o))??i}),i}};const Mm=Symbol("i18next/PATH_KEY");function av(){const s=[],i=Object.create(null);let c;return i.get=(r,o)=>{var f;return(f=c==null?void 0:c.revoke)==null||f.call(c),o===Mm?s:(s.push(o),c=Proxy.revocable(r,i),c.proxy)},Proxy.revocable(Object.create(null),i).proxy}function Ql(s,i){const{[Mm]:c}=s(av()),r=(i==null?void 0:i.keySeparator)??".",o=(i==null?void 0:i.nsSeparator)??":";if(c.length>1&&o){const f=i==null?void 0:i.ns,h=Array.isArray(f)?f:null;if(h&&h.length>1&&h.slice(1).includes(c[0]))return`${c[0]}${o}${c.slice(1).join(r)}`}return c.join(r)}const lc=s=>!le(s)&&typeof s!="boolean"&&typeof s!="number";class Cu extends Du{constructor(i,c={}){super(),K0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Qt.create("translator"),this.checkedLoadedFor={}}changeLanguage(i){i&&(this.language=i)}exists(i,c={interpolation:{}}){const r={...c};if(i==null)return!1;const o=this.resolve(i,r);if((o==null?void 0:o.res)===void 0)return!1;const f=lc(o.res);return!(r.returnObjects===!1&&f)}extractFromKey(i,c){let r=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let f=c.ns||this.options.defaultNS||[];const h=r&&i.includes(r),p=!this.options.userDefinedKeySeparator&&!c.keySeparator&&!this.options.userDefinedNsSeparator&&!c.nsSeparator&&!ev(i,r,o);if(h&&!p){const y=i.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:i,namespaces:le(f)?[f]:f};const m=i.split(r);(r!==o||r===o&&this.options.ns.includes(m[0]))&&(f=m.shift()),i=m.join(o)}return{key:i,namespaces:le(f)?[f]:f}}translate(i,c,r){let o=typeof c=="object"?{...c}:c;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";typeof i=="function"&&(i=Ql(i,{...this.options,...o})),Array.isArray(i)||(i=[String(i)]),i=i.map(te=>typeof te=="function"?Ql(te,{...this.options,...o}):String(te));const f=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,h=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:p,namespaces:y}=this.extractFromKey(i[i.length-1],o),m=y[y.length-1];let b=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=o.lng||this.language,C=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return C?f?{res:`${m}${b}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${b}${p}`:f?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:p;const j=this.resolve(i,o);let _=j==null?void 0:j.res;const w=(j==null?void 0:j.usedKey)||p,G=(j==null?void 0:j.exactUsedKey)||p,Y=["[object Number]","[object Function]","[object RegExp]"],V=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,Q=o.count!==void 0&&!le(o.count),P=Cu.hasDefaultValue(o),re=Q?this.pluralResolver.getSuffix(v,o.count,o):"",$=o.ordinal&&Q?this.pluralResolver.getSuffix(v,o.count,{ordinal:!1}):"",Ee=Q&&!o.ordinal&&o.count===0,pe=Ee&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${re}`]||o[`defaultValue${$}`]||o.defaultValue;let I=_;X&&!_&&P&&(I=pe);const Re=lc(I),ne=Object.prototype.toString.apply(I);if(X&&I&&Re&&!Y.includes(ne)&&!(le(V)&&Array.isArray(I))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const te=this.options.returnedObjectHandler?this.options.returnedObjectHandler(w,I,{...o,ns:y}):`key '${p} (${this.language})' returned an object instead of string.`;return f?(j.res=te,j.usedParams=this.getUsedParamsDetails(o),j):te}if(h){const te=Array.isArray(I),ae=te?[]:{},ie=te?G:w;for(const M in I)if(Object.prototype.hasOwnProperty.call(I,M)){const q=`${ie}${h}${M}`;P&&!_?ae[M]=this.translate(q,{...o,defaultValue:lc(pe)?pe[M]:void 0,joinArrays:!1,ns:y}):ae[M]=this.translate(q,{...o,joinArrays:!1,ns:y}),ae[M]===q&&(ae[M]=I[M])}_=ae}}else if(X&&le(V)&&Array.isArray(_))_=_.join(V),_&&(_=this.extendTranslation(_,i,o,r));else{let te=!1,ae=!1;!this.isValidLookup(_)&&P&&(te=!0,_=pe),this.isValidLookup(_)||(ae=!0,_=p);const M=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ae?void 0:_,q=P&&pe!==_&&this.options.updateMissing;if(ae||te||q){if(this.logger.log(q?"updateKey":"missingKey",v,m,p,q?pe:_),h){const x=this.resolve(p,{...o,keySeparator:!1});x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let k=[];const ye=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ye&&ye[0])for(let x=0;x<ye.length;x++)k.push(ye[x]);else this.options.saveMissingTo==="all"?k=this.languageUtils.toResolveHierarchy(o.lng||this.language):k.push(o.lng||this.language);const Ce=(x,U,K)=>{var ue;const Z=P&&K!==_?K:M;this.options.missingKeyHandler?this.options.missingKeyHandler(x,m,U,Z,q,o):(ue=this.backendConnector)!=null&&ue.saveMissing&&this.backendConnector.saveMissing(x,m,U,Z,q,o),this.emit("missingKey",x,m,U,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?k.forEach(x=>{const U=this.pluralResolver.getSuffixes(x,o);Ee&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!U.includes(`${this.options.pluralSeparator}zero`)&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(K=>{Ce([x],p+K,o[`defaultValue${K}`]||pe)})}):Ce(k,p,pe))}_=this.extendTranslation(_,i,o,j,r),ae&&_===p&&this.options.appendNamespaceToMissingKey&&(_=`${m}${b}${p}`),(ae||te)&&this.options.parseMissingKeyHandler&&(_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${p}`:p,te?_:void 0,o))}return f?(j.res=_,j.usedParams=this.getUsedParamsDetails(o),j):_}extendTranslation(i,c,r,o,f){var y,m;if((y=this.i18nFormat)!=null&&y.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=le(i)&&(((m=r==null?void 0:r.interpolation)==null?void 0:m.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const j=i.match(this.interpolator.nestingRegexp);v=j&&j.length}let C=r.replace&&!le(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),i=this.interpolator.interpolate(i,C,r.lng||this.language||o.usedLng,r),b){const j=i.match(this.interpolator.nestingRegexp),_=j&&j.length;v<_&&(r.nest=!1)}!r.lng&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(i=this.interpolator.nest(i,(...j)=>(f==null?void 0:f[0])===j[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${j[0]} in key: ${c[0]}`),null):this.translate(...j,c),r)),r.interpolation&&this.interpolator.reset()}const h=r.postProcess||this.options.postProcess,p=le(h)?[h]:h;return i!=null&&(p!=null&&p.length)&&r.applyPostProcessor!==!1&&(i=Dm.handle(p,i,c,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),i}resolve(i,c={}){let r,o,f,h,p;return le(i)&&(i=[i]),Array.isArray(i)&&(i=i.map(y=>typeof y=="function"?Ql(y,{...this.options,...c}):y)),i.forEach(y=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(y,c),b=m.key;o=b;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const C=c.count!==void 0&&!le(c.count),j=C&&!c.ordinal&&c.count===0,_=c.context!==void 0&&(le(c.context)||typeof c.context=="number")&&c.context!=="",w=c.lngs?c.lngs:this.languageUtils.toResolveHierarchy(c.lng||this.language,c.fallbackLng);v.forEach(G=>{var Y,V;this.isValidLookup(r)||(p=G,!this.checkedLoadedFor[`${w[0]}-${G}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((V=this.utils)!=null&&V.hasLoadedNamespace(p))&&(this.checkedLoadedFor[`${w[0]}-${G}`]=!0,this.logger.warn(`key "${o}" for languages "${w.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(X=>{var re;if(this.isValidLookup(r))return;h=X;const Q=[b];if((re=this.i18nFormat)!=null&&re.addLookupKeys)this.i18nFormat.addLookupKeys(Q,b,X,G,c);else{let $;C&&($=this.pluralResolver.getSuffix(X,c.count,c));const Ee=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(c.ordinal&&$.startsWith(pe)&&Q.push(b+$.replace(pe,this.options.pluralSeparator)),Q.push(b+$),j&&Q.push(b+Ee)),_){const I=`${b}${this.options.contextSeparator||"_"}${c.context}`;Q.push(I),C&&(c.ordinal&&$.startsWith(pe)&&Q.push(I+$.replace(pe,this.options.pluralSeparator)),Q.push(I+$),j&&Q.push(I+Ee))}}let P;for(;P=Q.pop();)this.isValidLookup(r)||(f=P,r=this.getResource(X,G,P,c))}))})}),{res:r,usedKey:o,exactUsedKey:f,usedLng:h,usedNS:p}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,c,r,o={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(i,c,r,o):this.resourceStore.getResource(i,c,r,o)}getUsedParamsDetails(i={}){const c=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=i.replace&&!le(i.replace);let o=r?i.replace:i;if(r&&typeof i.count<"u"&&(o.count=i.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const f of c)delete o[f]}return o}static hasDefaultValue(i){const c="defaultValue";for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.startsWith(c)&&i[r]!==void 0)return!0;return!1}}class Fh{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qt.create("languageUtils")}getScriptPartFromCode(i){if(i=kn(i),!i||!i.includes("-"))return null;const c=i.split("-");return c.length===2||(c.pop(),c[c.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(c.join("-"))}getLanguagePartFromCode(i){if(i=kn(i),!i||!i.includes("-"))return i;const c=i.split("-");return this.formatLanguageCode(c[0])}formatLanguageCode(i){if(le(i)&&i.includes("-")){let c;try{c=Intl.getCanonicalLocales(i)[0]}catch{}return c&&this.options.lowerCaseLng&&(c=c.toLowerCase()),c||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(i)}getBestMatchFromCodes(i){if(!i)return null;let c;return i.forEach(r=>{if(c)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(c=o)}),!c&&this.options.supportedLngs&&i.forEach(r=>{if(c)return;const o=this.getScriptPartFromCode(r);if(this.isSupportedCode(o))return c=o;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return c=f;c=this.options.supportedLngs.find(h=>h===f?!0:!h.includes("-")&&!f.includes("-")?!1:!!(h.includes("-")&&!f.includes("-")&&h.slice(0,h.indexOf("-"))===f||h.startsWith(f)&&f.length>1))}),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c}getFallbackCodes(i,c){if(!i)return[];if(typeof i=="function"&&(i=i(c)),le(i)&&(i=[i]),Array.isArray(i))return i;if(!c)return i.default||[];let r=i[c];return r||(r=i[this.getScriptPartFromCode(c)]),r||(r=i[this.formatLanguageCode(c)]),r||(r=i[this.getLanguagePartFromCode(c)]),r||(r=i.default),r||[]}toResolveHierarchy(i,c){const r=this.getFallbackCodes((c===!1?[]:c)||this.options.fallbackLng||[],i),o=[],f=h=>{h&&(this.isSupportedCode(h)?o.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return le(i)&&(i.includes("-")||i.includes("_"))?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):le(i)&&f(this.formatLanguageCode(i)),r.forEach(h=>{o.includes(h)||f(this.formatLanguageCode(h))}),o}}const Wh={zero:0,one:1,two:2,few:3,many:4,other:5},Ih={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class lv{constructor(i,c={}){this.languageUtils=i,this.options=c,this.logger=Qt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,c={}){const r=kn(i==="dev"?"en":i),o=c.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:o});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Ih;if(!i.match(/-|_/))return Ih;const y=this.languageUtils.getLanguagePartFromCode(i);h=this.getRule(y,c)}return this.pluralRulesCache[f]=h,h}needsPlural(i,c={}){let r=this.getRule(i,c);return r||(r=this.getRule("dev",c)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,c,r={}){return this.getSuffixes(i,r).map(o=>`${c}${o}`)}getSuffixes(i,c={}){let r=this.getRule(i,c);return r||(r=this.getRule("dev",c)),r?r.resolvedOptions().pluralCategories.sort((o,f)=>Wh[o]-Wh[f]).map(o=>`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(i,c,r={}){const o=this.getRule(i,r);return o?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(c)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",c,r))}}const Ph=(s,i,c,r=".",o=!0)=>{let f=$0(s,i,c);return!f&&o&&le(c)&&(f=dc(s,c,r),f===void 0&&(f=dc(i,c,r))),f},nc=s=>s.replace(/\$/g,"$$$$");class em{constructor(i={}){var c;this.logger=Qt.create("interpolator"),this.options=i,this.format=((c=i==null?void 0:i.interpolation)==null?void 0:c.format)||(r=>r),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:c,escapeValue:r,useRawValueToEscape:o,prefix:f,prefixEscaped:h,suffix:p,suffixEscaped:y,formatSeparator:m,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:C,nestingPrefixEscaped:j,nestingSuffix:_,nestingSuffixEscaped:w,nestingOptionsSeparator:G,maxReplaces:Y,alwaysFormat:V}=i.interpolation;this.escape=c!==void 0?c:F0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=f?fa(f):h||"{{",this.suffix=p?fa(p):y||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":v?fa(v):"-",this.unescapeSuffix=this.unescapePrefix?"":b?fa(b):"",this.nestingPrefix=C?fa(C):j||fa("$t("),this.nestingSuffix=_?fa(_):w||fa(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=Y||1e3,this.alwaysFormat=V!==void 0?V:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(c,r)=>(c==null?void 0:c.source)===r?(c.lastIndex=0,c):new RegExp(r,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,c,r,o){var j;let f,h,p;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=_=>{if(!_.includes(this.formatSeparator)){const V=Ph(c,y,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(V,void 0,r,{...o,...c,interpolationkey:_}):V}const w=_.split(this.formatSeparator),G=w.shift().trim(),Y=w.join(this.formatSeparator).trim();return this.format(Ph(c,y,G,this.options.keySeparator,this.options.ignoreJSONStructure),Y,r,{...o,...c,interpolationkey:G})};this.resetRegExp(),!this.escapeValue&&typeof i=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(i)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const b=(o==null?void 0:o.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((j=o==null?void 0:o.interpolation)==null?void 0:j.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>nc(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?nc(this.escape(_)):nc(_)}].forEach(_=>{for(p=0;f=_.regex.exec(i);){const w=f[1].trim();if(h=m(w),h===void 0)if(typeof b=="function"){const Y=b(i,f,o);h=le(Y)?Y:""}else if(o&&Object.prototype.hasOwnProperty.call(o,w))h="";else if(v){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${i}`),h="";else!le(h)&&!this.useRawValueToEscape&&(h=Kh(h));const G=_.safeValue(h);if(i=i.replace(f[0],G),v?(_.regex.lastIndex+=h.length,_.regex.lastIndex-=f[0].length):_.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),i}nest(i,c,r={}){let o,f,h;const p=(y,m)=>{const b=this.nestingOptionsSeparator;if(!y.includes(b))return y;const v=y.split(new RegExp(`${fa(b)}[ ]*{`));let C=`{${v[1]}`;y=v[0],C=this.interpolate(C,h);const j=C.match(/'/g),_=C.match(/"/g);(((j==null?void 0:j.length)??0)%2===0&&!_||((_==null?void 0:_.length)??0)%2!==0)&&(C=C.replace(/'/g,'"'));try{h=JSON.parse(C),m&&(h={...m,...h})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,w),`${y}${b}${C}`}return h.defaultValue&&h.defaultValue.includes(this.prefix)&&delete h.defaultValue,y};for(;o=this.nestingRegexp.exec(i);){let y=[];h={...r},h=h.replace&&!le(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const m=/{.*}/.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(m!==-1&&(y=o[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),o[1]=o[1].slice(0,m)),f=c(p.call(this,o[1].trim(),h),h),f&&o[0]===i&&!le(f))return f;le(f)||(f=Kh(f)),f||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${i}`),f=""),y.length&&(f=y.reduce((b,v)=>this.format(b,v,r.lng,{...r,interpolationkey:o[1].trim()}),f.trim())),i=i.replace(o[0],f),this.regexp.lastIndex=0}return i}}const nv=s=>{let i=s.toLowerCase().trim();const c={};if(s.includes("(")){const r=s.split("(");i=r[0].toLowerCase().trim();const o=r[1].slice(0,-1);i==="currency"&&!o.includes(":")?c.currency||(c.currency=o.trim()):i==="relativetime"&&!o.includes(":")?c.range||(c.range=o.trim()):o.split(";").forEach(h=>{if(h){const[p,...y]=h.split(":"),m=y.join(":").trim().replace(/^'+|'+$/g,""),b=p.trim();c[b]||(c[b]=m),m==="false"&&(c[b]=!1),m==="true"&&(c[b]=!0),isNaN(m)||(c[b]=parseInt(m,10))}})}return{formatName:i,formatOptions:c}},tm=s=>{const i={};return(c,r,o)=>{let f=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(f={...f,[o.interpolationkey]:void 0});const h=r+JSON.stringify(f);let p=i[h];return p||(p=s(kn(r),o),i[h]=p),p(c)}},iv=s=>(i,c,r)=>s(kn(c),r)(i);class uv{constructor(i={}){this.logger=Qt.create("formatter"),this.options=i,this.init(i)}init(i,c={interpolation:{}}){this.formatSeparator=c.interpolation.formatSeparator||",";const r=c.cacheInBuiltFormats?tm:iv;this.formats={number:r((o,f)=>{const h=new Intl.NumberFormat(o,{...f});return p=>h.format(p)}),currency:r((o,f)=>{const h=new Intl.NumberFormat(o,{...f,style:"currency"});return p=>h.format(p)}),datetime:r((o,f)=>{const h=new Intl.DateTimeFormat(o,{...f});return p=>h.format(p)}),relativetime:r((o,f)=>{const h=new Intl.RelativeTimeFormat(o,{...f});return p=>h.format(p,f.range||"day")}),list:r((o,f)=>{const h=new Intl.ListFormat(o,{...f});return p=>h.format(p)})}}add(i,c){this.formats[i.toLowerCase().trim()]=c}addCached(i,c){this.formats[i.toLowerCase().trim()]=tm(c)}format(i,c,r,o={}){if(!c||i==null)return i;const f=c.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&!f[0].includes(")")&&f.find(p=>p.includes(")"))){const p=f.findIndex(y=>y.includes(")"));f[0]=[f[0],...f.splice(1,p)].join(this.formatSeparator)}return f.reduce((p,y)=>{var v;const{formatName:m,formatOptions:b}=nv(y);if(this.formats[m]){let C=p;try{const j=((v=o==null?void 0:o.formatParams)==null?void 0:v[o.interpolationkey])||{},_=j.locale||j.lng||o.locale||o.lng||r;C=this.formats[m](p,_,{...b,...o,...j})}catch(j){this.logger.warn(j)}return C}else this.logger.warn(`there was no format function for ${m}`);return p},i)}}const sv=(s,i)=>{s.pending[i]!==void 0&&(delete s.pending[i],s.pendingCount--)};class rv extends Du{constructor(i,c,r,o={}){var f,h;super(),this.backend=i,this.store=c,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Qt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],(h=(f=this.backend)==null?void 0:f.init)==null||h.call(f,r,o.backend,o)}queueLoad(i,c,r,o){const f={},h={},p={},y={};return i.forEach(m=>{let b=!0;c.forEach(v=>{const C=`${m}|${v}`;!r.reload&&this.store.hasResourceBundle(m,v)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?h[C]===void 0&&(h[C]=!0):(this.state[C]=1,b=!1,h[C]===void 0&&(h[C]=!0),f[C]===void 0&&(f[C]=!0),y[v]===void 0&&(y[v]=!0)))}),b||(p[m]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(y)}}loaded(i,c,r){const o=i.split("|"),f=o[0],h=o[1];c&&this.emit("failedLoading",f,h,c),!c&&r&&this.store.addResourceBundle(f,h,r,void 0,void 0,{skipCopy:!0}),this.state[i]=c?-1:2,c&&r&&(this.state[i]=0);const p={};this.queue.forEach(y=>{J0(y.loaded,[f],h),sv(y,i),c&&y.errors.push(c),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(m=>{p[m]||(p[m]={});const b=y.loaded[m];b.length&&b.forEach(v=>{p[m][v]===void 0&&(p[m][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(y=>!y.done)}read(i,c,r,o=0,f=this.retryTimeout,h){if(!i.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:c,fcName:r,tried:o,wait:f,callback:h});return}this.readingCalls++;const p=(m,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&b&&o<this.maxRetries){setTimeout(()=>{this.read(i,c,r,o+1,f*2,h)},f);return}h(m,b)},y=this.backend[r].bind(this.backend);if(y.length===2){try{const m=y(i,c);m&&typeof m.then=="function"?m.then(b=>p(null,b)).catch(p):p(null,m)}catch(m){p(m)}return}return y(i,c,p)}prepareLoading(i,c,r={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();le(i)&&(i=this.languageUtils.toResolveHierarchy(i)),le(c)&&(c=[c]);const f=this.queueLoad(i,c,r,o);if(!f.toLoad.length)return f.pending.length||o(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(i,c,r){this.prepareLoading(i,c,{},r)}reload(i,c,r){this.prepareLoading(i,c,{reload:!0},r)}loadOne(i,c=""){const r=i.split("|"),o=r[0],f=r[1];this.read(o,f,"read",void 0,void 0,(h,p)=>{h&&this.logger.warn(`${c}loading namespace ${f} for language ${o} failed`,h),!h&&p&&this.logger.log(`${c}loaded namespace ${f} for language ${o}`,p),this.loaded(i,h,p)})}saveMissing(i,c,r,o,f,h={},p=()=>{}){var y,m,b,v,C;if((m=(y=this.services)==null?void 0:y.utils)!=null&&m.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(c))){this.logger.warn(`did not save key "${r}" as the namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((C=this.backend)!=null&&C.create){const j={...h,isUpdate:f},_=this.backend.create.bind(this.backend);if(_.length<6)try{let w;_.length===5?w=_(i,c,r,o,j):w=_(i,c,r,o),w&&typeof w.then=="function"?w.then(G=>p(null,G)).catch(p):p(null,w)}catch(w){p(w)}else _(i,c,r,o,p,j)}!i||!i[0]||this.store.addResource(i[0],c,r,o)}}}const ic=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let i={};if(typeof s[1]=="object"&&(i=s[1]),le(s[1])&&(i.defaultValue=s[1]),le(s[2])&&(i.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const c=s[3]||s[2];Object.keys(c).forEach(r=>{i[r]=c[r]})}return i},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),am=s=>(le(s.ns)&&(s.ns=[s.ns]),le(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),le(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&!s.supportedLngs.includes("cimode")&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s),vu=()=>{},cv=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(c=>{typeof s[c]=="function"&&(s[c]=s[c].bind(s))})};class Jn extends Du{constructor(i={},c){if(super(),this.options=am(i),this.services={},this.logger=Qt,this.modules={external:[]},cv(this),c&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,c),this;setTimeout(()=>{this.init(i,c)},0)}}init(i={},c){this.isInitializing=!0,typeof i=="function"&&(c=i,i={}),i.defaultNS==null&&i.ns&&(le(i.ns)?i.defaultNS=i.ns:i.ns.includes("translation")||(i.defaultNS=i.ns[0]));const r=ic();this.options={...r,...this.options,...am(i)},this.options.interpolation={...r.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Qt.init(o(this.modules.logger),this.options):Qt.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=uv;const b=new Fh(this.options);this.store=new kh(this.options.resources,this.options);const v=this.services;v.logger=Qt,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new lv(b,{prepend:this.options.pluralSeparator}),m&&(v.formatter=o(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new em(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new rv(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(C,...j)=>{this.emit(C,...j)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Cu(this.services,this.options),this.translator.on("*",(C,...j)=>{this.emit(C,...j)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,c||(c=vu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...b)=>this.store[m](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...b)=>(this.store[m](...b),this)});const p=Qn(),y=()=>{const m=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),c(b,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),p}loadResources(i,c=vu){var f,h;let r=c;const o=le(i)?i:this.language;if(typeof i=="function"&&(r=i),!this.options.resources||this.options.partialBundledLanguages){if((o==null?void 0:o.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const p=[],y=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&(p.includes(v)||p.push(v))})};o?y(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>y(b)),(h=(f=this.options.preload)==null?void 0:f.forEach)==null||h.call(f,m=>y(m)),this.services.backendConnector.load(p,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(i,c,r){const o=Qn();return typeof i=="function"&&(r=i,i=void 0),typeof c=="function"&&(r=c,c=void 0),i||(i=this.languages),c||(c=this.options.ns),r||(r=vu),this.services.backendConnector.reload(i,c,f=>{o.resolve(),r(f)}),o}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&Dm.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!["cimode","dev"].includes(i)){for(let c=0;c<this.languages.length;c++){const r=this.languages[c];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(i)&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,c){this.isLanguageChangingTo=i;const r=Qn();this.emit("languageChanging",i);const o=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},f=(p,y)=>{y?this.isLanguageChangingTo===i&&(o(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),c&&c(p,(...m)=>this.t(...m))},h=p=>{var b,v;!i&&!p&&this.services.languageDetector&&(p=[]);const y=le(p)?p:p&&p[0],m=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(le(p)?[p]:p);m&&(this.language||o(m),this.translator.language||this.translator.changeLanguage(m),(v=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||v.call(b,m)),this.loadResources(m,C=>{f(C,m)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i),r}getFixedT(i,c,r){const o=(f,h,...p)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([f,h].concat(p)):y={...h},y.lng=y.lng||o.lng,y.lngs=y.lngs||o.lngs,y.ns=y.ns||o.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||r||o.keyPrefix);const m={...this.options,...y};typeof y.keyPrefix=="function"&&(y.keyPrefix=Ql(y.keyPrefix,m));const b=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(f)?v=f.map(C=>(typeof C=="function"&&(C=Ql(C,m)),`${y.keyPrefix}${b}${C}`)):(typeof f=="function"&&(f=Ql(f,m)),v=y.keyPrefix?`${y.keyPrefix}${b}${f}`:f),this.t(v,y)};return le(i)?o.lng=i:o.lngs=i,o.ns=c,o.keyPrefix=r,o}t(...i){var c;return(c=this.translator)==null?void 0:c.translate(...i)}exists(...i){var c;return(c=this.translator)==null?void 0:c.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,c={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=c.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const h=(p,y)=>{const m=this.services.backendConnector.state[`${p}|${y}`];return m===-1||m===0||m===2};if(c.precheck){const p=c.precheck(this,h);if(p!==void 0)return p}return!!(this.hasResourceBundle(r,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(r,i)&&(!o||h(f,i)))}loadNamespaces(i,c){const r=Qn();return this.options.ns?(le(i)&&(i=[i]),i.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),c&&c(o)}),r):(c&&c(),Promise.resolve())}loadLanguages(i,c){const r=Qn();le(i)&&(i=[i]);const o=this.options.preload||[],f=i.filter(h=>!o.includes(h)&&this.services.languageUtils.isSupportedCode(h));return f.length?(this.options.preload=o.concat(f),this.loadResources(h=>{r.resolve(),c&&c(h)}),r):(c&&c(),Promise.resolve())}dir(i){var o,f;if(i||(i=this.resolvedLanguage||(((o=this.languages)==null?void 0:o.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const h=new Intl.Locale(i);if(h&&h.getTextInfo){const p=h.getTextInfo();if(p&&p.direction)return p.direction}}catch{}const c=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((f=this.services)==null?void 0:f.languageUtils)||new Fh(ic());return i.toLowerCase().indexOf("-latn")>1?"ltr":c.includes(r.getLanguagePartFromCode(i))||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},c){const r=new Jn(i,c);return r.createInstance=Jn.createInstance,r}cloneInstance(i={},c=vu){const r=i.forkResourceStore;r&&delete i.forkResourceStore;const o={...this.options,...i,isClone:!0},f=new Jn(o);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(p=>{f[p]=this[p]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const p=Object.keys(this.store.data).reduce((y,m)=>(y[m]={...this.store.data[m]},y[m]=Object.keys(y[m]).reduce((b,v)=>(b[v]={...y[m][v]},b),y[m]),y),{});f.store=new kh(p,o),f.services.resourceStore=f.store}if(i.interpolation){const y={...ic().interpolation,...this.options.interpolation,...i.interpolation},m={...o,interpolation:y};f.services.interpolator=new em(m)}return f.translator=new Cu(f.services,o),f.translator.on("*",(p,...y)=>{f.emit(p,...y)}),f.init(o,c),f.translator.options=o,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Jn.createInstance();ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const ov=(s,i,c,r)=>{var f,h,p,y;const o=[c,{code:i,...r||{}}];if((h=(f=s==null?void 0:s.services)==null?void 0:f.logger)!=null&&h.forward)return s.services.logger.forward(o,"warn","react-i18next::",!0);nl(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),(y=(p=s==null?void 0:s.services)==null?void 0:p.logger)!=null&&y.warn?s.services.logger.warn(...o):console!=null&&console.warn&&console.warn(...o)},lm={},hc=(s,i,c,r)=>{nl(c)&&lm[c]||(nl(c)&&(lm[c]=new Date),ov(s,i,c,r))},Lm=(s,i)=>()=>{if(s.isInitialized)i();else{const c=()=>{setTimeout(()=>{s.off("initialized",c)},0),i()};s.on("initialized",c)}},mc=(s,i,c)=>{s.loadNamespaces(i,Lm(s,c))},nm=(s,i,c,r)=>{if(nl(c)&&(c=[c]),s.options.preload&&s.options.preload.indexOf(i)>-1)return mc(s,c,r);c.forEach(o=>{s.options.ns.indexOf(o)<0&&s.options.ns.push(o)}),s.loadLanguages(i,Lm(s,r))},fv=(s,i,c={})=>!i.languages||!i.languages.length?(hc(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(s,{lng:c.lng,precheck:(r,o)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!o(r.isLanguageChangingTo,s))return!1}}),nl=s=>typeof s=="string",dv=s=>typeof s=="object"&&s!==null,hv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},gv=s=>mv[s],pv=s=>s.replace(hv,gv);let gc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:pv,transDefaultProps:void 0};const yv=(s={})=>{gc={...gc,...s}},vv=()=>gc;let _m;const bv=s=>{_m=s},Sv=()=>_m,xv={type:"3rdParty",init(s){yv(s.options.react),bv(s)}},Ev=T.createContext();class Rv{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(c=>{this.usedNamespaces[c]||(this.usedNamespaces[c]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var uc={exports:{}},sc={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* use-sync-external-store-shim.production.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var im;function Tv(){if(im)return sc;im=1;var s=zu();function i(v,C){return v===C&&(v!==0||1/v===1/C)||v!==v&&C!==C}var c=typeof Object.is=="function"?Object.is:i,r=s.useState,o=s.useEffect,f=s.useLayoutEffect,h=s.useDebugValue;function p(v,C){var j=C(),_=r({inst:{value:j,getSnapshot:C}}),w=_[0].inst,G=_[1];return f(function(){w.value=j,w.getSnapshot=C,y(w)&&G({inst:w})},[v,j,C]),o(function(){return y(w)&&G({inst:w}),v(function(){y(w)&&G({inst:w})})},[v]),h(j),j}function y(v){var C=v.getSnapshot;v=v.value;try{var j=C();return!c(v,j)}catch{return!0}}function m(v,C){return C()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return sc.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,sc}var um;function Cv(){return um||(um=1,uc.exports=Tv()),uc.exports}var zv=Cv();const Av=(s,i)=>{if(nl(i))return i;if(dv(i)&&nl(i.defaultValue))return i.defaultValue;if(typeof s=="function")return"";if(Array.isArray(s)){const c=s[s.length-1];return typeof c=="function"?"":c}return s},Ov={t:Av,ready:!1},Dv=()=>()=>{},il=(s,i={})=>{var pe,I,Re;const{i18n:c}=i,{i18n:r,defaultNS:o}=T.useContext(Ev)||{},f=c||r||Sv();f&&!f.reportNamespaces&&(f.reportNamespaces=new Rv),f||hc(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=T.useMemo(()=>{var ne;return{...vv(),...(ne=f==null?void 0:f.options)==null?void 0:ne.react,...i}},[f,i]),{useSuspense:p,keyPrefix:y}=h,m=o||((pe=f==null?void 0:f.options)==null?void 0:pe.defaultNS),b=nl(m)?[m]:m||["translation"],v=T.useMemo(()=>b,b);(Re=(I=f==null?void 0:f.reportNamespaces)==null?void 0:I.addUsedNamespaces)==null||Re.call(I,v);const C=T.useRef(0),j=T.useCallback(ne=>{if(!f)return Dv;const{bindI18n:te,bindI18nStore:ae}=h,ie=()=>{C.current+=1,ne()};return te&&f.on(te,ie),ae&&f.store.on(ae,ie),()=>{te&&te.split(" ").forEach(M=>f.off(M,ie)),ae&&ae.split(" ").forEach(M=>f.store.off(M,ie))}},[f,h]),_=T.useRef(),w=T.useCallback(()=>{if(!f)return Ov;const ne=!!(f.isInitialized||f.initializedStoreOnce)&&v.every(k=>fv(k,f,h)),te=i.lng||f.language,ae=C.current,ie=_.current;if(ie&&ie.ready===ne&&ie.lng===te&&ie.keyPrefix===y&&ie.revision===ae)return ie;const q={t:f.getFixedT(te,h.nsMode==="fallback"?v:v[0],y),ready:ne,lng:te,keyPrefix:y,revision:ae};return _.current=q,q},[f,v,y,h,i.lng]),[G,Y]=T.useState(0),{t:V,ready:X}=zv.useSyncExternalStore(j,w,w);T.useEffect(()=>{if(f&&!X&&!p){const ne=()=>Y(te=>te+1);i.lng?nm(f,i.lng,v,ne):mc(f,v,ne)}},[f,i.lng,v,X,p,G]);const Q=f||{},P=T.useRef(null),re=T.useRef(),$=ne=>{const te=Object.getOwnPropertyDescriptors(ne);te.__original&&delete te.__original;const ae=Object.create(Object.getPrototypeOf(ne),te);if(!Object.prototype.hasOwnProperty.call(ae,"__original"))try{Object.defineProperty(ae,"__original",{value:ne,writable:!1,enumerable:!1,configurable:!1})}catch{}return ae},Ee=T.useMemo(()=>{const ne=Q,te=ne==null?void 0:ne.language;let ae=ne;ne&&(P.current&&P.current.__original===ne?re.current!==te?(ae=$(ne),P.current=ae,re.current=te):ae=P.current:(ae=$(ne),P.current=ae,re.current=te));const ie=!X&&!p?(...q)=>(hc(f,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),V(...q)):V,M=[ie,ae,X];return M.t=ie,M.i18n=ae,M.ready=X,M},[V,Q,X,Q.resolvedLanguage,Q.language,Q.languages]);if(f&&p&&!X)throw new Promise(ne=>{const te=()=>ne();i.lng?nm(f,i.lng,v,te):mc(f,v,te)});return Ee},Mv={title:"shoal"},Lv={title:"Run History",startRun:"Start Run",noRuns:"No runs yet",noRunsHint:"Start a run to explore your app with AI agents."},_v={status:"Status",started:"Started",duration:"Duration",findings:"Findings",agents:"Agents",cost:"Cost",actions:""},jv={completed:"Completed",running:"Running"},Nv={back:"← Back",noReport:"No report found for this run.",noLog:"No log available.",tabLog:"Log",tabSwarm:"Swarm",tabDiary:"Diary",diaryHint:"Generate a story-style diary of the agents' exploration. Uses one LLM call.",generateDiary:"Generate Diary",generatingDiary:"Generating…",diaryError:"Generation failed. Check your LLM settings.",tabReport:"Report",cancel:"Cancel run",cancelConfirmLabel:"Stop this run?",cancelConfirmYes:"Stop",cancelConfirmNo:"Keep going"},Uv={title:"Start Run",baseUrl:"App URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"Browser agents",maxExplorers:"API agents",start:"Start",cancel:"Cancel",running:"Running…",liveLog:"Live log",close:"Close",advanced:"Advanced",llmBaseUrl:"LLM Base URL",llmModel:"Model",llmApiKey:"API Key"},Hv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"In progress"},Bv={title:"Scheduled Runs",enabled:"Auto-run enabled",disabled:"Auto-run disabled",dayLabel:"Day",timeLabel:"Time (server local)",days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],nextRun:"Next run",saved:"Saved"},wv={title:"App Goals",noSpec:"No product spec yet. Start a run to discover app goals.",noGoals:"No goals defined.",edit:"Edit",save:"Save",cancel:"Cancel",add:"+ Add goal",placeholder:"e.g. Users can complete onboarding without assistance",hint:"Goals inferred by product discovery. Edit to correct or add missing ones.",goalGapHint:'Agents will flag issues that prevent these goals as "goal-gap".'},Yv={header:Mv,dashboard:Lv,table:_v,status:jv,detail:Nv,startModal:Uv,duration:Hv,schedule:Bv,goals:wv},qv={title:"shoal"},Gv={title:"実行一覧",startRun:"実行を開始",noRuns:"実行履歴がありません",noRunsHint:"実行を開始して AI エージェントにアプリを探索させましょう。"},Vv={status:"ステータス",started:"開始日時",duration:"所要時間",findings:"Findings",agents:"エージェント",cost:"コスト",actions:""},Xv={completed:"完了",running:"実行中"},Qv={back:"← 一覧に戻る",noReport:"このレポートは見つかりませんでした。",noLog:"ログがありません。",tabLog:"ログ",tabSwarm:"群泳",tabDiary:"日誌",diaryHint:"エージェント群の探索を物語体の「探索日誌」として生成します。LLM を1回呼び出します。",generateDiary:"探索日誌を生成",generatingDiary:"生成中…",diaryError:"生成に失敗しました。LLM の設定を確認してください。",tabReport:"レポート",cancel:"中止",cancelConfirmLabel:"中止しますか?",cancelConfirmYes:"中止する",cancelConfirmNo:"やめる"},Kv={title:"実行を開始",baseUrl:"アプリの URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"ブラウザエージェント数",maxExplorers:"API エージェント数",start:"開始",cancel:"キャンセル",running:"実行中…",liveLog:"ライブログ",close:"閉じる",advanced:"詳細設定",llmBaseUrl:"LLM Base URL",llmModel:"モデル",llmApiKey:"API キー"},Zv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"実行中"},Jv={title:"定期実行",enabled:"自動実行:オン",disabled:"自動実行:オフ",dayLabel:"曜日",timeLabel:"時刻(サーバーのローカル時刻)",days:["日","月","火","水","木","金","土"],nextRun:"次回実行",saved:"保存しました"},$v={title:"App Goals",noSpec:"プロダクト仕様がまだありません。実行を開始するとゴールが自動推論されます。",noGoals:"ゴールが未設定です。",edit:"編集",save:"保存",cancel:"キャンセル",add:"+ ゴールを追加",placeholder:"例: ユーザーがサポートなしでオンボーディングを完了できる",hint:"プロダクト理解エージェントが推論したゴールです。誤りがあれば修正してください。",goalGapHint:'エージェントはこれらのゴール達成を妨げる問題を "goal-gap" として報告します。'},kv={header:qv,dashboard:Gv,table:Vv,status:Xv,detail:Qv,startModal:Kv,duration:Zv,schedule:Jv,goals:$v},Fv=localStorage.getItem("shoal-lang"),Wv=navigator.language.startsWith("ja")?"ja":"en";ke.use(xv).init({resources:{en:{translation:Yv},ja:{translation:kv}},lng:Fv??Wv,fallbackLng:"en",interpolation:{escapeValue:!1}});function Iv(){const{t:s}=il(),i=()=>{const c=ke.language==="ja"?"en":"ja";ke.changeLanguage(c),localStorage.setItem("shoal-lang",c)};return O.jsxs("header",{style:rc.header,children:[O.jsx("span",{style:rc.title,children:s("header.title")}),O.jsx("button",{onClick:i,style:rc.langBtn,children:ke.language==="ja"?"EN":"JA"})]})}const rc={header:{background:"#1e293b",color:"#f8fafc",padding:"0 2rem",height:"52px",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},title:{fontSize:"1rem",fontWeight:700,letterSpacing:"0.04em"},langBtn:{background:"transparent",border:"1px solid #475569",color:"#94a3b8",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.05em"}};function Pv({onClose:s,onStarted:i}){const{t:c}=il(),[r,o]=T.useState("http://localhost:3000"),[f,h]=T.useState(2),[p,y]=T.useState(0),[m,b]=T.useState(""),[v,C]=T.useState(""),[j,_]=T.useState(""),[w,G]=T.useState(!1),[Y,V]=T.useState(!1),X=async()=>{V(!0);const Q={baseUrl:r,maxBrowsers:f,maxExplorers:p};m&&(Q.llmBaseUrl=m),v&&(Q.llmApiKey=v),j&&(Q.llmModel=j);const P=await fetch("/api/runs/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)}),{sessionId:re}=await P.json();V(!1),i(re)};return O.jsx("div",{style:Be.overlay,onClick:Q=>Q.target===Q.currentTarget&&s(),children:O.jsxs("div",{style:Be.modal,children:[O.jsx("h2",{style:Be.title,children:c("startModal.title")}),O.jsxs("div",{style:Be.form,children:[O.jsxs("label",{style:Be.label,children:[c("startModal.baseUrl"),O.jsx("input",{type:"text",value:r,onChange:Q=>o(Q.target.value),placeholder:c("startModal.baseUrlPlaceholder"),style:Be.input})]}),O.jsxs("div",{style:Be.row,children:[O.jsxs("label",{style:Be.label,children:[c("startModal.maxBrowsers"),O.jsx("input",{type:"number",min:0,max:8,value:f,onChange:Q=>h(Number(Q.target.value)),style:{...Be.input,width:"80px"}})]}),O.jsxs("label",{style:Be.label,children:[c("startModal.maxExplorers"),O.jsx("input",{type:"number",min:0,max:8,value:p,onChange:Q=>y(Number(Q.target.value)),style:{...Be.input,width:"80px"}})]})]}),O.jsxs("button",{type:"button",onClick:()=>G(Q=>!Q),style:Be.advancedToggle,children:[w?"▾":"▸"," ",c("startModal.advanced")]}),w&&O.jsxs("div",{style:Be.advancedBox,children:[O.jsxs("label",{style:Be.label,children:[c("startModal.llmBaseUrl"),O.jsx("input",{type:"text",value:m,onChange:Q=>b(Q.target.value),placeholder:"http://localhost:11434/v1",style:Be.input})]}),O.jsxs("div",{style:Be.row,children:[O.jsxs("label",{style:Be.label,children:[c("startModal.llmModel"),O.jsx("input",{type:"text",value:j,onChange:Q=>_(Q.target.value),placeholder:"gemma4:e4b",style:Be.input})]}),O.jsxs("label",{style:Be.label,children:[c("startModal.llmApiKey"),O.jsx("input",{type:"text",value:v,onChange:Q=>C(Q.target.value),placeholder:"ollama",style:Be.input})]})]})]}),O.jsxs("div",{style:Be.buttons,children:[O.jsx("button",{onClick:s,style:Be.cancelBtn,disabled:Y,children:c("startModal.cancel")}),O.jsx("button",{onClick:X,style:Be.startBtn,disabled:Y,children:Y?"…":c("startModal.start")})]})]})]})})}const Be={overlay:{position:"fixed",inset:0,background:"rgba(15,23,42,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{background:"#fff",borderRadius:"12px",padding:"1.75rem",width:"520px",maxWidth:"calc(100vw - 2rem)",boxShadow:"0 20px 60px rgba(0,0,0,0.2)"},title:{fontSize:"1rem",fontWeight:700,marginBottom:"1.25rem"},form:{display:"flex",flexDirection:"column",gap:"1rem"},row:{display:"flex",gap:"1rem"},label:{display:"flex",flexDirection:"column",gap:"0.375rem",fontSize:"0.8rem",fontWeight:600,color:"#475569",flex:1},input:{border:"1px solid #e2e8f0",borderRadius:"6px",padding:"8px 10px",fontSize:"0.875rem",outline:"none",width:"100%",color:"#1e293b",background:"#fff"},advancedToggle:{background:"none",border:"none",padding:0,color:"#94a3b8",fontSize:"0.8rem",fontWeight:600,textAlign:"left",cursor:"pointer"},advancedBox:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"0.875rem",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},buttons:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"8px 16px",fontWeight:600,cursor:"pointer"},startBtn:{background:"#1e293b",color:"#fff",border:"none",borderRadius:"6px",padding:"8px 20px",fontWeight:600,cursor:"pointer"}};function eb(){const{t:s}=il(),[i,c]=T.useState(null),[r,o]=T.useState(!1),[f,h]=T.useState(!1),[p,y]=T.useState([]),[m,b]=T.useState(!1);T.useEffect(()=>{fetch("/api/spec").then(V=>V.status===404?(o(!0),null):V.json()).then(V=>{V&&c(V)}).catch(()=>{})},[]);const v=()=>{var V;y((V=i==null?void 0:i.appGoals)!=null&&V.length?[...i.appGoals]:[""]),h(!0)},C=()=>h(!1),j=async()=>{const V=p.map(X=>X.trim()).filter(Boolean);b(!0);try{await fetch("/api/spec/goals",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({goals:V})}),c(X=>X&&{...X,appGoals:V}),h(!1)}finally{b(!1)}},_=(V,X)=>{y(Q=>Q.map((P,re)=>re===V?X:P))},w=V=>{y(X=>X.filter((Q,P)=>P!==V))},G=()=>y(V=>[...V,""]);if(r)return O.jsxs("div",{style:Qe.panel,children:[O.jsx("div",{style:Qe.header,children:O.jsx("span",{style:Qe.title,children:s("goals.title")})}),O.jsx("p",{style:Qe.hint,children:s("goals.noSpec")})]});if(!i)return null;const Y=i.appGoals??[];return O.jsxs("div",{style:Qe.panel,children:[O.jsxs("div",{style:Qe.header,children:[O.jsxs("span",{style:Qe.title,children:[s("goals.title"),i.appName&&O.jsxs("span",{style:Qe.appName,children:[" — ",i.appName]})]}),!f&&O.jsx("button",{onClick:v,style:Qe.editBtn,children:s("goals.edit")})]}),f?O.jsxs("div",{style:Qe.editArea,children:[p.map((V,X)=>O.jsxs("div",{style:Qe.inputRow,children:[O.jsx("input",{style:Qe.input,value:V,placeholder:s("goals.placeholder"),onChange:Q=>_(X,Q.target.value),autoFocus:X===p.length-1&&V===""}),O.jsx("button",{onClick:()=>w(X),style:Qe.removeBtn,children:"×"})]},X)),O.jsx("button",{onClick:G,style:Qe.addBtn,children:s("goals.add")}),O.jsxs("div",{style:Qe.editActions,children:[O.jsx("button",{onClick:C,style:Qe.cancelBtn,children:s("goals.cancel")}),O.jsx("button",{onClick:j,style:Qe.saveBtn,disabled:m,children:m?"…":s("goals.save")})]})]}):O.jsxs(O.Fragment,{children:[Y.length===0?O.jsx("p",{style:Qe.hint,children:s("goals.noGoals")}):O.jsx("ul",{style:Qe.list,children:Y.map((V,X)=>O.jsx("li",{style:Qe.goalItem,children:V},X))}),O.jsx("p",{style:Qe.subHint,children:s("goals.goalGapHint")})]})]})}const Qe={panel:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.6rem"},title:{fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},appName:{fontWeight:400,textTransform:"none",letterSpacing:0},editBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"5px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},list:{margin:"0 0 0.5rem 0",paddingLeft:"1.25rem",display:"flex",flexDirection:"column",gap:"0.3rem"},goalItem:{fontSize:"0.875rem",color:"#1e293b",lineHeight:1.5},hint:{fontSize:"0.8rem",color:"#94a3b8",margin:"0 0 0.4rem"},subHint:{fontSize:"0.75rem",color:"#94a3b8",margin:"0.5rem 0 0"},editArea:{display:"flex",flexDirection:"column",gap:"0.4rem"},inputRow:{display:"flex",gap:"0.4rem",alignItems:"center"},input:{flex:1,padding:"6px 10px",fontSize:"0.875rem",border:"1px solid #cbd5e1",borderRadius:"5px",color:"#1e293b",outline:"none"},removeBtn:{background:"transparent",border:"none",color:"#94a3b8",fontSize:"1rem",cursor:"pointer",padding:"0 4px",lineHeight:1},addBtn:{alignSelf:"flex-start",background:"transparent",border:"none",color:"#3b82f6",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",padding:"2px 0"},editActions:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"5px",padding:"5px 12px",fontSize:"0.8rem",cursor:"pointer"},saveBtn:{background:"#1e293b",border:"none",color:"#f8fafc",borderRadius:"5px",padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer"}};function tb(){const{t:s}=il(),[i,c]=T.useState(null),[r,o]=T.useState(!1);T.useEffect(()=>{fetch("/api/schedule").then(y=>y.json()).then(y=>c(y)).catch(()=>{})},[]);const f=async y=>{if(!i)return;const m={...i,...y};c(m);try{const b=await fetch("/api/schedule",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(y)});if(b.ok){const v=await b.json();c(v),o(!0),setTimeout(()=>o(!1),2e3)}}catch{}};if(!i)return null;const h=s("schedule.days",{returnObjects:!0}),p=(()=>{if(!i.enabled)return null;const y=new Date,m=new Date;m.setHours(i.hour,i.minute,0,0);const b=(i.dayOfWeek-y.getDay()+7)%7||(y.getHours()*60+y.getMinutes()>=i.hour*60+i.minute?7:0);return m.setDate(m.getDate()+b),m.toLocaleDateString(void 0,{weekday:"short",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})})();return O.jsxs("div",{style:Pe.panel,children:[O.jsxs("div",{style:Pe.header,children:[O.jsx("span",{style:Pe.title,children:s("schedule.title")}),O.jsx("button",{onClick:()=>f({enabled:!i.enabled}),style:{...Pe.toggle,background:i.enabled?"#22c55e":"#374151"},children:i.enabled?s("schedule.enabled"):s("schedule.disabled")})]}),O.jsxs("div",{style:{...Pe.fields,opacity:i.enabled?1:.4,pointerEvents:i.enabled?"auto":"none"},children:[O.jsxs("div",{style:Pe.field,children:[O.jsx("label",{style:Pe.label,children:s("schedule.dayLabel")}),O.jsx("div",{style:Pe.dayRow,children:h.map((y,m)=>O.jsx("button",{onClick:()=>f({dayOfWeek:m}),style:{...Pe.dayBtn,background:i.dayOfWeek===m?"#6366f1":"#1f2937"},children:y},m))})]}),O.jsxs("div",{style:Pe.field,children:[O.jsx("label",{style:Pe.label,children:s("schedule.timeLabel")}),O.jsxs("div",{style:Pe.timeRow,children:[O.jsx("input",{type:"number",min:0,max:23,value:i.hour,onChange:y=>f({hour:parseInt(y.target.value)||0}),style:Pe.timeInput}),O.jsx("span",{style:Pe.colon,children:":"}),O.jsx("input",{type:"number",min:0,max:59,value:String(i.minute).padStart(2,"0"),onChange:y=>f({minute:parseInt(y.target.value)||0}),style:Pe.timeInput})]})]})]}),O.jsxs("div",{style:Pe.footer,children:[r&&O.jsx("span",{style:Pe.savedLabel,children:s("schedule.saved")}),p&&O.jsxs("span",{style:Pe.nextRun,children:[s("schedule.nextRun"),": ",p]})]})]})}const Pe={panel:{background:"#111827",border:"1px solid #1f2937",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.875rem"},title:{color:"#e2e8f0",fontWeight:600,fontSize:"0.9rem"},toggle:{border:"none",borderRadius:"6px",padding:"0.3rem 0.75rem",fontSize:"0.75rem",fontWeight:600,color:"#fff",cursor:"pointer"},fields:{display:"flex",gap:"1.5rem",flexWrap:"wrap"},field:{display:"flex",flexDirection:"column",gap:"0.4rem"},label:{fontSize:"0.75rem",color:"#94a3b8"},dayRow:{display:"flex",gap:"0.25rem"},dayBtn:{border:"none",borderRadius:"4px",padding:"0.3rem 0.5rem",fontSize:"0.75rem",color:"#e2e8f0",cursor:"pointer"},timeRow:{display:"flex",alignItems:"center",gap:"0.25rem"},timeInput:{background:"#1f2937",border:"1px solid #374151",borderRadius:"4px",color:"#e2e8f0",padding:"0.3rem 0.5rem",width:"3.5rem",textAlign:"center",fontSize:"0.875rem"},colon:{color:"#94a3b8",fontWeight:700},footer:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:"0.75rem",minHeight:"1.2rem"},savedLabel:{fontSize:"0.75rem",color:"#22c55e"},nextRun:{fontSize:"0.75rem",color:"#64748b"}};function ab(s,i,c){if(!i)return c("duration.inProgress");const r=new Date(i).getTime()-new Date(s).getTime(),o=Math.round(r/1e3);return o<60?c("duration.seconds",{count:o}):c("duration.minutes",{m:Math.floor(o/60),s:o%60})}function lb(s){return new Date(s).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const nb={bug:"#ef4444",ux:"#f97316","feature-request":"#3b82f6","goal-gap":"#8b5cf6"};function ib(s){return s==null?"—":s<1e-4?"< $0.0001":s<.01?`$${s.toFixed(4)}`:s<1?`$${s.toFixed(3)}`:`$${s.toFixed(2)}`}function ub(){const{t:s}=il(),i=vc(),[c,r]=T.useState([]),[o,f]=T.useState(!1),h=()=>{fetch("/api/runs").then(p=>p.json()).then(p=>{const y=new Set(p.map(j=>j.runId)),m=localStorage.getItem("shoal-active-run-id"),b=localStorage.getItem("shoal-active-run-started-at"),v=()=>{localStorage.removeItem("shoal-active-run-id"),localStorage.removeItem("shoal-active-run-started-at")};let C=[];if(m&&b){const j=(Date.now()-new Date(b).getTime())/6e4;y.has(m)||j>120?v():C=[{runId:m,startedAt:b,completedAt:null,status:"running",agentCount:0,completedAgents:0,errorAgents:0,findingCount:0,findingsByCategory:{},hasReport:!1,isLive:!0}]}r([...C,...p])}).catch(()=>{})};return T.useEffect(()=>{h();const p=setInterval(h,5e3);return()=>clearInterval(p)},[]),O.jsxs("main",{style:_e.main,children:[O.jsxs("div",{style:_e.pageHeader,children:[O.jsx("h1",{style:_e.pageTitle,children:s("dashboard.title")}),O.jsx("button",{onClick:()=>f(!0),style:_e.startBtn,children:s("dashboard.startRun")})]}),O.jsx(eb,{}),O.jsx(tb,{}),c.length===0?O.jsxs("div",{style:_e.empty,children:[O.jsx("img",{src:"/mascot.svg",alt:"shoal",style:_e.emptyMascot}),O.jsx("p",{style:_e.emptyTitle,children:s("dashboard.noRuns")}),O.jsx("p",{style:_e.emptyHint,children:s("dashboard.noRunsHint")})]}):O.jsx("div",{style:_e.tableWrapper,children:O.jsxs("table",{style:_e.table,children:[O.jsx("thead",{children:O.jsx("tr",{children:["status","started","duration","findings","agents","cost","actions"].map(p=>O.jsx("th",{style:{..._e.th,...p==="agents"||p==="findings"||p==="cost"?{textAlign:"center"}:{}},children:s(`table.${p}`)},p))})}),O.jsx("tbody",{children:c.map(p=>O.jsx(sb,{run:p,onView:()=>i(`/runs/${p.runId}`)},p.runId))})]})}),o&&O.jsx(Pv,{onClose:()=>f(!1),onStarted:p=>{f(!1),localStorage.setItem("shoal-active-run-id",p),localStorage.setItem("shoal-active-run-started-at",new Date().toISOString()),h()}})]})}function sb({run:s,onView:i}){const{t:c}=il(),r=s.status==="running",o=s.findingCount,f=Object.entries(s.findingsByCategory);return O.jsxs("tr",{style:_e.row,children:[O.jsx("td",{style:_e.td,children:O.jsx("span",{style:{..._e.badge,background:r?"#f59e0b":"#22c55e"},children:c(`status.${s.status}`)})}),O.jsx("td",{style:{..._e.td,..._e.muted},children:lb(s.startedAt)}),O.jsx("td",{style:{..._e.td,..._e.muted},children:ab(s.startedAt,s.completedAt,c)}),O.jsxs("td",{style:{..._e.td,textAlign:"center"},children:[o>0?O.jsx("span",{style:_e.findingsGroup,children:f.map(([h,p])=>O.jsx("span",{style:{..._e.badge,background:nb[h]??"#6b7280"},children:p},h))}):O.jsx("span",{style:_e.muted,children:"—"}),s.regressionChecked>0&&O.jsx("span",{style:{display:"block",fontSize:"0.7rem",marginTop:"0.25rem",color:s.regressionFailed>0?"#ef4444":"#22c55e"},children:s.regressionFailed>0?`⚠ ${s.regressionFailed} regressed`:`✓ ${s.regressionChecked} still fixed`})]}),O.jsxs("td",{style:{..._e.td,textAlign:"center",..._e.muted},children:[s.completedAgents,"/",s.agentCount]}),O.jsx("td",{style:{..._e.td,textAlign:"center",..._e.muted},children:ib(s.estimatedCostUSD)}),O.jsx("td",{style:_e.td,children:O.jsx("button",{onClick:i,style:_e.viewBtn,children:s.isLive?ke.language==="ja"?"ログ →":"Log →":ke.language==="ja"?"表示 →":"View →"})})]})}const _e={main:{maxWidth:"960px",margin:"0 auto",padding:"2rem"},pageHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.5rem"},pageTitle:{fontSize:"1rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},startBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"6px",padding:"8px 16px",fontWeight:600,fontSize:"0.875rem"},empty:{textAlign:"center",padding:"4rem 2rem",color:"#94a3b8"},emptyMascot:{width:"100px",height:"100px",opacity:.55,marginBottom:"1rem"},emptyTitle:{fontSize:"1rem",fontWeight:600,marginBottom:"0.5rem"},emptyHint:{fontSize:"0.875rem"},tableWrapper:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},table:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},th:{background:"#f1f5f9",padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"#64748b",fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #e2e8f0"},row:{borderTop:"1px solid #e2e8f0"},td:{padding:"0.75rem 1rem",verticalAlign:"middle"},muted:{color:"#64748b"},badge:{display:"inline-block",padding:"0.15rem 0.5rem",borderRadius:"9999px",fontSize:"0.65rem",fontWeight:700,color:"#fff",whiteSpace:"nowrap"},findingsGroup:{display:"inline-flex",gap:"4px",alignItems:"center"},viewBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600}},sm=[10,24,38,52,66,80,17,31,45,59,73,87],jm={explorer:{bg:"rgba(59,130,246,0.12)",text:"#93c5fd",dot:"#3b82f6",glow:"#3b82f620"},browser:{bg:"rgba(34,197,94,0.12)",text:"#86efac",dot:"#22c55e",glow:"#22c55e20"},regression:{bg:"rgba(249,115,22,0.12)",text:"#fdba74",dot:"#f97316",glow:"#f9731620"}},rb={explorer:"EX",browser:"BR",regression:"RG"};function cb(s){const i=new Map;let c=null,r=0;for(const o of s){const f=o.match(/^\[(explorer|browser|regression)\] (.+?) start/);if(f){const m=f[1],b=f[2],v=`${m}:${b}`;if(i.has(v))i.get(v).status="running";else{const C=r++;i.set(v,{id:v,type:m,name:b,status:"running",currentPath:"/",findingsCount:0,lastFinding:"",yPercent:sm[C%sm.length],swimDuration:7+C%5,swimDelay:-(C*1.7),bobDuration:2.5+C%3*.5,bobDelay:-(C*.6),reverseSwim:C%2!==0})}c=v;continue}const h=o.match(/^\[(explorer|browser|regression)\] (.+?) (?:done|cancelled)/);if(h){const m=`${h[1]}:${h[2]}`;i.has(m)&&(i.get(m).status="done"),c===m&&(c=null);continue}const p=o.match(/→ navigate\(\{[^}]*"path"\s*:\s*"([^"]+)"/);if(p&&c&&i.has(c)){i.get(c).currentPath=p[1];continue}const y=o.match(/→ \[findings\] saved: "([^"]+)"/);if(y&&c&&i.has(c)){const m=i.get(c);m.findingsCount+=1,m.lastFinding=y[1]}}return Array.from(i.values())}const ob=`
|
|
69
|
+
@keyframes shoal-swim {
|
|
70
|
+
from { left: 2%; }
|
|
71
|
+
to { left: calc(100% - 280px); }
|
|
72
|
+
}
|
|
73
|
+
@keyframes shoal-bob {
|
|
74
|
+
from { transform: translateY(0); }
|
|
75
|
+
to { transform: translateY(9px); }
|
|
76
|
+
}
|
|
77
|
+
@keyframes shoal-pulse {
|
|
78
|
+
0%, 100% { opacity: 0.55; transform: scale(1); }
|
|
79
|
+
50% { opacity: 1; transform: scale(1.15); }
|
|
80
|
+
}
|
|
81
|
+
@keyframes shoal-fade-in {
|
|
82
|
+
from { opacity: 0; transform: scale(0.85); }
|
|
83
|
+
to { opacity: 1; transform: scale(1); }
|
|
84
|
+
}
|
|
85
|
+
`;function fb({logLines:s,isLive:i}){const c=T.useMemo(()=>cb(s),[s]),r=c.filter(f=>f.status==="running"),o=c.filter(f=>f.status==="done");return O.jsxs("div",{style:Kn.container,children:[O.jsx("style",{children:ob}),O.jsx("div",{style:Kn.waterLayer}),c.length===0?O.jsx("div",{style:Kn.empty,children:i?"Waiting for agents to start…":"No agent activity recorded"}):O.jsxs(O.Fragment,{children:[r.map(f=>O.jsx(db,{agent:f},f.id)),o.length>0&&O.jsx("div",{style:Kn.doneRow,children:o.map(f=>{const h=jm[f.type];return O.jsxs("span",{style:{...Kn.doneBadge,color:h.text,borderColor:`${h.dot}44`},children:["✓ ",f.name]},f.id)})})]})]})}function db({agent:s}){const i=jm[s.type],[c,r]=T.useState(!1),o=T.useRef(s.findingsCount);T.useEffect(()=>{if(s.findingsCount>o.current){o.current=s.findingsCount,r(!0);const h=setTimeout(()=>r(!1),1500);return()=>clearTimeout(h)}},[s.findingsCount]);const f=s.currentPath.length>26?"…"+s.currentPath.slice(-26):s.currentPath;return O.jsx("div",{style:{position:"absolute",top:`${s.yPercent}%`,animationName:"shoal-swim",animationDuration:`${s.swimDuration}s`,animationDelay:`${s.swimDelay}s`,animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationDirection:s.reverseSwim?"alternate-reverse":"alternate",animationFillMode:"both"},children:O.jsxs("div",{style:{position:"relative",animationName:"shoal-bob",animationDuration:`${s.bobDuration}s`,animationDelay:`${s.bobDelay}s`,animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationDirection:"alternate",animationFillMode:"both"},children:[O.jsx("div",{style:{animationName:"shoal-fade-in",animationDuration:"0.4s",animationTimingFunction:"ease-out",animationFillMode:"both"},children:O.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:"0.35rem",background:i.bg,border:`1px solid ${c?i.dot+"88":i.dot+"33"}`,borderRadius:"20px",padding:"4px 10px 4px 7px",whiteSpace:"nowrap",boxShadow:c?`0 0 40px ${i.dot}cc, 0 0 18px ${i.dot}88, 0 2px 8px rgba(0,0,0,0.3)`:`0 0 16px ${i.glow}, 0 2px 8px rgba(0,0,0,0.3)`,transition:c?"box-shadow 0.08s ease-in, border-color 0.08s ease-in":"box-shadow 1.4s ease-out, border-color 1.4s ease-out",backdropFilter:"blur(4px)",cursor:"default",userSelect:"none"},children:[O.jsx("span",{style:{width:"6px",height:"6px",borderRadius:"50%",background:i.dot,flexShrink:0,animationName:"shoal-pulse",animationDuration:"1.8s",animationTimingFunction:"ease-in-out",animationIterationCount:"infinite",animationFillMode:"both"}}),O.jsx("span",{style:{fontSize:"0.6rem",fontWeight:700,color:i.dot,fontFamily:"monospace",letterSpacing:"0.08em"},children:rb[s.type]}),O.jsx("span",{style:{fontSize:"0.75rem",fontWeight:600,color:i.text,fontFamily:"monospace"},children:s.name}),O.jsx("span",{style:{fontSize:"0.65rem",color:`${i.text}88`,fontFamily:"monospace"},children:f}),s.findingsCount>0&&O.jsxs("span",{style:{fontSize:"0.6rem",fontWeight:700,color:"#fbbf24",fontFamily:"monospace",letterSpacing:"0.02em"},children:["⚡",s.findingsCount]})]})}),c&&s.lastFinding&&O.jsxs("div",{style:{position:"absolute",top:"calc(100% + 5px)",left:0,background:"rgba(251,191,36,0.12)",border:"1px solid #fbbf2455",borderRadius:"8px",padding:"2px 8px",fontSize:"0.6rem",color:"#fbbf24",fontFamily:"monospace",whiteSpace:"nowrap",pointerEvents:"none",animationName:"shoal-fade-in",animationDuration:"0.25s",animationTimingFunction:"ease-out",animationFillMode:"both"},children:["⚡ ",s.lastFinding.length>34?s.lastFinding.slice(0,34)+"…":s.lastFinding]})]})})}const Kn={container:{flex:1,position:"relative",background:"linear-gradient(180deg, #080f1e 0%, #0f172a 60%, #0b1220 100%)",overflow:"hidden",minHeight:"280px"},waterLayer:{position:"absolute",inset:0,backgroundImage:["radial-gradient(ellipse at 20% 40%, rgba(59,130,246,0.04) 0%, transparent 55%)","radial-gradient(ellipse at 75% 60%, rgba(34,197,94,0.04) 0%, transparent 55%)","radial-gradient(ellipse at 50% 80%, rgba(249,115,22,0.03) 0%, transparent 40%)"].join(", "),pointerEvents:"none"},empty:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"#1e293b",fontSize:"0.8rem",fontFamily:"monospace",textAlign:"center",letterSpacing:"0.04em"},doneRow:{position:"absolute",bottom:"0.75rem",left:0,right:0,display:"flex",gap:"0.5rem",justifyContent:"center",flexWrap:"wrap",padding:"0 2rem"},doneBadge:{fontSize:"0.6rem",fontWeight:600,fontFamily:"monospace",padding:"2px 8px",border:"1px solid",borderRadius:"12px",opacity:.45,letterSpacing:"0.04em"}};function hb(){const{runId:s}=Fy(),i=vc(),{t:c}=il(),[r,o]=T.useState("log"),[f,h]=T.useState([]),[p,y]=T.useState(!1),[m,b]=T.useState(!1),[v,C]=T.useState(!1),[j,_]=T.useState(!1),[w,G]=T.useState(!1),[Y,V]=T.useState(null),[X,Q]=T.useState(!1),[P,re]=T.useState(!1),$=T.useRef(null),Ee=async()=>{Q(!0),re(!1);try{const Re=await(await fetch(`/api/runs/${s}/diary`,{method:"POST"})).json();Re.content?V(Re.content):re(!0)}catch{re(!0)}finally{Q(!1)}},pe=async()=>{_(!0),G(!1),await fetch(`/api/runs/${s}/cancel`,{method:"POST"}).catch(()=>{})};return T.useEffect(()=>{fetch(`/api/runs/${s}/log`).then(I=>I.json()).then(I=>{h(I.lines),b(I.done),I.done||y(!0)}).catch(()=>{}),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(I=>C(I.ok)).catch(()=>{})},[s]),T.useEffect(()=>{if(!p)return;let I=!1;const Re=new EventSource(`/api/runs/${s}/events`),ne=()=>{b(!0),y(!1),Re.close(),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(ie=>C(ie.ok)).catch(()=>{})};Re.onmessage=ie=>{const M=JSON.parse(ie.data);h(q=>[...q,M])},Re.addEventListener("done",ne);const te=setTimeout(()=>{Re.readyState!==EventSource.OPEN&&(Re.close(),ae())},3e3);Re.onerror=()=>{clearTimeout(te),Re.close(),I||ae()};function ae(){let ie=0;const M=setInterval(async()=>{if(I){clearInterval(M);return}try{const q=await fetch(`/api/runs/${s}/log`);if(!q.ok)return;const k=await q.json();k.lines.length>ie&&(h(k.lines),ie=k.lines.length),k.done&&(clearInterval(M),b(!0),y(!1),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(ye=>C(ye.ok)).catch(()=>{}))}catch{}},2e3);return()=>clearInterval(M)}return()=>{I=!0,clearTimeout(te),Re.close()}},[p,s]),T.useEffect(()=>{$.current&&($.current.scrollTop=$.current.scrollHeight)},[f]),T.useEffect(()=>{r!=="diary"||Y||fetch(`/api/runs/${s}/diary`).then(I=>I.ok?I.json():null).then(I=>{I!=null&&I.content&&V(I.content)}).catch(()=>{})},[r,s,Y]),O.jsxs("div",{style:be.wrapper,children:[O.jsxs("div",{style:be.toolbar,children:[O.jsx("button",{onClick:()=>i("/"),style:be.backBtn,children:c("detail.back")}),O.jsx("span",{style:be.runId,children:s}),p&&O.jsx("span",{style:be.liveBadge,children:"● LIVE"}),p&&!w&&O.jsx("button",{onClick:()=>G(!0),style:be.cancelBtn,disabled:j,children:j?"…":c("detail.cancel")}),p&&w&&O.jsxs("div",{style:be.cancelConfirm,children:[O.jsx("span",{style:be.cancelConfirmLabel,children:c("detail.cancelConfirmLabel")}),O.jsx("button",{onClick:pe,style:be.cancelConfirmYes,children:c("detail.cancelConfirmYes")}),O.jsx("button",{onClick:()=>G(!1),style:be.cancelConfirmNo,children:c("detail.cancelConfirmNo")})]})]}),O.jsxs("div",{style:be.tabs,children:[O.jsx("button",{style:{...be.tab,...r==="log"?be.tabActive:{}},onClick:()=>o("log"),children:c("detail.tabLog")}),O.jsx("button",{style:{...be.tab,...r==="swarm"?be.tabActive:{}},onClick:()=>o("swarm"),children:c("detail.tabSwarm")}),O.jsx("button",{style:{...be.tab,...r==="report"?be.tabActive:{},...v?{}:be.tabDisabled},onClick:()=>v&&o("report"),disabled:!v,children:c("detail.tabReport")}),O.jsx("button",{style:{...be.tab,...r==="diary"?be.tabActive:{},...m?{}:be.tabDisabled},onClick:()=>m&&o("diary"),disabled:!m,children:c("detail.tabDiary")})]}),r==="swarm"&&O.jsx(fb,{logLines:f,isLive:p}),r==="log"&&O.jsxs("div",{ref:$,style:be.log,children:[f.length===0&&!p&&O.jsx("p",{style:be.logEmpty,children:c("detail.noLog")}),f.map((I,Re)=>O.jsx("div",{style:be.logLine,children:I},Re)),p&&O.jsx("div",{style:be.cursor,children:"▌"}),m&&f.length>0&&O.jsxs("div",{style:be.logDone,children:["— ",c("status.completed")," —"]})]}),r==="report"&&O.jsx("iframe",{src:`/api/runs/${s}/report`,style:be.frame,title:`Report for ${s}`}),r==="diary"&&O.jsxs("div",{style:be.diaryWrapper,children:[!Y&&!X&&O.jsxs("div",{style:be.diaryPrompt,children:[O.jsx("p",{style:be.diaryHint,children:c("detail.diaryHint")}),P&&O.jsx("p",{style:be.diaryErrMsg,children:c("detail.diaryError")}),O.jsx("button",{onClick:Ee,style:be.generateBtn,children:c("detail.generateDiary")})]}),X&&O.jsx("div",{style:be.diaryLoading,children:c("detail.generatingDiary")}),Y&&O.jsx("pre",{style:be.diaryContent,children:Y})]})]})}const be={wrapper:{display:"flex",flexDirection:"column",height:"calc(100vh - 52px)"},toolbar:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.75rem 2rem",borderBottom:"1px solid #e2e8f0",background:"#fff"},backBtn:{background:"transparent",border:"none",color:"#475569",fontSize:"0.875rem",fontWeight:600,padding:0,cursor:"pointer"},runId:{fontSize:"0.75rem",color:"#94a3b8",fontFamily:"monospace"},liveBadge:{fontSize:"0.7rem",fontWeight:700,color:"#22c55e",letterSpacing:"0.05em"},cancelBtn:{background:"transparent",border:"1px solid #ef4444",color:"#ef4444",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer",marginLeft:"auto"},cancelConfirm:{display:"flex",alignItems:"center",gap:"0.5rem",marginLeft:"auto"},cancelConfirmLabel:{fontSize:"0.75rem",color:"#64748b",fontWeight:600},cancelConfirmYes:{background:"#ef4444",border:"none",color:"#fff",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},cancelConfirmNo:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},tabs:{display:"flex",gap:0,background:"#fff",borderBottom:"1px solid #e2e8f0",padding:"0 2rem"},tab:{background:"transparent",border:"none",borderBottom:"2px solid transparent",padding:"0.625rem 1rem",fontSize:"0.8rem",fontWeight:600,color:"#94a3b8",cursor:"pointer",marginBottom:"-1px"},tabActive:{color:"#1e293b",borderBottomColor:"#1e293b"},tabDisabled:{opacity:.4,cursor:"default"},log:{flex:1,overflowY:"auto",background:"#0f172a",padding:"1.25rem 1.5rem",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.7},logEmpty:{color:"#475569"},logLine:{color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all"},cursor:{color:"#22c55e"},logDone:{color:"#475569",marginTop:"1rem",textAlign:"center",fontSize:"0.75rem"},frame:{flex:1,width:"100%",border:"none"},diaryWrapper:{flex:1,overflowY:"auto",background:"#f8fafc"},diaryPrompt:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"1rem",height:"100%",minHeight:"200px",padding:"3rem 2rem"},diaryHint:{fontSize:"0.875rem",color:"#64748b",textAlign:"center",maxWidth:"400px"},diaryErrMsg:{fontSize:"0.8rem",color:"#ef4444"},generateBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"8px",padding:"0.6rem 1.5rem",fontSize:"0.875rem",fontWeight:600,cursor:"pointer"},diaryLoading:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",minHeight:"200px",fontSize:"0.875rem",color:"#64748b"},diaryContent:{margin:"0 auto",maxWidth:"720px",padding:"2rem",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",fontSize:"0.9rem",lineHeight:1.8,color:"#1e293b",whiteSpace:"pre-wrap",wordBreak:"break-word",background:"transparent",border:"none"}};function mb(){return O.jsxs(O.Fragment,{children:[O.jsx(Iv,{}),O.jsxs(f0,{children:[O.jsx(oc,{path:"/",element:O.jsx(ub,{})}),O.jsx(oc,{path:"/runs/:runId",element:O.jsx(hb,{})})]})]})}dy.createRoot(document.getElementById("root")).render(O.jsx(T.StrictMode,{children:O.jsx(U0,{children:O.jsx(mb,{})})}));
|