laneyard 0.4.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,62 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const u of n)if(u.type==="childList")for(const i of u.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function l(n){const u={};return n.integrity&&(u.integrity=n.integrity),n.referrerPolicy&&(u.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?u.credentials="include":n.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(n){if(n.ep)return;n.ep=!0;const u=l(n);fetch(n.href,u)}})();var Pr={exports:{}},$u={};/**
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 _m=Symbol.for("react.transitional.element"),Cm=Symbol.for("react.fragment");function eo(e,t,l){var a=null;if(l!==void 0&&(a=""+l),t.key!==void 0&&(a=""+t.key),"key"in t){l={};for(var n in t)n!=="key"&&(l[n]=t[n])}else l=t;return t=l.ref,{$$typeof:_m,type:e,key:a,ref:t!==void 0?t:null,props:l}}$u.Fragment=Cm;$u.jsx=eo;$u.jsxs=eo;Pr.exports=$u;var f=Pr.exports,to={exports:{}},U={};/**
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 as=Symbol.for("react.transitional.element"),Rm=Symbol.for("react.portal"),Om=Symbol.for("react.fragment"),Dm=Symbol.for("react.strict_mode"),Mm=Symbol.for("react.profiler"),Um=Symbol.for("react.consumer"),Hm=Symbol.for("react.context"),Bm=Symbol.for("react.forward_ref"),wm=Symbol.for("react.suspense"),Lm=Symbol.for("react.memo"),lo=Symbol.for("react.lazy"),Ym=Symbol.for("react.activity"),hf=Symbol.iterator;function qm(e){return e===null||typeof e!="object"?null:(e=hf&&e[hf]||e["@@iterator"],typeof e=="function"?e:null)}var ao={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},no=Object.assign,uo={};function pa(e,t,l){this.props=e,this.context=t,this.refs=uo,this.updater=l||ao}pa.prototype.isReactComponent={};pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function io(){}io.prototype=pa.prototype;function ns(e,t,l){this.props=e,this.context=t,this.refs=uo,this.updater=l||ao}var us=ns.prototype=new io;us.constructor=ns;no(us,pa.prototype);us.isPureReactComponent=!0;var mf=Array.isArray;function uc(){}var ee={H:null,A:null,T:null,S:null},co=Object.prototype.hasOwnProperty;function is(e,t,l){var a=l.ref;return{$$typeof:as,type:e,key:t,ref:a!==void 0?a:null,props:l}}function Gm(e,t){return is(e.type,t,e.props)}function cs(e){return typeof e=="object"&&e!==null&&e.$$typeof===as}function Xm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var yf=/\/+/g;function Si(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xm(""+e.key):t.toString(36)}function Qm(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(uc,uc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ll(e,t,l,a,n){var u=typeof e;(u==="undefined"||u==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(u){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case as:case Rm:i=!0;break;case lo:return i=e._init,Ll(i(e._payload),t,l,a,n)}}if(i)return n=n(e),i=a===""?"."+Si(e,0):a,mf(n)?(l="",i!=null&&(l=i.replace(yf,"$&/")+"/"),Ll(n,t,l,"",function(r){return r})):n!=null&&(cs(n)&&(n=Gm(n,l+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(yf,"$&/")+"/")+i)),t.push(n)),1;i=0;var c=a===""?".":a+":";if(mf(e))for(var s=0;s<e.length;s++)a=e[s],u=c+Si(a,s),i+=Ll(a,t,l,u,n);else if(s=qm(e),typeof s=="function")for(e=s.call(e),s=0;!(a=e.next()).done;)a=a.value,u=c+Si(a,s++),i+=Ll(a,t,l,u,n);else if(u==="object"){if(typeof e.then=="function")return Ll(Qm(e),t,l,a,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function wn(e,t,l){if(e==null)return e;var a=[],n=0;return Ll(e,a,"","",function(u){return t.call(l,u,n++)}),a}function Zm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(l){(e._status===0||e._status===-1)&&(e._status=1,e._result=l)},function(l){(e._status===0||e._status===-1)&&(e._status=2,e._result=l)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var vf=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)},Vm={map:wn,forEach:function(e,t,l){wn(e,function(){t.apply(this,arguments)},l)},count:function(e){var t=0;return wn(e,function(){t++}),t},toArray:function(e){return wn(e,function(t){return t})||[]},only:function(e){if(!cs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=Ym;U.Children=Vm;U.Component=pa;U.Fragment=Om;U.Profiler=Mm;U.PureComponent=ns;U.StrictMode=Dm;U.Suspense=wm;U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ee;U.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ee.H.useMemoCache(e)}};U.cache=function(e){return function(){return e.apply(null,arguments)}};U.cacheSignal=function(){return null};U.cloneElement=function(e,t,l){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=no({},e.props),n=e.key;if(t!=null)for(u in t.key!==void 0&&(n=""+t.key),t)!co.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(a[u]=t[u]);var u=arguments.length-2;if(u===1)a.children=l;else if(1<u){for(var i=Array(u),c=0;c<u;c++)i[c]=arguments[c+2];a.children=i}return is(e.type,n,a)};U.createContext=function(e){return e={$$typeof:Hm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Um,_context:e},e};U.createElement=function(e,t,l){var a,n={},u=null;if(t!=null)for(a in t.key!==void 0&&(u=""+t.key),t)co.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(n[a]=t[a]);var i=arguments.length-2;if(i===1)n.children=l;else if(1<i){for(var c=Array(i),s=0;s<i;s++)c[s]=arguments[s+2];n.children=c}if(e&&e.defaultProps)for(a in i=e.defaultProps,i)n[a]===void 0&&(n[a]=i[a]);return is(e,u,n)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Bm,render:e}};U.isValidElement=cs;U.lazy=function(e){return{$$typeof:lo,_payload:{_status:-1,_result:e},_init:Zm}};U.memo=function(e,t){return{$$typeof:Lm,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=ee.T,l={};ee.T=l;try{var a=e(),n=ee.S;n!==null&&n(l,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(uc,vf)}catch(u){vf(u)}finally{t!==null&&l.types!==null&&(t.types=l.types),ee.T=t}};U.unstable_useCacheRefresh=function(){return ee.H.useCacheRefresh()};U.use=function(e){return ee.H.use(e)};U.useActionState=function(e,t,l){return ee.H.useActionState(e,t,l)};U.useCallback=function(e,t){return ee.H.useCallback(e,t)};U.useContext=function(e){return ee.H.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e,t){return ee.H.useDeferredValue(e,t)};U.useEffect=function(e,t){return ee.H.useEffect(e,t)};U.useEffectEvent=function(e){return ee.H.useEffectEvent(e)};U.useId=function(){return ee.H.useId()};U.useImperativeHandle=function(e,t,l){return ee.H.useImperativeHandle(e,t,l)};U.useInsertionEffect=function(e,t){return ee.H.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return ee.H.useLayoutEffect(e,t)};U.useMemo=function(e,t){return ee.H.useMemo(e,t)};U.useOptimistic=function(e,t){return ee.H.useOptimistic(e,t)};U.useReducer=function(e,t,l){return ee.H.useReducer(e,t,l)};U.useRef=function(e){return ee.H.useRef(e)};U.useState=function(e){return ee.H.useState(e)};U.useSyncExternalStore=function(e,t,l){return ee.H.useSyncExternalStore(e,t,l)};U.useTransition=function(){return ee.H.useTransition()};U.version="19.2.7";to.exports=U;var v=to.exports,so={exports:{}},Wu={},fo={exports:{}},ro={};/**
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
- */(function(e){function t(C,z){var D=C.length;C.push(z);e:for(;0<D;){var $=D-1>>>1,me=C[$];if(0<n(me,z))C[$]=z,C[D]=me,D=$;else break e}}function l(C){return C.length===0?null:C[0]}function a(C){if(C.length===0)return null;var z=C[0],D=C.pop();if(D!==z){C[0]=D;e:for(var $=0,me=C.length,Un=me>>>1;$<Un;){var Hn=2*($+1)-1,gi=C[Hn],ml=Hn+1,Bn=C[ml];if(0>n(gi,D))ml<me&&0>n(Bn,gi)?(C[$]=Bn,C[ml]=D,$=ml):(C[$]=gi,C[Hn]=D,$=Hn);else if(ml<me&&0>n(Bn,D))C[$]=Bn,C[ml]=D,$=ml;else break e}}return z}function n(C,z){var D=C.sortIndex-z.sortIndex;return D!==0?D:C.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var s=[],r=[],d=1,h=null,o=3,p=!1,b=!1,x=!1,E=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function S(C){for(var z=l(r);z!==null;){if(z.callback===null)a(r);else if(z.startTime<=C)a(r),z.sortIndex=z.expirationTime,t(s,z);else break;z=l(r)}}function T(C){if(x=!1,S(C),!b)if(l(s)!==null)b=!0,O||(O=!0,F());else{var z=l(r);z!==null&&ge(T,z.startTime-C)}}var O=!1,_=-1,N=5,R=-1;function A(){return E?!0:!(e.unstable_now()-R<N)}function q(){if(E=!1,O){var C=e.unstable_now();R=C;var z=!0;try{e:{b=!1,x&&(x=!1,y(_),_=-1),p=!0;var D=o;try{t:{for(S(C),h=l(s);h!==null&&!(h.expirationTime>C&&A());){var $=h.callback;if(typeof $=="function"){h.callback=null,o=h.priorityLevel;var me=$(h.expirationTime<=C);if(C=e.unstable_now(),typeof me=="function"){h.callback=me,S(C),z=!0;break t}h===l(s)&&a(s),S(C)}else a(s);h=l(s)}if(h!==null)z=!0;else{var Un=l(r);Un!==null&&ge(T,Un.startTime-C),z=!1}}break e}finally{h=null,o=D,p=!1}z=void 0}}finally{z?F():O=!1}}}var F;if(typeof g=="function")F=function(){g(q)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,St=rt.port2;rt.port1.onmessage=q,F=function(){St.postMessage(null)}}else F=function(){m(q,0)};function ge(C,z){_=m(function(){C(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return o},e.unstable_next=function(C){switch(o){case 1:case 2:case 3:var z=3;break;default:z=o}var D=o;o=z;try{return C()}finally{o=D}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(C,z){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var D=o;o=C;try{return z()}finally{o=D}},e.unstable_scheduleCallback=function(C,z,D){var $=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?$+D:$):D=$,C){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=D+me,C={id:d++,callback:z,priorityLevel:C,startTime:D,expirationTime:me,sortIndex:-1},D>$?(C.sortIndex=D,t(r,C),l(s)===null&&C===l(r)&&(x?(y(_),_=-1):x=!0,ge(T,D-$))):(C.sortIndex=me,t(s,C),b||p||(b=!0,O||(O=!0,F()))),C},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(C){var z=o;return function(){var D=o;o=z;try{return C.apply(this,arguments)}finally{o=D}}}})(ro);fo.exports=ro;var Km=fo.exports,oo={exports:{}},ze={};/**
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 Jm=v;function ho(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Gt(){}var Ae={d:{f:Gt,r:function(){throw Error(ho(522))},D:Gt,C:Gt,L:Gt,m:Gt,X:Gt,S:Gt,M:Gt},p:0,findDOMNode:null},km=Symbol.for("react.portal");function $m(e,t,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:km,key:a==null?null:""+a,children:e,containerInfo:t,implementation:l}}var Xa=Jm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Fu(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ze.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ae;ze.createPortal=function(e,t){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ho(299));return $m(e,t,null,l)};ze.flushSync=function(e){var t=Xa.T,l=Ae.p;try{if(Xa.T=null,Ae.p=2,e)return e()}finally{Xa.T=t,Ae.p=l,Ae.d.f()}};ze.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ae.d.C(e,t))};ze.prefetchDNS=function(e){typeof e=="string"&&Ae.d.D(e)};ze.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var l=t.as,a=Fu(l,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,u=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;l==="style"?Ae.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:n,fetchPriority:u}):l==="script"&&Ae.d.X(e,{crossOrigin:a,integrity:n,fetchPriority:u,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ze.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var l=Fu(t.as,t.crossOrigin);Ae.d.M(e,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ae.d.M(e)};ze.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var l=t.as,a=Fu(l,t.crossOrigin);Ae.d.L(e,l,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ze.preloadModule=function(e,t){if(typeof e=="string")if(t){var l=Fu(t.as,t.crossOrigin);Ae.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ae.d.m(e)};ze.requestFormReset=function(e){Ae.d.r(e)};ze.unstable_batchedUpdates=function(e,t){return e(t)};ze.useFormState=function(e,t,l){return Xa.H.useFormState(e,t,l)};ze.useFormStatus=function(){return Xa.H.useHostTransitionStatus()};ze.version="19.2.7";function mo(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mo)}catch(e){console.error(e)}}mo(),oo.exports=ze;var Wm=oo.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 he=Km,yo=v,Fm=Wm;function j(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vo(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bn(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function po(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 go(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 pf(e){if(bn(e)!==e)throw Error(j(188))}function Im(e){var t=e.alternate;if(!t){if(t=bn(e),t===null)throw Error(j(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return pf(n),e;if(u===a)return pf(n),t;u=u.sibling}throw Error(j(188))}if(l.return!==a.return)l=n,a=u;else{for(var i=!1,c=n.child;c;){if(c===l){i=!0,l=n,a=u;break}if(c===a){i=!0,a=n,l=u;break}c=c.sibling}if(!i){for(c=u.child;c;){if(c===l){i=!0,l=u,a=n;break}if(c===a){i=!0,a=u,l=n;break}c=c.sibling}if(!i)throw Error(j(189))}}if(l.alternate!==a)throw Error(j(190))}if(l.tag!==3)throw Error(j(188));return l.stateNode.current===l?e:t}function So(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=So(e),t!==null)return t;e=e.sibling}return null}var te=Object.assign,Pm=Symbol.for("react.element"),Ln=Symbol.for("react.transitional.element"),wa=Symbol.for("react.portal"),Gl=Symbol.for("react.fragment"),bo=Symbol.for("react.strict_mode"),ic=Symbol.for("react.profiler"),xo=Symbol.for("react.consumer"),_t=Symbol.for("react.context"),ss=Symbol.for("react.forward_ref"),cc=Symbol.for("react.suspense"),sc=Symbol.for("react.suspense_list"),fs=Symbol.for("react.memo"),Xt=Symbol.for("react.lazy"),fc=Symbol.for("react.activity"),ey=Symbol.for("react.memo_cache_sentinel"),gf=Symbol.iterator;function _a(e){return e===null||typeof e!="object"?null:(e=gf&&e[gf]||e["@@iterator"],typeof e=="function"?e:null)}var ty=Symbol.for("react.client.reference");function rc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ty?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gl:return"Fragment";case ic:return"Profiler";case bo:return"StrictMode";case cc:return"Suspense";case sc:return"SuspenseList";case fc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case wa:return"Portal";case _t:return e.displayName||"Context";case xo:return(e._context.displayName||"Context")+".Consumer";case ss:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fs:return t=e.displayName||null,t!==null?t:rc(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return rc(e(t))}catch{}}return null}var La=Array.isArray,M=yo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=Fm.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bl={pending:!1,data:null,method:null,action:null},oc=[],Xl=-1;function vt(e){return{current:e}}function pe(e){0>Xl||(e.current=oc[Xl],oc[Xl]=null,Xl--)}function W(e,t){Xl++,oc[Xl]=e.current,e.current=t}var mt=vt(null),ln=vt(null),Pt=vt(null),gu=vt(null);function Su(e,t){switch(W(Pt,t),W(ln,e),W(mt,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Nr(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Nr(t),e=Gh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}pe(mt),W(mt,e)}function ia(){pe(mt),pe(ln),pe(Pt)}function dc(e){e.memoizedState!==null&&W(gu,e);var t=mt.current,l=Gh(t,e.type);t!==l&&(W(ln,e),W(mt,l))}function bu(e){ln.current===e&&(pe(mt),pe(ln)),gu.current===e&&(pe(gu),mn._currentValue=bl)}var bi,Sf;function vl(e){if(bi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);bi=t&&t[1]||"",Sf=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+bi+e+Sf}var xi=!1;function Ei(e,t){if(!e||xi)return"";xi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(p){var o=p}Reflect.construct(e,[],h)}else{try{h.call()}catch(p){o=p}e.call(h.prototype)}}else{try{throw Error()}catch(p){o=p}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(p){if(p&&o&&typeof p.stack=="string")return[p.stack,o.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),i=u[0],c=u[1];if(i&&c){var s=i.split(`
44
- `),r=c.split(`
45
- `);for(n=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;n<r.length&&!r[n].includes("DetermineComponentFrameRoot");)n++;if(a===s.length||n===r.length)for(a=s.length-1,n=r.length-1;1<=a&&0<=n&&s[a]!==r[n];)n--;for(;1<=a&&0<=n;a--,n--)if(s[a]!==r[n]){if(a!==1||n!==1)do if(a--,n--,0>n||s[a]!==r[n]){var d=`
46
- `+s[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=a&&0<=n);break}}}finally{xi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?vl(l):""}function ly(e,t){switch(e.tag){case 26:case 27:case 5:return vl(e.type);case 16:return vl("Lazy");case 13:return e.child!==t&&t!==null?vl("Suspense Fallback"):vl("Suspense");case 19:return vl("SuspenseList");case 0:case 15:return Ei(e.type,!1);case 11:return Ei(e.type.render,!1);case 1:return Ei(e.type,!0);case 31:return vl("Activity");default:return""}}function bf(e){try{var t="",l=null;do t+=ly(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var hc=Object.prototype.hasOwnProperty,rs=he.unstable_scheduleCallback,ji=he.unstable_cancelCallback,ay=he.unstable_shouldYield,ny=he.unstable_requestPaint,Ye=he.unstable_now,uy=he.unstable_getCurrentPriorityLevel,Eo=he.unstable_ImmediatePriority,jo=he.unstable_UserBlockingPriority,xu=he.unstable_NormalPriority,iy=he.unstable_LowPriority,No=he.unstable_IdlePriority,cy=he.log,sy=he.unstable_setDisableYieldValue,xn=null,qe=null;function kt(e){if(typeof cy=="function"&&sy(e),qe&&typeof qe.setStrictMode=="function")try{qe.setStrictMode(xn,e)}catch{}}var Ge=Math.clz32?Math.clz32:oy,fy=Math.log,ry=Math.LN2;function oy(e){return e>>>=0,e===0?32:31-(fy(e)/ry|0)|0}var Yn=256,qn=262144,Gn=4194304;function pl(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 Iu(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var c=a&134217727;return c!==0?(a=c&~u,a!==0?n=pl(a):(i&=c,i!==0?n=pl(i):l||(l=c&~e,l!==0&&(n=pl(l))))):(c=a&~u,c!==0?n=pl(c):i!==0?n=pl(i):l||(l=a&~e,l!==0&&(n=pl(l)))),n===0?0:t!==0&&t!==n&&!(t&u)&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function En(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function dy(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 To(){var e=Gn;return Gn<<=1,!(Gn&62914560)&&(Gn=4194304),e}function Ni(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function jn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hy(e,t,l,a,n,u){var i=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var c=e.entanglements,s=e.expirationTimes,r=e.hiddenUpdates;for(l=i&~l;0<l;){var d=31-Ge(l),h=1<<d;c[d]=0,s[d]=-1;var o=r[d];if(o!==null)for(r[d]=null,d=0;d<o.length;d++){var p=o[d];p!==null&&(p.lane&=-536870913)}l&=~h}a!==0&&Ao(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function Ao(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Ge(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function zo(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Ge(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function _o(e,t){var l=t&-t;return l=l&42?1:os(l),l&(e.suspendedLanes|t)?0:l}function os(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 ds(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Co(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Ih(e.type))}function xf(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var dl=Math.random().toString(36).slice(2),xe="__reactFiber$"+dl,Me="__reactProps$"+dl,ga="__reactContainer$"+dl,mc="__reactEvents$"+dl,my="__reactListeners$"+dl,yy="__reactHandles$"+dl,Ef="__reactResources$"+dl,Nn="__reactMarker$"+dl;function hs(e){delete e[xe],delete e[Me],delete e[mc],delete e[my],delete e[yy]}function Ql(e){var t=e[xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ga]||l[xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Cr(e);e!==null;){if(l=e[xe])return l;e=Cr(e)}return t}e=l,l=e.parentNode}return null}function Sa(e){if(e=e[xe]||e[ga]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(j(33))}function Pl(e){var t=e[Ef];return t||(t=e[Ef]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ve(e){e[Nn]=!0}var Ro=new Set,Oo={};function Rl(e,t){ca(e,t),ca(e+"Capture",t)}function ca(e,t){for(Oo[e]=t,e=0;e<t.length;e++)Ro.add(t[e])}var vy=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]*$"),jf={},Nf={};function py(e){return hc.call(Nf,e)?!0:hc.call(jf,e)?!1:vy.test(e)?Nf[e]=!0:(jf[e]=!0,!1)}function tu(e,t,l){if(py(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Xn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function bt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function ke(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Do(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gy(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){l=""+i,u.call(this,i)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(i){l=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yc(e){if(!e._valueTracker){var t=Do(e)?"checked":"value";e._valueTracker=gy(e,t,""+e[t])}}function Mo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Do(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Eu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Sy=/[\n"\\]/g;function Fe(e){return e.replace(Sy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vc(e,t,l,a,n,u,i,c){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ke(t)):e.value!==""+ke(t)&&(e.value=""+ke(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?pc(e,i,ke(t)):l!=null?pc(e,i,ke(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.name=""+ke(c):e.removeAttribute("name")}function Uo(e,t,l,a,n,u,i,c){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||l!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){yc(e);return}l=l!=null?""+ke(l):"",t=t!=null?""+ke(t):l,c||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=c?e.checked:!!a,e.defaultChecked=!!a,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),yc(e)}function pc(e,t,l){t==="number"&&Eu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ea(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+ke(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Ho(e,t,l){if(t!=null&&(t=""+ke(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+ke(l):""}function Bo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(j(92));if(La(a)){if(1<a.length)throw Error(j(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=ke(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),yc(e)}function sa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var by=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 Tf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||by.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function wo(e,t,l){if(t!=null&&typeof t!="object")throw Error(j(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Tf(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Tf(e,u,t[u])}function ms(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 xy=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"]]),Ey=/^[\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 lu(e){return Ey.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ct(){}var gc=null;function ys(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zl=null,ta=null;function Af(e){var t=Sa(e);if(t&&(e=t.stateNode)){var l=e[Me]||null;e:switch(e=t.stateNode,t.type){case"input":if(vc(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Fe(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[Me]||null;if(!n)throw Error(j(90));vc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Mo(a)}break e;case"textarea":Ho(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ea(e,!!l.multiple,t,!1)}}}var Ti=!1;function Lo(e,t,l){if(Ti)return e(t,l);Ti=!0;try{var a=e(t);return a}finally{if(Ti=!1,(Zl!==null||ta!==null)&&(ri(),Zl&&(t=Zl,e=ta,ta=Zl=null,Af(t),e)))for(t=0;t<e.length;t++)Af(e[t])}}function an(e,t){var l=e.stateNode;if(l===null)return null;var a=l[Me]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(j(231,t,typeof l));return l}var Ut=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sc=!1;if(Ut)try{var Ca={};Object.defineProperty(Ca,"passive",{get:function(){Sc=!0}}),window.addEventListener("test",Ca,Ca),window.removeEventListener("test",Ca,Ca)}catch{Sc=!1}var $t=null,vs=null,au=null;function Yo(){if(au)return au;var e,t=vs,l=t.length,a,n="value"in $t?$t.value:$t.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var i=l-e;for(a=1;a<=i&&t[l-a]===n[u-a];a++);return au=n.slice(e,1<a?1-a:void 0)}function nu(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 Qn(){return!0}function zf(){return!1}function Ue(e){function t(l,a,n,u,i){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=i,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(l=e[c],this[c]=l?l(u):u[c]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Qn:zf,this.isPropagationStopped=zf,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Qn)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Qn)},persist:function(){},isPersistent:Qn}),t}var Ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pu=Ue(Ol),Tn=te({},Ol,{view:0,detail:0}),jy=Ue(Tn),Ai,zi,Ra,ei=te({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ps,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!==Ra&&(Ra&&e.type==="mousemove"?(Ai=e.screenX-Ra.screenX,zi=e.screenY-Ra.screenY):zi=Ai=0,Ra=e),Ai)},movementY:function(e){return"movementY"in e?e.movementY:zi}}),_f=Ue(ei),Ny=te({},ei,{dataTransfer:0}),Ty=Ue(Ny),Ay=te({},Tn,{relatedTarget:0}),_i=Ue(Ay),zy=te({},Ol,{animationName:0,elapsedTime:0,pseudoElement:0}),_y=Ue(zy),Cy=te({},Ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ry=Ue(Cy),Oy=te({},Ol,{data:0}),Cf=Ue(Oy),Dy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},My={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"},Uy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uy[e])?!!t[e]:!1}function ps(){return Hy}var By=te({},Tn,{key:function(e){if(e.key){var t=Dy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?My[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ps,charCode:function(e){return e.type==="keypress"?nu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wy=Ue(By),Ly=te({},ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rf=Ue(Ly),Yy=te({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ps}),qy=Ue(Yy),Gy=te({},Ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xy=Ue(Gy),Qy=te({},ei,{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}),Zy=Ue(Qy),Vy=te({},Ol,{newState:0,oldState:0}),Ky=Ue(Vy),Jy=[9,13,27,32],gs=Ut&&"CompositionEvent"in window,Qa=null;Ut&&"documentMode"in document&&(Qa=document.documentMode);var ky=Ut&&"TextEvent"in window&&!Qa,qo=Ut&&(!gs||Qa&&8<Qa&&11>=Qa),Of=" ",Df=!1;function Go(e,t){switch(e){case"keyup":return Jy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function $y(e,t){switch(e){case"compositionend":return Xo(t);case"keypress":return t.which!==32?null:(Df=!0,Of);case"textInput":return e=t.data,e===Of&&Df?null:e;default:return null}}function Wy(e,t){if(Vl)return e==="compositionend"||!gs&&Go(e,t)?(e=Yo(),au=vs=$t=null,Vl=!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 qo&&t.locale!=="ko"?null:t.data;default:return null}}var Fy={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 Mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fy[e.type]:t==="textarea"}function Qo(e,t,l,a){Zl?ta?ta.push(a):ta=[a]:Zl=a,t=qu(t,"onChange"),0<t.length&&(l=new Pu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Za=null,nn=null;function Iy(e){Lh(e,0)}function ti(e){var t=Ya(e);if(Mo(t))return e}function Uf(e,t){if(e==="change")return t}var Zo=!1;if(Ut){var Ci;if(Ut){var Ri="oninput"in document;if(!Ri){var Hf=document.createElement("div");Hf.setAttribute("oninput","return;"),Ri=typeof Hf.oninput=="function"}Ci=Ri}else Ci=!1;Zo=Ci&&(!document.documentMode||9<document.documentMode)}function Bf(){Za&&(Za.detachEvent("onpropertychange",Vo),nn=Za=null)}function Vo(e){if(e.propertyName==="value"&&ti(nn)){var t=[];Qo(t,nn,e,ys(e)),Lo(Iy,t)}}function Py(e,t,l){e==="focusin"?(Bf(),Za=t,nn=l,Za.attachEvent("onpropertychange",Vo)):e==="focusout"&&Bf()}function ev(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ti(nn)}function tv(e,t){if(e==="click")return ti(t)}function lv(e,t){if(e==="input"||e==="change")return ti(t)}function av(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:av;function un(e,t){if(Qe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!hc.call(t,n)||!Qe(e[n],t[n]))return!1}return!0}function wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lf(e,t){var l=wf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=wf(l)}}function Ko(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ko(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Jo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Eu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Eu(e.document)}return t}function Ss(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 nv=Ut&&"documentMode"in document&&11>=document.documentMode,Kl=null,bc=null,Va=null,xc=!1;function Yf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;xc||Kl==null||Kl!==Eu(a)||(a=Kl,"selectionStart"in a&&Ss(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Va&&un(Va,a)||(Va=a,a=qu(bc,"onSelect"),0<a.length&&(t=new Pu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Kl)))}function yl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Jl={animationend:yl("Animation","AnimationEnd"),animationiteration:yl("Animation","AnimationIteration"),animationstart:yl("Animation","AnimationStart"),transitionrun:yl("Transition","TransitionRun"),transitionstart:yl("Transition","TransitionStart"),transitioncancel:yl("Transition","TransitionCancel"),transitionend:yl("Transition","TransitionEnd")},Oi={},ko={};Ut&&(ko=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function Dl(e){if(Oi[e])return Oi[e];if(!Jl[e])return e;var t=Jl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in ko)return Oi[e]=t[l];return e}var $o=Dl("animationend"),Wo=Dl("animationiteration"),Fo=Dl("animationstart"),uv=Dl("transitionrun"),iv=Dl("transitionstart"),cv=Dl("transitioncancel"),Io=Dl("transitionend"),Po=new Map,Ec="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ec.push("scrollEnd");function st(e,t){Po.set(e,t),Rl(t,[e])}var ju=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)},Je=[],kl=0,bs=0;function li(){for(var e=kl,t=bs=kl=0;t<e;){var l=Je[t];Je[t++]=null;var a=Je[t];Je[t++]=null;var n=Je[t];Je[t++]=null;var u=Je[t];if(Je[t++]=null,a!==null&&n!==null){var i=a.pending;i===null?n.next=n:(n.next=i.next,i.next=n),a.pending=n}u!==0&&ed(l,n,u)}}function ai(e,t,l,a){Je[kl++]=e,Je[kl++]=t,Je[kl++]=l,Je[kl++]=a,bs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function xs(e,t,l,a){return ai(e,t,l,a),Nu(e)}function Ml(e,t){return ai(e,null,null,t),Nu(e)}function ed(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,u=e.return;u!==null;)u.childLanes|=l,a=u.alternate,a!==null&&(a.childLanes|=l),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(n=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,n&&t!==null&&(n=31-Ge(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function Nu(e){if(50<en)throw en=0,Qc=null,Error(j(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function sv(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,t,l,a){return new sv(e,t,l,a)}function Es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ot(e,t){var l=e.alternate;return l===null?(l=we(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function td(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function uu(e,t,l,a,n,u){var i=0;if(a=e,typeof e=="function")Es(e)&&(i=1);else if(typeof e=="string")i=hp(e,l,mt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case fc:return e=we(31,l,t,n),e.elementType=fc,e.lanes=u,e;case Gl:return xl(l.children,n,u,t);case bo:i=8,n|=24;break;case ic:return e=we(12,l,t,n|2),e.elementType=ic,e.lanes=u,e;case cc:return e=we(13,l,t,n),e.elementType=cc,e.lanes=u,e;case sc:return e=we(19,l,t,n),e.elementType=sc,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _t:i=10;break e;case xo:i=9;break e;case ss:i=11;break e;case fs:i=14;break e;case Xt:i=16,a=null;break e}i=29,l=Error(j(130,e===null?"null":typeof e,"")),a=null}return t=we(i,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function xl(e,t,l,a){return e=we(7,e,a,t),e.lanes=l,e}function Di(e,t,l){return e=we(6,e,null,t),e.lanes=l,e}function ld(e){var t=we(18,null,null,0);return t.stateNode=e,t}function Mi(e,t,l){return t=we(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qf=new WeakMap;function Ie(e,t){if(typeof e=="object"&&e!==null){var l=qf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:bf(t)},qf.set(e,t),t)}return{value:e,source:t,stack:bf(t)}}var Wl=[],Fl=0,Tu=null,cn=0,$e=[],We=0,sl=null,ot=1,dt="";function Tt(e,t){Wl[Fl++]=cn,Wl[Fl++]=Tu,Tu=e,cn=t}function ad(e,t,l){$e[We++]=ot,$e[We++]=dt,$e[We++]=sl,sl=e;var a=ot;e=dt;var n=32-Ge(a)-1;a&=~(1<<n),l+=1;var u=32-Ge(t)+n;if(30<u){var i=n-n%5;u=(a&(1<<i)-1).toString(32),a>>=i,n-=i,ot=1<<32-Ge(t)+n|l<<n|a,dt=u+e}else ot=1<<u|l<<n|a,dt=e}function js(e){e.return!==null&&(Tt(e,1),ad(e,1,0))}function Ns(e){for(;e===Tu;)Tu=Wl[--Fl],Wl[Fl]=null,cn=Wl[--Fl],Wl[Fl]=null;for(;e===sl;)sl=$e[--We],$e[We]=null,dt=$e[--We],$e[We]=null,ot=$e[--We],$e[We]=null}function nd(e,t){$e[We++]=ot,$e[We++]=dt,$e[We++]=sl,ot=t.id,dt=t.overflow,sl=e}var Ee=null,P=null,G=!1,el=null,Pe=!1,jc=Error(j(519));function fl(e){var t=Error(j(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw sn(Ie(t,e)),jc}function Gf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[xe]=e,t[Me]=a,l){case"dialog":w("cancel",t),w("close",t);break;case"iframe":case"object":case"embed":w("load",t);break;case"video":case"audio":for(l=0;l<dn.length;l++)w(dn[l],t);break;case"source":w("error",t);break;case"img":case"image":case"link":w("error",t),w("load",t);break;case"details":w("toggle",t);break;case"input":w("invalid",t),Uo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":w("invalid",t);break;case"textarea":w("invalid",t),Bo(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||qh(t.textContent,l)?(a.popover!=null&&(w("beforetoggle",t),w("toggle",t)),a.onScroll!=null&&w("scroll",t),a.onScrollEnd!=null&&w("scrollend",t),a.onClick!=null&&(t.onclick=Ct),t=!0):t=!1,t||fl(e,!0)}function Xf(e){for(Ee=e.return;Ee;)switch(Ee.tag){case 5:case 31:case 13:Pe=!1;return;case 27:case 3:Pe=!0;return;default:Ee=Ee.return}}function Bl(e){if(e!==Ee)return!1;if(!G)return Xf(e),G=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||kc(e.type,e.memoizedProps)),l=!l),l&&P&&fl(e),Xf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));P=_r(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));P=_r(e)}else t===27?(t=P,hl(e.type)?(e=Ic,Ic=null,P=e):P=t):P=Ee?tt(e.stateNode.nextSibling):null;return!0}function Tl(){P=Ee=null,G=!1}function Ui(){var e=el;return e!==null&&(Oe===null?Oe=e:Oe.push.apply(Oe,e),el=null),e}function sn(e){el===null?el=[e]:el.push(e)}var Nc=vt(null),Ul=null,Rt=null;function Zt(e,t,l){W(Nc,t._currentValue),t._currentValue=l}function Dt(e){e._currentValue=Nc.current,pe(Nc)}function Tc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Ac(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var i=n.child;u=u.firstContext;e:for(;u!==null;){var c=u;u=n;for(var s=0;s<t.length;s++)if(c.context===t[s]){u.lanes|=l,c=u.alternate,c!==null&&(c.lanes|=l),Tc(u.return,l,e),a||(i=null);break e}u=c.next}}else if(n.tag===18){if(i=n.return,i===null)throw Error(j(341));i.lanes|=l,u=i.alternate,u!==null&&(u.lanes|=l),Tc(i,l,e),i=null}else i=n.child;if(i!==null)i.return=n;else for(i=n;i!==null;){if(i===e){i=null;break}if(n=i.sibling,n!==null){n.return=i.return,i=n;break}i=i.return}n=i}}function ba(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if(n.flags&524288)u=!0;else if(n.flags&262144)break}if(n.tag===10){var i=n.alternate;if(i===null)throw Error(j(387));if(i=i.memoizedProps,i!==null){var c=n.type;Qe(n.pendingProps.value,i.value)||(e!==null?e.push(c):e=[c])}}else if(n===gu.current){if(i=n.alternate,i===null)throw Error(j(387));i.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(mn):e=[mn])}n=n.return}e!==null&&Ac(t,e,l,a),t.flags|=262144}function Au(e){for(e=e.firstContext;e!==null;){if(!Qe(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Al(e){Ul=e,Rt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function je(e){return ud(Ul,e)}function Zn(e,t){return Ul===null&&Al(e),ud(e,t)}function ud(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Rt===null){if(e===null)throw Error(j(308));Rt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rt=Rt.next=t;return l}var fv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},rv=he.unstable_scheduleCallback,ov=he.unstable_NormalPriority,re={$$typeof:_t,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ts(){return{controller:new fv,data:new Map,refCount:0}}function An(e){e.refCount--,e.refCount===0&&rv(ov,function(){e.controller.abort()})}var Ka=null,zc=0,fa=0,la=null;function dv(e,t){if(Ka===null){var l=Ka=[];zc=0,fa=Ws(),la={status:"pending",value:void 0,then:function(a){l.push(a)}}}return zc++,t.then(Qf,Qf),t}function Qf(){if(--zc===0&&Ka!==null){la!==null&&(la.status="fulfilled");var e=Ka;Ka=null,fa=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function hv(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Zf=M.S;M.S=function(e,t){Sh=Ye(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&dv(e,t),Zf!==null&&Zf(e,t)};var El=vt(null);function As(){var e=El.current;return e!==null?e:k.pooledCache}function iu(e,t){t===null?W(El,El.current):W(El,t.pool)}function id(){var e=As();return e===null?null:{parent:re._currentValue,pool:e}}var xa=Error(j(460)),zs=Error(j(474)),ni=Error(j(542)),zu={then:function(){}};function Vf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function cd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Ct,Ct),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e;default:if(typeof t.status=="string")t.then(Ct,Ct);else{if(e=k,e!==null&&100<e.shellSuspendCounter)throw Error(j(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e}throw jl=t,xa}}function gl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(jl=l,xa):l}}var jl=null;function Kf(){if(jl===null)throw Error(j(459));var e=jl;return jl=null,e}function Jf(e){if(e===xa||e===ni)throw Error(j(483))}var aa=null,fn=0;function Vn(e){var t=fn;return fn+=1,aa===null&&(aa=[]),cd(aa,e,t)}function Oa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kn(e,t){throw t.$$typeof===Pm?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sd(e){function t(m,y){if(e){var g=m.deletions;g===null?(m.deletions=[y],m.flags|=16):g.push(y)}}function l(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function a(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function n(m,y){return m=Ot(m,y),m.index=0,m.sibling=null,m}function u(m,y,g){return m.index=g,e?(g=m.alternate,g!==null?(g=g.index,g<y?(m.flags|=67108866,y):g):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function i(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function c(m,y,g,S){return y===null||y.tag!==6?(y=Di(g,m.mode,S),y.return=m,y):(y=n(y,g),y.return=m,y)}function s(m,y,g,S){var T=g.type;return T===Gl?d(m,y,g.props.children,S,g.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&gl(T)===y.type)?(y=n(y,g.props),Oa(y,g),y.return=m,y):(y=uu(g.type,g.key,g.props,null,m.mode,S),Oa(y,g),y.return=m,y)}function r(m,y,g,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=Mi(g,m.mode,S),y.return=m,y):(y=n(y,g.children||[]),y.return=m,y)}function d(m,y,g,S,T){return y===null||y.tag!==7?(y=xl(g,m.mode,S,T),y.return=m,y):(y=n(y,g),y.return=m,y)}function h(m,y,g){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Di(""+y,m.mode,g),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ln:return g=uu(y.type,y.key,y.props,null,m.mode,g),Oa(g,y),g.return=m,g;case wa:return y=Mi(y,m.mode,g),y.return=m,y;case Xt:return y=gl(y),h(m,y,g)}if(La(y)||_a(y))return y=xl(y,m.mode,g,null),y.return=m,y;if(typeof y.then=="function")return h(m,Vn(y),g);if(y.$$typeof===_t)return h(m,Zn(m,y),g);Kn(m,y)}return null}function o(m,y,g,S){var T=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return T!==null?null:c(m,y,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ln:return g.key===T?s(m,y,g,S):null;case wa:return g.key===T?r(m,y,g,S):null;case Xt:return g=gl(g),o(m,y,g,S)}if(La(g)||_a(g))return T!==null?null:d(m,y,g,S,null);if(typeof g.then=="function")return o(m,y,Vn(g),S);if(g.$$typeof===_t)return o(m,y,Zn(m,g),S);Kn(m,g)}return null}function p(m,y,g,S,T){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(g)||null,c(y,m,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ln:return m=m.get(S.key===null?g:S.key)||null,s(y,m,S,T);case wa:return m=m.get(S.key===null?g:S.key)||null,r(y,m,S,T);case Xt:return S=gl(S),p(m,y,g,S,T)}if(La(S)||_a(S))return m=m.get(g)||null,d(y,m,S,T,null);if(typeof S.then=="function")return p(m,y,g,Vn(S),T);if(S.$$typeof===_t)return p(m,y,g,Zn(y,S),T);Kn(y,S)}return null}function b(m,y,g,S){for(var T=null,O=null,_=y,N=y=0,R=null;_!==null&&N<g.length;N++){_.index>N?(R=_,_=null):R=_.sibling;var A=o(m,_,g[N],S);if(A===null){_===null&&(_=R);break}e&&_&&A.alternate===null&&t(m,_),y=u(A,y,N),O===null?T=A:O.sibling=A,O=A,_=R}if(N===g.length)return l(m,_),G&&Tt(m,N),T;if(_===null){for(;N<g.length;N++)_=h(m,g[N],S),_!==null&&(y=u(_,y,N),O===null?T=_:O.sibling=_,O=_);return G&&Tt(m,N),T}for(_=a(_);N<g.length;N++)R=p(_,m,N,g[N],S),R!==null&&(e&&R.alternate!==null&&_.delete(R.key===null?N:R.key),y=u(R,y,N),O===null?T=R:O.sibling=R,O=R);return e&&_.forEach(function(q){return t(m,q)}),G&&Tt(m,N),T}function x(m,y,g,S){if(g==null)throw Error(j(151));for(var T=null,O=null,_=y,N=y=0,R=null,A=g.next();_!==null&&!A.done;N++,A=g.next()){_.index>N?(R=_,_=null):R=_.sibling;var q=o(m,_,A.value,S);if(q===null){_===null&&(_=R);break}e&&_&&q.alternate===null&&t(m,_),y=u(q,y,N),O===null?T=q:O.sibling=q,O=q,_=R}if(A.done)return l(m,_),G&&Tt(m,N),T;if(_===null){for(;!A.done;N++,A=g.next())A=h(m,A.value,S),A!==null&&(y=u(A,y,N),O===null?T=A:O.sibling=A,O=A);return G&&Tt(m,N),T}for(_=a(_);!A.done;N++,A=g.next())A=p(_,m,N,A.value,S),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?N:A.key),y=u(A,y,N),O===null?T=A:O.sibling=A,O=A);return e&&_.forEach(function(F){return t(m,F)}),G&&Tt(m,N),T}function E(m,y,g,S){if(typeof g=="object"&&g!==null&&g.type===Gl&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ln:e:{for(var T=g.key;y!==null;){if(y.key===T){if(T=g.type,T===Gl){if(y.tag===7){l(m,y.sibling),S=n(y,g.props.children),S.return=m,m=S;break e}}else if(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&gl(T)===y.type){l(m,y.sibling),S=n(y,g.props),Oa(S,g),S.return=m,m=S;break e}l(m,y);break}else t(m,y);y=y.sibling}g.type===Gl?(S=xl(g.props.children,m.mode,S,g.key),S.return=m,m=S):(S=uu(g.type,g.key,g.props,null,m.mode,S),Oa(S,g),S.return=m,m=S)}return i(m);case wa:e:{for(T=g.key;y!==null;){if(y.key===T)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){l(m,y.sibling),S=n(y,g.children||[]),S.return=m,m=S;break e}else{l(m,y);break}else t(m,y);y=y.sibling}S=Mi(g,m.mode,S),S.return=m,m=S}return i(m);case Xt:return g=gl(g),E(m,y,g,S)}if(La(g))return b(m,y,g,S);if(_a(g)){if(T=_a(g),typeof T!="function")throw Error(j(150));return g=T.call(g),x(m,y,g,S)}if(typeof g.then=="function")return E(m,y,Vn(g),S);if(g.$$typeof===_t)return E(m,y,Zn(m,g),S);Kn(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,y!==null&&y.tag===6?(l(m,y.sibling),S=n(y,g),S.return=m,m=S):(l(m,y),S=Di(g,m.mode,S),S.return=m,m=S),i(m)):l(m,y)}return function(m,y,g,S){try{fn=0;var T=E(m,y,g,S);return aa=null,T}catch(_){if(_===xa||_===ni)throw _;var O=we(29,_,null,m.mode);return O.lanes=S,O.return=m,O}finally{}}}var zl=sd(!0),fd=sd(!1),Qt=!1;function _s(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _c(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 tl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ll(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,X&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Nu(e),ed(e,null,l),t}return ai(e,a,t,l),Nu(e)}function Ja(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,zo(e,l)}}function Hi(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var i={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=i:u=u.next=i,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Cc=!1;function ka(){if(Cc){var e=la;if(e!==null)throw e}}function $a(e,t,l,a){Cc=!1;var n=e.updateQueue;Qt=!1;var u=n.firstBaseUpdate,i=n.lastBaseUpdate,c=n.shared.pending;if(c!==null){n.shared.pending=null;var s=c,r=s.next;s.next=null,i===null?u=r:i.next=r,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,c=d.lastBaseUpdate,c!==i&&(c===null?d.firstBaseUpdate=r:c.next=r,d.lastBaseUpdate=s))}if(u!==null){var h=n.baseState;i=0,d=r=s=null,c=u;do{var o=c.lane&-536870913,p=o!==c.lane;if(p?(Y&o)===o:(a&o)===o){o!==0&&o===fa&&(Cc=!0),d!==null&&(d=d.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var b=e,x=c;o=t;var E=l;switch(x.tag){case 1:if(b=x.payload,typeof b=="function"){h=b.call(E,h,o);break e}h=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=x.payload,o=typeof b=="function"?b.call(E,h,o):b,o==null)break e;h=te({},h,o);break e;case 2:Qt=!0}}o=c.callback,o!==null&&(e.flags|=64,p&&(e.flags|=8192),p=n.callbacks,p===null?n.callbacks=[o]:p.push(o))}else p={lane:o,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(r=d=p,s=h):d=d.next=p,i|=o;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;p=c,c=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}}while(!0);d===null&&(s=h),n.baseState=s,n.firstBaseUpdate=r,n.lastBaseUpdate=d,u===null&&(n.shared.lanes=0),ol|=i,e.lanes=i,e.memoizedState=h}}function rd(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function od(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)rd(l[e],t)}var ra=vt(null),_u=vt(0);function kf(e,t){e=Lt,W(_u,e),W(ra,t),Lt=e|t.baseLanes}function Rc(){W(_u,Lt),W(ra,ra.current)}function Cs(){Lt=_u.current,pe(ra),pe(_u)}var Ze=vt(null),et=null;function Vt(e){var t=e.alternate;W(ie,ie.current&1),W(Ze,e),et===null&&(t===null||ra.current!==null||t.memoizedState!==null)&&(et=e)}function Oc(e){W(ie,ie.current),W(Ze,e),et===null&&(et=e)}function dd(e){e.tag===22?(W(ie,ie.current),W(Ze,e),et===null&&(et=e)):Kt()}function Kt(){W(ie,ie.current),W(Ze,Ze.current)}function Be(e){pe(Ze),et===e&&(et=null),pe(ie)}var ie=vt(0);function Cu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Wc(l)||Fc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)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 Ht=0,H=null,J=null,se=null,Ru=!1,na=!1,_l=!1,Ou=0,rn=0,ua=null,mv=0;function ne(){throw Error(j(321))}function Rs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Qe(e[l],t[l]))return!1;return!0}function Os(e,t,l,a,n,u){return Ht=u,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Qd:Xs,_l=!1,u=l(a,n),_l=!1,na&&(u=md(t,l,a,n)),hd(e),u}function hd(e){M.H=on;var t=J!==null&&J.next!==null;if(Ht=0,se=J=H=null,Ru=!1,rn=0,ua=null,t)throw Error(j(300));e===null||oe||(e=e.dependencies,e!==null&&Au(e)&&(oe=!0))}function md(e,t,l,a){H=e;var n=0;do{if(na&&(ua=null),rn=0,na=!1,25<=n)throw Error(j(301));if(n+=1,se=J=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=Zd,u=t(l,a)}while(na);return u}function yv(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?zn(t):t,e=e.useState()[0],(J!==null?J.memoizedState:null)!==e&&(H.flags|=1024),t}function Ds(){var e=Ou!==0;return Ou=0,e}function Ms(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Us(e){if(Ru){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ru=!1}Ht=0,se=J=H=null,na=!1,rn=Ou=0,ua=null}function Te(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?H.memoizedState=se=e:se=se.next=e,se}function ce(){if(J===null){var e=H.alternate;e=e!==null?e.memoizedState:null}else e=J.next;var t=se===null?H.memoizedState:se.next;if(t!==null)se=t,J=e;else{if(e===null)throw H.alternate===null?Error(j(467)):Error(j(310));J=e,e={memoizedState:J.memoizedState,baseState:J.baseState,baseQueue:J.baseQueue,queue:J.queue,next:null},se===null?H.memoizedState=se=e:se=se.next=e}return se}function ui(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zn(e){var t=rn;return rn+=1,ua===null&&(ua=[]),e=cd(ua,e,t),t=H,(se===null?t.memoizedState:se.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Qd:Xs),e}function ii(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zn(e);if(e.$$typeof===_t)return je(e)}throw Error(j(438,String(e)))}function Hs(e){var t=null,l=H.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=H.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=ui(),H.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=ey;return t.index++,l}function Bt(e,t){return typeof t=="function"?t(e):t}function cu(e){var t=ce();return Bs(t,J,e)}function Bs(e,t,l){var a=e.queue;if(a===null)throw Error(j(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var i=n.next;n.next=u.next,u.next=i}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var c=i=null,s=null,r=t,d=!1;do{var h=r.lane&-536870913;if(h!==r.lane?(Y&h)===h:(Ht&h)===h){var o=r.revertLane;if(o===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null}),h===fa&&(d=!0);else if((Ht&o)===o){r=r.next,o===fa&&(d=!0);continue}else h={lane:0,revertLane:r.revertLane,gesture:null,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},s===null?(c=s=h,i=u):s=s.next=h,H.lanes|=o,ol|=o;h=r.action,_l&&l(u,h),u=r.hasEagerState?r.eagerState:l(u,h)}else o={lane:h,revertLane:r.revertLane,gesture:r.gesture,action:r.action,hasEagerState:r.hasEagerState,eagerState:r.eagerState,next:null},s===null?(c=s=o,i=u):s=s.next=o,H.lanes|=h,ol|=h;r=r.next}while(r!==null&&r!==t);if(s===null?i=u:s.next=c,!Qe(u,e.memoizedState)&&(oe=!0,d&&(l=la,l!==null)))throw l;e.memoizedState=u,e.baseState=i,e.baseQueue=s,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Bi(e){var t=ce(),l=t.queue;if(l===null)throw Error(j(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var i=n=n.next;do u=e(u,i.action),i=i.next;while(i!==n);Qe(u,t.memoizedState)||(oe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function yd(e,t,l){var a=H,n=ce(),u=G;if(u){if(l===void 0)throw Error(j(407));l=l()}else l=t();var i=!Qe((J||n).memoizedState,l);if(i&&(n.memoizedState=l,oe=!0),n=n.queue,ws(gd.bind(null,a,n,e),[e]),n.getSnapshot!==t||i||se!==null&&se.memoizedState.tag&1){if(a.flags|=2048,oa(9,{destroy:void 0},pd.bind(null,a,n,l,t),null),k===null)throw Error(j(349));u||Ht&127||vd(a,t,l)}return l}function vd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=H.updateQueue,t===null?(t=ui(),H.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function pd(e,t,l,a){t.value=l,t.getSnapshot=a,Sd(t)&&bd(e)}function gd(e,t,l){return l(function(){Sd(t)&&bd(e)})}function Sd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qe(e,l)}catch{return!0}}function bd(e){var t=Ml(e,2);t!==null&&De(t,e,2)}function Dc(e){var t=Te();if(typeof e=="function"){var l=e;if(e=l(),_l){kt(!0);try{l()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bt,lastRenderedState:e},t}function xd(e,t,l,a){return e.baseState=l,Bs(e,J,typeof a=="function"?a:Bt)}function vv(e,t,l,a,n){if(si(e))throw Error(j(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(i){u.listeners.push(i)}};M.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Ed(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Ed(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=M.T,i={};M.T=i;try{var c=l(n,a),s=M.S;s!==null&&s(i,c),$f(e,t,c)}catch(r){Mc(e,t,r)}finally{u!==null&&i.types!==null&&(u.types=i.types),M.T=u}}else try{u=l(n,a),$f(e,t,u)}catch(r){Mc(e,t,r)}}function $f(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Wf(e,t,a)},function(a){return Mc(e,t,a)}):Wf(e,t,l)}function Wf(e,t,l){t.status="fulfilled",t.value=l,jd(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Ed(e,l)))}function Mc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,jd(t),t=t.next;while(t!==a)}e.action=null}function jd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Nd(e,t){return t}function Ff(e,t){if(G){var l=k.formState;if(l!==null){e:{var a=H;if(G){if(P){t:{for(var n=P,u=Pe;n.nodeType!==8;){if(!u){n=null;break t}if(n=tt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){P=tt(n.nextSibling),a=n.data==="F!";break e}}fl(a)}a=!1}a&&(t=l[0])}}return l=Te(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nd,lastRenderedState:t},l.queue=a,l=qd.bind(null,H,a),a.dispatch=l,a=Dc(!1),u=Gs.bind(null,H,!1,a.queue),a=Te(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=vv.bind(null,H,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function If(e){var t=ce();return Td(t,J,e)}function Td(e,t,l){if(t=Bs(e,t,Nd)[0],e=cu(Bt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=zn(t)}catch(i){throw i===xa?ni:i}else a=t;t=ce();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(H.flags|=2048,oa(9,{destroy:void 0},pv.bind(null,n,l),null)),[a,u,e]}function pv(e,t){e.action=t}function Pf(e){var t=ce(),l=J;if(l!==null)return Td(t,l,e);ce(),t=t.memoizedState,l=ce();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function oa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=H.updateQueue,t===null&&(t=ui(),H.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function Ad(){return ce().memoizedState}function su(e,t,l,a){var n=Te();H.flags|=e,n.memoizedState=oa(1|t,{destroy:void 0},l,a===void 0?null:a)}function ci(e,t,l,a){var n=ce();a=a===void 0?null:a;var u=n.memoizedState.inst;J!==null&&a!==null&&Rs(a,J.memoizedState.deps)?n.memoizedState=oa(t,u,l,a):(H.flags|=e,n.memoizedState=oa(1|t,u,l,a))}function er(e,t){su(8390656,8,e,t)}function ws(e,t){ci(2048,8,e,t)}function gv(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=ui(),H.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function zd(e){var t=ce().memoizedState;return gv({ref:t,nextImpl:e}),function(){if(X&2)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function _d(e,t){return ci(4,2,e,t)}function Cd(e,t){return ci(4,4,e,t)}function Rd(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Od(e,t,l){l=l!=null?l.concat([e]):null,ci(4,4,Rd.bind(null,t,e),l)}function Ls(){}function Dd(e,t){var l=ce();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Rs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Md(e,t){var l=ce();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Rs(t,a[1]))return a[0];if(a=e(),_l){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[a,t],a}function Ys(e,t,l){return l===void 0||Ht&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=l,e=xh(),H.lanes|=e,ol|=e,l)}function Ud(e,t,l,a){return Qe(l,t)?l:ra.current!==null?(e=Ys(e,l,a),Qe(e,t)||(oe=!0),e):!(Ht&42)||Ht&1073741824&&!(Y&261930)?(oe=!0,e.memoizedState=l):(e=xh(),H.lanes|=e,ol|=e,t)}function Hd(e,t,l,a,n){var u=Q.p;Q.p=u!==0&&8>u?u:8;var i=M.T,c={};M.T=c,Gs(e,!1,t,l);try{var s=n(),r=M.S;if(r!==null&&r(c,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=hv(s,a);Wa(e,t,d,Xe(e))}else Wa(e,t,a,Xe(e))}catch(h){Wa(e,t,{then:function(){},status:"rejected",reason:h},Xe())}finally{Q.p=u,i!==null&&c.types!==null&&(i.types=c.types),M.T=i}}function Sv(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(j(476));var n=Bd(e).queue;Hd(e,n,t,bl,l===null?Sv:function(){return wd(e),l(a)})}function Bd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:bl,baseState:bl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bt,lastRenderedState:bl},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wd(e){var t=Bd(e);t.next===null&&(t=e.alternate.memoizedState),Wa(e,t.next.queue,{},Xe())}function qs(){return je(mn)}function Ld(){return ce().memoizedState}function Yd(){return ce().memoizedState}function bv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Xe();e=tl(l);var a=ll(t,e,l);a!==null&&(De(a,t,l),Ja(a,t,l)),t={cache:Ts()},e.payload=t;return}t=t.return}}function xv(e,t,l){var a=Xe();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},si(e)?Gd(t,l):(l=xs(e,t,l,a),l!==null&&(De(l,e,a),Xd(l,t,a)))}function qd(e,t,l){var a=Xe();Wa(e,t,l,a)}function Wa(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(si(e))Gd(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var i=t.lastRenderedState,c=u(i,l);if(n.hasEagerState=!0,n.eagerState=c,Qe(c,i))return ai(e,t,n,0),k===null&&li(),!1}catch{}finally{}if(l=xs(e,t,n,a),l!==null)return De(l,e,a),Xd(l,t,a),!0}return!1}function Gs(e,t,l,a){if(a={lane:2,revertLane:Ws(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},si(e)){if(t)throw Error(j(479))}else t=xs(e,l,a,2),t!==null&&De(t,e,2)}function si(e){var t=e.alternate;return e===H||t!==null&&t===H}function Gd(e,t){na=Ru=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Xd(e,t,l){if(l&4194048){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,zo(e,l)}}var on={readContext:je,use:ii,useCallback:ne,useContext:ne,useEffect:ne,useImperativeHandle:ne,useLayoutEffect:ne,useInsertionEffect:ne,useMemo:ne,useReducer:ne,useRef:ne,useState:ne,useDebugValue:ne,useDeferredValue:ne,useTransition:ne,useSyncExternalStore:ne,useId:ne,useHostTransitionStatus:ne,useFormState:ne,useActionState:ne,useOptimistic:ne,useMemoCache:ne,useCacheRefresh:ne};on.useEffectEvent=ne;var Qd={readContext:je,use:ii,useCallback:function(e,t){return Te().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:er,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,su(4194308,4,Rd.bind(null,t,e),l)},useLayoutEffect:function(e,t){return su(4194308,4,e,t)},useInsertionEffect:function(e,t){su(4,2,e,t)},useMemo:function(e,t){var l=Te();t=t===void 0?null:t;var a=e();if(_l){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Te();if(l!==void 0){var n=l(t);if(_l){kt(!0);try{l(t)}finally{kt(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=xv.bind(null,H,e),[a.memoizedState,e]},useRef:function(e){var t=Te();return e={current:e},t.memoizedState=e},useState:function(e){e=Dc(e);var t=e.queue,l=qd.bind(null,H,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ls,useDeferredValue:function(e,t){var l=Te();return Ys(l,e,t)},useTransition:function(){var e=Dc(!1);return e=Hd.bind(null,H,e.queue,!0,!1),Te().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=H,n=Te();if(G){if(l===void 0)throw Error(j(407));l=l()}else{if(l=t(),k===null)throw Error(j(349));Y&127||vd(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,er(gd.bind(null,a,u,e),[e]),a.flags|=2048,oa(9,{destroy:void 0},pd.bind(null,a,u,l,t),null),l},useId:function(){var e=Te(),t=k.identifierPrefix;if(G){var l=dt,a=ot;l=(a&~(1<<32-Ge(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ou++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=mv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:qs,useFormState:Ff,useActionState:Ff,useOptimistic:function(e){var t=Te();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Gs.bind(null,H,!0,l),l.dispatch=t,[e,t]},useMemoCache:Hs,useCacheRefresh:function(){return Te().memoizedState=bv.bind(null,H)},useEffectEvent:function(e){var t=Te(),l={impl:e};return t.memoizedState=l,function(){if(X&2)throw Error(j(440));return l.impl.apply(void 0,arguments)}}},Xs={readContext:je,use:ii,useCallback:Dd,useContext:je,useEffect:ws,useImperativeHandle:Od,useInsertionEffect:_d,useLayoutEffect:Cd,useMemo:Md,useReducer:cu,useRef:Ad,useState:function(){return cu(Bt)},useDebugValue:Ls,useDeferredValue:function(e,t){var l=ce();return Ud(l,J.memoizedState,e,t)},useTransition:function(){var e=cu(Bt)[0],t=ce().memoizedState;return[typeof e=="boolean"?e:zn(e),t]},useSyncExternalStore:yd,useId:Ld,useHostTransitionStatus:qs,useFormState:If,useActionState:If,useOptimistic:function(e,t){var l=ce();return xd(l,J,e,t)},useMemoCache:Hs,useCacheRefresh:Yd};Xs.useEffectEvent=zd;var Zd={readContext:je,use:ii,useCallback:Dd,useContext:je,useEffect:ws,useImperativeHandle:Od,useInsertionEffect:_d,useLayoutEffect:Cd,useMemo:Md,useReducer:Bi,useRef:Ad,useState:function(){return Bi(Bt)},useDebugValue:Ls,useDeferredValue:function(e,t){var l=ce();return J===null?Ys(l,e,t):Ud(l,J.memoizedState,e,t)},useTransition:function(){var e=Bi(Bt)[0],t=ce().memoizedState;return[typeof e=="boolean"?e:zn(e),t]},useSyncExternalStore:yd,useId:Ld,useHostTransitionStatus:qs,useFormState:Pf,useActionState:Pf,useOptimistic:function(e,t){var l=ce();return J!==null?xd(l,J,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Hs,useCacheRefresh:Yd};Zd.useEffectEvent=zd;function wi(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:te({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Hc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Xe(),n=tl(a);n.payload=t,l!=null&&(n.callback=l),t=ll(e,n,a),t!==null&&(De(t,e,a),Ja(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Xe(),n=tl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=ll(e,n,a),t!==null&&(De(t,e,a),Ja(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Xe(),a=tl(l);a.tag=2,t!=null&&(a.callback=t),t=ll(e,a,l),t!==null&&(De(t,e,l),Ja(t,e,l))}};function tr(e,t,l,a,n,u,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,i):t.prototype&&t.prototype.isPureReactComponent?!un(l,a)||!un(n,u):!0}function lr(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Hc.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=te({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Vd(e){ju(e)}function Kd(e){console.error(e)}function Jd(e){ju(e)}function Du(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ar(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Bc(e,t,l){return l=tl(l),l.tag=3,l.payload={element:null},l.callback=function(){Du(e,t)},l}function kd(e){return e=tl(e),e.tag=3,e}function $d(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var u=a.value;e.payload=function(){return n(u)},e.callback=function(){ar(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){ar(t,l,a),typeof n!="function"&&(al===null?al=new Set([this]):al.add(this));var c=a.stack;this.componentDidCatch(a.value,{componentStack:c!==null?c:""})})}function Ev(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ba(t,l,n,!0),l=Ze.current,l!==null){switch(l.tag){case 31:case 13:return et===null?wu():l.alternate===null&&ue===0&&(ue=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===zu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),ki(e,a,n)),!1;case 22:return l.flags|=65536,a===zu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),ki(e,a,n)),!1}throw Error(j(435,l.tag))}return ki(e,a,n),wu(),!1}if(G)return t=Ze.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==jc&&(e=Error(j(422),{cause:a}),sn(Ie(e,l)))):(a!==jc&&(t=Error(j(423),{cause:a}),sn(Ie(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Ie(a,l),n=Bc(e.stateNode,a,n),Hi(e,n),ue!==4&&(ue=2)),!1;var u=Error(j(520),{cause:a});if(u=Ie(u,l),Pa===null?Pa=[u]:Pa.push(u),ue!==4&&(ue=2),t===null)return!0;a=Ie(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=Bc(l.stateNode,a,e),Hi(l,e),!1;case 1:if(t=l.type,u=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(al===null||!al.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=kd(n),$d(n,e,l,a),Hi(l,n),!1}l=l.return}while(l!==null);return!1}var Qs=Error(j(461)),oe=!1;function be(e,t,l,a){t.child=e===null?fd(t,null,l,a):zl(t,e.child,l,a)}function nr(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}else i=a;return Al(t),a=Os(e,t,l,i,u,n),c=Ds(),e!==null&&!oe?(Ms(e,t,n),wt(e,t,n)):(G&&c&&js(t),t.flags|=1,be(e,t,a,n),t.child)}function ur(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!Es(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Wd(e,t,u,a,n)):(e=uu(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Zs(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:un,l(i,a)&&e.ref===t.ref)return wt(e,t,n)}return t.flags|=1,e=Ot(u,a),e.ref=t.ref,e.return=t,t.child=e}function Wd(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(un(u,a)&&e.ref===t.ref)if(oe=!1,t.pendingProps=a=u,Zs(e,n))e.flags&131072&&(oe=!0);else return t.lanes=e.lanes,wt(e,t,n)}return wc(e,t,l,a,n)}function Fd(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return ir(e,t,u,l,a)}if(l&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&iu(t,u!==null?u.cachePool:null),u!==null?kf(t,u):Rc(),dd(t);else return a=t.lanes=536870912,ir(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(iu(t,u.cachePool),kf(t,u),Kt(),t.memoizedState=null):(e!==null&&iu(t,null),Rc(),Kt());return be(e,t,n,l),t.child}function qa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ir(e,t,l,a,n){var u=As();return u=u===null?null:{parent:re._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&iu(t,null),Rc(),dd(t),e!==null&&ba(e,t,a,!0),t.childLanes=n,null}function fu(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function cr(e,t,l){return zl(t,e.child,null,l),e=fu(t,t.pendingProps),e.flags|=2,Be(t),t.memoizedState=null,e}function jv(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(G){if(a.mode==="hidden")return e=fu(t,a),t.lanes=536870912,qa(null,e);if(Oc(t),(e=P)?(e=Qh(e,Pe),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:ot,overflow:dt}:null,retryLane:536870912,hydrationErrors:null},l=ld(e),l.return=t,t.child=l,Ee=t,P=null)):e=null,e===null)throw fl(t);return t.lanes=536870912,null}return fu(t,a)}var u=e.memoizedState;if(u!==null){var i=u.dehydrated;if(Oc(t),n)if(t.flags&256)t.flags&=-257,t=cr(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(j(558));else if(oe||ba(e,t,l,!1),n=(l&e.childLanes)!==0,oe||n){if(a=k,a!==null&&(i=_o(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ml(e,i),De(a,e,i),Qs;wu(),t=cr(e,t,l)}else e=u.treeContext,P=tt(i.nextSibling),Ee=t,G=!0,el=null,Pe=!1,e!==null&&nd(t,e),t=fu(t,a),t.flags|=4096;return t}return e=Ot(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ru(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(j(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function wc(e,t,l,a,n){return Al(t),l=Os(e,t,l,a,void 0,n),a=Ds(),e!==null&&!oe?(Ms(e,t,n),wt(e,t,n)):(G&&a&&js(t),t.flags|=1,be(e,t,l,n),t.child)}function sr(e,t,l,a,n,u){return Al(t),t.updateQueue=null,l=md(t,a,l,n),hd(e),a=Ds(),e!==null&&!oe?(Ms(e,t,u),wt(e,t,u)):(G&&a&&js(t),t.flags|=1,be(e,t,l,u),t.child)}function fr(e,t,l,a,n){if(Al(t),t.stateNode===null){var u=$l,i=l.contextType;typeof i=="object"&&i!==null&&(u=je(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Hc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},_s(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?je(i):$l,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(wi(t,l,i,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(i=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),i!==u.state&&Hc.enqueueReplaceState(u,u.state,null),$a(t,a,u,n),ka(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var c=t.memoizedProps,s=Cl(l,c);u.props=s;var r=u.context,d=l.contextType;i=$l,typeof d=="object"&&d!==null&&(i=je(d));var h=l.getDerivedStateFromProps;d=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function",c=t.pendingProps!==c,d||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(c||r!==i)&&lr(t,u,a,i),Qt=!1;var o=t.memoizedState;u.state=o,$a(t,a,u,n),ka(),r=t.memoizedState,c||o!==r||Qt?(typeof h=="function"&&(wi(t,l,h,a),r=t.memoizedState),(s=Qt||tr(t,l,s,a,o,r,i))?(d||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=r),u.props=a,u.state=r,u.context=i,a=s):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,_c(e,t),i=t.memoizedProps,d=Cl(l,i),u.props=d,h=t.pendingProps,o=u.context,r=l.contextType,s=$l,typeof r=="object"&&r!==null&&(s=je(r)),c=l.getDerivedStateFromProps,(r=typeof c=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(i!==h||o!==s)&&lr(t,u,a,s),Qt=!1,o=t.memoizedState,u.state=o,$a(t,a,u,n),ka();var p=t.memoizedState;i!==h||o!==p||Qt||e!==null&&e.dependencies!==null&&Au(e.dependencies)?(typeof c=="function"&&(wi(t,l,c,a),p=t.memoizedState),(d=Qt||tr(t,l,d,a,o,p,s)||e!==null&&e.dependencies!==null&&Au(e.dependencies))?(r||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,p,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,p,s)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&o===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&o===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),u.props=a,u.state=p,u.context=s,a=d):(typeof u.componentDidUpdate!="function"||i===e.memoizedProps&&o===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&o===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,ru(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=zl(t,e.child,null,n),t.child=zl(t,null,l,n)):be(e,t,l,n),t.memoizedState=u.state,e=t.child):e=wt(e,t,n),e}function rr(e,t,l,a){return Tl(),t.flags|=256,be(e,t,l,a),t.child}var Li={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yi(e){return{baseLanes:e,cachePool:id()}}function qi(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Le),e}function Id(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,i;if((i=u)||(i=e!==null&&e.memoizedState===null?!1:(ie.current&2)!==0),i&&(n=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(G){if(n?Vt(t):Kt(),(e=P)?(e=Qh(e,Pe),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:ot,overflow:dt}:null,retryLane:536870912,hydrationErrors:null},l=ld(e),l.return=t,t.child=l,Ee=t,P=null)):e=null,e===null)throw fl(t);return Fc(e)?t.lanes=32:t.lanes=536870912,null}var c=a.children;return a=a.fallback,n?(Kt(),n=t.mode,c=Mu({mode:"hidden",children:c},n),a=xl(a,n,l,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=Yi(l),a.childLanes=qi(e,i,l),t.memoizedState=Li,qa(null,a)):(Vt(t),Lc(t,c))}var s=e.memoizedState;if(s!==null&&(c=s.dehydrated,c!==null)){if(u)t.flags&256?(Vt(t),t.flags&=-257,t=Gi(e,t,l)):t.memoizedState!==null?(Kt(),t.child=e.child,t.flags|=128,t=null):(Kt(),c=a.fallback,n=t.mode,a=Mu({mode:"visible",children:a.children},n),c=xl(c,n,l,null),c.flags|=2,a.return=t,c.return=t,a.sibling=c,t.child=a,zl(t,e.child,null,l),a=t.child,a.memoizedState=Yi(l),a.childLanes=qi(e,i,l),t.memoizedState=Li,t=qa(null,a));else if(Vt(t),Fc(c)){if(i=c.nextSibling&&c.nextSibling.dataset,i)var r=i.dgst;i=r,a=Error(j(419)),a.stack="",a.digest=i,sn({value:a,source:null,stack:null}),t=Gi(e,t,l)}else if(oe||ba(e,t,l,!1),i=(l&e.childLanes)!==0,oe||i){if(i=k,i!==null&&(a=_o(i,l),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ml(e,a),De(i,e,a),Qs;Wc(c)||wu(),t=Gi(e,t,l)}else Wc(c)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,P=tt(c.nextSibling),Ee=t,G=!0,el=null,Pe=!1,e!==null&&nd(t,e),t=Lc(t,a.children),t.flags|=4096);return t}return n?(Kt(),c=a.fallback,n=t.mode,s=e.child,r=s.sibling,a=Ot(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,r!==null?c=Ot(r,c):(c=xl(c,n,l,null),c.flags|=2),c.return=t,a.return=t,a.sibling=c,t.child=a,qa(null,a),a=t.child,c=e.child.memoizedState,c===null?c=Yi(l):(n=c.cachePool,n!==null?(s=re._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=id(),c={baseLanes:c.baseLanes|l,cachePool:n}),a.memoizedState=c,a.childLanes=qi(e,i,l),t.memoizedState=Li,qa(e.child,a)):(Vt(t),l=e.child,e=l.sibling,l=Ot(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l)}function Lc(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=we(22,e,null,t),e.lanes=0,e}function Gi(e,t,l){return zl(t,e.child,null,l),e=Lc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function or(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Tc(e.return,t,l)}function Xi(e,t,l,a,n,u){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=l,i.tailMode=n,i.treeForkCount=u)}function Pd(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var i=ie.current,c=(i&2)!==0;if(c?(i=i&1|2,t.flags|=128):i&=1,W(ie,i),be(e,t,a,l),a=G?cn:0,!c&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&or(e,l,t);else if(e.tag===19)or(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Cu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Xi(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Cu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Xi(t,!0,l,null,u,a);break;case"together":Xi(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function wt(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,!(l&t.childLanes))if(e!==null){if(ba(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,l=Ot(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ot(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Zs(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Au(e)))}function Nv(e,t,l){switch(t.tag){case 3:Su(t,t.stateNode.containerInfo),Zt(t,re,e.memoizedState.cache),Tl();break;case 27:case 5:dc(t);break;case 4:Su(t,t.stateNode.containerInfo);break;case 10:Zt(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Vt(t),t.flags|=128,null):l&t.child.childLanes?Id(e,t,l):(Vt(t),e=wt(e,t,l),e!==null?e.sibling:null);Vt(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ba(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Pd(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),W(ie,ie.current),a)break;return null;case 22:return t.lanes=0,Fd(e,t,l,t.pendingProps);case 24:Zt(t,re,e.memoizedState.cache)}return wt(e,t,l)}function eh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)oe=!0;else{if(!Zs(e,l)&&!(t.flags&128))return oe=!1,Nv(e,t,l);oe=!!(e.flags&131072)}else oe=!1,G&&t.flags&1048576&&ad(t,cn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=gl(t.elementType),t.type=e,typeof e=="function")Es(e)?(a=Cl(e,a),t.tag=1,t=fr(null,t,e,a,l)):(t.tag=0,t=wc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ss){t.tag=11,t=nr(null,t,e,a,l);break e}else if(n===fs){t.tag=14,t=ur(null,t,e,a,l);break e}}throw t=rc(e)||e,Error(j(306,t,""))}}return t;case 0:return wc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Cl(a,t.pendingProps),fr(e,t,a,n,l);case 3:e:{if(Su(t,t.stateNode.containerInfo),e===null)throw Error(j(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,_c(e,t),$a(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Zt(t,re,a),a!==u.cache&&Ac(t,[re],l,!0),ka(),a=i.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=rr(e,t,a,l);break e}else if(a!==n){n=Ie(Error(j(424)),t),sn(n),t=rr(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(P=tt(e.firstChild),Ee=t,G=!0,el=null,Pe=!0,l=fd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Tl(),a===n){t=wt(e,t,l);break e}be(e,t,a,l)}t=t.child}return t;case 26:return ru(e,t),e===null?(l=Or(t.type,null,t.pendingProps,null))?t.memoizedState=l:G||(l=t.type,e=t.pendingProps,a=Gu(Pt.current).createElement(l),a[xe]=t,a[Me]=e,Ne(a,l,e),ve(a),t.stateNode=a):t.memoizedState=Or(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dc(t),e===null&&G&&(a=t.stateNode=Zh(t.type,t.pendingProps,Pt.current),Ee=t,Pe=!0,n=P,hl(t.type)?(Ic=n,P=tt(a.firstChild)):P=n),be(e,t,t.pendingProps.children,l),ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&G&&((n=a=P)&&(a=ep(a,t.type,t.pendingProps,Pe),a!==null?(t.stateNode=a,Ee=t,P=tt(a.firstChild),Pe=!1,n=!0):n=!1),n||fl(t)),dc(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,kc(n,u)?a=null:i!==null&&kc(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=Os(e,t,yv,null,null,l),mn._currentValue=n),ru(e,t),be(e,t,a,l),t.child;case 6:return e===null&&G&&((e=l=P)&&(l=tp(l,t.pendingProps,Pe),l!==null?(t.stateNode=l,Ee=t,P=null,e=!0):e=!1),e||fl(t)),null;case 13:return Id(e,t,l);case 4:return Su(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=zl(t,null,a,l):be(e,t,a,l),t.child;case 11:return nr(e,t,t.type,t.pendingProps,l);case 7:return be(e,t,t.pendingProps,l),t.child;case 8:return be(e,t,t.pendingProps.children,l),t.child;case 12:return be(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zt(t,t.type,a.value),be(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Al(t),n=je(n),a=a(n),t.flags|=1,be(e,t,a,l),t.child;case 14:return ur(e,t,t.type,t.pendingProps,l);case 15:return Wd(e,t,t.type,t.pendingProps,l);case 19:return Pd(e,t,l);case 31:return jv(e,t,l);case 22:return Fd(e,t,l,t.pendingProps);case 24:return Al(t),a=je(re),e===null?(n=As(),n===null&&(n=k,u=Ts(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},_s(t),Zt(t,re,n)):(e.lanes&l&&(_c(e,t),$a(t,null,null,l),ka()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Zt(t,re,a)):(a=u.cache,Zt(t,re,a),a!==n.cache&&Ac(t,[re],l,!0))),be(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function xt(e){e.flags|=4}function Qi(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Nh())e.flags|=8192;else throw jl=zu,zs}else e.flags&=-16777217}function dr(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jh(t))if(Nh())e.flags|=8192;else throw jl=zu,zs}function Jn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?To():536870912,e.lanes|=t,da|=t)}function Da(e,t){if(!G)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function I(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Tv(e,t,l){var a=t.pendingProps;switch(Ns(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return I(t),null;case 1:return I(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Dt(re),ia(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?xt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),I(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(xt(t),u!==null?(I(t),dr(t,u)):(I(t),Qi(t,n,null,a,l))):u?u!==e.memoizedState?(xt(t),I(t),dr(t,u)):(I(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&xt(t),I(t),Qi(t,n,e,a,l)),null;case 27:if(bu(t),l=Pt.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&xt(t);else{if(!a){if(t.stateNode===null)throw Error(j(166));return I(t),null}e=mt.current,Bl(t)?Gf(t):(e=Zh(n,a,l),t.stateNode=e,xt(t))}return I(t),null;case 5:if(bu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&xt(t);else{if(!a){if(t.stateNode===null)throw Error(j(166));return I(t),null}if(u=mt.current,Bl(t))Gf(t);else{var i=Gu(Pt.current);switch(u){case 1:u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=i.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?i.createElement("select",{is:a.is}):i.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?i.createElement(n,{is:a.is}):i.createElement(n)}}u[xe]=t,u[Me]=a;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)u.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=u;e:switch(Ne(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&xt(t)}}return I(t),Qi(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&xt(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(j(166));if(e=Pt.current,Bl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Ee,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[xe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||qh(e.nodeValue,l)),e||fl(t,!0)}else e=Gu(e).createTextNode(a),e[xe]=t,t.stateNode=e}return I(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=Bl(t),l!==null){if(e===null){if(!a)throw Error(j(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(557));e[xe]=t}else Tl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),e=!1}else l=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Be(t),t):(Be(t),null);if(t.flags&128)throw Error(j(558))}return I(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Bl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(j(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(j(317));n[xe]=t}else Tl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),n=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Be(t),t):(Be(t),null)}return Be(t),t.flags&128?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Jn(t,t.updateQueue),I(t),null);case 4:return ia(),e===null&&Fs(t.stateNode.containerInfo),I(t),null;case 10:return Dt(t.type),I(t),null;case 19:if(pe(ie),a=t.memoizedState,a===null)return I(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)Da(a,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(u=Cu(e),u!==null){for(t.flags|=128,Da(a,!1),e=u.updateQueue,t.updateQueue=e,Jn(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)td(l,e),l=l.sibling;return W(ie,ie.current&1|2),G&&Tt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&Ye()>Hu&&(t.flags|=128,n=!0,Da(a,!1),t.lanes=4194304)}else{if(!n)if(e=Cu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Jn(t,e),Da(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!G)return I(t),null}else 2*Ye()-a.renderingStartTime>Hu&&l!==536870912&&(t.flags|=128,n=!0,Da(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Ye(),e.sibling=null,l=ie.current,W(ie,n?l&1|2:l&1),G&&Tt(t,a.treeForkCount),e):(I(t),null);case 22:case 23:return Be(t),Cs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?l&536870912&&!(t.flags&128)&&(I(t),t.subtreeFlags&6&&(t.flags|=8192)):I(t),l=t.updateQueue,l!==null&&Jn(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&pe(El),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Dt(re),I(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function Av(e,t){switch(Ns(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dt(re),ia(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return bu(t),null;case 31:if(t.memoizedState!==null){if(Be(t),t.alternate===null)throw Error(j(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Be(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(ie),null;case 4:return ia(),null;case 10:return Dt(t.type),null;case 22:case 23:return Be(t),Cs(),e!==null&&pe(El),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Dt(re),null;case 25:return null;default:return null}}function th(e,t){switch(Ns(t),t.tag){case 3:Dt(re),ia();break;case 26:case 27:case 5:bu(t);break;case 4:ia();break;case 31:t.memoizedState!==null&&Be(t);break;case 13:Be(t);break;case 19:pe(ie);break;case 10:Dt(t.type);break;case 22:case 23:Be(t),Cs(),e!==null&&pe(El);break;case 24:Dt(re)}}function _n(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,i=l.inst;a=u(),i.destroy=a}l=l.next}while(l!==n)}}catch(c){V(t,t.return,c)}}function rl(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var i=a.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,n=t;var s=l,r=c;try{r()}catch(d){V(n,s,d)}}}a=a.next}while(a!==u)}}catch(d){V(t,t.return,d)}}function lh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{od(t,l)}catch(a){V(e,e.return,a)}}}function ah(e,t,l){l.props=Cl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){V(e,t,a)}}function Fa(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){V(e,t,n)}}function ht(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){V(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){V(e,t,n)}else l.current=null}function nh(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){V(e,e.return,n)}}function Zi(e,t,l){try{var a=e.stateNode;kv(a,e.type,l,t),a[Me]=t}catch(n){V(e,e.return,n)}}function uh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hl(e.type)||e.tag===4}function Vi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uh(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&&hl(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 Yc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Ct));else if(a!==4&&(a===27&&hl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,l),e=e.sibling;e!==null;)Yc(e,t,l),e=e.sibling}function Uu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&hl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Uu(e,t,l),e=e.sibling;e!==null;)Uu(e,t,l),e=e.sibling}function ih(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ne(t,a,l),t[xe]=e,t[Me]=l}catch(u){V(e,e.return,u)}}var zt=!1,fe=!1,Ki=!1,hr=typeof WeakSet=="function"?WeakSet:Set,ye=null;function zv(e,t){if(e=e.containerInfo,Kc=Vu,e=Jo(e),Ss(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var i=0,c=-1,s=-1,r=0,d=0,h=e,o=null;t:for(;;){for(var p;h!==l||n!==0&&h.nodeType!==3||(c=i+n),h!==u||a!==0&&h.nodeType!==3||(s=i+a),h.nodeType===3&&(i+=h.nodeValue.length),(p=h.firstChild)!==null;)o=h,h=p;for(;;){if(h===e)break t;if(o===l&&++r===n&&(c=i),o===u&&++d===a&&(s=i),(p=h.nextSibling)!==null)break;h=o,o=h.parentNode}h=p}l=c===-1||s===-1?null:{start:c,end:s}}else l=null}l=l||{start:0,end:0}}else l=null;for(Jc={focusedElem:e,selectionRange:l},Vu=!1,ye=t;ye!==null;)if(t=ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ye=e;else for(;ye!==null;){switch(t=ye,u=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var b=Cl(l.type,n);e=a.getSnapshotBeforeUpdate(b,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(x){V(l,l.return,x)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)$c(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$c(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(j(163))}if(e=t.sibling,e!==null){e.return=t.return,ye=e;break}ye=t.return}}function ch(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:jt(e,l),a&4&&_n(5,l);break;case 1:if(jt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){V(l,l.return,i)}else{var n=Cl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){V(l,l.return,i)}}a&64&&lh(l),a&512&&Fa(l,l.return);break;case 3:if(jt(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{od(e,t)}catch(i){V(l,l.return,i)}}break;case 27:t===null&&a&4&&ih(l);case 26:case 5:jt(e,l),t===null&&a&4&&nh(l),a&512&&Fa(l,l.return);break;case 12:jt(e,l);break;case 31:jt(e,l),a&4&&rh(e,l);break;case 13:jt(e,l),a&4&&oh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Bv.bind(null,l),lp(e,l))));break;case 22:if(a=l.memoizedState!==null||zt,!a){t=t!==null&&t.memoizedState!==null||fe,n=zt;var u=fe;zt=a,(fe=t)&&!u?Nt(e,l,(l.subtreeFlags&8772)!==0):jt(e,l),zt=n,fe=u}break;case 30:break;default:jt(e,l)}}function sh(e){var t=e.alternate;t!==null&&(e.alternate=null,sh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&hs(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 le=null,Re=!1;function Et(e,t,l){for(l=l.child;l!==null;)fh(e,t,l),l=l.sibling}function fh(e,t,l){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(xn,l)}catch{}switch(l.tag){case 26:fe||ht(l,t),Et(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:fe||ht(l,t);var a=le,n=Re;hl(l.type)&&(le=l.stateNode,Re=!1),Et(e,t,l),tn(l.stateNode),le=a,Re=n;break;case 5:fe||ht(l,t);case 6:if(a=le,n=Re,le=null,Et(e,t,l),le=a,Re=n,le!==null)if(Re)try{(le.nodeType===9?le.body:le.nodeName==="HTML"?le.ownerDocument.body:le).removeChild(l.stateNode)}catch(u){V(l,t,u)}else try{le.removeChild(l.stateNode)}catch(u){V(l,t,u)}break;case 18:le!==null&&(Re?(e=le,Ar(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),va(e)):Ar(le,l.stateNode));break;case 4:a=le,n=Re,le=l.stateNode.containerInfo,Re=!0,Et(e,t,l),le=a,Re=n;break;case 0:case 11:case 14:case 15:rl(2,l,t),fe||rl(4,l,t),Et(e,t,l);break;case 1:fe||(ht(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ah(l,t,a)),Et(e,t,l);break;case 21:Et(e,t,l);break;case 22:fe=(a=fe)||l.memoizedState!==null,Et(e,t,l),fe=a;break;default:Et(e,t,l)}}function rh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{va(e)}catch(l){V(t,t.return,l)}}}function oh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{va(e)}catch(l){V(t,t.return,l)}}function _v(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hr),t;default:throw Error(j(435,e.tag))}}function kn(e,t){var l=_v(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=wv.bind(null,e,a);a.then(n,n)}})}function _e(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,i=t,c=i;e:for(;c!==null;){switch(c.tag){case 27:if(hl(c.type)){le=c.stateNode,Re=!1;break e}break;case 5:le=c.stateNode,Re=!1;break e;case 3:case 4:le=c.stateNode.containerInfo,Re=!0;break e}c=c.return}if(le===null)throw Error(j(160));fh(u,i,n),le=null,Re=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dh(t,e),t=t.sibling}var ut=null;function dh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_e(t,e),Ce(e),a&4&&(rl(3,e,e.return),_n(3,e),rl(5,e,e.return));break;case 1:_e(t,e),Ce(e),a&512&&(fe||l===null||ht(l,l.return)),a&64&&zt&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=ut;if(_e(t,e),Ce(e),a&512&&(fe||l===null||ht(l,l.return)),a&4){var u=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":u=n.getElementsByTagName("title")[0],(!u||u[Nn]||u[xe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Ne(u,a,l),u[xe]=e,ve(u),a=u;break e;case"link":var i=Mr("link","href",n).get(a+(l.href||""));if(i){for(var c=0;c<i.length;c++)if(u=i[c],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(c,1);break t}}u=n.createElement(a),Ne(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Mr("meta","content",n).get(a+(l.content||""))){for(c=0;c<i.length;c++)if(u=i[c],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(c,1);break t}}u=n.createElement(a),Ne(u,a,l),n.head.appendChild(u);break;default:throw Error(j(468,a))}u[xe]=e,ve(u),a=u}e.stateNode=a}else Ur(n,e.type,e.stateNode);else e.stateNode=Dr(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Ur(n,e.type,e.stateNode):Dr(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Zi(e,e.memoizedProps,l.memoizedProps)}break;case 27:_e(t,e),Ce(e),a&512&&(fe||l===null||ht(l,l.return)),l!==null&&a&4&&Zi(e,e.memoizedProps,l.memoizedProps);break;case 5:if(_e(t,e),Ce(e),a&512&&(fe||l===null||ht(l,l.return)),e.flags&32){n=e.stateNode;try{sa(n,"")}catch(b){V(e,e.return,b)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Zi(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Ki=!0);break;case 6:if(_e(t,e),Ce(e),a&4){if(e.stateNode===null)throw Error(j(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(b){V(e,e.return,b)}}break;case 3:if(hu=null,n=ut,ut=Xu(t.containerInfo),_e(t,e),ut=n,Ce(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{va(t.containerInfo)}catch(b){V(e,e.return,b)}Ki&&(Ki=!1,hh(e));break;case 4:a=ut,ut=Xu(e.stateNode.containerInfo),_e(t,e),Ce(e),ut=a;break;case 12:_e(t,e),Ce(e);break;case 31:_e(t,e),Ce(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kn(e,a)));break;case 13:_e(t,e),Ce(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fi=Ye()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kn(e,a)));break;case 22:n=e.memoizedState!==null;var s=l!==null&&l.memoizedState!==null,r=zt,d=fe;if(zt=r||n,fe=d||s,_e(t,e),fe=d,zt=r,Ce(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||s||zt||fe||Sl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){s=l=t;try{if(u=s.stateNode,n)i=u.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{c=s.stateNode;var h=s.memoizedProps.style,o=h!=null&&h.hasOwnProperty("display")?h.display:null;c.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(b){V(s,s.return,b)}}}else if(t.tag===6){if(l===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(b){V(s,s.return,b)}}}else if(t.tag===18){if(l===null){s=t;try{var p=s.stateNode;n?zr(p,!0):zr(s.stateNode,!1)}catch(b){V(s,s.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,kn(e,l))));break;case 19:_e(t,e),Ce(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kn(e,a)));break;case 30:break;case 21:break;default:_e(t,e),Ce(e)}}function Ce(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(uh(a)){l=a;break}a=a.return}if(l==null)throw Error(j(160));switch(l.tag){case 27:var n=l.stateNode,u=Vi(e);Uu(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(sa(i,""),l.flags&=-33);var c=Vi(e);Uu(e,c,i);break;case 3:case 4:var s=l.stateNode.containerInfo,r=Vi(e);Yc(e,r,s);break;default:throw Error(j(161))}}catch(d){V(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function jt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ch(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:rl(4,t,t.return),Sl(t);break;case 1:ht(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ah(t,t.return,l),Sl(t);break;case 27:tn(t.stateNode);case 26:case 5:ht(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Nt(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,i=u.flags;switch(u.tag){case 0:case 11:case 15:Nt(n,u,l),_n(4,u);break;case 1:if(Nt(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(r){V(a,a.return,r)}if(a=u,n=a.updateQueue,n!==null){var c=a.stateNode;try{var s=n.shared.hiddenCallbacks;if(s!==null)for(n.shared.hiddenCallbacks=null,n=0;n<s.length;n++)rd(s[n],c)}catch(r){V(a,a.return,r)}}l&&i&64&&lh(u),Fa(u,u.return);break;case 27:ih(u);case 26:case 5:Nt(n,u,l),l&&a===null&&i&4&&nh(u),Fa(u,u.return);break;case 12:Nt(n,u,l);break;case 31:Nt(n,u,l),l&&i&4&&rh(n,u);break;case 13:Nt(n,u,l),l&&i&4&&oh(n,u);break;case 22:u.memoizedState===null&&Nt(n,u,l),Fa(u,u.return);break;case 30:break;default:Nt(n,u,l)}t=t.sibling}}function Vs(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&An(l))}function Ks(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&An(e))}function nt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)mh(e,t,l,a),t=t.sibling}function mh(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:nt(e,t,l,a),n&2048&&_n(9,t);break;case 1:nt(e,t,l,a);break;case 3:nt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&An(e)));break;case 12:if(n&2048){nt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,i=u.id,c=u.onPostCommit;typeof c=="function"&&c(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){V(t,t.return,s)}}else nt(e,t,l,a);break;case 31:nt(e,t,l,a);break;case 13:nt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,i=t.alternate,t.memoizedState!==null?u._visibility&2?nt(e,t,l,a):Ia(e,t):u._visibility&2?nt(e,t,l,a):(u._visibility|=2,Yl(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Vs(i,t);break;case 24:nt(e,t,l,a),n&2048&&Ks(t.alternate,t);break;default:nt(e,t,l,a)}}function Yl(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,i=t,c=l,s=a,r=i.flags;switch(i.tag){case 0:case 11:case 15:Yl(u,i,c,s,n),_n(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?Yl(u,i,c,s,n):Ia(u,i):(d._visibility|=2,Yl(u,i,c,s,n)),n&&r&2048&&Vs(i.alternate,i);break;case 24:Yl(u,i,c,s,n),n&&r&2048&&Ks(i.alternate,i);break;default:Yl(u,i,c,s,n)}t=t.sibling}}function Ia(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Ia(l,a),n&2048&&Vs(a.alternate,a);break;case 24:Ia(l,a),n&2048&&Ks(a.alternate,a);break;default:Ia(l,a)}t=t.sibling}}var Ga=8192;function wl(e,t,l){if(e.subtreeFlags&Ga)for(e=e.child;e!==null;)yh(e,t,l),e=e.sibling}function yh(e,t,l){switch(e.tag){case 26:wl(e,t,l),e.flags&Ga&&e.memoizedState!==null&&mp(l,ut,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,l);break;case 3:case 4:var a=ut;ut=Xu(e.stateNode.containerInfo),wl(e,t,l),ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ga,Ga=16777216,wl(e,t,l),Ga=a):wl(e,t,l));break;default:wl(e,t,l)}}function vh(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 Ma(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ye=a,gh(a,e)}vh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ph(e),e=e.sibling}function ph(e){switch(e.tag){case 0:case 11:case 15:Ma(e),e.flags&2048&&rl(9,e,e.return);break;case 3:Ma(e);break;case 12:Ma(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ou(e)):Ma(e);break;default:Ma(e)}}function ou(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];ye=a,gh(a,e)}vh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:rl(8,t,t.return),ou(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,ou(t));break;default:ou(t)}e=e.sibling}}function gh(e,t){for(;ye!==null;){var l=ye;switch(l.tag){case 0:case 11:case 15:rl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:An(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,ye=a;else e:for(l=e;ye!==null;){a=ye;var n=a.sibling,u=a.return;if(sh(a),a===l){ye=null;break e}if(n!==null){n.return=u,ye=n;break e}ye=u}}}var Cv={getCacheForType:function(e){var t=je(re),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return je(re).controller.signal}},Rv=typeof WeakMap=="function"?WeakMap:Map,X=0,k=null,L=null,Y=0,Z=0,He=null,Wt=!1,Ea=!1,Js=!1,Lt=0,ue=0,ol=0,Nl=0,ks=0,Le=0,da=0,Pa=null,Oe=null,qc=!1,fi=0,Sh=0,Hu=1/0,Bu=null,al=null,de=0,nl=null,ha=null,Mt=0,Gc=0,Xc=null,bh=null,en=0,Qc=null;function Xe(){return X&2&&Y!==0?Y&-Y:M.T!==null?Ws():Co()}function xh(){if(Le===0)if(!(Y&536870912)||G){var e=qn;qn<<=1,!(qn&3932160)&&(qn=262144),Le=e}else Le=536870912;return e=Ze.current,e!==null&&(e.flags|=32),Le}function De(e,t,l){(e===k&&(Z===2||Z===9)||e.cancelPendingCommit!==null)&&(ma(e,0),Ft(e,Y,Le,!1)),jn(e,l),(!(X&2)||e!==k)&&(e===k&&(!(X&2)&&(Nl|=l),ue===4&&Ft(e,Y,Le,!1)),pt(e))}function Eh(e,t,l){if(X&6)throw Error(j(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||En(e,t),n=a?Mv(e,t):Ji(e,t,!0),u=a;do{if(n===0){Ea&&!a&&Ft(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Ov(l)){n=Ji(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var c=e;n=Pa;var s=c.current.memoizedState.isDehydrated;if(s&&(ma(c,i).flags|=256),i=Ji(c,i,!1),i!==2){if(Js&&!s){c.errorRecoveryDisabledLanes|=u,Nl|=u,n=4;break e}u=Oe,Oe=n,u!==null&&(Oe===null?Oe=u:Oe.push.apply(Oe,u))}n=i}if(u=!1,n!==2)continue}}if(n===1){ma(e,0),Ft(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(j(345));case 4:if((t&4194048)!==t)break;case 6:Ft(a,t,Le,!Wt);break e;case 2:Oe=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(n=fi+300-Ye(),10<n)){if(Ft(a,t,Le,!Wt),Iu(a,0,!0)!==0)break e;Mt=t,a.timeoutHandle=Xh(mr.bind(null,a,l,Oe,Bu,qc,t,Le,Nl,da,Wt,u,"Throttled",-0,0),n);break e}mr(a,l,Oe,Bu,qc,t,Le,Nl,da,Wt,u,null,-0,0)}}break}while(!0);pt(e)}function mr(e,t,l,a,n,u,i,c,s,r,d,h,o,p){if(e.timeoutHandle=-1,h=t.subtreeFlags,h&8192||(h&16785408)===16785408){h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ct},yh(t,u,h);var b=(u&62914560)===u?fi-Ye():(u&4194048)===u?Sh-Ye():0;if(b=yp(h,b),b!==null){Mt=u,e.cancelPendingCommit=b(vr.bind(null,e,t,u,l,a,n,i,c,s,d,h,null,o,p)),Ft(e,u,i,!r);return}}vr(e,t,u,l,a,n,i,c,s)}function Ov(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],u=n.getSnapshot;n=n.value;try{if(!Qe(u(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ft(e,t,l,a){t&=~ks,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-Ge(n),i=1<<u;a[u]=-1,n&=~i}l!==0&&Ao(e,l,t)}function ri(){return X&6?!0:(Cn(0),!1)}function $s(){if(L!==null){if(Z===0)var e=L.return;else e=L,Rt=Ul=null,Us(e),aa=null,fn=0,e=L;for(;e!==null;)th(e.alternate,e),e=e.return;L=null}}function ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Fv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Mt=0,$s(),k=e,L=l=Ot(e.current,null),Y=t,Z=0,He=null,Wt=!1,Ea=En(e,t),Js=!1,da=Le=ks=Nl=ol=ue=0,Oe=Pa=null,qc=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Ge(a),u=1<<n;t|=e[n],a&=~u}return Lt=t,li(),l}function jh(e,t){H=null,M.H=on,t===xa||t===ni?(t=Kf(),Z=3):t===zs?(t=Kf(),Z=4):Z=t===Qs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,He=t,L===null&&(ue=1,Du(e,Ie(t,e.current)))}function Nh(){var e=Ze.current;return e===null?!0:(Y&4194048)===Y?et===null:(Y&62914560)===Y||Y&536870912?e===et:!1}function Th(){var e=M.H;return M.H=on,e===null?on:e}function Ah(){var e=M.A;return M.A=Cv,e}function wu(){ue=4,Wt||(Y&4194048)!==Y&&Ze.current!==null||(Ea=!0),!(ol&134217727)&&!(Nl&134217727)||k===null||Ft(k,Y,Le,!1)}function Ji(e,t,l){var a=X;X|=2;var n=Th(),u=Ah();(k!==e||Y!==t)&&(Bu=null,ma(e,t)),t=!1;var i=ue;e:do try{if(Z!==0&&L!==null){var c=L,s=He;switch(Z){case 8:$s(),i=6;break e;case 3:case 2:case 9:case 6:Ze.current===null&&(t=!0);var r=Z;if(Z=0,He=null,Il(e,c,s,r),l&&Ea){i=0;break e}break;default:r=Z,Z=0,He=null,Il(e,c,s,r)}}Dv(),i=ue;break}catch(d){jh(e,d)}while(!0);return t&&e.shellSuspendCounter++,Rt=Ul=null,X=a,M.H=n,M.A=u,L===null&&(k=null,Y=0,li()),i}function Dv(){for(;L!==null;)zh(L)}function Mv(e,t){var l=X;X|=2;var a=Th(),n=Ah();k!==e||Y!==t?(Bu=null,Hu=Ye()+500,ma(e,t)):Ea=En(e,t);e:do try{if(Z!==0&&L!==null){t=L;var u=He;t:switch(Z){case 1:Z=0,He=null,Il(e,t,u,1);break;case 2:case 9:if(Vf(u)){Z=0,He=null,yr(t);break}t=function(){Z!==2&&Z!==9||k!==e||(Z=7),pt(e)},u.then(t,t);break e;case 3:Z=7;break e;case 4:Z=5;break e;case 7:Vf(u)?(Z=0,He=null,yr(t)):(Z=0,He=null,Il(e,t,u,7));break;case 5:var i=null;switch(L.tag){case 26:i=L.memoizedState;case 5:case 27:var c=L;if(i?Jh(i):c.stateNode.complete){Z=0,He=null;var s=c.sibling;if(s!==null)L=s;else{var r=c.return;r!==null?(L=r,oi(r)):L=null}break t}}Z=0,He=null,Il(e,t,u,5);break;case 6:Z=0,He=null,Il(e,t,u,6);break;case 8:$s(),ue=6;break e;default:throw Error(j(462))}}Uv();break}catch(d){jh(e,d)}while(!0);return Rt=Ul=null,M.H=a,M.A=n,X=l,L!==null?0:(k=null,Y=0,li(),ue)}function Uv(){for(;L!==null&&!ay();)zh(L)}function zh(e){var t=eh(e.alternate,e,Lt);e.memoizedProps=e.pendingProps,t===null?oi(e):L=t}function yr(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=sr(l,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=sr(l,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:Us(t);default:th(l,t),t=L=td(t,Lt),t=eh(l,t,Lt)}e.memoizedProps=e.pendingProps,t===null?oi(e):L=t}function Il(e,t,l,a){Rt=Ul=null,Us(t),aa=null,fn=0;var n=t.return;try{if(Ev(e,n,t,l,Y)){ue=1,Du(e,Ie(l,e.current)),L=null;return}}catch(u){if(n!==null)throw L=n,u;ue=1,Du(e,Ie(l,e.current)),L=null;return}t.flags&32768?(G||a===1?e=!0:Ea||Y&536870912?e=!1:(Wt=e=!0,(a===2||a===9||a===3||a===6)&&(a=Ze.current,a!==null&&a.tag===13&&(a.flags|=16384))),_h(t,e)):oi(t)}function oi(e){var t=e;do{if(t.flags&32768){_h(t,Wt);return}e=t.return;var l=Tv(t.alternate,t,Lt);if(l!==null){L=l;return}if(t=t.sibling,t!==null){L=t;return}L=t=e}while(t!==null);ue===0&&(ue=5)}function _h(e,t){do{var l=Av(e.alternate,e);if(l!==null){l.flags&=32767,L=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){L=e;return}L=e=l}while(e!==null);ue=6,L=null}function vr(e,t,l,a,n,u,i,c,s){e.cancelPendingCommit=null;do di();while(de!==0);if(X&6)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(u=t.lanes|t.childLanes,u|=bs,hy(e,l,u,i,c,s),e===k&&(L=k=null,Y=0),ha=t,nl=e,Mt=l,Gc=u,Xc=n,bh=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Lv(xu,function(){return Mh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=M.T,M.T=null,n=Q.p,Q.p=2,i=X,X|=4;try{zv(e,t,l)}finally{X=i,Q.p=n,M.T=a}}de=1,Ch(),Rh(),Oh()}}function Ch(){if(de===1){de=0;var e=nl,t=ha,l=(t.flags&13878)!==0;if(t.subtreeFlags&13878||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var n=X;X|=4;try{dh(t,e);var u=Jc,i=Jo(e.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&Ko(c.ownerDocument.documentElement,c)){if(s!==null&&Ss(c)){var r=s.start,d=s.end;if(d===void 0&&(d=r),"selectionStart"in c)c.selectionStart=r,c.selectionEnd=Math.min(d,c.value.length);else{var h=c.ownerDocument||document,o=h&&h.defaultView||window;if(o.getSelection){var p=o.getSelection(),b=c.textContent.length,x=Math.min(s.start,b),E=s.end===void 0?x:Math.min(s.end,b);!p.extend&&x>E&&(i=E,E=x,x=i);var m=Lf(c,x),y=Lf(c,E);if(m&&y&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var g=h.createRange();g.setStart(m.node,m.offset),p.removeAllRanges(),x>E?(p.addRange(g),p.extend(y.node,y.offset)):(g.setEnd(y.node,y.offset),p.addRange(g))}}}}for(h=[],p=c;p=p.parentNode;)p.nodeType===1&&h.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<h.length;c++){var S=h[c];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Vu=!!Kc,Jc=Kc=null}finally{X=n,Q.p=a,M.T=l}}e.current=t,de=2}}function Rh(){if(de===2){de=0;var e=nl,t=ha,l=(t.flags&8772)!==0;if(t.subtreeFlags&8772||l){l=M.T,M.T=null;var a=Q.p;Q.p=2;var n=X;X|=4;try{ch(e,t.alternate,t)}finally{X=n,Q.p=a,M.T=l}}de=3}}function Oh(){if(de===4||de===3){de=0,ny();var e=nl,t=ha,l=Mt,a=bh;t.subtreeFlags&10256||t.flags&10256?de=5:(de=0,ha=nl=null,Dh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(al=null),ds(l),t=t.stateNode,qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(xn,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=Q.p,Q.p=2,M.T=null;try{for(var u=e.onRecoverableError,i=0;i<a.length;i++){var c=a[i];u(c.value,{componentStack:c.stack})}}finally{M.T=t,Q.p=n}}Mt&3&&di(),pt(e),n=e.pendingLanes,l&261930&&n&42?e===Qc?en++:(en=0,Qc=e):en=0,Cn(0)}}function Dh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,An(t)))}function di(){return Ch(),Rh(),Oh(),Mh()}function Mh(){if(de!==5)return!1;var e=nl,t=Gc;Gc=0;var l=ds(Mt),a=M.T,n=Q.p;try{Q.p=32>l?32:l,M.T=null,l=Xc,Xc=null;var u=nl,i=Mt;if(de=0,ha=nl=null,Mt=0,X&6)throw Error(j(331));var c=X;if(X|=4,ph(u.current),mh(u,u.current,i,l),X=c,Cn(0,!1),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(xn,u)}catch{}return!0}finally{Q.p=n,M.T=a,Dh(e,t)}}function pr(e,t,l){t=Ie(l,t),t=Bc(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(jn(e,2),pt(e))}function V(e,t,l){if(e.tag===3)pr(e,e,l);else for(;t!==null;){if(t.tag===3){pr(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(al===null||!al.has(a))){e=Ie(l,e),l=kd(2),a=ll(t,l,2),a!==null&&($d(l,a,t,e),jn(a,2),pt(a));break}}t=t.return}}function ki(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Rv;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Js=!0,n.add(l),e=Hv.bind(null,e,t,l),t.then(e,e))}function Hv(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,k===e&&(Y&l)===l&&(ue===4||ue===3&&(Y&62914560)===Y&&300>Ye()-fi?!(X&2)&&ma(e,0):ks|=l,da===Y&&(da=0)),pt(e)}function Uh(e,t){t===0&&(t=To()),e=Ml(e,t),e!==null&&(jn(e,t),pt(e))}function Bv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Uh(e,l)}function wv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(j(314))}a!==null&&a.delete(t),Uh(e,l)}function Lv(e,t){return rs(e,t)}var Lu=null,ql=null,Zc=!1,Yu=!1,$i=!1,It=0;function pt(e){e!==ql&&e.next===null&&(ql===null?Lu=ql=e:ql=ql.next=e),Yu=!0,Zc||(Zc=!0,qv())}function Cn(e,t){if(!$i&&Yu){$i=!0;do for(var l=!1,a=Lu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var i=a.suspendedLanes,c=a.pingedLanes;u=(1<<31-Ge(42|e)+1)-1,u&=n&~(i&~c),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,gr(a,u))}else u=Y,u=Iu(a,a===k?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(u&3)||En(a,u)||(l=!0,gr(a,u));a=a.next}while(l);$i=!1}}function Yv(){Hh()}function Hh(){Yu=Zc=!1;var e=0;It!==0&&Wv()&&(e=It);for(var t=Ye(),l=null,a=Lu;a!==null;){var n=a.next,u=Bh(a,t);u===0?(a.next=null,l===null?Lu=n:l.next=n,n===null&&(ql=l)):(l=a,(e!==0||u&3)&&(Yu=!0)),a=n}de!==0&&de!==5||Cn(e),It!==0&&(It=0)}function Bh(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var i=31-Ge(u),c=1<<i,s=n[i];s===-1?(!(c&l)||c&a)&&(n[i]=dy(c,t)):s<=t&&(e.expiredLanes|=c),u&=~c}if(t=k,l=Y,l=Iu(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Z===2||Z===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&ji(a),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||En(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&ji(a),ds(l)){case 2:case 8:l=jo;break;case 32:l=xu;break;case 268435456:l=No;break;default:l=xu}return a=wh.bind(null,e),l=rs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&ji(a),e.callbackPriority=2,e.callbackNode=null,2}function wh(e,t){if(de!==0&&de!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(di()&&e.callbackNode!==l)return null;var a=Y;return a=Iu(e,e===k?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Eh(e,a,t),Bh(e,Ye()),e.callbackNode!=null&&e.callbackNode===l?wh.bind(null,e):null)}function gr(e,t){if(di())return null;Eh(e,t,!0)}function qv(){Iv(function(){X&6?rs(Eo,Yv):Hh()})}function Ws(){if(It===0){var e=fa;e===0&&(e=Yn,Yn<<=1,!(Yn&261888)&&(Yn=256)),It=e}return It}function Sr(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function br(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function Gv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Sr((n[Me]||null).action),i=a.submitter;i&&(t=(t=i[Me]||null)?Sr(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var c=new Pu("action","action",null,a,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(It!==0){var s=i?br(n,i):new FormData(n);Uc(l,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?br(n,i):new FormData(n),Uc(l,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var Wi=0;Wi<Ec.length;Wi++){var Fi=Ec[Wi],Xv=Fi.toLowerCase(),Qv=Fi[0].toUpperCase()+Fi.slice(1);st(Xv,"on"+Qv)}st($o,"onAnimationEnd");st(Wo,"onAnimationIteration");st(Fo,"onAnimationStart");st("dblclick","onDoubleClick");st("focusin","onFocus");st("focusout","onBlur");st(uv,"onTransitionRun");st(iv,"onTransitionStart");st(cv,"onTransitionCancel");st(Io,"onTransitionEnd");ca("onMouseEnter",["mouseout","mouseover"]);ca("onMouseLeave",["mouseout","mouseover"]);ca("onPointerEnter",["pointerout","pointerover"]);ca("onPointerLeave",["pointerout","pointerover"]);Rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Rl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var dn="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(" "),Zv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dn));function Lh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var i=a.length-1;0<=i;i--){var c=a[i],s=c.instance,r=c.currentTarget;if(c=c.listener,s!==u&&n.isPropagationStopped())break e;u=c,n.currentTarget=r;try{u(n)}catch(d){ju(d)}n.currentTarget=null,u=s}else for(i=0;i<a.length;i++){if(c=a[i],s=c.instance,r=c.currentTarget,c=c.listener,s!==u&&n.isPropagationStopped())break e;u=c,n.currentTarget=r;try{u(n)}catch(d){ju(d)}n.currentTarget=null,u=s}}}}function w(e,t){var l=t[mc];l===void 0&&(l=t[mc]=new Set);var a=e+"__bubble";l.has(a)||(Yh(t,e,2,!1),l.add(a))}function Ii(e,t,l){var a=0;t&&(a|=4),Yh(l,e,a,t)}var $n="_reactListening"+Math.random().toString(36).slice(2);function Fs(e){if(!e[$n]){e[$n]=!0,Ro.forEach(function(l){l!=="selectionchange"&&(Zv.has(l)||Ii(l,!1,e),Ii(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$n]||(t[$n]=!0,Ii("selectionchange",!1,t))}}function Yh(e,t,l,a){switch(Ih(t)){case 2:var n=gp;break;case 8:n=Sp;break;default:n=tf}l=n.bind(null,t,l,e),n=void 0,!Sc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Pi(e,t,l,a,n){var u=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var c=a.stateNode.containerInfo;if(c===n)break;if(i===4)for(i=a.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===n)return;i=i.return}for(;c!==null;){if(i=Ql(c),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){a=u=i;continue e}c=c.parentNode}}a=a.return}Lo(function(){var r=u,d=ys(l),h=[];e:{var o=Po.get(e);if(o!==void 0){var p=Pu,b=e;switch(e){case"keypress":if(nu(l)===0)break e;case"keydown":case"keyup":p=wy;break;case"focusin":b="focus",p=_i;break;case"focusout":b="blur",p=_i;break;case"beforeblur":case"afterblur":p=_i;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=_f;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Ty;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=qy;break;case $o:case Wo:case Fo:p=_y;break;case Io:p=Xy;break;case"scroll":case"scrollend":p=jy;break;case"wheel":p=Zy;break;case"copy":case"cut":case"paste":p=Ry;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Rf;break;case"toggle":case"beforetoggle":p=Ky}var x=(t&4)!==0,E=!x&&(e==="scroll"||e==="scrollend"),m=x?o!==null?o+"Capture":null:o;x=[];for(var y=r,g;y!==null;){var S=y;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||m===null||(S=an(y,m),S!=null&&x.push(hn(y,S,g))),E)break;y=y.return}0<x.length&&(o=new p(o,b,null,l,d),h.push({event:o,listeners:x}))}}if(!(t&7)){e:{if(o=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",o&&l!==gc&&(b=l.relatedTarget||l.fromElement)&&(Ql(b)||b[ga]))break e;if((p||o)&&(o=d.window===d?d:(o=d.ownerDocument)?o.defaultView||o.parentWindow:window,p?(b=l.relatedTarget||l.toElement,p=r,b=b?Ql(b):null,b!==null&&(E=bn(b),x=b.tag,b!==E||x!==5&&x!==27&&x!==6)&&(b=null)):(p=null,b=r),p!==b)){if(x=_f,S="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(x=Rf,S="onPointerLeave",m="onPointerEnter",y="pointer"),E=p==null?o:Ya(p),g=b==null?o:Ya(b),o=new x(S,y+"leave",p,l,d),o.target=E,o.relatedTarget=g,S=null,Ql(d)===r&&(x=new x(m,y+"enter",b,l,d),x.target=g,x.relatedTarget=E,S=x),E=S,p&&b)t:{for(x=Vv,m=p,y=b,g=0,S=m;S;S=x(S))g++;S=0;for(var T=y;T;T=x(T))S++;for(;0<g-S;)m=x(m),g--;for(;0<S-g;)y=x(y),S--;for(;g--;){if(m===y||y!==null&&m===y.alternate){x=m;break t}m=x(m),y=x(y)}x=null}else x=null;p!==null&&xr(h,o,p,x,!1),b!==null&&E!==null&&xr(h,E,b,x,!0)}}e:{if(o=r?Ya(r):window,p=o.nodeName&&o.nodeName.toLowerCase(),p==="select"||p==="input"&&o.type==="file")var O=Uf;else if(Mf(o))if(Zo)O=lv;else{O=ev;var _=Py}else p=o.nodeName,!p||p.toLowerCase()!=="input"||o.type!=="checkbox"&&o.type!=="radio"?r&&ms(r.elementType)&&(O=Uf):O=tv;if(O&&(O=O(e,r))){Qo(h,O,l,d);break e}_&&_(e,o,r),e==="focusout"&&r&&o.type==="number"&&r.memoizedProps.value!=null&&pc(o,"number",o.value)}switch(_=r?Ya(r):window,e){case"focusin":(Mf(_)||_.contentEditable==="true")&&(Kl=_,bc=r,Va=null);break;case"focusout":Va=bc=Kl=null;break;case"mousedown":xc=!0;break;case"contextmenu":case"mouseup":case"dragend":xc=!1,Yf(h,l,d);break;case"selectionchange":if(nv)break;case"keydown":case"keyup":Yf(h,l,d)}var N;if(gs)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Vl?Go(e,l)&&(R="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(R="onCompositionStart");R&&(qo&&l.locale!=="ko"&&(Vl||R!=="onCompositionStart"?R==="onCompositionEnd"&&Vl&&(N=Yo()):($t=d,vs="value"in $t?$t.value:$t.textContent,Vl=!0)),_=qu(r,R),0<_.length&&(R=new Cf(R,e,null,l,d),h.push({event:R,listeners:_}),N?R.data=N:(N=Xo(l),N!==null&&(R.data=N)))),(N=ky?$y(e,l):Wy(e,l))&&(R=qu(r,"onBeforeInput"),0<R.length&&(_=new Cf("onBeforeInput","beforeinput",null,l,d),h.push({event:_,listeners:R}),_.data=N)),Gv(h,e,r,l,d)}Lh(h,t)})}function hn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function qu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=an(e,l),n!=null&&a.unshift(hn(e,n,u)),n=an(e,t),n!=null&&a.push(hn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function Vv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function xr(e,t,l,a,n){for(var u=t._reactName,i=[];l!==null&&l!==a;){var c=l,s=c.alternate,r=c.stateNode;if(c=c.tag,s!==null&&s===a)break;c!==5&&c!==26&&c!==27||r===null||(s=r,n?(r=an(l,u),r!=null&&i.unshift(hn(l,r,s))):n||(r=an(l,u),r!=null&&i.push(hn(l,r,s)))),l=l.return}i.length!==0&&e.push({event:t,listeners:i})}var Kv=/\r\n?/g,Jv=/\u0000|\uFFFD/g;function Er(e){return(typeof e=="string"?e:""+e).replace(Kv,`
49
- `).replace(Jv,"")}function qh(e,t){return t=Er(t),Er(e)===t}function K(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||sa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&sa(e,""+a);break;case"className":Xn(e,"class",a);break;case"tabIndex":Xn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Xn(e,l,a);break;case"style":wo(e,a,u);break;case"data":if(t!=="object"){Xn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&K(e,t,"name",n.name,n,null),K(e,t,"formEncType",n.formEncType,n,null),K(e,t,"formMethod",n.formMethod,n,null),K(e,t,"formTarget",n.formTarget,n,null)):(K(e,t,"encType",n.encType,n,null),K(e,t,"method",n.method,n,null),K(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=lu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Ct);break;case"onScroll":a!=null&&w("scroll",e);break;case"onScrollEnd":a!=null&&w("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(j(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(j(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=lu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":w("beforetoggle",e),w("toggle",e),tu(e,"popover",a);break;case"xlinkActuate":bt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":bt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":bt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":bt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":bt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":bt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":bt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":bt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":bt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":tu(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=xy.get(l)||l,tu(e,l,a))}}function Vc(e,t,l,a,n,u){switch(l){case"style":wo(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(j(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(j(60));e.innerHTML=l}}break;case"children":typeof a=="string"?sa(e,a):(typeof a=="number"||typeof a=="bigint")&&sa(e,""+a);break;case"onScroll":a!=null&&w("scroll",e);break;case"onScrollEnd":a!=null&&w("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ct);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Oo.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),u=e[Me]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):tu(e,l,a)}}}function Ne(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":w("error",e),w("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var i=l[u];if(i!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:K(e,t,u,i,l,null)}}n&&K(e,t,"srcSet",l.srcSet,l,null),a&&K(e,t,"src",l.src,l,null);return;case"input":w("invalid",e);var c=u=i=n=null,s=null,r=null;for(a in l)if(l.hasOwnProperty(a)){var d=l[a];if(d!=null)switch(a){case"name":n=d;break;case"type":i=d;break;case"checked":s=d;break;case"defaultChecked":r=d;break;case"value":u=d;break;case"defaultValue":c=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(j(137,t));break;default:K(e,t,a,d,l,null)}}Uo(e,u,c,s,r,i,n,!1);return;case"select":w("invalid",e),a=i=u=null;for(n in l)if(l.hasOwnProperty(n)&&(c=l[n],c!=null))switch(n){case"value":u=c;break;case"defaultValue":i=c;break;case"multiple":a=c;default:K(e,t,n,c,l,null)}t=u,l=i,e.multiple=!!a,t!=null?ea(e,!!a,t,!1):l!=null&&ea(e,!!a,l,!0);return;case"textarea":w("invalid",e),u=n=a=null;for(i in l)if(l.hasOwnProperty(i)&&(c=l[i],c!=null))switch(i){case"value":a=c;break;case"defaultValue":n=c;break;case"children":u=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(j(91));break;default:K(e,t,i,c,l,null)}Bo(e,a,n,u);return;case"option":for(s in l)if(l.hasOwnProperty(s)&&(a=l[s],a!=null))switch(s){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:K(e,t,s,a,l,null)}return;case"dialog":w("beforetoggle",e),w("toggle",e),w("cancel",e),w("close",e);break;case"iframe":case"object":w("load",e);break;case"video":case"audio":for(a=0;a<dn.length;a++)w(dn[a],e);break;case"image":w("error",e),w("load",e);break;case"details":w("toggle",e);break;case"embed":case"source":case"link":w("error",e),w("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(r in l)if(l.hasOwnProperty(r)&&(a=l[r],a!=null))switch(r){case"children":case"dangerouslySetInnerHTML":throw Error(j(137,t));default:K(e,t,r,a,l,null)}return;default:if(ms(t)){for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!==void 0&&Vc(e,t,d,a,l,void 0));return}}for(c in l)l.hasOwnProperty(c)&&(a=l[c],a!=null&&K(e,t,c,a,l,null))}function kv(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,i=null,c=null,s=null,r=null,d=null;for(p in l){var h=l[p];if(l.hasOwnProperty(p)&&h!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=h;default:a.hasOwnProperty(p)||K(e,t,p,null,a,h)}}for(var o in a){var p=a[o];if(h=l[o],a.hasOwnProperty(o)&&(p!=null||h!=null))switch(o){case"type":u=p;break;case"name":n=p;break;case"checked":r=p;break;case"defaultChecked":d=p;break;case"value":i=p;break;case"defaultValue":c=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(j(137,t));break;default:p!==h&&K(e,t,o,p,a,h)}}vc(e,i,c,s,r,d,u,n);return;case"select":p=i=c=o=null;for(u in l)if(s=l[u],l.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":p=s;default:a.hasOwnProperty(u)||K(e,t,u,null,a,s)}for(n in a)if(u=a[n],s=l[n],a.hasOwnProperty(n)&&(u!=null||s!=null))switch(n){case"value":o=u;break;case"defaultValue":c=u;break;case"multiple":i=u;default:u!==s&&K(e,t,n,u,a,s)}t=c,l=i,a=p,o!=null?ea(e,!!l,o,!1):!!a!=!!l&&(t!=null?ea(e,!!l,t,!0):ea(e,!!l,l?[]:"",!1));return;case"textarea":p=o=null;for(c in l)if(n=l[c],l.hasOwnProperty(c)&&n!=null&&!a.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:K(e,t,c,null,a,n)}for(i in a)if(n=a[i],u=l[i],a.hasOwnProperty(i)&&(n!=null||u!=null))switch(i){case"value":o=n;break;case"defaultValue":p=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(j(91));break;default:n!==u&&K(e,t,i,n,a,u)}Ho(e,o,p);return;case"option":for(var b in l)if(o=l[b],l.hasOwnProperty(b)&&o!=null&&!a.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:K(e,t,b,null,a,o)}for(s in a)if(o=a[s],p=l[s],a.hasOwnProperty(s)&&o!==p&&(o!=null||p!=null))switch(s){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:K(e,t,s,o,a,p)}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 x in l)o=l[x],l.hasOwnProperty(x)&&o!=null&&!a.hasOwnProperty(x)&&K(e,t,x,null,a,o);for(r in a)if(o=a[r],p=l[r],a.hasOwnProperty(r)&&o!==p&&(o!=null||p!=null))switch(r){case"children":case"dangerouslySetInnerHTML":if(o!=null)throw Error(j(137,t));break;default:K(e,t,r,o,a,p)}return;default:if(ms(t)){for(var E in l)o=l[E],l.hasOwnProperty(E)&&o!==void 0&&!a.hasOwnProperty(E)&&Vc(e,t,E,void 0,a,o);for(d in a)o=a[d],p=l[d],!a.hasOwnProperty(d)||o===p||o===void 0&&p===void 0||Vc(e,t,d,o,a,p);return}}for(var m in l)o=l[m],l.hasOwnProperty(m)&&o!=null&&!a.hasOwnProperty(m)&&K(e,t,m,null,a,o);for(h in a)o=a[h],p=l[h],!a.hasOwnProperty(h)||o===p||o==null&&p==null||K(e,t,h,o,a,p)}function jr(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $v(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,i=n.initiatorType,c=n.duration;if(u&&c&&jr(i)){for(i=0,c=n.responseEnd,a+=1;a<l.length;a++){var s=l[a],r=s.startTime;if(r>c)break;var d=s.transferSize,h=s.initiatorType;d&&jr(h)&&(s=s.responseEnd,i+=d*(s<c?1:(c-r)/(s-r)))}if(--a,t+=8*(u+i)/(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 Kc=null,Jc=null;function Gu(e){return e.nodeType===9?e:e.ownerDocument}function Nr(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 Gh(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 kc(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 ec=null;function Wv(){var e=window.event;return e&&e.type==="popstate"?e===ec?!1:(ec=e,!0):(ec=null,!1)}var Xh=typeof setTimeout=="function"?setTimeout:void 0,Fv=typeof clearTimeout=="function"?clearTimeout:void 0,Tr=typeof Promise=="function"?Promise:void 0,Iv=typeof queueMicrotask=="function"?queueMicrotask:typeof Tr<"u"?function(e){return Tr.resolve(null).then(e).catch(Pv)}:Xh;function Pv(e){setTimeout(function(){throw e})}function hl(e){return e==="head"}function Ar(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),va(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")tn(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,tn(l);for(var u=l.firstChild;u;){var i=u.nextSibling,c=u.nodeName;u[Nn]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=i}}else l==="body"&&tn(e.ownerDocument.body);l=n}while(l);va(t)}function zr(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function $c(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":$c(l),hs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function ep(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Nn])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=tt(e.nextSibling),e===null)break}return null}function tp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=tt(e.nextSibling),e===null))return null;return e}function Qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tt(e.nextSibling),e===null))return null;return e}function Wc(e){return e.data==="$?"||e.data==="$~"}function Fc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function lp(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function tt(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 Ic=null;function _r(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return tt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Cr(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Zh(e,t,l){switch(t=Gu(l),e){case"html":if(e=t.documentElement,!e)throw Error(j(452));return e;case"head":if(e=t.head,!e)throw Error(j(453));return e;case"body":if(e=t.body,!e)throw Error(j(454));return e;default:throw Error(j(451))}}function tn(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);hs(e)}var lt=new Map,Rr=new Set;function Xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var qt=Q.d;Q.d={f:ap,r:np,D:up,C:ip,L:cp,m:sp,X:rp,S:fp,M:op};function ap(){var e=qt.f(),t=ri();return e||t}function np(e){var t=Sa(e);t!==null&&t.tag===5&&t.type==="form"?wd(t):qt.r(e)}var ja=typeof document>"u"?null:document;function Vh(e,t,l){var a=ja;if(a&&typeof t=="string"&&t){var n=Fe(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Rr.has(n)||(Rr.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Ne(t,"link",e),ve(t),a.head.appendChild(t)))}}function up(e){qt.D(e),Vh("dns-prefetch",e,null)}function ip(e,t){qt.C(e,t),Vh("preconnect",e,t)}function cp(e,t,l){qt.L(e,t,l);var a=ja;if(a&&e&&t){var n='link[rel="preload"][as="'+Fe(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Fe(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Fe(l.imageSizes)+'"]')):n+='[href="'+Fe(e)+'"]';var u=n;switch(t){case"style":u=ya(e);break;case"script":u=Na(e)}lt.has(u)||(e=te({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),lt.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Rn(u))||t==="script"&&a.querySelector(On(u))||(t=a.createElement("link"),Ne(t,"link",e),ve(t),a.head.appendChild(t)))}}function sp(e,t){qt.m(e,t);var l=ja;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Fe(a)+'"][href="'+Fe(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Na(e)}if(!lt.has(u)&&(e=te({rel:"modulepreload",href:e},t),lt.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(On(u)))return}a=l.createElement("link"),Ne(a,"link",e),ve(a),l.head.appendChild(a)}}}function fp(e,t,l){qt.S(e,t,l);var a=ja;if(a&&e){var n=Pl(a).hoistableStyles,u=ya(e);t=t||"default";var i=n.get(u);if(!i){var c={loading:0,preload:null};if(i=a.querySelector(Rn(u)))c.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},l),(l=lt.get(u))&&Is(e,l);var s=i=a.createElement("link");ve(s),Ne(s,"link",e),s._p=new Promise(function(r,d){s.onload=r,s.onerror=d}),s.addEventListener("load",function(){c.loading|=1}),s.addEventListener("error",function(){c.loading|=2}),c.loading|=4,du(i,t,a)}i={type:"stylesheet",instance:i,count:1,state:c},n.set(u,i)}}}function rp(e,t){qt.X(e,t);var l=ja;if(l&&e){var a=Pl(l).hoistableScripts,n=Na(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=te({src:e,async:!0},t),(t=lt.get(n))&&Ps(e,t),u=l.createElement("script"),ve(u),Ne(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function op(e,t){qt.M(e,t);var l=ja;if(l&&e){var a=Pl(l).hoistableScripts,n=Na(e),u=a.get(n);u||(u=l.querySelector(On(n)),u||(e=te({src:e,async:!0,type:"module"},t),(t=lt.get(n))&&Ps(e,t),u=l.createElement("script"),ve(u),Ne(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Or(e,t,l,a){var n=(n=Pt.current)?Xu(n):null;if(!n)throw Error(j(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ya(l.href),l=Pl(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ya(l.href);var u=Pl(n).hoistableStyles,i=u.get(e);if(i||(n=n.ownerDocument||n,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,i),(u=n.querySelector(Rn(e)))&&!u._p&&(i.instance=u,i.state.loading=5),lt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},lt.set(e,l),u||dp(n,e,l,i.state))),t&&a===null)throw Error(j(528,""));return i}if(t&&a!==null)throw Error(j(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Na(l),l=Pl(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(j(444,e))}}function ya(e){return'href="'+Fe(e)+'"'}function Rn(e){return'link[rel="stylesheet"]['+e+"]"}function Kh(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function dp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Ne(t,"link",l),ve(t),e.head.appendChild(t))}function Na(e){return'[src="'+Fe(e)+'"]'}function On(e){return"script[async]"+e}function Dr(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Fe(l.href)+'"]');if(a)return t.instance=a,ve(a),a;var n=te({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),ve(a),Ne(a,"style",n),du(a,l.precedence,e),t.instance=a;case"stylesheet":n=ya(l.href);var u=e.querySelector(Rn(n));if(u)return t.state.loading|=4,t.instance=u,ve(u),u;a=Kh(l),(n=lt.get(n))&&Is(a,n),u=(e.ownerDocument||e).createElement("link"),ve(u);var i=u;return i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Ne(u,"link",a),t.state.loading|=4,du(u,l.precedence,e),t.instance=u;case"script":return u=Na(l.src),(n=e.querySelector(On(u)))?(t.instance=n,ve(n),n):(a=l,(n=lt.get(u))&&(a=te({},l),Ps(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ve(n),Ne(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(j(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,du(a,l.precedence,e));return t.instance}function du(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,i=0;i<a.length;i++){var c=a[i];if(c.dataset.precedence===t)u=c;else if(u!==n)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hu=null;function Mr(e,t,l){if(hu===null){var a=new Map,n=hu=new Map;n.set(l,a)}else n=hu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Nn]||u[xe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var i=u.getAttribute(t)||"";i=e+i;var c=a.get(i);c?c.push(u):a.set(i,[u])}}return a}function Ur(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function hp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Jh(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function mp(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(l.state.loading&4)){if(l.instance===null){var n=ya(a.href),u=t.querySelector(Rn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,ve(u);return}u=t.ownerDocument||t,a=Kh(a),(n=lt.get(n))&&Is(a,n),u=u.createElement("link"),ve(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),Ne(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=Qu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var tc=0;function yp(e,t){return e.stylesheets&&e.count===0&&mu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&mu(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&tc===0&&(tc=62500*$v());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mu(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>tc?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Qu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zu=null;function mu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zu=new Map,t.forEach(vp,e),Zu=null,Qu.call(e))}function vp(e,t){if(!(t.state.loading&4)){var l=Zu.get(e);if(l)var a=l.get(null);else{l=new Map,Zu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var i=n[u];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(l.set(i.dataset.precedence,i),a=i)}a&&l.set(null,a)}n=t.instance,i=n.getAttribute("data-precedence"),u=l.get(i)||a,u===a&&l.set(null,n),l.set(i,n),this.count++,a=Qu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var mn={$$typeof:_t,Provider:null,Consumer:null,_currentValue:bl,_currentValue2:bl,_threadCount:0};function pp(e,t,l,a,n,u,i,c,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=Ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ni(0),this.hiddenUpdates=Ni(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function kh(e,t,l,a,n,u,i,c,s,r,d,h){return e=new pp(e,t,l,i,s,r,d,h,c),t=1,u===!0&&(t|=24),u=we(3,null,null,t),e.current=u,u.stateNode=e,t=Ts(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},_s(u),e}function $h(e){return e?(e=$l,e):$l}function Wh(e,t,l,a,n,u){n=$h(n),a.context===null?a.context=n:a.pendingContext=n,a=tl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=ll(e,a,t),l!==null&&(De(l,e,t),Ja(l,e,t))}function Hr(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ef(e,t){Hr(e,t),(e=e.alternate)&&Hr(e,t)}function Fh(e){if(e.tag===13||e.tag===31){var t=Ml(e,67108864);t!==null&&De(t,e,67108864),ef(e,67108864)}}function Br(e){if(e.tag===13||e.tag===31){var t=Xe();t=os(t);var l=Ml(e,t);l!==null&&De(l,e,t),ef(e,t)}}var Vu=!0;function gp(e,t,l,a){var n=M.T;M.T=null;var u=Q.p;try{Q.p=2,tf(e,t,l,a)}finally{Q.p=u,M.T=n}}function Sp(e,t,l,a){var n=M.T;M.T=null;var u=Q.p;try{Q.p=8,tf(e,t,l,a)}finally{Q.p=u,M.T=n}}function tf(e,t,l,a){if(Vu){var n=Pc(a);if(n===null)Pi(e,t,a,Ku,l),wr(e,a);else if(xp(n,e,t,l,a))a.stopPropagation();else if(wr(e,a),t&4&&-1<bp.indexOf(e)){for(;n!==null;){var u=Sa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var i=pl(u.pendingLanes);if(i!==0){var c=u;for(c.pendingLanes|=2,c.entangledLanes|=2;i;){var s=1<<31-Ge(i);c.entanglements[1]|=s,i&=~s}pt(u),!(X&6)&&(Hu=Ye()+500,Cn(0))}}break;case 31:case 13:c=Ml(u,2),c!==null&&De(c,u,2),ri(),ef(u,2)}if(u=Pc(a),u===null&&Pi(e,t,a,Ku,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Pi(e,t,a,null,l)}}function Pc(e){return e=ys(e),lf(e)}var Ku=null;function lf(e){if(Ku=null,e=Ql(e),e!==null){var t=bn(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=po(t),e!==null)return e;e=null}else if(l===31){if(e=go(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ku=e,null}function Ih(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(uy()){case Eo:return 2;case jo:return 8;case xu:case iy:return 32;case No:return 268435456;default:return 32}default:return 32}}var es=!1,ul=null,il=null,cl=null,yn=new Map,vn=new Map,Jt=[],bp="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 wr(e,t){switch(e){case"focusin":case"focusout":ul=null;break;case"dragenter":case"dragleave":il=null;break;case"mouseover":case"mouseout":cl=null;break;case"pointerover":case"pointerout":yn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":vn.delete(t.pointerId)}}function Ua(e,t,l,a,n,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:u,targetContainers:[n]},t!==null&&(t=Sa(t),t!==null&&Fh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function xp(e,t,l,a,n){switch(t){case"focusin":return ul=Ua(ul,e,t,l,a,n),!0;case"dragenter":return il=Ua(il,e,t,l,a,n),!0;case"mouseover":return cl=Ua(cl,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return yn.set(u,Ua(yn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,vn.set(u,Ua(vn.get(u)||null,e,t,l,a,n)),!0}return!1}function Ph(e){var t=Ql(e.target);if(t!==null){var l=bn(t);if(l!==null){if(t=l.tag,t===13){if(t=po(l),t!==null){e.blockedOn=t,xf(e.priority,function(){Br(l)});return}}else if(t===31){if(t=go(l),t!==null){e.blockedOn=t,xf(e.priority,function(){Br(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function yu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Pc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);gc=a,l.target.dispatchEvent(a),gc=null}else return t=Sa(l),t!==null&&Fh(t),e.blockedOn=l,!1;t.shift()}return!0}function Lr(e,t,l){yu(e)&&l.delete(t)}function Ep(){es=!1,ul!==null&&yu(ul)&&(ul=null),il!==null&&yu(il)&&(il=null),cl!==null&&yu(cl)&&(cl=null),yn.forEach(Lr),vn.forEach(Lr)}function Wn(e,t){e.blockedOn===t&&(e.blockedOn=null,es||(es=!0,he.unstable_scheduleCallback(he.unstable_NormalPriority,Ep)))}var Fn=null;function Yr(e){Fn!==e&&(Fn=e,he.unstable_scheduleCallback(he.unstable_NormalPriority,function(){Fn===e&&(Fn=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(lf(a||l)===null)continue;break}var u=Sa(l);u!==null&&(e.splice(t,3),t-=3,Uc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function va(e){function t(s){return Wn(s,e)}ul!==null&&Wn(ul,e),il!==null&&Wn(il,e),cl!==null&&Wn(cl,e),yn.forEach(t),vn.forEach(t);for(var l=0;l<Jt.length;l++){var a=Jt[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jt.length&&(l=Jt[0],l.blockedOn===null);)Ph(l),l.blockedOn===null&&Jt.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],i=n[Me]||null;if(typeof u=="function")i||Yr(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Me]||null)c=i.formAction;else if(lf(n)!==null)continue}else c=i.action;typeof c=="function"?l[a+1]=c:(l.splice(a,3),a-=3),Yr(l)}}}function em(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(i){return n=i})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function af(e){this._internalRoot=e}hi.prototype.render=af.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var l=t.current,a=Xe();Wh(l,a,e,t,null,null)};hi.prototype.unmount=af.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wh(e.current,2,null,e,null,null),ri(),t[ga]=null}};function hi(e){this._internalRoot=e}hi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Co();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Jt.length&&t!==0&&t<Jt[l].priority;l++);Jt.splice(l,0,e),l===0&&Ph(e)}};var qr=yo.version;if(qr!=="19.2.7")throw Error(j(527,qr,"19.2.7"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=Im(t),e=e!==null?So(e):null,e=e===null?null:e.stateNode,e};var jp={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var In=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!In.isDisabled&&In.supportsFiber)try{xn=In.inject(jp),qe=In}catch{}}Wu.createRoot=function(e,t){if(!vo(e))throw Error(j(299));var l=!1,a="",n=Vd,u=Kd,i=Jd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=kh(e,1,!1,null,null,l,a,null,n,u,i,em),e[ga]=t.current,Fs(e),new af(t)};Wu.hydrateRoot=function(e,t,l){if(!vo(e))throw Error(j(299));var a=!1,n="",u=Vd,i=Kd,c=Jd,s=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(i=l.onCaughtError),l.onRecoverableError!==void 0&&(c=l.onRecoverableError),l.formState!==void 0&&(s=l.formState)),t=kh(e,1,!0,t,l??null,a,n,s,u,i,c,em),t.context=$h(null),l=t.current,a=Xe(),a=os(a),n=tl(a),n.callback=null,ll(l,n,a),l=a,t.current.lanes=l,jn(t,l),pt(t),e[ga]=t.current,Fs(e),new hi(t)};Wu.version="19.2.7";function tm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tm)}catch(e){console.error(e)}}tm(),so.exports=Wu;var Np=so.exports;/**
50
- * react-router v7.18.1
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 nf=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,lm=/^[\\/]{2}/;function Tp(e,t){return t+e.replace(/\\/g,"/")}var Gr="popstate";function Xr(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Ap(e={}){function t(a,n){var r;let u=(r=n.state)==null?void 0:r.masked,{pathname:i,search:c,hash:s}=u||a.location;return ts("",{pathname:i,search:c,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default",u?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function l(a,n){return typeof n=="string"?n:pn(n)}return _p(t,l,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function yt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function zp(){return Math.random().toString(36).substring(2,10)}function Qr(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ts(e,t,l=null,a,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ta(t):t,state:l,key:t&&t.key||a||zp(),mask:n}}function pn({pathname:e="/",search:t="",hash:l=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),l&&l!=="#"&&(e+=l.charAt(0)==="#"?l:"#"+l),e}function Ta(e){let t={};if(e){let l=e.indexOf("#");l>=0&&(t.hash=e.substring(l),e=e.substring(0,l));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function _p(e,t,l,a={}){let{window:n=document.defaultView,v5Compat:u=!1}=a,i=n.history,c="POP",s=null,r=d();r==null&&(r=0,i.replaceState({...i.state,idx:r},""));function d(){return(i.state||{idx:null}).idx}function h(){c="POP";let E=d(),m=E==null?null:E-r;r=E,s&&s({action:c,location:x.location,delta:m})}function o(E,m){c="PUSH";let y=Xr(E)?E:ts(x.location,E,m);r=d()+1;let g=Qr(y,r),S=x.createHref(y.mask||y);try{i.pushState(g,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;n.location.assign(S)}u&&s&&s({action:c,location:x.location,delta:1})}function p(E,m){c="REPLACE";let y=Xr(E)?E:ts(x.location,E,m);r=d();let g=Qr(y,r),S=x.createHref(y.mask||y);i.replaceState(g,"",S),u&&s&&s({action:c,location:x.location,delta:0})}function b(E){return Cp(n,E)}let x={get action(){return c},get location(){return e(n,i)},listen(E){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(Gr,h),s=E,()=>{n.removeEventListener(Gr,h),s=null}},createHref(E){return t(n,E)},createURL:b,encodeLocation(E){let m=b(E);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:o,replace:p,go(E){return i.go(E)}};return x}function Cp(e,t,l=!1){let a="http://localhost";e&&(a=e.location.origin!=="null"?e.location.origin:e.location.href),ae(a,"No window.location.(origin|href) available to create URL");let n=typeof t=="string"?t:pn(t);return n=n.replace(/ $/,"%20"),!l&&lm.test(n)&&(n=a+n),new URL(n,a)}function am(e,t,l="/"){return Rp(e,t,l,!1)}function Rp(e,t,l,a,n){let u=typeof t=="string"?Ta(t):t,i=Yt(u.pathname||"/",l);if(i==null)return null;let c=Op(e),s=null,r=sm(i);for(let d=0;s==null&&d<c.length;++d)s=Gp(c[d],r,a);return s}function Op(e){let t=nm(e);return Dp(t),t}function nm(e,t=[],l=[],a="",n=!1){let u=(i,c,s=n,r)=>{let d={relativePath:r===void 0?i.path||"":r,caseSensitive:i.caseSensitive===!0,childrenIndex:c,route:i};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(a)&&s)return;ae(d.relativePath.startsWith(a),`Absolute route path "${d.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(a.length)}let h=it([a,d.relativePath]),o=l.concat(d);i.children&&i.children.length>0&&(ae(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),nm(i.children,t,o,h,s)),!(i.path==null&&!i.index)&&t.push({path:h,score:Yp(h,i.index),routesMeta:o.map((p,b)=>{let[x,E]=cm(p.relativePath,p.caseSensitive,b===o.length-1);return{...p,matcher:x,compiledParams:E}})})};return e.forEach((i,c)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))u(i,c);else for(let r of um(i.path))u(i,c,!0,r)}),t}function um(e){let t=e.split("/");if(t.length===0)return[];let[l,...a]=t,n=l.endsWith("?"),u=l.replace(/\?$/,"");if(a.length===0)return n?[u,""]:[u];let i=um(a.join("/")),c=[];return c.push(...i.map(s=>s===""?u:[u,s].join("/"))),n&&c.push(...i),c.map(s=>e.startsWith("/")&&s===""?"/":s)}function Dp(e){e.sort((t,l)=>t.score!==l.score?l.score-t.score:qp(t.routesMeta.map(a=>a.childrenIndex),l.routesMeta.map(a=>a.childrenIndex)))}var Mp=/^:[\w-]+$/,Up=3,Hp=2,Bp=1,wp=10,Lp=-2,Zr=e=>e==="*";function Yp(e,t){let l=e.split("/"),a=l.length;return l.some(Zr)&&(a+=Lp),t&&(a+=Hp),l.filter(n=>!Zr(n)).reduce((n,u)=>n+(Mp.test(u)?Up:u===""?Bp:wp),a)}function qp(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function Gp(e,t,l=!1){let{routesMeta:a}=e,n={},u="/",i=[];for(let c=0;c<a.length;++c){let s=a[c],r=c===a.length-1,d=u==="/"?t:t.slice(u.length)||"/",h={path:s.relativePath,caseSensitive:s.caseSensitive,end:r},o=s.matcher&&s.compiledParams?im(h,d,s.matcher,s.compiledParams):gn(h,d),p=s.route;if(!o&&r&&l&&!a[a.length-1].route.index&&(o=gn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!o)return null;Object.assign(n,o.params),i.push({params:n,pathname:it([u,o.pathname]),pathnameBase:Zp(it([u,o.pathnameBase])),route:p}),o.pathnameBase!=="/"&&(u=it([u,o.pathnameBase]))}return i}function gn(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[l,a]=cm(e.path,e.caseSensitive,e.end);return im(e,t,l,a)}function im(e,t,l,a){let n=t.match(l);if(!n)return null;let u=n[0],i=u.replace(/(.)\/+$/,"$1"),c=n.slice(1);return{params:a.reduce((r,{paramName:d,isOptional:h},o)=>{if(d==="*"){let b=c[o]||"";i=u.slice(0,u.length-b.length).replace(/(.)\/+$/,"$1")}const p=c[o];return h&&!p?r[d]=void 0:r[d]=(p||"").replace(/%2F/g,"/"),r},{}),pathname:u,pathnameBase:i,pattern:e}}function cm(e,t=!1,l=!0){yt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,s,r,d)=>{if(a.push({paramName:c,isOptional:s!=null}),s){let h=d.charAt(r+i.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function sm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return yt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Yt(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let l=t.endsWith("/")?t.length-1:t.length,a=e.charAt(l);return a&&a!=="/"?null:e.slice(l)||"/"}function Xp(e,t="/"){let{pathname:l,search:a="",hash:n=""}=typeof e=="string"?Ta(e):e,u;return l?(l=rm(l),l.startsWith("/")?u=Vr(l.substring(1),"/"):u=Vr(l,t)):u=t,{pathname:u,search:Vp(a),hash:Kp(n)}}function Vr(e,t){let l=Ju(t).split("/");return e.split("/").forEach(n=>{n===".."?l.length>1&&l.pop():n!=="."&&l.push(n)}),l.length>1?l.join("/"):"/"}function lc(e,t,l,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qp(e){return e.filter((t,l)=>l===0||t.route.path&&t.route.path.length>0)}function fm(e){let t=Qp(e);return t.map((l,a)=>a===t.length-1?l.pathname:l.pathnameBase)}function uf(e,t,l,a=!1){let n;typeof e=="string"?n=Ta(e):(n={...e},ae(!n.pathname||!n.pathname.includes("?"),lc("?","pathname","search",n)),ae(!n.pathname||!n.pathname.includes("#"),lc("#","pathname","hash",n)),ae(!n.search||!n.search.includes("#"),lc("#","search","hash",n)));let u=e===""||n.pathname==="",i=u?"/":n.pathname,c;if(i==null)c=l;else{let h=t.length-1;if(!a&&i.startsWith("..")){let o=i.split("/");for(;o[0]==="..";)o.shift(),h-=1;n.pathname=o.join("/")}c=h>=0?t[h]:"/"}let s=Xp(n,c),r=i&&i!=="/"&&i.endsWith("/"),d=(u||i===".")&&l.endsWith("/");return!s.pathname.endsWith("/")&&(r||d)&&(s.pathname+="/"),s}var rm=e=>e.replace(/[\\/]{2,}/g,"/"),it=e=>rm(e.join("/")),Ju=e=>e.replace(/\/+$/,""),Zp=e=>Ju(e).replace(/^\/*/,"/"),Vp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Kp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Jp=class{constructor(e,t,l,a=!1){this.status=e,this.statusText=t||"",this.internal=a,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function kp(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function $p(e){let t=e.map(l=>l.route.path).filter(Boolean);return it(t)||"/"}var om=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function dm(e,t){let l=e;if(typeof l!="string"||!nf.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let a=l,n=!1;if(om)try{let u=new URL(window.location.href),i=lm.test(l)?new URL(Tp(l,u.protocol)):new URL(l),c=Yt(i.pathname,t);i.origin===u.origin&&c!=null?l=c+i.search+i.hash:n=!0}catch{yt(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var hm=["POST","PUT","PATCH","DELETE"];new Set(hm);var Wp=["GET",...hm];new Set(Wp);var Fp=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Ip(e){try{return Fp.includes(new URL(e).protocol)}catch{return!1}}var Aa=v.createContext(null);Aa.displayName="DataRouter";var mi=v.createContext(null);mi.displayName="DataRouterState";var mm=v.createContext(!1);function Pp(){return v.useContext(mm)}var ym=v.createContext({isTransitioning:!1});ym.displayName="ViewTransition";var eg=v.createContext(new Map);eg.displayName="Fetchers";var tg=v.createContext(null);tg.displayName="Await";var at=v.createContext(null);at.displayName="Navigation";var Dn=v.createContext(null);Dn.displayName="Location";var ft=v.createContext({outlet:null,matches:[],isDataRoute:!1});ft.displayName="Route";var cf=v.createContext(null);cf.displayName="RouteError";var vm="REACT_ROUTER_ERROR",lg="REDIRECT",ag="ROUTE_ERROR_RESPONSE";function ng(e){if(e.startsWith(`${vm}:${lg}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function ug(e){if(e.startsWith(`${vm}:${ag}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Jp(t.status,t.statusText,t.data)}catch{}}function ig(e,{relative:t}={}){ae(za(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:a}=v.useContext(at),{hash:n,pathname:u,search:i}=Mn(e,{relative:t}),c=u;return l!=="/"&&(c=u==="/"?l:it([l,u])),a.createHref({pathname:c,search:i,hash:n})}function za(){return v.useContext(Dn)!=null}function gt(){return ae(za(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Dn).location}function Ha(e){ae(za(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=gt();return v.useMemo(()=>gn(e,sm(t)),[t,e])}var pm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gm(e){v.useContext(at).static||v.useLayoutEffect(e)}function Sm(){let{isDataRoute:e}=v.useContext(ft);return e?xg():cg()}function cg(){ae(za(),"useNavigate() may be used only in the context of a <Router> component.");let e=v.useContext(Aa),{basename:t,navigator:l}=v.useContext(at),{matches:a}=v.useContext(ft),{pathname:n}=gt(),u=JSON.stringify(fm(a)),i=v.useRef(!1);return gm(()=>{i.current=!0}),v.useCallback((s,r={})=>{if(yt(i.current,pm),!i.current)return;if(typeof s=="number"){l.go(s);return}let d=uf(s,JSON.parse(u),n,r.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:it([t,d.pathname])),(r.replace?l.replace:l.push)(d,r.state,r)},[t,l,u,n,e])}var sg=v.createContext(null);function fg(e){let t=v.useContext(ft).outlet;return v.useMemo(()=>t&&v.createElement(sg.Provider,{value:e},t),[t,e])}function Hl(){let{matches:e}=v.useContext(ft),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Mn(e,{relative:t}={}){let{matches:l}=v.useContext(ft),{pathname:a}=gt(),n=JSON.stringify(fm(l));return v.useMemo(()=>uf(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function rg(e,t){return bm(e,t)}function bm(e,t,l){var E;ae(za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=v.useContext(at),{matches:n}=v.useContext(ft),u=n[n.length-1],i=u?u.params:{},c=u?u.pathname:"/",s=u?u.pathnameBase:"/",r=u&&u.route;{let m=r&&r.path||"";Em(c,!r||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let d=gt(),h;if(t){let m=typeof t=="string"?Ta(t):t;ae(s==="/"||((E=m.pathname)==null?void 0:E.startsWith(s)),`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 "${s}" but pathname "${m.pathname}" was given in the \`location\` prop.`),h=m}else h=d;let o=h.pathname||"/",p=o;if(s!=="/"){let m=s.replace(/^\//,"").split("/");p="/"+o.replace(/^\//,"").split("/").slice(m.length).join("/")}let b=l&&l.state.matches.length?l.state.matches.map(m=>Object.assign(m,{route:l.manifest[m.route.id]||m.route})):am(e,{pathname:p});yt(r||b!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),yt(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.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 x=yg(b&&b.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:it([s,a.encodeLocation?a.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?s:it([s,a.encodeLocation?a.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),n,l);return t&&x?v.createElement(Dn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},x):x}function og(){let e=bg(),t=kp(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),l=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},u={padding:"2px 4px",backgroundColor:a},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),l?v.createElement("pre",{style:n},l):null,i)}var dg=v.createElement(og,null),xm=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const l=ug(e.digest);l&&(e=l)}let t=e!==void 0?v.createElement(ft.Provider,{value:this.props.routeContext},v.createElement(cf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?v.createElement(hg,{error:e},t):t}};xm.contextType=mm;var ac=new WeakMap;function hg({children:e,error:t}){let{basename:l}=v.useContext(at);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=ng(t.digest);if(a){let n=ac.get(t);if(n)throw n;let u=dm(a.location,l),i=u.absoluteURL||u.to;if(Ip(i))throw new Error("Invalid redirect location");if(om&&!ac.get(t))if(u.isExternal||a.reloadDocument)window.location.href=i;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:a.replace}));throw ac.set(t,c),c}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}function mg({routeContext:e,match:t,children:l}){let a=v.useContext(Aa);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(ft.Provider,{value:e},l)}function yg(e,t=[],l){let a=l==null?void 0:l.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let n=e,u=a==null?void 0:a.errors;if(u!=null){let d=n.findIndex(h=>h.route.id&&(u==null?void 0:u[h.route.id])!==void 0);ae(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),n=n.slice(0,Math.min(n.length,d+1))}let i=!1,c=-1;if(l&&a){i=a.renderFallback;for(let d=0;d<n.length;d++){let h=n[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=d),h.route.id){let{loaderData:o,errors:p}=a,b=h.route.loader&&!o.hasOwnProperty(h.route.id)&&(!p||p[h.route.id]===void 0);if(h.route.lazy||b){l.isStatic&&(i=!0),c>=0?n=n.slice(0,c+1):n=[n[0]];break}}}}let s=l==null?void 0:l.onError,r=a&&s?(d,h)=>{var o,p;s(d,{location:a.location,params:((p=(o=a.matches)==null?void 0:o[0])==null?void 0:p.params)??{},pattern:$p(a.matches),errorInfo:h})}:void 0;return n.reduceRight((d,h,o)=>{let p,b=!1,x=null,E=null;a&&(p=u&&h.route.id?u[h.route.id]:void 0,x=h.route.errorElement||dg,i&&(c<0&&o===0?(Em("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,E=null):c===o&&(b=!0,E=h.route.hydrateFallbackElement||null)));let m=t.concat(n.slice(0,o+1)),y=()=>{let g;return p?g=x:b?g=E:h.route.Component?g=v.createElement(h.route.Component,null):h.route.element?g=h.route.element:g=d,v.createElement(mg,{match:h,routeContext:{outlet:d,matches:m,isDataRoute:a!=null},children:g})};return a&&(h.route.ErrorBoundary||h.route.errorElement||o===0)?v.createElement(xm,{location:a.location,revalidation:a.revalidation,component:x,error:p,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:r}):y()},null)}function sf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vg(e){let t=v.useContext(Aa);return ae(t,sf(e)),t}function pg(e){let t=v.useContext(mi);return ae(t,sf(e)),t}function gg(e){let t=v.useContext(ft);return ae(t,sf(e)),t}function ff(e){let t=gg(e),l=t.matches[t.matches.length-1];return ae(l.route.id,`${e} can only be used on routes that contain a unique "id"`),l.route.id}function Sg(){return ff("useRouteId")}function bg(){var a;let e=v.useContext(cf),t=pg("useRouteError"),l=ff("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[l]}function xg(){let{router:e}=vg("useNavigate"),t=ff("useNavigate"),l=v.useRef(!1);return gm(()=>{l.current=!0}),v.useCallback(async(n,u={})=>{yt(l.current,pm),l.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...u}))},[e,t])}var Kr={};function Em(e,t,l){!t&&!Kr[e]&&(Kr[e]=!0,yt(!1,l))}v.memo(Eg);function Eg({routes:e,manifest:t,future:l,state:a,isStatic:n,onError:u}){return bm(e,void 0,{manifest:t,state:a,isStatic:n,onError:u})}function jg(e){return fg(e.context)}function Ke(e){ae(!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 Ng({basename:e="/",children:t=null,location:l,navigationType:a="POP",navigator:n,static:u=!1,useTransitions:i}){ae(!za(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=v.useMemo(()=>({basename:c,navigator:n,static:u,useTransitions:i,future:{}}),[c,n,u,i]);typeof l=="string"&&(l=Ta(l));let{pathname:r="/",search:d="",hash:h="",state:o=null,key:p="default",mask:b}=l,x=v.useMemo(()=>{let E=Yt(r,c);return E==null?null:{location:{pathname:E,search:d,hash:h,state:o,key:p,mask:b},navigationType:a}},[c,r,d,h,o,p,a,b]);return yt(x!=null,`<Router basename="${c}"> is not able to match the URL "${r}${d}${h}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:v.createElement(at.Provider,{value:s},v.createElement(Dn.Provider,{children:t,value:x}))}function Tg({children:e,location:t}){return rg(ls(e),t)}function ls(e,t=[]){let l=[];return v.Children.forEach(e,(a,n)=>{if(!v.isValidElement(a))return;let u=[...t,n];if(a.type===v.Fragment){l.push.apply(l,ls(a.props.children,u));return}ae(a.type===Ke,`[${typeof a.type=="string"?a.type:a.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!a.props.index||!a.props.children,"An index route cannot have child routes.");let i={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,middleware:a.props.middleware,loader:a.props.loader,action:a.props.action,hydrateFallbackElement:a.props.hydrateFallbackElement,HydrateFallback:a.props.HydrateFallback,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.hasErrorBoundary===!0||a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(i.children=ls(a.props.children,u)),l.push(i)}),l}var vu="get",pu="application/x-www-form-urlencoded";function yi(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Ag(e){return yi(e)&&e.tagName.toLowerCase()==="button"}function zg(e){return yi(e)&&e.tagName.toLowerCase()==="form"}function _g(e){return yi(e)&&e.tagName.toLowerCase()==="input"}function Cg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Rg(e,t){return e.button===0&&(!t||t==="_self")&&!Cg(e)}var Pn=null;function Og(){if(Pn===null)try{new FormData(document.createElement("form"),0),Pn=!1}catch{Pn=!0}return Pn}var Dg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nc(e){return e!=null&&!Dg.has(e)?(yt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pu}"`),null):e}function Mg(e,t){let l,a,n,u,i;if(zg(e)){let c=e.getAttribute("action");a=c?Yt(c,t):null,l=e.getAttribute("method")||vu,n=nc(e.getAttribute("enctype"))||pu,u=new FormData(e)}else if(Ag(e)||_g(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||c.getAttribute("action");if(a=s?Yt(s,t):null,l=e.getAttribute("formmethod")||c.getAttribute("method")||vu,n=nc(e.getAttribute("formenctype"))||nc(c.getAttribute("enctype"))||pu,u=new FormData(c,e),!Og()){let{name:r,type:d,value:h}=e;if(d==="image"){let o=r?`${r}.`:"";u.append(`${o}x`,"0"),u.append(`${o}y`,"0")}else r&&u.append(r,h)}}else{if(yi(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=vu,a=null,n=pu,i=e}return u&&n==="text/plain"&&(i=u,u=void 0),{action:a,method:l.toLowerCase(),encType:n,formData:u,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rf(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jm(e,t,l,a){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return l?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&Yt(n.pathname,t)==="/"?n.pathname=`${Ju(t)}/_root.${a}`:n.pathname=`${Ju(n.pathname)}.${a}`,n}async function Ug(e,t){if(e.id in t)return t[e.id];try{let l=await import(e.module);return t[e.id]=l,l}catch(l){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Hg(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Bg(e,t,l){let a=await Promise.all(e.map(async n=>{let u=t.routes[n.route.id];if(u){let i=await Ug(u,l);return i.links?i.links():[]}return[]}));return qg(a.flat(1).filter(Hg).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function Jr(e,t,l,a,n,u){let i=(s,r)=>l[r]?s.route.id!==l[r].route.id:!0,c=(s,r)=>{var d;return l[r].pathname!==s.pathname||((d=l[r].route.path)==null?void 0:d.endsWith("*"))&&l[r].params["*"]!==s.params["*"]};return u==="assets"?t.filter((s,r)=>i(s,r)||c(s,r)):u==="data"?t.filter((s,r)=>{var h;let d=a.routes[s.route.id];if(!d||!d.hasLoader)return!1;if(i(s,r)||c(s,r))return!0;if(s.route.shouldRevalidate){let o=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((h=l[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof o=="boolean")return o}return!0}):[]}function wg(e,t,{includeHydrateFallback:l}={}){return Lg(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let u=[n.module];return n.clientActionModule&&(u=u.concat(n.clientActionModule)),n.clientLoaderModule&&(u=u.concat(n.clientLoaderModule)),l&&n.hydrateFallbackModule&&(u=u.concat(n.hydrateFallbackModule)),n.imports&&(u=u.concat(n.imports)),u}).flat(1))}function Lg(e){return[...new Set(e)]}function Yg(e){let t={},l=Object.keys(e).sort();for(let a of l)t[a]=e[a];return t}function qg(e,t){let l=new Set;return new Set(t),e.reduce((a,n)=>{let u=JSON.stringify(Yg(n));return l.has(u)||(l.add(u),a.push({key:u,link:n})),a},[])}function of(){let e=v.useContext(Aa);return rf(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Gg(){let e=v.useContext(mi);return rf(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var df=v.createContext(void 0);df.displayName="FrameworkContext";function vi(){let e=v.useContext(df);return rf(e,"You must render this element inside a <HydratedRouter> element"),e}function Xg(e,t){let l=v.useContext(df),[a,n]=v.useState(!1),[u,i]=v.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:r,onMouseLeave:d,onTouchStart:h}=t,o=v.useRef(null);v.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let x=m=>{m.forEach(y=>{i(y.isIntersecting)})},E=new IntersectionObserver(x,{threshold:.5});return o.current&&E.observe(o.current),()=>{E.disconnect()}}},[e]),v.useEffect(()=>{if(a){let x=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(x)}}},[a]);let p=()=>{n(!0)},b=()=>{n(!1),i(!1)};return l?e!=="intent"?[u,o,{}]:[u,o,{onFocus:Ba(c,p),onBlur:Ba(s,b),onMouseEnter:Ba(r,p),onMouseLeave:Ba(d,b),onTouchStart:Ba(h,p)}]:[!1,o,{}]}function Ba(e,t){return l=>{e&&e(l),l.defaultPrevented||t(l)}}function Qg({page:e,...t}){let l=Pp(),{nonce:a}=vi(),{router:n}=of(),u=v.useMemo(()=>am(n.routes,e,n.basename),[n.routes,e,n.basename]);return u?(t.nonce==null&&a&&(t={...t,nonce:a}),l?v.createElement(Vg,{page:e,matches:u,...t}):v.createElement(Kg,{page:e,matches:u,...t})):null}function Zg(e){let{manifest:t,routeModules:l}=vi(),[a,n]=v.useState([]);return v.useEffect(()=>{let u=!1;return Bg(e,t,l).then(i=>{u||n(i)}),()=>{u=!0}},[e,t,l]),a}function Vg({page:e,matches:t,...l}){let a=gt(),{future:n}=vi(),{basename:u}=of(),i=v.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let c=jm(e,u,n.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,r=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?s=!0:r.push(d.route.id);return s&&r.length>0&&c.searchParams.set("_routes",r.join(",")),[c.pathname+c.search]},[u,n.v8_trailingSlashAwareDataRequests,e,a,t]);return v.createElement(v.Fragment,null,i.map(c=>v.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...l})))}function Kg({page:e,matches:t,...l}){let a=gt(),{future:n,manifest:u,routeModules:i}=vi(),{basename:c}=of(),{loaderData:s,matches:r}=Gg(),d=v.useMemo(()=>Jr(e,t,r,u,a,"data"),[e,t,r,u,a]),h=v.useMemo(()=>Jr(e,t,r,u,a,"assets"),[e,t,r,u,a]),o=v.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let x=new Set,E=!1;if(t.forEach(y=>{var S;let g=u.routes[y.route.id];!g||!g.hasLoader||(!d.some(T=>T.route.id===y.route.id)&&y.route.id in s&&((S=i[y.route.id])!=null&&S.shouldRevalidate)||g.hasClientLoader?E=!0:x.add(y.route.id))}),x.size===0)return[];let m=jm(e,c,n.v8_trailingSlashAwareDataRequests,"data");return E&&x.size>0&&m.searchParams.set("_routes",t.filter(y=>x.has(y.route.id)).map(y=>y.route.id).join(",")),[m.pathname+m.search]},[c,n.v8_trailingSlashAwareDataRequests,s,a,u,d,t,e,i]),p=v.useMemo(()=>wg(h,u),[h,u]),b=Zg(h);return v.createElement(v.Fragment,null,o.map(x=>v.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...l})),p.map(x=>v.createElement("link",{key:x,rel:"modulepreload",href:x,...l})),b.map(({key:x,link:E})=>v.createElement("link",{key:x,nonce:l.nonce,...E,crossOrigin:E.crossOrigin??l.crossOrigin})))}function Jg(...e){return t=>{e.forEach(l=>{typeof l=="function"?l(t):l!=null&&(l.current=t)})}}var kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kg&&(window.__reactRouterVersion="7.18.1")}catch{}function $g({basename:e,children:t,useTransitions:l,window:a}){let n=v.useRef();n.current==null&&(n.current=Ap({window:a,v5Compat:!0}));let u=n.current,[i,c]=v.useState({action:u.action,location:u.location}),s=v.useCallback(r=>{l===!1?c(r):v.startTransition(()=>c(r))},[l]);return v.useLayoutEffect(()=>u.listen(s),[u,s]),v.createElement(Ng,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:u,useTransitions:l})}var ct=v.forwardRef(function({onClick:t,discover:l="render",prefetch:a="none",relative:n,reloadDocument:u,replace:i,mask:c,state:s,target:r,to:d,preventScrollReset:h,viewTransition:o,defaultShouldRevalidate:p,...b},x){let{basename:E,navigator:m,useTransitions:y}=v.useContext(at),g=typeof d=="string"&&nf.test(d),S=dm(d,E);d=S.to;let T=ig(d,{relative:n}),O=gt(),_=null;if(c){let ge=uf(c,[],O.mask?O.mask.pathname:"/",!0);E!=="/"&&(ge.pathname=ge.pathname==="/"?E:it([E,ge.pathname])),_=m.createHref(ge)}let[N,R,A]=Xg(a,b),q=Ig(d,{replace:i,mask:c,state:s,target:r,preventScrollReset:h,relative:n,viewTransition:o,defaultShouldRevalidate:p,useTransitions:y});function F(ge){t&&t(ge),ge.defaultPrevented||q(ge)}let rt=!(S.isExternal||u),St=v.createElement("a",{...b,...A,href:(rt?_:void 0)||S.absoluteURL||T,onClick:rt?F:t,ref:Jg(x,R),target:r,"data-discover":!g&&l==="render"?"true":void 0});return N&&!g?v.createElement(v.Fragment,null,St,v.createElement(Qg,{page:T})):St});ct.displayName="Link";var At=v.forwardRef(function({"aria-current":t="page",caseSensitive:l=!1,className:a="",end:n=!1,style:u,to:i,viewTransition:c,children:s,...r},d){let h=Mn(i,{relative:r.relative}),o=gt(),p=v.useContext(mi),{navigator:b,basename:x}=v.useContext(at),E=p!=null&&a0(h)&&c===!0,m=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,y=o.pathname,g=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;l||(y=y.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase()),g&&x&&(g=Yt(g,x)||g);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=y===m||!n&&y.startsWith(m)&&y.charAt(S)==="/",O=g!=null&&(g===m||!n&&g.startsWith(m)&&g.charAt(m.length)==="/"),_={isActive:T,isPending:O,isTransitioning:E},N=T?t:void 0,R;typeof a=="function"?R=a(_):R=[a,T?"active":null,O?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let A=typeof u=="function"?u(_):u;return v.createElement(ct,{...r,"aria-current":N,className:R,ref:d,style:A,to:i,viewTransition:c},typeof s=="function"?s(_):s)});At.displayName="NavLink";var Wg=v.forwardRef(({discover:e="render",fetcherKey:t,navigate:l,reloadDocument:a,replace:n,state:u,method:i=vu,action:c,onSubmit:s,relative:r,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:o,...p},b)=>{let{useTransitions:x}=v.useContext(at),E=t0(),m=l0(c,{relative:r}),y=i.toLowerCase()==="get"?"get":"post",g=typeof c=="string"&&nf.test(c),S=T=>{if(s&&s(T),T.defaultPrevented)return;T.preventDefault();let O=T.nativeEvent.submitter,_=(O==null?void 0:O.getAttribute("formmethod"))||i,N=()=>E(O||T.currentTarget,{fetcherKey:t,method:_,navigate:l,replace:n,state:u,relative:r,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:o});x&&l!==!1?v.startTransition(()=>N()):N()};return v.createElement("form",{ref:b,method:y,action:m,onSubmit:a?s:S,...p,"data-discover":!g&&e==="render"?"true":void 0})});Wg.displayName="Form";function Fg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nm(e){let t=v.useContext(Aa);return ae(t,Fg(e)),t}function Ig(e,{target:t,replace:l,mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:c,defaultShouldRevalidate:s,useTransitions:r}={}){let d=Sm(),h=gt(),o=Mn(e,{relative:i});return v.useCallback(p=>{if(Rg(p,t)){p.preventDefault();let b=l!==void 0?l:pn(h)===pn(o),x=()=>d(e,{replace:b,mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:c,defaultShouldRevalidate:s});r?v.startTransition(()=>x()):x()}},[h,d,o,l,a,n,t,e,u,i,c,s,r])}var Pg=0,e0=()=>`__${String(++Pg)}__`;function t0(){let{router:e}=Nm("useSubmit"),{basename:t}=v.useContext(at),l=Sg(),a=e.fetch,n=e.navigate;return v.useCallback(async(u,i={})=>{let{action:c,method:s,encType:r,formData:d,body:h}=Mg(u,t);if(i.navigate===!1){let o=i.fetcherKey||e0();await a(o,l,i.action||c,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||s,formEncType:i.encType||r,flushSync:i.flushSync})}else await n(i.action||c,{defaultShouldRevalidate:i.defaultShouldRevalidate,preventScrollReset:i.preventScrollReset,formData:d,body:h,formMethod:i.method||s,formEncType:i.encType||r,replace:i.replace,state:i.state,fromRouteId:l,flushSync:i.flushSync,viewTransition:i.viewTransition})},[a,n,t,l])}function l0(e,{relative:t}={}){let{basename:l}=v.useContext(at),a=v.useContext(ft);ae(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),u={...Mn(e||".",{relative:t})},i=gt();if(e==null){u.search=i.search;let c=new URLSearchParams(u.search),s=c.getAll("index");if(s.some(d=>d==="")){c.delete("index"),s.filter(h=>h).forEach(h=>c.append("index",h));let d=c.toString();u.search=d?`?${d}`:""}}return(!e||e===".")&&n.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),l!=="/"&&(u.pathname=u.pathname==="/"?l:it([l,u.pathname])),pn(u)}function a0(e,{relative:t}={}){let l=v.useContext(ym);ae(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Nm("useViewTransitionState"),n=Mn(e,{relative:t});if(!l.isTransitioning)return!1;let u=Yt(l.currentLocation.pathname,a)||l.currentLocation.pathname,i=Yt(l.nextLocation.pathname,a)||l.nextLocation.pathname;return gn(n.pathname,i)!=null||gn(n.pathname,u)!=null}const Se=async e=>{if(!e.ok)throw new Error((await e.json()).error??e.statusText);return await e.json()},Ve=async e=>{if(e.ok)return;const t=await e.json().catch(()=>({}));throw new Error(t.error??e.statusText)},B={login:(e,t)=>fetch("/api/login",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e,password:t})}).then(l=>l.ok),me:()=>fetch("/api/me").then(Se),logout:()=>fetch("/api/logout",{method:"POST"}).then(Ve),changeOwnPassword:(e,t)=>fetch("/api/account/password",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({current:e,next:t})}).then(Ve),requiredSecrets:e=>fetch(`/api/projects/${e}/required-secrets`).then(Se),revealSecret:(e,t)=>fetch(`/api/projects/${e}/secrets/${encodeURIComponent(t)}/value`).then(Se),setSecretMasked:(e,t,l)=>fetch(`/api/projects/${e}/secrets/${encodeURIComponent(t)}`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({masked:l})}).then(Ve),users:()=>fetch("/api/users").then(Se),createUser:(e,t,l)=>fetch("/api/users",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e,role:t,password:l})}).then(Se),removeUser:e=>fetch(`/api/users/${encodeURIComponent(e)}`,{method:"DELETE"}).then(Ve),projects:()=>fetch("/api/projects").then(Se),lanes:e=>fetch(`/api/projects/${e}/lanes`).then(Se),runsOf:e=>fetch(`/api/projects/${e}/runs`).then(Se),run:e=>fetch(`/api/runs/${e}`).then(Se),log:(e,t=0)=>fetch(`/api/runs/${e}/log?from=${t}`).then(l=>l.text()),removeProject:e=>fetch(`/api/projects/${e}`,{method:"DELETE"}).then(Se),forgetProjectVault:e=>fetch(`/api/projects/${e}/vault`,{method:"DELETE"}).then(Se),secrets:e=>fetch(`/api/projects/${e}/secrets`).then(Se),readiness:e=>fetch(`/api/projects/${e}/readiness`).then(Se),setSecret:(e,t,l,a)=>fetch(`/api/projects/${e}/secrets/${encodeURIComponent(t)}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({value:l,masked:a})}).then(Ve),deleteSecret:(e,t)=>fetch(`/api/projects/${e}/secrets/${encodeURIComponent(t)}`,{method:"DELETE"}).then(Ve),listCredentials:e=>fetch(`/api/projects/${e}/credentials`).then(Se),putCredential:(e,t,l)=>fetch(`/api/projects/${e}/credentials/${t}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(l)}).then(Ve),deleteCredential:(e,t)=>fetch(`/api/projects/${e}/credentials/${t}`,{method:"DELETE"}).then(Ve),fastfile:e=>fetch(`/api/projects/${e}/fastfile`).then(Se),saveFastfile:(e,t)=>fetch(`/api/projects/${e}/fastfile`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify({content:t})}).then(Ve),changes:e=>fetch(`/api/projects/${e}/changes`).then(Se),commit:(e,t)=>fetch(`/api/projects/${e}/commit`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({message:t})}).then(Ve),push:e=>fetch(`/api/projects/${e}/push`,{method:"POST"}).then(Ve),trigger:(e,t,l,a)=>fetch(`/api/projects/${e}/runs`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({lane:t,platform:l,params:a})}).then(Se),cancel:e=>fetch(`/api/runs/${e}/cancel`,{method:"POST"}).then(Ve)};function n0({onSuccess:e}){const[t,l]=v.useState(""),[a,n]=v.useState(""),[u,i]=v.useState(!1),c=async s=>{s.preventDefault(),await B.login(t.trim(),a)?e():i(!0)};return f.jsx("div",{className:"login",children:f.jsxs("form",{className:"panel",onSubmit:s=>void c(s),children:[f.jsx("p",{className:"brand",children:"laneyard"}),f.jsxs("label",{children:["name ",f.jsx("input",{type:"text",value:t,onChange:s=>l(s.target.value),autoFocus:!0,spellCheck:!1,autoComplete:"username"})]}),f.jsxs("label",{children:["password"," ",f.jsx("input",{type:"password",value:a,onChange:s=>n(s.target.value),autoComplete:"current-password"})]}),f.jsx("button",{type:"submit",children:"enter"}),u&&f.jsx("p",{className:"status-failed",children:"incorrect name or password"}),f.jsx("p",{className:"dim",children:"upgrading from 0.2? the account is called admin."})]})})}function u0(){const[e,t]=v.useState(()=>localStorage.getItem("laneyard-theme")??"dark");return v.useEffect(()=>{document.documentElement.dataset.theme=e,localStorage.setItem("laneyard-theme",e)},[e]),f.jsx("button",{onClick:()=>t(e==="dark"?"light":"dark"),children:e==="dark"?"paper":"dark"})}function i0(){const e=v.useContext(pi),[t,l]=v.useState(""),[a,n]=v.useState(""),[u,i]=v.useState(""),[c,s]=v.useState(!1),[r,d]=v.useState(null),[h,o]=v.useState(!1),p=u!==""&&a!==u,b=async x=>{x.preventDefault(),s(!0),d(null);try{await B.changeOwnPassword(t,a),l(""),n(""),i(""),o(!0)}catch(E){o(!1),d(E.message)}finally{s(!1)}};return f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"your account — change your password"}),f.jsxs("p",{className:"dim",children:["signed in as ",f.jsx("span",{className:"bright",children:e==null?void 0:e.name})," ",f.jsx("span",{className:"dim",children:e==null?void 0:e.role}),". your password is the one thing this page changes, and the one thing nobody else can change for you. the name is fixed — an admin makes another one."]}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"change password"}),f.jsxs("form",{className:"secret-form",onSubmit:x=>void b(x),children:[f.jsx("input",{type:"password",value:t,onChange:x=>l(x.target.value),placeholder:"current password",autoComplete:"current-password","aria-label":"current password"}),f.jsx("input",{type:"password",value:a,onChange:x=>n(x.target.value),placeholder:"new password",autoComplete:"new-password","aria-label":"new password"}),f.jsx("input",{type:"password",value:u,onChange:x=>i(x.target.value),placeholder:"again",autoComplete:"new-password","aria-label":"new password again"}),f.jsx("button",{type:"submit",disabled:c||t===""||a===""||a!==u,children:"change"})]}),p&&f.jsx("p",{className:"status-failed",children:"the two new passwords are not the same."}),f.jsx("p",{className:"dim",children:"the new password is hashed into this machine's config.yml. every other session this account has ends at once — a phone, another browser — and this page stays signed in."}),f.jsx("p",{className:"dim",children:"the current password is asked for even though you are already signed in: a session is a cookie in a browser that may have been left open."}),h&&f.jsxs("p",{children:[f.jsx("span",{className:"mark accent",children:"✓"})," ",f.jsx("span",{className:"dim",children:"password changed."})]}),r&&f.jsxs("p",{className:"status-failed",children:["refused — ",r]})]})}const c0="modulepreload",s0=function(e){return"/"+e},kr={},f0=function(t,l,a){let n=Promise.resolve();if(l&&l.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=Promise.allSettled(l.map(s=>{if(s=s0(s),s in kr)return;kr[s]=!0;const r=s.endsWith(".css"),d=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${d}`))return;const h=document.createElement("link");if(h.rel=r?"stylesheet":c0,r||(h.as="script"),h.crossOrigin="",h.href=s,c&&h.setAttribute("nonce",c),document.head.appendChild(h),r)return new Promise((o,p)=>{h.addEventListener("load",o),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})}))}function u(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&u(c.reason);return t().catch(u)})},r0=v.lazy(()=>f0(()=>import("./Editor-9nLYwtg7.js"),[]).then(e=>({default:e.Editor})));function o0(e){return e.startsWith("+++")||e.startsWith("---")||e.startsWith("@@")?"dim":e.startsWith("+")?"status-success":e.startsWith("-")?"status-failed":""}function d0({text:e}){return f.jsx("pre",{className:"diff panel",children:e.split(`
61
- `).map((t,l)=>f.jsx("div",{className:o0(t),children:t===""?" ":t},l))})}function h0(){const{slug:e=""}=Hl(),[t,l]=v.useState(null),[a,n]=v.useState(""),[u,i]=v.useState(null),c=v.useRef(null),[s,r]=v.useState(!1),[d,h]=v.useState(!1),[o,p]=v.useState(null),[b,x]=v.useState(null),[E,m]=v.useState(null),[y,g]=v.useState(""),[S,T]=v.useState(!1),[O,_]=v.useState(null),[N,R]=v.useState(null),[A,q]=v.useState(!1),F=()=>{B.changes(e).then(m).catch(C=>_(C.message))};v.useEffect(()=>{l(null),i(null),r(!1),p(null),x(null),q(!1),g(""),B.fastfile(e).then(C=>{l(C.content),n(C.content)}).catch(C=>i(C.message)),F()},[e]);const rt=async()=>{var z;const C=(z=c.current)==null?void 0:z.call(c);if(C!==void 0){h(!0),p(null);try{await B.saveFastfile(e,C),n(C),r(!1),x(new Date().toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})),F()}catch(D){p(D.message)}finally{h(!1)}}},St=async()=>{T(!0),_(null),R(null);try{await B.commit(e,y.trim()),g(""),q(!0),R("committed."),F()}catch(C){_(C.message)}finally{T(!1)}},ge=async()=>{T(!0),_(null),R(null);try{await B.push(e),q(!1),R("pushed.")}catch(C){_(C.message)}finally{T(!1)}};return f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"fastfile"}),f.jsx("p",{className:"dim",children:"the file every run of this project builds from. this is a text editor — saving is explicit, and the server parses what you send before it counts."}),u&&f.jsxs("p",{className:"status-failed",children:["unreadable fastfile — ",u]}),f.jsxs("p",{className:"dim editor-bar",children:[f.jsxs("span",{className:"grow",children:[t===null&&!u&&"reading repository…",t!==null&&s&&"unsaved changes",t!==null&&!s&&b&&`saved at ${b}`,t!==null&&!s&&!b&&"unchanged"]}),f.jsx("button",{onClick:()=>void rt(),disabled:d||!s,title:"write and verify",children:d?"verifying…":"save"})]}),o&&f.jsxs("p",{className:"status-failed save-error",children:["not saved — ",o,f.jsx("br",{}),f.jsx("span",{className:"dim",children:"the file on disk is unchanged, and your edits are still in the box below."})]}),t!==null&&f.jsx(v.Suspense,{fallback:f.jsx("div",{className:"editor panel"}),children:f.jsx(r0,{initial:t,baseline:a,read:c,onChange:r,onSave:()=>void rt()})}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"changes"}),E===null&&f.jsx("p",{className:"dim",children:"reading git…"}),E!==null&&E.files.length===0&&f.jsx("p",{className:"dim",children:"nothing uncommitted in this workspace."}),E!==null&&E.files.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("ul",{className:"rows",children:E.files.map(C=>f.jsxs("li",{children:[f.jsx("span",{className:"mark status-running",children:"▸"}),f.jsx("span",{className:"grow",children:C})]},C))}),f.jsx(d0,{text:E.diff})]}),f.jsxs("p",{className:"dim commit-bar",children:[f.jsx("input",{type:"text",value:y,onChange:C=>g(C.target.value),placeholder:"commit message",spellCheck:!1,autoComplete:"off","aria-label":"commit message"}),f.jsx("button",{onClick:()=>void St(),disabled:S||y.trim()===""||((E==null?void 0:E.files.length)??0)===0,children:"commit"}),A&&f.jsx("button",{onClick:()=>void ge(),disabled:S,children:"push"})]}),N&&f.jsx("p",{className:"dim",children:N}),O&&f.jsxs("p",{className:"status-failed",children:["refused — ",O]})]})}const m0={success:"✓",failed:"✗",interrupted:"✗",cancelled:"✗",running:"▸",preparing:"▸",queued:"○"},Sn=e=>m0[e??"queued"]??"○";function y0(e){const t=e%100>=11&&e%100<=13;return`${e}${t?"th":["th","st","nd","rd"][e%10]??"th"}`}function Tm(e,t){return e!=="queued"?e:t===null?"waiting":t===1?"waiting · next in queue":`waiting · ${y0(t)} in queue`}const v0={ok:"✓",warn:"▸",unknown:"○"},$r=e=>v0[e]??"○",Wr=e=>e==="ok"?"status-success":e==="warn"?"status-running":"status-queued",eu=e=>e==="queued"||e==="preparing"||e==="running";function p0(){var _;const{slug:e=""}=Hl(),t=((_=v.useContext(pi))==null?void 0:_.role)==="admin",l=Sm(),[a,n]=v.useState([]),[u,i]=v.useState([]),[c,s]=v.useState(null),[r,d]=v.useState(!0),[h,o]=v.useState(null),[p,b]=v.useState(null),x=Ha("/p/:slug/fastfile")!==null,E=Ha("/p/:slug/secrets")!==null,m=Ha("/p/:slug/signing")!==null,y=Ha("/p/:slug/readiness")!==null,g=Ha("/p/:slug/settings")!==null,S=x||E||m||y||g;v.useEffect(()=>{S||(n([]),s(null),d(!0),B.lanes(e).then(n).catch(N=>s(N.message)).finally(()=>d(!1)),B.runsOf(e).then(i).catch(()=>{}))},[e,S]);const T=async N=>{o(N.name),b(null);try{const{id:R}=await B.trigger(e,N.name,N.platform,{});l(`/r/${R}`)}catch(R){b(R.message),o(null)}},O=f.jsxs("nav",{className:"tabs",children:[f.jsx(At,{to:`/p/${e}`,end:!0,className:({isActive:N})=>N?"current":"",children:"lanes"}),t&&f.jsx(At,{to:`/p/${e}/fastfile`,className:({isActive:N})=>N?"current":"",children:"fastfile"}),t&&f.jsx(At,{to:`/p/${e}/secrets`,className:({isActive:N})=>N?"current":"",children:"secrets"}),t&&f.jsx(At,{to:`/p/${e}/signing`,className:({isActive:N})=>N?"current":"",children:"signing"}),f.jsx(At,{to:`/p/${e}/readiness`,className:({isActive:N})=>N?"current":"",children:"readiness"}),t&&f.jsx(At,{to:`/p/${e}/settings`,className:({isActive:N})=>N?"current":"",children:"settings"})]});return S?f.jsxs(f.Fragment,{children:[O,f.jsx(jg,{})]}):f.jsxs(f.Fragment,{children:[O,f.jsx("h2",{className:"section",children:"lanes"}),c&&f.jsxs("p",{className:"status-failed",children:["unreadable lanes — ",c]}),r&&f.jsx("p",{className:"dim",children:"reading repository…"}),!r&&!c&&a.filter(N=>!N.private).length===0&&f.jsx("p",{className:"dim",children:"no public lane in this Fastfile."}),f.jsx("ul",{className:"rows",children:a.filter(N=>!N.private).map(N=>f.jsxs("li",{children:[f.jsx("button",{onClick:()=>void T(N),disabled:h!==null,title:"run",children:"▶"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright",children:N.name})," ",N.platform&&f.jsx("span",{className:"dim",children:N.platform}),N.description&&f.jsx("div",{className:"dim",children:N.description})]})]},`${N.platform??""}:${N.name}`))}),p&&f.jsxs("p",{className:"status-failed",children:["launch refused — ",p]}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"runs"}),u.length===0&&f.jsx("p",{className:"dim",children:"no runs yet."}),f.jsx("ul",{className:"rows",children:u.map(N=>f.jsxs("li",{children:[f.jsxs(ct,{to:`/r/${N.id}`,className:"grow",children:[f.jsx("span",{className:`mark status-${N.status}`,children:Sn(N.status)})," ",f.jsxs("span",{className:"dim",children:["#",N.id]})," ",N.lane]}),f.jsx("span",{className:`status-${N.status}`,children:Tm(N.status,N.queuePosition)})]},N.id))})]})}function g0(){const[e,t]=v.useState([]),[l,a]=v.useState(null);return v.useEffect(()=>{B.projects().then(t).catch(n=>a(n.message))},[]),l?f.jsx("p",{className:"status-failed",children:l}):e.length===0?f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"projects"}),f.jsxs("p",{className:"dim",children:["no projects. run ",f.jsx("code",{children:"laneyard setup"})," from a project's folder to declare it."]})]}):f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"projects"}),f.jsx("ul",{className:"projects rows",children:e.map(n=>{var u,i;return f.jsxs("li",{children:[f.jsxs(ct,{to:`/p/${n.slug}`,className:"grow",children:[f.jsx("span",{className:`mark status-${((u=n.lastRun)==null?void 0:u.status)??"queued"}`,children:Sn((i=n.lastRun)==null?void 0:i.status)})," ",n.name]}),n.lastRun&&f.jsxs("span",{className:"dim",children:[" ",n.lastRun.lane]})]},n.slug)})})]})}const S0={all:"always",ios:"ios",android:"android"};function b0(e){const t={ok:0,warn:0,unknown:0};for(const l of(e==null?void 0:e.sections)??[])for(const a of l.checks)t[a.state]=(t[a.state]??0)+1;return t}const x0=[{state:"warn",one:"needs a look",many:"need a look"},{state:"unknown",one:"could not be told",many:"could not be told"},{state:"ok",one:"settled",many:"settled"}],E0=e=>new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});function j0(){const{slug:e=""}=Hl(),[t,l]=v.useState(null),[a,n]=v.useState(null),[u,i]=v.useState(!0),c=()=>{i(!0),B.readiness(e).then(r=>{l(r),n(null)}).catch(r=>n(r.message)).finally(()=>i(!1))};v.useEffect(c,[e]);const s=b0(t);return f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"readiness"}),f.jsx("p",{className:"dim",children:"what stands between this project and a build that runs while nobody watches. nothing here blocks a run — every line is a warning you decide what to do about."}),f.jsxs("p",{className:"dim",children:[u?"running the checks…":t?`checked at ${E0(t.checkedAt)}`:"not checked yet"," ",f.jsx("button",{onClick:c,disabled:u,title:"run the checks again",children:"refresh"})]}),a&&f.jsxs("p",{className:"status-failed",children:["checklist unavailable — ",a]}),t&&f.jsx("p",{className:"tally",children:x0.map(({state:r,one:d,many:h})=>{const o=s[r]??0;return f.jsxs("span",{className:o===0?"none":void 0,children:[f.jsx("span",{className:`mark ${o===0?"":Wr(r)}`,children:$r(r)})," ",f.jsx("span",{className:o===0?void 0:"bright",children:o})," ",f.jsx("span",{className:"dim",children:o===1?d:h})]},r)})}),((t==null?void 0:t.sections)??[]).map(r=>f.jsxs(v.Fragment,{children:[f.jsx("h2",{className:"section",style:{marginTop:20},children:S0[r.platform]}),f.jsx("ul",{className:"rows checks",children:r.checks.map(d=>f.jsxs("li",{className:`check-${d.state}`,children:[f.jsx("span",{className:`mark ${Wr(d.state)}`,children:$r(d.state)}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright check-title",children:d.title})," ",f.jsx("span",{className:"dim",children:d.detail}),d.fix&&f.jsxs("div",{className:"dim",children:[d.fix,d.fixIn&&f.jsxs(f.Fragment,{children:[" ",f.jsxs(ct,{to:`/p/${e}/${d.fixIn}`,className:"accent",children:[d.fixIn," →"]})]})]})]})]},d.id))})]},r.platform))]})}const N0=/\x1b\[([0-9;]*)m/,T0=/\x1b\][\s\S]*?(?:\x07|\x1b\\)|\x1b\[[0-9;?]*[A-Za-z]|\x1b[()][0-9A-Za-z]|\x1b./g,A0=/[\x00-\x08\x0b-\x1f\x7f]/g,Fr=["black","red","green","yellow","blue","magenta","cyan","white"],z0=e=>[e.fg?`a-${e.fg}`:"",e.bold?"a-bold":"",e.dim?"a-dim":""].filter(Boolean).join(" ");function _0(e,t){const l={...e};for(const a of t.split(";")){const n=Number(a===""?"0":a);n===0?(l.fg=null,l.bold=!1,l.dim=!1):n===1?l.bold=!0:n===2?l.dim=!0:n===22?(l.bold=!1,l.dim=!1):n>=30&&n<=37?l.fg=Fr[n-30]??null:n===39?l.fg=null:n>=90&&n<=97&&(l.fg=`bright-${Fr[n-90]??"white"}`)}return l}function C0(e){const t=[];let l={fg:null,bold:!1,dim:!1},a=e;const n=u=>{if(!u)return;const i=u.replace(T0,"").replace(A0,"");if(!i)return;const c=z0(l),s=t[t.length-1];s&&s.className===c?s.text+=i:t.push({text:i,className:c})};for(;;){const u=N0.exec(a);if(!u)break;n(a.slice(0,u.index)),l=_0(l,u[1]??""),a=a.slice(u.index+u[0].length)}return n(a),t}function R0(e,t){const l=new TextEncoder;let a=0,n=0;for(const u of e.split(`
62
- `)){if(a+=l.encode(u).byteLength+1,a>t)return n;n+=1}return n}function O0({text:e,handle:t,emptyLabel:l="waiting for output…"}){const a=v.useRef(null),[n,u]=v.useState(!0),i=v.useMemo(()=>C0(e),[e]);v.useLayoutEffect(()=>{const s=a.current;s&&n&&(s.scrollTop=s.scrollHeight)},[i,n]),v.useImperativeHandle(t,()=>({scrollToOffset:s=>{const r=a.current;if(!r)return;const d=parseFloat(getComputedStyle(r).lineHeight)||20;u(!1),r.scrollTop=R0(e,s)*d}}));const c=()=>{const s=a.current;s&&u(s.scrollHeight-s.scrollTop-s.clientHeight<8)};return f.jsxs("div",{className:"terminal panel",children:[f.jsxs("div",{className:"pane-title",children:[f.jsx("span",{className:"section",children:"output"}),!n&&f.jsx("span",{className:"dim",children:"following suspended — scroll to bottom to resume"})]}),f.jsxs("pre",{ref:a,onScroll:c,children:[i.map((s,r)=>f.jsx("span",{className:s.className,children:s.text},r)),e===""&&f.jsx("span",{className:"dim",children:l})]}),f.jsxs("div",{className:"terminal-input",children:[f.jsx("span",{className:"prompt",children:"$"}),f.jsx("input",{disabled:!0,value:"",readOnly:!0,"aria-label":"terminal input"}),f.jsx("span",{className:"reason",children:"interactive mode disabled"})]})]})}function D0(e){const[t,l]=v.useState(""),[a,n]=v.useState(null),u=v.useRef(0),i=v.useRef(null);return v.useEffect(()=>{let c=!1,s,r;u.current=0,i.current=null,l(""),n(null);const d=async o=>{const p=await B.log(e,u.current);if(c||!p)return;const b=new TextEncoder().encode(p).byteLength;u.current+b<o||(u.current+=b,l(x=>x+p))},h=async()=>{if(c)return;const o=await B.log(e,u.current);if(c)return;o&&(u.current+=new TextEncoder().encode(o).byteLength,l(b=>b+o));const p=location.protocol==="https:"?"wss":"ws";s=new WebSocket(`${p}://${location.host}/api/runs/${e}/stream`),s.onmessage=b=>{const x=JSON.parse(b.data);if(x.type==="chunk"){if(x.offset<u.current)return;if(x.offset>u.current){d(x.offset);return}u.current=x.offset+new TextEncoder().encode(x.data).byteLength,l(E=>E+x.data)}else i.current=x.status,n(x.status)},s.onclose=()=>{!c&&!i.current&&(r=setTimeout(()=>void h(),1e3))}};return h(),()=>{c=!0,r&&clearTimeout(r),s==null||s.close()}},[e]),{log:t,finished:a}}function M0(e,t){if(!e)return"—";const l=(t?Date.parse(t):Date.now())-Date.parse(e);if(l<0)return"—";const a=Math.floor(l/1e3);return a<60?`${a}s`:`${Math.floor(a/60)}m ${String(a%60).padStart(2,"0")}s`}const U0=e=>e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`;function H0(){const e=Number(Hl().id),[t,l]=v.useState(null),[a,n]=v.useState(null),[u,i]=v.useState(null),[c,s]=v.useState(!1),[,r]=v.useState(0),d=v.useRef(null),{log:h,finished:o}=D0(e);v.useEffect(()=>{let b=!1;const x=()=>B.run(e).then(m=>{b||(l(m),eu(m.status)&&(E=setTimeout(x,1500)))}).catch(m=>n(m.message));let E;return x(),()=>{b=!0,E&&clearTimeout(E)}},[e,o]),v.useEffect(()=>{if(!t||!eu(t.status))return;const b=setInterval(()=>r(x=>x+1),1e3);return()=>clearInterval(b)},[t]);const p=async()=>{s(!0),i(null);try{await B.cancel(e),l(await B.run(e))}catch(b){i(b.message)}finally{s(!1)}};return a?f.jsx("p",{className:"status-failed",children:a}):t?f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"run-head panel",children:[f.jsxs("span",{children:[f.jsx("span",{className:`mark status-${t.status}`,children:Sn(t.status)})," ",f.jsx(ct,{to:`/p/${t.projectSlug}`,className:"dim",children:t.projectSlug})," ",f.jsx("span",{className:"bright",children:t.lane})]}),f.jsxs("span",{className:"dim",children:["run ",f.jsxs("span",{className:"bright",children:["#",t.id]})]}),f.jsxs("span",{className:"dim",children:["branch ",f.jsx("span",{className:"bright",children:t.branch??"—"})]}),f.jsxs("span",{className:"dim",children:["commit ",f.jsx("span",{className:"bright",children:t.commitSha?t.commitSha.slice(0,7):"—"})]}),f.jsxs("span",{className:"dim",children:["duration ",f.jsx("span",{className:"bright",children:M0(t.startedAt,t.finishedAt)})]}),f.jsx("span",{className:`status-${t.status}`,children:Tm(t.status,t.queuePosition)}),eu(t.status)&&f.jsx("button",{onClick:()=>void p(),disabled:c,title:"stop this run",children:"cancel"})]}),u&&f.jsxs("p",{className:"status-failed",children:["cancel refused — ",u]}),t.errorSummary&&f.jsx("p",{className:"status-failed",children:t.errorSummary}),f.jsxs("div",{className:"run-body",children:[f.jsxs("div",{className:"panel",children:[f.jsxs("div",{className:"pane-title",children:[f.jsx("span",{className:"section",children:"steps"}),f.jsx("span",{className:"dim",children:t.steps.length})]}),t.steps.length===0&&f.jsx("p",{className:"dim",style:{padding:"6px 12px"},children:t.status==="queued"?"not started yet":eu(t.status)?"spotting in progress…":"no step recorded"}),f.jsx("ul",{className:"steps",children:t.steps.map(b=>{const x=b.logOffset!==null;return f.jsxs("li",{className:x?"clickable":"inert",title:x?"view in output":"unknown position in output",onClick:x?()=>{var E;return(E=d.current)==null?void 0:E.scrollToOffset(b.logOffset)}:void 0,children:[f.jsx("span",{className:`mark status-${b.status}`,children:Sn(b.status)}),f.jsx("span",{className:"grow",children:b.name}),f.jsx("span",{className:"dim",children:b.durationMs===null?"":`${(b.durationMs/1e3).toFixed(1)}s`})]},b.idx)})})]}),f.jsx(O0,{text:h,handle:d,emptyLabel:t.status==="queued"?"waiting for its turn…":void 0})]}),t.artifacts.length>0&&f.jsxs("div",{className:"panel",style:{marginTop:12},children:[f.jsxs("div",{className:"pane-title",children:[f.jsx("span",{className:"section",children:"artifacts"}),f.jsx("span",{className:"dim",children:t.artifacts.length})]}),f.jsx("ul",{className:"rows",style:{padding:"0 12px"},children:t.artifacts.map(b=>f.jsxs("li",{children:[f.jsxs("a",{className:"grow accent",href:`/api/runs/${t.id}/artifacts/${b.id}`,download:!0,children:["↓ ",b.filename]}),f.jsx("span",{className:"dim",children:b.kind}),f.jsx("span",{className:"dim",children:U0(b.size)})]},b.id))})]})]}):f.jsx("p",{className:"dim",children:"loading…"})}function B0({slug:e,refresh:t,onStored:l}){const[a,n]=v.useState([]),[u,i]=v.useState({}),[c,s]=v.useState(null),[r,d]=v.useState(null);v.useEffect(()=>{B.requiredSecrets(e).then(o=>n(o.missing)).catch(()=>n([]))},[e,t]);const h=async o=>{const p=(u[o]??"").trim();if(p!==""){s(o),d(null);try{await B.setSecret(e,o,p,!0),i(b=>({...b,[o]:""})),l()}catch(b){d(b.message)}finally{s(null)}}};return a.length===0?null:f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",style:{marginTop:20},children:"needed by the lanes"}),f.jsxs("p",{className:"dim",children:["read by a lane, named in ",f.jsx("code",{children:".env.example"}),", or listed under"," ",f.jsx("code",{children:"required_secrets"})," — and not stored yet. type the value; the name is already the one fastlane looks for."]}),f.jsx("ul",{className:"rows needed",children:a.map(o=>f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsx("span",{className:"needed-name bright",children:o}),f.jsx("input",{type:"password",className:"grow",value:u[o]??"",onChange:p=>i(b=>({...b,[o]:p.target.value})),onKeyDown:p=>{p.key==="Enter"&&h(o)},placeholder:"value",autoComplete:"new-password","aria-label":o}),f.jsx("button",{onClick:()=>void h(o),disabled:c!==null||(u[o]??"").trim()==="",children:"store"})]},o))}),r&&f.jsxs("p",{className:"status-failed",children:["refused — ",r]})]})}function w0(){const{slug:e=""}=Hl(),[t,l]=v.useState([]),[a,n]=v.useState([]),[u,i]=v.useState(null),[c,s]=v.useState(!0),[r,d]=v.useState(0),[h,o]=v.useState(""),[p,b]=v.useState(""),[x,E]=v.useState(!0),[m,y]=v.useState(!1),[g,S]=v.useState(null),T=()=>{s(!0),B.secrets(e).then(z=>{l(z),i(null)}).catch(z=>i(z.message)).finally(()=>s(!1)),B.listCredentials(e).then(n).catch(()=>n([])),d(z=>z+1)};v.useEffect(T,[e]);const O=async z=>{z.preventDefault(),y(!0),S(null);try{await B.setSecret(e,h.trim(),p,x),o(""),b(""),E(!0),T()}catch(D){S(D.message)}finally{y(!1)}},[_,N]=v.useState({}),R=async z=>{S(null);try{const{value:D}=await B.revealSecret(e,z.key);N($=>({...$,[z.key]:D}))}catch(D){S(D.message)}},A=z=>N(D=>{const $={...D};return delete $[z],$}),q=async z=>{S(null);try{await B.setSecretMasked(e,z.key,!z.masked),z.masked||A(z.key),T()}catch(D){S(D.message)}},F=async z=>{S(null);try{await B.deleteSecret(e,z.key),T()}catch(D){S(D.message)}},rt=z=>z.key==="APP_STORE_CONNECT_API_KEY_P8"?"nothing reads this. no action in fastlane looks for that name — an earlier version of this interface asked for it, which was our mistake. the .p8 belongs on the signing tab, as an app store connect key block.":z.key==="SUPPLY_JSON_KEY_DATA"&&a.some(D=>D.kind==="play_service_account")?"superseded by the play store service account block on the signing tab. this still works — but the same credential is now stored twice, and nothing says which one a build used.":null,St=z=>{const D=rt(z);return f.jsxs("li",{className:D?"superseded":void 0,children:[f.jsx("span",{className:`mark ${z.masked?"accent":"dim"}`,children:z.masked?"✓":"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright",children:z.key})," ",z.masked?f.jsx("span",{className:"dim",children:"••••••"}):_[z.key]!==void 0?f.jsx("span",{className:"revealed",children:_[z.key]}):f.jsx("span",{className:"dim",children:"stored as it is"}),z.masked&&f.jsx("span",{className:"dim",children:" — kept out of the logs, so never shown here either"}),D&&f.jsx("span",{className:"superseded-note",children:D})]}),z.scope!=="global"&&f.jsxs("label",{className:"row-flag",title:"a secret is removed from build logs, and never shown here",children:[f.jsx("input",{type:"checkbox",checked:z.masked,onChange:()=>void q(z)}),"keep out of the logs"]}),!z.masked&&z.scope!=="global"&&(_[z.key]===void 0?f.jsx("button",{onClick:()=>void R(z),title:"show the value",children:"show"}):f.jsx("button",{onClick:()=>A(z.key),title:"hide it again",children:"hide"})),z.scope==="global"?f.jsx("span",{className:"dim",title:"set for every project — laneyard secret set",children:"global"}):f.jsx("button",{onClick:()=>void F(z),title:D?"remove this row":"remove",children:D?"remove":"✗"})]},z.key)},ge=t.filter(z=>!z.masked),C=t.filter(z=>z.masked);return f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"dim",children:"the values this project's lanes read. typed here, encrypted at rest, and handed to every run as environment variables."}),f.jsx("h2",{className:"section",style:{marginTop:16},children:"variables"}),f.jsx("p",{className:"dim",children:"stored as they are — printed in the logs, and readable here on request."}),u&&f.jsxs("p",{className:"status-failed",children:["unreadable secrets — ",u]}),c&&f.jsx("p",{className:"dim",children:"reading vault…"}),!c&&!u&&ge.length===0&&f.jsx("p",{className:"dim",children:"nothing stored in the clear."}),f.jsx("ul",{className:"rows",children:ge.map(St)}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"secrets"}),f.jsx("p",{className:"dim",children:"the same variables, kept out of the build logs — and never sent back, not even to this page."}),!c&&!u&&C.length===0&&f.jsx("p",{className:"dim",children:"no secrets yet."}),f.jsx("ul",{className:"rows",children:C.map(St)}),f.jsxs("p",{className:"dim",style:{marginTop:10},children:["a file rather than a value — an app store connect key, a keystore, a play store service account — is stored on its own tab."," ",f.jsx(ct,{to:`/p/${e}/signing`,className:"accent",children:"signing →"})]}),f.jsx(B0,{slug:e,refresh:r,onStored:T}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"add"}),f.jsxs("form",{className:"secret-form",onSubmit:z=>void O(z),children:[f.jsx("input",{type:"text",value:h,onChange:z=>o(z.target.value),placeholder:"MATCH_PASSWORD",spellCheck:!1,autoComplete:"off","aria-label":"name"}),f.jsx("input",{type:"password",value:p,onChange:z=>b(z.target.value),placeholder:"value",autoComplete:"new-password","aria-label":"value"}),f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:x,onChange:z=>E(z.target.checked)}),"keep this out of the logs"]}),f.jsx("button",{type:"submit",disabled:m||h.trim()===""||p==="",children:"store"})]}),f.jsx("p",{className:"dim",children:"an existing name is replaced."}),g&&f.jsxs("p",{className:"status-failed",children:["refused — ",g]})]})}function L0(){const{slug:e=""}=Hl(),t=v.useContext(zm),[l,a]=v.useState(null),[n,u]=v.useState(""),[i,c]=v.useState(!1),[s,r]=v.useState(null),[d,h]=v.useState(null),[o,p]=v.useState(null),[b,x]=v.useState(""),[E,m]=v.useState(!1),[y,g]=v.useState(null),[S,T]=v.useState(null);v.useEffect(()=>{u(""),r(null),h(null),x(""),g(null),T(null),p(null),B.projects().then(R=>{var A;return a(((A=R.find(q=>q.slug===e))==null?void 0:A.name)??e)}).catch(()=>a(e)),Promise.all([B.secrets(e),B.listCredentials(e)]).then(([R,A])=>p({secrets:R.filter(q=>q.scope==="project").length,blocks:A.filter(q=>q.scope==="project").length})).catch(()=>p(null))},[e]);const O=async R=>{R.preventDefault(),m(!0),g(null);try{T(await B.forgetProjectVault(e))}catch(A){g(A.message)}finally{m(!1)}},_=async R=>{R.preventDefault(),c(!0),r(null);try{const A=await B.removeProject(e);h(A),t()}catch(A){r(A.message)}finally{c(!1)}},N=d?d.vaultKept.secrets+d.vaultKept.signingBlocks:0;return d?f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"removed"}),f.jsxs("p",{children:[f.jsx("span",{className:"mark accent",children:"✓"})," ",f.jsx("span",{className:"bright",children:d.name})," ",f.jsx("span",{className:"dim",children:"is no longer in this machine's config.yml."})]}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"left behind"}),f.jsxs("ul",{className:"rows consequences",children:[f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow",children:[f.jsxs("span",{className:"bright",children:[d.runsKept," ",d.runsKept===1?"run":"runs"]})," ",f.jsx("span",{className:"dim",children:"still in the history, each still at its own address. their logs and artifacts download as they always did."})]})]}),d.leftOnDisk.length===0?f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsx("span",{className:"grow dim",children:"nothing on disk: this project was never cloned."})]}):d.leftOnDisk.map(R=>f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"path",children:R})," ",f.jsx("span",{className:"dim",children:"— left where it is. remove it by hand if you want it gone."})]})]},R)),f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsx("span",{className:"grow",children:N===0?f.jsx("span",{className:"dim",children:"nothing in the vault under this name."}):f.jsxs(f.Fragment,{children:[f.jsx("span",{className:"bright",children:Y0(d)})," ",f.jsxs("span",{className:"dim",children:["still in the vault under ",f.jsx("span",{className:"path",children:d.slug}),", encrypted. a project set up again under that name finds them, and would sign with them."]})]})})]})]}),N>0&&!S&&f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",style:{marginTop:20},children:"the vault"}),f.jsxs("p",{className:"irreversible",children:[f.jsx("span",{className:"mark",children:"!"})," a signing block cannot be read back out of laneyard. the ",f.jsx("code",{children:".p8"})," and the keystore you uploaded are the only copies it ever had — removing them here means uploading them again from wherever you keep them."]}),f.jsxs("p",{className:"dim",children:[d.vaultKept.globalSecrets+d.vaultKept.globalSigningBlocks>0&&f.jsxs(f.Fragment,{children:[q0(d)," shared by every project on this machine —"," ",f.jsx("span",{className:"bright",children:"not touched"})," by this."," "]}),"keeping them is fine: they cost nothing and stay unreadable. this is here so the choice is yours rather than nobody's."]}),f.jsxs("form",{className:"confirm-form",onSubmit:R=>void O(R),children:[f.jsxs("label",{htmlFor:"confirm-vault",className:"dim",children:["type ",f.jsx("span",{className:"bright",children:d.name})," again to remove them"]}),f.jsx("input",{id:"confirm-vault",type:"text",value:b,onChange:R=>x(R.target.value),spellCheck:!1,autoComplete:"off"}),f.jsx("button",{type:"submit",disabled:E||b!==d.name,children:"remove from vault"})]}),y&&f.jsxs("p",{className:"status-failed",children:["refused — ",y]})]}),S&&f.jsxs("p",{style:{marginTop:20},children:[f.jsx("span",{className:"mark accent",children:"✓"})," ",f.jsxs("span",{className:"dim",children:["removed ",S.secretsRemoved," ",S.secretsRemoved===1?"secret":"secrets"," and"," ",S.signingBlocksRemoved," ",S.signingBlocksRemoved===1?"signing block":"signing blocks"," from the vault. global ones were left alone."]})]}),f.jsx("p",{className:"dim",style:{marginTop:20},children:f.jsx(ct,{to:"/",className:"accent",children:"projects →"})})]}):f.jsxs("div",{className:"danger",children:[f.jsx("h2",{className:"section",children:"remove this project"}),f.jsxs("p",{className:"irreversible",children:[f.jsx("span",{className:"mark",children:"!"})," this cannot be undone from laneyard. adding"," ",f.jsx("span",{className:"bright",children:l??e})," back means setting it up again."]}),f.jsx("p",{className:"dim",children:"laneyard stops showing it: its block leaves this machine's config.yml, and nothing else happens. what that does not do:"}),f.jsxs("ul",{className:"rows consequences",children:[f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow dim",children:["its ",f.jsx("span",{className:"bright",children:"runs stay"})," — every build it ever ran keeps its page, its log and its artifacts. removing a project means stop showing it, not destroy its past."]})]}),f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow dim",children:["the ",f.jsx("span",{className:"bright",children:"clone and the artifacts stay on disk"})," — their paths are shown once it is done, so you can remove them yourself. nothing is deleted from a web page on one click."]})]}),f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow dim",children:["its"," ",f.jsx("span",{className:"bright",children:o===null?"secrets and signing blocks stay in the vault":`${o.secrets} ${o.secrets===1?"secret":"secrets"} and ${o.blocks} ${o.blocks===1?"signing block":"signing blocks"} stay in the vault`}),", encrypted. setting a project up again under the name"," ",f.jsx("span",{className:"path",children:e})," finds them, and it would sign with them without anyone uploading anything. you are offered a way to remove them once this is done."]})]}),f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow dim",children:["the ",f.jsx("span",{className:"bright",children:"repository is untouched"})," — its laneyard.yml, its Fastfile and its history are the repository's, not laneyard's."]})]})]}),f.jsx("p",{className:"dim",style:{marginTop:20},children:"a run in flight holds the workspace: removal is refused until it finishes. a run still waiting in the queue will not start — it ends as failed, saying its project is gone."}),f.jsxs("form",{className:"confirm-form",onSubmit:R=>void _(R),children:[f.jsxs("label",{htmlFor:"confirm-name",className:"dim",children:["type ",f.jsx("span",{className:"bright",children:l??e})," to confirm"]}),f.jsx("input",{id:"confirm-name",type:"text",value:n,onChange:R=>u(R.target.value),spellCheck:!1,autoComplete:"off"}),f.jsx("button",{type:"submit",disabled:i||l===null||n!==l,children:"remove"})]}),s&&f.jsxs("p",{className:"status-failed",children:["refused — ",s]})]})}function Y0(e){return Am([ku(e.vaultKept.secrets,"secret"),ku(e.vaultKept.signingBlocks,"signing block")])}function q0(e){const t=Am([ku(e.vaultKept.globalSecrets,"global secret"),ku(e.vaultKept.globalSigningBlocks,"global signing block")]),l=e.vaultKept.globalSecrets+e.vaultKept.globalSigningBlocks===1;return`${t} ${l?"is":"are"}`}const ku=(e,t)=>e===0?null:`${e} ${e===1?t:`${t}s`}`,Am=e=>e.filter(t=>t!==null).join(" and "),Ir=(e,t)=>{var l;return t==="path"?"the file":((l=e.fields.find(a=>a.name===t))==null?void 0:l.label)??t},G0=e=>{let t="";for(const l of e)t+=String.fromCharCode(l);return btoa(t)};function X0({slug:e,spec:t,stored:l,open:a,onToggle:n,onChanged:u,onError:i}){const[c,s]=v.useState(null),[r,d]=v.useState(0),[h,o]=v.useState({}),[p,b]=v.useState({}),[x,E]=v.useState(!1),[m,y]=v.useState(!1),g={...t.defaults,...(l==null?void 0:l.varNames)??{},...p},S=l===void 0||x,T=t.fields.every(A=>A.optional||(h[A.name]??"").trim()!==""),O=A=>h[A.name]??A.suggested??"",_=()=>{s(null),d(A=>A+1)},N=async()=>{if(c!==null){y(!0),i(null);try{await B.putCredential(e,t.kind,{fileName:c.name,fileBase64:G0(new Uint8Array(await c.arrayBuffer())),fields:Object.fromEntries(t.fields.map(A=>[A.name,O(A)])),varNames:g}),_(),o({}),b({}),E(!1),u()}catch(A){i(A.message)}finally{y(!1)}}},R=async()=>{i(null);try{await B.deleteCredential(e,t.kind),u()}catch(A){i(A.message)}};return f.jsxs("li",{children:[f.jsxs("button",{type:"button",className:"block-head",onClick:n,"aria-expanded":a,children:[f.jsx("span",{className:`mark ${l?"status-success":"dim"}`,children:l?"✓":"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright",children:t.what})," ",f.jsxs("span",{className:"dim",children:[l?l.fileName:"nothing stored",(l==null?void 0:l.scope)==="global"&&" — set for every project"]})]}),f.jsx("span",{className:"dim",children:a?"close":l?"open":"add"})]}),f.jsxs("div",{className:"block-body",hidden:!a,children:[l&&!S&&f.jsxs(f.Fragment,{children:[t.fields.some(A=>!A.optional)&&f.jsx("div",{className:"dim",children:t.fields.filter(A=>!A.optional).map(A=>`${A.label} ${A.secret?"••••••":"stored"}`).join(" · ")}),f.jsxs("div",{className:"dim",children:["exported as"," ",Object.entries(g).map(([A,q],F)=>f.jsxs("span",{children:[F>0&&", ",f.jsx("code",{children:q})]},A))]})]}),S&&f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"secret-form",children:[c===null?f.jsxs(f.Fragment,{children:[f.jsxs("label",{className:"file-pick",children:[f.jsx("input",{type:"file",accept:t.accept,onChange:A=>{var F;const q=((F=A.target.files)==null?void 0:F[0])??null;q!==null&&(s(q),i(null))}},r),f.jsxs("span",{className:"accent",children:[l?"another file":"choose a file"," →"]})]}),f.jsx("span",{className:"dim",children:t.accept})]}):f.jsxs("span",{className:"file-chosen",children:[f.jsx("span",{className:"mark accent",children:"✓"})," ",f.jsx("span",{className:"bright",children:c.name})," ",f.jsx("span",{className:"dim",children:"read when you store it"})," ",f.jsx("button",{type:"button",onClick:_,title:"choose another file",children:"✗"})]}),t.fields.map(A=>f.jsx("input",{type:A.secret?"password":"text",value:O(A),onChange:q=>o(F=>({...F,[A.name]:q.target.value})),placeholder:A.label,"aria-label":A.label,autoComplete:A.secret?"new-password":"off",spellCheck:!1},A.name))]}),f.jsx("div",{className:"dim",children:"reaches the lanes as — change one if your Fastfile reads another name"}),f.jsxs("div",{className:"secret-form",children:[Object.keys(t.defaults).map(A=>f.jsxs("label",{children:[Ir(t,A),f.jsx("input",{type:"text",style:{width:"42ch"},value:g[A]??"",onChange:q=>b(F=>({...F,[A]:q.target.value})),"aria-label":`${Ir(t,A)} variable name`,spellCheck:!1,autoComplete:"off"})]},A)),f.jsx("button",{onClick:()=>void N(),disabled:m||c===null||!T,children:"store"}),l&&f.jsx("button",{type:"button",onClick:()=>E(!1),children:"cancel"})]})]}),l&&!S&&f.jsxs("div",{className:"secret-form",children:[f.jsx("button",{type:"button",onClick:()=>E(!0),title:"upload it again",children:"replace"}),l.scope==="global"?f.jsx("span",{className:"dim",title:"set for every project, so not removed from inside one",children:"global"}):f.jsx("button",{onClick:()=>void R(),title:"remove this block",children:"remove"})]})]})]})}const Q0=[{kind:"apple_asc",platform:"ios",what:"app store connect key",accept:".p8",fields:[{name:"key_id",secret:!1,label:"Key ID"},{name:"issuer_id",secret:!1,label:"Issuer ID"}],defaults:{path:"APP_STORE_CONNECT_API_KEY_KEY_FILEPATH",key_id:"APP_STORE_CONNECT_API_KEY_KEY_ID",issuer_id:"APP_STORE_CONNECT_API_KEY_ISSUER_ID"}},{kind:"android_keystore",platform:"android",what:"android upload keystore",accept:".jks,.keystore",fields:[{name:"key_alias",secret:!1,label:"Key alias"},{name:"store_password",secret:!0,label:"Store password"},{name:"key_password",secret:!0,label:"Key password"},{name:"properties_path",secret:!1,optional:!0,label:"Properties file, relative to the app"},{name:"property_names",secret:!1,optional:!0,suggested:"storeFile,storePassword,keyPassword,keyAlias",label:"Names your build reads inside it"}],defaults:{path:"ANDROID_KEYSTORE_PATH",store_password:"ANDROID_KEYSTORE_PASSWORD",key_alias:"ANDROID_KEY_ALIAS",key_password:"ANDROID_KEY_PASSWORD"}},{kind:"play_service_account",platform:"android",what:"play store service account",accept:".json,application/json",fields:[],defaults:{path:"SUPPLY_JSON_KEY"}}],Z0=["ios","android"];function V0(){const{slug:e=""}=Hl(),[t,l]=v.useState([]),[a,n]=v.useState(null),[u,i]=v.useState(null),[c,s]=v.useState(!0),r=()=>{s(!0),B.listCredentials(e).then(p=>{l(p),n(null)}).catch(p=>n(p.message)).finally(()=>s(!1))};v.useEffect(r,[e]);const[d,h]=v.useState([]),o=p=>h(b=>b.includes(p)?b.filter(x=>x!==p):[...b,p]);return f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"signing"}),f.jsx("p",{className:"dim",children:"the files a lane needs to sign a build or hand it to a store. only the lanes that do that read them — taking screenshots, running tests and syncing certificates need nothing from this screen."}),f.jsx("p",{className:"dim",children:"a block is a file plus the handful of fields that make it usable, stored whole and encrypted. it reaches a run as a path plus the names the block exports."}),a&&f.jsxs("p",{className:"status-failed",children:["unreadable signing blocks — ",a]}),c&&f.jsx("p",{className:"dim",children:"reading vault…"}),Z0.map(p=>f.jsxs("div",{className:"credentials-group",children:[f.jsx("p",{className:"dim platform",children:p}),f.jsx("ul",{className:"rows credentials",children:Q0.filter(b=>b.platform===p).map(b=>f.jsx(X0,{slug:e,spec:b,stored:t.find(x=>x.kind===b.kind),open:d.includes(b.kind),onToggle:()=>o(b.kind),onChanged:r,onError:i},b.kind))})]},p)),u&&f.jsxs("p",{className:"status-failed",children:["refused — ",u]})]})}function K0(){const e=v.useContext(pi),[t,l]=v.useState([]),[a,n]=v.useState(null),[u,i]=v.useState(!0),[c,s]=v.useState(""),[r,d]=v.useState("builder"),[h,o]=v.useState(""),[p,b]=v.useState(!1),[x,E]=v.useState(null),m=()=>{i(!0),B.users().then(S=>{l(S),n(null)}).catch(S=>n(S.message)).finally(()=>i(!1))};v.useEffect(m,[]);const y=async S=>{S.preventDefault(),b(!0),E(null);try{await B.createUser(c.trim(),r,h),s(""),o(""),d("builder"),m()}catch(T){E(T.message)}finally{b(!1)}},g=async S=>{E(null);try{await B.removeUser(S.name),m()}catch(T){E(T.message)}};return f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"accounts"}),f.jsx("p",{className:"dim",children:"who can sign in to this server. an admin can do everything; a builder starts a build, watches it, cancels it and downloads what it produced — and never sees a secret."}),a&&f.jsxs("p",{className:"status-failed",children:["unreadable accounts — ",a]}),u&&f.jsx("p",{className:"dim",children:"reading configuration…"}),f.jsx("ul",{className:"rows",children:t.map(S=>f.jsxs("li",{children:[f.jsx("span",{className:`mark ${S.role==="admin"?"accent":"dim"}`,children:S.role==="admin"?"●":"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright",children:S.name})," ",S.name===(e==null?void 0:e.name)&&f.jsx("span",{className:"dim",children:"you"})]}),f.jsx("span",{className:"dim",children:S.role}),S.name===(e==null?void 0:e.name)?f.jsx(ct,{to:"/account",className:"account-link",children:"your account"}):f.jsx("button",{onClick:()=>void g(S),title:"remove",children:"✗"})]},S.name))}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"add"}),f.jsxs("form",{className:"secret-form",onSubmit:S=>void y(S),children:[f.jsx("input",{type:"text",value:c,onChange:S=>s(S.target.value),placeholder:"name",spellCheck:!1,autoComplete:"off","aria-label":"name"}),f.jsxs("select",{value:r,onChange:S=>d(S.target.value),"aria-label":"role",children:[f.jsx("option",{value:"builder",children:"builder"}),f.jsx("option",{value:"admin",children:"admin"})]}),f.jsx("input",{type:"password",value:h,onChange:S=>o(S.target.value),placeholder:"password",autoComplete:"new-password","aria-label":"password"}),f.jsx("button",{type:"submit",disabled:p||c.trim()===""||h==="",children:"create"})]}),f.jsx("p",{className:"dim",children:"the account is written to this machine's config.yml, its password hashed. an existing name is replaced — and its open sessions end."}),f.jsx("p",{className:"dim",children:"removing an account ends its sessions at once. the last admin can be neither removed nor demoted: a server nobody can administer cannot be repaired from here. your own row leads to your account, where you change your password — nobody's password is changed from this page, and another admin is the one who removes you."}),x&&f.jsxs("p",{className:"status-failed",children:["refused — ",x]})]})}const zm=v.createContext(()=>{}),pi=v.createContext(null);function J0(){const[e,t]=v.useState(null),[l,a]=v.useState(!1),[n,u]=v.useState([]),i=()=>B.me().then(async r=>{t(r),u(await B.projects().catch(()=>[]))}).catch(()=>t(null)).finally(()=>a(!0));v.useEffect(()=>{i()},[]);const c=()=>{B.logout().finally(()=>t(null))};if(!l)return f.jsx("p",{className:"dim",children:"loading…"});if(!e)return f.jsx(n0,{onSuccess:()=>void i()});const s=e.role==="admin";return f.jsx(pi.Provider,{value:e,children:f.jsx(zm.Provider,{value:()=>void i(),children:f.jsxs("div",{className:"shell",children:[f.jsxs("header",{children:[f.jsx("span",{className:"brand",children:"laneyard"}),f.jsxs("span",{className:"who",children:[f.jsx("span",{className:`mark ${s?"accent":"dim"}`,children:s?"●":"○"}),f.jsx(ct,{to:"/account",className:"bright",children:e.name}),f.jsx("span",{className:"dim",children:e.role}),f.jsx(ct,{to:"/account",className:"account-link",children:"your account"}),f.jsx("button",{onClick:c,children:"sign out"}),f.jsx(u0,{})]})]}),f.jsxs("nav",{children:[f.jsx("p",{className:"section nav-head",children:"projects"}),n.length===0&&f.jsx("p",{className:"dim nav-item",children:"none"}),n.map(r=>{var d,h;return f.jsxs(At,{to:`/p/${r.slug}`,className:({isActive:o})=>`nav-item${o?" current":""}`,children:[f.jsx("span",{className:`mark status-${((d=r.lastRun)==null?void 0:d.status)??"queued"}`,children:Sn((h=r.lastRun)==null?void 0:h.status)})," ",r.name]},r.slug)}),s&&f.jsxs(f.Fragment,{children:[f.jsx("p",{className:"section nav-head",style:{marginTop:16},children:"server"}),f.jsxs(At,{to:"/users",className:({isActive:r})=>`nav-item${r?" current":""}`,children:[f.jsx("span",{className:"mark dim",children:"●"})," accounts"]})]})]}),f.jsx("main",{children:f.jsxs(Tg,{children:[f.jsx(Ke,{path:"/",element:f.jsx(g0,{})}),f.jsxs(Ke,{path:"/p/:slug",element:f.jsx(p0,{}),children:[s&&f.jsx(Ke,{path:"fastfile",element:f.jsx(h0,{})}),s&&f.jsx(Ke,{path:"secrets",element:f.jsx(w0,{})}),s&&f.jsx(Ke,{path:"signing",element:f.jsx(V0,{})}),f.jsx(Ke,{path:"readiness",element:f.jsx(j0,{})}),s&&f.jsx(Ke,{path:"settings",element:f.jsx(L0,{})})]}),f.jsx(Ke,{path:"/r/:id",element:f.jsx(H0,{})}),f.jsx(Ke,{path:"/account",element:f.jsx(i0,{})}),s&&f.jsx(Ke,{path:"/users",element:f.jsx(K0,{})}),f.jsx(Ke,{path:"*",element:f.jsx("p",{className:"dim",children:"unknown page."})})]})})]})})})}Np.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsx($g,{children:f.jsx(J0,{})})}));export{f as j,v as r};