laneyard 0.3.0 → 0.4.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.
Files changed (44) hide show
  1. package/README.md +186 -18
  2. package/dist/src/cli/detect.js +12 -3
  3. package/dist/src/cli/prompt.js +28 -3
  4. package/dist/src/cli/secret-import.js +162 -0
  5. package/dist/src/cli/secret.js +162 -1
  6. package/dist/src/cli/setup.js +44 -7
  7. package/dist/src/credentials/kinds.js +120 -0
  8. package/dist/src/db/credentials.js +75 -0
  9. package/dist/src/db/schema.sql +39 -0
  10. package/dist/src/db/secrets.js +28 -0
  11. package/dist/src/db/sessions.js +61 -0
  12. package/dist/src/git/workspace.js +32 -6
  13. package/dist/src/heuristics/android-root.js +49 -0
  14. package/dist/src/heuristics/android-signing.js +98 -0
  15. package/dist/src/heuristics/appfile.js +60 -0
  16. package/dist/src/heuristics/blocking-actions.js +2 -0
  17. package/dist/src/heuristics/env-example.js +36 -0
  18. package/dist/src/heuristics/platforms.js +69 -10
  19. package/dist/src/heuristics/readiness.js +554 -25
  20. package/dist/src/main.js +10 -1
  21. package/dist/src/runner/gradle-properties.js +187 -0
  22. package/dist/src/runner/materialise.js +92 -0
  23. package/dist/src/runner/orchestrate.js +91 -2
  24. package/dist/src/secrets/vault.js +106 -5
  25. package/dist/src/server/app.js +30 -3
  26. package/dist/src/server/auth.js +50 -10
  27. package/dist/src/server/permissions.js +2 -0
  28. package/dist/src/server/required-secrets.js +30 -0
  29. package/dist/src/server/routes/account.js +57 -0
  30. package/dist/src/server/routes/credentials.js +108 -0
  31. package/dist/src/server/routes/readiness.js +162 -6
  32. package/dist/src/server/routes/secrets.js +101 -0
  33. package/dist/src/sidecar/bridge.js +21 -1
  34. package/dist/src/sidecar/fastlane-dir.js +23 -0
  35. package/dist/src/sidecar/lanes.js +6 -0
  36. package/dist/src/sidecar/uses.js +21 -5
  37. package/dist/web/assets/{Editor-DNFBA4gv.js → Editor-DynuBC2l.js} +1 -1
  38. package/dist/web/assets/index-CpwrNE-K.css +1 -0
  39. package/dist/web/assets/index-lyZs-Y7J.js +62 -0
  40. package/dist/web/index.html +2 -2
  41. package/package.json +1 -1
  42. package/ruby/introspect.rb +122 -9
  43. package/dist/web/assets/index-De6sxx6G.css +0 -1
  44. package/dist/web/assets/index-TWRQ1cJg.js +0 -62
@@ -0,0 +1,62 @@
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 Ir={exports:{}},ku={};/**
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 Am=Symbol.for("react.transitional.element"),zm=Symbol.for("react.fragment");function Pr(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:Am,type:e,key:a,ref:t!==void 0?t:null,props:l}}ku.Fragment=zm;ku.jsx=Pr;ku.jsxs=Pr;Ir.exports=ku;var f=Ir.exports,eo={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 ls=Symbol.for("react.transitional.element"),_m=Symbol.for("react.portal"),Om=Symbol.for("react.fragment"),Cm=Symbol.for("react.strict_mode"),Rm=Symbol.for("react.profiler"),Dm=Symbol.for("react.consumer"),Mm=Symbol.for("react.context"),Um=Symbol.for("react.forward_ref"),Hm=Symbol.for("react.suspense"),Bm=Symbol.for("react.memo"),to=Symbol.for("react.lazy"),wm=Symbol.for("react.activity"),df=Symbol.iterator;function Lm(e){return e===null||typeof e!="object"?null:(e=df&&e[df]||e["@@iterator"],typeof e=="function"?e:null)}var lo={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ao=Object.assign,no={};function pa(e,t,l){this.props=e,this.context=t,this.refs=no,this.updater=l||lo}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 uo(){}uo.prototype=pa.prototype;function as(e,t,l){this.props=e,this.context=t,this.refs=no,this.updater=l||lo}var ns=as.prototype=new uo;ns.constructor=as;ao(ns,pa.prototype);ns.isPureReactComponent=!0;var hf=Array.isArray;function nc(){}var ee={H:null,A:null,T:null,S:null},io=Object.prototype.hasOwnProperty;function us(e,t,l){var a=l.ref;return{$$typeof:ls,type:e,key:t,ref:a!==void 0?a:null,props:l}}function Ym(e,t){return us(e.type,t,e.props)}function is(e){return typeof e=="object"&&e!==null&&e.$$typeof===ls}function qm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(l){return t[l]})}var mf=/\/+/g;function gi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?qm(""+e.key):t.toString(36)}function Gm(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(nc,nc):(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 ls:case _m:i=!0;break;case to:return i=e._init,Ll(i(e._payload),t,l,a,n)}}if(i)return n=n(e),i=a===""?"."+gi(e,0):a,hf(n)?(l="",i!=null&&(l=i.replace(mf,"$&/")+"/"),Ll(n,t,l,"",function(r){return r})):n!=null&&(is(n)&&(n=Ym(n,l+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(mf,"$&/")+"/")+i)),t.push(n)),1;i=0;var c=a===""?".":a+":";if(hf(e))for(var s=0;s<e.length;s++)a=e[s],u=c+gi(a,s),i+=Ll(a,t,l,u,n);else if(s=Lm(e),typeof s=="function")for(e=s.call(e),s=0;!(a=e.next()).done;)a=a.value,u=c+gi(a,s++),i+=Ll(a,t,l,u,n);else if(u==="object"){if(typeof e.then=="function")return Ll(Gm(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 Xm(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 yf=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)},Qm={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(!is(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Activity=wm;U.Children=Qm;U.Component=pa;U.Fragment=Om;U.Profiler=Rm;U.PureComponent=as;U.StrictMode=Cm;U.Suspense=Hm;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=ao({},e.props),n=e.key;if(t!=null)for(u in t.key!==void 0&&(n=""+t.key),t)!io.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 us(e.type,n,a)};U.createContext=function(e){return e={$$typeof:Mm,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Dm,_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)io.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 us(e,u,n)};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:Um,render:e}};U.isValidElement=is;U.lazy=function(e){return{$$typeof:to,_payload:{_status:-1,_result:e},_init:Xm}};U.memo=function(e,t){return{$$typeof:Bm,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(nc,yf)}catch(u){yf(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";eo.exports=U;var p=eo.exports,co={exports:{}},$u={},so={exports:{}},fo={};/**
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(_,A){var R=_.length;_.push(A);e:for(;0<R;){var $=R-1>>>1,me=_[$];if(0<n(me,A))_[$]=A,_[R]=me,R=$;else break e}}function l(_){return _.length===0?null:_[0]}function a(_){if(_.length===0)return null;var A=_[0],R=_.pop();if(R!==A){_[0]=R;e:for(var $=0,me=_.length,Un=me>>>1;$<Un;){var Hn=2*($+1)-1,pi=_[Hn],ml=Hn+1,Bn=_[ml];if(0>n(pi,R))ml<me&&0>n(Bn,pi)?(_[$]=Bn,_[ml]=R,$=ml):(_[$]=pi,_[Hn]=R,$=Hn);else if(ml<me&&0>n(Bn,R))_[$]=Bn,_[ml]=R,$=ml;else break e}}return A}function n(_,A){var R=_.sortIndex-A.sortIndex;return R!==0?R:_.id-A.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,v=!1,S=!1,E=!1,x=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function b(_){for(var A=l(r);A!==null;){if(A.callback===null)a(r);else if(A.startTime<=_)a(r),A.sortIndex=A.expirationTime,t(s,A);else break;A=l(r)}}function T(_){if(E=!1,b(_),!S)if(l(s)!==null)S=!0,C||(C=!0,F());else{var A=l(r);A!==null&&ge(T,A.startTime-_)}}var C=!1,z=-1,N=5,D=-1;function O(){return x?!0:!(e.unstable_now()-D<N)}function Q(){if(x=!1,C){var _=e.unstable_now();D=_;var A=!0;try{e:{S=!1,E&&(E=!1,y(z),z=-1),v=!0;var R=o;try{t:{for(b(_),h=l(s);h!==null&&!(h.expirationTime>_&&O());){var $=h.callback;if(typeof $=="function"){h.callback=null,o=h.priorityLevel;var me=$(h.expirationTime<=_);if(_=e.unstable_now(),typeof me=="function"){h.callback=me,b(_),A=!0;break t}h===l(s)&&a(s),b(_)}else a(s);h=l(s)}if(h!==null)A=!0;else{var Un=l(r);Un!==null&&ge(T,Un.startTime-_),A=!1}}break e}finally{h=null,o=R,v=!1}A=void 0}}finally{A?F():C=!1}}}var F;if(typeof g=="function")F=function(){g(Q)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,gt=ft.port2;ft.port1.onmessage=Q,F=function(){gt.postMessage(null)}}else F=function(){m(Q,0)};function ge(_,A){z=m(function(){_(e.unstable_now())},A)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return o},e.unstable_next=function(_){switch(o){case 1:case 2:case 3:var A=3;break;default:A=o}var R=o;o=A;try{return _()}finally{o=R}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(_,A){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var R=o;o=_;try{return A()}finally{o=R}},e.unstable_scheduleCallback=function(_,A,R){var $=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?$+R:$):R=$,_){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=R+me,_={id:d++,callback:A,priorityLevel:_,startTime:R,expirationTime:me,sortIndex:-1},R>$?(_.sortIndex=R,t(r,_),l(s)===null&&_===l(r)&&(E?(y(z),z=-1):E=!0,ge(T,R-$))):(_.sortIndex=me,t(s,_),S||v||(S=!0,C||(C=!0,F()))),_},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(_){var A=o;return function(){var R=o;o=A;try{return _.apply(this,arguments)}finally{o=R}}}})(fo);so.exports=fo;var Zm=so.exports,ro={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 Vm=p;function oo(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(oo(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 Jm(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=Vm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Wu(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(oo(299));return Jm(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=Wu(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=Wu(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=Wu(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=Wu(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 ho(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ho)}catch(e){console.error(e)}}ho(),ro.exports=ze;var km=ro.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=Zm,mo=p,$m=km;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 yo(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 vo(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 po(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 vf(e){if(bn(e)!==e)throw Error(j(188))}function Wm(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 vf(n),e;if(u===a)return vf(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 go(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=go(e),t!==null)return t;e=e.sibling}return null}var te=Object.assign,Fm=Symbol.for("react.element"),Ln=Symbol.for("react.transitional.element"),wa=Symbol.for("react.portal"),Gl=Symbol.for("react.fragment"),So=Symbol.for("react.strict_mode"),uc=Symbol.for("react.profiler"),bo=Symbol.for("react.consumer"),zt=Symbol.for("react.context"),cs=Symbol.for("react.forward_ref"),ic=Symbol.for("react.suspense"),cc=Symbol.for("react.suspense_list"),ss=Symbol.for("react.memo"),Xt=Symbol.for("react.lazy"),sc=Symbol.for("react.activity"),Im=Symbol.for("react.memo_cache_sentinel"),pf=Symbol.iterator;function _a(e){return e===null||typeof e!="object"?null:(e=pf&&e[pf]||e["@@iterator"],typeof e=="function"?e:null)}var Pm=Symbol.for("react.client.reference");function fc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pm?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gl:return"Fragment";case uc:return"Profiler";case So:return"StrictMode";case ic:return"Suspense";case cc:return"SuspenseList";case sc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case wa:return"Portal";case zt:return e.displayName||"Context";case bo:return(e._context.displayName||"Context")+".Consumer";case cs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ss:return t=e.displayName||null,t!==null?t:fc(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return fc(e(t))}catch{}}return null}var La=Array.isArray,M=mo.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=$m.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bl={pending:!1,data:null,method:null,action:null},rc=[],Xl=-1;function yt(e){return{current:e}}function pe(e){0>Xl||(e.current=rc[Xl],rc[Xl]=null,Xl--)}function W(e,t){Xl++,rc[Xl]=e.current,e.current=t}var ht=yt(null),ln=yt(null),Pt=yt(null),gu=yt(null);function Su(e,t){switch(W(Pt,t),W(ln,e),W(ht,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jr(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jr(t),e=qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}pe(ht),W(ht,e)}function ia(){pe(ht),pe(ln),pe(Pt)}function oc(e){e.memoizedState!==null&&W(gu,e);var t=ht.current,l=qh(t,e.type);t!==l&&(W(ln,e),W(ht,l))}function bu(e){ln.current===e&&(pe(ht),pe(ln)),gu.current===e&&(pe(gu),mn._currentValue=bl)}var Si,gf;function vl(e){if(Si===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Si=t&&t[1]||"",gf=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Si+e+gf}var bi=!1;function Ei(e,t){if(!e||bi)return"";bi=!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(v){var o=v}Reflect.construct(e,[],h)}else{try{h.call()}catch(v){o=v}e.call(h.prototype)}}else{try{throw Error()}catch(v){o=v}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(v){if(v&&o&&typeof v.stack=="string")return[v.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{bi=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?vl(l):""}function ey(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 Sf(e){try{var t="",l=null;do t+=ey(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var dc=Object.prototype.hasOwnProperty,fs=he.unstable_scheduleCallback,xi=he.unstable_cancelCallback,ty=he.unstable_shouldYield,ly=he.unstable_requestPaint,Ye=he.unstable_now,ay=he.unstable_getCurrentPriorityLevel,Eo=he.unstable_ImmediatePriority,xo=he.unstable_UserBlockingPriority,Eu=he.unstable_NormalPriority,ny=he.unstable_LowPriority,jo=he.unstable_IdlePriority,uy=he.log,iy=he.unstable_setDisableYieldValue,En=null,qe=null;function kt(e){if(typeof uy=="function"&&iy(e),qe&&typeof qe.setStrictMode=="function")try{qe.setStrictMode(En,e)}catch{}}var Ge=Math.clz32?Math.clz32:fy,cy=Math.log,sy=Math.LN2;function fy(e){return e>>>=0,e===0?32:31-(cy(e)/sy|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 Fu(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 xn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ry(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 No(){var e=Gn;return Gn<<=1,!(Gn&62914560)&&(Gn=4194304),e}function ji(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 oy(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 v=o[d];v!==null&&(v.lane&=-536870913)}l&=~h}a!==0&&To(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(i&~t))}function To(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 Ao(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 zo(e,t){var l=t&-t;return l=l&42?1:rs(l),l&(e.suspendedLanes|t)?0:l}function rs(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 os(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function _o(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:Fh(e.type))}function bf(e,t){var l=X.p;try{return X.p=e,t()}finally{X.p=l}}var dl=Math.random().toString(36).slice(2),be="__reactFiber$"+dl,Me="__reactProps$"+dl,ga="__reactContainer$"+dl,hc="__reactEvents$"+dl,dy="__reactListeners$"+dl,hy="__reactHandles$"+dl,Ef="__reactResources$"+dl,Nn="__reactMarker$"+dl;function ds(e){delete e[be],delete e[Me],delete e[hc],delete e[dy],delete e[hy]}function Ql(e){var t=e[be];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ga]||l[be]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=_r(e);e!==null;){if(l=e[be])return l;e=_r(e)}return t}e=l,l=e.parentNode}return null}function Sa(e){if(e=e[be]||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 Oo=new Set,Co={};function Cl(e,t){ca(e,t),ca(e+"Capture",t)}function ca(e,t){for(Co[e]=t,e=0;e<t.length;e++)Oo.add(t[e])}var my=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]*$"),xf={},jf={};function yy(e){return dc.call(jf,e)?!0:dc.call(xf,e)?!1:my.test(e)?jf[e]=!0:(xf[e]=!0,!1)}function tu(e,t,l){if(yy(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 St(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 Ro(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vy(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 mc(e){if(!e._valueTracker){var t=Ro(e)?"checked":"value";e._valueTracker=vy(e,t,""+e[t])}}function Do(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Ro(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function xu(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 py=/[\n"\\]/g;function Fe(e){return e.replace(py,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(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?vc(e,i,ke(t)):l!=null?vc(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 Mo(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)){mc(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),mc(e)}function vc(e,t,l){t==="number"&&xu(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 Uo(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 Ho(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),mc(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 gy=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 Nf(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||gy.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Bo(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&&Nf(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&Nf(e,u,t[u])}function hs(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 Sy=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"]]),by=/^[\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 by.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _t(){}var pc=null;function ms(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 Tf(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(yc(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));yc(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&&Do(a)}break e;case"textarea":Uo(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ea(e,!!l.multiple,t,!1)}}}var Ni=!1;function wo(e,t,l){if(Ni)return e(t,l);Ni=!0;try{var a=e(t);return a}finally{if(Ni=!1,(Zl!==null||ta!==null)&&(fi(),Zl&&(t=Zl,e=ta,ta=Zl=null,Tf(t),e)))for(t=0;t<e.length;t++)Tf(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 Mt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gc=!1;if(Mt)try{var Oa={};Object.defineProperty(Oa,"passive",{get:function(){gc=!0}}),window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch{gc=!1}var $t=null,ys=null,au=null;function Lo(){if(au)return au;var e,t=ys,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 Af(){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:Af,this.isPropagationStopped=Af,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 Rl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Iu=Ue(Rl),Tn=te({},Rl,{view:0,detail:0}),Ey=Ue(Tn),Ti,Ai,Ca,Pu=te({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vs,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!==Ca&&(Ca&&e.type==="mousemove"?(Ti=e.screenX-Ca.screenX,Ai=e.screenY-Ca.screenY):Ai=Ti=0,Ca=e),Ti)},movementY:function(e){return"movementY"in e?e.movementY:Ai}}),zf=Ue(Pu),xy=te({},Pu,{dataTransfer:0}),jy=Ue(xy),Ny=te({},Tn,{relatedTarget:0}),zi=Ue(Ny),Ty=te({},Rl,{animationName:0,elapsedTime:0,pseudoElement:0}),Ay=Ue(Ty),zy=te({},Rl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_y=Ue(zy),Oy=te({},Rl,{data:0}),_f=Ue(Oy),Cy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ry={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"},Dy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function My(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Dy[e])?!!t[e]:!1}function vs(){return My}var Uy=te({},Tn,{key:function(e){if(e.key){var t=Cy[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"?Ry[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vs,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}}),Hy=Ue(Uy),By=te({},Pu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=Ue(By),wy=te({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vs}),Ly=Ue(wy),Yy=te({},Rl,{propertyName:0,elapsedTime:0,pseudoElement:0}),qy=Ue(Yy),Gy=te({},Pu,{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}),Xy=Ue(Gy),Qy=te({},Rl,{newState:0,oldState:0}),Zy=Ue(Qy),Vy=[9,13,27,32],ps=Mt&&"CompositionEvent"in window,Qa=null;Mt&&"documentMode"in document&&(Qa=document.documentMode);var Ky=Mt&&"TextEvent"in window&&!Qa,Yo=Mt&&(!ps||Qa&&8<Qa&&11>=Qa),Cf=" ",Rf=!1;function qo(e,t){switch(e){case"keyup":return Vy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Go(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vl=!1;function Jy(e,t){switch(e){case"compositionend":return Go(t);case"keypress":return t.which!==32?null:(Rf=!0,Cf);case"textInput":return e=t.data,e===Cf&&Rf?null:e;default:return null}}function ky(e,t){if(Vl)return e==="compositionend"||!ps&&qo(e,t)?(e=Lo(),au=ys=$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 Yo&&t.locale!=="ko"?null:t.data;default:return null}}var $y={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 Df(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!$y[e.type]:t==="textarea"}function Xo(e,t,l,a){Zl?ta?ta.push(a):ta=[a]:Zl=a,t=qu(t,"onChange"),0<t.length&&(l=new Iu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var Za=null,nn=null;function Wy(e){wh(e,0)}function ei(e){var t=Ya(e);if(Do(t))return e}function Mf(e,t){if(e==="change")return t}var Qo=!1;if(Mt){var _i;if(Mt){var Oi="oninput"in document;if(!Oi){var Uf=document.createElement("div");Uf.setAttribute("oninput","return;"),Oi=typeof Uf.oninput=="function"}_i=Oi}else _i=!1;Qo=_i&&(!document.documentMode||9<document.documentMode)}function Hf(){Za&&(Za.detachEvent("onpropertychange",Zo),nn=Za=null)}function Zo(e){if(e.propertyName==="value"&&ei(nn)){var t=[];Xo(t,nn,e,ms(e)),wo(Wy,t)}}function Fy(e,t,l){e==="focusin"?(Hf(),Za=t,nn=l,Za.attachEvent("onpropertychange",Zo)):e==="focusout"&&Hf()}function Iy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ei(nn)}function Py(e,t){if(e==="click")return ei(t)}function ev(e,t){if(e==="input"||e==="change")return ei(t)}function tv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qe=typeof Object.is=="function"?Object.is:tv;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(!dc.call(t,n)||!Qe(e[n],t[n]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wf(e,t){var l=Bf(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=Bf(l)}}function Vo(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vo(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ko(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xu(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=xu(e.document)}return t}function gs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var lv=Mt&&"documentMode"in document&&11>=document.documentMode,Kl=null,Sc=null,Va=null,bc=!1;function Lf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bc||Kl==null||Kl!==xu(a)||(a=Kl,"selectionStart"in a&&gs(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(Sc,"onSelect"),0<a.length&&(t=new Iu("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")},Ci={},Jo={};Mt&&(Jo=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(Ci[e])return Ci[e];if(!Jl[e])return e;var t=Jl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Jo)return Ci[e]=t[l];return e}var ko=Dl("animationend"),$o=Dl("animationiteration"),Wo=Dl("animationstart"),av=Dl("transitionrun"),nv=Dl("transitionstart"),uv=Dl("transitioncancel"),Fo=Dl("transitionend"),Io=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 ct(e,t){Io.set(e,t),Cl(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,Ss=0;function ti(){for(var e=kl,t=Ss=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&&Po(l,n,u)}}function li(e,t,l,a){Je[kl++]=e,Je[kl++]=t,Je[kl++]=l,Je[kl++]=a,Ss|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function bs(e,t,l,a){return li(e,t,l,a),Nu(e)}function Ml(e,t){return li(e,null,null,t),Nu(e)}function Po(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,Xc=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 iv(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(e,t,l,a){return new iv(e,t,l,a)}function Es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ct(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 ed(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=op(e,l,ht.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case sc:return e=we(31,l,t,n),e.elementType=sc,e.lanes=u,e;case Gl:return El(l.children,n,u,t);case So:i=8,n|=24;break;case uc:return e=we(12,l,t,n|2),e.elementType=uc,e.lanes=u,e;case ic:return e=we(13,l,t,n),e.elementType=ic,e.lanes=u,e;case cc:return e=we(19,l,t,n),e.elementType=cc,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case zt:i=10;break e;case bo:i=9;break e;case cs:i=11;break e;case ss: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 El(e,t,l,a){return e=we(7,e,a,t),e.lanes=l,e}function Ri(e,t,l){return e=we(6,e,null,t),e.lanes=l,e}function td(e){var t=we(18,null,null,0);return t.stateNode=e,t}function Di(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 Yf=new WeakMap;function Ie(e,t){if(typeof e=="object"&&e!==null){var l=Yf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Sf(t)},Yf.set(e,t),t)}return{value:e,source:t,stack:Sf(t)}}var Wl=[],Fl=0,Tu=null,cn=0,$e=[],We=0,sl=null,rt=1,ot="";function Nt(e,t){Wl[Fl++]=cn,Wl[Fl++]=Tu,Tu=e,cn=t}function ld(e,t,l){$e[We++]=rt,$e[We++]=ot,$e[We++]=sl,sl=e;var a=rt;e=ot;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,rt=1<<32-Ge(t)+n|l<<n|a,ot=u+e}else rt=1<<u|l<<n|a,ot=e}function xs(e){e.return!==null&&(Nt(e,1),ld(e,1,0))}function js(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,ot=$e[--We],$e[We]=null,rt=$e[--We],$e[We]=null}function ad(e,t){$e[We++]=rt,$e[We++]=ot,$e[We++]=sl,rt=t.id,ot=t.overflow,sl=e}var Ee=null,P=null,q=!1,el=null,Pe=!1,xc=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)),xc}function qf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[be]=e,t[Me]=a,l){case"dialog":B("cancel",t),B("close",t);break;case"iframe":case"object":case"embed":B("load",t);break;case"video":case"audio":for(l=0;l<dn.length;l++)B(dn[l],t);break;case"source":B("error",t);break;case"img":case"image":case"link":B("error",t),B("load",t);break;case"details":B("toggle",t);break;case"input":B("invalid",t),Mo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":B("invalid",t);break;case"textarea":B("invalid",t),Ho(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||Yh(t.textContent,l)?(a.popover!=null&&(B("beforetoggle",t),B("toggle",t)),a.onScroll!=null&&B("scroll",t),a.onScrollEnd!=null&&B("scrollend",t),a.onClick!=null&&(t.onclick=_t),t=!0):t=!1,t||fl(e,!0)}function Gf(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(!q)return Gf(e),q=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Jc(e.type,e.memoizedProps)),l=!l),l&&P&&fl(e),Gf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));P=zr(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));P=zr(e)}else t===27?(t=P,hl(e.type)?(e=Fc,Fc=null,P=e):P=t):P=Ee?tt(e.stateNode.nextSibling):null;return!0}function Tl(){P=Ee=null,q=!1}function Mi(){var e=el;return e!==null&&(Re===null?Re=e:Re.push.apply(Re,e),el=null),e}function sn(e){el===null?el=[e]:el.push(e)}var jc=yt(null),Ul=null,Ot=null;function Zt(e,t,l){W(jc,t._currentValue),t._currentValue=l}function Rt(e){e._currentValue=jc.current,pe(jc)}function Nc(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Tc(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),Nc(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),Nc(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&&Tc(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,Ot=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function xe(e){return nd(Ul,e)}function Zn(e,t){return Ul===null&&Al(e),nd(e,t)}function nd(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Ot===null){if(e===null)throw Error(j(308));Ot=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ot=Ot.next=t;return l}var cv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},sv=he.unstable_scheduleCallback,fv=he.unstable_NormalPriority,re={$$typeof:zt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ns(){return{controller:new cv,data:new Map,refCount:0}}function An(e){e.refCount--,e.refCount===0&&sv(fv,function(){e.controller.abort()})}var Ka=null,Ac=0,fa=0,la=null;function rv(e,t){if(Ka===null){var l=Ka=[];Ac=0,fa=$s(),la={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ac++,t.then(Xf,Xf),t}function Xf(){if(--Ac===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 ov(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 Qf=M.S;M.S=function(e,t){gh=Ye(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&rv(e,t),Qf!==null&&Qf(e,t)};var xl=yt(null);function Ts(){var e=xl.current;return e!==null?e:k.pooledCache}function iu(e,t){t===null?W(xl,xl.current):W(xl,t.pool)}function ud(){var e=Ts();return e===null?null:{parent:re._currentValue,pool:e}}var Ea=Error(j(460)),As=Error(j(474)),ai=Error(j(542)),zu={then:function(){}};function Zf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function id(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(_t,_t),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kf(e),e;default:if(typeof t.status=="string")t.then(_t,_t);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,Kf(e),e}throw jl=t,Ea}}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,Ea):l}}var jl=null;function Vf(){if(jl===null)throw Error(j(459));var e=jl;return jl=null,e}function Kf(e){if(e===Ea||e===ai)throw Error(j(483))}var aa=null,fn=0;function Vn(e){var t=fn;return fn+=1,aa===null&&(aa=[]),id(aa,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kn(e,t){throw t.$$typeof===Fm?Error(j(525)):(e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function cd(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=Ct(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,b){return y===null||y.tag!==6?(y=Ri(g,m.mode,b),y.return=m,y):(y=n(y,g),y.return=m,y)}function s(m,y,g,b){var T=g.type;return T===Gl?d(m,y,g.props.children,b,g.key):y!==null&&(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&gl(T)===y.type)?(y=n(y,g.props),Ra(y,g),y.return=m,y):(y=uu(g.type,g.key,g.props,null,m.mode,b),Ra(y,g),y.return=m,y)}function r(m,y,g,b){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=Di(g,m.mode,b),y.return=m,y):(y=n(y,g.children||[]),y.return=m,y)}function d(m,y,g,b,T){return y===null||y.tag!==7?(y=El(g,m.mode,b,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=Ri(""+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),Ra(g,y),g.return=m,g;case wa:return y=Di(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=El(y,m.mode,g,null),y.return=m,y;if(typeof y.then=="function")return h(m,Vn(y),g);if(y.$$typeof===zt)return h(m,Zn(m,y),g);Kn(m,y)}return null}function o(m,y,g,b){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,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ln:return g.key===T?s(m,y,g,b):null;case wa:return g.key===T?r(m,y,g,b):null;case Xt:return g=gl(g),o(m,y,g,b)}if(La(g)||_a(g))return T!==null?null:d(m,y,g,b,null);if(typeof g.then=="function")return o(m,y,Vn(g),b);if(g.$$typeof===zt)return o(m,y,Zn(m,g),b);Kn(m,g)}return null}function v(m,y,g,b,T){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return m=m.get(g)||null,c(y,m,""+b,T);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ln:return m=m.get(b.key===null?g:b.key)||null,s(y,m,b,T);case wa:return m=m.get(b.key===null?g:b.key)||null,r(y,m,b,T);case Xt:return b=gl(b),v(m,y,g,b,T)}if(La(b)||_a(b))return m=m.get(g)||null,d(y,m,b,T,null);if(typeof b.then=="function")return v(m,y,g,Vn(b),T);if(b.$$typeof===zt)return v(m,y,g,Zn(y,b),T);Kn(y,b)}return null}function S(m,y,g,b){for(var T=null,C=null,z=y,N=y=0,D=null;z!==null&&N<g.length;N++){z.index>N?(D=z,z=null):D=z.sibling;var O=o(m,z,g[N],b);if(O===null){z===null&&(z=D);break}e&&z&&O.alternate===null&&t(m,z),y=u(O,y,N),C===null?T=O:C.sibling=O,C=O,z=D}if(N===g.length)return l(m,z),q&&Nt(m,N),T;if(z===null){for(;N<g.length;N++)z=h(m,g[N],b),z!==null&&(y=u(z,y,N),C===null?T=z:C.sibling=z,C=z);return q&&Nt(m,N),T}for(z=a(z);N<g.length;N++)D=v(z,m,N,g[N],b),D!==null&&(e&&D.alternate!==null&&z.delete(D.key===null?N:D.key),y=u(D,y,N),C===null?T=D:C.sibling=D,C=D);return e&&z.forEach(function(Q){return t(m,Q)}),q&&Nt(m,N),T}function E(m,y,g,b){if(g==null)throw Error(j(151));for(var T=null,C=null,z=y,N=y=0,D=null,O=g.next();z!==null&&!O.done;N++,O=g.next()){z.index>N?(D=z,z=null):D=z.sibling;var Q=o(m,z,O.value,b);if(Q===null){z===null&&(z=D);break}e&&z&&Q.alternate===null&&t(m,z),y=u(Q,y,N),C===null?T=Q:C.sibling=Q,C=Q,z=D}if(O.done)return l(m,z),q&&Nt(m,N),T;if(z===null){for(;!O.done;N++,O=g.next())O=h(m,O.value,b),O!==null&&(y=u(O,y,N),C===null?T=O:C.sibling=O,C=O);return q&&Nt(m,N),T}for(z=a(z);!O.done;N++,O=g.next())O=v(z,m,N,O.value,b),O!==null&&(e&&O.alternate!==null&&z.delete(O.key===null?N:O.key),y=u(O,y,N),C===null?T=O:C.sibling=O,C=O);return e&&z.forEach(function(F){return t(m,F)}),q&&Nt(m,N),T}function x(m,y,g,b){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),b=n(y,g.props.children),b.return=m,m=b;break e}}else if(y.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&gl(T)===y.type){l(m,y.sibling),b=n(y,g.props),Ra(b,g),b.return=m,m=b;break e}l(m,y);break}else t(m,y);y=y.sibling}g.type===Gl?(b=El(g.props.children,m.mode,b,g.key),b.return=m,m=b):(b=uu(g.type,g.key,g.props,null,m.mode,b),Ra(b,g),b.return=m,m=b)}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),b=n(y,g.children||[]),b.return=m,m=b;break e}else{l(m,y);break}else t(m,y);y=y.sibling}b=Di(g,m.mode,b),b.return=m,m=b}return i(m);case Xt:return g=gl(g),x(m,y,g,b)}if(La(g))return S(m,y,g,b);if(_a(g)){if(T=_a(g),typeof T!="function")throw Error(j(150));return g=T.call(g),E(m,y,g,b)}if(typeof g.then=="function")return x(m,y,Vn(g),b);if(g.$$typeof===zt)return x(m,y,Zn(m,g),b);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),b=n(y,g),b.return=m,m=b):(l(m,y),b=Ri(g,m.mode,b),b.return=m,m=b),i(m)):l(m,y)}return function(m,y,g,b){try{fn=0;var T=x(m,y,g,b);return aa=null,T}catch(z){if(z===Ea||z===ai)throw z;var C=we(29,z,null,m.mode);return C.lanes=b,C.return=m,C}finally{}}}var zl=cd(!0),sd=cd(!1),Qt=!1;function zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zc(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,G&2){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Nu(e),Po(e,null,l),t}return li(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,Ao(e,l)}}function Ui(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 _c=!1;function ka(){if(_c){var e=la;if(e!==null)throw e}}function $a(e,t,l,a){_c=!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,v=o!==c.lane;if(v?(Y&o)===o:(a&o)===o){o!==0&&o===fa&&(_c=!0),d!==null&&(d=d.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{var S=e,E=c;o=t;var x=l;switch(E.tag){case 1:if(S=E.payload,typeof S=="function"){h=S.call(x,h,o);break e}h=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=E.payload,o=typeof S=="function"?S.call(x,h,o):S,o==null)break e;h=te({},h,o);break e;case 2:Qt=!0}}o=c.callback,o!==null&&(e.flags|=64,v&&(e.flags|=8192),v=n.callbacks,v===null?n.callbacks=[o]:v.push(o))}else v={lane:o,tag:c.tag,payload:c.payload,callback:c.callback,next:null},d===null?(r=d=v,s=h):d=d.next=v,i|=o;if(c=c.next,c===null){if(c=n.shared.pending,c===null)break;v=c,c=v.next,v.next=null,n.lastBaseUpdate=v,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 fd(e,t){if(typeof e!="function")throw Error(j(191,e));e.call(t)}function rd(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)fd(l[e],t)}var ra=yt(null),_u=yt(0);function Jf(e,t){e=wt,W(_u,e),W(ra,t),wt=e|t.baseLanes}function Oc(){W(_u,wt),W(ra,ra.current)}function _s(){wt=_u.current,pe(ra),pe(_u)}var Ze=yt(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 Cc(e){W(ie,ie.current),W(Ze,e),et===null&&(et=e)}function od(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=yt(0);function Ou(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||$c(l)||Wc(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 Ut=0,H=null,J=null,se=null,Cu=!1,na=!1,_l=!1,Ru=0,rn=0,ua=null,dv=0;function ne(){throw Error(j(321))}function Os(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 Cs(e,t,l,a,n,u){return Ut=u,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Xd:Gs,_l=!1,u=l(a,n),_l=!1,na&&(u=hd(t,l,a,n)),dd(e),u}function dd(e){M.H=on;var t=J!==null&&J.next!==null;if(Ut=0,se=J=H=null,Cu=!1,rn=0,ua=null,t)throw Error(j(300));e===null||oe||(e=e.dependencies,e!==null&&Au(e)&&(oe=!0))}function hd(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=Qd,u=t(l,a)}while(na);return u}function hv(){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 Rs(){var e=Ru!==0;return Ru=0,e}function Ds(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ms(e){if(Cu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Cu=!1}Ut=0,se=J=H=null,na=!1,rn=Ru=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 ni(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zn(e){var t=rn;return rn+=1,ua===null&&(ua=[]),e=id(ua,e,t),t=H,(se===null?t.memoizedState:se.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Xd:Gs),e}function ui(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zn(e);if(e.$$typeof===zt)return xe(e)}throw Error(j(438,String(e)))}function Us(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=ni(),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]=Im;return t.index++,l}function Ht(e,t){return typeof t=="function"?t(e):t}function cu(e){var t=ce();return Hs(t,J,e)}function Hs(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:(Ut&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((Ut&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 Hi(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 md(e,t,l){var a=H,n=ce(),u=q;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,Bs(pd.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},vd.bind(null,a,n,l,t),null),k===null)throw Error(j(349));u||Ut&127||yd(a,t,l)}return l}function yd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=H.updateQueue,t===null?(t=ni(),H.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function vd(e,t,l,a){t.value=l,t.getSnapshot=a,gd(t)&&Sd(e)}function pd(e,t,l){return l(function(){gd(t)&&Sd(e)})}function gd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Qe(e,l)}catch{return!0}}function Sd(e){var t=Ml(e,2);t!==null&&De(t,e,2)}function Rc(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:Ht,lastRenderedState:e},t}function bd(e,t,l,a){return e.baseState=l,Hs(e,J,typeof a=="function"?a:Ht)}function mv(e,t,l,a,n){if(ci(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),kf(e,t,c)}catch(r){Dc(e,t,r)}finally{u!==null&&i.types!==null&&(u.types=i.types),M.T=u}}else try{u=l(n,a),kf(e,t,u)}catch(r){Dc(e,t,r)}}function kf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){$f(e,t,a)},function(a){return Dc(e,t,a)}):$f(e,t,l)}function $f(e,t,l){t.status="fulfilled",t.value=l,xd(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 Dc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,xd(t),t=t.next;while(t!==a)}e.action=null}function xd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jd(e,t){return t}function Wf(e,t){if(q){var l=k.formState;if(l!==null){e:{var a=H;if(q){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:jd,lastRenderedState:t},l.queue=a,l=Yd.bind(null,H,a),a.dispatch=l,a=Rc(!1),u=qs.bind(null,H,!1,a.queue),a=Te(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=mv.bind(null,H,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Ff(e){var t=ce();return Nd(t,J,e)}function Nd(e,t,l){if(t=Hs(e,t,jd)[0],e=cu(Ht)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=zn(t)}catch(i){throw i===Ea?ai: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},yv.bind(null,n,l),null)),[a,u,e]}function yv(e,t){e.action=t}function If(e){var t=ce(),l=J;if(l!==null)return Nd(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=ni(),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 Td(){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 ii(e,t,l,a){var n=ce();a=a===void 0?null:a;var u=n.memoizedState.inst;J!==null&&a!==null&&Os(a,J.memoizedState.deps)?n.memoizedState=oa(t,u,l,a):(H.flags|=e,n.memoizedState=oa(1|t,u,l,a))}function Pf(e,t){su(8390656,8,e,t)}function Bs(e,t){ii(2048,8,e,t)}function vv(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=ni(),H.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function Ad(e){var t=ce().memoizedState;return vv({ref:t,nextImpl:e}),function(){if(G&2)throw Error(j(440));return t.impl.apply(void 0,arguments)}}function zd(e,t){return ii(4,2,e,t)}function _d(e,t){return ii(4,4,e,t)}function Od(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 Cd(e,t,l){l=l!=null?l.concat([e]):null,ii(4,4,Od.bind(null,t,e),l)}function ws(){}function Rd(e,t){var l=ce();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Os(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Dd(e,t){var l=ce();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Os(t,a[1]))return a[0];if(a=e(),_l){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[a,t],a}function Ls(e,t,l){return l===void 0||Ut&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=l,e=bh(),H.lanes|=e,ol|=e,l)}function Md(e,t,l,a){return Qe(l,t)?l:ra.current!==null?(e=Ls(e,l,a),Qe(e,t)||(oe=!0),e):!(Ut&42)||Ut&1073741824&&!(Y&261930)?(oe=!0,e.memoizedState=l):(e=bh(),H.lanes|=e,ol|=e,t)}function Ud(e,t,l,a,n){var u=X.p;X.p=u!==0&&8>u?u:8;var i=M.T,c={};M.T=c,qs(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=ov(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{X.p=u,i!==null&&c.types!==null&&(i.types=c.types),M.T=i}}function pv(){}function Mc(e,t,l,a){if(e.tag!==5)throw Error(j(476));var n=Hd(e).queue;Ud(e,n,t,bl,l===null?pv:function(){return Bd(e),l(a)})}function Hd(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:Ht,lastRenderedState:bl},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ht,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Bd(e){var t=Hd(e);t.next===null&&(t=e.alternate.memoizedState),Wa(e,t.next.queue,{},Xe())}function Ys(){return xe(mn)}function wd(){return ce().memoizedState}function Ld(){return ce().memoizedState}function gv(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:Ns()},e.payload=t;return}t=t.return}}function Sv(e,t,l){var a=Xe();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ci(e)?qd(t,l):(l=bs(e,t,l,a),l!==null&&(De(l,e,a),Gd(l,t,a)))}function Yd(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(ci(e))qd(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 li(e,t,n,0),k===null&&ti(),!1}catch{}finally{}if(l=bs(e,t,n,a),l!==null)return De(l,e,a),Gd(l,t,a),!0}return!1}function qs(e,t,l,a){if(a={lane:2,revertLane:$s(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ci(e)){if(t)throw Error(j(479))}else t=bs(e,l,a,2),t!==null&&De(t,e,2)}function ci(e){var t=e.alternate;return e===H||t!==null&&t===H}function qd(e,t){na=Cu=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Gd(e,t,l){if(l&4194048){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Ao(e,l)}}var on={readContext:xe,use:ui,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 Xd={readContext:xe,use:ui,useCallback:function(e,t){return Te().memoizedState=[e,t===void 0?null:t],e},useContext:xe,useEffect:Pf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,su(4194308,4,Od.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=Sv.bind(null,H,e),[a.memoizedState,e]},useRef:function(e){var t=Te();return e={current:e},t.memoizedState=e},useState:function(e){e=Rc(e);var t=e.queue,l=Yd.bind(null,H,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ws,useDeferredValue:function(e,t){var l=Te();return Ls(l,e,t)},useTransition:function(){var e=Rc(!1);return e=Ud.bind(null,H,e.queue,!0,!1),Te().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=H,n=Te();if(q){if(l===void 0)throw Error(j(407));l=l()}else{if(l=t(),k===null)throw Error(j(349));Y&127||yd(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,Pf(pd.bind(null,a,u,e),[e]),a.flags|=2048,oa(9,{destroy:void 0},vd.bind(null,a,u,l,t),null),l},useId:function(){var e=Te(),t=k.identifierPrefix;if(q){var l=ot,a=rt;l=(a&~(1<<32-Ge(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ru++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=dv++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:Wf,useActionState:Wf,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=qs.bind(null,H,!0,l),l.dispatch=t,[e,t]},useMemoCache:Us,useCacheRefresh:function(){return Te().memoizedState=gv.bind(null,H)},useEffectEvent:function(e){var t=Te(),l={impl:e};return t.memoizedState=l,function(){if(G&2)throw Error(j(440));return l.impl.apply(void 0,arguments)}}},Gs={readContext:xe,use:ui,useCallback:Rd,useContext:xe,useEffect:Bs,useImperativeHandle:Cd,useInsertionEffect:zd,useLayoutEffect:_d,useMemo:Dd,useReducer:cu,useRef:Td,useState:function(){return cu(Ht)},useDebugValue:ws,useDeferredValue:function(e,t){var l=ce();return Md(l,J.memoizedState,e,t)},useTransition:function(){var e=cu(Ht)[0],t=ce().memoizedState;return[typeof e=="boolean"?e:zn(e),t]},useSyncExternalStore:md,useId:wd,useHostTransitionStatus:Ys,useFormState:Ff,useActionState:Ff,useOptimistic:function(e,t){var l=ce();return bd(l,J,e,t)},useMemoCache:Us,useCacheRefresh:Ld};Gs.useEffectEvent=Ad;var Qd={readContext:xe,use:ui,useCallback:Rd,useContext:xe,useEffect:Bs,useImperativeHandle:Cd,useInsertionEffect:zd,useLayoutEffect:_d,useMemo:Dd,useReducer:Hi,useRef:Td,useState:function(){return Hi(Ht)},useDebugValue:ws,useDeferredValue:function(e,t){var l=ce();return J===null?Ls(l,e,t):Md(l,J.memoizedState,e,t)},useTransition:function(){var e=Hi(Ht)[0],t=ce().memoizedState;return[typeof e=="boolean"?e:zn(e),t]},useSyncExternalStore:md,useId:wd,useHostTransitionStatus:Ys,useFormState:If,useActionState:If,useOptimistic:function(e,t){var l=ce();return J!==null?bd(l,J,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Us,useCacheRefresh:Ld};Qd.useEffectEvent=Ad;function Bi(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 Uc={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 er(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 tr(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&&Uc.enqueueReplaceState(t,t.state,null)}function Ol(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 Zd(e){ju(e)}function Vd(e){console.error(e)}function Kd(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 lr(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Hc(e,t,l){return l=tl(l),l.tag=3,l.payload={element:null},l.callback=function(){Du(e,t)},l}function Jd(e){return e=tl(e),e.tag=3,e}function kd(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(){lr(t,l,a)}}var i=l.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){lr(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 bv(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),Ji(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)),Ji(e,a,n)),!1}throw Error(j(435,l.tag))}return Ji(e,a,n),wu(),!1}if(q)return t=Ze.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==xc&&(e=Error(j(422),{cause:a}),sn(Ie(e,l)))):(a!==xc&&(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=Hc(e.stateNode,a,n),Ui(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=Hc(l.stateNode,a,e),Ui(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=Jd(n),kd(n,e,l,a),Ui(l,n),!1}l=l.return}while(l!==null);return!1}var Xs=Error(j(461)),oe=!1;function Se(e,t,l,a){t.child=e===null?sd(t,null,l,a):zl(t,e.child,l,a)}function ar(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=Cs(e,t,l,i,u,n),c=Rs(),e!==null&&!oe?(Ds(e,t,n),Bt(e,t,n)):(q&&c&&xs(t),t.flags|=1,Se(e,t,a,n),t.child)}function nr(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,$d(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,!Qs(e,n)){var i=u.memoizedProps;if(l=l.compare,l=l!==null?l:un,l(i,a)&&e.ref===t.ref)return Bt(e,t,n)}return t.flags|=1,e=Ct(u,a),e.ref=t.ref,e.return=t,t.child=e}function $d(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,Qs(e,n))e.flags&131072&&(oe=!0);else return t.lanes=e.lanes,Bt(e,t,n)}return Bc(e,t,l,a,n)}function Wd(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 ur(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?Jf(t,u):Oc(),od(t);else return a=t.lanes=536870912,ur(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(iu(t,u.cachePool),Jf(t,u),Kt(),t.memoizedState=null):(e!==null&&iu(t,null),Oc(),Kt());return Se(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 ur(e,t,l,a,n){var u=Ts();return u=u===null?null:{parent:re._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&iu(t,null),Oc(),od(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 ir(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 Ev(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(q){if(a.mode==="hidden")return e=fu(t,a),t.lanes=536870912,qa(null,e);if(Cc(t),(e=P)?(e=Xh(e,Pe),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:rt,overflow:ot}:null,retryLane:536870912,hydrationErrors:null},l=td(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(Cc(t),n)if(t.flags&256)t.flags&=-257,t=ir(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=zo(a,l),i!==0&&i!==u.retryLane))throw u.retryLane=i,Ml(e,i),De(a,e,i),Xs;wu(),t=ir(e,t,l)}else e=u.treeContext,P=tt(i.nextSibling),Ee=t,q=!0,el=null,Pe=!1,e!==null&&ad(t,e),t=fu(t,a),t.flags|=4096;return t}return e=Ct(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 Bc(e,t,l,a,n){return Al(t),l=Cs(e,t,l,a,void 0,n),a=Rs(),e!==null&&!oe?(Ds(e,t,n),Bt(e,t,n)):(q&&a&&xs(t),t.flags|=1,Se(e,t,l,n),t.child)}function cr(e,t,l,a,n,u){return Al(t),t.updateQueue=null,l=hd(t,a,l,n),dd(e),a=Rs(),e!==null&&!oe?(Ds(e,t,u),Bt(e,t,u)):(q&&a&&xs(t),t.flags|=1,Se(e,t,l,u),t.child)}function sr(e,t,l,a,n){if(Al(t),t.stateNode===null){var u=$l,i=l.contextType;typeof i=="object"&&i!==null&&(u=xe(i)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Uc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},zs(t),i=l.contextType,u.context=typeof i=="object"&&i!==null?xe(i):$l,u.state=t.memoizedState,i=l.getDerivedStateFromProps,typeof i=="function"&&(Bi(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&&Uc.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=Ol(l,c);u.props=s;var r=u.context,d=l.contextType;i=$l,typeof d=="object"&&d!==null&&(i=xe(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)&&tr(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"&&(Bi(t,l,h,a),r=t.memoizedState),(s=Qt||er(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,zc(e,t),i=t.memoizedProps,d=Ol(l,i),u.props=d,h=t.pendingProps,o=u.context,r=l.contextType,s=$l,typeof r=="object"&&r!==null&&(s=xe(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)&&tr(t,u,a,s),Qt=!1,o=t.memoizedState,u.state=o,$a(t,a,u,n),ka();var v=t.memoizedState;i!==h||o!==v||Qt||e!==null&&e.dependencies!==null&&Au(e.dependencies)?(typeof c=="function"&&(Bi(t,l,c,a),v=t.memoizedState),(d=Qt||er(t,l,d,a,o,v,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,v,s),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,v,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=v),u.props=a,u.state=v,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)):Se(e,t,l,n),t.memoizedState=u.state,e=t.child):e=Bt(e,t,n),e}function fr(e,t,l,a){return Tl(),t.flags|=256,Se(e,t,l,a),t.child}var wi={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Li(e){return{baseLanes:e,cachePool:ud()}}function Yi(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Le),e}function Fd(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(q){if(n?Vt(t):Kt(),(e=P)?(e=Xh(e,Pe),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:sl!==null?{id:rt,overflow:ot}:null,retryLane:536870912,hydrationErrors:null},l=td(e),l.return=t,t.child=l,Ee=t,P=null)):e=null,e===null)throw fl(t);return Wc(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=El(a,n,l,null),c.return=t,a.return=t,c.sibling=a,t.child=c,a=t.child,a.memoizedState=Li(l),a.childLanes=Yi(e,i,l),t.memoizedState=wi,qa(null,a)):(Vt(t),wc(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=qi(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=El(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=Li(l),a.childLanes=Yi(e,i,l),t.memoizedState=wi,t=qa(null,a));else if(Vt(t),Wc(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=qi(e,t,l)}else if(oe||ba(e,t,l,!1),i=(l&e.childLanes)!==0,oe||i){if(i=k,i!==null&&(a=zo(i,l),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ml(e,a),De(i,e,a),Xs;$c(c)||wu(),t=qi(e,t,l)}else $c(c)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,P=tt(c.nextSibling),Ee=t,q=!0,el=null,Pe=!1,e!==null&&ad(t,e),t=wc(t,a.children),t.flags|=4096);return t}return n?(Kt(),c=a.fallback,n=t.mode,s=e.child,r=s.sibling,a=Ct(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,r!==null?c=Ct(r,c):(c=El(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=Li(l):(n=c.cachePool,n!==null?(s=re._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=ud(),c={baseLanes:c.baseLanes|l,cachePool:n}),a.memoizedState=c,a.childLanes=Yi(e,i,l),t.memoizedState=wi,qa(e.child,a)):(Vt(t),l=e.child,e=l.sibling,l=Ct(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 wc(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 qi(e,t,l){return zl(t,e.child,null,l),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rr(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Nc(e.return,t,l)}function Gi(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 Id(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),Se(e,t,a,l),a=q?cn:0,!c&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rr(e,l,t);else if(e.tag===19)rr(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&&Ou(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Gi(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&&Ou(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Gi(t,!0,l,null,u,a);break;case"together":Gi(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Bt(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=Ct(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Ct(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Qs(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Au(e)))}function xv(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:oc(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,Cc(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?Fd(e,t,l):(Vt(t),e=Bt(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 Id(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,Wd(e,t,l,t.pendingProps);case 24:Zt(t,re,e.memoizedState.cache)}return Bt(e,t,l)}function Pd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)oe=!0;else{if(!Qs(e,l)&&!(t.flags&128))return oe=!1,xv(e,t,l);oe=!!(e.flags&131072)}else oe=!1,q&&t.flags&1048576&&ld(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=Ol(e,a),t.tag=1,t=sr(null,t,e,a,l)):(t.tag=0,t=Bc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===cs){t.tag=11,t=ar(null,t,e,a,l);break e}else if(n===ss){t.tag=14,t=nr(null,t,e,a,l);break e}}throw t=fc(e)||e,Error(j(306,t,""))}}return t;case 0:return Bc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ol(a,t.pendingProps),sr(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,zc(e,t),$a(t,a,null,l);var i=t.memoizedState;if(a=i.cache,Zt(t,re,a),a!==u.cache&&Tc(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=fr(e,t,a,l);break e}else if(a!==n){n=Ie(Error(j(424)),t),sn(n),t=fr(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,q=!0,el=null,Pe=!0,l=sd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Tl(),a===n){t=Bt(e,t,l);break e}Se(e,t,a,l)}t=t.child}return t;case 26:return ru(e,t),e===null?(l=Cr(t.type,null,t.pendingProps,null))?t.memoizedState=l:q||(l=t.type,e=t.pendingProps,a=Gu(Pt.current).createElement(l),a[be]=t,a[Me]=e,je(a,l,e),ve(a),t.stateNode=a):t.memoizedState=Cr(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return oc(t),e===null&&q&&(a=t.stateNode=Qh(t.type,t.pendingProps,Pt.current),Ee=t,Pe=!0,n=P,hl(t.type)?(Fc=n,P=tt(a.firstChild)):P=n),Se(e,t,t.pendingProps.children,l),ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&q&&((n=a=P)&&(a=Iv(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)),oc(t),n=t.type,u=t.pendingProps,i=e!==null?e.memoizedProps:null,a=u.children,Jc(n,u)?a=null:i!==null&&Jc(n,i)&&(t.flags|=32),t.memoizedState!==null&&(n=Cs(e,t,hv,null,null,l),mn._currentValue=n),ru(e,t),Se(e,t,a,l),t.child;case 6:return e===null&&q&&((e=l=P)&&(l=Pv(l,t.pendingProps,Pe),l!==null?(t.stateNode=l,Ee=t,P=null,e=!0):e=!1),e||fl(t)),null;case 13:return Fd(e,t,l);case 4:return Su(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=zl(t,null,a,l):Se(e,t,a,l),t.child;case 11:return ar(e,t,t.type,t.pendingProps,l);case 7:return Se(e,t,t.pendingProps,l),t.child;case 8:return Se(e,t,t.pendingProps.children,l),t.child;case 12:return Se(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zt(t,t.type,a.value),Se(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Al(t),n=xe(n),a=a(n),t.flags|=1,Se(e,t,a,l),t.child;case 14:return nr(e,t,t.type,t.pendingProps,l);case 15:return $d(e,t,t.type,t.pendingProps,l);case 19:return Id(e,t,l);case 31:return Ev(e,t,l);case 22:return Wd(e,t,l,t.pendingProps);case 24:return Al(t),a=xe(re),e===null?(n=Ts(),n===null&&(n=k,u=Ns(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},zs(t),Zt(t,re,n)):(e.lanes&l&&(zc(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&&Tc(t,[re],l,!0))),Se(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(j(156,t.tag))}function bt(e){e.flags|=4}function Xi(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(jh())e.flags|=8192;else throw jl=zu,As}else e.flags&=-16777217}function or(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kh(t))if(jh())e.flags|=8192;else throw jl=zu,As}function Jn(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?No():536870912,e.lanes|=t,da|=t)}function Da(e,t){if(!q)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 jv(e,t,l){var a=t.pendingProps;switch(js(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),Rt(re),ia(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Bl(t)?bt(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Mi())),I(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(bt(t),u!==null?(I(t),or(t,u)):(I(t),Xi(t,n,null,a,l))):u?u!==e.memoizedState?(bt(t),I(t),or(t,u)):(I(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&bt(t),I(t),Xi(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&&bt(t);else{if(!a){if(t.stateNode===null)throw Error(j(166));return I(t),null}e=ht.current,Bl(t)?qf(t):(e=Qh(n,a,l),t.stateNode=e,bt(t))}return I(t),null;case 5:if(bu(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&bt(t);else{if(!a){if(t.stateNode===null)throw Error(j(166));return I(t),null}if(u=ht.current,Bl(t))qf(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[be]=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(je(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&bt(t)}}return I(t),Xi(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&bt(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[be]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Yh(e.nodeValue,l)),e||fl(t,!0)}else e=Gu(e).createTextNode(a),e[be]=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[be]=t}else Tl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),e=!1}else l=Mi(),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[be]=t}else Tl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;I(t),n=!1}else n=Mi(),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&&Ws(t.stateNode.containerInfo),I(t),null;case 10:return Rt(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=Ou(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;)ed(l,e),l=l.sibling;return W(ie,ie.current&1|2),q&&Nt(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=Ou(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&&!q)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),q&&Nt(t,a.treeForkCount),e):(I(t),null);case 22:case 23:return Be(t),_s(),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(xl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Rt(re),I(t),null;case 25:return null;case 30:return null}throw Error(j(156,t.tag))}function Nv(e,t){switch(js(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Rt(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 Rt(t.type),null;case 22:case 23:return Be(t),_s(),e!==null&&pe(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Rt(re),null;case 25:return null;default:return null}}function eh(e,t){switch(js(t),t.tag){case 3:Rt(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:Rt(t.type);break;case 22:case 23:Be(t),_s(),e!==null&&pe(xl);break;case 24:Rt(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 th(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{rd(t,l)}catch(a){V(e,e.return,a)}}}function lh(e,t,l){l.props=Ol(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 dt(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 ah(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 Qi(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 nh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hl(e.type)||e.tag===4}function Zi(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nh(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 Lc(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=_t));else if(a!==4&&(a===27&&hl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Lc(e,t,l),e=e.sibling;e!==null;)Lc(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 uh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);je(t,a,l),t[be]=e,t[Me]=l}catch(u){V(e,e.return,u)}}var At=!1,fe=!1,Vi=!1,dr=typeof WeakSet=="function"?WeakSet:Set,ye=null;function Tv(e,t){if(e=e.containerInfo,Vc=Vu,e=Ko(e),gs(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 v;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),(v=h.firstChild)!==null;)o=h,h=v;for(;;){if(h===e)break t;if(o===l&&++r===n&&(c=i),o===u&&++d===a&&(s=i),(v=h.nextSibling)!==null)break;h=o,o=h.parentNode}h=v}l=c===-1||s===-1?null:{start:c,end:s}}else l=null}l=l||{start:0,end:0}}else l=null;for(Kc={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 S=Ol(l.type,n);e=a.getSnapshotBeforeUpdate(S,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(E){V(l,l.return,E)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)kc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":kc(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 ih(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:xt(e,l),a&4&&_n(5,l);break;case 1:if(xt(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(i){V(l,l.return,i)}else{var n=Ol(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){V(l,l.return,i)}}a&64&&th(l),a&512&&Fa(l,l.return);break;case 3:if(xt(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{rd(e,t)}catch(i){V(l,l.return,i)}}break;case 27:t===null&&a&4&&uh(l);case 26:case 5:xt(e,l),t===null&&a&4&&ah(l),a&512&&Fa(l,l.return);break;case 12:xt(e,l);break;case 31:xt(e,l),a&4&&fh(e,l);break;case 13:xt(e,l),a&4&&rh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Uv.bind(null,l),ep(e,l))));break;case 22:if(a=l.memoizedState!==null||At,!a){t=t!==null&&t.memoizedState!==null||fe,n=At;var u=fe;At=a,(fe=t)&&!u?jt(e,l,(l.subtreeFlags&8772)!==0):xt(e,l),At=n,fe=u}break;case 30:break;default:xt(e,l)}}function ch(e){var t=e.alternate;t!==null&&(e.alternate=null,ch(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ds(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,Ce=!1;function Et(e,t,l){for(l=l.child;l!==null;)sh(e,t,l),l=l.sibling}function sh(e,t,l){if(qe&&typeof qe.onCommitFiberUnmount=="function")try{qe.onCommitFiberUnmount(En,l)}catch{}switch(l.tag){case 26:fe||dt(l,t),Et(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:fe||dt(l,t);var a=le,n=Ce;hl(l.type)&&(le=l.stateNode,Ce=!1),Et(e,t,l),tn(l.stateNode),le=a,Ce=n;break;case 5:fe||dt(l,t);case 6:if(a=le,n=Ce,le=null,Et(e,t,l),le=a,Ce=n,le!==null)if(Ce)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&&(Ce?(e=le,Tr(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),va(e)):Tr(le,l.stateNode));break;case 4:a=le,n=Ce,le=l.stateNode.containerInfo,Ce=!0,Et(e,t,l),le=a,Ce=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||(dt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&lh(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 fh(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 rh(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 Av(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dr),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dr),t;default:throw Error(j(435,e.tag))}}function kn(e,t){var l=Av(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Hv.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,Ce=!1;break e}break;case 5:le=c.stateNode,Ce=!1;break e;case 3:case 4:le=c.stateNode.containerInfo,Ce=!0;break e}c=c.return}if(le===null)throw Error(j(160));sh(u,i,n),le=null,Ce=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)oh(t,e),t=t.sibling}var ut=null;function oh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:_e(t,e),Oe(e),a&4&&(rl(3,e,e.return),_n(3,e),rl(5,e,e.return));break;case 1:_e(t,e),Oe(e),a&512&&(fe||l===null||dt(l,l.return)),a&64&&At&&(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),Oe(e),a&512&&(fe||l===null||dt(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[be]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),je(u,a,l),u[be]=e,ve(u),a=u;break e;case"link":var i=Dr("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),je(u,a,l),n.head.appendChild(u);break;case"meta":if(i=Dr("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),je(u,a,l),n.head.appendChild(u);break;default:throw Error(j(468,a))}u[be]=e,ve(u),a=u}e.stateNode=a}else Mr(n,e.type,e.stateNode);else e.stateNode=Rr(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?Mr(n,e.type,e.stateNode):Rr(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Qi(e,e.memoizedProps,l.memoizedProps)}break;case 27:_e(t,e),Oe(e),a&512&&(fe||l===null||dt(l,l.return)),l!==null&&a&4&&Qi(e,e.memoizedProps,l.memoizedProps);break;case 5:if(_e(t,e),Oe(e),a&512&&(fe||l===null||dt(l,l.return)),e.flags&32){n=e.stateNode;try{sa(n,"")}catch(S){V(e,e.return,S)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Qi(e,n,l!==null?l.memoizedProps:n)),a&1024&&(Vi=!0);break;case 6:if(_e(t,e),Oe(e),a&4){if(e.stateNode===null)throw Error(j(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(S){V(e,e.return,S)}}break;case 3:if(hu=null,n=ut,ut=Xu(t.containerInfo),_e(t,e),ut=n,Oe(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{va(t.containerInfo)}catch(S){V(e,e.return,S)}Vi&&(Vi=!1,dh(e));break;case 4:a=ut,ut=Xu(e.stateNode.containerInfo),_e(t,e),Oe(e),ut=a;break;case 12:_e(t,e),Oe(e);break;case 31:_e(t,e),Oe(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,kn(e,a)));break;case 13:_e(t,e),Oe(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(si=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=At,d=fe;if(At=r||n,fe=d||s,_e(t,e),fe=d,At=r,Oe(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||s||At||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(S){V(s,s.return,S)}}}else if(t.tag===6){if(l===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(S){V(s,s.return,S)}}}else if(t.tag===18){if(l===null){s=t;try{var v=s.stateNode;n?Ar(v,!0):Ar(s.stateNode,!1)}catch(S){V(s,s.return,S)}}}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),Oe(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),Oe(e)}}function Oe(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(nh(a)){l=a;break}a=a.return}if(l==null)throw Error(j(160));switch(l.tag){case 27:var n=l.stateNode,u=Zi(e);Uu(e,u,n);break;case 5:var i=l.stateNode;l.flags&32&&(sa(i,""),l.flags&=-33);var c=Zi(e);Uu(e,c,i);break;case 3:case 4:var s=l.stateNode.containerInfo,r=Zi(e);Lc(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 dh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xt(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ih(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:dt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&lh(t,t.return,l),Sl(t);break;case 27:tn(t.stateNode);case 26:case 5:dt(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 jt(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:jt(n,u,l),_n(4,u);break;case 1:if(jt(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++)fd(s[n],c)}catch(r){V(a,a.return,r)}}l&&i&64&&th(u),Fa(u,u.return);break;case 27:uh(u);case 26:case 5:jt(n,u,l),l&&a===null&&i&4&&ah(u),Fa(u,u.return);break;case 12:jt(n,u,l);break;case 31:jt(n,u,l),l&&i&4&&fh(n,u);break;case 13:jt(n,u,l),l&&i&4&&rh(n,u);break;case 22:u.memoizedState===null&&jt(n,u,l),Fa(u,u.return);break;case 30:break;default:jt(n,u,l)}t=t.sibling}}function Zs(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 Vs(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;)hh(e,t,l,a),t=t.sibling}function hh(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&&Zs(i,t);break;case 24:nt(e,t,l,a),n&2048&&Vs(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&&Zs(i.alternate,i);break;case 24:Yl(u,i,c,s,n),n&&r&2048&&Vs(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&&Zs(a.alternate,a);break;case 24:Ia(l,a),n&2048&&Vs(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;)mh(e,t,l),e=e.sibling}function mh(e,t,l){switch(e.tag){case 26:wl(e,t,l),e.flags&Ga&&e.memoizedState!==null&&dp(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 yh(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,ph(a,e)}yh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vh(e),e=e.sibling}function vh(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,ph(a,e)}yh(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 ph(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(ch(a),a===l){ye=null;break e}if(n!==null){n.return=u,ye=n;break e}ye=u}}}var zv={getCacheForType:function(e){var t=xe(re),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return xe(re).controller.signal}},_v=typeof WeakMap=="function"?WeakMap:Map,G=0,k=null,w=null,Y=0,Z=0,He=null,Wt=!1,xa=!1,Ks=!1,wt=0,ue=0,ol=0,Nl=0,Js=0,Le=0,da=0,Pa=null,Re=null,Yc=!1,si=0,gh=0,Hu=1/0,Bu=null,al=null,de=0,nl=null,ha=null,Dt=0,qc=0,Gc=null,Sh=null,en=0,Xc=null;function Xe(){return G&2&&Y!==0?Y&-Y:M.T!==null?$s():_o()}function bh(){if(Le===0)if(!(Y&536870912)||q){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),(!(G&2)||e!==k)&&(e===k&&(!(G&2)&&(Nl|=l),ue===4&&Ft(e,Y,Le,!1)),vt(e))}function Eh(e,t,l){if(G&6)throw Error(j(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||xn(e,t),n=a?Rv(e,t):Ki(e,t,!0),u=a;do{if(n===0){xa&&!a&&Ft(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!Ov(l)){n=Ki(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=Ki(c,i,!1),i!==2){if(Ks&&!s){c.errorRecoveryDisabledLanes|=u,Nl|=u,n=4;break e}u=Re,Re=n,u!==null&&(Re===null?Re=u:Re.push.apply(Re,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:Re=null;break;case 3:case 5:break;default:throw Error(j(329))}if((t&62914560)===t&&(n=si+300-Ye(),10<n)){if(Ft(a,t,Le,!Wt),Fu(a,0,!0)!==0)break e;Dt=t,a.timeoutHandle=Gh(hr.bind(null,a,l,Re,Bu,Yc,t,Le,Nl,da,Wt,u,"Throttled",-0,0),n);break e}hr(a,l,Re,Bu,Yc,t,Le,Nl,da,Wt,u,null,-0,0)}}break}while(!0);vt(e)}function hr(e,t,l,a,n,u,i,c,s,r,d,h,o,v){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:_t},mh(t,u,h);var S=(u&62914560)===u?si-Ye():(u&4194048)===u?gh-Ye():0;if(S=hp(h,S),S!==null){Dt=u,e.cancelPendingCommit=S(yr.bind(null,e,t,u,l,a,n,i,c,s,d,h,null,o,v)),Ft(e,u,i,!r);return}}yr(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&=~Js,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&&To(e,l,t)}function fi(){return G&6?!0:(On(0),!1)}function ks(){if(w!==null){if(Z===0)var e=w.return;else e=w,Ot=Ul=null,Ms(e),aa=null,fn=0,e=w;for(;e!==null;)eh(e.alternate,e),e=e.return;w=null}}function ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,$v(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Dt=0,ks(),k=e,w=l=Ct(e.current,null),Y=t,Z=0,He=null,Wt=!1,xa=xn(e,t),Ks=!1,da=Le=Js=Nl=ol=ue=0,Re=Pa=null,Yc=!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 wt=t,ti(),l}function xh(e,t){H=null,M.H=on,t===Ea||t===ai?(t=Vf(),Z=3):t===As?(t=Vf(),Z=4):Z=t===Xs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,He=t,w===null&&(ue=1,Du(e,Ie(t,e.current)))}function jh(){var e=Ze.current;return e===null?!0:(Y&4194048)===Y?et===null:(Y&62914560)===Y||Y&536870912?e===et:!1}function Nh(){var e=M.H;return M.H=on,e===null?on:e}function Th(){var e=M.A;return M.A=zv,e}function wu(){ue=4,Wt||(Y&4194048)!==Y&&Ze.current!==null||(xa=!0),!(ol&134217727)&&!(Nl&134217727)||k===null||Ft(k,Y,Le,!1)}function Ki(e,t,l){var a=G;G|=2;var n=Nh(),u=Th();(k!==e||Y!==t)&&(Bu=null,ma(e,t)),t=!1;var i=ue;e:do try{if(Z!==0&&w!==null){var c=w,s=He;switch(Z){case 8:ks(),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&&xa){i=0;break e}break;default:r=Z,Z=0,He=null,Il(e,c,s,r)}}Cv(),i=ue;break}catch(d){xh(e,d)}while(!0);return t&&e.shellSuspendCounter++,Ot=Ul=null,G=a,M.H=n,M.A=u,w===null&&(k=null,Y=0,ti()),i}function Cv(){for(;w!==null;)Ah(w)}function Rv(e,t){var l=G;G|=2;var a=Nh(),n=Th();k!==e||Y!==t?(Bu=null,Hu=Ye()+500,ma(e,t)):xa=xn(e,t);e:do try{if(Z!==0&&w!==null){t=w;var u=He;t:switch(Z){case 1:Z=0,He=null,Il(e,t,u,1);break;case 2:case 9:if(Zf(u)){Z=0,He=null,mr(t);break}t=function(){Z!==2&&Z!==9||k!==e||(Z=7),vt(e)},u.then(t,t);break e;case 3:Z=7;break e;case 4:Z=5;break e;case 7:Zf(u)?(Z=0,He=null,mr(t)):(Z=0,He=null,Il(e,t,u,7));break;case 5:var i=null;switch(w.tag){case 26:i=w.memoizedState;case 5:case 27:var c=w;if(i?Kh(i):c.stateNode.complete){Z=0,He=null;var s=c.sibling;if(s!==null)w=s;else{var r=c.return;r!==null?(w=r,ri(r)):w=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:ks(),ue=6;break e;default:throw Error(j(462))}}Dv();break}catch(d){xh(e,d)}while(!0);return Ot=Ul=null,M.H=a,M.A=n,G=l,w!==null?0:(k=null,Y=0,ti(),ue)}function Dv(){for(;w!==null&&!ty();)Ah(w)}function Ah(e){var t=Pd(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?ri(e):w=t}function mr(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=cr(l,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=cr(l,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:Ms(t);default:eh(l,t),t=w=ed(t,wt),t=Pd(l,t,wt)}e.memoizedProps=e.pendingProps,t===null?ri(e):w=t}function Il(e,t,l,a){Ot=Ul=null,Ms(t),aa=null,fn=0;var n=t.return;try{if(bv(e,n,t,l,Y)){ue=1,Du(e,Ie(l,e.current)),w=null;return}}catch(u){if(n!==null)throw w=n,u;ue=1,Du(e,Ie(l,e.current)),w=null;return}t.flags&32768?(q||a===1?e=!0:xa||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))),zh(t,e)):ri(t)}function ri(e){var t=e;do{if(t.flags&32768){zh(t,Wt);return}e=t.return;var l=jv(t.alternate,t,wt);if(l!==null){w=l;return}if(t=t.sibling,t!==null){w=t;return}w=t=e}while(t!==null);ue===0&&(ue=5)}function zh(e,t){do{var l=Nv(e.alternate,e);if(l!==null){l.flags&=32767,w=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){w=e;return}w=e=l}while(e!==null);ue=6,w=null}function yr(e,t,l,a,n,u,i,c,s){e.cancelPendingCommit=null;do oi();while(de!==0);if(G&6)throw Error(j(327));if(t!==null){if(t===e.current)throw Error(j(177));if(u=t.lanes|t.childLanes,u|=Ss,oy(e,l,u,i,c,s),e===k&&(w=k=null,Y=0),ha=t,nl=e,Dt=l,qc=u,Gc=n,Sh=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Bv(Eu,function(){return Dh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=M.T,M.T=null,n=X.p,X.p=2,i=G,G|=4;try{Tv(e,t,l)}finally{G=i,X.p=n,M.T=a}}de=1,_h(),Oh(),Ch()}}function _h(){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=X.p;X.p=2;var n=G;G|=4;try{oh(t,e);var u=Kc,i=Ko(e.containerInfo),c=u.focusedElem,s=u.selectionRange;if(i!==c&&c&&c.ownerDocument&&Vo(c.ownerDocument.documentElement,c)){if(s!==null&&gs(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 v=o.getSelection(),S=c.textContent.length,E=Math.min(s.start,S),x=s.end===void 0?E:Math.min(s.end,S);!v.extend&&E>x&&(i=x,x=E,E=i);var m=wf(c,E),y=wf(c,x);if(m&&y&&(v.rangeCount!==1||v.anchorNode!==m.node||v.anchorOffset!==m.offset||v.focusNode!==y.node||v.focusOffset!==y.offset)){var g=h.createRange();g.setStart(m.node,m.offset),v.removeAllRanges(),E>x?(v.addRange(g),v.extend(y.node,y.offset)):(g.setEnd(y.node,y.offset),v.addRange(g))}}}}for(h=[],v=c;v=v.parentNode;)v.nodeType===1&&h.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<h.length;c++){var b=h[c];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Vu=!!Vc,Kc=Vc=null}finally{G=n,X.p=a,M.T=l}}e.current=t,de=2}}function Oh(){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=X.p;X.p=2;var n=G;G|=4;try{ih(e,t.alternate,t)}finally{G=n,X.p=a,M.T=l}}de=3}}function Ch(){if(de===4||de===3){de=0,ly();var e=nl,t=ha,l=Dt,a=Sh;t.subtreeFlags&10256||t.flags&10256?de=5:(de=0,ha=nl=null,Rh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(al=null),os(l),t=t.stateNode,qe&&typeof qe.onCommitFiberRoot=="function")try{qe.onCommitFiberRoot(En,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=M.T,n=X.p,X.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,X.p=n}}Dt&3&&oi(),vt(e),n=e.pendingLanes,l&261930&&n&42?e===Xc?en++:(en=0,Xc=e):en=0,On(0)}}function Rh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,An(t)))}function oi(){return _h(),Oh(),Ch(),Dh()}function Dh(){if(de!==5)return!1;var e=nl,t=qc;qc=0;var l=os(Dt),a=M.T,n=X.p;try{X.p=32>l?32:l,M.T=null,l=Gc,Gc=null;var u=nl,i=Dt;if(de=0,ha=nl=null,Dt=0,G&6)throw Error(j(331));var c=G;if(G|=4,vh(u.current),hh(u,u.current,i,l),G=c,On(0,!1),qe&&typeof qe.onPostCommitFiberRoot=="function")try{qe.onPostCommitFiberRoot(En,u)}catch{}return!0}finally{X.p=n,M.T=a,Rh(e,t)}}function vr(e,t,l){t=Ie(l,t),t=Hc(e.stateNode,t,2),e=ll(e,t,2),e!==null&&(jn(e,2),vt(e))}function V(e,t,l){if(e.tag===3)vr(e,e,l);else for(;t!==null;){if(t.tag===3){vr(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=Jd(2),a=ll(t,l,2),a!==null&&(kd(l,a,t,e),jn(a,2),vt(a));break}}t=t.return}}function Ji(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new _v;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)||(Ks=!0,n.add(l),e=Mv.bind(null,e,t,l),t.then(e,e))}function Mv(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()-si?!(G&2)&&ma(e,0):Js|=l,da===Y&&(da=0)),vt(e)}function Mh(e,t){t===0&&(t=No()),e=Ml(e,t),e!==null&&(jn(e,t),vt(e))}function Uv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Mh(e,l)}function Hv(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),Mh(e,l)}function Bv(e,t){return fs(e,t)}var Lu=null,ql=null,Qc=!1,Yu=!1,ki=!1,It=0;function vt(e){e!==ql&&e.next===null&&(ql===null?Lu=ql=e:ql=ql.next=e),Yu=!0,Qc||(Qc=!0,Lv())}function On(e,t){if(!ki&&Yu){ki=!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,pr(a,u))}else u=Y,u=Fu(a,a===k?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(u&3)||xn(a,u)||(l=!0,pr(a,u));a=a.next}while(l);ki=!1}}function wv(){Uh()}function Uh(){Yu=Qc=!1;var e=0;It!==0&&kv()&&(e=It);for(var t=Ye(),l=null,a=Lu;a!==null;){var n=a.next,u=Hh(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||On(e),It!==0&&(It=0)}function Hh(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]=ry(c,t)):s<=t&&(e.expiredLanes|=c),u&=~c}if(t=k,l=Y,l=Fu(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&&xi(a),e.callbackNode=null,e.callbackPriority=0;if(!(l&3)||xn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&xi(a),os(l)){case 2:case 8:l=xo;break;case 32:l=Eu;break;case 268435456:l=jo;break;default:l=Eu}return a=Bh.bind(null,e),l=fs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&xi(a),e.callbackPriority=2,e.callbackNode=null,2}function Bh(e,t){if(de!==0&&de!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(oi()&&e.callbackNode!==l)return null;var a=Y;return a=Fu(e,e===k?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Eh(e,a,t),Hh(e,Ye()),e.callbackNode!=null&&e.callbackNode===l?Bh.bind(null,e):null)}function pr(e,t){if(oi())return null;Eh(e,t,!0)}function Lv(){Wv(function(){G&6?fs(Eo,wv):Uh()})}function $s(){if(It===0){var e=fa;e===0&&(e=Yn,Yn<<=1,!(Yn&261888)&&(Yn=256)),It=e}return It}function gr(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(""+e)}function Sr(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 Yv(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=gr((n[Me]||null).action),i=a.submitter;i&&(t=(t=i[Me]||null)?gr(t.formAction):i.getAttribute("formAction"),t!==null&&(u=t,i=null));var c=new Iu("action","action",null,a,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(It!==0){var s=i?Sr(n,i):new FormData(n);Mc(l,{pending:!0,data:s,method:n.method,action:u},null,s)}}else typeof u=="function"&&(c.preventDefault(),s=i?Sr(n,i):new FormData(n),Mc(l,{pending:!0,data:s,method:n.method,action:u},u,s))},currentTarget:n}]})}}for(var $i=0;$i<Ec.length;$i++){var Wi=Ec[$i],qv=Wi.toLowerCase(),Gv=Wi[0].toUpperCase()+Wi.slice(1);ct(qv,"on"+Gv)}ct(ko,"onAnimationEnd");ct($o,"onAnimationIteration");ct(Wo,"onAnimationStart");ct("dblclick","onDoubleClick");ct("focusin","onFocus");ct("focusout","onBlur");ct(av,"onTransitionRun");ct(nv,"onTransitionStart");ct(uv,"onTransitionCancel");ct(Fo,"onTransitionEnd");ca("onMouseEnter",["mouseout","mouseover"]);ca("onMouseLeave",["mouseout","mouseover"]);ca("onPointerEnter",["pointerout","pointerover"]);ca("onPointerLeave",["pointerout","pointerover"]);Cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Cl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Cl("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(" "),Xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(dn));function wh(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 B(e,t){var l=t[hc];l===void 0&&(l=t[hc]=new Set);var a=e+"__bubble";l.has(a)||(Lh(t,e,2,!1),l.add(a))}function Fi(e,t,l){var a=0;t&&(a|=4),Lh(l,e,a,t)}var $n="_reactListening"+Math.random().toString(36).slice(2);function Ws(e){if(!e[$n]){e[$n]=!0,Oo.forEach(function(l){l!=="selectionchange"&&(Xv.has(l)||Fi(l,!1,e),Fi(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$n]||(t[$n]=!0,Fi("selectionchange",!1,t))}}function Lh(e,t,l,a){switch(Fh(t)){case 2:var n=vp;break;case 8:n=pp;break;default:n=ef}l=n.bind(null,t,l,e),n=void 0,!gc||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 Ii(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}wo(function(){var r=u,d=ms(l),h=[];e:{var o=Io.get(e);if(o!==void 0){var v=Iu,S=e;switch(e){case"keypress":if(nu(l)===0)break e;case"keydown":case"keyup":v=Hy;break;case"focusin":S="focus",v=zi;break;case"focusout":S="blur",v=zi;break;case"beforeblur":case"afterblur":v=zi;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":v=zf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=jy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Ly;break;case ko:case $o:case Wo:v=Ay;break;case Fo:v=qy;break;case"scroll":case"scrollend":v=Ey;break;case"wheel":v=Xy;break;case"copy":case"cut":case"paste":v=_y;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Of;break;case"toggle":case"beforetoggle":v=Zy}var E=(t&4)!==0,x=!E&&(e==="scroll"||e==="scrollend"),m=E?o!==null?o+"Capture":null:o;E=[];for(var y=r,g;y!==null;){var b=y;if(g=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||g===null||m===null||(b=an(y,m),b!=null&&E.push(hn(y,b,g))),x)break;y=y.return}0<E.length&&(o=new v(o,S,null,l,d),h.push({event:o,listeners:E}))}}if(!(t&7)){e:{if(o=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",o&&l!==pc&&(S=l.relatedTarget||l.fromElement)&&(Ql(S)||S[ga]))break e;if((v||o)&&(o=d.window===d?d:(o=d.ownerDocument)?o.defaultView||o.parentWindow:window,v?(S=l.relatedTarget||l.toElement,v=r,S=S?Ql(S):null,S!==null&&(x=bn(S),E=S.tag,S!==x||E!==5&&E!==27&&E!==6)&&(S=null)):(v=null,S=r),v!==S)){if(E=zf,b="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(E=Of,b="onPointerLeave",m="onPointerEnter",y="pointer"),x=v==null?o:Ya(v),g=S==null?o:Ya(S),o=new E(b,y+"leave",v,l,d),o.target=x,o.relatedTarget=g,b=null,Ql(d)===r&&(E=new E(m,y+"enter",S,l,d),E.target=g,E.relatedTarget=x,b=E),x=b,v&&S)t:{for(E=Qv,m=v,y=S,g=0,b=m;b;b=E(b))g++;b=0;for(var T=y;T;T=E(T))b++;for(;0<g-b;)m=E(m),g--;for(;0<b-g;)y=E(y),b--;for(;g--;){if(m===y||y!==null&&m===y.alternate){E=m;break t}m=E(m),y=E(y)}E=null}else E=null;v!==null&&br(h,o,v,E,!1),S!==null&&x!==null&&br(h,x,S,E,!0)}}e:{if(o=r?Ya(r):window,v=o.nodeName&&o.nodeName.toLowerCase(),v==="select"||v==="input"&&o.type==="file")var C=Mf;else if(Df(o))if(Qo)C=ev;else{C=Iy;var z=Fy}else v=o.nodeName,!v||v.toLowerCase()!=="input"||o.type!=="checkbox"&&o.type!=="radio"?r&&hs(r.elementType)&&(C=Mf):C=Py;if(C&&(C=C(e,r))){Xo(h,C,l,d);break e}z&&z(e,o,r),e==="focusout"&&r&&o.type==="number"&&r.memoizedProps.value!=null&&vc(o,"number",o.value)}switch(z=r?Ya(r):window,e){case"focusin":(Df(z)||z.contentEditable==="true")&&(Kl=z,Sc=r,Va=null);break;case"focusout":Va=Sc=Kl=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,Lf(h,l,d);break;case"selectionchange":if(lv)break;case"keydown":case"keyup":Lf(h,l,d)}var N;if(ps)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else Vl?qo(e,l)&&(D="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(D="onCompositionStart");D&&(Yo&&l.locale!=="ko"&&(Vl||D!=="onCompositionStart"?D==="onCompositionEnd"&&Vl&&(N=Lo()):($t=d,ys="value"in $t?$t.value:$t.textContent,Vl=!0)),z=qu(r,D),0<z.length&&(D=new _f(D,e,null,l,d),h.push({event:D,listeners:z}),N?D.data=N:(N=Go(l),N!==null&&(D.data=N)))),(N=Ky?Jy(e,l):ky(e,l))&&(D=qu(r,"onBeforeInput"),0<D.length&&(z=new _f("onBeforeInput","beforeinput",null,l,d),h.push({event:z,listeners:D}),z.data=N)),Yv(h,e,r,l,d)}wh(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 Qv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function br(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 Zv=/\r\n?/g,Vv=/\u0000|\uFFFD/g;function Er(e){return(typeof e=="string"?e:""+e).replace(Zv,`
49
+ `).replace(Vv,"")}function Yh(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":Bo(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=_t);break;case"onScroll":a!=null&&B("scroll",e);break;case"onScrollEnd":a!=null&&B("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":B("beforetoggle",e),B("toggle",e),tu(e,"popover",a);break;case"xlinkActuate":St(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":St(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":St(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":St(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":St(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":St(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":St(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":St(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":St(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=Sy.get(l)||l,tu(e,l,a))}}function Zc(e,t,l,a,n,u){switch(l){case"style":Bo(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&&B("scroll",e);break;case"onScrollEnd":a!=null&&B("scrollend",e);break;case"onClick":a!=null&&(e.onclick=_t);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Co.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 je(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":B("error",e),B("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":B("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)}}Mo(e,u,c,s,r,i,n,!1);return;case"select":B("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":B("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)}Ho(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":B("beforetoggle",e),B("toggle",e),B("cancel",e),B("close",e);break;case"iframe":case"object":B("load",e);break;case"video":case"audio":for(a=0;a<dn.length;a++)B(dn[a],e);break;case"image":B("error",e),B("load",e);break;case"details":B("toggle",e);break;case"embed":case"source":case"link":B("error",e),B("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(hs(t)){for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!==void 0&&Zc(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(v in l){var h=l[v];if(l.hasOwnProperty(v)&&h!=null)switch(v){case"checked":break;case"value":break;case"defaultValue":s=h;default:a.hasOwnProperty(v)||K(e,t,v,null,a,h)}}for(var o in a){var v=a[o];if(h=l[o],a.hasOwnProperty(o)&&(v!=null||h!=null))switch(o){case"type":u=v;break;case"name":n=v;break;case"checked":r=v;break;case"defaultChecked":d=v;break;case"value":i=v;break;case"defaultValue":c=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(j(137,t));break;default:v!==h&&K(e,t,o,v,a,h)}}yc(e,i,c,s,r,d,u,n);return;case"select":v=i=c=o=null;for(u in l)if(s=l[u],l.hasOwnProperty(u)&&s!=null)switch(u){case"value":break;case"multiple":v=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=v,o!=null?ea(e,!!l,o,!1):!!a!=!!l&&(t!=null?ea(e,!!l,t,!0):ea(e,!!l,l?[]:"",!1));return;case"textarea":v=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":v=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)}Uo(e,o,v);return;case"option":for(var S in l)if(o=l[S],l.hasOwnProperty(S)&&o!=null&&!a.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:K(e,t,S,null,a,o)}for(s in a)if(o=a[s],v=l[s],a.hasOwnProperty(s)&&o!==v&&(o!=null||v!=null))switch(s){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:K(e,t,s,o,a,v)}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 E in l)o=l[E],l.hasOwnProperty(E)&&o!=null&&!a.hasOwnProperty(E)&&K(e,t,E,null,a,o);for(r in a)if(o=a[r],v=l[r],a.hasOwnProperty(r)&&o!==v&&(o!=null||v!=null))switch(r){case"children":case"dangerouslySetInnerHTML":if(o!=null)throw Error(j(137,t));break;default:K(e,t,r,o,a,v)}return;default:if(hs(t)){for(var x in l)o=l[x],l.hasOwnProperty(x)&&o!==void 0&&!a.hasOwnProperty(x)&&Zc(e,t,x,void 0,a,o);for(d in a)o=a[d],v=l[d],!a.hasOwnProperty(d)||o===v||o===void 0&&v===void 0||Zc(e,t,d,o,a,v);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],v=l[h],!a.hasOwnProperty(h)||o===v||o==null&&v==null||K(e,t,h,o,a,v)}function xr(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Jv(){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&&xr(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&&xr(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 Vc=null,Kc=null;function Gu(e){return e.nodeType===9?e:e.ownerDocument}function jr(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 qh(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 Jc(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 Pi=null;function kv(){var e=window.event;return e&&e.type==="popstate"?e===Pi?!1:(Pi=e,!0):(Pi=null,!1)}var Gh=typeof setTimeout=="function"?setTimeout:void 0,$v=typeof clearTimeout=="function"?clearTimeout:void 0,Nr=typeof Promise=="function"?Promise:void 0,Wv=typeof queueMicrotask=="function"?queueMicrotask:typeof Nr<"u"?function(e){return Nr.resolve(null).then(e).catch(Fv)}:Gh;function Fv(e){setTimeout(function(){throw e})}function hl(e){return e==="head"}function Tr(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 Ar(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 kc(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":kc(l),ds(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Iv(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[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 Pv(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 Xh(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 $c(e){return e.data==="$?"||e.data==="$~"}function Wc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function ep(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 Fc=null;function zr(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 _r(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 Qh(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]);ds(e)}var lt=new Map,Or=new Set;function Xu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Yt=X.d;X.d={f:tp,r:lp,D:ap,C:np,L:up,m:ip,X:sp,S:cp,M:fp};function tp(){var e=Yt.f(),t=fi();return e||t}function lp(e){var t=Sa(e);t!==null&&t.tag===5&&t.type==="form"?Bd(t):Yt.r(e)}var ja=typeof document>"u"?null:document;function Zh(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+'"]'),Or.has(n)||(Or.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),je(t,"link",e),ve(t),a.head.appendChild(t)))}}function ap(e){Yt.D(e),Zh("dns-prefetch",e,null)}function np(e,t){Yt.C(e,t),Zh("preconnect",e,t)}function up(e,t,l){Yt.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(Cn(u))||t==="script"&&a.querySelector(Rn(u))||(t=a.createElement("link"),je(t,"link",e),ve(t),a.head.appendChild(t)))}}function ip(e,t){Yt.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(Rn(u)))return}a=l.createElement("link"),je(a,"link",e),ve(a),l.head.appendChild(a)}}}function cp(e,t,l){Yt.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(Cn(u)))c.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},l),(l=lt.get(u))&&Fs(e,l);var s=i=a.createElement("link");ve(s),je(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 sp(e,t){Yt.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(Rn(n)),u||(e=te({src:e,async:!0},t),(t=lt.get(n))&&Is(e,t),u=l.createElement("script"),ve(u),je(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function fp(e,t){Yt.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(Rn(n)),u||(e=te({src:e,async:!0,type:"module"},t),(t=lt.get(n))&&Is(e,t),u=l.createElement("script"),ve(u),je(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Cr(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(Cn(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||rp(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 Cn(e){return'link[rel="stylesheet"]['+e+"]"}function Vh(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function rp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),je(t,"link",l),ve(t),e.head.appendChild(t))}function Na(e){return'[src="'+Fe(e)+'"]'}function Rn(e){return"script[async]"+e}function Rr(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),je(a,"style",n),du(a,l.precedence,e),t.instance=a;case"stylesheet":n=ya(l.href);var u=e.querySelector(Cn(n));if(u)return t.state.loading|=4,t.instance=u,ve(u),u;a=Vh(l),(n=lt.get(n))&&Fs(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}),je(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(Rn(u)))?(t.instance=n,ve(n),n):(a=l,(n=lt.get(u))&&(a=te({},l),Is(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),ve(n),je(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 Fs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Is(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 Dr(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[be]||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 Mr(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function op(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 Kh(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function dp(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(Cn(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=Vh(a),(n=lt.get(n))&&Fs(a,n),u=u.createElement("link"),ve(u);var i=u;i._p=new Promise(function(c,s){i.onload=c,i.onerror=s}),je(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&!(l.state.loading&3)&&(e.count++,l=Qu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var ec=0;function hp(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&&ec===0&&(ec=62500*Jv());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>ec?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(mp,e),Zu=null,Qu.call(e))}function mp(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:zt,Provider:null,Consumer:null,_currentValue:bl,_currentValue2:bl,_threadCount:0};function yp(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=ji(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ji(0),this.hiddenUpdates=ji(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Jh(e,t,l,a,n,u,i,c,s,r,d,h){return e=new yp(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=Ns(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},zs(u),e}function kh(e){return e?(e=$l,e):$l}function $h(e,t,l,a,n,u){n=kh(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 Ur(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ps(e,t){Ur(e,t),(e=e.alternate)&&Ur(e,t)}function Wh(e){if(e.tag===13||e.tag===31){var t=Ml(e,67108864);t!==null&&De(t,e,67108864),Ps(e,67108864)}}function Hr(e){if(e.tag===13||e.tag===31){var t=Xe();t=rs(t);var l=Ml(e,t);l!==null&&De(l,e,t),Ps(e,t)}}var Vu=!0;function vp(e,t,l,a){var n=M.T;M.T=null;var u=X.p;try{X.p=2,ef(e,t,l,a)}finally{X.p=u,M.T=n}}function pp(e,t,l,a){var n=M.T;M.T=null;var u=X.p;try{X.p=8,ef(e,t,l,a)}finally{X.p=u,M.T=n}}function ef(e,t,l,a){if(Vu){var n=Ic(a);if(n===null)Ii(e,t,a,Ku,l),Br(e,a);else if(Sp(n,e,t,l,a))a.stopPropagation();else if(Br(e,a),t&4&&-1<gp.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}vt(u),!(G&6)&&(Hu=Ye()+500,On(0))}}break;case 31:case 13:c=Ml(u,2),c!==null&&De(c,u,2),fi(),Ps(u,2)}if(u=Ic(a),u===null&&Ii(e,t,a,Ku,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else Ii(e,t,a,null,l)}}function Ic(e){return e=ms(e),tf(e)}var Ku=null;function tf(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=vo(t),e!==null)return e;e=null}else if(l===31){if(e=po(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 Fh(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(ay()){case Eo:return 2;case xo:return 8;case Eu:case ny:return 32;case jo:return 268435456;default:return 32}default:return 32}}var Pc=!1,ul=null,il=null,cl=null,yn=new Map,vn=new Map,Jt=[],gp="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 Br(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&&Wh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Sp(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 Ih(e){var t=Ql(e.target);if(t!==null){var l=bn(t);if(l!==null){if(t=l.tag,t===13){if(t=vo(l),t!==null){e.blockedOn=t,bf(e.priority,function(){Hr(l)});return}}else if(t===31){if(t=po(l),t!==null){e.blockedOn=t,bf(e.priority,function(){Hr(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=Ic(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);pc=a,l.target.dispatchEvent(a),pc=null}else return t=Sa(l),t!==null&&Wh(t),e.blockedOn=l,!1;t.shift()}return!0}function wr(e,t,l){yu(e)&&l.delete(t)}function bp(){Pc=!1,ul!==null&&yu(ul)&&(ul=null),il!==null&&yu(il)&&(il=null),cl!==null&&yu(cl)&&(cl=null),yn.forEach(wr),vn.forEach(wr)}function Wn(e,t){e.blockedOn===t&&(e.blockedOn=null,Pc||(Pc=!0,he.unstable_scheduleCallback(he.unstable_NormalPriority,bp)))}var Fn=null;function Lr(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(tf(a||l)===null)continue;break}var u=Sa(l);u!==null&&(e.splice(t,3),t-=3,Mc(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);)Ih(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||Lr(l);else if(i){var c=null;if(u&&u.hasAttribute("formAction")){if(n=u,i=u[Me]||null)c=i.formAction;else if(tf(n)!==null)continue}else c=i.action;typeof c=="function"?l[a+1]=c:(l.splice(a,3),a-=3),Lr(l)}}}function Ph(){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 lf(e){this._internalRoot=e}di.prototype.render=lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));var l=t.current,a=Xe();$h(l,a,e,t,null,null)};di.prototype.unmount=lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;$h(e.current,2,null,e,null,null),fi(),t[ga]=null}};function di(e){this._internalRoot=e}di.prototype.unstable_scheduleHydration=function(e){if(e){var t=_o();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&&Ih(e)}};var Yr=mo.version;if(Yr!=="19.2.7")throw Error(j(527,Yr,"19.2.7"));X.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=Wm(t),e=e!==null?go(e):null,e=e===null?null:e.stateNode,e};var Ep={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{En=In.inject(Ep),qe=In}catch{}}$u.createRoot=function(e,t){if(!yo(e))throw Error(j(299));var l=!1,a="",n=Zd,u=Vd,i=Kd;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=Jh(e,1,!1,null,null,l,a,null,n,u,i,Ph),e[ga]=t.current,Ws(e),new lf(t)};$u.hydrateRoot=function(e,t,l){if(!yo(e))throw Error(j(299));var a=!1,n="",u=Zd,i=Vd,c=Kd,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=Jh(e,1,!0,t,l??null,a,n,s,u,i,c,Ph),t.context=kh(null),l=t.current,a=Xe(),a=rs(a),n=tl(a),n.callback=null,ll(l,n,a),l=a,t.current.lanes=l,jn(t,l),vt(t),e[ga]=t.current,Ws(e),new di(t)};$u.version="19.2.7";function em(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(em)}catch(e){console.error(e)}}em(),co.exports=$u;var xp=co.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 af=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,tm=/^[\\/]{2}/;function jp(e,t){return t+e.replace(/\\/g,"/")}var qr="popstate";function Gr(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Np(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 es("",{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 Ap(t,l,null,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function mt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Tp(){return Math.random().toString(36).substring(2,10)}function Xr(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 es(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||Tp(),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 Ap(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 x=d(),m=x==null?null:x-r;r=x,s&&s({action:c,location:E.location,delta:m})}function o(x,m){c="PUSH";let y=Gr(x)?x:es(E.location,x,m);r=d()+1;let g=Xr(y,r),b=E.createHref(y.mask||y);try{i.pushState(g,"",b)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;n.location.assign(b)}u&&s&&s({action:c,location:E.location,delta:1})}function v(x,m){c="REPLACE";let y=Gr(x)?x:es(E.location,x,m);r=d();let g=Xr(y,r),b=E.createHref(y.mask||y);i.replaceState(g,"",b),u&&s&&s({action:c,location:E.location,delta:0})}function S(x){return zp(n,x)}let E={get action(){return c},get location(){return e(n,i)},listen(x){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(qr,h),s=x,()=>{n.removeEventListener(qr,h),s=null}},createHref(x){return t(n,x)},createURL:S,encodeLocation(x){let m=S(x);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:o,replace:v,go(x){return i.go(x)}};return E}function zp(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&&tm.test(n)&&(n=a+n),new URL(n,a)}function lm(e,t,l="/"){return _p(e,t,l,!1)}function _p(e,t,l,a,n){let u=typeof t=="string"?Ta(t):t,i=Lt(u.pathname||"/",l);if(i==null)return null;let c=Op(e),s=null,r=cm(i);for(let d=0;s==null&&d<c.length;++d)s=Yp(c[d],r,a);return s}function Op(e){let t=am(e);return Cp(t),t}function am(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}".`),am(i.children,t,o,h,s)),!(i.path==null&&!i.index)&&t.push({path:h,score:wp(h,i.index),routesMeta:o.map((v,S)=>{let[E,x]=im(v.relativePath,v.caseSensitive,S===o.length-1);return{...v,matcher:E,compiledParams:x}})})};return e.forEach((i,c)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))u(i,c);else for(let r of nm(i.path))u(i,c,!0,r)}),t}function nm(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=nm(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 Cp(e){e.sort((t,l)=>t.score!==l.score?l.score-t.score:Lp(t.routesMeta.map(a=>a.childrenIndex),l.routesMeta.map(a=>a.childrenIndex)))}var Rp=/^:[\w-]+$/,Dp=3,Mp=2,Up=1,Hp=10,Bp=-2,Qr=e=>e==="*";function wp(e,t){let l=e.split("/"),a=l.length;return l.some(Qr)&&(a+=Bp),t&&(a+=Mp),l.filter(n=>!Qr(n)).reduce((n,u)=>n+(Rp.test(u)?Dp:u===""?Up:Hp),a)}function Lp(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 Yp(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?um(h,d,s.matcher,s.compiledParams):gn(h,d),v=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:Xp(it([u,o.pathnameBase])),route:v}),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]=im(e.path,e.caseSensitive,e.end);return um(e,t,l,a)}function um(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 S=c[o]||"";i=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const v=c[o];return h&&!v?r[d]=void 0:r[d]=(v||"").replace(/%2F/g,"/"),r},{}),pathname:u,pathnameBase:i,pattern:e}}function im(e,t=!1,l=!0){mt(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 cm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mt(!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 Lt(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 qp(e,t="/"){let{pathname:l,search:a="",hash:n=""}=typeof e=="string"?Ta(e):e,u;return l?(l=fm(l),l.startsWith("/")?u=Zr(l.substring(1),"/"):u=Zr(l,t)):u=t,{pathname:u,search:Qp(a),hash:Zp(n)}}function Zr(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 tc(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 Gp(e){return e.filter((t,l)=>l===0||t.route.path&&t.route.path.length>0)}function sm(e){let t=Gp(e);return t.map((l,a)=>a===t.length-1?l.pathname:l.pathnameBase)}function nf(e,t,l,a=!1){let n;typeof e=="string"?n=Ta(e):(n={...e},ae(!n.pathname||!n.pathname.includes("?"),tc("?","pathname","search",n)),ae(!n.pathname||!n.pathname.includes("#"),tc("#","pathname","hash",n)),ae(!n.search||!n.search.includes("#"),tc("#","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=qp(n,c),r=i&&i!=="/"&&i.endsWith("/"),d=(u||i===".")&&l.endsWith("/");return!s.pathname.endsWith("/")&&(r||d)&&(s.pathname+="/"),s}var fm=e=>e.replace(/[\\/]{2,}/g,"/"),it=e=>fm(e.join("/")),Ju=e=>e.replace(/\/+$/,""),Xp=e=>Ju(e).replace(/^\/*/,"/"),Qp=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zp=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Vp=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 Jp(e){let t=e.map(l=>l.route.path).filter(Boolean);return it(t)||"/"}var rm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function om(e,t){let l=e;if(typeof l!="string"||!af.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let a=l,n=!1;if(rm)try{let u=new URL(window.location.href),i=tm.test(l)?new URL(jp(l,u.protocol)):new URL(l),c=Lt(i.pathname,t);i.origin===u.origin&&c!=null?l=c+i.search+i.hash:n=!0}catch{mt(!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 dm=["POST","PUT","PATCH","DELETE"];new Set(dm);var kp=["GET",...dm];new Set(kp);var $p=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function Wp(e){try{return $p.includes(new URL(e).protocol)}catch{return!1}}var Aa=p.createContext(null);Aa.displayName="DataRouter";var hi=p.createContext(null);hi.displayName="DataRouterState";var hm=p.createContext(!1);function Fp(){return p.useContext(hm)}var mm=p.createContext({isTransitioning:!1});mm.displayName="ViewTransition";var Ip=p.createContext(new Map);Ip.displayName="Fetchers";var Pp=p.createContext(null);Pp.displayName="Await";var at=p.createContext(null);at.displayName="Navigation";var Dn=p.createContext(null);Dn.displayName="Location";var st=p.createContext({outlet:null,matches:[],isDataRoute:!1});st.displayName="Route";var uf=p.createContext(null);uf.displayName="RouteError";var ym="REACT_ROUTER_ERROR",eg="REDIRECT",tg="ROUTE_ERROR_RESPONSE";function lg(e){if(e.startsWith(`${ym}:${eg}:{`))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 ag(e){if(e.startsWith(`${ym}:${tg}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Vp(t.status,t.statusText,t.data)}catch{}}function ng(e,{relative:t}={}){ae(za(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:a}=p.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 p.useContext(Dn)!=null}function pt(){return ae(za(),"useLocation() may be used only in the context of a <Router> component."),p.useContext(Dn).location}function Ha(e){ae(za(),"useMatch() may be used only in the context of a <Router> component.");let{pathname:t}=pt();return p.useMemo(()=>gn(e,cm(t)),[t,e])}var vm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function pm(e){p.useContext(at).static||p.useLayoutEffect(e)}function gm(){let{isDataRoute:e}=p.useContext(st);return e?Sg():ug()}function ug(){ae(za(),"useNavigate() may be used only in the context of a <Router> component.");let e=p.useContext(Aa),{basename:t,navigator:l}=p.useContext(at),{matches:a}=p.useContext(st),{pathname:n}=pt(),u=JSON.stringify(sm(a)),i=p.useRef(!1);return pm(()=>{i.current=!0}),p.useCallback((s,r={})=>{if(mt(i.current,vm),!i.current)return;if(typeof s=="number"){l.go(s);return}let d=nf(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 ig=p.createContext(null);function cg(e){let t=p.useContext(st).outlet;return p.useMemo(()=>t&&p.createElement(ig.Provider,{value:e},t),[t,e])}function Hl(){let{matches:e}=p.useContext(st),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Mn(e,{relative:t}={}){let{matches:l}=p.useContext(st),{pathname:a}=pt(),n=JSON.stringify(sm(l));return p.useMemo(()=>nf(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function sg(e,t){return Sm(e,t)}function Sm(e,t,l){var x;ae(za(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=p.useContext(at),{matches:n}=p.useContext(st),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=pt(),h;if(t){let m=typeof t=="string"?Ta(t):t;ae(s==="/"||((x=m.pathname)==null?void 0:x.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||"/",v=o;if(s!=="/"){let m=s.replace(/^\//,"").split("/");v="/"+o.replace(/^\//,"").split("/").slice(m.length).join("/")}let S=l&&l.state.matches.length?l.state.matches.map(m=>Object.assign(m,{route:l.manifest[m.route.id]||m.route})):lm(e,{pathname:v});mt(r||S!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),mt(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.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 E=hg(S&&S.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&&E?p.createElement(Dn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...h},navigationType:"POP"}},E):E}function fg(){let e=gg(),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=p.createElement(p.Fragment,null,p.createElement("p",null,"💿 Hey developer 👋"),p.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",p.createElement("code",{style:u},"ErrorBoundary")," or"," ",p.createElement("code",{style:u},"errorElement")," prop on your route.")),p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),l?p.createElement("pre",{style:n},l):null,i)}var rg=p.createElement(fg,null),bm=class extends p.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=ag(e.digest);l&&(e=l)}let t=e!==void 0?p.createElement(st.Provider,{value:this.props.routeContext},p.createElement(uf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?p.createElement(og,{error:e},t):t}};bm.contextType=hm;var lc=new WeakMap;function og({children:e,error:t}){let{basename:l}=p.useContext(at);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=lg(t.digest);if(a){let n=lc.get(t);if(n)throw n;let u=om(a.location,l),i=u.absoluteURL||u.to;if(Wp(i))throw new Error("Invalid redirect location");if(rm&&!lc.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 lc.set(t,c),c}return p.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i}`})}}return e}function dg({routeContext:e,match:t,children:l}){let a=p.useContext(Aa);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(st.Provider,{value:e},l)}function hg(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:v}=a,S=h.route.loader&&!o.hasOwnProperty(h.route.id)&&(!v||v[h.route.id]===void 0);if(h.route.lazy||S){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,v;s(d,{location:a.location,params:((v=(o=a.matches)==null?void 0:o[0])==null?void 0:v.params)??{},pattern:Jp(a.matches),errorInfo:h})}:void 0;return n.reduceRight((d,h,o)=>{let v,S=!1,E=null,x=null;a&&(v=u&&h.route.id?u[h.route.id]:void 0,E=h.route.errorElement||rg,i&&(c<0&&o===0?(Em("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,x=null):c===o&&(S=!0,x=h.route.hydrateFallbackElement||null)));let m=t.concat(n.slice(0,o+1)),y=()=>{let g;return v?g=E:S?g=x:h.route.Component?g=p.createElement(h.route.Component,null):h.route.element?g=h.route.element:g=d,p.createElement(dg,{match:h,routeContext:{outlet:d,matches:m,isDataRoute:a!=null},children:g})};return a&&(h.route.ErrorBoundary||h.route.errorElement||o===0)?p.createElement(bm,{location:a.location,revalidation:a.revalidation,component:E,error:v,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:r}):y()},null)}function cf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mg(e){let t=p.useContext(Aa);return ae(t,cf(e)),t}function yg(e){let t=p.useContext(hi);return ae(t,cf(e)),t}function vg(e){let t=p.useContext(st);return ae(t,cf(e)),t}function sf(e){let t=vg(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 pg(){return sf("useRouteId")}function gg(){var a;let e=p.useContext(uf),t=yg("useRouteError"),l=sf("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[l]}function Sg(){let{router:e}=mg("useNavigate"),t=sf("useNavigate"),l=p.useRef(!1);return pm(()=>{l.current=!0}),p.useCallback(async(n,u={})=>{mt(l.current,vm),l.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...u}))},[e,t])}var Vr={};function Em(e,t,l){!t&&!Vr[e]&&(Vr[e]=!0,mt(!1,l))}p.memo(bg);function bg({routes:e,manifest:t,future:l,state:a,isStatic:n,onError:u}){return Sm(e,void 0,{manifest:t,state:a,isStatic:n,onError:u})}function Eg(e){return cg(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 xg({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=p.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:v="default",mask:S}=l,E=p.useMemo(()=>{let x=Lt(r,c);return x==null?null:{location:{pathname:x,search:d,hash:h,state:o,key:v,mask:S},navigationType:a}},[c,r,d,h,o,v,a,S]);return mt(E!=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.`),E==null?null:p.createElement(at.Provider,{value:s},p.createElement(Dn.Provider,{children:t,value:E}))}function jg({children:e,location:t}){return sg(ts(e),t)}function ts(e,t=[]){let l=[];return p.Children.forEach(e,(a,n)=>{if(!p.isValidElement(a))return;let u=[...t,n];if(a.type===p.Fragment){l.push.apply(l,ts(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=ts(a.props.children,u)),l.push(i)}),l}var vu="get",pu="application/x-www-form-urlencoded";function mi(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Ng(e){return mi(e)&&e.tagName.toLowerCase()==="button"}function Tg(e){return mi(e)&&e.tagName.toLowerCase()==="form"}function Ag(e){return mi(e)&&e.tagName.toLowerCase()==="input"}function zg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _g(e,t){return e.button===0&&(!t||t==="_self")&&!zg(e)}var Pn=null;function Og(){if(Pn===null)try{new FormData(document.createElement("form"),0),Pn=!1}catch{Pn=!0}return Pn}var Cg=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ac(e){return e!=null&&!Cg.has(e)?(mt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pu}"`),null):e}function Rg(e,t){let l,a,n,u,i;if(Tg(e)){let c=e.getAttribute("action");a=c?Lt(c,t):null,l=e.getAttribute("method")||vu,n=ac(e.getAttribute("enctype"))||pu,u=new FormData(e)}else if(Ng(e)||Ag(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?Lt(s,t):null,l=e.getAttribute("formmethod")||c.getAttribute("method")||vu,n=ac(e.getAttribute("formenctype"))||ac(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(mi(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 ff(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xm(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&&Lt(n.pathname,t)==="/"?n.pathname=`${Ju(t)}/_root.${a}`:n.pathname=`${Ju(n.pathname)}.${a}`,n}async function Dg(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 Mg(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 Ug(e,t,l){let a=await Promise.all(e.map(async n=>{let u=t.routes[n.route.id];if(u){let i=await Dg(u,l);return i.links?i.links():[]}return[]}));return Lg(a.flat(1).filter(Mg).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function Kr(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 Hg(e,t,{includeHydrateFallback:l}={}){return Bg(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 Bg(e){return[...new Set(e)]}function wg(e){let t={},l=Object.keys(e).sort();for(let a of l)t[a]=e[a];return t}function Lg(e,t){let l=new Set;return new Set(t),e.reduce((a,n)=>{let u=JSON.stringify(wg(n));return l.has(u)||(l.add(u),a.push({key:u,link:n})),a},[])}function rf(){let e=p.useContext(Aa);return ff(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Yg(){let e=p.useContext(hi);return ff(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var of=p.createContext(void 0);of.displayName="FrameworkContext";function yi(){let e=p.useContext(of);return ff(e,"You must render this element inside a <HydratedRouter> element"),e}function qg(e,t){let l=p.useContext(of),[a,n]=p.useState(!1),[u,i]=p.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:r,onMouseLeave:d,onTouchStart:h}=t,o=p.useRef(null);p.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let E=m=>{m.forEach(y=>{i(y.isIntersecting)})},x=new IntersectionObserver(E,{threshold:.5});return o.current&&x.observe(o.current),()=>{x.disconnect()}}},[e]),p.useEffect(()=>{if(a){let E=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(E)}}},[a]);let v=()=>{n(!0)},S=()=>{n(!1),i(!1)};return l?e!=="intent"?[u,o,{}]:[u,o,{onFocus:Ba(c,v),onBlur:Ba(s,S),onMouseEnter:Ba(r,v),onMouseLeave:Ba(d,S),onTouchStart:Ba(h,v)}]:[!1,o,{}]}function Ba(e,t){return l=>{e&&e(l),l.defaultPrevented||t(l)}}function Gg({page:e,...t}){let l=Fp(),{nonce:a}=yi(),{router:n}=rf(),u=p.useMemo(()=>lm(n.routes,e,n.basename),[n.routes,e,n.basename]);return u?(t.nonce==null&&a&&(t={...t,nonce:a}),l?p.createElement(Qg,{page:e,matches:u,...t}):p.createElement(Zg,{page:e,matches:u,...t})):null}function Xg(e){let{manifest:t,routeModules:l}=yi(),[a,n]=p.useState([]);return p.useEffect(()=>{let u=!1;return Ug(e,t,l).then(i=>{u||n(i)}),()=>{u=!0}},[e,t,l]),a}function Qg({page:e,matches:t,...l}){let a=pt(),{future:n}=yi(),{basename:u}=rf(),i=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let c=xm(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 p.createElement(p.Fragment,null,i.map(c=>p.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...l})))}function Zg({page:e,matches:t,...l}){let a=pt(),{future:n,manifest:u,routeModules:i}=yi(),{basename:c}=rf(),{loaderData:s,matches:r}=Yg(),d=p.useMemo(()=>Kr(e,t,r,u,a,"data"),[e,t,r,u,a]),h=p.useMemo(()=>Kr(e,t,r,u,a,"assets"),[e,t,r,u,a]),o=p.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let E=new Set,x=!1;if(t.forEach(y=>{var b;let g=u.routes[y.route.id];!g||!g.hasLoader||(!d.some(T=>T.route.id===y.route.id)&&y.route.id in s&&((b=i[y.route.id])!=null&&b.shouldRevalidate)||g.hasClientLoader?x=!0:E.add(y.route.id))}),E.size===0)return[];let m=xm(e,c,n.v8_trailingSlashAwareDataRequests,"data");return x&&E.size>0&&m.searchParams.set("_routes",t.filter(y=>E.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]),v=p.useMemo(()=>Hg(h,u),[h,u]),S=Xg(h);return p.createElement(p.Fragment,null,o.map(E=>p.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),v.map(E=>p.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),S.map(({key:E,link:x})=>p.createElement("link",{key:E,nonce:l.nonce,...x,crossOrigin:x.crossOrigin??l.crossOrigin})))}function Vg(...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 Jg({basename:e,children:t,useTransitions:l,window:a}){let n=p.useRef();n.current==null&&(n.current=Np({window:a,v5Compat:!0}));let u=n.current,[i,c]=p.useState({action:u.action,location:u.location}),s=p.useCallback(r=>{l===!1?c(r):p.startTransition(()=>c(r))},[l]);return p.useLayoutEffect(()=>u.listen(s),[u,s]),p.createElement(xg,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:u,useTransitions:l})}var qt=p.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:v,...S},E){let{basename:x,navigator:m,useTransitions:y}=p.useContext(at),g=typeof d=="string"&&af.test(d),b=om(d,x);d=b.to;let T=ng(d,{relative:n}),C=pt(),z=null;if(c){let ge=nf(c,[],C.mask?C.mask.pathname:"/",!0);x!=="/"&&(ge.pathname=ge.pathname==="/"?x:it([x,ge.pathname])),z=m.createHref(ge)}let[N,D,O]=qg(a,S),Q=Wg(d,{replace:i,mask:c,state:s,target:r,preventScrollReset:h,relative:n,viewTransition:o,defaultShouldRevalidate:v,useTransitions:y});function F(ge){t&&t(ge),ge.defaultPrevented||Q(ge)}let ft=!(b.isExternal||u),gt=p.createElement("a",{...S,...O,href:(ft?z:void 0)||b.absoluteURL||T,onClick:ft?F:t,ref:Vg(E,D),target:r,"data-discover":!g&&l==="render"?"true":void 0});return N&&!g?p.createElement(p.Fragment,null,gt,p.createElement(Gg,{page:T})):gt});qt.displayName="Link";var Tt=p.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=pt(),v=p.useContext(hi),{navigator:S,basename:E}=p.useContext(at),x=v!=null&&t0(h)&&c===!0,m=S.encodeLocation?S.encodeLocation(h).pathname:h.pathname,y=o.pathname,g=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;l||(y=y.toLowerCase(),g=g?g.toLowerCase():null,m=m.toLowerCase()),g&&E&&(g=Lt(g,E)||g);const b=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let T=y===m||!n&&y.startsWith(m)&&y.charAt(b)==="/",C=g!=null&&(g===m||!n&&g.startsWith(m)&&g.charAt(m.length)==="/"),z={isActive:T,isPending:C,isTransitioning:x},N=T?t:void 0,D;typeof a=="function"?D=a(z):D=[a,T?"active":null,C?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let O=typeof u=="function"?u(z):u;return p.createElement(qt,{...r,"aria-current":N,className:D,ref:d,style:O,to:i,viewTransition:c},typeof s=="function"?s(z):s)});Tt.displayName="NavLink";var kg=p.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,...v},S)=>{let{useTransitions:E}=p.useContext(at),x=Pg(),m=e0(c,{relative:r}),y=i.toLowerCase()==="get"?"get":"post",g=typeof c=="string"&&af.test(c),b=T=>{if(s&&s(T),T.defaultPrevented)return;T.preventDefault();let C=T.nativeEvent.submitter,z=(C==null?void 0:C.getAttribute("formmethod"))||i,N=()=>x(C||T.currentTarget,{fetcherKey:t,method:z,navigate:l,replace:n,state:u,relative:r,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:o});E&&l!==!1?p.startTransition(()=>N()):N()};return p.createElement("form",{ref:S,method:y,action:m,onSubmit:a?s:b,...v,"data-discover":!g&&e==="render"?"true":void 0})});kg.displayName="Form";function $g(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jm(e){let t=p.useContext(Aa);return ae(t,$g(e)),t}function Wg(e,{target:t,replace:l,mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:c,defaultShouldRevalidate:s,useTransitions:r}={}){let d=gm(),h=pt(),o=Mn(e,{relative:i});return p.useCallback(v=>{if(_g(v,t)){v.preventDefault();let S=l!==void 0?l:pn(h)===pn(o),E=()=>d(e,{replace:S,mask:a,state:n,preventScrollReset:u,relative:i,viewTransition:c,defaultShouldRevalidate:s});r?p.startTransition(()=>E()):E()}},[h,d,o,l,a,n,t,e,u,i,c,s,r])}var Fg=0,Ig=()=>`__${String(++Fg)}__`;function Pg(){let{router:e}=jm("useSubmit"),{basename:t}=p.useContext(at),l=pg(),a=e.fetch,n=e.navigate;return p.useCallback(async(u,i={})=>{let{action:c,method:s,encType:r,formData:d,body:h}=Rg(u,t);if(i.navigate===!1){let o=i.fetcherKey||Ig();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 e0(e,{relative:t}={}){let{basename:l}=p.useContext(at),a=p.useContext(st);ae(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),u={...Mn(e||".",{relative:t})},i=pt();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 t0(e,{relative:t}={}){let l=p.useContext(mm);ae(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=jm("useViewTransitionState"),n=Mn(e,{relative:t});if(!l.isTransitioning)return!1;let u=Lt(l.currentLocation.pathname,a)||l.currentLocation.pathname,i=Lt(l.nextLocation.pathname,a)||l.nextLocation.pathname;return gn(n.pathname,i)!=null||gn(n.pathname,u)!=null}const Ne=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)},L={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(Ne),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(Ne),revealSecret:(e,t)=>fetch(`/api/projects/${e}/secrets/${encodeURIComponent(t)}/value`).then(Ne),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(Ne),createUser:(e,t,l)=>fetch("/api/users",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({name:e,role:t,password:l})}).then(Ne),removeUser:e=>fetch(`/api/users/${encodeURIComponent(e)}`,{method:"DELETE"}).then(Ve),projects:()=>fetch("/api/projects").then(Ne),lanes:e=>fetch(`/api/projects/${e}/lanes`).then(Ne),runsOf:e=>fetch(`/api/projects/${e}/runs`).then(Ne),run:e=>fetch(`/api/runs/${e}`).then(Ne),log:(e,t=0)=>fetch(`/api/runs/${e}/log?from=${t}`).then(l=>l.text()),removeProject:e=>fetch(`/api/projects/${e}`,{method:"DELETE"}).then(Ne),secrets:e=>fetch(`/api/projects/${e}/secrets`).then(Ne),readiness:e=>fetch(`/api/projects/${e}/readiness`).then(Ne),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(Ne),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(Ne),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(Ne),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(Ne),cancel:e=>fetch(`/api/runs/${e}/cancel`,{method:"POST"}).then(Ve)};function l0({onSuccess:e}){const[t,l]=p.useState(""),[a,n]=p.useState(""),[u,i]=p.useState(!1),c=async s=>{s.preventDefault(),await L.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 a0(){const[e,t]=p.useState(()=>localStorage.getItem("laneyard-theme")??"dark");return p.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 n0(){const e=p.useContext(vi),[t,l]=p.useState(""),[a,n]=p.useState(""),[u,i]=p.useState(""),[c,s]=p.useState(!1),[r,d]=p.useState(null),[h,o]=p.useState(!1),v=u!==""&&a!==u,S=async E=>{E.preventDefault(),s(!0),d(null);try{await L.changeOwnPassword(t,a),l(""),n(""),i(""),o(!0)}catch(x){o(!1),d(x.message)}finally{s(!1)}};return f.jsxs(f.Fragment,{children:[f.jsx("h2",{className:"section",children:"your account"}),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}),". 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:E=>void S(E),children:[f.jsx("input",{type:"password",value:t,onChange:E=>l(E.target.value),placeholder:"current password",autoComplete:"current-password","aria-label":"current password"}),f.jsx("input",{type:"password",value:a,onChange:E=>n(E.target.value),placeholder:"new password",autoComplete:"new-password","aria-label":"new password"}),f.jsx("input",{type:"password",value:u,onChange:E=>i(E.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"})]}),v&&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 u0="modulepreload",i0=function(e){return"/"+e},Jr={},c0=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=i0(s),s in Jr)return;Jr[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":u0,r||(h.as="script"),h.crossOrigin="",h.href=s,c&&h.setAttribute("nonce",c),document.head.appendChild(h),r)return new Promise((o,v)=>{h.addEventListener("load",o),h.addEventListener("error",()=>v(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)})},s0=p.lazy(()=>c0(()=>import("./Editor-DynuBC2l.js"),[]).then(e=>({default:e.Editor})));function f0(e){return e.startsWith("+++")||e.startsWith("---")||e.startsWith("@@")?"dim":e.startsWith("+")?"status-success":e.startsWith("-")?"status-failed":""}function r0({text:e}){return f.jsx("pre",{className:"diff panel",children:e.split(`
61
+ `).map((t,l)=>f.jsx("div",{className:f0(t),children:t===""?" ":t},l))})}function o0(){const{slug:e=""}=Hl(),[t,l]=p.useState(null),[a,n]=p.useState(""),[u,i]=p.useState(null),c=p.useRef(null),[s,r]=p.useState(!1),[d,h]=p.useState(!1),[o,v]=p.useState(null),[S,E]=p.useState(null),[x,m]=p.useState(null),[y,g]=p.useState(""),[b,T]=p.useState(!1),[C,z]=p.useState(null),[N,D]=p.useState(null),[O,Q]=p.useState(!1),F=()=>{L.changes(e).then(m).catch(_=>z(_.message))};p.useEffect(()=>{l(null),i(null),r(!1),v(null),E(null),Q(!1),g(""),L.fastfile(e).then(_=>{l(_.content),n(_.content)}).catch(_=>i(_.message)),F()},[e]);const ft=async()=>{var A;const _=(A=c.current)==null?void 0:A.call(c);if(_!==void 0){h(!0),v(null);try{await L.saveFastfile(e,_),n(_),r(!1),E(new Date().toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"})),F()}catch(R){v(R.message)}finally{h(!1)}}},gt=async()=>{T(!0),z(null),D(null);try{await L.commit(e,y.trim()),g(""),Q(!0),D("committed."),F()}catch(_){z(_.message)}finally{T(!1)}},ge=async()=>{T(!0),z(null),D(null);try{await L.push(e),Q(!1),D("pushed.")}catch(_){z(_.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&&S&&`saved at ${S}`,t!==null&&!s&&!S&&"unchanged"]}),f.jsx("button",{onClick:()=>void ft(),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(p.Suspense,{fallback:f.jsx("div",{className:"editor panel"}),children:f.jsx(s0,{initial:t,baseline:a,read:c,onChange:r,onSave:()=>void ft()})}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"changes"}),x===null&&f.jsx("p",{className:"dim",children:"reading git…"}),x!==null&&x.files.length===0&&f.jsx("p",{className:"dim",children:"nothing uncommitted in this workspace."}),x!==null&&x.files.length>0&&f.jsxs(f.Fragment,{children:[f.jsx("ul",{className:"rows",children:x.files.map(_=>f.jsxs("li",{children:[f.jsx("span",{className:"mark status-running",children:"▸"}),f.jsx("span",{className:"grow",children:_})]},_))}),f.jsx(r0,{text:x.diff})]}),f.jsxs("p",{className:"dim commit-bar",children:[f.jsx("input",{type:"text",value:y,onChange:_=>g(_.target.value),placeholder:"commit message",spellCheck:!1,autoComplete:"off","aria-label":"commit message"}),f.jsx("button",{onClick:()=>void gt(),disabled:b||y.trim()===""||((x==null?void 0:x.files.length)??0)===0,children:"commit"}),O&&f.jsx("button",{onClick:()=>void ge(),disabled:b,children:"push"})]}),N&&f.jsx("p",{className:"dim",children:N}),C&&f.jsxs("p",{className:"status-failed",children:["refused — ",C]})]})}const d0={success:"✓",failed:"✗",interrupted:"✗",cancelled:"✗",running:"▸",preparing:"▸",queued:"○"},Sn=e=>d0[e??"queued"]??"○";function h0(e){const t=e%100>=11&&e%100<=13;return`${e}${t?"th":["th","st","nd","rd"][e%10]??"th"}`}function Nm(e,t){return e!=="queued"?e:t===null?"waiting":t===1?"waiting · next in queue":`waiting · ${h0(t)} in queue`}const m0={ok:"✓",warn:"▸",unknown:"○"},kr=e=>m0[e]??"○",$r=e=>e==="ok"?"status-success":e==="warn"?"status-running":"status-queued",eu=e=>e==="queued"||e==="preparing"||e==="running";function y0(){var z;const{slug:e=""}=Hl(),t=((z=p.useContext(vi))==null?void 0:z.role)==="admin",l=gm(),[a,n]=p.useState([]),[u,i]=p.useState([]),[c,s]=p.useState(null),[r,d]=p.useState(!0),[h,o]=p.useState(null),[v,S]=p.useState(null),E=Ha("/p/:slug/fastfile")!==null,x=Ha("/p/:slug/secrets")!==null,m=Ha("/p/:slug/signing")!==null,y=Ha("/p/:slug/readiness")!==null,g=Ha("/p/:slug/settings")!==null,b=E||x||m||y||g;p.useEffect(()=>{b||(n([]),s(null),d(!0),L.lanes(e).then(n).catch(N=>s(N.message)).finally(()=>d(!1)),L.runsOf(e).then(i).catch(()=>{}))},[e,b]);const T=async N=>{o(N.name),S(null);try{const{id:D}=await L.trigger(e,N.name,N.platform,{});l(`/r/${D}`)}catch(D){S(D.message),o(null)}},C=f.jsxs("nav",{className:"tabs",children:[f.jsx(Tt,{to:`/p/${e}`,end:!0,className:({isActive:N})=>N?"current":"",children:"lanes"}),t&&f.jsx(Tt,{to:`/p/${e}/fastfile`,className:({isActive:N})=>N?"current":"",children:"fastfile"}),t&&f.jsx(Tt,{to:`/p/${e}/secrets`,className:({isActive:N})=>N?"current":"",children:"secrets"}),t&&f.jsx(Tt,{to:`/p/${e}/signing`,className:({isActive:N})=>N?"current":"",children:"signing"}),f.jsx(Tt,{to:`/p/${e}/readiness`,className:({isActive:N})=>N?"current":"",children:"readiness"}),t&&f.jsx(Tt,{to:`/p/${e}/settings`,className:({isActive:N})=>N?"current":"",children:"settings"})]});return b?f.jsxs(f.Fragment,{children:[C,f.jsx(Eg,{})]}):f.jsxs(f.Fragment,{children:[C,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}`))}),v&&f.jsxs("p",{className:"status-failed",children:["launch refused — ",v]}),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(qt,{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:Nm(N.status,N.queuePosition)})]},N.id))})]})}function v0(){const[e,t]=p.useState([]),[l,a]=p.useState(null);return p.useEffect(()=>{L.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(qt,{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 p0={all:"always",ios:"ios",android:"android"};function g0(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 S0=[{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"}],b0=e=>new Date(e).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});function E0(){const{slug:e=""}=Hl(),[t,l]=p.useState(null),[a,n]=p.useState(null),[u,i]=p.useState(!0),c=()=>{i(!0),L.readiness(e).then(r=>{l(r),n(null)}).catch(r=>n(r.message)).finally(()=>i(!1))};p.useEffect(c,[e]);const s=g0(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 ${b0(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:S0.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?"":$r(r)}`,children:kr(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(p.Fragment,{children:[f.jsx("h2",{className:"section",style:{marginTop:20},children:p0[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 ${$r(d.state)}`,children:kr(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(qt,{to:`/p/${e}/${d.fixIn}`,className:"accent",children:[d.fixIn," →"]})]})]})]})]},d.id))})]},r.platform))]})}const x0=/\x1b\[([0-9;]*)m/,j0=/\x1b\][\s\S]*?(?:\x07|\x1b\\)|\x1b\[[0-9;?]*[A-Za-z]|\x1b[()][0-9A-Za-z]|\x1b./g,N0=/[\x00-\x08\x0b-\x1f\x7f]/g,Wr=["black","red","green","yellow","blue","magenta","cyan","white"],T0=e=>[e.fg?`a-${e.fg}`:"",e.bold?"a-bold":"",e.dim?"a-dim":""].filter(Boolean).join(" ");function A0(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=Wr[n-30]??null:n===39?l.fg=null:n>=90&&n<=97&&(l.fg=`bright-${Wr[n-90]??"white"}`)}return l}function z0(e){const t=[];let l={fg:null,bold:!1,dim:!1},a=e;const n=u=>{if(!u)return;const i=u.replace(j0,"").replace(N0,"");if(!i)return;const c=T0(l),s=t[t.length-1];s&&s.className===c?s.text+=i:t.push({text:i,className:c})};for(;;){const u=x0.exec(a);if(!u)break;n(a.slice(0,u.index)),l=A0(l,u[1]??""),a=a.slice(u.index+u[0].length)}return n(a),t}function _0(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=p.useRef(null),[n,u]=p.useState(!0),i=p.useMemo(()=>z0(e),[e]);p.useLayoutEffect(()=>{const s=a.current;s&&n&&(s.scrollTop=s.scrollHeight)},[i,n]),p.useImperativeHandle(t,()=>({scrollToOffset:s=>{const r=a.current;if(!r)return;const d=parseFloat(getComputedStyle(r).lineHeight)||20;u(!1),r.scrollTop=_0(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 C0(e){const[t,l]=p.useState(""),[a,n]=p.useState(null),u=p.useRef(0),i=p.useRef(null);return p.useEffect(()=>{let c=!1,s,r;u.current=0,i.current=null,l(""),n(null);const d=async o=>{const v=await L.log(e,u.current);if(c||!v)return;const S=new TextEncoder().encode(v).byteLength;u.current+S<o||(u.current+=S,l(E=>E+v))},h=async()=>{if(c)return;const o=await L.log(e,u.current);if(c)return;o&&(u.current+=new TextEncoder().encode(o).byteLength,l(S=>S+o));const v=location.protocol==="https:"?"wss":"ws";s=new WebSocket(`${v}://${location.host}/api/runs/${e}/stream`),s.onmessage=S=>{const E=JSON.parse(S.data);if(E.type==="chunk"){if(E.offset<u.current)return;if(E.offset>u.current){d(E.offset);return}u.current=E.offset+new TextEncoder().encode(E.data).byteLength,l(x=>x+E.data)}else i.current=E.status,n(E.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 R0(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 D0=e=>e<1024?`${e} B`:e<1024*1024?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`;function M0(){const e=Number(Hl().id),[t,l]=p.useState(null),[a,n]=p.useState(null),[u,i]=p.useState(null),[c,s]=p.useState(!1),[,r]=p.useState(0),d=p.useRef(null),{log:h,finished:o}=C0(e);p.useEffect(()=>{let S=!1;const E=()=>L.run(e).then(m=>{S||(l(m),eu(m.status)&&(x=setTimeout(E,1500)))}).catch(m=>n(m.message));let x;return E(),()=>{S=!0,x&&clearTimeout(x)}},[e,o]),p.useEffect(()=>{if(!t||!eu(t.status))return;const S=setInterval(()=>r(E=>E+1),1e3);return()=>clearInterval(S)},[t]);const v=async()=>{s(!0),i(null);try{await L.cancel(e),l(await L.run(e))}catch(S){i(S.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(qt,{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:R0(t.startedAt,t.finishedAt)})]}),f.jsx("span",{className:`status-${t.status}`,children:Nm(t.status,t.queuePosition)}),eu(t.status)&&f.jsx("button",{onClick:()=>void v(),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(S=>{const E=S.logOffset!==null;return f.jsxs("li",{className:E?"clickable":"inert",title:E?"view in output":"unknown position in output",onClick:E?()=>{var x;return(x=d.current)==null?void 0:x.scrollToOffset(S.logOffset)}:void 0,children:[f.jsx("span",{className:`mark status-${S.status}`,children:Sn(S.status)}),f.jsx("span",{className:"grow",children:S.name}),f.jsx("span",{className:"dim",children:S.durationMs===null?"":`${(S.durationMs/1e3).toFixed(1)}s`})]},S.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(S=>f.jsxs("li",{children:[f.jsxs("a",{className:"grow accent",href:`/api/runs/${t.id}/artifacts/${S.id}`,download:!0,children:["↓ ",S.filename]}),f.jsx("span",{className:"dim",children:S.kind}),f.jsx("span",{className:"dim",children:D0(S.size)})]},S.id))})]})]}):f.jsx("p",{className:"dim",children:"loading…"})}function U0({slug:e,refresh:t,onStored:l}){const[a,n]=p.useState([]),[u,i]=p.useState({}),[c,s]=p.useState(null),[r,d]=p.useState(null);p.useEffect(()=>{L.requiredSecrets(e).then(o=>n(o.missing)).catch(()=>n([]))},[e,t]);const h=async o=>{const v=(u[o]??"").trim();if(v!==""){s(o),d(null);try{await L.setSecret(e,o,v,!0),i(S=>({...S,[o]:""})),l()}catch(S){d(S.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:v=>i(S=>({...S,[o]:v.target.value})),onKeyDown:v=>{v.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 H0(){const{slug:e=""}=Hl(),[t,l]=p.useState([]),[a,n]=p.useState([]),[u,i]=p.useState(null),[c,s]=p.useState(!0),[r,d]=p.useState(0),[h,o]=p.useState(""),[v,S]=p.useState(""),[E,x]=p.useState(!0),[m,y]=p.useState(!1),[g,b]=p.useState(null),T=()=>{s(!0),L.secrets(e).then(A=>{l(A),i(null)}).catch(A=>i(A.message)).finally(()=>s(!1)),L.listCredentials(e).then(n).catch(()=>n([])),d(A=>A+1)};p.useEffect(T,[e]);const C=async A=>{A.preventDefault(),y(!0),b(null);try{await L.setSecret(e,h.trim(),v,E),o(""),S(""),x(!0),T()}catch(R){b(R.message)}finally{y(!1)}},[z,N]=p.useState({}),D=async A=>{b(null);try{const{value:R}=await L.revealSecret(e,A.key);N($=>({...$,[A.key]:R}))}catch(R){b(R.message)}},O=A=>N(R=>{const $={...R};return delete $[A],$}),Q=async A=>{b(null);try{await L.setSecretMasked(e,A.key,!A.masked),A.masked||O(A.key),T()}catch(R){b(R.message)}},F=async A=>{b(null);try{await L.deleteSecret(e,A.key),T()}catch(R){b(R.message)}},ft=A=>A.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.":A.key==="SUPPLY_JSON_KEY_DATA"&&a.some(R=>R.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,gt=A=>{const R=ft(A);return f.jsxs("li",{className:R?"superseded":void 0,children:[f.jsx("span",{className:`mark ${A.masked?"accent":"dim"}`,children:A.masked?"✓":"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright",children:A.key})," ",A.masked?f.jsx("span",{className:"dim",children:"••••••"}):z[A.key]!==void 0?f.jsx("span",{className:"revealed",children:z[A.key]}):f.jsx("span",{className:"dim",children:"stored as it is"}),A.masked&&f.jsx("span",{className:"dim",children:" — kept out of the logs, so never shown here either"}),R&&f.jsx("span",{className:"superseded-note",children:R})]}),A.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:A.masked,onChange:()=>void Q(A)}),"keep out of the logs"]}),!A.masked&&A.scope!=="global"&&(z[A.key]===void 0?f.jsx("button",{onClick:()=>void D(A),title:"show the value",children:"show"}):f.jsx("button",{onClick:()=>O(A.key),title:"hide it again",children:"hide"})),A.scope==="global"?f.jsx("span",{className:"dim",title:"set for every project — laneyard secret set",children:"global"}):f.jsx("button",{onClick:()=>void F(A),title:R?"remove this row":"remove",children:R?"remove":"✗"})]},A.key)},ge=t.filter(A=>!A.masked),_=t.filter(A=>A.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(gt)}),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&&_.length===0&&f.jsx("p",{className:"dim",children:"no secrets yet."}),f.jsx("ul",{className:"rows",children:_.map(gt)}),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(qt,{to:`/p/${e}/signing`,className:"accent",children:"signing →"})]}),f.jsx(U0,{slug:e,refresh:r,onStored:T}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"add"}),f.jsxs("form",{className:"secret-form",onSubmit:A=>void C(A),children:[f.jsx("input",{type:"text",value:h,onChange:A=>o(A.target.value),placeholder:"MATCH_PASSWORD",spellCheck:!1,autoComplete:"off","aria-label":"name"}),f.jsx("input",{type:"password",value:v,onChange:A=>S(A.target.value),placeholder:"value",autoComplete:"new-password","aria-label":"value"}),f.jsxs("label",{children:[f.jsx("input",{type:"checkbox",checked:E,onChange:A=>x(A.target.checked)}),"keep this out of the logs"]}),f.jsx("button",{type:"submit",disabled:m||h.trim()===""||v==="",children:"store"})]}),f.jsx("p",{className:"dim",children:"an existing name is replaced."}),g&&f.jsxs("p",{className:"status-failed",children:["refused — ",g]})]})}function B0(){const{slug:e=""}=Hl(),t=p.useContext(Tm),[l,a]=p.useState(null),[n,u]=p.useState(""),[i,c]=p.useState(!1),[s,r]=p.useState(null),[d,h]=p.useState(null);p.useEffect(()=>{u(""),r(null),h(null),L.projects().then(v=>{var S;return a(((S=v.find(E=>E.slug===e))==null?void 0:S.name)??e)}).catch(()=>a(e))},[e]);const o=async v=>{v.preventDefault(),c(!0),r(null);try{const S=await L.removeProject(e);h(S),t()}catch(S){r(S.message)}finally{c(!1)}};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(v=>f.jsxs("li",{children:[f.jsx("span",{className:"mark dim",children:"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"path",children:v})," ",f.jsx("span",{className:"dim",children:"— left where it is. remove it by hand if you want it gone."})]})]},v))]}),f.jsx("p",{className:"dim",style:{marginTop:20},children:f.jsx(qt,{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:"secrets stay in the vault"}),", encrypted and unreachable. adding the project back under the same name finds them again."]})]}),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:v=>void o(v),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:v=>u(v.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]})]})}const Fr=(e,t)=>{var l;return t==="path"?"the file":((l=e.fields.find(a=>a.name===t))==null?void 0:l.label)??t},w0=e=>{let t="";for(const l of e)t+=String.fromCharCode(l);return btoa(t)};function L0({slug:e,spec:t,stored:l,open:a,onToggle:n,onChanged:u,onError:i}){const[c,s]=p.useState(null),[r,d]=p.useState(0),[h,o]=p.useState({}),[v,S]=p.useState({}),[E,x]=p.useState(!1),[m,y]=p.useState(!1),g={...t.defaults,...(l==null?void 0:l.varNames)??{},...v},b=l===void 0||E,T=t.fields.every(O=>O.optional||(h[O.name]??"").trim()!==""),C=O=>h[O.name]??O.suggested??"",z=()=>{s(null),d(O=>O+1)},N=async()=>{if(c!==null){y(!0),i(null);try{await L.putCredential(e,t.kind,{fileName:c.name,fileBase64:w0(new Uint8Array(await c.arrayBuffer())),fields:Object.fromEntries(t.fields.map(O=>[O.name,C(O)])),varNames:g}),z(),o({}),S({}),x(!1),u()}catch(O){i(O.message)}finally{y(!1)}}},D=async()=>{i(null);try{await L.deleteCredential(e,t.kind),u()}catch(O){i(O.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&&!b&&f.jsxs(f.Fragment,{children:[t.fields.some(O=>!O.optional)&&f.jsx("div",{className:"dim",children:t.fields.filter(O=>!O.optional).map(O=>`${O.label} ${O.secret?"••••••":"stored"}`).join(" · ")}),f.jsxs("div",{className:"dim",children:["exported as"," ",Object.entries(g).map(([O,Q],F)=>f.jsxs("span",{children:[F>0&&", ",f.jsx("code",{children:Q})]},O))]})]}),b&&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:O=>{var F;const Q=((F=O.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:z,title:"choose another file",children:"✗"})]}),t.fields.map(O=>f.jsx("input",{type:O.secret?"password":"text",value:C(O),onChange:Q=>o(F=>({...F,[O.name]:Q.target.value})),placeholder:O.label,"aria-label":O.label,autoComplete:O.secret?"new-password":"off",spellCheck:!1},O.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(O=>f.jsxs("label",{children:[Fr(t,O),f.jsx("input",{type:"text",style:{width:"42ch"},value:g[O]??"",onChange:Q=>S(F=>({...F,[O]:Q.target.value})),"aria-label":`${Fr(t,O)} variable name`,spellCheck:!1,autoComplete:"off"})]},O)),f.jsx("button",{onClick:()=>void N(),disabled:m||c===null||!T,children:"store"}),l&&f.jsx("button",{type:"button",onClick:()=>x(!1),children:"cancel"})]})]}),l&&!b&&f.jsxs("div",{className:"secret-form",children:[f.jsx("button",{type:"button",onClick:()=>x(!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 D(),title:"remove this block",children:"remove"})]})]})]})}const Y0=[{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"}}],q0=["ios","android"];function G0(){const{slug:e=""}=Hl(),[t,l]=p.useState([]),[a,n]=p.useState(null),[u,i]=p.useState(null),[c,s]=p.useState(!0),r=()=>{s(!0),L.listCredentials(e).then(v=>{l(v),n(null)}).catch(v=>n(v.message)).finally(()=>s(!1))};p.useEffect(r,[e]);const[d,h]=p.useState([]),o=v=>h(S=>S.includes(v)?S.filter(E=>E!==v):[...S,v]);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…"}),q0.map(v=>f.jsxs("div",{className:"credentials-group",children:[f.jsx("p",{className:"dim platform",children:v}),f.jsx("ul",{className:"rows credentials",children:Y0.filter(S=>S.platform===v).map(S=>f.jsx(L0,{slug:e,spec:S,stored:t.find(E=>E.kind===S.kind),open:d.includes(S.kind),onToggle:()=>o(S.kind),onChanged:r,onError:i},S.kind))})]},v)),u&&f.jsxs("p",{className:"status-failed",children:["refused — ",u]})]})}function X0(){const e=p.useContext(vi),[t,l]=p.useState([]),[a,n]=p.useState(null),[u,i]=p.useState(!0),[c,s]=p.useState(""),[r,d]=p.useState("builder"),[h,o]=p.useState(""),[v,S]=p.useState(!1),[E,x]=p.useState(null),m=()=>{i(!0),L.users().then(b=>{l(b),n(null)}).catch(b=>n(b.message)).finally(()=>i(!1))};p.useEffect(m,[]);const y=async b=>{b.preventDefault(),S(!0),x(null);try{await L.createUser(c.trim(),r,h),s(""),o(""),d("builder"),m()}catch(T){x(T.message)}finally{S(!1)}},g=async b=>{x(null);try{await L.removeUser(b.name),m()}catch(T){x(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(b=>f.jsxs("li",{children:[f.jsx("span",{className:`mark ${b.role==="admin"?"accent":"dim"}`,children:b.role==="admin"?"●":"○"}),f.jsxs("span",{className:"grow",children:[f.jsx("span",{className:"bright",children:b.name})," ",b.name===(e==null?void 0:e.name)&&f.jsx("span",{className:"dim",children:"you"})]}),f.jsx("span",{className:"dim",children:b.role}),b.name===(e==null?void 0:e.name)?f.jsx("span",{className:"dim",title:"sign out to leave; another admin removes an account",children:"—"}):f.jsx("button",{onClick:()=>void g(b),title:"remove",children:"✗"})]},b.name))}),f.jsx("h2",{className:"section",style:{marginTop:20},children:"add"}),f.jsxs("form",{className:"secret-form",onSubmit:b=>void y(b),children:[f.jsx("input",{type:"text",value:c,onChange:b=>s(b.target.value),placeholder:"name",spellCheck:!1,autoComplete:"off","aria-label":"name"}),f.jsxs("select",{value:r,onChange:b=>d(b.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:b=>o(b.target.value),placeholder:"password",autoComplete:"new-password","aria-label":"password"}),f.jsx("button",{type:"submit",disabled:v||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."}),E&&f.jsxs("p",{className:"status-failed",children:["refused — ",E]})]})}const Tm=p.createContext(()=>{}),vi=p.createContext(null);function Q0(){const[e,t]=p.useState(null),[l,a]=p.useState(!1),[n,u]=p.useState([]),i=()=>L.me().then(async r=>{t(r),u(await L.projects().catch(()=>[]))}).catch(()=>t(null)).finally(()=>a(!0));p.useEffect(()=>{i()},[]);const c=()=>{L.logout().finally(()=>t(null))};if(!l)return f.jsx("p",{className:"dim",children:"loading…"});if(!e)return f.jsx(l0,{onSuccess:()=>void i()});const s=e.role==="admin";return f.jsx(vi.Provider,{value:e,children:f.jsx(Tm.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(qt,{to:"/account",className:"bright",title:"your account",children:e.name}),f.jsx("span",{className:"dim",children:e.role}),f.jsx("button",{onClick:c,children:"sign out"}),f.jsx(a0,{})]})]}),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(Tt,{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(Tt,{to:"/users",className:({isActive:r})=>`nav-item${r?" current":""}`,children:[f.jsx("span",{className:"mark dim",children:"●"})," accounts"]})]})]}),f.jsx("main",{children:f.jsxs(jg,{children:[f.jsx(Ke,{path:"/",element:f.jsx(v0,{})}),f.jsxs(Ke,{path:"/p/:slug",element:f.jsx(y0,{}),children:[s&&f.jsx(Ke,{path:"fastfile",element:f.jsx(o0,{})}),s&&f.jsx(Ke,{path:"secrets",element:f.jsx(H0,{})}),s&&f.jsx(Ke,{path:"signing",element:f.jsx(G0,{})}),f.jsx(Ke,{path:"readiness",element:f.jsx(E0,{})}),s&&f.jsx(Ke,{path:"settings",element:f.jsx(B0,{})})]}),f.jsx(Ke,{path:"/r/:id",element:f.jsx(M0,{})}),f.jsx(Ke,{path:"/account",element:f.jsx(n0,{})}),s&&f.jsx(Ke,{path:"/users",element:f.jsx(X0,{})}),f.jsx(Ke,{path:"*",element:f.jsx("p",{className:"dim",children:"unknown page."})})]})})]})})})}xp.createRoot(document.getElementById("root")).render(f.jsx(p.StrictMode,{children:f.jsx(Jg,{children:f.jsx(Q0,{})})}));export{f as j,p as r};