loki-mode 10.5.0 → 10.5.2

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 (75) hide show
  1. package/SKILL.md +2 -2
  2. package/VERSION +1 -1
  3. package/dashboard/__init__.py +1 -1
  4. package/dashboard/requirements.txt +3 -3
  5. package/docs/INSTALLATION.md +1 -1
  6. package/docs/v10/BOARD.md +73 -50
  7. package/docs/v10/DECISIONS.md +14 -0
  8. package/docs/v10/MEDIUM-ANALYSIS.md +165 -0
  9. package/docs/v10/METRICS.md +42 -0
  10. package/docs/v10/PROGRESS.md +19 -0
  11. package/docs/v10/SCORECARD-PLAN.md +250 -0
  12. package/loki-ts/dist/loki.js +213 -213
  13. package/mcp/__init__.py +1 -1
  14. package/mcp/requirements.txt +1 -1
  15. package/package.json +1 -1
  16. package/plugins/loki-mode/.claude-plugin/plugin.json +1 -1
  17. package/web-app/dist/assets/{AdminPage-UqksX-2j.js → AdminPage-DootQsDP.js} +1 -1
  18. package/web-app/dist/assets/{Avatar-DL9GAm3o.js → Avatar-BEh-AUI_.js} +1 -1
  19. package/web-app/dist/assets/{Badge-Dcje8mq7.js → Badge-xhAWVqTk.js} +1 -1
  20. package/web-app/dist/assets/{Button-CrSiFEeN.js → Button-DPHlrUW7.js} +1 -1
  21. package/web-app/dist/assets/{CockpitPage-pQmCWfIh.js → CockpitPage-QuYj3Nrx.js} +1 -1
  22. package/web-app/dist/assets/{ComparePage-DdNXRO4U.js → ComparePage-D_JaNxyU.js} +1 -1
  23. package/web-app/dist/assets/{ErrorBoundary-DllIrxM_.js → ErrorBoundary-xoqc9Ypk.js} +1 -1
  24. package/web-app/dist/assets/{EvidenceReceiptPanel-BZmSdXKX.js → EvidenceReceiptPanel-WfoGkBw1.js} +1 -1
  25. package/web-app/dist/assets/{GitHubIssuesPanel-L-JdQNH7.js → GitHubIssuesPanel-DpSh68Vr.js} +1 -1
  26. package/web-app/dist/assets/{GitHubPRsPanel-BmASy439.js → GitHubPRsPanel-PsM0TRCK.js} +1 -1
  27. package/web-app/dist/assets/{HomePage-CfqeIZPV.js → HomePage-DGNkRAE2.js} +2 -2
  28. package/web-app/dist/assets/{LoginPage-DkFVMTDS.js → LoginPage-CDZTufhc.js} +1 -1
  29. package/web-app/dist/assets/{MagicPage-hEQNcZ3A.js → MagicPage-nBvtlxPD.js} +1 -1
  30. package/web-app/dist/assets/{MetricsPage-2064AnFh.js → MetricsPage-Btvb_sUN.js} +1 -1
  31. package/web-app/dist/assets/{NotFoundPage-BxPHH3gH.js → NotFoundPage-zrHK2Qo5.js} +1 -1
  32. package/web-app/dist/assets/{ProjectPage-B93Nt-kS.js → ProjectPage-oilUogSN.js} +72 -72
  33. package/web-app/dist/assets/{ProjectsPage-BhaHPEd7.js → ProjectsPage-DEeRukgB.js} +1 -1
  34. package/web-app/dist/assets/{SettingsPage-Cqq9SCLd.js → SettingsPage-Dw_uFXXA.js} +1 -1
  35. package/web-app/dist/assets/{ShowcasePage-DPEOv9rh.js → ShowcasePage-DucUH7_M.js} +1 -1
  36. package/web-app/dist/assets/{SystemSettingsPage-CkuuJB1N.js → SystemSettingsPage-DSHQjPUw.js} +1 -1
  37. package/web-app/dist/assets/{TeamsPage-QF7urKuv.js → TeamsPage-CPCicvyD.js} +1 -1
  38. package/web-app/dist/assets/{TemplatesPage-wkI45c7P.js → TemplatesPage-BfICx9k6.js} +1 -1
  39. package/web-app/dist/assets/{TerminalOutput-4vSkFBSp.js → TerminalOutput-CDLcTRF0.js} +1 -1
  40. package/web-app/dist/assets/{activity-BiGRY_Fo.js → activity-DYrOuAG7.js} +1 -1
  41. package/web-app/dist/assets/{bell-BLYyCwzQ.js → bell-D9uSrwuN.js} +1 -1
  42. package/web-app/dist/assets/{bot-RKm3KktS.js → bot-C6Bn5s1m.js} +1 -1
  43. package/web-app/dist/assets/{check-C7qOmK8l.js → check-BmJB2Xqr.js} +1 -1
  44. package/web-app/dist/assets/{chevron-left-Dtko1B8i.js → chevron-left-C-S6ysEt.js} +1 -1
  45. package/web-app/dist/assets/{circle-alert-XO6K8jaq.js → circle-alert-BSasJfUu.js} +1 -1
  46. package/web-app/dist/assets/{clock-BYv008se.js → clock-a7_-OWs3.js} +1 -1
  47. package/web-app/dist/assets/{cloud-DTHdCtFF.js → cloud-DrX9DhXi.js} +1 -1
  48. package/web-app/dist/assets/{code-xml-tGMeHsgl.js → code-xml-BKuuaYjb.js} +1 -1
  49. package/web-app/dist/assets/{database-BuVrz6Xv.js → database-TMGZ6D6w.js} +1 -1
  50. package/web-app/dist/assets/{dollar-sign-BSGlReww.js → dollar-sign-CFAcj-wt.js} +1 -1
  51. package/web-app/dist/assets/{file-code-corner-2uqgSIoQ.js → file-code-corner-BH8h7Yza.js} +1 -1
  52. package/web-app/dist/assets/{file-plus-BFGGouZ1.js → file-plus-DLDkZZXo.js} +1 -1
  53. package/web-app/dist/assets/{globe-DNW-N2dC.js → globe-Ll1o1Ycp.js} +1 -1
  54. package/web-app/dist/assets/{hammer-B6Ngruab.js → hammer-CKex5IZg.js} +1 -1
  55. package/web-app/dist/assets/index-BxNfb8ay.js +435 -0
  56. package/web-app/dist/assets/{layers-Bo5CyvwJ.js → layers-BJpeiurx.js} +1 -1
  57. package/web-app/dist/assets/{loader-circle-Bg8IiGhM.js → loader-circle-PWbcF4Lv.js} +1 -1
  58. package/web-app/dist/assets/{lock-DQ3OZU3R.js → lock-Bpz4x4fe.js} +1 -1
  59. package/web-app/dist/assets/{package-B75R3o4e.js → package-B15vCu0K.js} +1 -1
  60. package/web-app/dist/assets/{plus-DxR5rSag.js → plus-C0tChz04.js} +1 -1
  61. package/web-app/dist/assets/{refresh-cw-DW4oTyXT.js → refresh-cw-BoJvJUHu.js} +1 -1
  62. package/web-app/dist/assets/{rotate-ccw-CLvwZ8g6.js → rotate-ccw-CkYRMcmp.js} +1 -1
  63. package/web-app/dist/assets/{scroll-text-CjRVS3NW.js → scroll-text-DrZFCdjT.js} +1 -1
  64. package/web-app/dist/assets/{server-DcAfROIl.js → server-Bu3prV7g.js} +1 -1
  65. package/web-app/dist/assets/{shield-alert-D_HQvK1o.js → shield-alert-Ct8WKcbl.js} +1 -1
  66. package/web-app/dist/assets/{thumbs-up-DEGIjHwe.js → thumbs-up-BXTieWXh.js} +1 -1
  67. package/web-app/dist/assets/{trash-2-Y_5JJyBC.js → trash-2-j8kPf0Rp.js} +1 -1
  68. package/web-app/dist/assets/{trending-down-D5F185e6.js → trending-down-6uNQaJHx.js} +1 -1
  69. package/web-app/dist/assets/{trending-up-Cm4ID9qE.js → trending-up-DsnJz2rA.js} +1 -1
  70. package/web-app/dist/assets/{upload-D4GrCRRP.js → upload-CcR9H3Sn.js} +1 -1
  71. package/web-app/dist/assets/{usePolling-uwpHN9Hw.js → usePolling-8bOCgNQG.js} +1 -1
  72. package/web-app/dist/assets/{user-DF7XMcwt.js → user-uSKOq9lh.js} +1 -1
  73. package/web-app/dist/index.html +1 -1
  74. package/web-app/requirements.txt +6 -6
  75. package/web-app/dist/assets/index-Ch5kxAL_.js +0 -435
@@ -1,435 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HomePage-CfqeIZPV.js","assets/usePolling-uwpHN9Hw.js","assets/ErrorBoundary-DllIrxM_.js","assets/TerminalOutput-4vSkFBSp.js","assets/lock-DQ3OZU3R.js","assets/EvidenceReceiptPanel-BZmSdXKX.js","assets/Badge-Dcje8mq7.js","assets/clock-BYv008se.js","assets/circle-alert-XO6K8jaq.js","assets/check-C7qOmK8l.js","assets/package-B75R3o4e.js","assets/cloud-DTHdCtFF.js","assets/code-xml-tGMeHsgl.js","assets/hammer-B6Ngruab.js","assets/layers-Bo5CyvwJ.js","assets/bell-BLYyCwzQ.js","assets/file-code-corner-2uqgSIoQ.js","assets/ProjectPage-B93Nt-kS.js","assets/Button-CrSiFEeN.js","assets/file-plus-BFGGouZ1.js","assets/activity-BiGRY_Fo.js","assets/scroll-text-CjRVS3NW.js","assets/bot-RKm3KktS.js","assets/loader-circle-Bg8IiGhM.js","assets/dollar-sign-BSGlReww.js","assets/refresh-cw-DW4oTyXT.js","assets/globe-DNW-N2dC.js","assets/trash-2-Y_5JJyBC.js","assets/thumbs-up-DEGIjHwe.js","assets/upload-D4GrCRRP.js","assets/plus-DxR5rSag.js","assets/rotate-ccw-CLvwZ8g6.js","assets/trending-up-Cm4ID9qE.js","assets/trending-down-D5F185e6.js","assets/server-DcAfROIl.js","assets/ProjectPage-9CEnUXvW.css","assets/CockpitPage-pQmCWfIh.js","assets/ProjectsPage-BhaHPEd7.js","assets/TemplatesPage-wkI45c7P.js","assets/chevron-left-Dtko1B8i.js","assets/database-BuVrz6Xv.js","assets/SettingsPage-Cqq9SCLd.js","assets/TeamsPage-QF7urKuv.js","assets/Avatar-DL9GAm3o.js","assets/user-DF7XMcwt.js","assets/AdminPage-UqksX-2j.js","assets/shield-alert-D_HQvK1o.js","assets/SystemSettingsPage-CkuuJB1N.js","assets/MetricsPage-2064AnFh.js","assets/MagicPage-hEQNcZ3A.js"])))=>i.map(i=>d[i]);
2
- var P0=Object.defineProperty;var ep=(i,c,r)=>c in i?P0(i,c,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[c]=r;var Ln=(i,c,r)=>ep(i,typeof c!="symbol"?c+"":c,r);(function(){const c=document.createElement("link").relList;if(c&&c.supports&&c.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))o(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const p of m.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&o(p)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function o(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();function tp(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ls={exports:{}},Bn={};/**
3
- * @license React
4
- * react-jsx-runtime.production.js
5
- *
6
- * Copyright (c) Meta Platforms, Inc. and affiliates.
7
- *
8
- * This source code is licensed under the MIT license found in the
9
- * LICENSE file in the root directory of this source tree.
10
- */var ph;function lp(){if(ph)return Bn;ph=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.fragment");function r(o,d,m){var p=null;if(m!==void 0&&(p=""+m),d.key!==void 0&&(p=""+d.key),"key"in d){m={};for(var E in d)E!=="key"&&(m[E]=d[E])}else m=d;return d=m.ref,{$$typeof:i,type:o,key:p,ref:d!==void 0?d:null,props:m}}return Bn.Fragment=c,Bn.jsx=r,Bn.jsxs=r,Bn}var vh;function ap(){return vh||(vh=1,Ls.exports=lp()),Ls.exports}var h=ap(),Bs={exports:{}},ee={};/**
11
- * @license React
12
- * react.production.js
13
- *
14
- * Copyright (c) Meta Platforms, Inc. and affiliates.
15
- *
16
- * This source code is licensed under the MIT license found in the
17
- * LICENSE file in the root directory of this source tree.
18
- */var gh;function np(){if(gh)return ee;gh=1;var i=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),p=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),H=Symbol.iterator;function L(S){return S===null||typeof S!="object"?null:(S=H&&S[H]||S["@@iterator"],typeof S=="function"?S:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,Q={};function q(S,w,G){this.props=S,this.context=w,this.refs=Q,this.updater=G||B}q.prototype.isReactComponent={},q.prototype.setState=function(S,w){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,w,"setState")},q.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function I(){}I.prototype=q.prototype;function J(S,w,G){this.props=S,this.context=w,this.refs=Q,this.updater=G||B}var ve=J.prototype=new I;ve.constructor=J,U(ve,q.prototype),ve.isPureReactComponent=!0;var me=Array.isArray;function Te(){}var P={H:null,A:null,T:null,S:null},Oe=Object.prototype.hasOwnProperty;function $e(S,w,G){var V=G.ref;return{$$typeof:i,type:S,key:w,ref:V!==void 0?V:null,props:G}}function Lt(S,w){return $e(S.type,w,S.props)}function xt(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function We(S){var w={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return w[G]})}var Bt=/\/+/g;function St(S,w){return typeof S=="object"&&S!==null&&S.key!=null?We(""+S.key):w.toString(36)}function we(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(Te,Te):(S.status="pending",S.then(function(w){S.status==="pending"&&(S.status="fulfilled",S.value=w)},function(w){S.status==="pending"&&(S.status="rejected",S.reason=w)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function O(S,w,G,V,te){var ne=typeof S;(ne==="undefined"||ne==="boolean")&&(S=null);var he=!1;if(S===null)he=!0;else switch(ne){case"bigint":case"string":case"number":he=!0;break;case"object":switch(S.$$typeof){case i:case c:he=!0;break;case z:return he=S._init,O(he(S._payload),w,G,V,te)}}if(he)return te=te(S),he=V===""?"."+St(S,0):V,me(te)?(G="",he!=null&&(G=he.replace(Bt,"$&/")+"/"),O(te,w,G,"",function(Xa){return Xa})):te!=null&&(xt(te)&&(te=Lt(te,G+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(Bt,"$&/")+"/")+he)),w.push(te)),1;he=0;var Ie=V===""?".":V+":";if(me(S))for(var Me=0;Me<S.length;Me++)V=S[Me],ne=Ie+St(V,Me),he+=O(V,w,G,ne,te);else if(Me=L(S),typeof Me=="function")for(S=Me.call(S),Me=0;!(V=S.next()).done;)V=V.value,ne=Ie+St(V,Me++),he+=O(V,w,G,ne,te);else if(ne==="object"){if(typeof S.then=="function")return O(we(S),w,G,V,te);throw w=String(S),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return he}function Y(S,w,G){if(S==null)return S;var V=[],te=0;return O(S,V,"","",function(ne){return w.call(G,ne,te++)}),V}function F(S){if(S._status===-1){var w=S._result;w=w(),w.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=w)}if(S._status===1)return S._result.default;throw S._result}var ge=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Ee={map:Y,forEach:function(S,w,G){Y(S,function(){w.apply(this,arguments)},G)},count:function(S){var w=0;return Y(S,function(){w++}),w},toArray:function(S){return Y(S,function(w){return w})||[]},only:function(S){if(!xt(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ee.Activity=_,ee.Children=Ee,ee.Component=q,ee.Fragment=r,ee.Profiler=d,ee.PureComponent=J,ee.StrictMode=o,ee.Suspense=x,ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ee.__COMPILER_RUNTIME={__proto__:null,c:function(S){return P.H.useMemoCache(S)}},ee.cache=function(S){return function(){return S.apply(null,arguments)}},ee.cacheSignal=function(){return null},ee.cloneElement=function(S,w,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var V=U({},S.props),te=S.key;if(w!=null)for(ne in w.key!==void 0&&(te=""+w.key),w)!Oe.call(w,ne)||ne==="key"||ne==="__self"||ne==="__source"||ne==="ref"&&w.ref===void 0||(V[ne]=w[ne]);var ne=arguments.length-2;if(ne===1)V.children=G;else if(1<ne){for(var he=Array(ne),Ie=0;Ie<ne;Ie++)he[Ie]=arguments[Ie+2];V.children=he}return $e(S.type,te,V)},ee.createContext=function(S){return S={$$typeof:p,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ee.createElement=function(S,w,G){var V,te={},ne=null;if(w!=null)for(V in w.key!==void 0&&(ne=""+w.key),w)Oe.call(w,V)&&V!=="key"&&V!=="__self"&&V!=="__source"&&(te[V]=w[V]);var he=arguments.length-2;if(he===1)te.children=G;else if(1<he){for(var Ie=Array(he),Me=0;Me<he;Me++)Ie[Me]=arguments[Me+2];te.children=Ie}if(S&&S.defaultProps)for(V in he=S.defaultProps,he)te[V]===void 0&&(te[V]=he[V]);return $e(S,ne,te)},ee.createRef=function(){return{current:null}},ee.forwardRef=function(S){return{$$typeof:E,render:S}},ee.isValidElement=xt,ee.lazy=function(S){return{$$typeof:z,_payload:{_status:-1,_result:S},_init:F}},ee.memo=function(S,w){return{$$typeof:y,type:S,compare:w===void 0?null:w}},ee.startTransition=function(S){var w=P.T,G={};P.T=G;try{var V=S(),te=P.S;te!==null&&te(G,V),typeof V=="object"&&V!==null&&typeof V.then=="function"&&V.then(Te,ge)}catch(ne){ge(ne)}finally{w!==null&&G.types!==null&&(w.types=G.types),P.T=w}},ee.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ee.use=function(S){return P.H.use(S)},ee.useActionState=function(S,w,G){return P.H.useActionState(S,w,G)},ee.useCallback=function(S,w){return P.H.useCallback(S,w)},ee.useContext=function(S){return P.H.useContext(S)},ee.useDebugValue=function(){},ee.useDeferredValue=function(S,w){return P.H.useDeferredValue(S,w)},ee.useEffect=function(S,w){return P.H.useEffect(S,w)},ee.useEffectEvent=function(S){return P.H.useEffectEvent(S)},ee.useId=function(){return P.H.useId()},ee.useImperativeHandle=function(S,w,G){return P.H.useImperativeHandle(S,w,G)},ee.useInsertionEffect=function(S,w){return P.H.useInsertionEffect(S,w)},ee.useLayoutEffect=function(S,w){return P.H.useLayoutEffect(S,w)},ee.useMemo=function(S,w){return P.H.useMemo(S,w)},ee.useOptimistic=function(S,w){return P.H.useOptimistic(S,w)},ee.useReducer=function(S,w,G){return P.H.useReducer(S,w,G)},ee.useRef=function(S){return P.H.useRef(S)},ee.useState=function(S){return P.H.useState(S)},ee.useSyncExternalStore=function(S,w,G){return P.H.useSyncExternalStore(S,w,G)},ee.useTransition=function(){return P.H.useTransition()},ee.version="19.2.4",ee}var bh;function eo(){return bh||(bh=1,Bs.exports=np()),Bs.exports}var v=eo();const w2=tp(v);var qs={exports:{}},qn={},Ys={exports:{}},Gs={};/**
19
- * @license React
20
- * scheduler.production.js
21
- *
22
- * Copyright (c) Meta Platforms, Inc. and affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
25
- * LICENSE file in the root directory of this source tree.
26
- */var xh;function up(){return xh||(xh=1,(function(i){function c(O,Y){var F=O.length;O.push(Y);e:for(;0<F;){var ge=F-1>>>1,Ee=O[ge];if(0<d(Ee,Y))O[ge]=Y,O[F]=Ee,F=ge;else break e}}function r(O){return O.length===0?null:O[0]}function o(O){if(O.length===0)return null;var Y=O[0],F=O.pop();if(F!==Y){O[0]=F;e:for(var ge=0,Ee=O.length,S=Ee>>>1;ge<S;){var w=2*(ge+1)-1,G=O[w],V=w+1,te=O[V];if(0>d(G,F))V<Ee&&0>d(te,G)?(O[ge]=te,O[V]=F,ge=V):(O[ge]=G,O[w]=F,ge=w);else if(V<Ee&&0>d(te,F))O[ge]=te,O[V]=F,ge=V;else break e}}return Y}function d(O,Y){var F=O.sortIndex-Y.sortIndex;return F!==0?F:O.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;i.unstable_now=function(){return m.now()}}else{var p=Date,E=p.now();i.unstable_now=function(){return p.now()-E}}var x=[],y=[],z=1,_=null,H=3,L=!1,B=!1,U=!1,Q=!1,q=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,J=typeof setImmediate<"u"?setImmediate:null;function ve(O){for(var Y=r(y);Y!==null;){if(Y.callback===null)o(y);else if(Y.startTime<=O)o(y),Y.sortIndex=Y.expirationTime,c(x,Y);else break;Y=r(y)}}function me(O){if(U=!1,ve(O),!B)if(r(x)!==null)B=!0,Te||(Te=!0,We());else{var Y=r(y);Y!==null&&we(me,Y.startTime-O)}}var Te=!1,P=-1,Oe=5,$e=-1;function Lt(){return Q?!0:!(i.unstable_now()-$e<Oe)}function xt(){if(Q=!1,Te){var O=i.unstable_now();$e=O;var Y=!0;try{e:{B=!1,U&&(U=!1,I(P),P=-1),L=!0;var F=H;try{t:{for(ve(O),_=r(x);_!==null&&!(_.expirationTime>O&&Lt());){var ge=_.callback;if(typeof ge=="function"){_.callback=null,H=_.priorityLevel;var Ee=ge(_.expirationTime<=O);if(O=i.unstable_now(),typeof Ee=="function"){_.callback=Ee,ve(O),Y=!0;break t}_===r(x)&&o(x),ve(O)}else o(x);_=r(x)}if(_!==null)Y=!0;else{var S=r(y);S!==null&&we(me,S.startTime-O),Y=!1}}break e}finally{_=null,H=F,L=!1}Y=void 0}}finally{Y?We():Te=!1}}}var We;if(typeof J=="function")We=function(){J(xt)};else if(typeof MessageChannel<"u"){var Bt=new MessageChannel,St=Bt.port2;Bt.port1.onmessage=xt,We=function(){St.postMessage(null)}}else We=function(){q(xt,0)};function we(O,Y){P=q(function(){O(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(O){O.callback=null},i.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Oe=0<O?Math.floor(1e3/O):5},i.unstable_getCurrentPriorityLevel=function(){return H},i.unstable_next=function(O){switch(H){case 1:case 2:case 3:var Y=3;break;default:Y=H}var F=H;H=Y;try{return O()}finally{H=F}},i.unstable_requestPaint=function(){Q=!0},i.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=H;H=O;try{return Y()}finally{H=F}},i.unstable_scheduleCallback=function(O,Y,F){var ge=i.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?ge+F:ge):F=ge,O){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=F+Ee,O={id:z++,callback:Y,priorityLevel:O,startTime:F,expirationTime:Ee,sortIndex:-1},F>ge?(O.sortIndex=F,c(y,O),r(x)===null&&O===r(y)&&(U?(I(P),P=-1):U=!0,we(me,F-ge))):(O.sortIndex=Ee,c(x,O),B||L||(B=!0,Te||(Te=!0,We()))),O},i.unstable_shouldYield=Lt,i.unstable_wrapCallback=function(O){var Y=H;return function(){var F=H;H=Y;try{return O.apply(this,arguments)}finally{H=F}}}})(Gs)),Gs}var Sh;function ip(){return Sh||(Sh=1,Ys.exports=up()),Ys.exports}var Qs={exports:{}},Fe={};/**
27
- * @license React
28
- * react-dom.production.js
29
- *
30
- * Copyright (c) Meta Platforms, Inc. and affiliates.
31
- *
32
- * This source code is licensed under the MIT license found in the
33
- * LICENSE file in the root directory of this source tree.
34
- */var Eh;function cp(){if(Eh)return Fe;Eh=1;var i=eo();function c(x){var y="https://react.dev/errors/"+x;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)y+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+x+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(c(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(x,y,z){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:_==null?null:""+_,children:x,containerInfo:y,implementation:z}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function E(x,y){if(x==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return Fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Fe.createPortal=function(x,y){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(c(299));return m(x,y,null,z)},Fe.flushSync=function(x){var y=p.T,z=o.p;try{if(p.T=null,o.p=2,x)return x()}finally{p.T=y,o.p=z,o.d.f()}},Fe.preconnect=function(x,y){typeof x=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(x,y))},Fe.prefetchDNS=function(x){typeof x=="string"&&o.d.D(x)},Fe.preinit=function(x,y){if(typeof x=="string"&&y&&typeof y.as=="string"){var z=y.as,_=E(z,y.crossOrigin),H=typeof y.integrity=="string"?y.integrity:void 0,L=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;z==="style"?o.d.S(x,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:_,integrity:H,fetchPriority:L}):z==="script"&&o.d.X(x,{crossOrigin:_,integrity:H,fetchPriority:L,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},Fe.preinitModule=function(x,y){if(typeof x=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var z=E(y.as,y.crossOrigin);o.d.M(x,{crossOrigin:z,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&o.d.M(x)},Fe.preload=function(x,y){if(typeof x=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var z=y.as,_=E(z,y.crossOrigin);o.d.L(x,z,{crossOrigin:_,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},Fe.preloadModule=function(x,y){if(typeof x=="string")if(y){var z=E(y.as,y.crossOrigin);o.d.m(x,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:z,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else o.d.m(x)},Fe.requestFormReset=function(x){o.d.r(x)},Fe.unstable_batchedUpdates=function(x,y){return x(y)},Fe.useFormState=function(x,y,z){return p.H.useFormState(x,y,z)},Fe.useFormStatus=function(){return p.H.useHostTransitionStatus()},Fe.version="19.2.4",Fe}var _h;function sp(){if(_h)return Qs.exports;_h=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),Qs.exports=cp(),Qs.exports}/**
35
- * @license React
36
- * react-dom-client.production.js
37
- *
38
- * Copyright (c) Meta Platforms, Inc. and affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */var Th;function op(){if(Th)return qn;Th=1;var i=ip(),c=eo(),r=sp();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function E(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(m(e)!==e)throw Error(o(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var u=n.alternate;if(u===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===u.child){for(u=n.child;u;){if(u===l)return x(n),e;if(u===a)return x(n),t;u=u.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=u;else{for(var s=!1,f=n.child;f;){if(f===l){s=!0,l=n,a=u;break}if(f===a){s=!0,a=n,l=u;break}f=f.sibling}if(!s){for(f=u.child;f;){if(f===l){s=!0,l=u,a=n;break}if(f===a){s=!0,a=u,l=n;break}f=f.sibling}if(!s)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:t}function z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=z(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,H=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),J=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),me=Symbol.for("react.suspense"),Te=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),$e=Symbol.for("react.activity"),Lt=Symbol.for("react.memo_cache_sentinel"),xt=Symbol.iterator;function We(e){return e===null||typeof e!="object"?null:(e=xt&&e[xt]||e["@@iterator"],typeof e=="function"?e:null)}var Bt=Symbol.for("react.client.reference");function St(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Bt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case q:return"Profiler";case Q:return"StrictMode";case me:return"Suspense";case Te:return"SuspenseList";case $e:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case J:return e.displayName||"Context";case I:return(e._context.displayName||"Context")+".Consumer";case ve:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return t=e.displayName||null,t!==null?t:St(e.type)||"Memo";case Oe:t=e._payload,e=e._init;try{return St(e(t))}catch{}}return null}var we=Array.isArray,O=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},ge=[],Ee=-1;function S(e){return{current:e}}function w(e){0>Ee||(e.current=ge[Ee],ge[Ee]=null,Ee--)}function G(e,t){Ee++,ge[Ee]=e.current,e.current=t}var V=S(null),te=S(null),ne=S(null),he=S(null);function Ie(e,t){switch(G(ne,t),G(te,e),G(V,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Bd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Bd(t),e=qd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w(V),G(V,e)}function Me(){w(V),w(te),w(ne)}function Xa(e){e.memoizedState!==null&&G(he,e);var t=V.current,l=qd(t,e.type);t!==l&&(G(te,e),G(V,l))}function Zn(e){te.current===e&&(w(V),w(te)),he.current===e&&(w(he),Un._currentValue=F)}var xi,mo;function wl(e){if(xi===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);xi=t&&t[1]||"",mo=-1<l.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+xi+e+mo}var Si=!1;function Ei(e,t){if(!e||Si)return"";Si=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[])}catch(A){var j=A}Reflect.construct(e,[],D)}else{try{D.call()}catch(A){j=A}e.call(D.prototype)}}else{try{throw Error()}catch(A){j=A}(D=e())&&typeof D.catch=="function"&&D.catch(function(){})}}catch(A){if(A&&j&&typeof A.stack=="string")return[A.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),s=u[0],f=u[1];if(s&&f){var g=s.split(`
45
- `),C=f.split(`
46
- `);for(n=a=0;a<g.length&&!g[a].includes("DetermineComponentFrameRoot");)a++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(a===g.length||n===C.length)for(a=g.length-1,n=C.length-1;1<=a&&0<=n&&g[a]!==C[n];)n--;for(;1<=a&&0<=n;a--,n--)if(g[a]!==C[n]){if(a!==1||n!==1)do if(a--,n--,0>n||g[a]!==C[n]){var R=`
47
- `+g[a].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=a&&0<=n);break}}}finally{Si=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?wl(l):""}function Rm(e,t){switch(e.tag){case 26:case 27:case 5:return wl(e.type);case 16:return wl("Lazy");case 13:return e.child!==t&&t!==null?wl("Suspense Fallback"):wl("Suspense");case 19:return wl("SuspenseList");case 0:case 15:return Ei(e.type,!1);case 11:return Ei(e.type.render,!1);case 1:return Ei(e.type,!0);case 31:return wl("Activity");default:return""}}function yo(e){try{var t="",l=null;do t+=Rm(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
48
- Error generating stack: `+a.message+`
49
- `+a.stack}}var _i=Object.prototype.hasOwnProperty,Ti=i.unstable_scheduleCallback,zi=i.unstable_cancelCallback,Om=i.unstable_shouldYield,Mm=i.unstable_requestPaint,ot=i.unstable_now,Dm=i.unstable_getCurrentPriorityLevel,po=i.unstable_ImmediatePriority,vo=i.unstable_UserBlockingPriority,Jn=i.unstable_NormalPriority,Um=i.unstable_LowPriority,go=i.unstable_IdlePriority,wm=i.log,Hm=i.unstable_setDisableYieldValue,Va=null,rt=null;function rl(e){if(typeof wm=="function"&&Hm(e),rt&&typeof rt.setStrictMode=="function")try{rt.setStrictMode(Va,e)}catch{}}var ft=Math.clz32?Math.clz32:Bm,km=Math.log,Lm=Math.LN2;function Bm(e){return e>>>=0,e===0?32:31-(km(e)/Lm|0)|0}var Kn=256,$n=262144,Wn=4194304;function Hl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fn(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,u=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var f=a&134217727;return f!==0?(a=f&~u,a!==0?n=Hl(a):(s&=f,s!==0?n=Hl(s):l||(l=f&~e,l!==0&&(n=Hl(l))))):(f=a&~u,f!==0?n=Hl(f):s!==0?n=Hl(s):l||(l=a&~e,l!==0&&(n=Hl(l)))),n===0?0:t!==0&&t!==n&&(t&u)===0&&(u=n&-n,l=t&-t,u>=l||u===32&&(l&4194048)!==0)?t:n}function Za(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function bo(){var e=Wn;return Wn<<=1,(Wn&62914560)===0&&(Wn=4194304),e}function Ni(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ja(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ym(e,t,l,a,n,u){var s=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var f=e.entanglements,g=e.expirationTimes,C=e.hiddenUpdates;for(l=s&~l;0<l;){var R=31-ft(l),D=1<<R;f[R]=0,g[R]=-1;var j=C[R];if(j!==null)for(C[R]=null,R=0;R<j.length;R++){var A=j[R];A!==null&&(A.lane&=-536870913)}l&=~D}a!==0&&xo(e,a,0),u!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=u&~(s&~t))}function xo(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ft(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function So(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-ft(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Eo(e,t){var l=t&-t;return l=(l&42)!==0?1:Ci(l),(l&(e.suspendedLanes|t))!==0?0:l}function Ci(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 ji(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _o(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:oh(e.type))}function To(e,t){var l=Y.p;try{return Y.p=e,t()}finally{Y.p=l}}var fl=Math.random().toString(36).slice(2),Qe="__reactFiber$"+fl,lt="__reactProps$"+fl,ta="__reactContainer$"+fl,Ai="__reactEvents$"+fl,Gm="__reactListeners$"+fl,Qm="__reactHandles$"+fl,zo="__reactResources$"+fl,Ka="__reactMarker$"+fl;function Ri(e){delete e[Qe],delete e[lt],delete e[Ai],delete e[Gm],delete e[Qm]}function la(e){var t=e[Qe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ta]||l[Qe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Jd(e);e!==null;){if(l=e[Qe])return l;e=Jd(e)}return t}e=l,l=e.parentNode}return null}function aa(e){if(e=e[Qe]||e[ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function $a(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function na(e){var t=e[zo];return t||(t=e[zo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ye(e){e[Ka]=!0}var No=new Set,Co={};function kl(e,t){ua(e,t),ua(e+"Capture",t)}function ua(e,t){for(Co[e]=t,e=0;e<t.length;e++)No.add(t[e])}var Xm=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]*$"),jo={},Ao={};function Vm(e){return _i.call(Ao,e)?!0:_i.call(jo,e)?!1:Xm.test(e)?Ao[e]=!0:(jo[e]=!0,!1)}function In(e,t,l){if(Vm(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Pn(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Vt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Et(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 Zm(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,u.call(this,s)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){if(!e._valueTracker){var t=Ro(e)?"checked":"value";e._valueTracker=Zm(e,t,""+e[t])}}function Oo(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 eu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Jm=/[\n"\\]/g;function _t(e){return e.replace(Jm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Mi(e,t,l,a,n,u,s,f){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Di(e,s,Et(t)):l!=null?Di(e,s,Et(l)):a!=null&&e.removeAttribute("value"),n==null&&u!=null&&(e.defaultChecked=!!u),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.name=""+Et(f):e.removeAttribute("name")}function Mo(e,t,l,a,n,u,s,f){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)){Oi(e);return}l=l!=null?""+Et(l):"",t=t!=null?""+Et(t):l,f||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=f?e.checked:!!a,e.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Oi(e)}function Di(e,t,l){t==="number"&&eu(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ia(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=""+Et(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 Do(e,t,l){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Et(l):""}function Uo(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(o(92));if(we(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Et(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Oi(e)}function ca(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Km=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 wo(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||Km.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Ho(e,t,l){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&wo(e,n,a)}else for(var u in t)t.hasOwnProperty(u)&&wo(e,u,t[u])}function Ui(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 $m=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"]]),Wm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function tu(e){return Wm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var wi=null;function Hi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sa=null,oa=null;function ko(e){var t=aa(e);if(t&&(e=t.stateNode)){var l=e[lt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Mi(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+_t(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[lt]||null;if(!n)throw Error(o(90));Mi(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Oo(a)}break e;case"textarea":Do(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ia(e,!!l.multiple,t,!1)}}}var ki=!1;function Lo(e,t,l){if(ki)return e(t,l);ki=!0;try{var a=e(t);return a}finally{if(ki=!1,(sa!==null||oa!==null)&&(Gu(),sa&&(t=sa,e=oa,oa=sa=null,ko(t),e)))for(t=0;t<e.length;t++)ko(e[t])}}function Wa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[lt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(o(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Li=!1;if(Jt)try{var Fa={};Object.defineProperty(Fa,"passive",{get:function(){Li=!0}}),window.addEventListener("test",Fa,Fa),window.removeEventListener("test",Fa,Fa)}catch{Li=!1}var dl=null,Bi=null,lu=null;function Bo(){if(lu)return lu;var e,t=Bi,l=t.length,a,n="value"in dl?dl.value:dl.textContent,u=n.length;for(e=0;e<l&&t[e]===n[e];e++);var s=l-e;for(a=1;a<=s&&t[l-a]===n[u-a];a++);return lu=n.slice(e,1<a?1-a:void 0)}function au(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nu(){return!0}function qo(){return!1}function at(e){function t(l,a,n,u,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=u,this.target=s,this.currentTarget=null;for(var f in e)e.hasOwnProperty(f)&&(l=e[f],this[f]=l?l(u):u[f]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?nu:qo,this.isPropagationStopped=qo,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),t}var Ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uu=at(Ll),Ia=_({},Ll,{view:0,detail:0}),Fm=at(Ia),qi,Yi,Pa,iu=_({},Ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qi,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pa&&(Pa&&e.type==="mousemove"?(qi=e.screenX-Pa.screenX,Yi=e.screenY-Pa.screenY):Yi=qi=0,Pa=e),qi)},movementY:function(e){return"movementY"in e?e.movementY:Yi}}),Yo=at(iu),Im=_({},iu,{dataTransfer:0}),Pm=at(Im),ey=_({},Ia,{relatedTarget:0}),Gi=at(ey),ty=_({},Ll,{animationName:0,elapsedTime:0,pseudoElement:0}),ly=at(ty),ay=_({},Ll,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ny=at(ay),uy=_({},Ll,{data:0}),Go=at(uy),iy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cy={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"},sy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sy[e])?!!t[e]:!1}function Qi(){return oy}var ry=_({},Ia,{key:function(e){if(e.key){var t=iy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=au(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qi,charCode:function(e){return e.type==="keypress"?au(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?au(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fy=at(ry),dy=_({},iu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qo=at(dy),hy=_({},Ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qi}),my=at(hy),yy=_({},Ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),py=at(yy),vy=_({},iu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gy=at(vy),by=_({},Ll,{newState:0,oldState:0}),xy=at(by),Sy=[9,13,27,32],Xi=Jt&&"CompositionEvent"in window,en=null;Jt&&"documentMode"in document&&(en=document.documentMode);var Ey=Jt&&"TextEvent"in window&&!en,Xo=Jt&&(!Xi||en&&8<en&&11>=en),Vo=" ",Zo=!1;function Jo(e,t){switch(e){case"keyup":return Sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ko(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ra=!1;function _y(e,t){switch(e){case"compositionend":return Ko(t);case"keypress":return t.which!==32?null:(Zo=!0,Vo);case"textInput":return e=t.data,e===Vo&&Zo?null:e;default:return null}}function Ty(e,t){if(ra)return e==="compositionend"||!Xi&&Jo(e,t)?(e=Bo(),lu=Bi=dl=null,ra=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Xo&&t.locale!=="ko"?null:t.data;default:return null}}var zy={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 $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zy[e.type]:t==="textarea"}function Wo(e,t,l,a){sa?oa?oa.push(a):oa=[a]:sa=a,t=$u(t,"onChange"),0<t.length&&(l=new uu("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var tn=null,ln=null;function Ny(e){Dd(e,0)}function cu(e){var t=$a(e);if(Oo(t))return e}function Fo(e,t){if(e==="change")return t}var Io=!1;if(Jt){var Vi;if(Jt){var Zi="oninput"in document;if(!Zi){var Po=document.createElement("div");Po.setAttribute("oninput","return;"),Zi=typeof Po.oninput=="function"}Vi=Zi}else Vi=!1;Io=Vi&&(!document.documentMode||9<document.documentMode)}function er(){tn&&(tn.detachEvent("onpropertychange",tr),ln=tn=null)}function tr(e){if(e.propertyName==="value"&&cu(ln)){var t=[];Wo(t,ln,e,Hi(e)),Lo(Ny,t)}}function Cy(e,t,l){e==="focusin"?(er(),tn=t,ln=l,tn.attachEvent("onpropertychange",tr)):e==="focusout"&&er()}function jy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cu(ln)}function Ay(e,t){if(e==="click")return cu(t)}function Ry(e,t){if(e==="input"||e==="change")return cu(t)}function Oy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:Oy;function an(e,t){if(dt(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(!_i.call(t,n)||!dt(e[n],t[n]))return!1}return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ar(e,t){var l=lr(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=lr(l)}}function nr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nr(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ur(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=eu(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=eu(e.document)}return t}function Ji(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 My=Jt&&"documentMode"in document&&11>=document.documentMode,fa=null,Ki=null,nn=null,$i=!1;function ir(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;$i||fa==null||fa!==eu(a)||(a=fa,"selectionStart"in a&&Ji(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),nn&&an(nn,a)||(nn=a,a=$u(Ki,"onSelect"),0<a.length&&(t=new uu("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=fa)))}function Bl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var da={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},Wi={},cr={};Jt&&(cr=document.createElement("div").style,"AnimationEvent"in window||(delete da.animationend.animation,delete da.animationiteration.animation,delete da.animationstart.animation),"TransitionEvent"in window||delete da.transitionend.transition);function ql(e){if(Wi[e])return Wi[e];if(!da[e])return e;var t=da[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in cr)return Wi[e]=t[l];return e}var sr=ql("animationend"),or=ql("animationiteration"),rr=ql("animationstart"),Dy=ql("transitionrun"),Uy=ql("transitionstart"),wy=ql("transitioncancel"),fr=ql("transitionend"),dr=new Map,Fi="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(" ");Fi.push("scrollEnd");function Dt(e,t){dr.set(e,t),kl(t,[e])}var su=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Tt=[],ha=0,Ii=0;function ou(){for(var e=ha,t=Ii=ha=0;t<e;){var l=Tt[t];Tt[t++]=null;var a=Tt[t];Tt[t++]=null;var n=Tt[t];Tt[t++]=null;var u=Tt[t];if(Tt[t++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}u!==0&&hr(l,n,u)}}function ru(e,t,l,a){Tt[ha++]=e,Tt[ha++]=t,Tt[ha++]=l,Tt[ha++]=a,Ii|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Pi(e,t,l,a){return ru(e,t,l,a),fu(e)}function Yl(e,t){return ru(e,null,null,t),fu(e)}function hr(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-ft(l),e=u.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),u):null}function fu(e){if(50<Cn)throw Cn=0,ss=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ma={};function Hy(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 ht(e,t,l,a){return new Hy(e,t,l,a)}function ec(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kt(e,t){var l=e.alternate;return l===null?(l=ht(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 mr(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function du(e,t,l,a,n,u){var s=0;if(a=e,typeof e=="function")ec(e)&&(s=1);else if(typeof e=="string")s=Y0(e,l,V.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $e:return e=ht(31,l,t,n),e.elementType=$e,e.lanes=u,e;case U:return Gl(l.children,n,u,t);case Q:s=8,n|=24;break;case q:return e=ht(12,l,t,n|2),e.elementType=q,e.lanes=u,e;case me:return e=ht(13,l,t,n),e.elementType=me,e.lanes=u,e;case Te:return e=ht(19,l,t,n),e.elementType=Te,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J:s=10;break e;case I:s=9;break e;case ve:s=11;break e;case P:s=14;break e;case Oe:s=16,a=null;break e}s=29,l=Error(o(130,e===null?"null":typeof e,"")),a=null}return t=ht(s,l,t,n),t.elementType=e,t.type=a,t.lanes=u,t}function Gl(e,t,l,a){return e=ht(7,e,a,t),e.lanes=l,e}function tc(e,t,l){return e=ht(6,e,null,t),e.lanes=l,e}function yr(e){var t=ht(18,null,null,0);return t.stateNode=e,t}function lc(e,t,l){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pr=new WeakMap;function zt(e,t){if(typeof e=="object"&&e!==null){var l=pr.get(e);return l!==void 0?l:(t={value:e,source:t,stack:yo(t)},pr.set(e,t),t)}return{value:e,source:t,stack:yo(t)}}var ya=[],pa=0,hu=null,un=0,Nt=[],Ct=0,hl=null,qt=1,Yt="";function $t(e,t){ya[pa++]=un,ya[pa++]=hu,hu=e,un=t}function vr(e,t,l){Nt[Ct++]=qt,Nt[Ct++]=Yt,Nt[Ct++]=hl,hl=e;var a=qt;e=Yt;var n=32-ft(a)-1;a&=~(1<<n),l+=1;var u=32-ft(t)+n;if(30<u){var s=n-n%5;u=(a&(1<<s)-1).toString(32),a>>=s,n-=s,qt=1<<32-ft(t)+n|l<<n|a,Yt=u+e}else qt=1<<u|l<<n|a,Yt=e}function ac(e){e.return!==null&&($t(e,1),vr(e,1,0))}function nc(e){for(;e===hu;)hu=ya[--pa],ya[pa]=null,un=ya[--pa],ya[pa]=null;for(;e===hl;)hl=Nt[--Ct],Nt[Ct]=null,Yt=Nt[--Ct],Nt[Ct]=null,qt=Nt[--Ct],Nt[Ct]=null}function gr(e,t){Nt[Ct++]=qt,Nt[Ct++]=Yt,Nt[Ct++]=hl,qt=t.id,Yt=t.overflow,hl=e}var Xe=null,ze=null,oe=!1,ml=null,jt=!1,uc=Error(o(519));function yl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(zt(t,e)),uc}function br(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Qe]=e,t[lt]=a,l){case"dialog":ie("cancel",t),ie("close",t);break;case"iframe":case"object":case"embed":ie("load",t);break;case"video":case"audio":for(l=0;l<An.length;l++)ie(An[l],t);break;case"source":ie("error",t);break;case"img":case"image":case"link":ie("error",t),ie("load",t);break;case"details":ie("toggle",t);break;case"input":ie("invalid",t),Mo(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ie("invalid",t);break;case"textarea":ie("invalid",t),Uo(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||kd(t.textContent,l)?(a.popover!=null&&(ie("beforetoggle",t),ie("toggle",t)),a.onScroll!=null&&ie("scroll",t),a.onScrollEnd!=null&&ie("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||yl(e,!0)}function xr(e){for(Xe=e.return;Xe;)switch(Xe.tag){case 5:case 31:case 13:jt=!1;return;case 27:case 3:jt=!0;return;default:Xe=Xe.return}}function va(e){if(e!==Xe)return!1;if(!oe)return xr(e),oe=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||_s(e.type,e.memoizedProps)),l=!l),l&&ze&&yl(e),xr(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=Zd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=Zd(e)}else t===27?(t=ze,Al(e.type)?(e=js,js=null,ze=e):ze=t):ze=Xe?Rt(e.stateNode.nextSibling):null;return!0}function Ql(){ze=Xe=null,oe=!1}function ic(){var e=ml;return e!==null&&(ct===null?ct=e:ct.push.apply(ct,e),ml=null),e}function cn(e){ml===null?ml=[e]:ml.push(e)}var cc=S(null),Xl=null,Wt=null;function pl(e,t,l){G(cc,t._currentValue),t._currentValue=l}function Ft(e){e._currentValue=cc.current,w(cc)}function sc(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 oc(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var u=n.dependencies;if(u!==null){var s=n.child;u=u.firstContext;e:for(;u!==null;){var f=u;u=n;for(var g=0;g<t.length;g++)if(f.context===t[g]){u.lanes|=l,f=u.alternate,f!==null&&(f.lanes|=l),sc(u.return,l,e),a||(s=null);break e}u=f.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(o(341));s.lanes|=l,u=s.alternate,u!==null&&(u.lanes|=l),sc(s,l,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function ga(e,t,l,a){e=null;for(var n=t,u=!1;n!==null;){if(!u){if((n.flags&524288)!==0)u=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var f=n.type;dt(n.pendingProps.value,s.value)||(e!==null?e.push(f):e=[f])}}else if(n===he.current){if(s=n.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Un):e=[Un])}n=n.return}e!==null&&oc(t,e,l,a),t.flags|=262144}function mu(e){for(e=e.firstContext;e!==null;){if(!dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Xl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ve(e){return Sr(Xl,e)}function yu(e,t){return Xl===null&&Vl(e),Sr(e,t)}function Sr(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(o(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var ky=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()})}},Ly=i.unstable_scheduleCallback,By=i.unstable_NormalPriority,He={$$typeof:J,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function rc(){return{controller:new ky,data:new Map,refCount:0}}function sn(e){e.refCount--,e.refCount===0&&Ly(By,function(){e.controller.abort()})}var on=null,fc=0,ba=0,xa=null;function qy(e,t){if(on===null){var l=on=[];fc=0,ba=ms(),xa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return fc++,t.then(Er,Er),t}function Er(){if(--fc===0&&on!==null){xa!==null&&(xa.status="fulfilled");var e=on;on=null,ba=0,xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Yy(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 _r=O.S;O.S=function(e,t){cd=ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&qy(e,t),_r!==null&&_r(e,t)};var Zl=S(null);function dc(){var e=Zl.current;return e!==null?e:_e.pooledCache}function pu(e,t){t===null?G(Zl,Zl.current):G(Zl,t.pool)}function Tr(){var e=dc();return e===null?null:{parent:He._currentValue,pool:e}}var Sa=Error(o(460)),hc=Error(o(474)),vu=Error(o(542)),gu={then:function(){}};function zr(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Nr(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jr(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,jr(e),e}throw Kl=t,Sa}}function Jl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Kl=l,Sa):l}}var Kl=null;function Cr(){if(Kl===null)throw Error(o(459));var e=Kl;return Kl=null,e}function jr(e){if(e===Sa||e===vu)throw Error(o(483))}var Ea=null,rn=0;function bu(e){var t=rn;return rn+=1,Ea===null&&(Ea=[]),Nr(Ea,e,t)}function fn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xu(e,t){throw t.$$typeof===H?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ar(e){function t(T,b){if(e){var N=T.deletions;N===null?(T.deletions=[b],T.flags|=16):N.push(b)}}function l(T,b){if(!e)return null;for(;b!==null;)t(T,b),b=b.sibling;return null}function a(T){for(var b=new Map;T!==null;)T.key!==null?b.set(T.key,T):b.set(T.index,T),T=T.sibling;return b}function n(T,b){return T=Kt(T,b),T.index=0,T.sibling=null,T}function u(T,b,N){return T.index=N,e?(N=T.alternate,N!==null?(N=N.index,N<b?(T.flags|=67108866,b):N):(T.flags|=67108866,b)):(T.flags|=1048576,b)}function s(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function f(T,b,N,M){return b===null||b.tag!==6?(b=tc(N,T.mode,M),b.return=T,b):(b=n(b,N),b.return=T,b)}function g(T,b,N,M){var K=N.type;return K===U?R(T,b,N.props.children,M,N.key):b!==null&&(b.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Oe&&Jl(K)===b.type)?(b=n(b,N.props),fn(b,N),b.return=T,b):(b=du(N.type,N.key,N.props,null,T.mode,M),fn(b,N),b.return=T,b)}function C(T,b,N,M){return b===null||b.tag!==4||b.stateNode.containerInfo!==N.containerInfo||b.stateNode.implementation!==N.implementation?(b=lc(N,T.mode,M),b.return=T,b):(b=n(b,N.children||[]),b.return=T,b)}function R(T,b,N,M,K){return b===null||b.tag!==7?(b=Gl(N,T.mode,M,K),b.return=T,b):(b=n(b,N),b.return=T,b)}function D(T,b,N){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=tc(""+b,T.mode,N),b.return=T,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case L:return N=du(b.type,b.key,b.props,null,T.mode,N),fn(N,b),N.return=T,N;case B:return b=lc(b,T.mode,N),b.return=T,b;case Oe:return b=Jl(b),D(T,b,N)}if(we(b)||We(b))return b=Gl(b,T.mode,N,null),b.return=T,b;if(typeof b.then=="function")return D(T,bu(b),N);if(b.$$typeof===J)return D(T,yu(T,b),N);xu(T,b)}return null}function j(T,b,N,M){var K=b!==null?b.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return K!==null?null:f(T,b,""+N,M);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case L:return N.key===K?g(T,b,N,M):null;case B:return N.key===K?C(T,b,N,M):null;case Oe:return N=Jl(N),j(T,b,N,M)}if(we(N)||We(N))return K!==null?null:R(T,b,N,M,null);if(typeof N.then=="function")return j(T,b,bu(N),M);if(N.$$typeof===J)return j(T,b,yu(T,N),M);xu(T,N)}return null}function A(T,b,N,M,K){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return T=T.get(N)||null,f(b,T,""+M,K);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case L:return T=T.get(M.key===null?N:M.key)||null,g(b,T,M,K);case B:return T=T.get(M.key===null?N:M.key)||null,C(b,T,M,K);case Oe:return M=Jl(M),A(T,b,N,M,K)}if(we(M)||We(M))return T=T.get(N)||null,R(b,T,M,K,null);if(typeof M.then=="function")return A(T,b,N,bu(M),K);if(M.$$typeof===J)return A(T,b,N,yu(b,M),K);xu(b,M)}return null}function X(T,b,N,M){for(var K=null,re=null,Z=b,ae=b=0,se=null;Z!==null&&ae<N.length;ae++){Z.index>ae?(se=Z,Z=null):se=Z.sibling;var fe=j(T,Z,N[ae],M);if(fe===null){Z===null&&(Z=se);break}e&&Z&&fe.alternate===null&&t(T,Z),b=u(fe,b,ae),re===null?K=fe:re.sibling=fe,re=fe,Z=se}if(ae===N.length)return l(T,Z),oe&&$t(T,ae),K;if(Z===null){for(;ae<N.length;ae++)Z=D(T,N[ae],M),Z!==null&&(b=u(Z,b,ae),re===null?K=Z:re.sibling=Z,re=Z);return oe&&$t(T,ae),K}for(Z=a(Z);ae<N.length;ae++)se=A(Z,T,ae,N[ae],M),se!==null&&(e&&se.alternate!==null&&Z.delete(se.key===null?ae:se.key),b=u(se,b,ae),re===null?K=se:re.sibling=se,re=se);return e&&Z.forEach(function(Ul){return t(T,Ul)}),oe&&$t(T,ae),K}function $(T,b,N,M){if(N==null)throw Error(o(151));for(var K=null,re=null,Z=b,ae=b=0,se=null,fe=N.next();Z!==null&&!fe.done;ae++,fe=N.next()){Z.index>ae?(se=Z,Z=null):se=Z.sibling;var Ul=j(T,Z,fe.value,M);if(Ul===null){Z===null&&(Z=se);break}e&&Z&&Ul.alternate===null&&t(T,Z),b=u(Ul,b,ae),re===null?K=Ul:re.sibling=Ul,re=Ul,Z=se}if(fe.done)return l(T,Z),oe&&$t(T,ae),K;if(Z===null){for(;!fe.done;ae++,fe=N.next())fe=D(T,fe.value,M),fe!==null&&(b=u(fe,b,ae),re===null?K=fe:re.sibling=fe,re=fe);return oe&&$t(T,ae),K}for(Z=a(Z);!fe.done;ae++,fe=N.next())fe=A(Z,T,ae,fe.value,M),fe!==null&&(e&&fe.alternate!==null&&Z.delete(fe.key===null?ae:fe.key),b=u(fe,b,ae),re===null?K=fe:re.sibling=fe,re=fe);return e&&Z.forEach(function(I0){return t(T,I0)}),oe&&$t(T,ae),K}function Se(T,b,N,M){if(typeof N=="object"&&N!==null&&N.type===U&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case L:e:{for(var K=N.key;b!==null;){if(b.key===K){if(K=N.type,K===U){if(b.tag===7){l(T,b.sibling),M=n(b,N.props.children),M.return=T,T=M;break e}}else if(b.elementType===K||typeof K=="object"&&K!==null&&K.$$typeof===Oe&&Jl(K)===b.type){l(T,b.sibling),M=n(b,N.props),fn(M,N),M.return=T,T=M;break e}l(T,b);break}else t(T,b);b=b.sibling}N.type===U?(M=Gl(N.props.children,T.mode,M,N.key),M.return=T,T=M):(M=du(N.type,N.key,N.props,null,T.mode,M),fn(M,N),M.return=T,T=M)}return s(T);case B:e:{for(K=N.key;b!==null;){if(b.key===K)if(b.tag===4&&b.stateNode.containerInfo===N.containerInfo&&b.stateNode.implementation===N.implementation){l(T,b.sibling),M=n(b,N.children||[]),M.return=T,T=M;break e}else{l(T,b);break}else t(T,b);b=b.sibling}M=lc(N,T.mode,M),M.return=T,T=M}return s(T);case Oe:return N=Jl(N),Se(T,b,N,M)}if(we(N))return X(T,b,N,M);if(We(N)){if(K=We(N),typeof K!="function")throw Error(o(150));return N=K.call(N),$(T,b,N,M)}if(typeof N.then=="function")return Se(T,b,bu(N),M);if(N.$$typeof===J)return Se(T,b,yu(T,N),M);xu(T,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,b!==null&&b.tag===6?(l(T,b.sibling),M=n(b,N),M.return=T,T=M):(l(T,b),M=tc(N,T.mode,M),M.return=T,T=M),s(T)):l(T,b)}return function(T,b,N,M){try{rn=0;var K=Se(T,b,N,M);return Ea=null,K}catch(Z){if(Z===Sa||Z===vu)throw Z;var re=ht(29,Z,null,T.mode);return re.lanes=M,re.return=T,re}finally{}}}var $l=Ar(!0),Rr=Ar(!1),vl=!1;function mc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function gl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(de&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=fu(e),hr(e,null,l),t}return ru(e,a,t,l),fu(e)}function dn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,So(e,l)}}function pc(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,u=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};u===null?n=u=s:u=u.next=s,l=l.next}while(l!==null);u===null?n=u=t:u=u.next=t}else n=u=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var vc=!1;function hn(){if(vc){var e=xa;if(e!==null)throw e}}function mn(e,t,l,a){vc=!1;var n=e.updateQueue;vl=!1;var u=n.firstBaseUpdate,s=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var g=f,C=g.next;g.next=null,s===null?u=C:s.next=C,s=g;var R=e.alternate;R!==null&&(R=R.updateQueue,f=R.lastBaseUpdate,f!==s&&(f===null?R.firstBaseUpdate=C:f.next=C,R.lastBaseUpdate=g))}if(u!==null){var D=n.baseState;s=0,R=C=g=null,f=u;do{var j=f.lane&-536870913,A=j!==f.lane;if(A?(ce&j)===j:(a&j)===j){j!==0&&j===ba&&(vc=!0),R!==null&&(R=R.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});e:{var X=e,$=f;j=t;var Se=l;switch($.tag){case 1:if(X=$.payload,typeof X=="function"){D=X.call(Se,D,j);break e}D=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=$.payload,j=typeof X=="function"?X.call(Se,D,j):X,j==null)break e;D=_({},D,j);break e;case 2:vl=!0}}j=f.callback,j!==null&&(e.flags|=64,A&&(e.flags|=8192),A=n.callbacks,A===null?n.callbacks=[j]:A.push(j))}else A={lane:j,tag:f.tag,payload:f.payload,callback:f.callback,next:null},R===null?(C=R=A,g=D):R=R.next=A,s|=j;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;A=f,f=A.next,A.next=null,n.lastBaseUpdate=A,n.shared.pending=null}}while(!0);R===null&&(g=D),n.baseState=g,n.firstBaseUpdate=C,n.lastBaseUpdate=R,u===null&&(n.shared.lanes=0),Tl|=s,e.lanes=s,e.memoizedState=D}}function Or(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Mr(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Or(l[e],t)}var _a=S(null),Su=S(0);function Dr(e,t){e=il,G(Su,e),G(_a,t),il=e|t.baseLanes}function gc(){G(Su,il),G(_a,_a.current)}function bc(){il=Su.current,w(_a),w(Su)}var mt=S(null),At=null;function xl(e){var t=e.alternate;G(De,De.current&1),G(mt,e),At===null&&(t===null||_a.current!==null||t.memoizedState!==null)&&(At=e)}function xc(e){G(De,De.current),G(mt,e),At===null&&(At=e)}function Ur(e){e.tag===22?(G(De,De.current),G(mt,e),At===null&&(At=e)):Sl()}function Sl(){G(De,De.current),G(mt,mt.current)}function yt(e){w(mt),At===e&&(At=null),w(De)}var De=S(0);function Eu(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ns(l)||Cs(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var It=0,le=null,be=null,ke=null,_u=!1,Ta=!1,Wl=!1,Tu=0,yn=0,za=null,Gy=0;function Ae(){throw Error(o(321))}function Sc(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!dt(e[l],t[l]))return!1;return!0}function Ec(e,t,l,a,n,u){return It=u,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?gf:kc,Wl=!1,u=l(a,n),Wl=!1,Ta&&(u=Hr(t,l,a,n)),wr(e),u}function wr(e){O.H=gn;var t=be!==null&&be.next!==null;if(It=0,ke=be=le=null,_u=!1,yn=0,za=null,t)throw Error(o(300));e===null||Le||(e=e.dependencies,e!==null&&mu(e)&&(Le=!0))}function Hr(e,t,l,a){le=e;var n=0;do{if(Ta&&(za=null),yn=0,Ta=!1,25<=n)throw Error(o(301));if(n+=1,ke=be=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=bf,u=t(l,a)}while(Ta);return u}function Qy(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?pn(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(le.flags|=1024),t}function _c(){var e=Tu!==0;return Tu=0,e}function Tc(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function zc(e){if(_u){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_u=!1}It=0,ke=be=le=null,Ta=!1,yn=Tu=0,za=null}function Pe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?le.memoizedState=ke=e:ke=ke.next=e,ke}function Ue(){if(be===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=ke===null?le.memoizedState:ke.next;if(t!==null)ke=t,be=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},ke===null?le.memoizedState=ke=e:ke=ke.next=e}return ke}function zu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pn(e){var t=yn;return yn+=1,za===null&&(za=[]),e=Nr(za,e,t),t=le,(ke===null?t.memoizedState:ke.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?gf:kc),e}function Nu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pn(e);if(e.$$typeof===J)return Ve(e)}throw Error(o(438,String(e)))}function Nc(e){var t=null,l=le.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=le.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=zu(),le.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]=Lt;return t.index++,l}function Pt(e,t){return typeof t=="function"?t(e):t}function Cu(e){var t=Ue();return Cc(t,be,e)}function Cc(e,t,l){var a=e.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=e.baseQueue,u=a.pending;if(u!==null){if(n!==null){var s=n.next;n.next=u.next,u.next=s}t.baseQueue=n=u,a.pending=null}if(u=e.baseState,n===null)e.memoizedState=u;else{t=n.next;var f=s=null,g=null,C=t,R=!1;do{var D=C.lane&-536870913;if(D!==C.lane?(ce&D)===D:(It&D)===D){var j=C.revertLane;if(j===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),D===ba&&(R=!0);else if((It&j)===j){C=C.next,j===ba&&(R=!0);continue}else D={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},g===null?(f=g=D,s=u):g=g.next=D,le.lanes|=j,Tl|=j;D=C.action,Wl&&l(u,D),u=C.hasEagerState?C.eagerState:l(u,D)}else j={lane:D,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},g===null?(f=g=j,s=u):g=g.next=j,le.lanes|=D,Tl|=D;C=C.next}while(C!==null&&C!==t);if(g===null?s=u:g.next=f,!dt(u,e.memoizedState)&&(Le=!0,R&&(l=xa,l!==null)))throw l;e.memoizedState=u,e.baseState=s,e.baseQueue=g,a.lastRenderedState=u}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function jc(e){var t=Ue(),l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,u=t.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do u=e(u,s.action),s=s.next;while(s!==n);dt(u,t.memoizedState)||(Le=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),l.lastRenderedState=u}return[u,a]}function kr(e,t,l){var a=le,n=Ue(),u=oe;if(u){if(l===void 0)throw Error(o(407));l=l()}else l=t();var s=!dt((be||n).memoizedState,l);if(s&&(n.memoizedState=l,Le=!0),n=n.queue,Oc(qr.bind(null,a,n,e),[e]),n.getSnapshot!==t||s||ke!==null&&ke.memoizedState.tag&1){if(a.flags|=2048,Na(9,{destroy:void 0},Br.bind(null,a,n,l,t),null),_e===null)throw Error(o(349));u||(It&127)!==0||Lr(a,t,l)}return l}function Lr(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=le.updateQueue,t===null?(t=zu(),le.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Br(e,t,l,a){t.value=l,t.getSnapshot=a,Yr(t)&&Gr(e)}function qr(e,t,l){return l(function(){Yr(t)&&Gr(e)})}function Yr(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!dt(e,l)}catch{return!0}}function Gr(e){var t=Yl(e,2);t!==null&&st(t,e,2)}function Ac(e){var t=Pe();if(typeof e=="function"){var l=e;if(e=l(),Wl){rl(!0);try{l()}finally{rl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function Qr(e,t,l,a){return e.baseState=l,Cc(e,be,typeof a=="function"?a:Pt)}function Xy(e,t,l,a,n){if(Ru(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){u.listeners.push(s)}};O.T!==null?l(!0):u.isTransition=!1,a(u),l=t.pending,l===null?(u.next=t.pending=u,Xr(t,u)):(u.next=l.next,t.pending=l.next=u)}}function Xr(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var u=O.T,s={};O.T=s;try{var f=l(n,a),g=O.S;g!==null&&g(s,f),Vr(e,t,f)}catch(C){Rc(e,t,C)}finally{u!==null&&s.types!==null&&(u.types=s.types),O.T=u}}else try{u=l(n,a),Vr(e,t,u)}catch(C){Rc(e,t,C)}}function Vr(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Zr(e,t,a)},function(a){return Rc(e,t,a)}):Zr(e,t,l)}function Zr(e,t,l){t.status="fulfilled",t.value=l,Jr(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Xr(e,l)))}function Rc(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Jr(t),t=t.next;while(t!==a)}e.action=null}function Jr(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Kr(e,t){return t}function $r(e,t){if(oe){var l=_e.formState;if(l!==null){e:{var a=le;if(oe){if(ze){t:{for(var n=ze,u=jt;n.nodeType!==8;){if(!u){n=null;break t}if(n=Rt(n.nextSibling),n===null){n=null;break t}}u=n.data,n=u==="F!"||u==="F"?n:null}if(n){ze=Rt(n.nextSibling),a=n.data==="F!";break e}}yl(a)}a=!1}a&&(t=l[0])}}return l=Pe(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Kr,lastRenderedState:t},l.queue=a,l=yf.bind(null,le,a),a.dispatch=l,a=Ac(!1),u=Hc.bind(null,le,!1,a.queue),a=Pe(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Xy.bind(null,le,n,u,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function Wr(e){var t=Ue();return Fr(t,be,e)}function Fr(e,t,l){if(t=Cc(e,t,Kr)[0],e=Cu(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=pn(t)}catch(s){throw s===Sa?vu:s}else a=t;t=Ue();var n=t.queue,u=n.dispatch;return l!==t.memoizedState&&(le.flags|=2048,Na(9,{destroy:void 0},Vy.bind(null,n,l),null)),[a,u,e]}function Vy(e,t){e.action=t}function Ir(e){var t=Ue(),l=be;if(l!==null)return Fr(t,l,e);Ue(),t=t.memoizedState,l=Ue();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Na(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=le.updateQueue,t===null&&(t=zu(),le.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 Pr(){return Ue().memoizedState}function ju(e,t,l,a){var n=Pe();le.flags|=e,n.memoizedState=Na(1|t,{destroy:void 0},l,a===void 0?null:a)}function Au(e,t,l,a){var n=Ue();a=a===void 0?null:a;var u=n.memoizedState.inst;be!==null&&a!==null&&Sc(a,be.memoizedState.deps)?n.memoizedState=Na(t,u,l,a):(le.flags|=e,n.memoizedState=Na(1|t,u,l,a))}function ef(e,t){ju(8390656,8,e,t)}function Oc(e,t){Au(2048,8,e,t)}function Zy(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=zu(),le.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function tf(e){var t=Ue().memoizedState;return Zy({ref:t,nextImpl:e}),function(){if((de&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function lf(e,t){return Au(4,2,e,t)}function af(e,t){return Au(4,4,e,t)}function nf(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 uf(e,t,l){l=l!=null?l.concat([e]):null,Au(4,4,nf.bind(null,t,e),l)}function Mc(){}function cf(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Sc(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function sf(e,t){var l=Ue();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Sc(t,a[1]))return a[0];if(a=e(),Wl){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a}function Dc(e,t,l){return l===void 0||(It&1073741824)!==0&&(ce&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=od(),le.lanes|=e,Tl|=e,l)}function of(e,t,l,a){return dt(l,t)?l:_a.current!==null?(e=Dc(e,l,a),dt(e,t)||(Le=!0),e):(It&42)===0||(It&1073741824)!==0&&(ce&261930)===0?(Le=!0,e.memoizedState=l):(e=od(),le.lanes|=e,Tl|=e,t)}function rf(e,t,l,a,n){var u=Y.p;Y.p=u!==0&&8>u?u:8;var s=O.T,f={};O.T=f,Hc(e,!1,t,l);try{var g=n(),C=O.S;if(C!==null&&C(f,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var R=Yy(g,a);vn(e,t,R,gt(e))}else vn(e,t,a,gt(e))}catch(D){vn(e,t,{then:function(){},status:"rejected",reason:D},gt())}finally{Y.p=u,s!==null&&f.types!==null&&(s.types=f.types),O.T=s}}function Jy(){}function Uc(e,t,l,a){if(e.tag!==5)throw Error(o(476));var n=ff(e).queue;rf(e,n,t,F,l===null?Jy:function(){return df(e),l(a)})}function ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function df(e){var t=ff(e);t.next===null&&(t=e.alternate.memoizedState),vn(e,t.next.queue,{},gt())}function wc(){return Ve(Un)}function hf(){return Ue().memoizedState}function mf(){return Ue().memoizedState}function Ky(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=gt();e=gl(l);var a=bl(t,e,l);a!==null&&(st(a,t,l),dn(a,t,l)),t={cache:rc()},e.payload=t;return}t=t.return}}function $y(e,t,l){var a=gt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ru(e)?pf(t,l):(l=Pi(e,t,l,a),l!==null&&(st(l,e,a),vf(l,t,a)))}function yf(e,t,l){var a=gt();vn(e,t,l,a)}function vn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ru(e))pf(t,n);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var s=t.lastRenderedState,f=u(s,l);if(n.hasEagerState=!0,n.eagerState=f,dt(f,s))return ru(e,t,n,0),_e===null&&ou(),!1}catch{}finally{}if(l=Pi(e,t,n,a),l!==null)return st(l,e,a),vf(l,t,a),!0}return!1}function Hc(e,t,l,a){if(a={lane:2,revertLane:ms(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ru(e)){if(t)throw Error(o(479))}else t=Pi(e,l,a,2),t!==null&&st(t,e,2)}function Ru(e){var t=e.alternate;return e===le||t!==null&&t===le}function pf(e,t){Ta=_u=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function vf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,So(e,l)}}var gn={readContext:Ve,use:Nu,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useLayoutEffect:Ae,useInsertionEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useSyncExternalStore:Ae,useId:Ae,useHostTransitionStatus:Ae,useFormState:Ae,useActionState:Ae,useOptimistic:Ae,useMemoCache:Ae,useCacheRefresh:Ae};gn.useEffectEvent=Ae;var gf={readContext:Ve,use:Nu,useCallback:function(e,t){return Pe().memoizedState=[e,t===void 0?null:t],e},useContext:Ve,useEffect:ef,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,ju(4194308,4,nf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var l=Pe();t=t===void 0?null:t;var a=e();if(Wl){rl(!0);try{e()}finally{rl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=Pe();if(l!==void 0){var n=l(t);if(Wl){rl(!0);try{l(t)}finally{rl(!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=$y.bind(null,le,e),[a.memoizedState,e]},useRef:function(e){var t=Pe();return e={current:e},t.memoizedState=e},useState:function(e){e=Ac(e);var t=e.queue,l=yf.bind(null,le,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Mc,useDeferredValue:function(e,t){var l=Pe();return Dc(l,e,t)},useTransition:function(){var e=Ac(!1);return e=rf.bind(null,le,e.queue,!0,!1),Pe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=le,n=Pe();if(oe){if(l===void 0)throw Error(o(407));l=l()}else{if(l=t(),_e===null)throw Error(o(349));(ce&127)!==0||Lr(a,t,l)}n.memoizedState=l;var u={value:l,getSnapshot:t};return n.queue=u,ef(qr.bind(null,a,u,e),[e]),a.flags|=2048,Na(9,{destroy:void 0},Br.bind(null,a,u,l,t),null),l},useId:function(){var e=Pe(),t=_e.identifierPrefix;if(oe){var l=Yt,a=qt;l=(a&~(1<<32-ft(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Tu++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Gy++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wc,useFormState:$r,useActionState:$r,useOptimistic:function(e){var t=Pe();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Hc.bind(null,le,!0,l),l.dispatch=t,[e,t]},useMemoCache:Nc,useCacheRefresh:function(){return Pe().memoizedState=Ky.bind(null,le)},useEffectEvent:function(e){var t=Pe(),l={impl:e};return t.memoizedState=l,function(){if((de&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},kc={readContext:Ve,use:Nu,useCallback:cf,useContext:Ve,useEffect:Oc,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:af,useMemo:sf,useReducer:Cu,useRef:Pr,useState:function(){return Cu(Pt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=Ue();return of(l,be.memoizedState,e,t)},useTransition:function(){var e=Cu(Pt)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:kr,useId:hf,useHostTransitionStatus:wc,useFormState:Wr,useActionState:Wr,useOptimistic:function(e,t){var l=Ue();return Qr(l,be,e,t)},useMemoCache:Nc,useCacheRefresh:mf};kc.useEffectEvent=tf;var bf={readContext:Ve,use:Nu,useCallback:cf,useContext:Ve,useEffect:Oc,useImperativeHandle:uf,useInsertionEffect:lf,useLayoutEffect:af,useMemo:sf,useReducer:jc,useRef:Pr,useState:function(){return jc(Pt)},useDebugValue:Mc,useDeferredValue:function(e,t){var l=Ue();return be===null?Dc(l,e,t):of(l,be.memoizedState,e,t)},useTransition:function(){var e=jc(Pt)[0],t=Ue().memoizedState;return[typeof e=="boolean"?e:pn(e),t]},useSyncExternalStore:kr,useId:hf,useHostTransitionStatus:wc,useFormState:Ir,useActionState:Ir,useOptimistic:function(e,t){var l=Ue();return be!==null?Qr(l,be,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Nc,useCacheRefresh:mf};bf.useEffectEvent=tf;function Lc(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:_({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Bc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=gt(),n=gl(a);n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(st(t,e,a),dn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=gt(),n=gl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=bl(e,n,a),t!==null&&(st(t,e,a),dn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=gt(),a=gl(l);a.tag=2,t!=null&&(a.callback=t),t=bl(e,a,l),t!==null&&(st(t,e,l),dn(t,e,l))}};function xf(e,t,l,a,n,u,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,s):t.prototype&&t.prototype.isPureReactComponent?!an(l,a)||!an(n,u):!0}function Sf(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&&Bc.enqueueReplaceState(t,t.state,null)}function Fl(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=_({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Ef(e){su(e)}function _f(e){console.error(e)}function Tf(e){su(e)}function Ou(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function qc(e,t,l){return l=gl(l),l.tag=3,l.payload={element:null},l.callback=function(){Ou(e,t)},l}function Nf(e){return e=gl(e),e.tag=3,e}function Cf(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(){zf(t,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){zf(t,l,a),typeof n!="function"&&(zl===null?zl=new Set([this]):zl.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function Wy(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ga(t,l,n,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return At===null?Qu():l.alternate===null&&Re===0&&(Re=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===gu?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),fs(e,a,n)),!1;case 22:return l.flags|=65536,a===gu?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),fs(e,a,n)),!1}throw Error(o(435,l.tag))}return fs(e,a,n),Qu(),!1}if(oe)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==uc&&(e=Error(o(422),{cause:a}),cn(zt(e,l)))):(a!==uc&&(t=Error(o(423),{cause:a}),cn(zt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=zt(a,l),n=qc(e.stateNode,a,n),pc(e,n),Re!==4&&(Re=2)),!1;var u=Error(o(520),{cause:a});if(u=zt(u,l),Nn===null?Nn=[u]:Nn.push(u),Re!==4&&(Re=2),t===null)return!0;a=zt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=qc(l.stateNode,a,e),pc(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"&&(zl===null||!zl.has(u))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Nf(n),Cf(n,e,l,a),pc(l,n),!1}l=l.return}while(l!==null);return!1}var Yc=Error(o(461)),Le=!1;function Ze(e,t,l,a){t.child=e===null?Rr(t,null,l,a):$l(t,e.child,l,a)}function jf(e,t,l,a,n){l=l.render;var u=t.ref;if("ref"in a){var s={};for(var f in a)f!=="ref"&&(s[f]=a[f])}else s=a;return Vl(t),a=Ec(e,t,l,s,u,n),f=_c(),e!==null&&!Le?(Tc(e,t,n),el(e,t,n)):(oe&&f&&ac(t),t.flags|=1,Ze(e,t,a,n),t.child)}function Af(e,t,l,a,n){if(e===null){var u=l.type;return typeof u=="function"&&!ec(u)&&u.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=u,Rf(e,t,u,a,n)):(e=du(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!$c(e,n)){var s=u.memoizedProps;if(l=l.compare,l=l!==null?l:an,l(s,a)&&e.ref===t.ref)return el(e,t,n)}return t.flags|=1,e=Kt(u,a),e.ref=t.ref,e.return=t,t.child=e}function Rf(e,t,l,a,n){if(e!==null){var u=e.memoizedProps;if(an(u,a)&&e.ref===t.ref)if(Le=!1,t.pendingProps=a=u,$c(e,n))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,el(e,t,n)}return Gc(e,t,l,a,n)}function Of(e,t,l,a){var n=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~u}else a=0,t.child=null;return Mf(e,t,u,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pu(t,u!==null?u.cachePool:null),u!==null?Dr(t,u):gc(),Ur(t);else return a=t.lanes=536870912,Mf(e,t,u!==null?u.baseLanes|l:l,l,a)}else u!==null?(pu(t,u.cachePool),Dr(t,u),Sl(),t.memoizedState=null):(e!==null&&pu(t,null),gc(),Sl());return Ze(e,t,n,l),t.child}function bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mf(e,t,l,a,n){var u=dc();return u=u===null?null:{parent:He._currentValue,pool:u},t.memoizedState={baseLanes:l,cachePool:u},e!==null&&pu(t,null),gc(),Ur(t),e!==null&&ga(e,t,a,!0),t.childLanes=n,null}function Mu(e,t){return t=Uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Df(e,t,l){return $l(t,e.child,null,l),e=Mu(t,t.pendingProps),e.flags|=2,yt(t),t.memoizedState=null,e}function Fy(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(a.mode==="hidden")return e=Mu(t,a),t.lanes=536870912,bn(null,e);if(xc(t),(e=ze)?(e=Vd(e,jt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=yr(e),l.return=t,t.child=l,Xe=t,ze=null)):e=null,e===null)throw yl(t);return t.lanes=536870912,null}return Mu(t,a)}var u=e.memoizedState;if(u!==null){var s=u.dehydrated;if(xc(t),n)if(t.flags&256)t.flags&=-257,t=Df(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Le||ga(e,t,l,!1),n=(l&e.childLanes)!==0,Le||n){if(a=_e,a!==null&&(s=Eo(a,l),s!==0&&s!==u.retryLane))throw u.retryLane=s,Yl(e,s),st(a,e,s),Yc;Qu(),t=Df(e,t,l)}else e=u.treeContext,ze=Rt(s.nextSibling),Xe=t,oe=!0,ml=null,jt=!1,e!==null&&gr(t,e),t=Mu(t,a),t.flags|=4096;return t}return e=Kt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Du(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Gc(e,t,l,a,n){return Vl(t),l=Ec(e,t,l,a,void 0,n),a=_c(),e!==null&&!Le?(Tc(e,t,n),el(e,t,n)):(oe&&a&&ac(t),t.flags|=1,Ze(e,t,l,n),t.child)}function Uf(e,t,l,a,n,u){return Vl(t),t.updateQueue=null,l=Hr(t,a,l,n),wr(e),a=_c(),e!==null&&!Le?(Tc(e,t,u),el(e,t,u)):(oe&&a&&ac(t),t.flags|=1,Ze(e,t,l,u),t.child)}function wf(e,t,l,a,n){if(Vl(t),t.stateNode===null){var u=ma,s=l.contextType;typeof s=="object"&&s!==null&&(u=Ve(s)),u=new l(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Bc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},mc(t),s=l.contextType,u.context=typeof s=="object"&&s!==null?Ve(s):ma,u.state=t.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Lc(t,l,s,a),u.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(s=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),s!==u.state&&Bc.enqueueReplaceState(u,u.state,null),mn(t,a,u,n),hn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var f=t.memoizedProps,g=Fl(l,f);u.props=g;var C=u.context,R=l.contextType;s=ma,typeof R=="object"&&R!==null&&(s=Ve(R));var D=l.getDerivedStateFromProps;R=typeof D=="function"||typeof u.getSnapshotBeforeUpdate=="function",f=t.pendingProps!==f,R||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f||C!==s)&&Sf(t,u,a,s),vl=!1;var j=t.memoizedState;u.state=j,mn(t,a,u,n),hn(),C=t.memoizedState,f||j!==C||vl?(typeof D=="function"&&(Lc(t,l,D,a),C=t.memoizedState),(g=vl||xf(t,l,g,a,j,C,s))?(R||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=C),u.props=a,u.state=C,u.context=s,a=g):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,yc(e,t),s=t.memoizedProps,R=Fl(l,s),u.props=R,D=t.pendingProps,j=u.context,C=l.contextType,g=ma,typeof C=="object"&&C!==null&&(g=Ve(C)),f=l.getDerivedStateFromProps,(C=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(s!==D||j!==g)&&Sf(t,u,a,g),vl=!1,j=t.memoizedState,u.state=j,mn(t,a,u,n),hn();var A=t.memoizedState;s!==D||j!==A||vl||e!==null&&e.dependencies!==null&&mu(e.dependencies)?(typeof f=="function"&&(Lc(t,l,f,a),A=t.memoizedState),(R=vl||xf(t,l,R,a,j,A,g)||e!==null&&e.dependencies!==null&&mu(e.dependencies))?(C||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,A,g),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,A,g)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=A),u.props=a,u.state=A,u.context=g,a=R):(typeof u.componentDidUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Du(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=$l(t,e.child,null,n),t.child=$l(t,null,l,n)):Ze(e,t,l,n),t.memoizedState=u.state,e=t.child):e=el(e,t,n),e}function Hf(e,t,l,a){return Ql(),t.flags|=256,Ze(e,t,l,a),t.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xc(e){return{baseLanes:e,cachePool:Tr()}}function Vc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=vt),e}function kf(e,t,l){var a=t.pendingProps,n=!1,u=(t.flags&128)!==0,s;if((s=u)||(s=e!==null&&e.memoizedState===null?!1:(De.current&2)!==0),s&&(n=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(n?xl(t):Sl(),(e=ze)?(e=Vd(e,jt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:hl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=yr(e),l.return=t,t.child=l,Xe=t,ze=null)):e=null,e===null)throw yl(t);return Cs(e)?t.lanes=32:t.lanes=536870912,null}var f=a.children;return a=a.fallback,n?(Sl(),n=t.mode,f=Uu({mode:"hidden",children:f},n),a=Gl(a,n,l,null),f.return=t,a.return=t,f.sibling=a,t.child=f,a=t.child,a.memoizedState=Xc(l),a.childLanes=Vc(e,s,l),t.memoizedState=Qc,bn(null,a)):(xl(t),Zc(t,f))}var g=e.memoizedState;if(g!==null&&(f=g.dehydrated,f!==null)){if(u)t.flags&256?(xl(t),t.flags&=-257,t=Jc(e,t,l)):t.memoizedState!==null?(Sl(),t.child=e.child,t.flags|=128,t=null):(Sl(),f=a.fallback,n=t.mode,a=Uu({mode:"visible",children:a.children},n),f=Gl(f,n,l,null),f.flags|=2,a.return=t,f.return=t,a.sibling=f,t.child=a,$l(t,e.child,null,l),a=t.child,a.memoizedState=Xc(l),a.childLanes=Vc(e,s,l),t.memoizedState=Qc,t=bn(null,a));else if(xl(t),Cs(f)){if(s=f.nextSibling&&f.nextSibling.dataset,s)var C=s.dgst;s=C,a=Error(o(419)),a.stack="",a.digest=s,cn({value:a,source:null,stack:null}),t=Jc(e,t,l)}else if(Le||ga(e,t,l,!1),s=(l&e.childLanes)!==0,Le||s){if(s=_e,s!==null&&(a=Eo(s,l),a!==0&&a!==g.retryLane))throw g.retryLane=a,Yl(e,a),st(s,e,a),Yc;Ns(f)||Qu(),t=Jc(e,t,l)}else Ns(f)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,ze=Rt(f.nextSibling),Xe=t,oe=!0,ml=null,jt=!1,e!==null&&gr(t,e),t=Zc(t,a.children),t.flags|=4096);return t}return n?(Sl(),f=a.fallback,n=t.mode,g=e.child,C=g.sibling,a=Kt(g,{mode:"hidden",children:a.children}),a.subtreeFlags=g.subtreeFlags&65011712,C!==null?f=Kt(C,f):(f=Gl(f,n,l,null),f.flags|=2),f.return=t,a.return=t,a.sibling=f,t.child=a,bn(null,a),a=t.child,f=e.child.memoizedState,f===null?f=Xc(l):(n=f.cachePool,n!==null?(g=He._currentValue,n=n.parent!==g?{parent:g,pool:g}:n):n=Tr(),f={baseLanes:f.baseLanes|l,cachePool:n}),a.memoizedState=f,a.childLanes=Vc(e,s,l),t.memoizedState=Qc,bn(e.child,a)):(xl(t),l=e.child,e=l.sibling,l=Kt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=l,t.memoizedState=null,l)}function Zc(e,t){return t=Uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uu(e,t){return e=ht(22,e,null,t),e.lanes=0,e}function Jc(e,t,l){return $l(t,e.child,null,l),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Lf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),sc(e.return,t,l)}function Kc(e,t,l,a,n,u){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:u}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=u)}function Bf(e,t,l){var a=t.pendingProps,n=a.revealOrder,u=a.tail;a=a.children;var s=De.current,f=(s&2)!==0;if(f?(s=s&1|2,t.flags|=128):s&=1,G(De,s),Ze(e,t,a,l),a=oe?un:0,!f&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lf(e,l,t);else if(e.tag===19)Lf(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&&Eu(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),Kc(t,!1,n,l,u,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Eu(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}Kc(t,!0,l,null,u,a);break;case"together":Kc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function el(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ga(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,l=Kt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Kt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function $c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mu(e)))}function Iy(e,t,l){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),pl(t,He,e.memoizedState.cache),Ql();break;case 27:case 5:Xa(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:pl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xc(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(xl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?kf(e,t,l):(xl(t),e=el(e,t,l),e!==null?e.sibling:null);xl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ga(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Bf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(De,De.current),a)break;return null;case 22:return t.lanes=0,Of(e,t,l,t.pendingProps);case 24:pl(t,He,e.memoizedState.cache)}return el(e,t,l)}function qf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!$c(e,l)&&(t.flags&128)===0)return Le=!1,Iy(e,t,l);Le=(e.flags&131072)!==0}else Le=!1,oe&&(t.flags&1048576)!==0&&vr(t,un,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Jl(t.elementType),t.type=e,typeof e=="function")ec(e)?(a=Fl(e,a),t.tag=1,t=wf(null,t,e,a,l)):(t.tag=0,t=Gc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ve){t.tag=11,t=jf(null,t,e,a,l);break e}else if(n===P){t.tag=14,t=Af(null,t,e,a,l);break e}}throw t=St(e)||e,Error(o(306,t,""))}}return t;case 0:return Gc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Fl(a,t.pendingProps),wf(e,t,a,n,l);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(o(387));a=t.pendingProps;var u=t.memoizedState;n=u.element,yc(e,t),mn(t,a,null,l);var s=t.memoizedState;if(a=s.cache,pl(t,He,a),a!==u.cache&&oc(t,[He],l,!0),hn(),a=s.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Hf(e,t,a,l);break e}else if(a!==n){n=zt(Error(o(424)),t),cn(n),t=Hf(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(ze=Rt(e.firstChild),Xe=t,oe=!0,ml=null,jt=!0,l=Rr(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),a===n){t=el(e,t,l);break e}Ze(e,t,a,l)}t=t.child}return t;case 26:return Du(e,t),e===null?(l=Fd(t.type,null,t.pendingProps,null))?t.memoizedState=l:oe||(l=t.type,e=t.pendingProps,a=Wu(ne.current).createElement(l),a[Qe]=t,a[lt]=e,Je(a,l,e),Ye(a),t.stateNode=a):t.memoizedState=Fd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xa(t),e===null&&oe&&(a=t.stateNode=Kd(t.type,t.pendingProps,ne.current),Xe=t,jt=!0,n=ze,Al(t.type)?(js=n,ze=Rt(a.firstChild)):ze=n),Ze(e,t,t.pendingProps.children,l),Du(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((n=a=ze)&&(a=j0(a,t.type,t.pendingProps,jt),a!==null?(t.stateNode=a,Xe=t,ze=Rt(a.firstChild),jt=!1,n=!0):n=!1),n||yl(t)),Xa(t),n=t.type,u=t.pendingProps,s=e!==null?e.memoizedProps:null,a=u.children,_s(n,u)?a=null:s!==null&&_s(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=Ec(e,t,Qy,null,null,l),Un._currentValue=n),Du(e,t),Ze(e,t,a,l),t.child;case 6:return e===null&&oe&&((e=l=ze)&&(l=A0(l,t.pendingProps,jt),l!==null?(t.stateNode=l,Xe=t,ze=null,e=!0):e=!1),e||yl(t)),null;case 13:return kf(e,t,l);case 4:return Ie(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$l(t,null,a,l):Ze(e,t,a,l),t.child;case 11:return jf(e,t,t.type,t.pendingProps,l);case 7:return Ze(e,t,t.pendingProps,l),t.child;case 8:return Ze(e,t,t.pendingProps.children,l),t.child;case 12:return Ze(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,pl(t,t.type,a.value),Ze(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,Vl(t),n=Ve(n),a=a(n),t.flags|=1,Ze(e,t,a,l),t.child;case 14:return Af(e,t,t.type,t.pendingProps,l);case 15:return Rf(e,t,t.type,t.pendingProps,l);case 19:return Bf(e,t,l);case 31:return Fy(e,t,l);case 22:return Of(e,t,l,t.pendingProps);case 24:return Vl(t),a=Ve(He),e===null?(n=dc(),n===null&&(n=_e,u=rc(),n.pooledCache=u,u.refCount++,u!==null&&(n.pooledCacheLanes|=l),n=u),t.memoizedState={parent:a,cache:n},mc(t),pl(t,He,n)):((e.lanes&l)!==0&&(yc(e,t),mn(t,null,null,l),hn()),n=e.memoizedState,u=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),pl(t,He,a)):(a=u.cache,pl(t,He,a),a!==n.cache&&oc(t,[He],l,!0))),Ze(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function tl(e){e.flags|=4}function Wc(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(hd())e.flags|=8192;else throw Kl=gu,hc}else e.flags&=-16777217}function Yf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lh(t))if(hd())e.flags|=8192;else throw Kl=gu,hc}function wu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?bo():536870912,e.lanes|=t,Ra|=t)}function xn(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Py(e,t,l){var a=t.pendingProps;switch(nc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ft(He),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(va(t)?tl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ic())),Ne(t),null;case 26:var n=t.type,u=t.memoizedState;return e===null?(tl(t),u!==null?(Ne(t),Yf(t,u)):(Ne(t),Wc(t,n,null,a,l))):u?u!==e.memoizedState?(tl(t),Ne(t),Yf(t,u)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&tl(t),Ne(t),Wc(t,n,e,a,l)),null;case 27:if(Zn(t),l=ne.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}e=V.current,va(t)?br(t):(e=Kd(n,a,l),t.stateNode=e,tl(t))}return Ne(t),null;case 5:if(Zn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(!a){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(u=V.current,va(t))br(t);else{var s=Wu(ne.current);switch(u){case 1:u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":u=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":u=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":u=s.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}u[Qe]=t,u[lt]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)u.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=u;e:switch(Je(u,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&tl(t)}}return Ne(t),Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&tl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(o(166));if(e=ne.current,va(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=Xe,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Qe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||kd(e.nodeValue,l)),e||yl(t,!0)}else e=Wu(e).createTextNode(a),e[Qe]=t,t.stateNode=e}return Ne(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=va(t),l!==null){if(e===null){if(!a)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Qe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else l=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(yt(t),t):(yt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ne(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=va(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(o(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Qe]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),n=!1}else n=ic(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(yt(t),t):(yt(t),null)}return yt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),wu(t,t.updateQueue),Ne(t),null);case 4:return Me(),e===null&&gs(t.stateNode.containerInfo),Ne(t),null;case 10:return Ft(t.type),Ne(t),null;case 19:if(w(De),a=t.memoizedState,a===null)return Ne(t),null;if(n=(t.flags&128)!==0,u=a.rendering,u===null)if(n)xn(a,!1);else{if(Re!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Eu(e),u!==null){for(t.flags|=128,xn(a,!1),e=u.updateQueue,t.updateQueue=e,wu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)mr(l,e),l=l.sibling;return G(De,De.current&1|2),oe&&$t(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ot()>qu&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Eu(u),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,wu(t,e),xn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!oe)return Ne(t),null}else 2*ot()-a.renderingStartTime>qu&&l!==536870912&&(t.flags|=128,n=!0,xn(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=ot(),e.sibling=null,l=De.current,G(De,n?l&1|2:l&1),oe&&$t(t,a.treeForkCount),e):(Ne(t),null);case 22:case 23:return yt(t),bc(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),l=t.updateQueue,l!==null&&wu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&w(Zl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Ft(He),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function e0(e,t){switch(nc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ft(He),Me(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Zn(t),null;case 31:if(t.memoizedState!==null){if(yt(t),t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(yt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(De),null;case 4:return Me(),null;case 10:return Ft(t.type),null;case 22:case 23:return yt(t),bc(),e!==null&&w(Zl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ft(He),null;case 25:return null;default:return null}}function Gf(e,t){switch(nc(t),t.tag){case 3:Ft(He),Me();break;case 26:case 27:case 5:Zn(t);break;case 4:Me();break;case 31:t.memoizedState!==null&&yt(t);break;case 13:yt(t);break;case 19:w(De);break;case 10:Ft(t.type);break;case 22:case 23:yt(t),bc(),e!==null&&w(Zl);break;case 24:Ft(He)}}function Sn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var u=l.create,s=l.inst;a=u(),s.destroy=a}l=l.next}while(l!==n)}}catch(f){pe(t,t.return,f)}}function El(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){var s=a.inst,f=s.destroy;if(f!==void 0){s.destroy=void 0,n=t;var g=l,C=f;try{C()}catch(R){pe(n,g,R)}}}a=a.next}while(a!==u)}}catch(R){pe(t,t.return,R)}}function Qf(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Mr(t,l)}catch(a){pe(e,e.return,a)}}}function Xf(e,t,l){l.props=Fl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){pe(e,t,a)}}function En(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){pe(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){pe(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){pe(e,t,n)}else l.current=null}function Vf(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){pe(e,e.return,n)}}function Fc(e,t,l){try{var a=e.stateNode;E0(a,e.type,l,t),a[lt]=t}catch(n){pe(e,e.return,n)}}function Zf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Al(e.type)||e.tag===4}function Ic(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Al(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Zt));else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Pc(e,t,l),e=e.sibling;e!==null;)Pc(e,t,l),e=e.sibling}function Hu(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Al(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Hu(e,t,l),e=e.sibling;e!==null;)Hu(e,t,l),e=e.sibling}function Jf(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Je(t,a,l),t[Qe]=e,t[lt]=l}catch(u){pe(e,e.return,u)}}var ll=!1,Be=!1,es=!1,Kf=typeof WeakSet=="function"?WeakSet:Set,Ge=null;function t0(e,t){if(e=e.containerInfo,Ss=ai,e=ur(e),Ji(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var s=0,f=-1,g=-1,C=0,R=0,D=e,j=null;t:for(;;){for(var A;D!==l||n!==0&&D.nodeType!==3||(f=s+n),D!==u||a!==0&&D.nodeType!==3||(g=s+a),D.nodeType===3&&(s+=D.nodeValue.length),(A=D.firstChild)!==null;)j=D,D=A;for(;;){if(D===e)break t;if(j===l&&++C===n&&(f=s),j===u&&++R===a&&(g=s),(A=D.nextSibling)!==null)break;D=j,j=D.parentNode}D=A}l=f===-1||g===-1?null:{start:f,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(Es={focusedElem:e,selectionRange:l},ai=!1,Ge=t;Ge!==null;)if(t=Ge,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ge=e;else for(;Ge!==null;){switch(t=Ge,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,l=t,n=u.memoizedProps,u=u.memoizedState,a=l.stateNode;try{var X=Fl(l.type,n);e=a.getSnapshotBeforeUpdate(X,u),a.__reactInternalSnapshotBeforeUpdate=e}catch($){pe(l,l.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)zs(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ge=e;break}Ge=t.return}}function $f(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:nl(e,l),a&4&&Sn(5,l);break;case 1:if(nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(s){pe(l,l.return,s)}else{var n=Fl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){pe(l,l.return,s)}}a&64&&Qf(l),a&512&&En(l,l.return);break;case 3:if(nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Mr(e,t)}catch(s){pe(l,l.return,s)}}break;case 27:t===null&&a&4&&Jf(l);case 26:case 5:nl(e,l),t===null&&a&4&&Vf(l),a&512&&En(l,l.return);break;case 12:nl(e,l);break;case 31:nl(e,l),a&4&&If(e,l);break;case 13:nl(e,l),a&4&&Pf(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=r0.bind(null,l),R0(e,l))));break;case 22:if(a=l.memoizedState!==null||ll,!a){t=t!==null&&t.memoizedState!==null||Be,n=ll;var u=Be;ll=a,(Be=t)&&!u?ul(e,l,(l.subtreeFlags&8772)!==0):nl(e,l),ll=n,Be=u}break;case 30:break;default:nl(e,l)}}function Wf(e){var t=e.alternate;t!==null&&(e.alternate=null,Wf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ri(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 Ce=null,nt=!1;function al(e,t,l){for(l=l.child;l!==null;)Ff(e,t,l),l=l.sibling}function Ff(e,t,l){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Va,l)}catch{}switch(l.tag){case 26:Be||Gt(l,t),al(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Be||Gt(l,t);var a=Ce,n=nt;Al(l.type)&&(Ce=l.stateNode,nt=!1),al(e,t,l),On(l.stateNode),Ce=a,nt=n;break;case 5:Be||Gt(l,t);case 6:if(a=Ce,n=nt,Ce=null,al(e,t,l),Ce=a,nt=n,Ce!==null)if(nt)try{(Ce.nodeType===9?Ce.body:Ce.nodeName==="HTML"?Ce.ownerDocument.body:Ce).removeChild(l.stateNode)}catch(u){pe(l,t,u)}else try{Ce.removeChild(l.stateNode)}catch(u){pe(l,t,u)}break;case 18:Ce!==null&&(nt?(e=Ce,Qd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),La(e)):Qd(Ce,l.stateNode));break;case 4:a=Ce,n=nt,Ce=l.stateNode.containerInfo,nt=!0,al(e,t,l),Ce=a,nt=n;break;case 0:case 11:case 14:case 15:El(2,l,t),Be||El(4,l,t),al(e,t,l);break;case 1:Be||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Xf(l,t,a)),al(e,t,l);break;case 21:al(e,t,l);break;case 22:Be=(a=Be)||l.memoizedState!==null,al(e,t,l),Be=a;break;default:al(e,t,l)}}function If(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{La(e)}catch(l){pe(t,t.return,l)}}}function Pf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{La(e)}catch(l){pe(t,t.return,l)}}function l0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kf),t;default:throw Error(o(435,e.tag))}}function ku(e,t){var l=l0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=f0.bind(null,e,a);a.then(n,n)}})}function ut(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],u=e,s=t,f=s;e:for(;f!==null;){switch(f.tag){case 27:if(Al(f.type)){Ce=f.stateNode,nt=!1;break e}break;case 5:Ce=f.stateNode,nt=!1;break e;case 3:case 4:Ce=f.stateNode.containerInfo,nt=!0;break e}f=f.return}if(Ce===null)throw Error(o(160));Ff(u,s,n),Ce=null,nt=!1,u=n.alternate,u!==null&&(u.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ed(t,e),t=t.sibling}var Ut=null;function ed(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ut(t,e),it(e),a&4&&(El(3,e,e.return),Sn(3,e),El(5,e,e.return));break;case 1:ut(t,e),it(e),a&512&&(Be||l===null||Gt(l,l.return)),a&64&&ll&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ut;if(ut(t,e),it(e),a&512&&(Be||l===null||Gt(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[Ka]||u[Qe]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=n.createElement(a),n.head.insertBefore(u,n.querySelector("head > title"))),Je(u,a,l),u[Qe]=e,Ye(u),a=u;break e;case"link":var s=eh("link","href",n).get(a+(l.href||""));if(s){for(var f=0;f<s.length;f++)if(u=s[f],u.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&u.getAttribute("rel")===(l.rel==null?null:l.rel)&&u.getAttribute("title")===(l.title==null?null:l.title)&&u.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){s.splice(f,1);break t}}u=n.createElement(a),Je(u,a,l),n.head.appendChild(u);break;case"meta":if(s=eh("meta","content",n).get(a+(l.content||""))){for(f=0;f<s.length;f++)if(u=s[f],u.getAttribute("content")===(l.content==null?null:""+l.content)&&u.getAttribute("name")===(l.name==null?null:l.name)&&u.getAttribute("property")===(l.property==null?null:l.property)&&u.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&u.getAttribute("charset")===(l.charSet==null?null:l.charSet)){s.splice(f,1);break t}}u=n.createElement(a),Je(u,a,l),n.head.appendChild(u);break;default:throw Error(o(468,a))}u[Qe]=e,Ye(u),a=u}e.stateNode=a}else th(n,e.type,e.stateNode);else e.stateNode=Pd(n,a,e.memoizedProps);else u!==a?(u===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):u.count--,a===null?th(n,e.type,e.stateNode):Pd(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Fc(e,e.memoizedProps,l.memoizedProps)}break;case 27:ut(t,e),it(e),a&512&&(Be||l===null||Gt(l,l.return)),l!==null&&a&4&&Fc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ut(t,e),it(e),a&512&&(Be||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{ca(n,"")}catch(X){pe(e,e.return,X)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,Fc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(es=!0);break;case 6:if(ut(t,e),it(e),a&4){if(e.stateNode===null)throw Error(o(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(X){pe(e,e.return,X)}}break;case 3:if(Pu=null,n=Ut,Ut=Fu(t.containerInfo),ut(t,e),Ut=n,it(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{La(t.containerInfo)}catch(X){pe(e,e.return,X)}es&&(es=!1,td(e));break;case 4:a=Ut,Ut=Fu(e.stateNode.containerInfo),ut(t,e),it(e),Ut=a;break;case 12:ut(t,e),it(e);break;case 31:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 13:ut(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Bu=ot()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 22:n=e.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,C=ll,R=Be;if(ll=C||n,Be=R||g,ut(t,e),Be=R,ll=C,it(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||g||ll||Be||Il(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){g=l=t;try{if(u=g.stateNode,n)s=u.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{f=g.stateNode;var D=g.memoizedProps.style,j=D!=null&&D.hasOwnProperty("display")?D.display:null;f.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(X){pe(g,g.return,X)}}}else if(t.tag===6){if(l===null){g=t;try{g.stateNode.nodeValue=n?"":g.memoizedProps}catch(X){pe(g,g.return,X)}}}else if(t.tag===18){if(l===null){g=t;try{var A=g.stateNode;n?Xd(A,!0):Xd(g.stateNode,!1)}catch(X){pe(g,g.return,X)}}}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,ku(e,l))));break;case 19:ut(t,e),it(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ku(e,a)));break;case 30:break;case 21:break;default:ut(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Zf(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,u=Ic(e);Hu(e,u,n);break;case 5:var s=l.stateNode;l.flags&32&&(ca(s,""),l.flags&=-33);var f=Ic(e);Hu(e,f,s);break;case 3:case 4:var g=l.stateNode.containerInfo,C=Ic(e);Pc(e,C,g);break;default:throw Error(o(161))}}catch(R){pe(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function td(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;td(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$f(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:El(4,t,t.return),Il(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Xf(t,t.return,l),Il(t);break;case 27:On(t.stateNode);case 26:case 5:Gt(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,u=t,s=u.flags;switch(u.tag){case 0:case 11:case 15:ul(n,u,l),Sn(4,u);break;case 1:if(ul(n,u,l),a=u,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){pe(a,a.return,C)}if(a=u,n=a.updateQueue,n!==null){var f=a.stateNode;try{var g=n.shared.hiddenCallbacks;if(g!==null)for(n.shared.hiddenCallbacks=null,n=0;n<g.length;n++)Or(g[n],f)}catch(C){pe(a,a.return,C)}}l&&s&64&&Qf(u),En(u,u.return);break;case 27:Jf(u);case 26:case 5:ul(n,u,l),l&&a===null&&s&4&&Vf(u),En(u,u.return);break;case 12:ul(n,u,l);break;case 31:ul(n,u,l),l&&s&4&&If(n,u);break;case 13:ul(n,u,l),l&&s&4&&Pf(n,u);break;case 22:u.memoizedState===null&&ul(n,u,l),En(u,u.return);break;case 30:break;default:ul(n,u,l)}t=t.sibling}}function ts(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&sn(l))}function ls(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e))}function wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ld(e,t,l,a),t=t.sibling}function ld(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:wt(e,t,l,a),n&2048&&Sn(9,t);break;case 1:wt(e,t,l,a);break;case 3:wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sn(e)));break;case 12:if(n&2048){wt(e,t,l,a),e=t.stateNode;try{var u=t.memoizedProps,s=u.id,f=u.onPostCommit;typeof f=="function"&&f(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(g){pe(t,t.return,g)}}else wt(e,t,l,a);break;case 31:wt(e,t,l,a);break;case 13:wt(e,t,l,a);break;case 23:break;case 22:u=t.stateNode,s=t.alternate,t.memoizedState!==null?u._visibility&2?wt(e,t,l,a):_n(e,t):u._visibility&2?wt(e,t,l,a):(u._visibility|=2,Ca(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&ts(s,t);break;case 24:wt(e,t,l,a),n&2048&&ls(t.alternate,t);break;default:wt(e,t,l,a)}}function Ca(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,s=t,f=l,g=a,C=s.flags;switch(s.tag){case 0:case 11:case 15:Ca(u,s,f,g,n),Sn(8,s);break;case 23:break;case 22:var R=s.stateNode;s.memoizedState!==null?R._visibility&2?Ca(u,s,f,g,n):_n(u,s):(R._visibility|=2,Ca(u,s,f,g,n)),n&&C&2048&&ts(s.alternate,s);break;case 24:Ca(u,s,f,g,n),n&&C&2048&&ls(s.alternate,s);break;default:Ca(u,s,f,g,n)}t=t.sibling}}function _n(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:_n(l,a),n&2048&&ts(a.alternate,a);break;case 24:_n(l,a),n&2048&&ls(a.alternate,a);break;default:_n(l,a)}t=t.sibling}}var Tn=8192;function ja(e,t,l){if(e.subtreeFlags&Tn)for(e=e.child;e!==null;)ad(e,t,l),e=e.sibling}function ad(e,t,l){switch(e.tag){case 26:ja(e,t,l),e.flags&Tn&&e.memoizedState!==null&&G0(l,Ut,e.memoizedState,e.memoizedProps);break;case 5:ja(e,t,l);break;case 3:case 4:var a=Ut;Ut=Fu(e.stateNode.containerInfo),ja(e,t,l),Ut=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Tn,Tn=16777216,ja(e,t,l),Tn=a):ja(e,t,l));break;default:ja(e,t,l)}}function nd(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 zn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ge=a,id(a,e)}nd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ud(e),e=e.sibling}function ud(e){switch(e.tag){case 0:case 11:case 15:zn(e),e.flags&2048&&El(9,e,e.return);break;case 3:zn(e);break;case 12:zn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lu(e)):zn(e);break;default:zn(e)}}function Lu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ge=a,id(a,e)}nd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:El(8,t,t.return),Lu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Lu(t));break;default:Lu(t)}e=e.sibling}}function id(e,t){for(;Ge!==null;){var l=Ge;switch(l.tag){case 0:case 11:case 15:El(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:sn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ge=a;else e:for(l=e;Ge!==null;){a=Ge;var n=a.sibling,u=a.return;if(Wf(a),a===l){Ge=null;break e}if(n!==null){n.return=u,Ge=n;break e}Ge=u}}}var a0={getCacheForType:function(e){var t=Ve(He),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ve(He).controller.signal}},n0=typeof WeakMap=="function"?WeakMap:Map,de=0,_e=null,ue=null,ce=0,ye=0,pt=null,_l=!1,Aa=!1,as=!1,il=0,Re=0,Tl=0,Pl=0,ns=0,vt=0,Ra=0,Nn=null,ct=null,us=!1,Bu=0,cd=0,qu=1/0,Yu=null,zl=null,qe=0,Nl=null,Oa=null,cl=0,is=0,cs=null,sd=null,Cn=0,ss=null;function gt(){return(de&2)!==0&&ce!==0?ce&-ce:O.T!==null?ms():_o()}function od(){if(vt===0)if((ce&536870912)===0||oe){var e=$n;$n<<=1,($n&3932160)===0&&($n=262144),vt=e}else vt=536870912;return e=mt.current,e!==null&&(e.flags|=32),vt}function st(e,t,l){(e===_e&&(ye===2||ye===9)||e.cancelPendingCommit!==null)&&(Ma(e,0),Cl(e,ce,vt,!1)),Ja(e,l),((de&2)===0||e!==_e)&&(e===_e&&((de&2)===0&&(Pl|=l),Re===4&&Cl(e,ce,vt,!1)),Qt(e))}function rd(e,t,l){if((de&6)!==0)throw Error(o(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Za(e,t),n=a?c0(e,t):rs(e,t,!0),u=a;do{if(n===0){Aa&&!a&&Cl(e,t,0,!1);break}else{if(l=e.current.alternate,u&&!u0(l)){n=rs(e,t,!1),u=!1;continue}if(n===2){if(u=t,e.errorRecoveryDisabledLanes&u)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var f=e;n=Nn;var g=f.current.memoizedState.isDehydrated;if(g&&(Ma(f,s).flags|=256),s=rs(f,s,!1),s!==2){if(as&&!g){f.errorRecoveryDisabledLanes|=u,Pl|=u,n=4;break e}u=ct,ct=n,u!==null&&(ct===null?ct=u:ct.push.apply(ct,u))}n=s}if(u=!1,n!==2)continue}}if(n===1){Ma(e,0),Cl(e,t,0,!0);break}e:{switch(a=e,u=n,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Cl(a,t,vt,!_l);break e;case 2:ct=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(n=Bu+300-ot(),10<n)){if(Cl(a,t,vt,!_l),Fn(a,0,!0)!==0)break e;cl=t,a.timeoutHandle=Yd(fd.bind(null,a,l,ct,Yu,us,t,vt,Pl,Ra,_l,u,"Throttled",-0,0),n);break e}fd(a,l,ct,Yu,us,t,vt,Pl,Ra,_l,u,null,-0,0)}}break}while(!0);Qt(e)}function fd(e,t,l,a,n,u,s,f,g,C,R,D,j,A){if(e.timeoutHandle=-1,D=t.subtreeFlags,D&8192||(D&16785408)===16785408){D={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},ad(t,u,D);var X=(u&62914560)===u?Bu-ot():(u&4194048)===u?cd-ot():0;if(X=Q0(D,X),X!==null){cl=u,e.cancelPendingCommit=X(bd.bind(null,e,t,u,l,a,n,s,f,g,R,D,null,j,A)),Cl(e,u,s,!C);return}}bd(e,t,u,l,a,n,s,f,g)}function u0(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(!dt(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 Cl(e,t,l,a){t&=~ns,t&=~Pl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var u=31-ft(n),s=1<<u;a[u]=-1,n&=~s}l!==0&&xo(e,l,t)}function Gu(){return(de&6)===0?(jn(0),!1):!0}function os(){if(ue!==null){if(ye===0)var e=ue.return;else e=ue,Wt=Xl=null,zc(e),Ea=null,rn=0,e=ue;for(;e!==null;)Gf(e.alternate,e),e=e.return;ue=null}}function Ma(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,z0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cl=0,os(),_e=e,ue=l=Kt(e.current,null),ce=t,ye=0,pt=null,_l=!1,Aa=Za(e,t),as=!1,Ra=vt=ns=Pl=Tl=Re=0,ct=Nn=null,us=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-ft(a),u=1<<n;t|=e[n],a&=~u}return il=t,ou(),l}function dd(e,t){le=null,O.H=gn,t===Sa||t===vu?(t=Cr(),ye=3):t===hc?(t=Cr(),ye=4):ye=t===Yc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,pt=t,ue===null&&(Re=1,Ou(e,zt(t,e.current)))}function hd(){var e=mt.current;return e===null?!0:(ce&4194048)===ce?At===null:(ce&62914560)===ce||(ce&536870912)!==0?e===At:!1}function md(){var e=O.H;return O.H=gn,e===null?gn:e}function yd(){var e=O.A;return O.A=a0,e}function Qu(){Re=4,_l||(ce&4194048)!==ce&&mt.current!==null||(Aa=!0),(Tl&134217727)===0&&(Pl&134217727)===0||_e===null||Cl(_e,ce,vt,!1)}function rs(e,t,l){var a=de;de|=2;var n=md(),u=yd();(_e!==e||ce!==t)&&(Yu=null,Ma(e,t)),t=!1;var s=Re;e:do try{if(ye!==0&&ue!==null){var f=ue,g=pt;switch(ye){case 8:os(),s=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var C=ye;if(ye=0,pt=null,Da(e,f,g,C),l&&Aa){s=0;break e}break;default:C=ye,ye=0,pt=null,Da(e,f,g,C)}}i0(),s=Re;break}catch(R){dd(e,R)}while(!0);return t&&e.shellSuspendCounter++,Wt=Xl=null,de=a,O.H=n,O.A=u,ue===null&&(_e=null,ce=0,ou()),s}function i0(){for(;ue!==null;)pd(ue)}function c0(e,t){var l=de;de|=2;var a=md(),n=yd();_e!==e||ce!==t?(Yu=null,qu=ot()+500,Ma(e,t)):Aa=Za(e,t);e:do try{if(ye!==0&&ue!==null){t=ue;var u=pt;t:switch(ye){case 1:ye=0,pt=null,Da(e,t,u,1);break;case 2:case 9:if(zr(u)){ye=0,pt=null,vd(t);break}t=function(){ye!==2&&ye!==9||_e!==e||(ye=7),Qt(e)},u.then(t,t);break e;case 3:ye=7;break e;case 4:ye=5;break e;case 7:zr(u)?(ye=0,pt=null,vd(t)):(ye=0,pt=null,Da(e,t,u,7));break;case 5:var s=null;switch(ue.tag){case 26:s=ue.memoizedState;case 5:case 27:var f=ue;if(s?lh(s):f.stateNode.complete){ye=0,pt=null;var g=f.sibling;if(g!==null)ue=g;else{var C=f.return;C!==null?(ue=C,Xu(C)):ue=null}break t}}ye=0,pt=null,Da(e,t,u,5);break;case 6:ye=0,pt=null,Da(e,t,u,6);break;case 8:os(),Re=6;break e;default:throw Error(o(462))}}s0();break}catch(R){dd(e,R)}while(!0);return Wt=Xl=null,O.H=a,O.A=n,de=l,ue!==null?0:(_e=null,ce=0,ou(),Re)}function s0(){for(;ue!==null&&!Om();)pd(ue)}function pd(e){var t=qf(e.alternate,e,il);e.memoizedProps=e.pendingProps,t===null?Xu(e):ue=t}function vd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Uf(l,t,t.pendingProps,t.type,void 0,ce);break;case 11:t=Uf(l,t,t.pendingProps,t.type.render,t.ref,ce);break;case 5:zc(t);default:Gf(l,t),t=ue=mr(t,il),t=qf(l,t,il)}e.memoizedProps=e.pendingProps,t===null?Xu(e):ue=t}function Da(e,t,l,a){Wt=Xl=null,zc(t),Ea=null,rn=0;var n=t.return;try{if(Wy(e,n,t,l,ce)){Re=1,Ou(e,zt(l,e.current)),ue=null;return}}catch(u){if(n!==null)throw ue=n,u;Re=1,Ou(e,zt(l,e.current)),ue=null;return}t.flags&32768?(oe||a===1?e=!0:Aa||(ce&536870912)!==0?e=!1:(_l=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),gd(t,e)):Xu(t)}function Xu(e){var t=e;do{if((t.flags&32768)!==0){gd(t,_l);return}e=t.return;var l=Py(t.alternate,t,il);if(l!==null){ue=l;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Re===0&&(Re=5)}function gd(e,t){do{var l=e0(e.alternate,e);if(l!==null){l.flags&=32767,ue=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=l}while(e!==null);Re=6,ue=null}function bd(e,t,l,a,n,u,s,f,g){e.cancelPendingCommit=null;do Vu();while(qe!==0);if((de&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=Ii,Ym(e,l,u,s,f,g),e===_e&&(ue=_e=null,ce=0),Oa=t,Nl=e,cl=l,is=u,cs=n,sd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,d0(Jn,function(){return Td(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=Y.p,Y.p=2,s=de,de|=4;try{t0(e,t,l)}finally{de=s,Y.p=n,O.T=a}}qe=1,xd(),Sd(),Ed()}}function xd(){if(qe===1){qe=0;var e=Nl,t=Oa,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=Y.p;Y.p=2;var n=de;de|=4;try{ed(t,e);var u=Es,s=ur(e.containerInfo),f=u.focusedElem,g=u.selectionRange;if(s!==f&&f&&f.ownerDocument&&nr(f.ownerDocument.documentElement,f)){if(g!==null&&Ji(f)){var C=g.start,R=g.end;if(R===void 0&&(R=C),"selectionStart"in f)f.selectionStart=C,f.selectionEnd=Math.min(R,f.value.length);else{var D=f.ownerDocument||document,j=D&&D.defaultView||window;if(j.getSelection){var A=j.getSelection(),X=f.textContent.length,$=Math.min(g.start,X),Se=g.end===void 0?$:Math.min(g.end,X);!A.extend&&$>Se&&(s=Se,Se=$,$=s);var T=ar(f,$),b=ar(f,Se);if(T&&b&&(A.rangeCount!==1||A.anchorNode!==T.node||A.anchorOffset!==T.offset||A.focusNode!==b.node||A.focusOffset!==b.offset)){var N=D.createRange();N.setStart(T.node,T.offset),A.removeAllRanges(),$>Se?(A.addRange(N),A.extend(b.node,b.offset)):(N.setEnd(b.node,b.offset),A.addRange(N))}}}}for(D=[],A=f;A=A.parentNode;)A.nodeType===1&&D.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<D.length;f++){var M=D[f];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}ai=!!Ss,Es=Ss=null}finally{de=n,Y.p=a,O.T=l}}e.current=t,qe=2}}function Sd(){if(qe===2){qe=0;var e=Nl,t=Oa,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=Y.p;Y.p=2;var n=de;de|=4;try{$f(e,t.alternate,t)}finally{de=n,Y.p=a,O.T=l}}qe=3}}function Ed(){if(qe===4||qe===3){qe=0,Mm();var e=Nl,t=Oa,l=cl,a=sd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?qe=5:(qe=0,Oa=Nl=null,_d(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(zl=null),ji(l),t=t.stateNode,rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Va,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=Y.p,Y.p=2,O.T=null;try{for(var u=e.onRecoverableError,s=0;s<a.length;s++){var f=a[s];u(f.value,{componentStack:f.stack})}}finally{O.T=t,Y.p=n}}(cl&3)!==0&&Vu(),Qt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===ss?Cn++:(Cn=0,ss=e):Cn=0,jn(0)}}function _d(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sn(t)))}function Vu(){return xd(),Sd(),Ed(),Td()}function Td(){if(qe!==5)return!1;var e=Nl,t=is;is=0;var l=ji(cl),a=O.T,n=Y.p;try{Y.p=32>l?32:l,O.T=null,l=cs,cs=null;var u=Nl,s=cl;if(qe=0,Oa=Nl=null,cl=0,(de&6)!==0)throw Error(o(331));var f=de;if(de|=4,ud(u.current),ld(u,u.current,s,l),de=f,jn(0,!1),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Va,u)}catch{}return!0}finally{Y.p=n,O.T=a,_d(e,t)}}function zd(e,t,l){t=zt(l,t),t=qc(e.stateNode,t,2),e=bl(e,t,2),e!==null&&(Ja(e,2),Qt(e))}function pe(e,t,l){if(e.tag===3)zd(e,e,l);else for(;t!==null;){if(t.tag===3){zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zl===null||!zl.has(a))){e=zt(l,e),l=Nf(2),a=bl(t,l,2),a!==null&&(Cf(l,a,t,e),Ja(a,2),Qt(a));break}}t=t.return}}function fs(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new n0;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)||(as=!0,n.add(l),e=o0.bind(null,e,t,l),t.then(e,e))}function o0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,_e===e&&(ce&l)===l&&(Re===4||Re===3&&(ce&62914560)===ce&&300>ot()-Bu?(de&2)===0&&Ma(e,0):ns|=l,Ra===ce&&(Ra=0)),Qt(e)}function Nd(e,t){t===0&&(t=bo()),e=Yl(e,t),e!==null&&(Ja(e,t),Qt(e))}function r0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Nd(e,l)}function f0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(t),Nd(e,l)}function d0(e,t){return Ti(e,t)}var Zu=null,Ua=null,ds=!1,Ju=!1,hs=!1,jl=0;function Qt(e){e!==Ua&&e.next===null&&(Ua===null?Zu=Ua=e:Ua=Ua.next=e),Ju=!0,ds||(ds=!0,m0())}function jn(e,t){if(!hs&&Ju){hs=!0;do for(var l=!1,a=Zu;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var u=0;else{var s=a.suspendedLanes,f=a.pingedLanes;u=(1<<31-ft(42|e)+1)-1,u&=n&~(s&~f),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(l=!0,Rd(a,u))}else u=ce,u=Fn(a,a===_e?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Za(a,u)||(l=!0,Rd(a,u));a=a.next}while(l);hs=!1}}function h0(){Cd()}function Cd(){Ju=ds=!1;var e=0;jl!==0&&T0()&&(e=jl);for(var t=ot(),l=null,a=Zu;a!==null;){var n=a.next,u=jd(a,t);u===0?(a.next=null,l===null?Zu=n:l.next=n,n===null&&(Ua=l)):(l=a,(e!==0||(u&3)!==0)&&(Ju=!0)),a=n}qe!==0&&qe!==5||jn(e),jl!==0&&(jl=0)}function jd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var s=31-ft(u),f=1<<s,g=n[s];g===-1?((f&l)===0||(f&a)!==0)&&(n[s]=qm(f,t)):g<=t&&(e.expiredLanes|=f),u&=~f}if(t=_e,l=ce,l=Fn(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(ye===2||ye===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&zi(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Za(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&zi(a),ji(l)){case 2:case 8:l=vo;break;case 32:l=Jn;break;case 268435456:l=go;break;default:l=Jn}return a=Ad.bind(null,e),l=Ti(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&zi(a),e.callbackPriority=2,e.callbackNode=null,2}function Ad(e,t){if(qe!==0&&qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Vu()&&e.callbackNode!==l)return null;var a=ce;return a=Fn(e,e===_e?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(rd(e,a,t),jd(e,ot()),e.callbackNode!=null&&e.callbackNode===l?Ad.bind(null,e):null)}function Rd(e,t){if(Vu())return null;rd(e,t,!0)}function m0(){N0(function(){(de&6)!==0?Ti(po,h0):Cd()})}function ms(){if(jl===0){var e=ba;e===0&&(e=Kn,Kn<<=1,(Kn&261888)===0&&(Kn=256)),jl=e}return jl}function Od(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tu(""+e)}function Md(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 y0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var u=Od((n[lt]||null).action),s=a.submitter;s&&(t=(t=s[lt]||null)?Od(t.formAction):s.getAttribute("formAction"),t!==null&&(u=t,s=null));var f=new uu("action","action",null,a,n);e.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jl!==0){var g=s?Md(n,s):new FormData(n);Uc(l,{pending:!0,data:g,method:n.method,action:u},null,g)}}else typeof u=="function"&&(f.preventDefault(),g=s?Md(n,s):new FormData(n),Uc(l,{pending:!0,data:g,method:n.method,action:u},u,g))},currentTarget:n}]})}}for(var ys=0;ys<Fi.length;ys++){var ps=Fi[ys],p0=ps.toLowerCase(),v0=ps[0].toUpperCase()+ps.slice(1);Dt(p0,"on"+v0)}Dt(sr,"onAnimationEnd"),Dt(or,"onAnimationIteration"),Dt(rr,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(Dy,"onTransitionRun"),Dt(Uy,"onTransitionStart"),Dt(wy,"onTransitionCancel"),Dt(fr,"onTransitionEnd"),ua("onMouseEnter",["mouseout","mouseover"]),ua("onMouseLeave",["mouseout","mouseover"]),ua("onPointerEnter",["pointerout","pointerover"]),ua("onPointerLeave",["pointerout","pointerover"]),kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kl("onBeforeInput",["compositionend","keypress","textInput","paste"]),kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var An="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),g0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(An));function Dd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var s=a.length-1;0<=s;s--){var f=a[s],g=f.instance,C=f.currentTarget;if(f=f.listener,g!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=C;try{u(n)}catch(R){su(R)}n.currentTarget=null,u=g}else for(s=0;s<a.length;s++){if(f=a[s],g=f.instance,C=f.currentTarget,f=f.listener,g!==u&&n.isPropagationStopped())break e;u=f,n.currentTarget=C;try{u(n)}catch(R){su(R)}n.currentTarget=null,u=g}}}}function ie(e,t){var l=t[Ai];l===void 0&&(l=t[Ai]=new Set);var a=e+"__bubble";l.has(a)||(Ud(t,e,2,!1),l.add(a))}function vs(e,t,l){var a=0;t&&(a|=4),Ud(l,e,a,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function gs(e){if(!e[Ku]){e[Ku]=!0,No.forEach(function(l){l!=="selectionchange"&&(g0.has(l)||vs(l,!1,e),vs(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,vs("selectionchange",!1,t))}}function Ud(e,t,l,a){switch(oh(t)){case 2:var n=Z0;break;case 8:n=J0;break;default:n=Ds}l=n.bind(null,t,l,e),n=void 0,!Li||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 bs(e,t,l,a,n){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var f=a.stateNode.containerInfo;if(f===n)break;if(s===4)for(s=a.return;s!==null;){var g=s.tag;if((g===3||g===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;f!==null;){if(s=la(f),s===null)return;if(g=s.tag,g===5||g===6||g===26||g===27){a=u=s;continue e}f=f.parentNode}}a=a.return}Lo(function(){var C=u,R=Hi(l),D=[];e:{var j=dr.get(e);if(j!==void 0){var A=uu,X=e;switch(e){case"keypress":if(au(l)===0)break e;case"keydown":case"keyup":A=fy;break;case"focusin":X="focus",A=Gi;break;case"focusout":X="blur",A=Gi;break;case"beforeblur":case"afterblur":A=Gi;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":A=Yo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":A=Pm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":A=my;break;case sr:case or:case rr:A=ly;break;case fr:A=py;break;case"scroll":case"scrollend":A=Fm;break;case"wheel":A=gy;break;case"copy":case"cut":case"paste":A=ny;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":A=Qo;break;case"toggle":case"beforetoggle":A=xy}var $=(t&4)!==0,Se=!$&&(e==="scroll"||e==="scrollend"),T=$?j!==null?j+"Capture":null:j;$=[];for(var b=C,N;b!==null;){var M=b;if(N=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||N===null||T===null||(M=Wa(b,T),M!=null&&$.push(Rn(b,M,N))),Se)break;b=b.return}0<$.length&&(j=new A(j,X,null,l,R),D.push({event:j,listeners:$}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",A=e==="mouseout"||e==="pointerout",j&&l!==wi&&(X=l.relatedTarget||l.fromElement)&&(la(X)||X[ta]))break e;if((A||j)&&(j=R.window===R?R:(j=R.ownerDocument)?j.defaultView||j.parentWindow:window,A?(X=l.relatedTarget||l.toElement,A=C,X=X?la(X):null,X!==null&&(Se=m(X),$=X.tag,X!==Se||$!==5&&$!==27&&$!==6)&&(X=null)):(A=null,X=C),A!==X)){if($=Yo,M="onMouseLeave",T="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&($=Qo,M="onPointerLeave",T="onPointerEnter",b="pointer"),Se=A==null?j:$a(A),N=X==null?j:$a(X),j=new $(M,b+"leave",A,l,R),j.target=Se,j.relatedTarget=N,M=null,la(R)===C&&($=new $(T,b+"enter",X,l,R),$.target=N,$.relatedTarget=Se,M=$),Se=M,A&&X)t:{for($=b0,T=A,b=X,N=0,M=T;M;M=$(M))N++;M=0;for(var K=b;K;K=$(K))M++;for(;0<N-M;)T=$(T),N--;for(;0<M-N;)b=$(b),M--;for(;N--;){if(T===b||b!==null&&T===b.alternate){$=T;break t}T=$(T),b=$(b)}$=null}else $=null;A!==null&&wd(D,j,A,$,!1),X!==null&&Se!==null&&wd(D,Se,X,$,!0)}}e:{if(j=C?$a(C):window,A=j.nodeName&&j.nodeName.toLowerCase(),A==="select"||A==="input"&&j.type==="file")var re=Fo;else if($o(j))if(Io)re=Ry;else{re=jy;var Z=Cy}else A=j.nodeName,!A||A.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?C&&Ui(C.elementType)&&(re=Fo):re=Ay;if(re&&(re=re(e,C))){Wo(D,re,l,R);break e}Z&&Z(e,j,C),e==="focusout"&&C&&j.type==="number"&&C.memoizedProps.value!=null&&Di(j,"number",j.value)}switch(Z=C?$a(C):window,e){case"focusin":($o(Z)||Z.contentEditable==="true")&&(fa=Z,Ki=C,nn=null);break;case"focusout":nn=Ki=fa=null;break;case"mousedown":$i=!0;break;case"contextmenu":case"mouseup":case"dragend":$i=!1,ir(D,l,R);break;case"selectionchange":if(My)break;case"keydown":case"keyup":ir(D,l,R)}var ae;if(Xi)e:{switch(e){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else ra?Jo(e,l)&&(se="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(se="onCompositionStart");se&&(Xo&&l.locale!=="ko"&&(ra||se!=="onCompositionStart"?se==="onCompositionEnd"&&ra&&(ae=Bo()):(dl=R,Bi="value"in dl?dl.value:dl.textContent,ra=!0)),Z=$u(C,se),0<Z.length&&(se=new Go(se,e,null,l,R),D.push({event:se,listeners:Z}),ae?se.data=ae:(ae=Ko(l),ae!==null&&(se.data=ae)))),(ae=Ey?_y(e,l):Ty(e,l))&&(se=$u(C,"onBeforeInput"),0<se.length&&(Z=new Go("onBeforeInput","beforeinput",null,l,R),D.push({event:Z,listeners:se}),Z.data=ae)),y0(D,e,C,l,R)}Dd(D,t)})}function Rn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function $u(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,u=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||u===null||(n=Wa(e,l),n!=null&&a.unshift(Rn(e,n,u)),n=Wa(e,t),n!=null&&a.push(Rn(e,n,u))),e.tag===3)return a;e=e.return}return[]}function b0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wd(e,t,l,a,n){for(var u=t._reactName,s=[];l!==null&&l!==a;){var f=l,g=f.alternate,C=f.stateNode;if(f=f.tag,g!==null&&g===a)break;f!==5&&f!==26&&f!==27||C===null||(g=C,n?(C=Wa(l,u),C!=null&&s.unshift(Rn(l,C,g))):n||(C=Wa(l,u),C!=null&&s.push(Rn(l,C,g)))),l=l.return}s.length!==0&&e.push({event:t,listeners:s})}var x0=/\r\n?/g,S0=/\u0000|\uFFFD/g;function Hd(e){return(typeof e=="string"?e:""+e).replace(x0,`
50
- `).replace(S0,"")}function kd(e,t){return t=Hd(t),Hd(e)===t}function xe(e,t,l,a,n,u){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ca(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ca(e,""+a);break;case"className":Pn(e,"class",a);break;case"tabIndex":Pn(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Pn(e,l,a);break;case"style":Ho(e,a,u);break;case"data":if(t!=="object"){Pn(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=tu(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(l==="formAction"?(t!=="input"&&xe(e,t,"name",n.name,n,null),xe(e,t,"formEncType",n.formEncType,n,null),xe(e,t,"formMethod",n.formMethod,n,null),xe(e,t,"formTarget",n.formTarget,n,null)):(xe(e,t,"encType",n.encType,n,null),xe(e,t,"method",n.method,n,null),xe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=tu(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=tu(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ie("beforetoggle",e),ie("toggle",e),In(e,"popover",a);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":In(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=$m.get(l)||l,In(e,l,a))}}function xs(e,t,l,a,n,u){switch(l){case"style":Ho(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"children":typeof a=="string"?ca(e,a):(typeof a=="number"||typeof a=="bigint")&&ca(e,""+a);break;case"onScroll":a!=null&&ie("scroll",e);break;case"onScrollEnd":a!=null&&ie("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!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[lt]||null,u=u!=null?u[l]:null,typeof u=="function"&&e.removeEventListener(t,u,n),typeof a=="function")){typeof u!="function"&&u!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):In(e,l,a)}}}function Je(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ie("error",e),ie("load",e);var a=!1,n=!1,u;for(u in l)if(l.hasOwnProperty(u)){var s=l[u];if(s!=null)switch(u){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:xe(e,t,u,s,l,null)}}n&&xe(e,t,"srcSet",l.srcSet,l,null),a&&xe(e,t,"src",l.src,l,null);return;case"input":ie("invalid",e);var f=u=s=n=null,g=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var R=l[a];if(R!=null)switch(a){case"name":n=R;break;case"type":s=R;break;case"checked":g=R;break;case"defaultChecked":C=R;break;case"value":u=R;break;case"defaultValue":f=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:xe(e,t,a,R,l,null)}}Mo(e,u,f,g,C,s,n,!1);return;case"select":ie("invalid",e),a=s=u=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":u=f;break;case"defaultValue":s=f;break;case"multiple":a=f;default:xe(e,t,n,f,l,null)}t=u,l=s,e.multiple=!!a,t!=null?ia(e,!!a,t,!1):l!=null&&ia(e,!!a,l,!0);return;case"textarea":ie("invalid",e),u=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(f=l[s],f!=null))switch(s){case"value":a=f;break;case"defaultValue":n=f;break;case"children":u=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:xe(e,t,s,f,l,null)}Uo(e,a,n,u);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(a=l[g],a!=null))switch(g){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:xe(e,t,g,a,l,null)}return;case"dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case"iframe":case"object":ie("load",e);break;case"video":case"audio":for(a=0;a<An.length;a++)ie(An[a],e);break;case"image":ie("error",e),ie("load",e);break;case"details":ie("toggle",e);break;case"embed":case"source":case"link":ie("error",e),ie("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(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:xe(e,t,C,a,l,null)}return;default:if(Ui(t)){for(R in l)l.hasOwnProperty(R)&&(a=l[R],a!==void 0&&xs(e,t,R,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&xe(e,t,f,a,l,null))}function E0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,u=null,s=null,f=null,g=null,C=null,R=null;for(A in l){var D=l[A];if(l.hasOwnProperty(A)&&D!=null)switch(A){case"checked":break;case"value":break;case"defaultValue":g=D;default:a.hasOwnProperty(A)||xe(e,t,A,null,a,D)}}for(var j in a){var A=a[j];if(D=l[j],a.hasOwnProperty(j)&&(A!=null||D!=null))switch(j){case"type":u=A;break;case"name":n=A;break;case"checked":C=A;break;case"defaultChecked":R=A;break;case"value":s=A;break;case"defaultValue":f=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:A!==D&&xe(e,t,j,A,a,D)}}Mi(e,s,f,g,C,R,u,n);return;case"select":A=s=f=j=null;for(u in l)if(g=l[u],l.hasOwnProperty(u)&&g!=null)switch(u){case"value":break;case"multiple":A=g;default:a.hasOwnProperty(u)||xe(e,t,u,null,a,g)}for(n in a)if(u=a[n],g=l[n],a.hasOwnProperty(n)&&(u!=null||g!=null))switch(n){case"value":j=u;break;case"defaultValue":f=u;break;case"multiple":s=u;default:u!==g&&xe(e,t,n,u,a,g)}t=f,l=s,a=A,j!=null?ia(e,!!l,j,!1):!!a!=!!l&&(t!=null?ia(e,!!l,t,!0):ia(e,!!l,l?[]:"",!1));return;case"textarea":A=j=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:xe(e,t,f,null,a,n)}for(s in a)if(n=a[s],u=l[s],a.hasOwnProperty(s)&&(n!=null||u!=null))switch(s){case"value":j=n;break;case"defaultValue":A=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==u&&xe(e,t,s,n,a,u)}Do(e,j,A);return;case"option":for(var X in l)if(j=l[X],l.hasOwnProperty(X)&&j!=null&&!a.hasOwnProperty(X))switch(X){case"selected":e.selected=!1;break;default:xe(e,t,X,null,a,j)}for(g in a)if(j=a[g],A=l[g],a.hasOwnProperty(g)&&j!==A&&(j!=null||A!=null))switch(g){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:xe(e,t,g,j,a,A)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var $ in l)j=l[$],l.hasOwnProperty($)&&j!=null&&!a.hasOwnProperty($)&&xe(e,t,$,null,a,j);for(C in a)if(j=a[C],A=l[C],a.hasOwnProperty(C)&&j!==A&&(j!=null||A!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,t));break;default:xe(e,t,C,j,a,A)}return;default:if(Ui(t)){for(var Se in l)j=l[Se],l.hasOwnProperty(Se)&&j!==void 0&&!a.hasOwnProperty(Se)&&xs(e,t,Se,void 0,a,j);for(R in a)j=a[R],A=l[R],!a.hasOwnProperty(R)||j===A||j===void 0&&A===void 0||xs(e,t,R,j,a,A);return}}for(var T in l)j=l[T],l.hasOwnProperty(T)&&j!=null&&!a.hasOwnProperty(T)&&xe(e,t,T,null,a,j);for(D in a)j=a[D],A=l[D],!a.hasOwnProperty(D)||j===A||j==null&&A==null||xe(e,t,D,j,a,A)}function Ld(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],u=n.transferSize,s=n.initiatorType,f=n.duration;if(u&&f&&Ld(s)){for(s=0,f=n.responseEnd,a+=1;a<l.length;a++){var g=l[a],C=g.startTime;if(C>f)break;var R=g.transferSize,D=g.initiatorType;R&&Ld(D)&&(g=g.responseEnd,s+=R*(g<f?1:(f-C)/(g-C)))}if(--a,t+=8*(u+s)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ss=null,Es=null;function Wu(e){return e.nodeType===9?e:e.ownerDocument}function Bd(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 qd(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 _s(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 Ts=null;function T0(){var e=window.event;return e&&e.type==="popstate"?e===Ts?!1:(Ts=e,!0):(Ts=null,!1)}var Yd=typeof setTimeout=="function"?setTimeout:void 0,z0=typeof clearTimeout=="function"?clearTimeout:void 0,Gd=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof Gd<"u"?function(e){return Gd.resolve(null).then(e).catch(C0)}:Yd;function C0(e){setTimeout(function(){throw e})}function Al(e){return e==="head"}function Qd(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),La(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")On(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,On(l);for(var u=l.firstChild;u;){var s=u.nextSibling,f=u.nodeName;u[Ka]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&u.rel.toLowerCase()==="stylesheet"||l.removeChild(u),u=s}}else l==="body"&&On(e.ownerDocument.body);l=n}while(l);La(t)}function Xd(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 zs(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":zs(l),Ri(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function j0(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[Ka])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=Rt(e.nextSibling),e===null)break}return null}function A0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Rt(e.nextSibling),e===null))return null;return e}function Vd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Rt(e.nextSibling),e===null))return null;return e}function Ns(e){return e.data==="$?"||e.data==="$~"}function Cs(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R0(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 Rt(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 js=null;function Zd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Rt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Jd(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 Kd(e,t,l){switch(t=Wu(l),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ri(e)}var Ot=new Map,$d=new Set;function Fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sl=Y.d;Y.d={f:O0,r:M0,D:D0,C:U0,L:w0,m:H0,X:L0,S:k0,M:B0};function O0(){var e=sl.f(),t=Gu();return e||t}function M0(e){var t=aa(e);t!==null&&t.tag===5&&t.type==="form"?df(t):sl.r(e)}var wa=typeof document>"u"?null:document;function Wd(e,t,l){var a=wa;if(a&&typeof t=="string"&&t){var n=_t(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),$d.has(n)||($d.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),Je(t,"link",e),Ye(t),a.head.appendChild(t)))}}function D0(e){sl.D(e),Wd("dns-prefetch",e,null)}function U0(e,t){sl.C(e,t),Wd("preconnect",e,t)}function w0(e,t,l){sl.L(e,t,l);var a=wa;if(a&&e&&t){var n='link[rel="preload"][as="'+_t(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+_t(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+_t(l.imageSizes)+'"]')):n+='[href="'+_t(e)+'"]';var u=n;switch(t){case"style":u=Ha(e);break;case"script":u=ka(e)}Ot.has(u)||(e=_({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Ot.set(u,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Mn(u))||t==="script"&&a.querySelector(Dn(u))||(t=a.createElement("link"),Je(t,"link",e),Ye(t),a.head.appendChild(t)))}}function H0(e,t){sl.m(e,t);var l=wa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+_t(a)+'"][href="'+_t(e)+'"]',u=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=ka(e)}if(!Ot.has(u)&&(e=_({rel:"modulepreload",href:e},t),Ot.set(u,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Dn(u)))return}a=l.createElement("link"),Je(a,"link",e),Ye(a),l.head.appendChild(a)}}}function k0(e,t,l){sl.S(e,t,l);var a=wa;if(a&&e){var n=na(a).hoistableStyles,u=Ha(e);t=t||"default";var s=n.get(u);if(!s){var f={loading:0,preload:null};if(s=a.querySelector(Mn(u)))f.loading=5;else{e=_({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Ot.get(u))&&As(e,l);var g=s=a.createElement("link");Ye(g),Je(g,"link",e),g._p=new Promise(function(C,R){g.onload=C,g.onerror=R}),g.addEventListener("load",function(){f.loading|=1}),g.addEventListener("error",function(){f.loading|=2}),f.loading|=4,Iu(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:f},n.set(u,s)}}}function L0(e,t){sl.X(e,t);var l=wa;if(l&&e){var a=na(l).hoistableScripts,n=ka(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=_({src:e,async:!0},t),(t=Ot.get(n))&&Rs(e,t),u=l.createElement("script"),Ye(u),Je(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function B0(e,t){sl.M(e,t);var l=wa;if(l&&e){var a=na(l).hoistableScripts,n=ka(e),u=a.get(n);u||(u=l.querySelector(Dn(n)),u||(e=_({src:e,async:!0,type:"module"},t),(t=Ot.get(n))&&Rs(e,t),u=l.createElement("script"),Ye(u),Je(u,"link",e),l.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(n,u))}}function Fd(e,t,l,a){var n=(n=ne.current)?Fu(n):null;if(!n)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Ha(l.href),l=na(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=Ha(l.href);var u=na(n).hoistableStyles,s=u.get(e);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,s),(u=n.querySelector(Mn(e)))&&!u._p&&(s.instance=u,s.state.loading=5),Ot.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},Ot.set(e,l),u||q0(n,e,l,s.state))),t&&a===null)throw Error(o(528,""));return s}if(t&&a!==null)throw Error(o(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ka(l),l=na(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ha(e){return'href="'+_t(e)+'"'}function Mn(e){return'link[rel="stylesheet"]['+e+"]"}function Id(e){return _({},e,{"data-precedence":e.precedence,precedence:null})}function q0(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),Ye(t),e.head.appendChild(t))}function ka(e){return'[src="'+_t(e)+'"]'}function Dn(e){return"script[async]"+e}function Pd(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+_t(l.href)+'"]');if(a)return t.instance=a,Ye(a),a;var n=_({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Ye(a),Je(a,"style",n),Iu(a,l.precedence,e),t.instance=a;case"stylesheet":n=Ha(l.href);var u=e.querySelector(Mn(n));if(u)return t.state.loading|=4,t.instance=u,Ye(u),u;a=Id(l),(n=Ot.get(n))&&As(a,n),u=(e.ownerDocument||e).createElement("link"),Ye(u);var s=u;return s._p=new Promise(function(f,g){s.onload=f,s.onerror=g}),Je(u,"link",a),t.state.loading|=4,Iu(u,l.precedence,e),t.instance=u;case"script":return u=ka(l.src),(n=e.querySelector(Dn(u)))?(t.instance=n,Ye(n),n):(a=l,(n=Ot.get(u))&&(a=_({},l),Rs(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),Ye(n),Je(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Iu(a,l.precedence,e));return t.instance}function Iu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,u=n,s=0;s<a.length;s++){var f=a[s];if(f.dataset.precedence===t)u=f;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 As(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Rs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pu=null;function eh(e,t,l){if(Pu===null){var a=new Map,n=Pu=new Map;n.set(l,a)}else n=Pu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var u=l[n];if(!(u[Ka]||u[Qe]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var s=u.getAttribute(t)||"";s=e+s;var f=a.get(s);f?f.push(u):a.set(s,[u])}}return a}function th(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Y0(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 lh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function G0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Ha(a.href),u=t.querySelector(Mn(n));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ei.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=u,Ye(u);return}u=t.ownerDocument||t,a=Id(a),(n=Ot.get(n))&&As(a,n),u=u.createElement("link"),Ye(u);var s=u;s._p=new Promise(function(f,g){s.onload=f,s.onerror=g}),Je(u,"link",a),l.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=ei.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Os=0;function Q0(e,t){return e.stylesheets&&e.count===0&&li(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&li(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Os===0&&(Os=62500*_0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&li(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Os?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function ei(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)li(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ti=null;function li(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ti=new Map,t.forEach(X0,e),ti=null,ei.call(e))}function X0(e,t){if(!(t.state.loading&4)){var l=ti.get(e);if(l)var a=l.get(null);else{l=new Map,ti.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<n.length;u++){var s=n[u];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=t.instance,s=n.getAttribute("data-precedence"),u=l.get(s)||a,u===a&&l.set(null,n),l.set(s,n),this.count++,a=ei.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),u?u.parentNode.insertBefore(n,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Un={$$typeof:J,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function V0(e,t,l,a,n,u,s,f,g){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ni(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ni(0),this.hiddenUpdates=Ni(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=u,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function ah(e,t,l,a,n,u,s,f,g,C,R,D){return e=new V0(e,t,l,s,g,C,R,D,f),t=1,u===!0&&(t|=24),u=ht(3,null,null,t),e.current=u,u.stateNode=e,t=rc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:l,cache:t},mc(u),e}function nh(e){return e?(e=ma,e):ma}function uh(e,t,l,a,n,u){n=nh(n),a.context===null?a.context=n:a.pendingContext=n,a=gl(t),a.payload={element:l},u=u===void 0?null:u,u!==null&&(a.callback=u),l=bl(e,a,t),l!==null&&(st(l,e,t),dn(l,e,t))}function ih(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Ms(e,t){ih(e,t),(e=e.alternate)&&ih(e,t)}function ch(e){if(e.tag===13||e.tag===31){var t=Yl(e,67108864);t!==null&&st(t,e,67108864),Ms(e,67108864)}}function sh(e){if(e.tag===13||e.tag===31){var t=gt();t=Ci(t);var l=Yl(e,t);l!==null&&st(l,e,t),Ms(e,t)}}var ai=!0;function Z0(e,t,l,a){var n=O.T;O.T=null;var u=Y.p;try{Y.p=2,Ds(e,t,l,a)}finally{Y.p=u,O.T=n}}function J0(e,t,l,a){var n=O.T;O.T=null;var u=Y.p;try{Y.p=8,Ds(e,t,l,a)}finally{Y.p=u,O.T=n}}function Ds(e,t,l,a){if(ai){var n=Us(a);if(n===null)bs(e,t,a,ni,l),rh(e,a);else if($0(n,e,t,l,a))a.stopPropagation();else if(rh(e,a),t&4&&-1<K0.indexOf(e)){for(;n!==null;){var u=aa(n);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var s=Hl(u.pendingLanes);if(s!==0){var f=u;for(f.pendingLanes|=2,f.entangledLanes|=2;s;){var g=1<<31-ft(s);f.entanglements[1]|=g,s&=~g}Qt(u),(de&6)===0&&(qu=ot()+500,jn(0))}}break;case 31:case 13:f=Yl(u,2),f!==null&&st(f,u,2),Gu(),Ms(u,2)}if(u=Us(a),u===null&&bs(e,t,a,ni,l),u===n)break;n=u}n!==null&&a.stopPropagation()}else bs(e,t,a,null,l)}}function Us(e){return e=Hi(e),ws(e)}var ni=null;function ws(e){if(ni=null,e=la(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=E(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ni=e,null}function oh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Dm()){case po:return 2;case vo:return 8;case Jn:case Um:return 32;case go:return 268435456;default:return 32}default:return 32}}var Hs=!1,Rl=null,Ol=null,Ml=null,wn=new Map,Hn=new Map,Dl=[],K0="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 rh(e,t){switch(e){case"focusin":case"focusout":Rl=null;break;case"dragenter":case"dragleave":Ol=null;break;case"mouseover":case"mouseout":Ml=null;break;case"pointerover":case"pointerout":wn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function kn(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=aa(t),t!==null&&ch(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function $0(e,t,l,a,n){switch(t){case"focusin":return Rl=kn(Rl,e,t,l,a,n),!0;case"dragenter":return Ol=kn(Ol,e,t,l,a,n),!0;case"mouseover":return Ml=kn(Ml,e,t,l,a,n),!0;case"pointerover":var u=n.pointerId;return wn.set(u,kn(wn.get(u)||null,e,t,l,a,n)),!0;case"gotpointercapture":return u=n.pointerId,Hn.set(u,kn(Hn.get(u)||null,e,t,l,a,n)),!0}return!1}function fh(e){var t=la(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,To(e.priority,function(){sh(l)});return}}else if(t===31){if(t=E(l),t!==null){e.blockedOn=t,To(e.priority,function(){sh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ui(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Us(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);wi=a,l.target.dispatchEvent(a),wi=null}else return t=aa(l),t!==null&&ch(t),e.blockedOn=l,!1;t.shift()}return!0}function dh(e,t,l){ui(e)&&l.delete(t)}function W0(){Hs=!1,Rl!==null&&ui(Rl)&&(Rl=null),Ol!==null&&ui(Ol)&&(Ol=null),Ml!==null&&ui(Ml)&&(Ml=null),wn.forEach(dh),Hn.forEach(dh)}function ii(e,t){e.blockedOn===t&&(e.blockedOn=null,Hs||(Hs=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,W0)))}var ci=null;function hh(e){ci!==e&&(ci=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ci===e&&(ci=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(ws(a||l)===null)continue;break}var u=aa(l);u!==null&&(e.splice(t,3),t-=3,Uc(u,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function La(e){function t(g){return ii(g,e)}Rl!==null&&ii(Rl,e),Ol!==null&&ii(Ol,e),Ml!==null&&ii(Ml,e),wn.forEach(t),Hn.forEach(t);for(var l=0;l<Dl.length;l++){var a=Dl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Dl.length&&(l=Dl[0],l.blockedOn===null);)fh(l),l.blockedOn===null&&Dl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],u=l[a+1],s=n[lt]||null;if(typeof u=="function")s||hh(l);else if(s){var f=null;if(u&&u.hasAttribute("formAction")){if(n=u,s=u[lt]||null)f=s.formAction;else if(ws(n)!==null)continue}else f=s.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),hh(l)}}}function mh(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ks(e){this._internalRoot=e}si.prototype.render=ks.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var l=t.current,a=gt();uh(l,a,e,t,null,null)},si.prototype.unmount=ks.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;uh(e.current,2,null,e,null,null),Gu(),t[ta]=null}};function si(e){this._internalRoot=e}si.prototype.unstable_scheduleHydration=function(e){if(e){var t=_o();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Dl.length&&t!==0&&t<Dl[l].priority;l++);Dl.splice(l,0,e),l===0&&fh(e)}};var yh=c.version;if(yh!=="19.2.4")throw Error(o(527,yh,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=y(t),e=e!==null?z(e):null,e=e===null?null:e.stateNode,e};var F0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{Va=oi.inject(F0),rt=oi}catch{}}return qn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var l=!1,a="",n=Ef,u=_f,s=Tf;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=ah(e,1,!1,null,null,l,a,null,n,u,s,mh),e[ta]=t.current,gs(e),new ks(t)},qn.hydrateRoot=function(e,t,l){if(!d(e))throw Error(o(299));var a=!1,n="",u=Ef,s=_f,f=Tf,g=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(u=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),t=ah(e,1,!0,t,l??null,a,n,g,u,s,f,mh),t.context=nh(null),l=t.current,a=gt(),a=Ci(a),n=gl(a),n.callback=null,bl(l,n,a),l=a,t.current.lanes=l,Ja(t,l),Qt(t),e[ta]=t.current,gs(e),new si(t)},qn.version="19.2.4",qn}var zh;function rp(){if(zh)return qs.exports;zh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(c){console.error(c)}}return i(),qs.exports=op(),qs.exports}var fp=rp();/**
51
- * react-router v7.13.1
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */var Nh="popstate";function Ch(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function dp(i={}){function c(o,d){var y;let m=(y=d.state)==null?void 0:y.masked,{pathname:p,search:E,hash:x}=m||o.location;return Is("",{pathname:p,search:E,hash:x},d.state&&d.state.usr||null,d.state&&d.state.key||"default",m?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function r(o,d){return typeof d=="string"?d:Qn(d)}return mp(c,r,null,i)}function je(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function Ht(i,c){if(!i){typeof console<"u"&&console.warn(c);try{throw new Error(c)}catch{}}}function hp(){return Math.random().toString(36).substring(2,10)}function jh(i,c){return{usr:i.state,key:i.key,idx:c,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Is(i,c,r=null,o,d){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof c=="string"?Ya(c):c,state:r,key:c&&c.key||o||hp(),unstable_mask:d}}function Qn({pathname:i="/",search:c="",hash:r=""}){return c&&c!=="?"&&(i+=c.charAt(0)==="?"?c:"?"+c),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function Ya(i){let c={};if(i){let r=i.indexOf("#");r>=0&&(c.hash=i.substring(r),i=i.substring(0,r));let o=i.indexOf("?");o>=0&&(c.search=i.substring(o),i=i.substring(0,o)),i&&(c.pathname=i)}return c}function mp(i,c,r,o={}){let{window:d=document.defaultView,v5Compat:m=!1}=o,p=d.history,E="POP",x=null,y=z();y==null&&(y=0,p.replaceState({...p.state,idx:y},""));function z(){return(p.state||{idx:null}).idx}function _(){E="POP";let Q=z(),q=Q==null?null:Q-y;y=Q,x&&x({action:E,location:U.location,delta:q})}function H(Q,q){E="PUSH";let I=Ch(Q)?Q:Is(U.location,Q,q);y=z()+1;let J=jh(I,y),ve=U.createHref(I.unstable_mask||I);try{p.pushState(J,"",ve)}catch(me){if(me instanceof DOMException&&me.name==="DataCloneError")throw me;d.location.assign(ve)}m&&x&&x({action:E,location:U.location,delta:1})}function L(Q,q){E="REPLACE";let I=Ch(Q)?Q:Is(U.location,Q,q);y=z();let J=jh(I,y),ve=U.createHref(I.unstable_mask||I);p.replaceState(J,"",ve),m&&x&&x({action:E,location:U.location,delta:0})}function B(Q){return yp(Q)}let U={get action(){return E},get location(){return i(d,p)},listen(Q){if(x)throw new Error("A history only accepts one active listener");return d.addEventListener(Nh,_),x=Q,()=>{d.removeEventListener(Nh,_),x=null}},createHref(Q){return c(d,Q)},createURL:B,encodeLocation(Q){let q=B(Q);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:H,replace:L,go(Q){return p.go(Q)}};return U}function yp(i,c=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),je(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:Qn(i);return o=o.replace(/ $/,"%20"),!c&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Zh(i,c,r="/"){return pp(i,c,r,!1)}function pp(i,c,r,o){let d=typeof c=="string"?Ya(c):c,m=ol(d.pathname||"/",r);if(m==null)return null;let p=Jh(i);vp(p);let E=null;for(let x=0;E==null&&x<p.length;++x){let y=jp(m);E=Np(p[x],y,o)}return E}function Jh(i,c=[],r=[],o="",d=!1){let m=(p,E,x=d,y)=>{let z={relativePath:y===void 0?p.path||"":y,caseSensitive:p.caseSensitive===!0,childrenIndex:E,route:p};if(z.relativePath.startsWith("/")){if(!z.relativePath.startsWith(o)&&x)return;je(z.relativePath.startsWith(o),`Absolute route path "${z.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),z.relativePath=z.relativePath.slice(o.length)}let _=Xt([o,z.relativePath]),H=r.concat(z);p.children&&p.children.length>0&&(je(p.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${_}".`),Jh(p.children,c,H,_,x)),!(p.path==null&&!p.index)&&c.push({path:_,score:Tp(_,p.index),routesMeta:H})};return i.forEach((p,E)=>{var x;if(p.path===""||!((x=p.path)!=null&&x.includes("?")))m(p,E);else for(let y of Kh(p.path))m(p,E,!0,y)}),c}function Kh(i){let c=i.split("/");if(c.length===0)return[];let[r,...o]=c,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(o.length===0)return d?[m,""]:[m];let p=Kh(o.join("/")),E=[];return E.push(...p.map(x=>x===""?m:[m,x].join("/"))),d&&E.push(...p),E.map(x=>i.startsWith("/")&&x===""?"/":x)}function vp(i){i.sort((c,r)=>c.score!==r.score?r.score-c.score:zp(c.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var gp=/^:[\w-]+$/,bp=3,xp=2,Sp=1,Ep=10,_p=-2,Ah=i=>i==="*";function Tp(i,c){let r=i.split("/"),o=r.length;return r.some(Ah)&&(o+=_p),c&&(o+=xp),r.filter(d=>!Ah(d)).reduce((d,m)=>d+(gp.test(m)?bp:m===""?Sp:Ep),o)}function zp(i,c){return i.length===c.length&&i.slice(0,-1).every((o,d)=>o===c[d])?i[i.length-1]-c[c.length-1]:0}function Np(i,c,r=!1){let{routesMeta:o}=i,d={},m="/",p=[];for(let E=0;E<o.length;++E){let x=o[E],y=E===o.length-1,z=m==="/"?c:c.slice(m.length)||"/",_=mi({path:x.relativePath,caseSensitive:x.caseSensitive,end:y},z),H=x.route;if(!_&&y&&r&&!o[o.length-1].route.index&&(_=mi({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},z)),!_)return null;Object.assign(d,_.params),p.push({params:d,pathname:Xt([m,_.pathname]),pathnameBase:Mp(Xt([m,_.pathnameBase])),route:H}),_.pathnameBase!=="/"&&(m=Xt([m,_.pathnameBase]))}return p}function mi(i,c){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,o]=Cp(i.path,i.caseSensitive,i.end),d=c.match(r);if(!d)return null;let m=d[0],p=m.replace(/(.)\/+$/,"$1"),E=d.slice(1);return{params:o.reduce((y,{paramName:z,isOptional:_},H)=>{if(z==="*"){let B=E[H]||"";p=m.slice(0,m.length-B.length).replace(/(.)\/+$/,"$1")}const L=E[H];return _&&!L?y[z]=void 0:y[z]=(L||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:p,pattern:i}}function Cp(i,c=!1,r=!0){Ht(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],d="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,E,x,y,z)=>{if(o.push({paramName:E,isOptional:x!=null}),x){let _=z.charAt(y+p.length);return _&&_!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),d+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":i!==""&&i!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,c?void 0:"i"),o]}function jp(i){try{return i.split("/").map(c=>decodeURIComponent(c).replace(/\//g,"%2F")).join("/")}catch(c){return Ht(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${c}).`),i}}function ol(i,c){if(c==="/")return i;if(!i.toLowerCase().startsWith(c.toLowerCase()))return null;let r=c.endsWith("/")?c.length-1:c.length,o=i.charAt(r);return o&&o!=="/"?null:i.slice(r)||"/"}var Ap=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Rp(i,c="/"){let{pathname:r,search:o="",hash:d=""}=typeof i=="string"?Ya(i):i,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=Rh(r.substring(1),"/"):m=Rh(r,c)):m=c,{pathname:m,search:Dp(o),hash:Up(d)}}function Rh(i,c){let r=c.replace(/\/+$/,"").split("/");return i.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function Xs(i,c,r,o){return`Cannot include a '${i}' character in a manually specified \`to.${c}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Op(i){return i.filter((c,r)=>r===0||c.route.path&&c.route.path.length>0)}function to(i){let c=Op(i);return c.map((r,o)=>o===c.length-1?r.pathname:r.pathnameBase)}function vi(i,c,r,o=!1){let d;typeof i=="string"?d=Ya(i):(d={...i},je(!d.pathname||!d.pathname.includes("?"),Xs("?","pathname","search",d)),je(!d.pathname||!d.pathname.includes("#"),Xs("#","pathname","hash",d)),je(!d.search||!d.search.includes("#"),Xs("#","search","hash",d)));let m=i===""||d.pathname==="",p=m?"/":d.pathname,E;if(p==null)E=r;else{let _=c.length-1;if(!o&&p.startsWith("..")){let H=p.split("/");for(;H[0]==="..";)H.shift(),_-=1;d.pathname=H.join("/")}E=_>=0?c[_]:"/"}let x=Rp(d,E),y=p&&p!=="/"&&p.endsWith("/"),z=(m||p===".")&&r.endsWith("/");return!x.pathname.endsWith("/")&&(y||z)&&(x.pathname+="/"),x}var Xt=i=>i.join("/").replace(/\/\/+/g,"/"),Mp=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Dp=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Up=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,wp=class{constructor(i,c,r,o=!1){this.status=i,this.statusText=c||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Hp(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function kp(i){return i.map(c=>c.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var $h=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wh(i,c){let r=i;if(typeof r!="string"||!Ap.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,d=!1;if($h)try{let m=new URL(window.location.href),p=r.startsWith("//")?new URL(m.protocol+r):new URL(r),E=ol(p.pathname,c);p.origin===m.origin&&E!=null?r=E+p.search+p.hash:d=!0}catch{Ht(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fh=["POST","PUT","PATCH","DELETE"];new Set(Fh);var Lp=["GET",...Fh];new Set(Lp);var Ga=v.createContext(null);Ga.displayName="DataRouter";var gi=v.createContext(null);gi.displayName="DataRouterState";var Bp=v.createContext(!1),Ih=v.createContext({isTransitioning:!1});Ih.displayName="ViewTransition";var qp=v.createContext(new Map);qp.displayName="Fetchers";var Yp=v.createContext(null);Yp.displayName="Await";var bt=v.createContext(null);bt.displayName="Navigation";var Xn=v.createContext(null);Xn.displayName="Location";var Mt=v.createContext({outlet:null,matches:[],isDataRoute:!1});Mt.displayName="Route";var lo=v.createContext(null);lo.displayName="RouteError";var Ph="REACT_ROUTER_ERROR",Gp="REDIRECT",Qp="ROUTE_ERROR_RESPONSE";function Xp(i){if(i.startsWith(`${Ph}:${Gp}:{`))try{let c=JSON.parse(i.slice(28));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string"&&typeof c.location=="string"&&typeof c.reloadDocument=="boolean"&&typeof c.replace=="boolean")return c}catch{}}function Vp(i){if(i.startsWith(`${Ph}:${Qp}:{`))try{let c=JSON.parse(i.slice(40));if(typeof c=="object"&&c&&typeof c.status=="number"&&typeof c.statusText=="string")return new wp(c.status,c.statusText,c.data)}catch{}}function Zp(i,{relative:c}={}){je(Qa(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=v.useContext(bt),{hash:d,pathname:m,search:p}=Vn(i,{relative:c}),E=m;return r!=="/"&&(E=m==="/"?r:Xt([r,m])),o.createHref({pathname:E,search:p,hash:d})}function Qa(){return v.useContext(Xn)!=null}function kt(){return je(Qa(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Xn).location}var em="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function tm(i){v.useContext(bt).static||v.useLayoutEffect(i)}function ao(){let{isDataRoute:i}=v.useContext(Mt);return i?c1():Jp()}function Jp(){je(Qa(),"useNavigate() may be used only in the context of a <Router> component.");let i=v.useContext(Ga),{basename:c,navigator:r}=v.useContext(bt),{matches:o}=v.useContext(Mt),{pathname:d}=kt(),m=JSON.stringify(to(o)),p=v.useRef(!1);return tm(()=>{p.current=!0}),v.useCallback((x,y={})=>{if(Ht(p.current,em),!p.current)return;if(typeof x=="number"){r.go(x);return}let z=vi(x,JSON.parse(m),d,y.relative==="path");i==null&&c!=="/"&&(z.pathname=z.pathname==="/"?c:Xt([c,z.pathname])),(y.replace?r.replace:r.push)(z,y.state,y)},[c,r,m,d,i])}var Kp=v.createContext(null);function $p(i){let c=v.useContext(Mt).outlet;return v.useMemo(()=>c&&v.createElement(Kp.Provider,{value:i},c),[c,i])}function H2(){let{matches:i}=v.useContext(Mt),c=i[i.length-1];return c?c.params:{}}function Vn(i,{relative:c}={}){let{matches:r}=v.useContext(Mt),{pathname:o}=kt(),d=JSON.stringify(to(r));return v.useMemo(()=>vi(i,JSON.parse(d),o,c==="path"),[i,d,o,c])}function Wp(i,c){return lm(i,c)}function lm(i,c,r){var Q;je(Qa(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=v.useContext(bt),{matches:d}=v.useContext(Mt),m=d[d.length-1],p=m?m.params:{},E=m?m.pathname:"/",x=m?m.pathnameBase:"/",y=m&&m.route;{let q=y&&y.path||"";nm(E,!y||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${E}" (under <Route path="${q}">) 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.
60
-
61
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let z=kt(),_;if(c){let q=typeof c=="string"?Ya(c):c;je(x==="/"||((Q=q.pathname)==null?void 0:Q.startsWith(x)),`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 "${x}" but pathname "${q.pathname}" was given in the \`location\` prop.`),_=q}else _=z;let H=_.pathname||"/",L=H;if(x!=="/"){let q=x.replace(/^\//,"").split("/");L="/"+H.replace(/^\//,"").split("/").slice(q.length).join("/")}let B=Zh(i,{pathname:L});Ht(y||B!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Ht(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.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 U=t1(B&&B.map(q=>Object.assign({},q,{params:Object.assign({},p,q.params),pathname:Xt([x,o.encodeLocation?o.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?x:Xt([x,o.encodeLocation?o.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),d,r);return c&&U?v.createElement(Xn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,..._},navigationType:"POP"}},U):U}function Fp(){let i=i1(),c=Hp(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:o},m={padding:"2px 4px",backgroundColor:o},p=null;return console.error("Error handled by React Router default ErrorBoundary:",i),p=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:m},"ErrorBoundary")," or"," ",v.createElement("code",{style:m},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},c),r?v.createElement("pre",{style:d},r):null,p)}var Ip=v.createElement(Fp,null),am=class extends v.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,c){return c.location!==i.location||c.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:c.error,location:c.location,revalidation:i.revalidation||c.revalidation}}componentDidCatch(i,c){this.props.onError?this.props.onError(i,c):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=Vp(i.digest);r&&(i=r)}let c=i!==void 0?v.createElement(Mt.Provider,{value:this.props.routeContext},v.createElement(lo.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?v.createElement(Pp,{error:i},c):c}};am.contextType=Bp;var Vs=new WeakMap;function Pp({children:i,error:c}){let{basename:r}=v.useContext(bt);if(typeof c=="object"&&c&&"digest"in c&&typeof c.digest=="string"){let o=Xp(c.digest);if(o){let d=Vs.get(c);if(d)throw d;let m=Wh(o.location,r);if($h&&!Vs.get(c))if(m.isExternal||o.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const p=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:o.replace}));throw Vs.set(c,p),p}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function e1({routeContext:i,match:c,children:r}){let o=v.useContext(Ga);return o&&o.static&&o.staticContext&&(c.route.errorElement||c.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=c.route.id),v.createElement(Mt.Provider,{value:i},r)}function t1(i,c=[],r){let o=r==null?void 0:r.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(c.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let d=i,m=o==null?void 0:o.errors;if(m!=null){let z=d.findIndex(_=>_.route.id&&(m==null?void 0:m[_.route.id])!==void 0);je(z>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,z+1))}let p=!1,E=-1;if(r&&o){p=o.renderFallback;for(let z=0;z<d.length;z++){let _=d[z];if((_.route.HydrateFallback||_.route.hydrateFallbackElement)&&(E=z),_.route.id){let{loaderData:H,errors:L}=o,B=_.route.loader&&!H.hasOwnProperty(_.route.id)&&(!L||L[_.route.id]===void 0);if(_.route.lazy||B){r.isStatic&&(p=!0),E>=0?d=d.slice(0,E+1):d=[d[0]];break}}}}let x=r==null?void 0:r.onError,y=o&&x?(z,_)=>{var H,L;x(z,{location:o.location,params:((L=(H=o.matches)==null?void 0:H[0])==null?void 0:L.params)??{},unstable_pattern:kp(o.matches),errorInfo:_})}:void 0;return d.reduceRight((z,_,H)=>{let L,B=!1,U=null,Q=null;o&&(L=m&&_.route.id?m[_.route.id]:void 0,U=_.route.errorElement||Ip,p&&(E<0&&H===0?(nm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,Q=null):E===H&&(B=!0,Q=_.route.hydrateFallbackElement||null)));let q=c.concat(d.slice(0,H+1)),I=()=>{let J;return L?J=U:B?J=Q:_.route.Component?J=v.createElement(_.route.Component,null):_.route.element?J=_.route.element:J=z,v.createElement(e1,{match:_,routeContext:{outlet:z,matches:q,isDataRoute:o!=null},children:J})};return o&&(_.route.ErrorBoundary||_.route.errorElement||H===0)?v.createElement(am,{location:o.location,revalidation:o.revalidation,component:U,error:L,children:I(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:y}):I()},null)}function no(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l1(i){let c=v.useContext(Ga);return je(c,no(i)),c}function a1(i){let c=v.useContext(gi);return je(c,no(i)),c}function n1(i){let c=v.useContext(Mt);return je(c,no(i)),c}function uo(i){let c=n1(i),r=c.matches[c.matches.length-1];return je(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function u1(){return uo("useRouteId")}function i1(){var o;let i=v.useContext(lo),c=a1("useRouteError"),r=uo("useRouteError");return i!==void 0?i:(o=c.errors)==null?void 0:o[r]}function c1(){let{router:i}=l1("useNavigate"),c=uo("useNavigate"),r=v.useRef(!1);return tm(()=>{r.current=!0}),v.useCallback(async(d,m={})=>{Ht(r.current,em),r.current&&(typeof d=="number"?await i.navigate(d):await i.navigate(d,{fromRouteId:c,...m}))},[i,c])}var Oh={};function nm(i,c,r){!c&&!Oh[i]&&(Oh[i]=!0,Ht(!1,r))}v.memo(s1);function s1({routes:i,future:c,state:r,isStatic:o,onError:d}){return lm(i,void 0,{state:r,isStatic:o,onError:d})}function o1({to:i,replace:c,state:r,relative:o}){je(Qa(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=v.useContext(bt);Ht(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=v.useContext(Mt),{pathname:p}=kt(),E=ao(),x=vi(i,to(m),p,o==="path"),y=JSON.stringify(x);return v.useEffect(()=>{E(JSON.parse(y),{replace:c,state:r,relative:o})},[E,y,o,c,r]),null}function r1(i){return $p(i.context)}function Ke(i){je(!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 f1({basename:i="/",children:c=null,location:r,navigationType:o="POP",navigator:d,static:m=!1,unstable_useTransitions:p}){je(!Qa(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let E=i.replace(/^\/*/,"/"),x=v.useMemo(()=>({basename:E,navigator:d,static:m,unstable_useTransitions:p,future:{}}),[E,d,m,p]);typeof r=="string"&&(r=Ya(r));let{pathname:y="/",search:z="",hash:_="",state:H=null,key:L="default",unstable_mask:B}=r,U=v.useMemo(()=>{let Q=ol(y,E);return Q==null?null:{location:{pathname:Q,search:z,hash:_,state:H,key:L,unstable_mask:B},navigationType:o}},[E,y,z,_,H,L,o,B]);return Ht(U!=null,`<Router basename="${E}"> is not able to match the URL "${y}${z}${_}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:v.createElement(bt.Provider,{value:x},v.createElement(Xn.Provider,{children:c,value:U}))}function d1({children:i,location:c}){return Wp(Ps(i),c)}function Ps(i,c=[]){let r=[];return v.Children.forEach(i,(o,d)=>{if(!v.isValidElement(o))return;let m=[...c,d];if(o.type===v.Fragment){r.push.apply(r,Ps(o.props.children,m));return}je(o.type===Ke,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!o.props.index||!o.props.children,"An index route cannot have child routes.");let p={id:o.props.id||m.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(p.children=Ps(o.props.children,m)),r.push(p)}),r}var fi="get",di="application/x-www-form-urlencoded";function bi(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function h1(i){return bi(i)&&i.tagName.toLowerCase()==="button"}function m1(i){return bi(i)&&i.tagName.toLowerCase()==="form"}function y1(i){return bi(i)&&i.tagName.toLowerCase()==="input"}function p1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function v1(i,c){return i.button===0&&(!c||c==="_self")&&!p1(i)}var ri=null;function g1(){if(ri===null)try{new FormData(document.createElement("form"),0),ri=!1}catch{ri=!0}return ri}var b1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zs(i){return i!=null&&!b1.has(i)?(Ht(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${di}"`),null):i}function x1(i,c){let r,o,d,m,p;if(m1(i)){let E=i.getAttribute("action");o=E?ol(E,c):null,r=i.getAttribute("method")||fi,d=Zs(i.getAttribute("enctype"))||di,m=new FormData(i)}else if(h1(i)||y1(i)&&(i.type==="submit"||i.type==="image")){let E=i.form;if(E==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=i.getAttribute("formaction")||E.getAttribute("action");if(o=x?ol(x,c):null,r=i.getAttribute("formmethod")||E.getAttribute("method")||fi,d=Zs(i.getAttribute("formenctype"))||Zs(E.getAttribute("enctype"))||di,m=new FormData(E,i),!g1()){let{name:y,type:z,value:_}=i;if(z==="image"){let H=y?`${y}.`:"";m.append(`${H}x`,"0"),m.append(`${H}y`,"0")}else y&&m.append(y,_)}}else{if(bi(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=fi,o=null,d=di,p=i}return m&&d==="text/plain"&&(p=m,m=void 0),{action:o,method:r.toLowerCase(),encType:d,formData:m,body:p}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function io(i,c){if(i===!1||i===null||typeof i>"u")throw new Error(c)}function S1(i,c,r,o){let d=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${o}`:d.pathname=`${d.pathname}.${o}`:d.pathname==="/"?d.pathname=`_root.${o}`:c&&ol(d.pathname,c)==="/"?d.pathname=`${c.replace(/\/$/,"")}/_root.${o}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${o}`,d}async function E1(i,c){if(i.id in c)return c[i.id];try{let r=await import(i.module);return c[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function _1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function T1(i,c,r){let o=await Promise.all(i.map(async d=>{let m=c.routes[d.route.id];if(m){let p=await E1(m,r);return p.links?p.links():[]}return[]}));return j1(o.flat(1).filter(_1).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Mh(i,c,r,o,d,m){let p=(x,y)=>r[y]?x.route.id!==r[y].route.id:!0,E=(x,y)=>{var z;return r[y].pathname!==x.pathname||((z=r[y].route.path)==null?void 0:z.endsWith("*"))&&r[y].params["*"]!==x.params["*"]};return m==="assets"?c.filter((x,y)=>p(x,y)||E(x,y)):m==="data"?c.filter((x,y)=>{var _;let z=o.routes[x.route.id];if(!z||!z.hasLoader)return!1;if(p(x,y)||E(x,y))return!0;if(x.route.shouldRevalidate){let H=x.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((_=r[0])==null?void 0:_.params)||{},nextUrl:new URL(i,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof H=="boolean")return H}return!0}):[]}function z1(i,c,{includeHydrateFallback:r}={}){return N1(i.map(o=>{let d=c.routes[o.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function N1(i){return[...new Set(i)]}function C1(i){let c={},r=Object.keys(i).sort();for(let o of r)c[o]=i[o];return c}function j1(i,c){let r=new Set;return new Set(c),i.reduce((o,d)=>{let m=JSON.stringify(C1(d));return r.has(m)||(r.add(m),o.push({key:m,link:d})),o},[])}function um(){let i=v.useContext(Ga);return io(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function A1(){let i=v.useContext(gi);return io(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var co=v.createContext(void 0);co.displayName="FrameworkContext";function im(){let i=v.useContext(co);return io(i,"You must render this element inside a <HydratedRouter> element"),i}function R1(i,c){let r=v.useContext(co),[o,d]=v.useState(!1),[m,p]=v.useState(!1),{onFocus:E,onBlur:x,onMouseEnter:y,onMouseLeave:z,onTouchStart:_}=c,H=v.useRef(null);v.useEffect(()=>{if(i==="render"&&p(!0),i==="viewport"){let U=q=>{q.forEach(I=>{p(I.isIntersecting)})},Q=new IntersectionObserver(U,{threshold:.5});return H.current&&Q.observe(H.current),()=>{Q.disconnect()}}},[i]),v.useEffect(()=>{if(o){let U=setTimeout(()=>{p(!0)},100);return()=>{clearTimeout(U)}}},[o]);let L=()=>{d(!0)},B=()=>{d(!1),p(!1)};return r?i!=="intent"?[m,H,{}]:[m,H,{onFocus:Yn(E,L),onBlur:Yn(x,B),onMouseEnter:Yn(y,L),onMouseLeave:Yn(z,B),onTouchStart:Yn(_,L)}]:[!1,H,{}]}function Yn(i,c){return r=>{i&&i(r),r.defaultPrevented||c(r)}}function O1({page:i,...c}){let{router:r}=um(),o=v.useMemo(()=>Zh(r.routes,i,r.basename),[r.routes,i,r.basename]);return o?v.createElement(D1,{page:i,matches:o,...c}):null}function M1(i){let{manifest:c,routeModules:r}=im(),[o,d]=v.useState([]);return v.useEffect(()=>{let m=!1;return T1(i,c,r).then(p=>{m||d(p)}),()=>{m=!0}},[i,c,r]),o}function D1({page:i,matches:c,...r}){let o=kt(),{future:d,manifest:m,routeModules:p}=im(),{basename:E}=um(),{loaderData:x,matches:y}=A1(),z=v.useMemo(()=>Mh(i,c,y,m,o,"data"),[i,c,y,m,o]),_=v.useMemo(()=>Mh(i,c,y,m,o,"assets"),[i,c,y,m,o]),H=v.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let U=new Set,Q=!1;if(c.forEach(I=>{var ve;let J=m.routes[I.route.id];!J||!J.hasLoader||(!z.some(me=>me.route.id===I.route.id)&&I.route.id in x&&((ve=p[I.route.id])!=null&&ve.shouldRevalidate)||J.hasClientLoader?Q=!0:U.add(I.route.id))}),U.size===0)return[];let q=S1(i,E,d.unstable_trailingSlashAwareDataRequests,"data");return Q&&U.size>0&&q.searchParams.set("_routes",c.filter(I=>U.has(I.route.id)).map(I=>I.route.id).join(",")),[q.pathname+q.search]},[E,d.unstable_trailingSlashAwareDataRequests,x,o,m,z,c,i,p]),L=v.useMemo(()=>z1(_,m),[_,m]),B=M1(_);return v.createElement(v.Fragment,null,H.map(U=>v.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...r})),L.map(U=>v.createElement("link",{key:U,rel:"modulepreload",href:U,...r})),B.map(({key:U,link:Q})=>v.createElement("link",{key:U,nonce:r.nonce,...Q,crossOrigin:Q.crossOrigin??r.crossOrigin})))}function U1(...i){return c=>{i.forEach(r=>{typeof r=="function"?r(c):r!=null&&(r.current=c)})}}var w1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{w1&&(window.__reactRouterVersion="7.13.1")}catch{}function H1({basename:i,children:c,unstable_useTransitions:r,window:o}){let d=v.useRef();d.current==null&&(d.current=dp({window:o,v5Compat:!0}));let m=d.current,[p,E]=v.useState({action:m.action,location:m.location}),x=v.useCallback(y=>{r===!1?E(y):v.startTransition(()=>E(y))},[r]);return v.useLayoutEffect(()=>m.listen(x),[m,x]),v.createElement(f1,{basename:i,children:c,location:p.location,navigationType:p.action,navigator:m,unstable_useTransitions:r})}var cm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sm=v.forwardRef(function({onClick:c,discover:r="render",prefetch:o="none",relative:d,reloadDocument:m,replace:p,unstable_mask:E,state:x,target:y,to:z,preventScrollReset:_,viewTransition:H,unstable_defaultShouldRevalidate:L,...B},U){let{basename:Q,navigator:q,unstable_useTransitions:I}=v.useContext(bt),J=typeof z=="string"&&cm.test(z),ve=Wh(z,Q);z=ve.to;let me=Zp(z,{relative:d}),Te=kt(),P=null;if(E){let we=vi(E,[],Te.unstable_mask?Te.unstable_mask.pathname:"/",!0);Q!=="/"&&(we.pathname=we.pathname==="/"?Q:Xt([Q,we.pathname])),P=q.createHref(we)}let[Oe,$e,Lt]=R1(o,B),xt=B1(z,{replace:p,unstable_mask:E,state:x,target:y,preventScrollReset:_,relative:d,viewTransition:H,unstable_defaultShouldRevalidate:L,unstable_useTransitions:I});function We(we){c&&c(we),we.defaultPrevented||xt(we)}let Bt=!(ve.isExternal||m),St=v.createElement("a",{...B,...Lt,href:(Bt?P:void 0)||ve.absoluteURL||me,onClick:Bt?We:c,ref:U1(U,$e),target:y,"data-discover":!J&&r==="render"?"true":void 0});return Oe&&!J?v.createElement(v.Fragment,null,St,v.createElement(O1,{page:me})):St});sm.displayName="Link";var yi=v.forwardRef(function({"aria-current":c="page",caseSensitive:r=!1,className:o="",end:d=!1,style:m,to:p,viewTransition:E,children:x,...y},z){let _=Vn(p,{relative:y.relative}),H=kt(),L=v.useContext(gi),{navigator:B,basename:U}=v.useContext(bt),Q=L!=null&&X1(_)&&E===!0,q=B.encodeLocation?B.encodeLocation(_).pathname:_.pathname,I=H.pathname,J=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;r||(I=I.toLowerCase(),J=J?J.toLowerCase():null,q=q.toLowerCase()),J&&U&&(J=ol(J,U)||J);const ve=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let me=I===q||!d&&I.startsWith(q)&&I.charAt(ve)==="/",Te=J!=null&&(J===q||!d&&J.startsWith(q)&&J.charAt(q.length)==="/"),P={isActive:me,isPending:Te,isTransitioning:Q},Oe=me?c:void 0,$e;typeof o=="function"?$e=o(P):$e=[o,me?"active":null,Te?"pending":null,Q?"transitioning":null].filter(Boolean).join(" ");let Lt=typeof m=="function"?m(P):m;return v.createElement(sm,{...y,"aria-current":Oe,className:$e,ref:z,style:Lt,to:p,viewTransition:E},typeof x=="function"?x(P):x)});yi.displayName="NavLink";var k1=v.forwardRef(({discover:i="render",fetcherKey:c,navigate:r,reloadDocument:o,replace:d,state:m,method:p=fi,action:E,onSubmit:x,relative:y,preventScrollReset:z,viewTransition:_,unstable_defaultShouldRevalidate:H,...L},B)=>{let{unstable_useTransitions:U}=v.useContext(bt),Q=G1(),q=Q1(E,{relative:y}),I=p.toLowerCase()==="get"?"get":"post",J=typeof E=="string"&&cm.test(E),ve=me=>{if(x&&x(me),me.defaultPrevented)return;me.preventDefault();let Te=me.nativeEvent.submitter,P=(Te==null?void 0:Te.getAttribute("formmethod"))||p,Oe=()=>Q(Te||me.currentTarget,{fetcherKey:c,method:P,navigate:r,replace:d,state:m,relative:y,preventScrollReset:z,viewTransition:_,unstable_defaultShouldRevalidate:H});U&&r!==!1?v.startTransition(()=>Oe()):Oe()};return v.createElement("form",{ref:B,method:I,action:q,onSubmit:o?x:ve,...L,"data-discover":!J&&i==="render"?"true":void 0})});k1.displayName="Form";function L1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function om(i){let c=v.useContext(Ga);return je(c,L1(i)),c}function B1(i,{target:c,replace:r,unstable_mask:o,state:d,preventScrollReset:m,relative:p,viewTransition:E,unstable_defaultShouldRevalidate:x,unstable_useTransitions:y}={}){let z=ao(),_=kt(),H=Vn(i,{relative:p});return v.useCallback(L=>{if(v1(L,c)){L.preventDefault();let B=r!==void 0?r:Qn(_)===Qn(H),U=()=>z(i,{replace:B,unstable_mask:o,state:d,preventScrollReset:m,relative:p,viewTransition:E,unstable_defaultShouldRevalidate:x});y?v.startTransition(()=>U()):U()}},[_,z,H,r,o,d,c,i,m,p,E,x,y])}var q1=0,Y1=()=>`__${String(++q1)}__`;function G1(){let{router:i}=om("useSubmit"),{basename:c}=v.useContext(bt),r=u1(),o=i.fetch,d=i.navigate;return v.useCallback(async(m,p={})=>{let{action:E,method:x,encType:y,formData:z,body:_}=x1(m,c);if(p.navigate===!1){let H=p.fetcherKey||Y1();await o(H,r,p.action||E,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:z,body:_,formMethod:p.method||x,formEncType:p.encType||y,flushSync:p.flushSync})}else await d(p.action||E,{unstable_defaultShouldRevalidate:p.unstable_defaultShouldRevalidate,preventScrollReset:p.preventScrollReset,formData:z,body:_,formMethod:p.method||x,formEncType:p.encType||y,replace:p.replace,state:p.state,fromRouteId:r,flushSync:p.flushSync,viewTransition:p.viewTransition})},[o,d,c,r])}function Q1(i,{relative:c}={}){let{basename:r}=v.useContext(bt),o=v.useContext(Mt);je(o,"useFormAction must be used inside a RouteContext");let[d]=o.matches.slice(-1),m={...Vn(i||".",{relative:c})},p=kt();if(i==null){m.search=p.search;let E=new URLSearchParams(m.search),x=E.getAll("index");if(x.some(z=>z==="")){E.delete("index"),x.filter(_=>_).forEach(_=>E.append("index",_));let z=E.toString();m.search=z?`?${z}`:""}}return(!i||i===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:Xt([r,m.pathname])),Qn(m)}function X1(i,{relative:c}={}){let r=v.useContext(Ih);je(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=om("useViewTransitionState"),d=Vn(i,{relative:c});if(!r.isTransitioning)return!1;let m=ol(r.currentLocation.pathname,o)||r.currentLocation.pathname,p=ol(r.nextLocation.pathname,o)||r.nextLocation.pathname;return mi(d.pathname,p)!=null||mi(d.pathname,m)!=null}const V1="modulepreload",Z1=function(i){return"/lab/"+i},Dh={},tt=function(c,r,o){let d=Promise.resolve();if(r&&r.length>0){let p=function(y){return Promise.all(y.map(z=>Promise.resolve(z).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const E=document.querySelector("meta[property=csp-nonce]"),x=(E==null?void 0:E.nonce)||(E==null?void 0:E.getAttribute("nonce"));d=p(r.map(y=>{if(y=Z1(y),y in Dh)return;Dh[y]=!0;const z=y.endsWith(".css"),_=z?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${_}`))return;const H=document.createElement("link");if(H.rel=z?"stylesheet":V1,z||(H.as="script"),H.crossOrigin="",H.href=y,x&&H.setAttribute("nonce",x),document.head.appendChild(H),z)return new Promise((L,B)=>{H.addEventListener("load",L),H.addEventListener("error",()=>B(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(p){const E=new Event("vite:preloadError",{cancelable:!0});if(E.payload=p,window.dispatchEvent(E),!E.defaultPrevented)throw p}return d.then(p=>{for(const E of p||[])E.status==="rejected"&&m(E.reason);return c().catch(m)})};/**
62
- * @license lucide-react v0.577.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const rm=(...i)=>i.filter((c,r,o)=>!!c&&c.trim()!==""&&o.indexOf(c)===r).join(" ").trim();/**
67
- * @license lucide-react v0.577.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const J1=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
72
- * @license lucide-react v0.577.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const K1=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(c,r,o)=>o?o.toUpperCase():r.toLowerCase());/**
77
- * @license lucide-react v0.577.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const Uh=i=>{const c=K1(i);return c.charAt(0).toUpperCase()+c.slice(1)};/**
82
- * @license lucide-react v0.577.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */var $1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
87
- * @license lucide-react v0.577.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const W1=i=>{for(const c in i)if(c.startsWith("aria-")||c==="role"||c==="title")return!0;return!1};/**
92
- * @license lucide-react v0.577.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const F1=v.forwardRef(({color:i="currentColor",size:c=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:d="",children:m,iconNode:p,...E},x)=>v.createElement("svg",{ref:x,...$1,width:c,height:c,stroke:i,strokeWidth:o?Number(r)*24/Number(c):r,className:rm("lucide",d),...!m&&!W1(E)&&{"aria-hidden":"true"},...E},[...p.map(([y,z])=>v.createElement(y,z)),...Array.isArray(m)?m:[m]]));/**
97
- * @license lucide-react v0.577.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const W=(i,c)=>{const r=v.forwardRef(({className:o,...d},m)=>v.createElement(F1,{ref:m,iconNode:c,className:rm(`lucide-${J1(Uh(i))}`,`lucide-${i}`,o),...d}));return r.displayName=Uh(i),r};/**
102
- * @license lucide-react v0.577.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const I1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],fm=W("arrow-left",I1);/**
107
- * @license lucide-react v0.577.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const P1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],dm=W("arrow-right",P1);/**
112
- * @license lucide-react v0.577.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const ev=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],hm=W("book-open",ev);/**
117
- * @license lucide-react v0.577.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const tv=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],lv=W("chart-column",tv);/**
122
- * @license lucide-react v0.577.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const av=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nv=W("chevron-down",av);/**
127
- * @license lucide-react v0.577.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const uv=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],wh=W("chevron-right",uv);/**
132
- * @license lucide-react v0.577.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const iv=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],mm=W("chevron-up",iv);/**
137
- * @license lucide-react v0.577.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const cv=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],sv=W("circle-check-big",cv);/**
142
- * @license lucide-react v0.577.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const ov=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],rv=W("circle-check",ov);/**
147
- * @license lucide-react v0.577.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ym=W("circle-question-mark",fv);/**
152
- * @license lucide-react v0.577.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */const dv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],hv=W("circle-x",dv);/**
157
- * @license lucide-react v0.577.0 - ISC
158
- *
159
- * This source code is licensed under the ISC license.
160
- * See the LICENSE file in the root directory of this source tree.
161
- */const mv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],yv=W("circle",mv);/**
162
- * @license lucide-react v0.577.0 - ISC
163
- *
164
- * This source code is licensed under the ISC license.
165
- * See the LICENSE file in the root directory of this source tree.
166
- */const pv=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],vv=W("cpu",pv);/**
167
- * @license lucide-react v0.577.0 - ISC
168
- *
169
- * This source code is licensed under the ISC license.
170
- * See the LICENSE file in the root directory of this source tree.
171
- */const gv=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],bv=W("external-link",gv);/**
172
- * @license lucide-react v0.577.0 - ISC
173
- *
174
- * This source code is licensed under the ISC license.
175
- * See the LICENSE file in the root directory of this source tree.
176
- */const xv=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],pm=W("eye",xv);/**
177
- * @license lucide-react v0.577.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */const Sv=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],vm=W("file-text",Sv);/**
182
- * @license lucide-react v0.577.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */const Ev=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],_v=W("folder-kanban",Ev);/**
187
- * @license lucide-react v0.577.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const Tv=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8",key:"1sqzm4"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5",key:"kc0143"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1",key:"1hberx"}]],zv=W("gift",Tv);/**
192
- * @license lucide-react v0.577.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const Nv=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Cv=W("git-branch",Nv);/**
197
- * @license lucide-react v0.577.0 - ISC
198
- *
199
- * This source code is licensed under the ISC license.
200
- * See the LICENSE file in the root directory of this source tree.
201
- */const jv=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]],Av=W("git-compare",jv);/**
202
- * @license lucide-react v0.577.0 - ISC
203
- *
204
- * This source code is licensed under the ISC license.
205
- * See the LICENSE file in the root directory of this source tree.
206
- */const Rv=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],Ov=W("house",Rv);/**
207
- * @license lucide-react v0.577.0 - ISC
208
- *
209
- * This source code is licensed under the ISC license.
210
- * See the LICENSE file in the root directory of this source tree.
211
- */const Mv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Dv=W("info",Mv);/**
212
- * @license lucide-react v0.577.0 - ISC
213
- *
214
- * This source code is licensed under the ISC license.
215
- * See the LICENSE file in the root directory of this source tree.
216
- */const Uv=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],gm=W("keyboard",Uv);/**
217
- * @license lucide-react v0.577.0 - ISC
218
- *
219
- * This source code is licensed under the ISC license.
220
- * See the LICENSE file in the root directory of this source tree.
221
- */const wv=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1",key:"f1a2em"}],["rect",{width:"9",height:"7",x:"3",y:"14",rx:"1",key:"jqznyg"}],["rect",{width:"5",height:"7",x:"16",y:"14",rx:"1",key:"q5h2i8"}]],so=W("layout-template",wv);/**
222
- * @license lucide-react v0.577.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const Hv=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],kv=W("list-checks",Hv);/**
227
- * @license lucide-react v0.577.0 - ISC
228
- *
229
- * This source code is licensed under the ISC license.
230
- * See the LICENSE file in the root directory of this source tree.
231
- */const Lv=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Bv=W("log-out",Lv);/**
232
- * @license lucide-react v0.577.0 - ISC
233
- *
234
- * This source code is licensed under the ISC license.
235
- * See the LICENSE file in the root directory of this source tree.
236
- */const qv=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Yv=W("menu",qv);/**
237
- * @license lucide-react v0.577.0 - ISC
238
- *
239
- * This source code is licensed under the ISC license.
240
- * See the LICENSE file in the root directory of this source tree.
241
- */const Gv=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],oo=W("message-square",Gv);/**
242
- * @license lucide-react v0.577.0 - ISC
243
- *
244
- * This source code is licensed under the ISC license.
245
- * See the LICENSE file in the root directory of this source tree.
246
- */const Qv=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Xv=W("monitor",Qv);/**
247
- * @license lucide-react v0.577.0 - ISC
248
- *
249
- * This source code is licensed under the ISC license.
250
- * See the LICENSE file in the root directory of this source tree.
251
- */const Vv=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Zv=W("moon",Vv);/**
252
- * @license lucide-react v0.577.0 - ISC
253
- *
254
- * This source code is licensed under the ISC license.
255
- * See the LICENSE file in the root directory of this source tree.
256
- */const Jv=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Kv=W("palette",Jv);/**
257
- * @license lucide-react v0.577.0 - ISC
258
- *
259
- * This source code is licensed under the ISC license.
260
- * See the LICENSE file in the root directory of this source tree.
261
- */const $v=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Wv=W("panel-left-close",$v);/**
262
- * @license lucide-react v0.577.0 - ISC
263
- *
264
- * This source code is licensed under the ISC license.
265
- * See the LICENSE file in the root directory of this source tree.
266
- */const Fv=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Iv=W("panel-left",Fv);/**
267
- * @license lucide-react v0.577.0 - ISC
268
- *
269
- * This source code is licensed under the ISC license.
270
- * See the LICENSE file in the root directory of this source tree.
271
- */const Pv=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],bm=W("play",Pv);/**
272
- * @license lucide-react v0.577.0 - ISC
273
- *
274
- * This source code is licensed under the ISC license.
275
- * See the LICENSE file in the root directory of this source tree.
276
- */const eg=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],ro=W("rocket",eg);/**
277
- * @license lucide-react v0.577.0 - ISC
278
- *
279
- * This source code is licensed under the ISC license.
280
- * See the LICENSE file in the root directory of this source tree.
281
- */const tg=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lg=W("search",tg);/**
282
- * @license lucide-react v0.577.0 - ISC
283
- *
284
- * This source code is licensed under the ISC license.
285
- * See the LICENSE file in the root directory of this source tree.
286
- */const ag=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],xm=W("settings-2",ag);/**
287
- * @license lucide-react v0.577.0 - ISC
288
- *
289
- * This source code is licensed under the ISC license.
290
- * See the LICENSE file in the root directory of this source tree.
291
- */const ng=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],ug=W("shield-check",ng);/**
292
- * @license lucide-react v0.577.0 - ISC
293
- *
294
- * This source code is licensed under the ISC license.
295
- * See the LICENSE file in the root directory of this source tree.
296
- */const ig=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],cg=W("shield",ig);/**
297
- * @license lucide-react v0.577.0 - ISC
298
- *
299
- * This source code is licensed under the ISC license.
300
- * See the LICENSE file in the root directory of this source tree.
301
- */const sg=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],og=W("skip-forward",sg);/**
302
- * @license lucide-react v0.577.0 - ISC
303
- *
304
- * This source code is licensed under the ISC license.
305
- * See the LICENSE file in the root directory of this source tree.
306
- */const rg=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],fo=W("sparkles",rg);/**
307
- * @license lucide-react v0.577.0 - ISC
308
- *
309
- * This source code is licensed under the ISC license.
310
- * See the LICENSE file in the root directory of this source tree.
311
- */const fg=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],dg=W("star",fg);/**
312
- * @license lucide-react v0.577.0 - ISC
313
- *
314
- * This source code is licensed under the ISC license.
315
- * See the LICENSE file in the root directory of this source tree.
316
- */const hg=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],mg=W("sun",hg);/**
317
- * @license lucide-react v0.577.0 - ISC
318
- *
319
- * This source code is licensed under the ISC license.
320
- * See the LICENSE file in the root directory of this source tree.
321
- */const yg=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],pg=W("terminal",yg);/**
322
- * @license lucide-react v0.577.0 - ISC
323
- *
324
- * This source code is licensed under the ISC license.
325
- * See the LICENSE file in the root directory of this source tree.
326
- */const vg=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gg=W("triangle-alert",vg);/**
327
- * @license lucide-react v0.577.0 - ISC
328
- *
329
- * This source code is licensed under the ISC license.
330
- * See the LICENSE file in the root directory of this source tree.
331
- */const bg=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],xg=W("users",bg);/**
332
- * @license lucide-react v0.577.0 - ISC
333
- *
334
- * This source code is licensed under the ISC license.
335
- * See the LICENSE file in the root directory of this source tree.
336
- */const Sg=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],Eg=W("video",Sg);/**
337
- * @license lucide-react v0.577.0 - ISC
338
- *
339
- * This source code is licensed under the ISC license.
340
- * See the LICENSE file in the root directory of this source tree.
341
- */const _g=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Tg=W("wand-sparkles",_g);/**
342
- * @license lucide-react v0.577.0 - ISC
343
- *
344
- * This source code is licensed under the ISC license.
345
- * See the LICENSE file in the root directory of this source tree.
346
- */const zg=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Ng=W("wrench",zg);/**
347
- * @license lucide-react v0.577.0 - ISC
348
- *
349
- * This source code is licensed under the ISC license.
350
- * See the LICENSE file in the root directory of this source tree.
351
- */const Cg=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ea=W("x",Cg);/**
352
- * @license lucide-react v0.577.0 - ISC
353
- *
354
- * This source code is licensed under the ISC license.
355
- * See the LICENSE file in the root directory of this source tree.
356
- */const jg=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Ag=W("zap",jg),ho="/lab/".replace(/\/$/,""),hi=`${window.location.origin}${ho}/api`,Rg=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}${ho}/ws`,k2=ho;function Sm(){const i={"Content-Type":"application/json"};try{const c=localStorage.getItem("pl_auth_token");c&&(i.Authorization=`Bearer ${c}`)}catch{}return i}async function k(i,c){const r=await fetch(`${hi}${i}`,{...c,headers:{...Sm(),...c==null?void 0:c.headers}});if(!r.ok){const d=await r.text().catch(()=>"");throw new Error(`API error ${r.status}: ${r.statusText}${d?` - ${d}`:""}`)}if(!(r.headers.get("content-type")||"").includes("application/json"))throw new Error("API endpoint not available. Please restart the server with the latest version.");return r.json()}const Ba={listProofs:()=>k("/proofs"),proofsSummary:()=>k("/proofs/summary"),getProof:i=>k(`/proofs/${encodeURIComponent(i)}`),startSession:i=>k("/session/start",{method:"POST",body:JSON.stringify(i)}),quickStart:(i,c="claude")=>k("/session/quick-start",{method:"POST",body:JSON.stringify({prompt:i,provider:c})}),stopSession:()=>k("/session/stop",{method:"POST"}),pauseSession:()=>k("/session/pause",{method:"POST"}),resumeSession:()=>k("/session/resume",{method:"POST"}),getPrdPrefill:()=>k("/session/prd-prefill"),getStatus:()=>k("/session/status"),getAgents:()=>k("/session/agents"),getLogs:(i=200)=>k(`/session/logs?lines=${i}`),getMemorySummary:()=>k("/session/memory"),getChecklist:()=>k("/session/checklist"),getFiles:()=>k("/session/files"),getFileContent:i=>k(`/session/files/content?path=${encodeURIComponent(i)}`),getSessionFileContent:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/file?path=${encodeURIComponent(c)}`),getTemplates:()=>k("/templates"),getTemplateContent:i=>k(`/templates/${encodeURIComponent(i)}`),planSession:(i,c)=>k("/session/plan",{method:"POST",body:JSON.stringify({prd:i,provider:c})}),generateReport:(i="markdown")=>k("/session/report",{method:"POST",body:JSON.stringify({format:i})}),shareSession:()=>k("/session/share",{method:"POST"}),getCurrentProvider:()=>k("/provider/current"),setProvider:i=>k("/provider/set",{method:"POST",body:JSON.stringify({provider:i})}),getMetrics:()=>k("/session/metrics"),getSessionsHistory:()=>k("/sessions/history"),getSessionDetail:i=>k(`/sessions/${encodeURIComponent(i)}`),deleteSession:i=>k(`/sessions/${encodeURIComponent(i)}`,{method:"DELETE"}),onboardRepo:i=>k("/session/onboard",{method:"POST",body:JSON.stringify({path:i})}),saveSessionFile:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/file`,{method:"PUT",body:JSON.stringify({path:c,content:r})}),createSessionFile:(i,c,r="")=>k(`/sessions/${encodeURIComponent(i)}/file`,{method:"POST",body:JSON.stringify({path:c,content:r})}),deleteSessionFile:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/file`,{method:"DELETE",body:JSON.stringify({path:c})}),createSessionDirectory:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/directory`,{method:"POST",body:JSON.stringify({path:c})}),reviewProject:i=>k(`/sessions/${encodeURIComponent(i)}/review`,{method:"POST"}),testProject:i=>k(`/sessions/${encodeURIComponent(i)}/test`,{method:"POST"}),explainProject:i=>k(`/sessions/${encodeURIComponent(i)}/explain`,{method:"POST"}),exportProject:i=>k(`/sessions/${encodeURIComponent(i)}/export`,{method:"POST"}),fixProject:i=>k(`/sessions/${encodeURIComponent(i)}/fix`,{method:"POST"}),chatMessage:(i,c,r="quick")=>k(`/sessions/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify({message:c,mode:r})}),chatStart:(i,c,r="quick",o)=>k(`/sessions/${encodeURIComponent(i)}/chat`,{method:"POST",body:JSON.stringify({message:c,mode:r,history:o})}),chatPoll:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/chat/${encodeURIComponent(c)}`),chatStreamUrl:(i,c)=>`${hi}/sessions/${encodeURIComponent(i)}/chat/${encodeURIComponent(c)}/stream`,chatCancel:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/chat/${encodeURIComponent(c)}/cancel`,{method:"POST"}),getPreviewInfo:i=>k(`/sessions/${encodeURIComponent(i)}/preview-info`),devserver:{start:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/devserver/start`,{method:"POST",body:JSON.stringify({command:c||null})}),stop:i=>k(`/sessions/${encodeURIComponent(i)}/devserver/stop`,{method:"POST"}),status:i=>k(`/sessions/${encodeURIComponent(i)}/devserver/status`)},getSecrets:()=>k("/secrets"),setSecret:(i,c)=>k("/secrets",{method:"POST",body:JSON.stringify({key:i,value:c})}),deleteSecret:i=>k(`/secrets/${encodeURIComponent(i)}`,{method:"DELETE"}),getServices:i=>k(`/sessions/${encodeURIComponent(i)}/services`),getTeams:()=>k("/teams"),createTeam:i=>k("/teams",{method:"POST",body:JSON.stringify({name:i})}),getTeamMembers:i=>k(`/teams/${encodeURIComponent(i)}/members`),addTeamMember:(i,c,r)=>k(`/teams/${encodeURIComponent(i)}/members`,{method:"POST",body:JSON.stringify({email:c,role:r})}),getCost:()=>k("/cost"),getCostTimeline:()=>k("/cost/timeline"),getAuditLog:()=>k("/audit-log"),getServiceLogs:(i,c,r=50)=>k(`/sessions/${encodeURIComponent(i)}/devserver/logs?${new URLSearchParams({...c?{service:c}:{},tail:String(r)}).toString()}`),getCheckpoints:i=>k(`/sessions/${encodeURIComponent(i)}/checkpoints`),restoreCheckpoint:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/checkpoints/${encodeURIComponent(c)}/restore`,{method:"POST"}),previewChanges:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/chat/preview`,{method:"POST",body:JSON.stringify({message:c})}),searchFiles:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/files/search?q=${encodeURIComponent(c)}`),restartService:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/devserver/restart-service`,{method:"POST",body:JSON.stringify({service:c})}),deployProject:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/deploy`,{method:"POST",body:JSON.stringify({platform:c})}),githubPush:i=>k(`/sessions/${encodeURIComponent(i)}/github/push`,{method:"POST"}),getGitHubIssues:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/github/issues?${new URLSearchParams({...c?{state:c}:{},...r?{limit:String(r)}:{}}).toString()}`),getGitHubIssue:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/issues/${c}`),fixGitHubIssue:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/issues/${c}/fix`,{method:"POST"}),getGitHubPRs:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/github/prs?${new URLSearchParams({...c?{state:c}:{},...r?{limit:String(r)}:{}}).toString()}`),getGitHubPR:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/prs/${c}`),getGitHubPRDiff:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/prs/${c}/diff`),reviewGitHubPR:(i,c,r,o)=>k(`/sessions/${encodeURIComponent(i)}/github/prs/${c}/review`,{method:"POST",body:JSON.stringify({action:r,body:o})}),mergeGitHubPR:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/github/prs/${c}/merge`,{method:"POST",body:JSON.stringify({method:r})}),getWorkflowRuns:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/actions/runs?${new URLSearchParams({...c?{limit:String(c)}:{}}).toString()}`),getWorkflowRunDetail:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/actions/runs/${c}`),getWorkflowRunLogs:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/actions/runs/${c}/logs`),getWorkflows:i=>k(`/sessions/${encodeURIComponent(i)}/github/actions/workflows`),dispatchWorkflow:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/github/actions/dispatch`,{method:"POST",body:JSON.stringify({workflow:c,ref:r})}),rerunWorkflow:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/actions/runs/${c}/rerun`,{method:"POST"}),cancelWorkflow:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/github/actions/runs/${c}/cancel`,{method:"POST"}),importGitHubRepo:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/github/import`,{method:"POST",body:JSON.stringify({repo:c,...r?{branch:r}:{}})}),getDeployStatus:()=>k("/deploy/status"),connectVercel:i=>k("/deploy/vercel/token",{method:"POST",body:JSON.stringify({token:i})}),connectNetlify:i=>k("/deploy/netlify/token",{method:"POST",body:JSON.stringify({token:i})}),disconnectPlatform:i=>k(`/deploy/${encodeURIComponent(i)}/disconnect`,{method:"POST"}),getMe:()=>k("/auth/me"),getGitHubAuthUrl:()=>k("/auth/github/url"),getGoogleAuthUrl:()=>k("/auth/google/url"),githubCallback:(i,c)=>k("/auth/github/callback",{method:"POST",body:JSON.stringify({code:i,state:c})}),googleCallback:(i,c,r)=>k("/auth/google/callback",{method:"POST",body:JSON.stringify({code:i,state:c,redirect_uri:r||`${window.location.origin}${window.location.pathname}`})}),git:{status:i=>k(`/sessions/${encodeURIComponent(i)}/git/status`),log:(i,c=20)=>k(`/sessions/${encodeURIComponent(i)}/git/log?limit=${c}`),branches:i=>k(`/sessions/${encodeURIComponent(i)}/git/branches`),commit:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/git/commit`,{method:"POST",body:JSON.stringify({message:c,files:r})}),createBranch:(i,c,r=!0)=>k(`/sessions/${encodeURIComponent(i)}/git/branch`,{method:"POST",body:JSON.stringify({name:c,checkout:r})}),checkoutBranch:(i,c)=>k(`/sessions/${encodeURIComponent(i)}/git/checkout`,{method:"POST",body:JSON.stringify({name:c})}),push:i=>k(`/sessions/${encodeURIComponent(i)}/git/push`,{method:"POST"}),pr:(i,c,r)=>k(`/sessions/${encodeURIComponent(i)}/git/pr`,{method:"POST",body:JSON.stringify({title:c,body:r})})},generateDocs:i=>k(`/sessions/${encodeURIComponent(i)}/docs/generate`,{method:"POST"}),getDocsStatus:i=>k(`/sessions/${encodeURIComponent(i)}/docs/status`),getDocFiles:i=>k(`/sessions/${encodeURIComponent(i)}/docs/files`),getDocFileContent:async(i,c)=>{const r=await fetch(`${hi}/sessions/${encodeURIComponent(i)}/docs/files/${encodeURIComponent(c)}`,{headers:Sm()});if(!r.ok)throw new Error(`API error ${r.status}: ${r.statusText}`);return r.text()},chatImageUpload:async(i,c)=>{const r=new FormData;r.append("image",c);const o=await fetch(`${hi}/sessions/${encodeURIComponent(i)}/chat/image`,{method:"POST",headers:{...(()=>{const d={};try{const m=localStorage.getItem("pl_auth_token");m&&(d.Authorization=`Bearer ${m}`)}catch{}return d})()},body:r});if(!o.ok){const d=await o.text().catch(()=>"");throw new Error(`API error ${o.status}: ${o.statusText}${d?` - ${d}`:""}`)}return o.json()}};class Og{constructor(c){Ln(this,"ws",null);Ln(this,"listeners",new Map);Ln(this,"reconnectTimer",null);Ln(this,"url");this.url=c||Rg}connect(){var c;((c=this.ws)==null?void 0:c.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{this.emit("connected",{message:"WebSocket connected"})},this.ws.onmessage=r=>{try{const o=JSON.parse(r.data);if(o.type==="ping"){this.send({type:"pong"});return}this.emit(o.type,o.data||o)}catch{}},this.ws.onclose=()=>{this.emit("disconnected",{}),this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},3e3))}on(c,r){return this.listeners.has(c)||this.listeners.set(c,new Set),this.listeners.get(c).add(r),()=>{var o;return(o=this.listeners.get(c))==null?void 0:o.delete(r)}}emit(c,r){var o,d;(o=this.listeners.get(c))==null||o.forEach(m=>m(r)),(d=this.listeners.get("*"))==null||d.forEach(m=>m({type:c,data:r}))}send(c){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(c))}disconnect(){var c;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(c=this.ws)==null||c.close(),this.ws=null}}const Js="pl_auth_token",Em=v.createContext({user:null,loading:!0,login:()=>{},logout:()=>{},isLocalMode:!0});function Mg(i,c,r){c(!1),r({email:i.sub||i.email||"",name:i.name||"",avatar_url:i.avatar||"",authenticated:!0})}function Dg({children:i}){const[c,r]=v.useState(null),[o,d]=v.useState(!0),[m,p]=v.useState(!0),E=ao(),x=kt();v.useEffect(()=>{let H=!1;async function L(){const B=new URLSearchParams(window.location.search),U=B.get("token"),Q=B.get("code");if(U)localStorage.setItem(Js,U),window.history.replaceState({},"",window.location.pathname);else if(Q)try{const q=sessionStorage.getItem("pl_oauth_provider")||"github",I=sessionStorage.getItem("pl_oauth_state")||"";sessionStorage.removeItem("pl_oauth_state"),sessionStorage.removeItem("pl_oauth_provider");let J;if(q==="google"?J=await Ba.googleCallback(Q,I):J=await Ba.githubCallback(Q,I),!H){localStorage.setItem(Js,J.token),window.history.replaceState({},"",window.location.pathname),p(!1),r({email:J.user.email,name:J.user.name,avatar_url:J.user.avatar_url,authenticated:!0}),d(!1);return}}catch{window.history.replaceState({},"",window.location.pathname)}try{const q=await Ba.getMe();if(H)return;q.local_mode?(p(!0),r(null)):q.authenticated?Mg(q,p,r):(p(!1),r(null))}catch{if(H)return;p(!0),r(null)}finally{H||d(!1)}}return L(),()=>{H=!0}},[]);const y=v.useCallback(H=>{H==="github"?Ba.getGitHubAuthUrl().then(L=>{try{const U=new URL(L.url).searchParams.get("state");U&&(sessionStorage.setItem("pl_oauth_state",U),sessionStorage.setItem("pl_oauth_provider","github"))}catch{}window.location.href=L.url}).catch(()=>{}):H==="google"&&Ba.getGoogleAuthUrl().then(L=>{try{const U=new URL(L.url).searchParams.get("state");U&&(sessionStorage.setItem("pl_oauth_state",U),sessionStorage.setItem("pl_oauth_provider","google"))}catch{}window.location.href=L.url}).catch(()=>{})},[]),z=v.useCallback(()=>{localStorage.removeItem(Js),r(null),x.pathname!=="/login"&&E("/login",{replace:!0})},[E,x.pathname]),_=v.useMemo(()=>({user:c,loading:o,login:y,logout:z,isLocalMode:m}),[c,o,y,z,m]);return h.jsx(Em.Provider,{value:_,children:i})}function _m(){return v.useContext(Em)}function Ug(){const[i,c]=v.useState(()=>typeof window>"u"?"light":localStorage.getItem("pl_theme")||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"));v.useEffect(()=>{document.documentElement.classList.toggle("dark",i==="dark"),localStorage.setItem("pl_theme",i)},[i]);const r=v.useCallback(()=>{c(o=>o==="light"?"dark":"light")},[]);return{theme:i,toggleTheme:r,isDark:i==="dark"}}const Tm="pl_discovered_features";function zm(){try{const i=localStorage.getItem(Tm);if(i)return new Set(JSON.parse(i))}catch{}return new Set}function wg(i){try{localStorage.setItem(Tm,JSON.stringify([...i]))}catch{}}function Hg(i){const c=zm();c.has(i)||(c.add(i),wg(c),window.dispatchEvent(new CustomEvent("pl_feature_discovered",{detail:i})))}function kg({feature:i,className:c=""}){const[r,o]=v.useState(!0);return v.useEffect(()=>{o(zm().has(i))},[i]),v.useEffect(()=>{const d=m=>{m.detail===i&&o(!0)};return window.addEventListener("pl_feature_discovered",d),()=>window.removeEventListener("pl_feature_discovered",d)},[i]),r?null:h.jsxs("span",{className:`relative inline-flex ${c}`,"aria-hidden":"true",children:[h.jsx("span",{className:"absolute inline-flex h-2.5 w-2.5 rounded-full bg-primary/40 animate-ping"}),h.jsx("span",{className:"relative inline-flex h-2.5 w-2.5 rounded-full bg-primary"})]})}const Nm="pl_getting_started_steps",Hh="pl_getting_started_dismissed",kh="pl_getting_started_collapsed",Lh=[{id:"create_project",label:"Create your first project",description:"Describe what you want to build or pick a template to get started.",icon:vm},{id:"try_chat",label:"Try the AI chat",description:"Ask the AI to modify, explain, or improve your code.",icon:oo},{id:"preview_app",label:"Preview your app",description:"Open the Preview tab to see your application running live.",icon:pm},{id:"explore_templates",label:"Explore templates",description:"Browse the template gallery for inspiration and quick starts.",icon:so},{id:"deploy_app",label:"Deploy your app",description:"Push your project live with one click using the Deploy tab.",icon:ro}];function Bh(){try{const i=localStorage.getItem(Nm);if(i)return new Set(JSON.parse(i))}catch{}return new Set}function Lg(i){try{localStorage.setItem(Nm,JSON.stringify([...i]))}catch{}}function Bg(){const[i,c]=v.useState(!1),[r,o]=v.useState(!1),[d,m]=v.useState(new Set);v.useEffect(()=>{try{if(localStorage.getItem(Hh)==="1"){c(!0);return}o(localStorage.getItem(kh)==="1")}catch{}m(Bh())},[]),v.useEffect(()=>{const L=()=>m(Bh());return window.addEventListener("pl_step_complete",L),()=>window.removeEventListener("pl_step_complete",L)},[]);const p=v.useCallback(L=>{m(B=>{const U=new Set(B);return U.has(L)?U.delete(L):U.add(L),Lg(U),U})},[]),E=()=>{c(!0);try{localStorage.setItem(Hh,"1")}catch{}},x=()=>{o(L=>{const B=!L;try{localStorage.setItem(kh,B?"1":"0")}catch{}return B})};if(i)return null;const y=d.size,z=Lh.length,_=y/z*100,H=y===z;return h.jsxs("div",{className:"bg-card border border-border rounded-xl shadow-sm overflow-hidden",children:[h.jsxs("button",{onClick:x,className:"w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-hover transition-colors",children:[h.jsx(kv,{size:16,className:"text-primary flex-shrink-0"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-sm font-heading font-bold text-ink",children:"Getting Started"}),h.jsxs("span",{className:"text-[11px] text-muted-accessible font-mono",children:[y,"/",z]})]}),h.jsx("div",{className:"h-1 bg-border rounded-full mt-1.5 overflow-hidden",children:h.jsx("div",{className:"h-full bg-primary rounded-full transition-all duration-500",style:{width:`${_}%`}})})]}),h.jsx("div",{className:"flex items-center gap-1",children:r?h.jsx(nv,{size:14,className:"text-muted"}):h.jsx(mm,{size:14,className:"text-muted"})})]}),!r&&h.jsxs("div",{className:"border-t border-border",children:[h.jsx("div",{className:"px-3 py-2 space-y-0.5",children:Lh.map(L=>{const B=d.has(L.id),U=L.icon;return h.jsxs("button",{onClick:()=>p(L.id),className:`w-full flex items-start gap-3 px-3 py-2.5 rounded-lg text-left transition-colors ${B?"opacity-60 hover:opacity-80":"hover:bg-hover"}`,children:[h.jsx("div",{className:"mt-0.5 flex-shrink-0",children:B?h.jsx(rv,{size:16,className:"text-success"}):h.jsx(yv,{size:16,className:"text-border"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:`text-xs font-medium ${B?"text-muted line-through":"text-ink"}`,children:L.label}),!B&&h.jsx("p",{className:"text-[11px] text-muted-accessible mt-0.5 leading-relaxed",children:L.description})]}),h.jsx(U,{size:14,className:`flex-shrink-0 mt-0.5 ${B?"text-muted":"text-primary/50"}`})]},L.id)})}),h.jsxs("div",{className:"flex items-center justify-between px-4 py-2.5 border-t border-border",children:[H?h.jsx("span",{className:"text-xs text-success font-medium",children:"All done -- you are ready to build!"}):h.jsx("span",{className:"text-[11px] text-muted",children:"Complete each step to learn the basics."}),h.jsxs("button",{onClick:E,className:"flex items-center gap-1 text-[11px] text-muted hover:text-ink transition-colors",children:[h.jsx(ea,{size:11}),"Dismiss"]})]})]})]})}const qh="pl_sidebar_collapsed",qg=[{to:"/",label:"Home",icon:Ov},{to:"/projects",label:"Projects",icon:_v},{to:"/templates",label:"Templates",icon:so,discoveryFeature:"templates"},{to:"/showcase",label:"Showcase",icon:fo},{to:"/magic",label:"Magic",icon:Tg},{to:"/metrics",label:"Metrics",icon:lv},{to:"/compare",label:"Compare",icon:Av},{to:"/teams",label:"Teams",icon:xg}],Yg=[{to:"/settings",label:"Settings",icon:xm},{to:"/admin",label:"Admin",icon:ug},{to:"/admin/settings",label:"System",icon:Ng}];function Gg(){const[i,c]=v.useState(typeof window<"u"?window.innerWidth<768:!1);return v.useEffect(()=>{const r=()=>c(window.innerWidth<768);return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),i}function Qg({wsConnected:i,version:c,onOpenDocs:r}){const o=Gg(),d=kt(),{theme:m,toggleTheme:p}=Ug(),[E,x]=v.useState(!1),[y,z]=v.useState(()=>{try{return localStorage.getItem(qh)==="1"}catch{return!1}});v.useEffect(()=>{try{localStorage.setItem(qh,y?"1":"0")}catch{}},[y]),v.useEffect(()=>{o&&x(!1)},[d.pathname,o]);const _=o?E:!y,H=_?240:64,L=U=>["flex items-center gap-3 px-3 py-2 text-sm transition-colors rounded-[5px]",!_&&"justify-center",U?"bg-[#553DE9]/8 text-[#553DE9] font-medium border-l-2 border-[#553DE9]":"text-[#36342E] hover:bg-[#F8F4F0]"].filter(Boolean).join(" "),B=h.jsxs("aside",{className:"flex flex-col h-full border-r border-[#ECEAE3] bg-white transition-[width] duration-200",style:{width:H,minWidth:H},children:[h.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-[#ECEAE3]",children:[_&&h.jsxs("div",{className:"flex flex-col",children:[h.jsx("span",{className:"font-heading text-lg font-bold leading-tight text-[#36342E]",children:"Purple Lab"}),h.jsx("span",{className:"text-xs text-[#6B6960]",children:"Powered by Loki"})]}),o?h.jsx("button",{type:"button","aria-label":E?"Close menu":"Open menu",title:E?"Close menu":"Open menu",onClick:()=>x(!E),className:"inline-flex items-center justify-center w-7 h-7 rounded-[3px] text-[#939084] hover:bg-[#F8F4F0] transition-colors",children:E?h.jsx(ea,{size:16}):h.jsx(Yv,{size:16})}):h.jsx("button",{type:"button","aria-label":y?"Expand sidebar":"Collapse sidebar",title:y?"Expand sidebar":"Collapse sidebar",onClick:()=>z(!y),className:"inline-flex items-center justify-center w-7 h-7 rounded-[3px] text-[#939084] hover:bg-[#F8F4F0] transition-colors",children:y?h.jsx(Iv,{size:16}):h.jsx(Wv,{size:16})})]}),h.jsxs("nav",{className:"flex-1 px-2 py-3 flex flex-col gap-1","aria-label":"Main navigation",children:[qg.map(U=>h.jsxs(yi,{to:U.to,end:U.to==="/",className:({isActive:Q})=>L(Q),title:_?void 0:U.label,onClick:()=>{U.discoveryFeature&&Hg(U.discoveryFeature)},children:[h.jsxs("div",{className:"relative",children:[h.jsx(U.icon,{size:18}),U.discoveryFeature&&h.jsx(kg,{feature:U.discoveryFeature,className:"absolute -top-1 -right-1"})]}),_&&h.jsx("span",{children:U.label})]},U.to)),h.jsx("div",{className:"my-2 border-t border-[#ECEAE3]"}),Yg.map(U=>h.jsxs(yi,{to:U.to,className:({isActive:Q})=>L(Q),title:_?void 0:U.label,children:[h.jsx(U.icon,{size:18}),_&&h.jsx("span",{children:U.label})]},U.to)),_&&h.jsx("div",{className:"mt-3 px-1",children:h.jsx(Bg,{})})]}),h.jsxs("div",{className:"px-3 py-3 border-t border-[#ECEAE3] flex flex-col gap-2",children:[h.jsx(Xg,{collapsed:!_}),h.jsxs("div",{className:["flex items-center gap-2 text-xs",!_&&"justify-center"].filter(Boolean).join(" "),children:[h.jsx("span",{className:`w-2 h-2 rounded-full flex-shrink-0 ${i?"bg-[#1FC5A8]":"bg-[#C45B5B]"}`}),_&&h.jsx("span",{className:"text-[#6B6960]",children:i?"Connected":"Disconnected"})]}),_&&c&&h.jsxs("span",{className:"text-xs text-[#6B6960]",children:["v",c]}),h.jsxs("button",{onClick:p,title:m==="dark"?"Light mode":"Dark mode",className:["flex items-center gap-2 text-xs text-[#6B6960] hover:text-[#36342E] transition-colors",!_&&"justify-center"].filter(Boolean).join(" "),children:[m==="dark"?h.jsx(mg,{size:14}):h.jsx(Zv,{size:14}),_&&h.jsx("span",{children:m==="dark"?"Light Mode":"Dark Mode"})]}),h.jsxs("button",{onClick:r,className:["flex items-center gap-2 text-xs text-[#6B6960] hover:text-[#36342E] transition-colors",!_&&"justify-center"].filter(Boolean).join(" "),title:_?void 0:"Help & Docs",children:[h.jsx(ym,{size:14}),_&&h.jsx("span",{children:"Help & Docs"})]}),h.jsxs("a",{href:"https://www.autonomi.dev/docs",target:"_blank",rel:"noopener noreferrer",className:["flex items-center gap-2 text-xs text-[#6B6960] hover:text-[#36342E] transition-colors",!_&&"justify-center"].filter(Boolean).join(" "),title:_?void 0:"Documentation",children:[h.jsx(hm,{size:14}),_&&h.jsx("span",{children:"Docs"})]})]})]});return o&&E?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-40 bg-ink/20",onClick:()=>x(!1)}),h.jsx("div",{className:"fixed inset-y-0 left-0 z-50",children:B})]}):B}function Xg({collapsed:i}){const{user:c,logout:r,isLocalMode:o}=_m(),[d,m]=v.useState(!1),p=v.useRef(null);return v.useEffect(()=>{function E(x){p.current&&!p.current.contains(x.target)&&m(!1)}if(d)return document.addEventListener("mousedown",E),()=>document.removeEventListener("mousedown",E)},[d]),o||!c?h.jsxs("div",{className:["flex items-center gap-2 text-xs",i&&"justify-center"].filter(Boolean).join(" "),title:i?"Local Mode":void 0,children:[h.jsx(Xv,{size:14,className:"text-[#939084] flex-shrink-0"}),!i&&h.jsx("span",{className:"text-[#939084]",children:"Local Mode"})]}):h.jsxs("div",{className:"relative",ref:p,"data-testid":"user-section",children:[h.jsxs("button",{type:"button",onClick:()=>m(!d),className:["flex items-center gap-2 w-full text-left text-xs rounded-[3px] py-1 px-1 hover:bg-[#F8F4F0] transition-colors",i&&"justify-center"].filter(Boolean).join(" "),title:i?c.name||c.email:void 0,children:[c.avatar_url?h.jsx("img",{src:c.avatar_url,alt:"",className:"w-5 h-5 rounded-full flex-shrink-0"}):h.jsx("div",{className:"w-5 h-5 rounded-full bg-[#553DE9] flex items-center justify-center text-white text-[10px] font-bold flex-shrink-0",children:(c.name||c.email||"?")[0].toUpperCase()}),!i&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-[#36342E] truncate flex-1",children:c.name||c.email}),h.jsx(mm,{size:12,className:`text-[#939084] transition-transform ${d?"":"rotate-180"}`})]})]}),d&&h.jsxs("div",{className:"absolute bottom-full left-0 mb-1 w-48 bg-white border border-[#ECEAE3] rounded-lg shadow-lg py-1 z-50",children:[h.jsxs("div",{className:"px-3 py-2 border-b border-[#ECEAE3]",children:[h.jsx("p",{className:"text-xs font-medium text-[#36342E] truncate",children:c.name}),h.jsx("p",{className:"text-xs text-[#939084] truncate",children:c.email})]}),h.jsxs(yi,{to:"/settings",onClick:()=>m(!1),className:"flex items-center gap-2 px-3 py-2 text-xs text-[#36342E] hover:bg-[#F8F4F0] transition-colors",children:[h.jsx(xm,{size:14}),"Settings"]}),h.jsxs("button",{type:"button",onClick:()=>{m(!1),r()},className:"flex items-center gap-2 px-3 py-2 text-xs text-[#C45B5B] hover:bg-[#F8F4F0] transition-colors w-full text-left",children:[h.jsx(Bv,{size:14}),"Sign out"]})]})]})}const qa=[];function Vg(i){if(i.key==="Escape"&&qa.length>0){i.preventDefault(),i.stopPropagation();const c=qa[qa.length-1];c()}}let Yh=!1;function Zg(){Yh||(document.addEventListener("keydown",Vg),Yh=!0)}function Jg(i,c){const r=v.useRef(c);r.current=c;const o=v.useCallback(()=>{r.current()},[]);v.useEffect(()=>{if(i)return Zg(),qa.push(o),()=>{const d=qa.indexOf(o);d!==-1&&qa.splice(d,1)}},[i,o])}const Gh=["a[href]","button:not([disabled])","input:not([disabled])","textarea:not([disabled])","select:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", ");function Kg(i){const c=v.useRef(null),r=v.useRef(null);return v.useEffect(()=>{if(!i)return;r.current=document.activeElement;const o=c.current;if(!o)return;const d=o.querySelectorAll(Gh);d.length>0&&requestAnimationFrame(()=>d[0].focus());const m=p=>{if(p.key!=="Tab")return;const E=o.querySelectorAll(Gh);if(E.length===0)return;const x=E[0],y=E[E.length-1];p.shiftKey?document.activeElement===x&&(p.preventDefault(),y.focus()):document.activeElement===y&&(p.preventDefault(),x.focus())};return document.addEventListener("keydown",m),()=>{document.removeEventListener("keydown",m),r.current&&typeof r.current.focus=="function"&&r.current.focus()}},[i]),c}const Qh="pl_onboarding_complete",Gn=[{icon:vm,title:"Write your spec",description:"Describe what you want to build, or choose a template to get started quickly."},{icon:pg,title:"Use the terminal",description:"Run commands directly in the integrated terminal to install dependencies or debug."},{icon:pm,title:"Preview in real-time",description:"Switch to the Preview tab to see your app running with live reload."},{icon:oo,title:"Iterate with AI Chat",description:"Ask the AI to modify, fix, or explain your code in the chat panel."}];function $g(){const[i,c]=v.useState(!1),[r,o]=v.useState(0),d=Kg(i);Jg(i,()=>{i&&m()}),v.useEffect(()=>{try{localStorage.getItem(Qh)!=="1"&&c(!0)}catch{}},[]);const m=()=>{c(!1);try{localStorage.setItem(Qh,"1")}catch{}},p=()=>{r<Gn.length-1?o(r+1):m()};if(!i)return null;const E=Gn[r],x=E.icon;return h.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-ink/30",children:h.jsxs("div",{ref:d,className:"bg-card rounded-card shadow-card-hover border border-border w-full max-w-sm mx-4",children:[h.jsxs("div",{className:"flex items-center justify-between px-5 pt-5 pb-2",children:[h.jsxs("span",{className:"text-[11px] font-mono text-muted-accessible",children:[r+1," / ",Gn.length]}),h.jsx("button",{onClick:m,className:"text-muted hover:text-ink transition-colors p-1 rounded-btn hover:bg-hover",title:"Skip onboarding",children:h.jsx(ea,{size:14})})]}),h.jsxs("div",{className:"px-5 pb-4 text-center",children:[h.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:h.jsx(x,{size:24,className:"text-primary"})}),h.jsx("h3",{className:"text-sm font-heading font-bold text-ink mb-1",children:E.title}),h.jsx("p",{className:"text-xs text-muted-accessible leading-relaxed",children:E.description})]}),h.jsx("div",{className:"flex items-center justify-center gap-1.5 pb-4",children:Gn.map((y,z)=>h.jsx("div",{className:`w-1.5 h-1.5 rounded-full transition-colors ${z===r?"bg-primary":"bg-border"}`},z))}),h.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-border",children:[h.jsx("button",{onClick:m,className:"text-xs text-muted hover:text-ink transition-colors",children:"Skip"}),h.jsx("button",{onClick:p,className:"inline-flex items-center gap-1.5 px-4 py-1.5 text-xs font-medium rounded-btn bg-primary text-white hover:bg-primary-hover transition-colors",children:r<Gn.length-1?h.jsxs(h.Fragment,{children:["Next",h.jsx(dm,{size:12})]}):"Get Started"})]})]})})}const Xh="pl_product_tour_complete",Wg=[{target:'[data-tour="input-box"]',title:"Describe what you want to build",description:"Type a plain-English description of your project here. The more detail you give, the better the result. You can also paste a spec / PRD or select a template.",position:"bottom"},{target:'[data-tour="template-gallery"]',title:"Start from a template",description:"Browse ready-made templates for SaaS apps, landing pages, dashboards, and more. Each template gives you a head start with a proven structure.",position:"bottom"},{target:'[data-tour="build-progress"]',title:"Watch your project come to life",description:"Once you start a build, this bar tracks each phase: planning, building, testing, and reviewing. You will see real-time progress and cost estimates.",position:"bottom"},{target:'[data-tour="preview-tab"]',title:"Preview your running app",description:"Switch to the Preview tab to see your application running live. Changes appear in real time as the AI iterates on your code.",position:"bottom"},{target:'[data-tour="deploy-tab"]',title:"Deploy with one click",description:"When you are happy with the result, head to the Deploy tab to push your project live. Supports Vercel, Netlify, and GitHub Pages.",position:"bottom"}];function Fg(i){const c=document.querySelector(i);return c?c.getBoundingClientRect():null}function Ig(i,c){if(!i)return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};const r=16,o={position:"fixed",zIndex:60};switch(c){case"bottom":o.top=i.bottom+r,o.left=i.left+i.width/2,o.transform="translateX(-50%)";break;case"top":o.bottom=window.innerHeight-i.top+r,o.left=i.left+i.width/2,o.transform="translateX(-50%)";break;case"left":o.top=i.top+i.height/2,o.right=window.innerWidth-i.left+r,o.transform="translateY(-50%)";break;case"right":o.top=i.top+i.height/2,o.left=i.right+r,o.transform="translateY(-50%)";break}return o}function Pg({steps:i=Wg,onComplete:c}){const[r,o]=v.useState(!1),[d,m]=v.useState(0),[p,E]=v.useState(null),x=v.useRef(0);v.useEffect(()=>{try{if(localStorage.getItem(Xh)!=="1"){const B=setTimeout(()=>o(!0),800);return()=>clearTimeout(B)}}catch{}},[]),v.useEffect(()=>{if(!r||!i[d])return;const B=()=>{const U=Fg(i[d].target);E(U),x.current=requestAnimationFrame(B)};return B(),()=>cancelAnimationFrame(x.current)},[r,d,i]);const y=v.useCallback(()=>{o(!1);try{localStorage.setItem(Xh,"1")}catch{}c==null||c()},[c]),z=v.useCallback(()=>{d<i.length-1?m(B=>B+1):y()},[d,i.length,y]),_=v.useCallback(()=>{m(B=>Math.max(0,B-1))},[]);if(v.useEffect(()=>{if(!r)return;const B=U=>{U.key==="Escape"&&y(),U.key==="ArrowRight"&&z(),U.key==="ArrowLeft"&&_()};return window.addEventListener("keydown",B),()=>window.removeEventListener("keydown",B)},[r,y,z,_]),!r||!i[d])return null;const H=i[d],L=8;return h.jsxs("div",{className:"fixed inset-0 z-[55]","aria-modal":"true",role:"dialog",children:[h.jsxs("svg",{className:"absolute inset-0 w-full h-full",onClick:y,style:{zIndex:55},children:[h.jsx("defs",{children:h.jsxs("mask",{id:"tour-spotlight",children:[h.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),p&&h.jsx("rect",{x:p.left-L,y:p.top-L,width:p.width+L*2,height:p.height+L*2,rx:"8",fill:"black"})]})}),h.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:"rgba(0,0,0,0.55)",mask:"url(#tour-spotlight)"})]}),p&&h.jsx("div",{className:"absolute border-2 border-primary rounded-lg pointer-events-none shadow-[0_0_20px_rgba(85,61,233,0.3)]",style:{left:p.left-L,top:p.top-L,width:p.width+L*2,height:p.height+L*2,zIndex:56}}),h.jsxs("div",{className:"w-80 bg-card rounded-xl shadow-2xl border border-border p-0 overflow-hidden",style:{...Ig(p,H.position),zIndex:57},onClick:B=>B.stopPropagation(),children:[h.jsxs("div",{className:"flex items-center justify-between px-4 pt-4 pb-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(fo,{size:14,className:"text-primary"}),h.jsxs("span",{className:"text-[11px] font-mono text-muted-accessible",children:["Step ",d+1," of ",i.length]})]}),h.jsx("button",{onClick:y,className:"text-muted hover:text-ink transition-colors p-1 rounded-btn hover:bg-hover",title:"Skip tour",children:h.jsx(ea,{size:14})})]}),h.jsxs("div",{className:"px-4 pb-3",children:[h.jsx("h3",{className:"text-sm font-heading font-bold text-ink mb-1",children:H.title}),h.jsx("p",{className:"text-xs text-muted-accessible leading-relaxed",children:H.description})]}),h.jsx("div",{className:"flex items-center justify-center gap-1.5 pb-3",children:i.map((B,U)=>h.jsx("button",{onClick:()=>m(U),className:`w-2 h-2 rounded-full transition-all ${U===d?"bg-primary scale-110":U<d?"bg-primary/40":"bg-border"}`,"aria-label":`Go to step ${U+1}`},U))}),h.jsxs("div",{className:"flex items-center justify-between px-4 py-3 border-t border-border bg-hover/30",children:[h.jsxs("button",{onClick:y,className:"flex items-center gap-1 text-xs text-muted hover:text-ink transition-colors",children:[h.jsx(og,{size:12}),"Skip tour"]}),h.jsxs("div",{className:"flex items-center gap-2",children:[d>0&&h.jsxs("button",{onClick:_,className:"flex items-center gap-1 px-3 py-1.5 text-xs font-medium rounded-btn text-ink hover:bg-hover transition-colors",children:[h.jsx(fm,{size:12}),"Back"]}),h.jsx("button",{onClick:z,className:"flex items-center gap-1 px-4 py-1.5 text-xs font-medium rounded-btn bg-primary text-white hover:bg-primary-hover transition-colors",children:d<i.length-1?h.jsxs(h.Fragment,{children:["Next",h.jsx(dm,{size:12})]}):"Let's go!"})]})]})]})]})}const Vh="pl_whats_new_version",Ks="9.55.0",e2=[{icon:fo,title:"Product Tour",description:"New step-by-step guided tour for first-time users. Highlights key UI areas so you never feel lost."},{icon:Kv,title:"Contextual Help Tooltips",description:"Hover over the help icons next to complex features to learn what they do without leaving the page."},{icon:gm,title:"Enhanced Keyboard Shortcuts",description:'Press "?" to open the shortcuts overlay. Shortcuts are now grouped by category with search and filtering.'},{icon:Ag,title:"Getting Started Checklist",description:"A friendly checklist guides you through your first project, from writing a spec to deploying your app."},{icon:cg,title:"In-App Documentation",description:"Browse Quick Start guides, FAQ, and template docs right inside Purple Lab, no context switching required."}];function t2(){const[i,c]=v.useState(!1);v.useEffect(()=>{try{if(localStorage.getItem(Vh)!==Ks){const d=setTimeout(()=>c(!0),1200);return()=>clearTimeout(d)}}catch{}},[]);const r=()=>{c(!1);try{localStorage.setItem(Vh,Ks)}catch{}};return i?h.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-ink/30",onClick:r,children:h.jsxs("div",{className:"bg-card rounded-xl shadow-2xl border border-border w-full max-w-md mx-4 overflow-hidden",onClick:o=>o.stopPropagation(),children:[h.jsxs("div",{className:"relative px-6 pt-6 pb-4 text-center border-b border-border bg-gradient-to-b from-primary/5 to-transparent",children:[h.jsx("button",{onClick:r,className:"absolute top-4 right-4 text-muted hover:text-ink transition-colors p-1 rounded-btn hover:bg-hover",title:"Close",children:h.jsx(ea,{size:14})}),h.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-3",children:h.jsx(zv,{size:24,className:"text-primary"})}),h.jsx("h2",{className:"text-lg font-heading font-bold text-ink",children:"What's New"}),h.jsxs("p",{className:"text-xs text-muted-accessible mt-1",children:["Purple Lab v",Ks]})]}),h.jsx("div",{className:"px-4 py-4 space-y-3 max-h-[320px] overflow-y-auto terminal-scroll",children:e2.map(o=>{const d=o.icon;return h.jsxs("div",{className:"flex items-start gap-3 p-3 rounded-lg hover:bg-hover transition-colors",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:h.jsx(d,{size:16,className:"text-primary"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h3",{className:"text-sm font-medium text-ink",children:o.title}),h.jsx("p",{className:"text-xs text-muted-accessible leading-relaxed mt-0.5",children:o.description})]})]},o.title)})}),h.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-t border-border",children:[h.jsxs("a",{href:"https://github.com/asklokesh/loki-mode/blob/main/CHANGELOG.md",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-xs text-primary hover:text-primary-hover transition-colors",children:["Full changelog",h.jsx(bv,{size:11})]}),h.jsx("button",{onClick:r,className:"px-5 py-2 text-xs font-medium rounded-btn bg-primary text-white hover:bg-primary-hover transition-colors",children:"Got it!"})]})]})}):null}const $s=[{id:"quick-start",title:"Quick Start",icon:ro,content:`# Quick Start
357
-
358
- **1. Create a project**
359
- Click "New Project" on the home page, or type a description in the input box and press Enter.
360
-
361
- **2. Choose a mode**
362
- - **Quick** -- single-task fix, 3 iterations max
363
- - **Standard** -- thorough implementation with testing
364
- - **Max** -- full autonomous build from scratch
365
-
366
- **3. Watch the build**
367
- The progress bar shows each phase: Plan, Build, Test, Review. You will see real-time streaming output in the chat panel.
368
-
369
- **4. Preview and iterate**
370
- Switch to the Preview tab to see your running app. Use the AI chat to request changes, fixes, or new features.
371
-
372
- **5. Deploy**
373
- Head to the Deploy tab when you are satisfied. Purple Lab supports Vercel, Netlify, and GitHub Pages.
374
-
375
- > Tip: Press \`Cmd+K\` (or \`Ctrl+K\`) to open the Command Palette for quick navigation.`},{id:"templates",title:"Templates",icon:so,content:`# Templates
376
-
377
- Purple Lab includes ready-made templates to help you start fast:
378
-
379
- - **SaaS App** -- Full-stack application with auth, dashboard, and billing
380
- - **Landing Page** -- Marketing page with hero, features, pricing sections
381
- - **API Server** -- REST/GraphQL backend with database integration
382
- - **CLI Tool** -- Command-line application with argument parsing
383
- - **Discord Bot** -- Discord bot with slash commands and event handling
384
- - **Chrome Extension** -- Browser extension with popup and content scripts
385
- - **Mobile App** -- React Native app with navigation and screens
386
- - **Dashboard** -- Data visualization with charts and metrics
387
-
388
- Browse templates from the sidebar or the home page. Each template includes a pre-written spec that you can customize before building.`},{id:"providers",title:"AI Providers",icon:vv,content:`# AI Providers
389
-
390
- Purple Lab supports multiple AI providers for building your projects:
391
-
392
- **Claude (Recommended)**
393
- Full-featured provider with parallel execution, sub-agents, and the Task tool. Best for complex, multi-file projects.
394
-
395
- **Codex**
396
- OpenAI's code-specialized model. Runs in degraded mode (sequential only, no Task tool). Good for focused coding tasks.
397
-
398
- You can select a provider from the settings or specify it per-build in the project configuration.`},{id:"shortcuts",title:"Keyboard Shortcuts",icon:gm,content:"# Keyboard Shortcuts\n\n**Navigation**\n- `Cmd+K` -- Open Command Palette\n- `Cmd+P` -- Quick open file\n- `?` -- Show keyboard shortcuts overlay\n\n**Editor**\n- `Cmd+S` -- Save current file\n- `Cmd+Z` -- Undo\n- `Cmd+Shift+Z` -- Redo\n\n**Build**\n- `Cmd+B` -- Start or stop build\n- `Cmd+\\`` -- Toggle terminal\n\n**General**\n- `Escape` -- Close any modal or overlay\n- `Cmd+,` -- Open settings"},{id:"faq",title:"FAQ",icon:ym,content:`# Frequently Asked Questions
399
-
400
- **How does Purple Lab build my project?**
401
- Purple Lab uses the RARV cycle (Reason, Act, Reflect, Verify). The AI plans the architecture, writes code, reflects on quality, and verifies with tests -- all automatically.
402
-
403
- **Can I edit code manually?**
404
- Yes. The code editor supports full editing. Your changes are preserved across builds. Use the AI chat to ask for modifications too.
405
-
406
- **What languages are supported?**
407
- Purple Lab can build projects in JavaScript, TypeScript, Python, Go, Rust, Ruby, and more. The AI adapts to whatever stack your project needs.
408
-
409
- **How do I deploy?**
410
- Use the Deploy tab. Purple Lab can deploy to Vercel, Netlify, or GitHub Pages. You will need to connect your deployment account in Settings.
411
-
412
- **Is my code private?**
413
- Your code stays in your project workspace. In local mode, everything runs on your machine. In hosted mode, projects are isolated per user.
414
-
415
- **What are Quality Gates?**
416
- Automated checks that run after each build phase. They verify code quality, test coverage, and security before moving to the next phase. This ensures your code meets production standards.
417
-
418
- **What is the RARV cycle?**
419
- Reason, Act, Reflect, Verify -- the AI's thinking process. It plans what to do (Reason), writes code (Act), reviews its own work (Reflect), and runs tests (Verify).`}],l2=[{title:"Your First Build",description:"Learn how to create a project from scratch and watch the AI build it step by step.",icon:ro,gradient:"from-primary/20 to-primary/5",url:"#"},{title:"Using AI Chat",description:"Discover how to iterate on your project by chatting with the AI assistant.",icon:oo,gradient:"from-blue-500/20 to-blue-500/5",url:"#"},{title:"Deploying Your App",description:"Take your project from preview to production with one-click deployment.",icon:bm,gradient:"from-green-500/20 to-green-500/5",url:"#"},{title:"Git Integration",description:"Connect your repository, manage branches, and push changes directly from Purple Lab.",icon:Cv,gradient:"from-orange-500/20 to-orange-500/5",url:"#"}];function a2(i){const c=i.split(`
420
- `),r=[];let o=[];const d=()=>{o.length>0&&(r.push(h.jsx("ul",{className:"list-disc list-inside space-y-1 text-xs text-ink leading-relaxed",children:o.map((m,p)=>h.jsx("li",{children:Ws(m)},p))},`ul-${r.length}`)),o=[])};for(let m=0;m<c.length;m++){const p=c[m];if(p.startsWith("# ")){d(),r.push(h.jsx("h2",{className:"text-lg font-heading font-bold text-ink mt-2 mb-2",children:p.slice(2)},m));continue}if(p.startsWith("## ")){d(),r.push(h.jsx("h3",{className:"text-sm font-heading font-bold text-ink mt-4 mb-1",children:p.slice(3)},m));continue}if(p.startsWith("> ")){d(),r.push(h.jsx("blockquote",{className:"border-l-2 border-primary/30 pl-3 text-xs text-muted-accessible italic my-2",children:Ws(p.slice(2))},m));continue}if(p.startsWith("- ")){o.push(p.slice(2));continue}if(!p.trim()){d();continue}d(),r.push(h.jsx("p",{className:"text-xs text-ink leading-relaxed my-1",children:Ws(p)},m))}return d(),r}function Ws(i){const c=[],r=/(\*\*(.+?)\*\*)|(`(.+?)`)/g;let o=0,d;for(;(d=r.exec(i))!==null;)d.index>o&&c.push(i.slice(o,d.index)),d[2]?c.push(h.jsx("strong",{className:"font-semibold text-ink",children:d[2]},d.index)):d[4]&&c.push(h.jsx("code",{className:"px-1.5 py-0.5 text-[11px] font-mono bg-hover border border-border rounded text-primary",children:d[4]},d.index)),o=d.index+d[0].length;return o<i.length&&c.push(i.slice(o)),c.length===1?c[0]:h.jsx(h.Fragment,{children:c})}function n2({open:i,onClose:c}){const[r,o]=v.useState(""),[d,m]=v.useState(null),[p,E]=v.useState(!1);v.useEffect(()=>{i&&(o(""),m(null),E(!1))},[i]),v.useEffect(()=>{if(!i)return;const z=_=>{_.key==="Escape"&&c()};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[i,c]);const x=v.useMemo(()=>{if(!r.trim())return $s;const z=r.toLowerCase();return $s.filter(_=>_.title.toLowerCase().includes(z)||_.content.toLowerCase().includes(z))},[r]),y=d?$s.find(z=>z.id===d):null;return i?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 z-40 bg-ink/10",onClick:c}),h.jsxs("div",{className:"fixed top-0 right-0 bottom-0 z-50 w-full max-w-md bg-card border-l border-border shadow-2xl flex flex-col animate-slide-in-right",children:[h.jsxs("div",{className:"flex items-center justify-between px-5 h-14 border-b border-border flex-shrink-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[y||p?h.jsx("button",{onClick:()=>{m(null),E(!1)},className:"text-muted hover:text-ink transition-colors p-1 rounded-btn hover:bg-hover",children:h.jsx(fm,{size:16})}):h.jsx(hm,{size:16,className:"text-primary"}),h.jsx("h2",{className:"text-sm font-heading font-bold text-ink",children:y?y.title:p?"Video Tutorials":"Documentation"})]}),h.jsx("button",{onClick:c,className:"text-muted hover:text-ink transition-colors p-1 rounded-btn hover:bg-hover",children:h.jsx(ea,{size:16})})]}),!y&&!p&&h.jsx("div",{className:"px-4 py-3 border-b border-border flex-shrink-0",children:h.jsxs("div",{className:"relative",children:[h.jsx(lg,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted"}),h.jsx("input",{type:"text",value:r,onChange:z=>o(z.target.value),placeholder:"Search documentation...",className:"w-full pl-9 pr-3 py-2 text-xs bg-card border border-border rounded-btn outline-none focus:border-primary transition-colors",autoFocus:!0})]})}),h.jsx("div",{className:"flex-1 overflow-y-auto terminal-scroll",children:y?h.jsx("div",{className:"px-5 py-4",children:a2(y.content)}):p?h.jsxs("div",{className:"px-4 py-4 space-y-3",children:[l2.map(z=>{const _=z.icon;return h.jsxs("a",{href:z.url,className:"block rounded-xl overflow-hidden border border-border hover:border-primary/30 transition-colors group",children:[h.jsxs("div",{className:`relative h-32 bg-gradient-to-br ${z.gradient} flex items-center justify-center`,children:[h.jsx(_,{size:32,className:"text-ink/20"}),h.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:h.jsx("div",{className:"w-12 h-12 rounded-full bg-white/90 dark:bg-card/90 flex items-center justify-center shadow-lg group-hover:scale-110 transition-transform",children:h.jsx(bm,{size:20,className:"text-primary ml-0.5"})})})]}),h.jsxs("div",{className:"px-4 py-3",children:[h.jsx("h4",{className:"text-sm font-medium text-ink",children:z.title}),h.jsx("p",{className:"text-xs text-muted-accessible mt-0.5 leading-relaxed",children:z.description})]})]},z.title)}),h.jsx("p",{className:"text-center text-[11px] text-muted pt-2",children:"Video content coming soon. Stay tuned!"})]}):h.jsxs("div",{className:"px-3 py-3 space-y-1",children:[x.map(z=>{const _=z.icon;return h.jsxs("button",{onClick:()=>m(z.id),className:"w-full flex items-center gap-3 px-3 py-3 rounded-lg text-left hover:bg-hover transition-colors group",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:h.jsx(_,{size:16,className:"text-primary"})}),h.jsx("span",{className:"flex-1 text-sm text-ink font-medium",children:z.title}),h.jsx(wh,{size:14,className:"text-muted group-hover:text-ink transition-colors"})]},z.id)}),h.jsxs("button",{onClick:()=>E(!0),className:"w-full flex items-center gap-3 px-3 py-3 rounded-lg text-left hover:bg-hover transition-colors group mt-2 border-t border-border pt-4",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:h.jsx(Eg,{size:16,className:"text-primary"})}),h.jsx("span",{className:"flex-1 text-sm text-ink font-medium",children:"Video Tutorials"}),h.jsx(wh,{size:14,className:"text-muted group-hover:text-ink transition-colors"})]}),x.length===0&&h.jsx("div",{className:"py-8 text-center",children:h.jsxs("p",{className:"text-xs text-muted",children:['No docs matching "',r,'"']})})]})})]})]}):null}const u2=[{id:"first-build",name:"First Build",description:"You completed your first build. Welcome aboard!"},{id:"five-projects",name:"Prolific Builder",description:"Five projects created. You are on a roll."},{id:"first-deploy",name:"Ship It",description:"First deployment complete. Your code is out in the world."},{id:"all-providers",name:"Provider Explorer",description:"You have used every available AI provider."},{id:"first-teammate",name:"Team Player",description:"You invited your first teammate. Better together."}],Cm="purple-lab-achievements";function jm(){try{const i=localStorage.getItem(Cm);return i?JSON.parse(i):[]}catch{return[]}}function i2(i){const c=jm();c.includes(i)||(c.push(i),localStorage.setItem(Cm,JSON.stringify(c)))}function c2(){const[i,c]=v.useState([]),r=v.useCallback(d=>{if(jm().includes(d))return;const p=u2.find(E=>E.id===d);p&&(i2(d),c(E=>[...E,p]))},[]),o=v.useCallback(()=>{c(d=>d.slice(1))},[]);return{unlock:r,toastQueue:i,dismissCurrent:o}}function s2({achievement:i,onDismiss:c}){const[r,o]=v.useState(!1);return v.useEffect(()=>{const d=setTimeout(()=>{o(!0)},3500),m=setTimeout(()=>{c()},4e3);return()=>{clearTimeout(d),clearTimeout(m)}},[c]),h.jsx("div",{className:`fixed top-4 right-4 z-50 ${r?"achievement-toast-exit":"achievement-toast-enter"}`,children:h.jsxs("div",{className:"bg-card border border-border rounded-card shadow-lg px-4 py-3 flex items-center gap-3 min-w-[280px]",children:[h.jsx("div",{className:"w-8 h-8 rounded-full bg-warning/10 flex items-center justify-center flex-shrink-0",children:h.jsx(dg,{size:16,className:"text-warning"})}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:"text-xs font-bold text-ink",children:i.name}),h.jsx("p",{className:"text-[11px] text-muted leading-snug",children:i.description})]})]})})}function o2({toastQueue:i,onDismiss:c}){return i.length===0?null:h.jsx(s2,{achievement:i[0],onDismiss:c})}function r2(i){const[c,r]=v.useState(!1),o=v.useRef(null),d=v.useRef(i);v.useEffect(()=>{d.current=i},[i]),v.useEffect(()=>{const p=new Og;return o.current=p,p.on("connected",()=>r(!0)),p.on("disconnected",()=>{r(!1),d.current&&d.current(null)}),p.on("state_update",E=>{d.current&&E&&typeof E=="object"&&d.current(E)}),p.connect(),()=>{p.disconnect(),o.current=null}},[]);const m=v.useCallback((p,E)=>{var x;return((x=o.current)==null?void 0:x.on(p,E))||(()=>{})},[]);return{connected:c,subscribe:m}}function f2(){const[i,c]=v.useState(""),[r,o]=v.useState(!1),{toastQueue:d,dismissCurrent:m}=c2(),{connected:p}=r2(()=>{});return v.useEffect(()=>{Ba.getStatus().then(E=>{c(E.version||"")}).catch(()=>{})},[]),h.jsxs("div",{className:"flex h-screen bg-[#FAF9F6]",children:[h.jsx(o2,{toastQueue:d,onDismiss:m}),h.jsx($g,{}),h.jsx(Pg,{}),h.jsx(t2,{}),h.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:top-2 focus:left-2 focus:px-4 focus:py-2 focus:bg-white focus:text-[#553DE9] focus:rounded-[3px] focus:shadow-card",children:"Skip to main content"}),h.jsx(Qg,{wsConnected:p,version:i,onOpenDocs:()=>o(!0)}),h.jsx("main",{id:"main-content",className:"flex-1 overflow-auto",children:h.jsx(r1,{})}),h.jsx(n2,{open:r,onClose:()=>o(!1)})]})}const d2={success:{bg:"bg-green-50 dark:bg-green-900/20",border:"border-green-200 dark:border-green-800",icon:"text-green-600 dark:text-green-400",IconComponent:sv},error:{bg:"bg-red-50 dark:bg-red-900/20",border:"border-red-200 dark:border-red-800",icon:"text-red-600 dark:text-red-400",IconComponent:hv},warning:{bg:"bg-yellow-50 dark:bg-yellow-900/20",border:"border-yellow-200 dark:border-yellow-800",icon:"text-yellow-600 dark:text-yellow-400",IconComponent:gg},info:{bg:"bg-blue-50 dark:bg-blue-900/20",border:"border-blue-200 dark:border-blue-800",icon:"text-blue-600 dark:text-blue-400",IconComponent:Dv}};function h2({notification:i,onDismiss:c}){const{type:r,title:o,message:d,duration:m=5e3}=i,p=d2[r],E=v.useRef(null),x=v.useCallback(()=>{c(i.id)},[c,i.id]);return v.useEffect(()=>{if(m>0)return E.current=setTimeout(x,m),()=>{E.current&&clearTimeout(E.current)}},[m,x]),h.jsxs("div",{className:`
421
- flex items-start gap-3 p-4 rounded-lg border shadow-lg
422
- max-w-sm w-full pointer-events-auto
423
- animate-[slideIn_0.3s_ease-out]
424
- ${p.bg} ${p.border}
425
- `,role:"alert",children:[h.jsx("style",{children:`
426
- @keyframes slideIn {
427
- from { opacity: 0; transform: translateX(100%); }
428
- to { opacity: 1; transform: translateX(0); }
429
- }
430
- `}),h.jsx("style",{children:`
431
- @keyframes slideIn {
432
- from { opacity: 0; transform: translateX(100%); }
433
- to { opacity: 1; transform: translateX(0); }
434
- }
435
- `}),h.jsx("span",{className:`flex-shrink-0 mt-0.5 ${p.icon}`,children:h.jsx(p.IconComponent,{size:18})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"text-sm font-medium text-[#201515] dark:text-[#E8E6E3]",children:o}),d&&h.jsx("p",{className:"text-xs text-[#6B6960] dark:text-[#8A8880] mt-0.5",children:d})]}),h.jsx("button",{onClick:x,className:"flex-shrink-0 text-[#939084] hover:text-[#36342E] dark:hover:text-[#E8E6E3] transition-colors","aria-label":"Dismiss notification",children:h.jsx(ea,{size:14})})]})}function m2({notifications:i,onDismiss:c}){return i.length===0?null:h.jsx("div",{className:"fixed top-4 right-4 z-[9999] flex flex-col gap-2 pointer-events-none","aria-live":"polite",children:i.map(r=>h.jsx(h2,{notification:r,onDismiss:c},r.id))})}const Am=v.createContext({notify:()=>"",dismiss:()=>{},dismissAll:()=>{}});let y2=0;function p2({children:i}){const[c,r]=v.useState([]),o=v.useCallback(E=>{const x=`notif-${++y2}-${Date.now()}`,y={...E,id:x};if(r(z=>[...z,y]),document.hidden&&"Notification"in window)if(Notification.permission==="granted")try{new Notification(E.title,{body:E.message||""})}catch{}else Notification.permission!=="denied"&&Notification.requestPermission().then(z=>{if(z==="granted")try{new Notification(E.title,{body:E.message||""})}catch{}});return x},[]),d=v.useCallback(E=>{r(x=>x.filter(y=>y.id!==E))},[]),m=v.useCallback(()=>{r([])},[]),p=v.useMemo(()=>({notify:o,dismiss:d,dismissAll:m}),[o,d,m]);return h.jsxs(Am.Provider,{value:p,children:[i,h.jsx(m2,{notifications:c,onDismiss:d})]})}function L2(){return v.useContext(Am)}function Fs({children:i}){const{user:c,loading:r,isLocalMode:o}=_m();return r?h.jsx("div",{className:"h-screen bg-[#FAF9F6] flex items-center justify-center text-[#6B6960] text-sm",children:"Loading..."}):o?h.jsx(h.Fragment,{children:i}):c?h.jsx(h.Fragment,{children:i}):h.jsx(o1,{to:"/login",replace:!0})}function pi({variant:i="text",width:c,height:r,className:o=""}){const d="animate-pulse bg-[#ECEAE3]/60 rounded";if(i==="circle"){const m=c||"2rem";return h.jsx("div",{className:`${d} rounded-full flex-shrink-0 ${o}`,style:{width:m,height:m}})}return i==="block"?h.jsx("div",{className:`${d} rounded-btn ${o}`,style:{width:c||"100%",height:r||"4rem"}}):h.jsx("div",{className:`${d} rounded-btn ${o}`,style:{width:c||"100%",height:r||"0.75rem"}})}function B2(){return h.jsx("div",{className:"p-4 space-y-3",children:[...Array(12)].map((i,c)=>h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(pi,{variant:"text",width:"1.5rem",height:"10px",className:"flex-shrink-0 opacity-40"}),h.jsx(pi,{variant:"text",width:`${20+Math.random()*60}%`,height:"10px"})]},c))})}typeof window<"u"&&window.addEventListener("beforeunload",i=>{delete i.returnValue});const v2=v.lazy(()=>tt(()=>import("./HomePage-CfqeIZPV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),g2=v.lazy(()=>tt(()=>import("./ProjectPage-B93Nt-kS.js").then(i=>i.P),__vite__mapDeps([17,2,18,3,4,10,16,19,7,20,21,22,9,23,13,24,25,8,26,27,28,29,30,31,12,32,14,33,34,35]))),b2=v.lazy(()=>tt(()=>import("./CockpitPage-pQmCWfIh.js"),__vite__mapDeps([36,2,28,9,7,24,29,23]))),x2=v.lazy(()=>tt(()=>import("./ProjectsPage-BhaHPEd7.js"),__vite__mapDeps([37,18,6,7,8,9,1,25,30,27]))),S2=v.lazy(()=>tt(()=>import("./TemplatesPage-wkI45c7P.js"),__vite__mapDeps([38,18,1,39,7,14,9,10,26,34,22,40,30]))),E2=v.lazy(()=>tt(()=>import("./SettingsPage-Cqq9SCLd.js"),__vite__mapDeps([41,31,13,11,23,9,8]))),_2=v.lazy(()=>tt(()=>import("./LoginPage-DkFVMTDS.js"),[])),T2=v.lazy(()=>tt(()=>import("./TeamsPage-QF7urKuv.js"),__vite__mapDeps([42,18,43,4,20,44,7,16,19,13,30]))),z2=v.lazy(()=>tt(()=>import("./AdminPage-UqksX-2j.js"),__vite__mapDeps([45,18,32,7,43,20,25,26,39,9,24,44,40,4,21,46]))),N2=v.lazy(()=>tt(()=>import("./SystemSettingsPage-CkuuJB1N.js"),__vite__mapDeps([47,34,13,15,40,46]))),C2=v.lazy(()=>tt(()=>import("./MetricsPage-2064AnFh.js"),__vite__mapDeps([48,5,24,14,32,33]))),j2=v.lazy(()=>tt(()=>import("./ShowcasePage-DPEOv9rh.js"),[])),A2=v.lazy(()=>tt(()=>import("./MagicPage-hEQNcZ3A.js"),__vite__mapDeps([49,29,8,23,12]))),R2=v.lazy(()=>tt(()=>import("./ComparePage-DdNXRO4U.js"),[])),O2=v.lazy(()=>tt(()=>import("./NotFoundPage-BxPHH3gH.js"),[]));function et(){return h.jsxs("div",{className:"h-screen bg-[#FAF9F6] flex flex-col items-center justify-center gap-3",children:[h.jsx(pi,{variant:"block",width:"200px",height:"24px"}),h.jsx(pi,{variant:"text",width:"140px",height:"12px",className:"opacity-50"})]})}function M2(){return h.jsx(Dg,{children:h.jsx(p2,{children:h.jsxs(d1,{children:[h.jsx(Ke,{path:"/login",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(_2,{})})}),h.jsx(Ke,{path:"/project/:sessionId/cockpit",element:h.jsx(Fs,{children:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(b2,{})})})}),h.jsx(Ke,{path:"/project/:sessionId",element:h.jsx(Fs,{children:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(g2,{})})})}),h.jsxs(Ke,{element:h.jsx(Fs,{children:h.jsx(f2,{})}),children:[h.jsx(Ke,{path:"/",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(v2,{})})}),h.jsx(Ke,{path:"/projects",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(x2,{})})}),h.jsx(Ke,{path:"/templates",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(S2,{})})}),h.jsx(Ke,{path:"/settings",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(E2,{})})}),h.jsx(Ke,{path:"/teams",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(T2,{})})}),h.jsx(Ke,{path:"/metrics",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(C2,{})})}),h.jsx(Ke,{path:"/showcase",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(j2,{})})}),h.jsx(Ke,{path:"/magic",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(A2,{})})}),h.jsx(Ke,{path:"/compare",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(R2,{})})}),h.jsx(Ke,{path:"/admin",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(z2,{})})}),h.jsx(Ke,{path:"/admin/settings",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(N2,{})})}),h.jsx(Ke,{path:"*",element:h.jsx(v.Suspense,{fallback:h.jsx(et,{}),children:h.jsx(O2,{})})})]})]})})})}const D2="/lab/".replace(/\/$/,"")||"/";fp.createRoot(document.getElementById("root")).render(h.jsx(v.StrictMode,{children:h.jsx(H1,{basename:D2,children:h.jsx(M2,{})})}));export{Kv as $,dm as A,hm as B,ym as C,Wv as D,bv as E,vm as F,Cv as G,B2 as H,Dv as I,fm as J,gm as K,so as L,oo as M,pi as N,H2 as O,bm as P,vv as Q,ro as R,ug as S,gg as T,xg as U,Og as V,w2 as W,ea as X,yv as Y,Ag as Z,tt as _,Ba as a,_m as a0,L2 as a1,_v as a2,sm as a3,Ov as a4,Tg as a5,dg as b,W as c,r2 as d,k2 as e,Ng as f,mm as g,nv as h,pg as i,h as j,hv as k,rv as l,lg as m,Kg as n,Jg as o,wh as p,sv as q,v as r,og as s,Xv as t,ao as u,fo as v,lv as w,cg as x,pm as y,xm as z};