titan-agent 5.0.2 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/agent.js +49 -3
- package/dist/agent/agent.js.map +1 -1
- package/dist/agent/agentLoop.js +83 -5
- package/dist/agent/agentLoop.js.map +1 -1
- package/dist/agent/commandPost.js +1 -1
- package/dist/agent/commandPost.js.map +1 -1
- package/dist/agent/goalProposer.js +2 -2
- package/dist/agent/goalProposer.js.map +1 -1
- package/dist/agent/missionDriver.js +1 -1
- package/dist/agent/missionDriver.js.map +1 -1
- package/dist/agent/promptBudget.js +85 -0
- package/dist/agent/promptBudget.js.map +1 -0
- package/dist/agent/structuredSpawn.js +1 -1
- package/dist/agent/structuredSpawn.js.map +1 -1
- package/dist/agent/subtaskTaxonomy.js +1 -1
- package/dist/agent/subtaskTaxonomy.js.map +1 -1
- package/dist/agent/systemPromptParts.js +10 -1
- package/dist/agent/systemPromptParts.js.map +1 -1
- package/dist/agent/toolRunner.js +16 -0
- package/dist/agent/toolRunner.js.map +1 -1
- package/dist/agent/toolSearch.js +4 -1
- package/dist/agent/toolSearch.js.map +1 -1
- package/dist/analytics/bugReports.js +1 -1
- package/dist/analytics/bugReports.js.map +1 -1
- package/dist/channels/messenger.js +1 -1
- package/dist/channels/messenger.js.map +1 -1
- package/dist/eval/harness.js +148 -0
- package/dist/eval/harness.js.map +1 -0
- package/dist/gateway/server.js +374 -74
- package/dist/gateway/server.js.map +1 -1
- package/dist/hooks/shellHooks.js +1 -1
- package/dist/hooks/shellHooks.js.map +1 -1
- package/dist/lib/auto-heal/repair-strategies.js.map +1 -1
- package/dist/memory/promptIncludes.js +58 -0
- package/dist/memory/promptIncludes.js.map +1 -0
- package/dist/organism/alertsStore.js +70 -0
- package/dist/organism/alertsStore.js.map +1 -0
- package/dist/plugins/memoryRetrieval.js.map +1 -1
- package/dist/providers/ollama.js +7 -7
- package/dist/providers/ollama.js.map +1 -1
- package/dist/safety/invariants.js +60 -0
- package/dist/safety/invariants.js.map +1 -0
- package/dist/safety/opusReview.js +1 -1
- package/dist/safety/opusReview.js.map +1 -1
- package/dist/security/commandScanner.js +2 -2
- package/dist/security/commandScanner.js.map +1 -1
- package/dist/security/secretGuard.js +4 -4
- package/dist/security/secretGuard.js.map +1 -1
- package/dist/skills/builtin/widget_gallery.js +28 -1
- package/dist/skills/builtin/widget_gallery.js.map +1 -1
- package/dist/skills/frontmatterLoader.js +119 -0
- package/dist/skills/frontmatterLoader.js.map +1 -0
- package/dist/skills/registry.js +20 -0
- package/dist/skills/registry.js.map +1 -1
- package/dist/testing/testHealthMonitor.js +1 -2
- package/dist/testing/testHealthMonitor.js.map +1 -1
- package/dist/utils/constants.js +2 -2
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/replyQuality.js +1 -1
- package/dist/utils/replyQuality.js.map +1 -1
- package/dist/utils/safety.js +25 -0
- package/dist/utils/safety.js.map +1 -0
- package/dist/utils/tokens.js +1 -1
- package/dist/utils/tokens.js.map +1 -1
- package/docs/bleeding-edge-agents-2026.md +450 -0
- package/docs/langchain-analysis.md +598 -0
- package/docs/langchain-code-analysis.md +363 -0
- package/docs/space-agent-analysis.md +300 -0
- package/package.json +1 -1
- package/ui/dist/assets/{AuditPanel-G7YA1HzV.js → AuditPanel-B84Mp16G.js} +2 -2
- package/ui/dist/assets/AutonomyPanel-DOtiTFxV.js +11 -0
- package/ui/dist/assets/{AutopilotPanel-CHRjxdh0.js → AutopilotPanel-nTb1Dnru.js} +1 -1
- package/ui/dist/assets/AutoresearchPanel-D46mX8VF.js +6 -0
- package/ui/dist/assets/BackupPanel-DGM1XXbG.js +1 -0
- package/ui/dist/assets/BrowserPanel-Cn1tTN3y.js +6 -0
- package/ui/dist/assets/{CPAgents-D5533PhK.js → CPAgents-CEraUkME.js} +1 -1
- package/ui/dist/assets/{CPDashboard-C-GgqDsI.js → CPDashboard-B_yidGAe.js} +2 -2
- package/ui/dist/assets/CPFiles-BBS8jtYH.js +1 -0
- package/ui/dist/assets/CPGoals-DL5v21TZ.js +1 -0
- package/ui/dist/assets/CPInbox-CyLQJBYF.js +11 -0
- package/ui/dist/assets/{CPSocial-mUQsrSh5.js → CPSocial-BkEtQ1Um.js} +3 -3
- package/ui/dist/assets/ChannelsPanel-CD2kHhA5.js +1 -0
- package/ui/dist/assets/CheckpointsPanel-BrUTFPu_.js +1 -0
- package/ui/dist/assets/CommandPostHub-BPPaUv1B.js +29 -0
- package/ui/dist/assets/CronPanel-CsfQctFp.js +1 -0
- package/ui/dist/assets/DaemonPanel-CNUggBbL.js +1 -0
- package/ui/dist/assets/DataTable-DuAEp_QJ.js +1 -0
- package/ui/dist/assets/{EmptyState-D60-wQrz.js → EmptyState-DFrAEZDm.js} +1 -1
- package/ui/dist/assets/EvalPanel-DEX0a5-b.js +1 -0
- package/ui/dist/assets/{FilesPanel-BNN3h_HW.js → FilesPanel-DATsiAqG.js} +1 -1
- package/ui/dist/assets/FleetPanel-QYQKqx4W.js +1 -0
- package/ui/dist/assets/{HomelabPanel-1mfhRBh6.js → HomelabPanel-DhuXd3ZD.js} +2 -2
- package/ui/dist/assets/{InfraView-Df6SFI7b.js → InfraView-eS7cpESw.js} +2 -2
- package/ui/dist/assets/InlineEditableField-zIAnW4AR.js +1 -0
- package/ui/dist/assets/{Input-DYukme8A.js → Input-bFsLI0fq.js} +1 -1
- package/ui/dist/assets/IntegrationsPanel-C_FswSRN.js +1 -0
- package/ui/dist/assets/IntelligenceView-smQ6aBwx.js +2 -0
- package/ui/dist/assets/{LearningPanel-BPx05bBu.js → LearningPanel-BEgF_iND.js} +1 -1
- package/ui/dist/assets/{LogsPanel-D3Qfp2SE.js → LogsPanel-Br1P8ST6.js} +1 -1
- package/ui/dist/assets/McpPanel-ByvQ12J_.js +1 -0
- package/ui/dist/assets/{MemoryGraphPanel-BFovwaSG.js → MemoryGraphPanel-BGOeSaET.js} +1 -1
- package/ui/dist/assets/MemoryWikiPanel-CR8btd66.js +11 -0
- package/ui/dist/assets/MeshPanel-BjkcSOMz.js +11 -0
- package/ui/dist/assets/NvidiaPanel-NYt42w7L.js +1 -0
- package/ui/dist/assets/OrganismPanel-PHvISvVn.js +1 -0
- package/ui/dist/assets/OverviewPanel-q35zdMr6.js +6 -0
- package/ui/dist/assets/{PageHeader-BdvxKoad.js → PageHeader-Cwn3OALc.js} +1 -1
- package/ui/dist/assets/PaperclipPanel-BDpQki0d.js +1 -0
- package/ui/dist/assets/{PersonasPanel-BpI6Npxv.js → PersonasPanel-DxrGW5C4.js} +1 -1
- package/ui/dist/assets/RecipesPanel-CYRdBx5u.js +1 -0
- package/ui/dist/assets/{SecurityPanel-CBDsEAFz.js → SecurityPanel-i1QMctV0.js} +1 -1
- package/ui/dist/assets/SelfImprovePanel-DbybAZWp.js +1 -0
- package/ui/dist/assets/SelfProposalsPanel-DtcTUDDd.js +2 -0
- package/ui/dist/assets/SessionsPanel-B7QmOizR.js +1 -0
- package/ui/dist/assets/SessionsTab-BdJj_vsI.js +1 -0
- package/ui/dist/assets/{SettingsPanel-BiWHsOAJ.js → SettingsPanel-DnEvJUFe.js} +1 -1
- package/ui/dist/assets/SettingsView-C39dk_yr.js +2 -0
- package/ui/dist/assets/{SkeletonLoader-CGtpZJ-7.js → SkeletonLoader-CsiR8ED9.js} +1 -1
- package/ui/dist/assets/{SkillsPanel-Z_9jA6dU.js → SkillsPanel-DM4qBFDS.js} +1 -1
- package/ui/dist/assets/{SomaView-AP3BXqf-.js → SomaView-CWnPKEQI.js} +1 -1
- package/ui/dist/assets/{StatCard-CrnvXPg5.js → StatCard-CY8lgeWm.js} +1 -1
- package/ui/dist/assets/{StatusBadge-B6r5EWBA.js → StatusBadge-CGvKbP7R.js} +1 -1
- package/ui/dist/assets/TeamsPanel-Bf6GaUni.js +1 -0
- package/ui/dist/assets/{TelemetryPanel-D6o14H-i.js → TelemetryPanel-JZ90gJXC.js} +1 -1
- package/ui/dist/assets/TitanCanvas-Hk49NFcA.js +1092 -0
- package/ui/dist/assets/ToolsView-Cq7Fuq3i.js +2 -0
- package/ui/dist/assets/{Tooltip-DNsYGHC9.js → Tooltip-CcoZrKsl.js} +1 -1
- package/ui/dist/assets/{TraceViewer-TOpdmqLF.js → TraceViewer-ojGf0drx.js} +1 -1
- package/ui/dist/assets/TrainingPanel-CWnP4H2l.js +1 -0
- package/ui/dist/assets/{VoiceOverlay-XIyCbAP7.js → VoiceOverlay-Dn6iaYgd.js} +1 -1
- package/ui/dist/assets/VramPanel-CLd9Ggck.js +1 -0
- package/ui/dist/assets/WatchView-CQBemwsm.js +13 -0
- package/ui/dist/assets/WorkTab-BOfTN-Bd.js +1 -0
- package/ui/dist/assets/WorkflowsPanel-qzNS0p0u.js +11 -0
- package/ui/dist/assets/{arrow-left-CQF-yBIU.js → arrow-left-c-8OFZUV.js} +1 -1
- package/ui/dist/assets/{chart-column-1smg0GbX.js → chart-column-x6L66Qw7.js} +1 -1
- package/ui/dist/assets/{circle-check-big-BiMDFx6C.js → circle-check-big-WaW3U3Xl.js} +1 -1
- package/ui/dist/assets/{dollar-sign-DMYH4Q_a.js → dollar-sign-D2Oce4Ru.js} +1 -1
- package/ui/dist/assets/{download-BYFd-yl6.js → download-YvPDLlFJ.js} +1 -1
- package/ui/dist/assets/eye-off-DIMcxsdQ.js +6 -0
- package/ui/dist/assets/{funnel-pWBglhfw.js → funnel-DqD9srZu.js} +1 -1
- package/ui/dist/assets/{git-branch-Cgqic2Us.js → git-branch-0FamUEbU.js} +1 -1
- package/ui/dist/assets/index-D932CbpQ.css +1 -0
- package/ui/dist/assets/index-NatBSFxj.js +227 -0
- package/ui/dist/assets/{legacy-BHbi-Nm_.js → legacy-DOO7F5cq.js} +1 -1
- package/ui/dist/assets/{lightbulb-D_y0Mtyq.js → lightbulb-Bk6KlR6q.js} +1 -1
- package/ui/dist/assets/pause-DDC_zUiJ.js +6 -0
- package/ui/dist/assets/{play-2xR4_zUG.js → play-BPXbHToG.js} +1 -1
- package/ui/dist/assets/{plug-DhvhYYy_.js → plug-Dxp-sWVF.js} +1 -1
- package/ui/dist/assets/proxy-vU7v4NVM.js +9 -0
- package/ui/dist/assets/square-Bn_0tYME.js +6 -0
- package/ui/dist/assets/target-BrtxUtzl.js +6 -0
- package/ui/dist/assets/toggle-right-CYphlpN5.js +11 -0
- package/ui/dist/assets/{trash-2-DmRaMz9e.js → trash-2-C_Jsp23A.js} +1 -1
- package/ui/dist/assets/{trending-up-DsDcs3Jo.js → trending-up-DrtLViSm.js} +1 -1
- package/ui/dist/assets/trophy-DdRzAOfo.js +6 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/CPFiles-G7veSjMg.js +0 -6
- package/ui/dist/assets/CPGoals-C3DlKJrJ.js +0 -1
- package/ui/dist/assets/CPInbox-D10curQs.js +0 -16
- package/ui/dist/assets/ChannelsPanel-M3pO2htW.js +0 -1
- package/ui/dist/assets/CommandPostHub-CW9OY1A4.js +0 -37
- package/ui/dist/assets/InlineEditableField-CH-jR3LC.js +0 -11
- package/ui/dist/assets/IntegrationsPanel-EaN999Te.js +0 -1
- package/ui/dist/assets/IntelligenceView-Q4DBmJpJ.js +0 -2
- package/ui/dist/assets/McpPanel-zC7jTaSx.js +0 -6
- package/ui/dist/assets/MeshPanel-CqtYZ74K.js +0 -11
- package/ui/dist/assets/NvidiaPanel-BVIZFHet.js +0 -1
- package/ui/dist/assets/SelfImprovePanel-PSCYO6sx.js +0 -11
- package/ui/dist/assets/SessionsTab-Cn3dGgjX.js +0 -1
- package/ui/dist/assets/SettingsView-3BSIzAfW.js +0 -2
- package/ui/dist/assets/TitanCanvas-cnb7R1gS.js +0 -1056
- package/ui/dist/assets/ToolsView-Dp-xUWJG.js +0 -2
- package/ui/dist/assets/WorkTab-Pgq-iLz9.js +0 -1
- package/ui/dist/assets/WorkflowsPanel-B91LeW7r.js +0 -21
- package/ui/dist/assets/eye-BfW7UcEC.js +0 -11
- package/ui/dist/assets/index-BWSnB6Kr.js +0 -227
- package/ui/dist/assets/index-Dtw1pbjc.css +0 -1
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/TitanCanvas-cnb7R1gS.js","assets/VoiceOverlay-XIyCbAP7.js","assets/TitanCanvas-BfitWg9R.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
var cg=Object.defineProperty;var hm=i=>{throw TypeError(i)};var sg=(i,u,s)=>u in i?cg(i,u,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[u]=s;var mm=(i,u,s)=>sg(i,typeof u!="symbol"?u+"":u,s),Dr=(i,u,s)=>u.has(i)||hm("Cannot "+s);var U=(i,u,s)=>(Dr(i,u,"read from private field"),s?s.call(i):u.get(i)),xe=(i,u,s)=>u.has(i)?hm("Cannot add the same private member more than once"):u instanceof WeakSet?u.add(i):u.set(i,s),ce=(i,u,s,r)=>(Dr(i,u,"write to private field"),r?r.call(i,s):u.set(i,s),s),ot=(i,u,s)=>(Dr(i,u,"access private method"),s);var sc=(i,u,s,r)=>({set _(f){ce(i,u,f,s)},get _(){return U(i,u,r)}});(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const m of f)if(m.type==="childList")for(const v of m.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).observe(document,{childList:!0,subtree:!0});function s(f){const m={};return f.integrity&&(m.integrity=f.integrity),f.referrerPolicy&&(m.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?m.credentials="include":f.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function r(f){if(f.ep)return;f.ep=!0;const m=s(f);fetch(f.href,m)}})();var t2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rg(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var Ur={exports:{}},_i={};/**
|
|
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 ym;function og(){if(ym)return _i;ym=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(r,f,m){var v=null;if(m!==void 0&&(v=""+m),f.key!==void 0&&(v=""+f.key),"key"in f){m={};for(var g in f)g!=="key"&&(m[g]=f[g])}else m=f;return f=m.ref,{$$typeof:i,type:r,key:v,ref:f!==void 0?f:null,props:m}}return _i.Fragment=u,_i.jsx=s,_i.jsxs=s,_i}var pm;function fg(){return pm||(pm=1,Ur.exports=og()),Ur.exports}var h=fg(),Hr={exports:{}},oe={};/**
|
|
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 gm;function dg(){if(gm)return oe;gm=1;var i=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),D=Symbol.iterator;function Q(S){return S===null||typeof S!="object"?null:(S=D&&S[D]||S["@@iterator"],typeof S=="function"?S:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,k={};function Y(S,w,V){this.props=S,this.context=w,this.refs=k,this.updater=V||Z}Y.prototype.isReactComponent={},Y.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")},Y.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=Y.prototype;function B(S,w,V){this.props=S,this.context=w,this.refs=k,this.updater=V||Z}var X=B.prototype=new F;X.constructor=B,z(X,Y.prototype),X.isPureReactComponent=!0;var ne=Array.isArray;function ee(){}var W={H:null,A:null,T:null,S:null},fe=Object.prototype.hasOwnProperty;function te(S,w,V){var J=V.ref;return{$$typeof:i,type:S,key:w,ref:J!==void 0?J:null,props:V}}function Le(S,w){return te(S.type,w,S.props)}function _e(S){return typeof S=="object"&&S!==null&&S.$$typeof===i}function Be(S){var w={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(V){return w[V]})}var Ge=/\/+/g;function Ae(S,w){return typeof S=="object"&&S!==null&&S.key!=null?Be(""+S.key):w.toString(36)}function Me(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(ee,ee):(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 R(S,w,V,J,ae){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var se=!1;if(S===null)se=!0;else switch(re){case"bigint":case"string":case"number":se=!0;break;case"object":switch(S.$$typeof){case i:case u:se=!0;break;case N:return se=S._init,R(se(S._payload),w,V,J,ae)}}if(se)return ae=ae(S),se=J===""?"."+Ae(S,0):J,ne(ae)?(V="",se!=null&&(V=se.replace(Ge,"$&/")+"/"),R(ae,w,V,"",function(It){return It})):ae!=null&&(_e(ae)&&(ae=Le(ae,V+(ae.key==null||S&&S.key===ae.key?"":(""+ae.key).replace(Ge,"$&/")+"/")+se)),w.push(ae)),1;se=0;var Ze=J===""?".":J+":";if(ne(S))for(var De=0;De<S.length;De++)J=S[De],re=Ze+Ae(J,De),se+=R(J,w,V,re,ae);else if(De=Q(S),typeof De=="function")for(S=De.call(S),De=0;!(J=S.next()).done;)J=J.value,re=Ze+Ae(J,De++),se+=R(J,w,V,re,ae);else if(re==="object"){if(typeof S.then=="function")return R(Me(S),w,V,J,ae);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 se}function G(S,w,V){if(S==null)return S;var J=[],ae=0;return R(S,J,"","",function(re){return w.call(V,re,ae++)}),J}function K(S){if(S._status===-1){var w=S._result;w=w(),w.then(function(V){(S._status===0||S._status===-1)&&(S._status=1,S._result=V)},function(V){(S._status===0||S._status===-1)&&(S._status=2,S._result=V)}),S._status===-1&&(S._status=0,S._result=w)}if(S._status===1)return S._result.default;throw S._result}var ue=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)},me={map:G,forEach:function(S,w,V){G(S,function(){w.apply(this,arguments)},V)},count:function(S){var w=0;return G(S,function(){w++}),w},toArray:function(S){return G(S,function(w){return w})||[]},only:function(S){if(!_e(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return oe.Activity=E,oe.Children=me,oe.Component=Y,oe.Fragment=s,oe.Profiler=f,oe.PureComponent=B,oe.StrictMode=r,oe.Suspense=p,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,oe.__COMPILER_RUNTIME={__proto__:null,c:function(S){return W.H.useMemoCache(S)}},oe.cache=function(S){return function(){return S.apply(null,arguments)}},oe.cacheSignal=function(){return null},oe.cloneElement=function(S,w,V){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var J=z({},S.props),ae=S.key;if(w!=null)for(re in w.key!==void 0&&(ae=""+w.key),w)!fe.call(w,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&w.ref===void 0||(J[re]=w[re]);var re=arguments.length-2;if(re===1)J.children=V;else if(1<re){for(var se=Array(re),Ze=0;Ze<re;Ze++)se[Ze]=arguments[Ze+2];J.children=se}return te(S.type,ae,J)},oe.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},oe.createElement=function(S,w,V){var J,ae={},re=null;if(w!=null)for(J in w.key!==void 0&&(re=""+w.key),w)fe.call(w,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ae[J]=w[J]);var se=arguments.length-2;if(se===1)ae.children=V;else if(1<se){for(var Ze=Array(se),De=0;De<se;De++)Ze[De]=arguments[De+2];ae.children=Ze}if(S&&S.defaultProps)for(J in se=S.defaultProps,se)ae[J]===void 0&&(ae[J]=se[J]);return te(S,re,ae)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(S){return{$$typeof:g,render:S}},oe.isValidElement=_e,oe.lazy=function(S){return{$$typeof:N,_payload:{_status:-1,_result:S},_init:K}},oe.memo=function(S,w){return{$$typeof:y,type:S,compare:w===void 0?null:w}},oe.startTransition=function(S){var w=W.T,V={};W.T=V;try{var J=S(),ae=W.S;ae!==null&&ae(V,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ee,ue)}catch(re){ue(re)}finally{w!==null&&V.types!==null&&(w.types=V.types),W.T=w}},oe.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},oe.use=function(S){return W.H.use(S)},oe.useActionState=function(S,w,V){return W.H.useActionState(S,w,V)},oe.useCallback=function(S,w){return W.H.useCallback(S,w)},oe.useContext=function(S){return W.H.useContext(S)},oe.useDebugValue=function(){},oe.useDeferredValue=function(S,w){return W.H.useDeferredValue(S,w)},oe.useEffect=function(S,w){return W.H.useEffect(S,w)},oe.useEffectEvent=function(S){return W.H.useEffectEvent(S)},oe.useId=function(){return W.H.useId()},oe.useImperativeHandle=function(S,w,V){return W.H.useImperativeHandle(S,w,V)},oe.useInsertionEffect=function(S,w){return W.H.useInsertionEffect(S,w)},oe.useLayoutEffect=function(S,w){return W.H.useLayoutEffect(S,w)},oe.useMemo=function(S,w){return W.H.useMemo(S,w)},oe.useOptimistic=function(S,w){return W.H.useOptimistic(S,w)},oe.useReducer=function(S,w,V){return W.H.useReducer(S,w,V)},oe.useRef=function(S){return W.H.useRef(S)},oe.useState=function(S){return W.H.useState(S)},oe.useSyncExternalStore=function(S,w,V){return W.H.useSyncExternalStore(S,w,V)},oe.useTransition=function(){return W.H.useTransition()},oe.version="19.2.4",oe}var vm;function to(){return vm||(vm=1,Hr.exports=dg()),Hr.exports}var x=to();const a2=rg(x);var qr={exports:{}},Di={},Lr={exports:{}},Br={};/**
|
|
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 bm;function hg(){return bm||(bm=1,(function(i){function u(R,G){var K=R.length;R.push(G);e:for(;0<K;){var ue=K-1>>>1,me=R[ue];if(0<f(me,G))R[ue]=G,R[K]=me,K=ue;else break e}}function s(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var G=R[0],K=R.pop();if(K!==G){R[0]=K;e:for(var ue=0,me=R.length,S=me>>>1;ue<S;){var w=2*(ue+1)-1,V=R[w],J=w+1,ae=R[J];if(0>f(V,K))J<me&&0>f(ae,V)?(R[ue]=ae,R[J]=K,ue=J):(R[ue]=V,R[w]=K,ue=w);else if(J<me&&0>f(ae,K))R[ue]=ae,R[J]=K,ue=J;else break e}}return G}function f(R,G){var K=R.sortIndex-G.sortIndex;return K!==0?K:R.id-G.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 v=Date,g=v.now();i.unstable_now=function(){return v.now()-g}}var p=[],y=[],N=1,E=null,D=3,Q=!1,Z=!1,z=!1,k=!1,Y=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function X(R){for(var G=s(y);G!==null;){if(G.callback===null)r(y);else if(G.startTime<=R)r(y),G.sortIndex=G.expirationTime,u(p,G);else break;G=s(y)}}function ne(R){if(z=!1,X(R),!Z)if(s(p)!==null)Z=!0,ee||(ee=!0,Be());else{var G=s(y);G!==null&&Me(ne,G.startTime-R)}}var ee=!1,W=-1,fe=5,te=-1;function Le(){return k?!0:!(i.unstable_now()-te<fe)}function _e(){if(k=!1,ee){var R=i.unstable_now();te=R;var G=!0;try{e:{Z=!1,z&&(z=!1,F(W),W=-1),Q=!0;var K=D;try{t:{for(X(R),E=s(p);E!==null&&!(E.expirationTime>R&&Le());){var ue=E.callback;if(typeof ue=="function"){E.callback=null,D=E.priorityLevel;var me=ue(E.expirationTime<=R);if(R=i.unstable_now(),typeof me=="function"){E.callback=me,X(R),G=!0;break t}E===s(p)&&r(p),X(R)}else r(p);E=s(p)}if(E!==null)G=!0;else{var S=s(y);S!==null&&Me(ne,S.startTime-R),G=!1}}break e}finally{E=null,D=K,Q=!1}G=void 0}}finally{G?Be():ee=!1}}}var Be;if(typeof B=="function")Be=function(){B(_e)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,Ae=Ge.port2;Ge.port1.onmessage=_e,Be=function(){Ae.postMessage(null)}}else Be=function(){Y(_e,0)};function Me(R,G){W=Y(function(){R(i.unstable_now())},G)}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(R){R.callback=null},i.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<R?Math.floor(1e3/R):5},i.unstable_getCurrentPriorityLevel=function(){return D},i.unstable_next=function(R){switch(D){case 1:case 2:case 3:var G=3;break;default:G=D}var K=D;D=G;try{return R()}finally{D=K}},i.unstable_requestPaint=function(){k=!0},i.unstable_runWithPriority=function(R,G){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var K=D;D=R;try{return G()}finally{D=K}},i.unstable_scheduleCallback=function(R,G,K){var ue=i.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ue+K:ue):K=ue,R){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=K+me,R={id:N++,callback:G,priorityLevel:R,startTime:K,expirationTime:me,sortIndex:-1},K>ue?(R.sortIndex=K,u(y,R),s(p)===null&&R===s(y)&&(z?(F(W),W=-1):z=!0,Me(ne,K-ue))):(R.sortIndex=me,u(p,R),Z||Q||(Z=!0,ee||(ee=!0,Be()))),R},i.unstable_shouldYield=Le,i.unstable_wrapCallback=function(R){var G=D;return function(){var K=D;D=G;try{return R.apply(this,arguments)}finally{D=K}}}})(Br)),Br}var xm;function mg(){return xm||(xm=1,Lr.exports=hg()),Lr.exports}var Gr={exports:{}},dt={};/**
|
|
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 Sm;function yg(){if(Sm)return dt;Sm=1;var i=to();function u(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)y+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function m(p,y,N){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:E==null?null:""+E,children:p,containerInfo:y,implementation:N}}var v=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return dt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dt.createPortal=function(p,y){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(u(299));return m(p,y,null,N)},dt.flushSync=function(p){var y=v.T,N=r.p;try{if(v.T=null,r.p=2,p)return p()}finally{v.T=y,r.p=N,r.d.f()}},dt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},dt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},dt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var N=y.as,E=g(N,y.crossOrigin),D=typeof y.integrity=="string"?y.integrity:void 0,Q=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;N==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:D,fetchPriority:Q}):N==="script"&&r.d.X(p,{crossOrigin:E,integrity:D,fetchPriority:Q,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},dt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var N=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},dt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var N=y.as,E=g(N,y.crossOrigin);r.d.L(p,N,{crossOrigin:E,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})}},dt.preloadModule=function(p,y){if(typeof p=="string")if(y){var N=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:N,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},dt.requestFormReset=function(p){r.d.r(p)},dt.unstable_batchedUpdates=function(p,y){return p(y)},dt.useFormState=function(p,y,N){return v.H.useFormState(p,y,N)},dt.useFormStatus=function(){return v.H.useHostTransitionStatus()},dt.version="19.2.4",dt}var Tm;function pg(){if(Tm)return Gr.exports;Tm=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(u){console.error(u)}}return i(),Gr.exports=yg(),Gr.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 Em;function gg(){if(Em)return Di;Em=1;var i=mg(),u=to(),s=pg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(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 g(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 p(e){if(m(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(r(188));return t!==e?null:e}for(var a=e,l=t;;){var n=a.return;if(n===null)break;var c=n.alternate;if(c===null){if(l=n.return,l!==null){a=l;continue}break}if(n.child===c.child){for(c=n.child;c;){if(c===a)return p(n),e;if(c===l)return p(n),t;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=n,l=c;else{for(var o=!1,d=n.child;d;){if(d===a){o=!0,a=n,l=c;break}if(d===l){o=!0,l=n,a=c;break}d=d.sibling}if(!o){for(d=c.child;d;){if(d===a){o=!0,a=c,l=n;break}if(d===l){o=!0,l=c,a=n;break}d=d.sibling}if(!o)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?e:t}function N(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=N(e),t!==null)return t;e=e.sibling}return null}var E=Object.assign,D=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),B=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),Le=Symbol.for("react.memo_cache_sentinel"),_e=Symbol.iterator;function Be(e){return e===null||typeof e!="object"?null:(e=_e&&e[_e]||e["@@iterator"],typeof e=="function"?e:null)}var Ge=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case Y:return"Profiler";case k:return"StrictMode";case ne:return"Suspense";case ee:return"SuspenseList";case te:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case B:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case X:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case W:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var Me=Array.isArray,R=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ue=[],me=-1;function S(e){return{current:e}}function w(e){0>me||(e.current=ue[me],ue[me]=null,me--)}function V(e,t){me++,ue[me]=e.current,e.current=t}var J=S(null),ae=S(null),re=S(null),se=S(null);function Ze(e,t){switch(V(re,t),V(ae,e),V(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Hh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hh(t),e=qh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w(J),V(J,e)}function De(){w(J),w(ae),w(re)}function It(e){e.memoizedState!==null&&V(se,e);var t=J.current,a=qh(t,e.type);t!==a&&(V(ae,e),V(J,a))}function oa(e){ae.current===e&&(w(J),w(ae)),se.current===e&&(w(se),Oi._currentValue=K)}var Dn,Un;function ea(e){if(Dn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Dn=t&&t[1]||"",Un=-1<a.stack.indexOf(`
|
|
43
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
-
`+Dn+e+Un}var Hn=!1;function qn(e,t){if(!e||Hn)return"";Hn=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(O){var j=O}Reflect.construct(e,[],q)}else{try{q.call()}catch(O){j=O}e.call(q.prototype)}}else{try{throw Error()}catch(O){j=O}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(O){if(O&&j&&typeof O.stack=="string")return[O.stack,j.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),o=c[0],d=c[1];if(o&&d){var b=o.split(`
|
|
45
|
-
`),M=d.split(`
|
|
46
|
-
`);for(n=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;n<M.length&&!M[n].includes("DetermineComponentFrameRoot");)n++;if(l===b.length||n===M.length)for(l=b.length-1,n=M.length-1;1<=l&&0<=n&&b[l]!==M[n];)n--;for(;1<=l&&0<=n;l--,n--)if(b[l]!==M[n]){if(l!==1||n!==1)do if(l--,n--,0>n||b[l]!==M[n]){var _=`
|
|
47
|
-
`+b[l].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),_}while(1<=l&&0<=n);break}}}finally{Hn=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ea(a):""}function Ln(e,t){switch(e.tag){case 26:case 27:case 5:return ea(e.type);case 16:return ea("Lazy");case 13:return e.child!==t&&t!==null?ea("Suspense Fallback"):ea("Suspense");case 19:return ea("SuspenseList");case 0:case 15:return qn(e.type,!1);case 11:return qn(e.type.render,!1);case 1:return qn(e.type,!0);case 31:return ea("Activity");default:return""}}function Bn(e){try{var t="",a=null;do t+=Ln(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
48
|
-
Error generating stack: `+l.message+`
|
|
49
|
-
`+l.stack}}var Ul=Object.prototype.hasOwnProperty,Gn=i.unstable_scheduleCallback,Hl=i.unstable_cancelCallback,L=i.unstable_shouldYield,je=i.unstable_requestPaint,Ie=i.unstable_now,fa=i.unstable_getCurrentPriorityLevel,ho=i.unstable_ImmediatePriority,mo=i.unstable_UserBlockingPriority,Vi=i.unstable_NormalPriority,Qy=i.unstable_LowPriority,yo=i.unstable_IdlePriority,ky=i.log,Xy=i.unstable_setDisableYieldValue,Yn=null,Et=null;function _a(e){if(typeof ky=="function"&&Xy(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Yn,e)}catch{}}var At=Math.clz32?Math.clz32:Ky,Vy=Math.log,Zy=Math.LN2;function Ky(e){return e>>>=0,e===0?32:31-(Vy(e)/Zy|0)|0}var Zi=256,Ki=262144,Ji=4194304;function fl(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 $i(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var n=0,c=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var d=l&134217727;return d!==0?(l=d&~c,l!==0?n=fl(l):(o&=d,o!==0?n=fl(o):a||(a=d&~e,a!==0&&(n=fl(a))))):(d=l&~c,d!==0?n=fl(d):o!==0?n=fl(o):a||(a=l&~e,a!==0&&(n=fl(a)))),n===0?0:t!==0&&t!==n&&(t&c)===0&&(c=n&-n,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:n}function Qn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jy(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 po(){var e=Ji;return Ji<<=1,(Ji&62914560)===0&&(Ji=4194304),e}function Tc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function kn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $y(e,t,a,l,n,c){var o=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var d=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(a=o&~a;0<a;){var _=31-At(a),q=1<<_;d[_]=0,b[_]=-1;var j=M[_];if(j!==null)for(M[_]=null,_=0;_<j.length;_++){var O=j[_];O!==null&&(O.lane&=-536870913)}a&=~q}l!==0&&go(e,l,0),c!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=c&~(o&~t))}function go(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-At(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function vo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-At(a),n=1<<l;n&t|e[l]&t&&(e[l]|=t),a&=~n}}function bo(e,t){var a=t&-t;return a=(a&42)!==0?1:Ec(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ec(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 Ac(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function xo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:um(e.type))}function So(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Da=Math.random().toString(36).slice(2),it="__reactFiber$"+Da,pt="__reactProps$"+Da,ql="__reactContainer$"+Da,Nc="__reactEvents$"+Da,Fy="__reactListeners$"+Da,Wy="__reactHandles$"+Da,To="__reactResources$"+Da,Xn="__reactMarker$"+Da;function Cc(e){delete e[it],delete e[pt],delete e[Nc],delete e[Fy],delete e[Wy]}function Ll(e){var t=e[it];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ql]||a[it]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Xh(e);e!==null;){if(a=e[it])return a;e=Xh(e)}return t}e=a,a=e.parentNode}return null}function Bl(e){if(e=e[it]||e[ql]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Gl(e){var t=e[To];return t||(t=e[To]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Xn]=!0}var Eo=new Set,Ao={};function dl(e,t){Yl(e,t),Yl(e+"Capture",t)}function Yl(e,t){for(Ao[e]=t,e=0;e<t.length;e++)Eo.add(t[e])}var Py=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]*$"),No={},Co={};function Iy(e){return Ul.call(Co,e)?!0:Ul.call(No,e)?!1:Py.test(e)?Co[e]=!0:(No[e]=!0,!1)}function Fi(e,t,a){if(Iy(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Wi(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function da(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Mo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e0(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var n=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){a=""+o,c.call(this,o)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mc(e){if(!e._valueTracker){var t=Mo(e)?"checked":"value";e._valueTracker=e0(e,t,""+e[t])}}function jo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Mo(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Pi(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 t0=/[\n"\\]/g;function Ut(e){return e.replace(t0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jc(e,t,a,l,n,c,o,d){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Oc(e,o,Dt(t)):a!=null?Oc(e,o,Dt(a)):l!=null&&e.removeAttribute("value"),n==null&&c!=null&&(e.defaultChecked=!!c),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+Dt(d):e.removeAttribute("name")}function Oo(e,t,a,l,n,c,o,d){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Mc(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}l=l??n,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=d?e.checked:!!l,e.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Mc(e)}function Oc(e,t,a){t==="number"&&Pi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ql(e,t,a,l){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,l&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function zo(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function Ro(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(r(92));if(Me(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Mc(e)}function kl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var a0=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,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||a0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function _o(e,t,a){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var n in t)l=t[n],t.hasOwnProperty(n)&&a[n]!==l&&wo(e,n,l)}else for(var c in t)t.hasOwnProperty(c)&&wo(e,c,t[c])}function zc(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 l0=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"]]),n0=/^[\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 Ii(e){return n0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var Rc=null;function wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xl=null,Vl=null;function Do(e){var t=Bl(e);if(t&&(e=t.stateNode)){var a=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(jc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ut(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var n=l[pt]||null;if(!n)throw Error(r(90));jc(l,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&jo(l)}break e;case"textarea":zo(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ql(e,!!a.multiple,t,!1)}}}var _c=!1;function Uo(e,t,a){if(_c)return e(t,a);_c=!0;try{var l=e(t);return l}finally{if(_c=!1,(Xl!==null||Vl!==null)&&(Gu(),Xl&&(t=Xl,e=Vl,Vl=Xl=null,Do(t),e)))for(t=0;t<e.length;t++)Do(e[t])}}function Zn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[pt]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(r(231,t,typeof a));return a}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dc=!1;if(ma)try{var Kn={};Object.defineProperty(Kn,"passive",{get:function(){Dc=!0}}),window.addEventListener("test",Kn,Kn),window.removeEventListener("test",Kn,Kn)}catch{Dc=!1}var Ua=null,Uc=null,eu=null;function Ho(){if(eu)return eu;var e,t=Uc,a=t.length,l,n="value"in Ua?Ua.value:Ua.textContent,c=n.length;for(e=0;e<a&&t[e]===n[e];e++);var o=a-e;for(l=1;l<=o&&t[a-l]===n[c-l];l++);return eu=n.slice(e,1<l?1-l:void 0)}function tu(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 au(){return!0}function qo(){return!1}function gt(e){function t(a,l,n,c,o){this._reactName=a,this._targetInst=n,this.type=l,this.nativeEvent=c,this.target=o,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(c):c[d]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?au:qo,this.isPropagationStopped=qo,this}return E(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=au)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),t}var hl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=gt(hl),Jn=E({},hl,{view:0,detail:0}),i0=gt(Jn),Hc,qc,$n,nu=E({},Jn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bc,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!==$n&&($n&&e.type==="mousemove"?(Hc=e.screenX-$n.screenX,qc=e.screenY-$n.screenY):qc=Hc=0,$n=e),Hc)},movementY:function(e){return"movementY"in e?e.movementY:qc}}),Lo=gt(nu),u0=E({},nu,{dataTransfer:0}),c0=gt(u0),s0=E({},Jn,{relatedTarget:0}),Lc=gt(s0),r0=E({},hl,{animationName:0,elapsedTime:0,pseudoElement:0}),o0=gt(r0),f0=E({},hl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),d0=gt(f0),h0=E({},hl,{data:0}),Bo=gt(h0),m0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y0={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"},p0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=p0[e])?!!t[e]:!1}function Bc(){return g0}var v0=E({},Jn,{key:function(e){if(e.key){var t=m0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bc,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),b0=gt(v0),x0=E({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Go=gt(x0),S0=E({},Jn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bc}),T0=gt(S0),E0=E({},hl,{propertyName:0,elapsedTime:0,pseudoElement:0}),A0=gt(E0),N0=E({},nu,{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}),C0=gt(N0),M0=E({},hl,{newState:0,oldState:0}),j0=gt(M0),O0=[9,13,27,32],Gc=ma&&"CompositionEvent"in window,Fn=null;ma&&"documentMode"in document&&(Fn=document.documentMode);var z0=ma&&"TextEvent"in window&&!Fn,Yo=ma&&(!Gc||Fn&&8<Fn&&11>=Fn),Qo=" ",ko=!1;function Xo(e,t){switch(e){case"keyup":return O0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function R0(e,t){switch(e){case"compositionend":return Vo(t);case"keypress":return t.which!==32?null:(ko=!0,Qo);case"textInput":return e=t.data,e===Qo&&ko?null:e;default:return null}}function w0(e,t){if(Zl)return e==="compositionend"||!Gc&&Xo(e,t)?(e=Ho(),eu=Uc=Ua=null,Zl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yo&&t.locale!=="ko"?null:t.data;default:return null}}var _0={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 Zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_0[e.type]:t==="textarea"}function Ko(e,t,a,l){Xl?Vl?Vl.push(l):Vl=[l]:Xl=l,t=Ku(t,"onChange"),0<t.length&&(a=new lu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Wn=null,Pn=null;function D0(e){zh(e,0)}function iu(e){var t=Vn(e);if(jo(t))return e}function Jo(e,t){if(e==="change")return t}var $o=!1;if(ma){var Yc;if(ma){var Qc="oninput"in document;if(!Qc){var Fo=document.createElement("div");Fo.setAttribute("oninput","return;"),Qc=typeof Fo.oninput=="function"}Yc=Qc}else Yc=!1;$o=Yc&&(!document.documentMode||9<document.documentMode)}function Wo(){Wn&&(Wn.detachEvent("onpropertychange",Po),Pn=Wn=null)}function Po(e){if(e.propertyName==="value"&&iu(Pn)){var t=[];Ko(t,Pn,e,wc(e)),Uo(D0,t)}}function U0(e,t,a){e==="focusin"?(Wo(),Wn=t,Pn=a,Wn.attachEvent("onpropertychange",Po)):e==="focusout"&&Wo()}function H0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Pn)}function q0(e,t){if(e==="click")return iu(t)}function L0(e,t){if(e==="input"||e==="change")return iu(t)}function B0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nt=typeof Object.is=="function"?Object.is:B0;function In(e,t){if(Nt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var n=a[l];if(!Ul.call(t,n)||!Nt(e[n],t[n]))return!1}return!0}function Io(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ef(e,t){var a=Io(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Io(a)}}function tf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?tf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function af(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pi(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Pi(e.document)}return t}function kc(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 G0=ma&&"documentMode"in document&&11>=document.documentMode,Kl=null,Xc=null,ei=null,Vc=!1;function lf(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vc||Kl==null||Kl!==Pi(l)||(l=Kl,"selectionStart"in l&&kc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ei&&In(ei,l)||(ei=l,l=Ku(Xc,"onSelect"),0<l.length&&(t=new lu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Kl)))}function ml(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Jl={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionrun:ml("Transition","TransitionRun"),transitionstart:ml("Transition","TransitionStart"),transitioncancel:ml("Transition","TransitionCancel"),transitionend:ml("Transition","TransitionEnd")},Zc={},nf={};ma&&(nf=document.createElement("div").style,"AnimationEvent"in window||(delete Jl.animationend.animation,delete Jl.animationiteration.animation,delete Jl.animationstart.animation),"TransitionEvent"in window||delete Jl.transitionend.transition);function yl(e){if(Zc[e])return Zc[e];if(!Jl[e])return e;var t=Jl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in nf)return Zc[e]=t[a];return e}var uf=yl("animationend"),cf=yl("animationiteration"),sf=yl("animationstart"),Y0=yl("transitionrun"),Q0=yl("transitionstart"),k0=yl("transitioncancel"),rf=yl("transitionend"),of=new Map,Kc="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(" ");Kc.push("scrollEnd");function Vt(e,t){of.set(e,t),dl(t,[e])}var uu=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)},Ht=[],$l=0,Jc=0;function cu(){for(var e=$l,t=Jc=$l=0;t<e;){var a=Ht[t];Ht[t++]=null;var l=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var c=Ht[t];if(Ht[t++]=null,l!==null&&n!==null){var o=l.pending;o===null?n.next=n:(n.next=o.next,o.next=n),l.pending=n}c!==0&&ff(a,n,c)}}function su(e,t,a,l){Ht[$l++]=e,Ht[$l++]=t,Ht[$l++]=a,Ht[$l++]=l,Jc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function $c(e,t,a,l){return su(e,t,a,l),ru(e)}function pl(e,t){return su(e,null,null,t),ru(e)}function ff(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var n=!1,c=e.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(n=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,n&&t!==null&&(n=31-At(a),e=c.hiddenUpdates,l=e[n],l===null?e[n]=[t]:l.push(t),t.lane=a|536870912),c):null}function ru(e){if(50<Ti)throw Ti=0,nr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fl={};function X0(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,a,l){return new X0(e,t,a,l)}function Fc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ya(e,t){var a=e.alternate;return a===null?(a=Ct(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function df(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ou(e,t,a,l,n,c){var o=0;if(l=e,typeof e=="function")Fc(e)&&(o=1);else if(typeof e=="string")o=$p(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case te:return e=Ct(31,a,t,n),e.elementType=te,e.lanes=c,e;case z:return gl(a.children,n,c,t);case k:o=8,n|=24;break;case Y:return e=Ct(12,a,t,n|2),e.elementType=Y,e.lanes=c,e;case ne:return e=Ct(13,a,t,n),e.elementType=ne,e.lanes=c,e;case ee:return e=Ct(19,a,t,n),e.elementType=ee,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case B:o=10;break e;case F:o=9;break e;case X:o=11;break e;case W:o=14;break e;case fe:o=16,l=null;break e}o=29,a=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Ct(o,a,t,n),t.elementType=e,t.type=l,t.lanes=c,t}function gl(e,t,a,l){return e=Ct(7,e,l,t),e.lanes=a,e}function Wc(e,t,a){return e=Ct(6,e,null,t),e.lanes=a,e}function hf(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Pc(e,t,a){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mf=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=mf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Bn(t)},mf.set(e,t),t)}return{value:e,source:t,stack:Bn(t)}}var Wl=[],Pl=0,fu=null,ti=0,Lt=[],Bt=0,Ha=null,ta=1,aa="";function pa(e,t){Wl[Pl++]=ti,Wl[Pl++]=fu,fu=e,ti=t}function yf(e,t,a){Lt[Bt++]=ta,Lt[Bt++]=aa,Lt[Bt++]=Ha,Ha=e;var l=ta;e=aa;var n=32-At(l)-1;l&=~(1<<n),a+=1;var c=32-At(t)+n;if(30<c){var o=n-n%5;c=(l&(1<<o)-1).toString(32),l>>=o,n-=o,ta=1<<32-At(t)+n|a<<n|l,aa=c+e}else ta=1<<c|a<<n|l,aa=e}function Ic(e){e.return!==null&&(pa(e,1),yf(e,1,0))}function es(e){for(;e===fu;)fu=Wl[--Pl],Wl[Pl]=null,ti=Wl[--Pl],Wl[Pl]=null;for(;e===Ha;)Ha=Lt[--Bt],Lt[Bt]=null,aa=Lt[--Bt],Lt[Bt]=null,ta=Lt[--Bt],Lt[Bt]=null}function pf(e,t){Lt[Bt++]=ta,Lt[Bt++]=aa,Lt[Bt++]=Ha,ta=t.id,aa=t.overflow,Ha=e}var ut=null,He=null,be=!1,qa=null,Gt=!1,ts=Error(r(519));function La(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ai(qt(t,e)),ts}function gf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[it]=e,t[pt]=l,a){case"dialog":pe("cancel",t),pe("close",t);break;case"iframe":case"object":case"embed":pe("load",t);break;case"video":case"audio":for(a=0;a<Ai.length;a++)pe(Ai[a],t);break;case"source":pe("error",t);break;case"img":case"image":case"link":pe("error",t),pe("load",t);break;case"details":pe("toggle",t);break;case"input":pe("invalid",t),Oo(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":pe("invalid",t);break;case"textarea":pe("invalid",t),Ro(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Dh(t.textContent,a)?(l.popover!=null&&(pe("beforetoggle",t),pe("toggle",t)),l.onScroll!=null&&pe("scroll",t),l.onScrollEnd!=null&&pe("scrollend",t),l.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||La(e,!0)}function vf(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:Gt=!1;return;case 27:case 3:Gt=!0;return;default:ut=ut.return}}function Il(e){if(e!==ut)return!1;if(!be)return vf(e),be=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||br(e.type,e.memoizedProps)),a=!a),a&&He&&La(e),vf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=kh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=kh(e)}else t===27?(t=He,Pa(e.type)?(e=Ar,Ar=null,He=e):He=t):He=ut?Qt(e.stateNode.nextSibling):null;return!0}function vl(){He=ut=null,be=!1}function as(){var e=qa;return e!==null&&(St===null?St=e:St.push.apply(St,e),qa=null),e}function ai(e){qa===null?qa=[e]:qa.push(e)}var ls=S(null),bl=null,ga=null;function Ba(e,t,a){V(ls,t._currentValue),t._currentValue=a}function va(e){e._currentValue=ls.current,w(ls)}function ns(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function is(e,t,a,l){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var c=n.dependencies;if(c!==null){var o=n.child;c=c.firstContext;e:for(;c!==null;){var d=c;c=n;for(var b=0;b<t.length;b++)if(d.context===t[b]){c.lanes|=a,d=c.alternate,d!==null&&(d.lanes|=a),ns(c.return,a,e),l||(o=null);break e}c=d.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(r(341));o.lanes|=a,c=o.alternate,c!==null&&(c.lanes|=a),ns(o,a,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function en(e,t,a,l){e=null;for(var n=t,c=!1;n!==null;){if(!c){if((n.flags&524288)!==0)c=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var d=n.type;Nt(n.pendingProps.value,o.value)||(e!==null?e.push(d):e=[d])}}else if(n===se.current){if(o=n.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Oi):e=[Oi])}n=n.return}e!==null&&is(t,e,a,l),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!Nt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xl(e){bl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return bf(bl,e)}function hu(e,t){return bl===null&&xl(e),bf(e,t)}function bf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ga===null){if(e===null)throw Error(r(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return a}var V0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Z0=i.unstable_scheduleCallback,K0=i.unstable_NormalPriority,$e={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function us(){return{controller:new V0,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Z0(K0,function(){e.controller.abort()})}var ni=null,cs=0,tn=0,an=null;function J0(e,t){if(ni===null){var a=ni=[];cs=0,tn=or(),an={status:"pending",value:void 0,then:function(l){a.push(l)}}}return cs++,t.then(xf,xf),t}function xf(){if(--cs===0&&ni!==null){an!==null&&(an.status="fulfilled");var e=ni;ni=null,tn=0,an=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $0(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){for(l.status="rejected",l.reason=n,n=0;n<a.length;n++)(0,a[n])(void 0)}),l}var Sf=R.S;R.S=function(e,t){nh=Ie(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&J0(e,t),Sf!==null&&Sf(e,t)};var Sl=S(null);function ss(){var e=Sl.current;return e!==null?e:Ue.pooledCache}function mu(e,t){t===null?V(Sl,Sl.current):V(Sl,t.pool)}function Tf(){var e=ss();return e===null?null:{parent:$e._currentValue,pool:e}}var ln=Error(r(460)),rs=Error(r(474)),yu=Error(r(542)),pu={then:function(){}};function Ef(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Af(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ha,ha),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cf(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=l}},function(l){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cf(e),e}throw El=t,ln}}function Tl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(El=a,ln):a}}var El=null;function Nf(){if(El===null)throw Error(r(459));var e=El;return El=null,e}function Cf(e){if(e===ln||e===yu)throw Error(r(483))}var nn=null,ii=0;function gu(e){var t=ii;return ii+=1,nn===null&&(nn=[]),Af(nn,e,t)}function ui(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vu(e,t){throw t.$$typeof===D?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mf(e){function t(A,T){if(e){var C=A.deletions;C===null?(A.deletions=[T],A.flags|=16):C.push(T)}}function a(A,T){if(!e)return null;for(;T!==null;)t(A,T),T=T.sibling;return null}function l(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function n(A,T){return A=ya(A,T),A.index=0,A.sibling=null,A}function c(A,T,C){return A.index=C,e?(C=A.alternate,C!==null?(C=C.index,C<T?(A.flags|=67108866,T):C):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function o(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function d(A,T,C,H){return T===null||T.tag!==6?(T=Wc(C,A.mode,H),T.return=A,T):(T=n(T,C),T.return=A,T)}function b(A,T,C,H){var le=C.type;return le===z?_(A,T,C.props.children,H,C.key):T!==null&&(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===fe&&Tl(le)===T.type)?(T=n(T,C.props),ui(T,C),T.return=A,T):(T=ou(C.type,C.key,C.props,null,A.mode,H),ui(T,C),T.return=A,T)}function M(A,T,C,H){return T===null||T.tag!==4||T.stateNode.containerInfo!==C.containerInfo||T.stateNode.implementation!==C.implementation?(T=Pc(C,A.mode,H),T.return=A,T):(T=n(T,C.children||[]),T.return=A,T)}function _(A,T,C,H,le){return T===null||T.tag!==7?(T=gl(C,A.mode,H,le),T.return=A,T):(T=n(T,C),T.return=A,T)}function q(A,T,C){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Wc(""+T,A.mode,C),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Q:return C=ou(T.type,T.key,T.props,null,A.mode,C),ui(C,T),C.return=A,C;case Z:return T=Pc(T,A.mode,C),T.return=A,T;case fe:return T=Tl(T),q(A,T,C)}if(Me(T)||Be(T))return T=gl(T,A.mode,C,null),T.return=A,T;if(typeof T.then=="function")return q(A,gu(T),C);if(T.$$typeof===B)return q(A,hu(A,T),C);vu(A,T)}return null}function j(A,T,C,H){var le=T!==null?T.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return le!==null?null:d(A,T,""+C,H);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Q:return C.key===le?b(A,T,C,H):null;case Z:return C.key===le?M(A,T,C,H):null;case fe:return C=Tl(C),j(A,T,C,H)}if(Me(C)||Be(C))return le!==null?null:_(A,T,C,H,null);if(typeof C.then=="function")return j(A,T,gu(C),H);if(C.$$typeof===B)return j(A,T,hu(A,C),H);vu(A,C)}return null}function O(A,T,C,H,le){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(C)||null,d(T,A,""+H,le);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case Q:return A=A.get(H.key===null?C:H.key)||null,b(T,A,H,le);case Z:return A=A.get(H.key===null?C:H.key)||null,M(T,A,H,le);case fe:return H=Tl(H),O(A,T,C,H,le)}if(Me(H)||Be(H))return A=A.get(C)||null,_(T,A,H,le,null);if(typeof H.then=="function")return O(A,T,C,gu(H),le);if(H.$$typeof===B)return O(A,T,C,hu(T,H),le);vu(T,H)}return null}function P(A,T,C,H){for(var le=null,Se=null,I=T,he=T=0,ve=null;I!==null&&he<C.length;he++){I.index>he?(ve=I,I=null):ve=I.sibling;var Te=j(A,I,C[he],H);if(Te===null){I===null&&(I=ve);break}e&&I&&Te.alternate===null&&t(A,I),T=c(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te,I=ve}if(he===C.length)return a(A,I),be&&pa(A,he),le;if(I===null){for(;he<C.length;he++)I=q(A,C[he],H),I!==null&&(T=c(I,T,he),Se===null?le=I:Se.sibling=I,Se=I);return be&&pa(A,he),le}for(I=l(I);he<C.length;he++)ve=O(I,A,he,C[he],H),ve!==null&&(e&&ve.alternate!==null&&I.delete(ve.key===null?he:ve.key),T=c(ve,T,he),Se===null?le=ve:Se.sibling=ve,Se=ve);return e&&I.forEach(function(ll){return t(A,ll)}),be&&pa(A,he),le}function ie(A,T,C,H){if(C==null)throw Error(r(151));for(var le=null,Se=null,I=T,he=T=0,ve=null,Te=C.next();I!==null&&!Te.done;he++,Te=C.next()){I.index>he?(ve=I,I=null):ve=I.sibling;var ll=j(A,I,Te.value,H);if(ll===null){I===null&&(I=ve);break}e&&I&&ll.alternate===null&&t(A,I),T=c(ll,T,he),Se===null?le=ll:Se.sibling=ll,Se=ll,I=ve}if(Te.done)return a(A,I),be&&pa(A,he),le;if(I===null){for(;!Te.done;he++,Te=C.next())Te=q(A,Te.value,H),Te!==null&&(T=c(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te);return be&&pa(A,he),le}for(I=l(I);!Te.done;he++,Te=C.next())Te=O(I,A,he,Te.value,H),Te!==null&&(e&&Te.alternate!==null&&I.delete(Te.key===null?he:Te.key),T=c(Te,T,he),Se===null?le=Te:Se.sibling=Te,Se=Te);return e&&I.forEach(function(ug){return t(A,ug)}),be&&pa(A,he),le}function Re(A,T,C,H){if(typeof C=="object"&&C!==null&&C.type===z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Q:e:{for(var le=C.key;T!==null;){if(T.key===le){if(le=C.type,le===z){if(T.tag===7){a(A,T.sibling),H=n(T,C.props.children),H.return=A,A=H;break e}}else if(T.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===fe&&Tl(le)===T.type){a(A,T.sibling),H=n(T,C.props),ui(H,C),H.return=A,A=H;break e}a(A,T);break}else t(A,T);T=T.sibling}C.type===z?(H=gl(C.props.children,A.mode,H,C.key),H.return=A,A=H):(H=ou(C.type,C.key,C.props,null,A.mode,H),ui(H,C),H.return=A,A=H)}return o(A);case Z:e:{for(le=C.key;T!==null;){if(T.key===le)if(T.tag===4&&T.stateNode.containerInfo===C.containerInfo&&T.stateNode.implementation===C.implementation){a(A,T.sibling),H=n(T,C.children||[]),H.return=A,A=H;break e}else{a(A,T);break}else t(A,T);T=T.sibling}H=Pc(C,A.mode,H),H.return=A,A=H}return o(A);case fe:return C=Tl(C),Re(A,T,C,H)}if(Me(C))return P(A,T,C,H);if(Be(C)){if(le=Be(C),typeof le!="function")throw Error(r(150));return C=le.call(C),ie(A,T,C,H)}if(typeof C.then=="function")return Re(A,T,gu(C),H);if(C.$$typeof===B)return Re(A,T,hu(A,C),H);vu(A,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,T!==null&&T.tag===6?(a(A,T.sibling),H=n(T,C),H.return=A,A=H):(a(A,T),H=Wc(C,A.mode,H),H.return=A,A=H),o(A)):a(A,T)}return function(A,T,C,H){try{ii=0;var le=Re(A,T,C,H);return nn=null,le}catch(I){if(I===ln||I===yu)throw I;var Se=Ct(29,I,null,A.mode);return Se.lanes=H,Se.return=A,Se}finally{}}}var Al=Mf(!0),jf=Mf(!1),Ga=!1;function os(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fs(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 Ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ee&2)!==0){var n=l.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),l.pending=t,t=ru(e),ff(e,null,a),t}return su(e,l,t,a),ru(e)}function ci(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,vo(e,a)}}function ds(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var n=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var o={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?n=c=o:c=c.next=o,a=a.next}while(a!==null);c===null?n=c=t:c=c.next=t}else n=c=t;a={baseState:l.baseState,firstBaseUpdate:n,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var hs=!1;function si(){if(hs){var e=an;if(e!==null)throw e}}function ri(e,t,a,l){hs=!1;var n=e.updateQueue;Ga=!1;var c=n.firstBaseUpdate,o=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var b=d,M=b.next;b.next=null,o===null?c=M:o.next=M,o=b;var _=e.alternate;_!==null&&(_=_.updateQueue,d=_.lastBaseUpdate,d!==o&&(d===null?_.firstBaseUpdate=M:d.next=M,_.lastBaseUpdate=b))}if(c!==null){var q=n.baseState;o=0,_=M=b=null,d=c;do{var j=d.lane&-536870913,O=j!==d.lane;if(O?(ge&j)===j:(l&j)===j){j!==0&&j===tn&&(hs=!0),_!==null&&(_=_.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var P=e,ie=d;j=t;var Re=a;switch(ie.tag){case 1:if(P=ie.payload,typeof P=="function"){q=P.call(Re,q,j);break e}q=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ie.payload,j=typeof P=="function"?P.call(Re,q,j):P,j==null)break e;q=E({},q,j);break e;case 2:Ga=!0}}j=d.callback,j!==null&&(e.flags|=64,O&&(e.flags|=8192),O=n.callbacks,O===null?n.callbacks=[j]:O.push(j))}else O={lane:j,tag:d.tag,payload:d.payload,callback:d.callback,next:null},_===null?(M=_=O,b=q):_=_.next=O,o|=j;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;O=d,d=O.next,O.next=null,n.lastBaseUpdate=O,n.shared.pending=null}}while(!0);_===null&&(b=q),n.baseState=b,n.firstBaseUpdate=M,n.lastBaseUpdate=_,c===null&&(n.shared.lanes=0),Ka|=o,e.lanes=o,e.memoizedState=q}}function Of(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function zf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Of(a[e],t)}var un=S(null),bu=S(0);function Rf(e,t){e=Ma,V(bu,e),V(un,t),Ma=e|t.baseLanes}function ms(){V(bu,Ma),V(un,un.current)}function ys(){Ma=bu.current,w(un),w(bu)}var Mt=S(null),Yt=null;function ka(e){var t=e.alternate;V(Ke,Ke.current&1),V(Mt,e),Yt===null&&(t===null||un.current!==null||t.memoizedState!==null)&&(Yt=e)}function ps(e){V(Ke,Ke.current),V(Mt,e),Yt===null&&(Yt=e)}function wf(e){e.tag===22?(V(Ke,Ke.current),V(Mt,e),Yt===null&&(Yt=e)):Xa()}function Xa(){V(Ke,Ke.current),V(Mt,Mt.current)}function jt(e){w(Mt),Yt===e&&(Yt=null),w(Ke)}var Ke=S(0);function xu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Tr(a)||Er(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ba=0,de=null,Oe=null,Fe=null,Su=!1,cn=!1,Nl=!1,Tu=0,oi=0,sn=null,F0=0;function ke(){throw Error(r(321))}function gs(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Nt(e[a],t[a]))return!1;return!0}function vs(e,t,a,l,n,c){return ba=c,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?yd:_s,Nl=!1,c=a(l,n),Nl=!1,cn&&(c=Df(t,a,l,n)),_f(e),c}function _f(e){R.H=hi;var t=Oe!==null&&Oe.next!==null;if(ba=0,Fe=Oe=de=null,Su=!1,oi=0,sn=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&du(e)&&(We=!0))}function Df(e,t,a,l){de=e;var n=0;do{if(cn&&(sn=null),oi=0,cn=!1,25<=n)throw Error(r(301));if(n+=1,Fe=Oe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=pd,c=t(a,l)}while(cn);return c}function W0(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?fi(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(de.flags|=1024),t}function bs(){var e=Tu!==0;return Tu=0,e}function xs(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ss(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}ba=0,Fe=Oe=de=null,cn=!1,oi=Tu=0,sn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Je(){if(Oe===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Fe===null?de.memoizedState:Fe.next;if(t!==null)Fe=t,Oe=e;else{if(e===null)throw de.alternate===null?Error(r(467)):Error(r(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function Eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fi(e){var t=oi;return oi+=1,sn===null&&(sn=[]),e=Af(sn,e,t),t=de,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?yd:_s),e}function Au(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return fi(e);if(e.$$typeof===B)return ct(e)}throw Error(r(438,String(e)))}function Ts(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Eu(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Le;return t.index++,a}function xa(e,t){return typeof t=="function"?t(e):t}function Nu(e){var t=Je();return Es(t,Oe,e)}function Es(e,t,a){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var n=e.baseQueue,c=l.pending;if(c!==null){if(n!==null){var o=n.next;n.next=c.next,c.next=o}t.baseQueue=n=c,l.pending=null}if(c=e.baseState,n===null)e.memoizedState=c;else{t=n.next;var d=o=null,b=null,M=t,_=!1;do{var q=M.lane&-536870913;if(q!==M.lane?(ge&q)===q:(ba&q)===q){var j=M.revertLane;if(j===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),q===tn&&(_=!0);else if((ba&j)===j){M=M.next,j===tn&&(_=!0);continue}else q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(d=b=q,o=c):b=b.next=q,de.lanes|=j,Ka|=j;q=M.action,Nl&&a(c,q),c=M.hasEagerState?M.eagerState:a(c,q)}else j={lane:q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(d=b=j,o=c):b=b.next=j,de.lanes|=q,Ka|=q;M=M.next}while(M!==null&&M!==t);if(b===null?o=c:b.next=d,!Nt(c,e.memoizedState)&&(We=!0,_&&(a=an,a!==null)))throw a;e.memoizedState=c,e.baseState=o,e.baseQueue=b,l.lastRenderedState=c}return n===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function As(e){var t=Je(),a=t.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=e;var l=a.dispatch,n=a.pending,c=t.memoizedState;if(n!==null){a.pending=null;var o=n=n.next;do c=e(c,o.action),o=o.next;while(o!==n);Nt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,l]}function Uf(e,t,a){var l=de,n=Je(),c=be;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=t();var o=!Nt((Oe||n).memoizedState,a);if(o&&(n.memoizedState=a,We=!0),n=n.queue,Ms(Lf.bind(null,l,n,e),[e]),n.getSnapshot!==t||o||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,rn(9,{destroy:void 0},qf.bind(null,l,n,a,t),null),Ue===null)throw Error(r(349));c||(ba&127)!==0||Hf(l,t,a)}return a}function Hf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=Eu(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function qf(e,t,a,l){t.value=a,t.getSnapshot=l,Bf(t)&&Gf(e)}function Lf(e,t,a){return a(function(){Bf(t)&&Gf(e)})}function Bf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Nt(e,a)}catch{return!0}}function Gf(e){var t=pl(e,2);t!==null&&Tt(t,e,2)}function Ns(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),Nl){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t}function Yf(e,t,a,l){return e.baseState=a,Es(e,Oe,typeof l=="function"?l:xa)}function P0(e,t,a,l,n){if(ju(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){c.listeners.push(o)}};R.T!==null?a(!0):c.isTransition=!1,l(c),a=t.pending,a===null?(c.next=t.pending=c,Qf(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Qf(e,t){var a=t.action,l=t.payload,n=e.state;if(t.isTransition){var c=R.T,o={};R.T=o;try{var d=a(n,l),b=R.S;b!==null&&b(o,d),kf(e,t,d)}catch(M){Cs(e,t,M)}finally{c!==null&&o.types!==null&&(c.types=o.types),R.T=c}}else try{c=a(n,l),kf(e,t,c)}catch(M){Cs(e,t,M)}}function kf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Xf(e,t,l)},function(l){return Cs(e,t,l)}):Xf(e,t,a)}function Xf(e,t,a){t.status="fulfilled",t.value=a,Vf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Qf(e,a)))}function Cs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Vf(t),t=t.next;while(t!==l)}e.action=null}function Vf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zf(e,t){return t}function Kf(e,t){if(be){var a=Ue.formState;if(a!==null){e:{var l=de;if(be){if(He){t:{for(var n=He,c=Gt;n.nodeType!==8;){if(!c){n=null;break t}if(n=Qt(n.nextSibling),n===null){n=null;break t}}c=n.data,n=c==="F!"||c==="F"?n:null}if(n){He=Qt(n.nextSibling),l=n.data==="F!";break e}}La(l)}l=!1}l&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zf,lastRenderedState:t},a.queue=l,a=dd.bind(null,de,l),l.dispatch=a,l=Ns(!1),c=ws.bind(null,de,!1,l.queue),l=mt(),n={state:t,dispatch:null,action:e,pending:null},l.queue=n,a=P0.bind(null,de,n,c,a),n.dispatch=a,l.memoizedState=e,[t,a,!1]}function Jf(e){var t=Je();return $f(t,Oe,e)}function $f(e,t,a){if(t=Es(e,t,Zf)[0],e=Nu(xa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=fi(t)}catch(o){throw o===ln?yu:o}else l=t;t=Je();var n=t.queue,c=n.dispatch;return a!==t.memoizedState&&(de.flags|=2048,rn(9,{destroy:void 0},I0.bind(null,n,a),null)),[l,c,e]}function I0(e,t){e.action=t}function Ff(e){var t=Je(),a=Oe;if(a!==null)return $f(t,a,e);Je(),t=t.memoizedState,a=Je();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function rn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=Eu(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Wf(){return Je().memoizedState}function Cu(e,t,a,l){var n=mt();de.flags|=e,n.memoizedState=rn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Mu(e,t,a,l){var n=Je();l=l===void 0?null:l;var c=n.memoizedState.inst;Oe!==null&&l!==null&&gs(l,Oe.memoizedState.deps)?n.memoizedState=rn(t,c,a,l):(de.flags|=e,n.memoizedState=rn(1|t,c,a,l))}function Pf(e,t){Cu(8390656,8,e,t)}function Ms(e,t){Mu(2048,8,e,t)}function ep(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=Eu(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function If(e){var t=Je().memoizedState;return ep({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function ed(e,t){return Mu(4,2,e,t)}function td(e,t){return Mu(4,4,e,t)}function ad(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ld(e,t,a){a=a!=null?a.concat([e]):null,Mu(4,4,ad.bind(null,t,e),a)}function js(){}function nd(e,t){var a=Je();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&gs(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function id(e,t){var a=Je();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&gs(t,l[1]))return l[0];if(l=e(),Nl){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l}function Os(e,t,a){return a===void 0||(ba&1073741824)!==0&&(ge&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=uh(),de.lanes|=e,Ka|=e,a)}function ud(e,t,a,l){return Nt(a,t)?a:un.current!==null?(e=Os(e,a,l),Nt(e,t)||(We=!0),e):(ba&42)===0||(ba&1073741824)!==0&&(ge&261930)===0?(We=!0,e.memoizedState=a):(e=uh(),de.lanes|=e,Ka|=e,t)}function cd(e,t,a,l,n){var c=G.p;G.p=c!==0&&8>c?c:8;var o=R.T,d={};R.T=d,ws(e,!1,t,a);try{var b=n(),M=R.S;if(M!==null&&M(d,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var _=$0(b,l);di(e,t,_,Rt(e))}else di(e,t,l,Rt(e))}catch(q){di(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{G.p=c,o!==null&&d.types!==null&&(o.types=d.types),R.T=o}}function tp(){}function zs(e,t,a,l){if(e.tag!==5)throw Error(r(476));var n=sd(e).queue;cd(e,n,t,K,a===null?tp:function(){return rd(e),a(l)})}function sd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:K},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rd(e){var t=sd(e);t.next===null&&(t=e.alternate.memoizedState),di(e,t.next.queue,{},Rt())}function Rs(){return ct(Oi)}function od(){return Je().memoizedState}function fd(){return Je().memoizedState}function ap(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ya(a);var l=Qa(t,e,a);l!==null&&(Tt(l,t,a),ci(l,t,a)),t={cache:us()},e.payload=t;return}t=t.return}}function lp(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ju(e)?hd(t,a):(a=$c(e,t,a,l),a!==null&&(Tt(a,e,l),md(a,t,l)))}function dd(e,t,a){var l=Rt();di(e,t,a,l)}function di(e,t,a,l){var n={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ju(e))hd(t,n);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var o=t.lastRenderedState,d=c(o,a);if(n.hasEagerState=!0,n.eagerState=d,Nt(d,o))return su(e,t,n,0),Ue===null&&cu(),!1}catch{}finally{}if(a=$c(e,t,n,l),a!==null)return Tt(a,e,l),md(a,t,l),!0}return!1}function ws(e,t,a,l){if(l={lane:2,revertLane:or(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ju(e)){if(t)throw Error(r(479))}else t=$c(e,a,l,2),t!==null&&Tt(t,e,2)}function ju(e){var t=e.alternate;return e===de||t!==null&&t===de}function hd(e,t){cn=Su=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function md(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,vo(e,a)}}var hi={readContext:ct,use:Au,useCallback:ke,useContext:ke,useEffect:ke,useImperativeHandle:ke,useLayoutEffect:ke,useInsertionEffect:ke,useMemo:ke,useReducer:ke,useRef:ke,useState:ke,useDebugValue:ke,useDeferredValue:ke,useTransition:ke,useSyncExternalStore:ke,useId:ke,useHostTransitionStatus:ke,useFormState:ke,useActionState:ke,useOptimistic:ke,useMemoCache:ke,useCacheRefresh:ke};hi.useEffectEvent=ke;var yd={readContext:ct,use:Au,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Pf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Cu(4194308,4,ad.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Cu(4194308,4,e,t)},useInsertionEffect:function(e,t){Cu(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var l=e();if(Nl){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=mt();if(a!==void 0){var n=a(t);if(Nl){_a(!0);try{a(t)}finally{_a(!1)}}}else n=t;return l.memoizedState=l.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=lp.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ns(e);var t=e.queue,a=dd.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:js,useDeferredValue:function(e,t){var a=mt();return Os(a,e,t)},useTransition:function(){var e=Ns(!1);return e=cd.bind(null,de,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=de,n=mt();if(be){if(a===void 0)throw Error(r(407));a=a()}else{if(a=t(),Ue===null)throw Error(r(349));(ge&127)!==0||Hf(l,t,a)}n.memoizedState=a;var c={value:a,getSnapshot:t};return n.queue=c,Pf(Lf.bind(null,l,c,e),[e]),l.flags|=2048,rn(9,{destroy:void 0},qf.bind(null,l,c,a,t),null),a},useId:function(){var e=mt(),t=Ue.identifierPrefix;if(be){var a=aa,l=ta;a=(l&~(1<<32-At(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Tu++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=F0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Rs,useFormState:Kf,useActionState:Kf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ws.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:Ts,useCacheRefresh:function(){return mt().memoizedState=ap.bind(null,de)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((Ee&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},_s={readContext:ct,use:Au,useCallback:nd,useContext:ct,useEffect:Ms,useImperativeHandle:ld,useInsertionEffect:ed,useLayoutEffect:td,useMemo:id,useReducer:Nu,useRef:Wf,useState:function(){return Nu(xa)},useDebugValue:js,useDeferredValue:function(e,t){var a=Je();return ud(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Nu(xa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:Uf,useId:od,useHostTransitionStatus:Rs,useFormState:Jf,useActionState:Jf,useOptimistic:function(e,t){var a=Je();return Yf(a,Oe,e,t)},useMemoCache:Ts,useCacheRefresh:fd};_s.useEffectEvent=If;var pd={readContext:ct,use:Au,useCallback:nd,useContext:ct,useEffect:Ms,useImperativeHandle:ld,useInsertionEffect:ed,useLayoutEffect:td,useMemo:id,useReducer:As,useRef:Wf,useState:function(){return As(xa)},useDebugValue:js,useDeferredValue:function(e,t){var a=Je();return Oe===null?Os(a,e,t):ud(a,Oe.memoizedState,e,t)},useTransition:function(){var e=As(xa)[0],t=Je().memoizedState;return[typeof e=="boolean"?e:fi(e),t]},useSyncExternalStore:Uf,useId:od,useHostTransitionStatus:Rs,useFormState:Ff,useActionState:Ff,useOptimistic:function(e,t){var a=Je();return Oe!==null?Yf(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Ts,useCacheRefresh:fd};pd.useEffectEvent=If;function Ds(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:E({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Us={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=Ya(l);n.payload=t,a!=null&&(n.callback=a),t=Qa(e,n,l),t!==null&&(Tt(t,e,l),ci(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),n=Ya(l);n.tag=1,n.payload=t,a!=null&&(n.callback=a),t=Qa(e,n,l),t!==null&&(Tt(t,e,l),ci(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ya(a);l.tag=2,t!=null&&(l.callback=t),t=Qa(e,l,a),t!==null&&(Tt(t,e,a),ci(t,e,a))}};function gd(e,t,a,l,n,c,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,o):t.prototype&&t.prototype.isPureReactComponent?!In(a,l)||!In(n,c):!0}function vd(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Cl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=E({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function bd(e){uu(e)}function xd(e){console.error(e)}function Sd(e){uu(e)}function Ou(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Td(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Hs(e,t,a){return a=Ya(a),a.tag=3,a.payload={element:null},a.callback=function(){Ou(e,t)},a}function Ed(e){return e=Ya(e),e.tag=3,e}function Ad(e,t,a,l){var n=a.type.getDerivedStateFromError;if(typeof n=="function"){var c=l.value;e.payload=function(){return n(c)},e.callback=function(){Td(t,a,l)}}var o=a.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){Td(t,a,l),typeof n!="function"&&(Ja===null?Ja=new Set([this]):Ja.add(this));var d=l.stack;this.componentDidCatch(l.value,{componentStack:d!==null?d:""})})}function np(e,t,a,l,n){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&en(t,a,n,!0),a=Mt.current,a!==null){switch(a.tag){case 31:case 13:return Yt===null?Yu():a.alternate===null&&Xe===0&&(Xe=3),a.flags&=-257,a.flags|=65536,a.lanes=n,l===pu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),cr(e,l,n)),!1;case 22:return a.flags|=65536,l===pu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),cr(e,l,n)),!1}throw Error(r(435,a.tag))}return cr(e,l,n),Yu(),!1}if(be)return t=Mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,l!==ts&&(e=Error(r(422),{cause:l}),ai(qt(e,a)))):(l!==ts&&(t=Error(r(423),{cause:l}),ai(qt(t,a))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,l=qt(l,a),n=Hs(e.stateNode,l,n),ds(e,n),Xe!==4&&(Xe=2)),!1;var c=Error(r(520),{cause:l});if(c=qt(c,a),Si===null?Si=[c]:Si.push(c),Xe!==4&&(Xe=2),t===null)return!0;l=qt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Hs(a.stateNode,l,e),ds(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ja===null||!Ja.has(c))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Ed(n),Ad(n,e,a,l),ds(a,n),!1}a=a.return}while(a!==null);return!1}var qs=Error(r(461)),We=!1;function st(e,t,a,l){t.child=e===null?jf(t,null,a,l):Al(t,e.child,a,l)}function Nd(e,t,a,l,n){a=a.render;var c=t.ref;if("ref"in l){var o={};for(var d in l)d!=="ref"&&(o[d]=l[d])}else o=l;return xl(t),l=vs(e,t,a,o,c,n),d=bs(),e!==null&&!We?(xs(e,t,n),Sa(e,t,n)):(be&&d&&Ic(t),t.flags|=1,st(e,t,l,n),t.child)}function Cd(e,t,a,l,n){if(e===null){var c=a.type;return typeof c=="function"&&!Fc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Md(e,t,c,l,n)):(e=ou(a.type,null,l,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Vs(e,n)){var o=c.memoizedProps;if(a=a.compare,a=a!==null?a:In,a(o,l)&&e.ref===t.ref)return Sa(e,t,n)}return t.flags|=1,e=ya(c,l),e.ref=t.ref,e.return=t,t.child=e}function Md(e,t,a,l,n){if(e!==null){var c=e.memoizedProps;if(In(c,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=c,Vs(e,n))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Sa(e,t,n)}return Ls(e,t,a,l,n)}function jd(e,t,a,l){var n=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(l=t.child=e.child,n=0;l!==null;)n=n|l.lanes|l.childLanes,l=l.sibling;l=n&~c}else l=0,t.child=null;return Od(e,t,c,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,c!==null?c.cachePool:null),c!==null?Rf(t,c):ms(),wf(t);else return l=t.lanes=536870912,Od(e,t,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(mu(t,c.cachePool),Rf(t,c),Xa(),t.memoizedState=null):(e!==null&&mu(t,null),ms(),Xa());return st(e,t,n,a),t.child}function mi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Od(e,t,a,l,n){var c=ss();return c=c===null?null:{parent:$e._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&mu(t,null),ms(),wf(t),e!==null&&en(e,t,l,!0),t.childLanes=n,null}function zu(e,t){return t=wu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zd(e,t,a){return Al(t,e.child,null,a),e=zu(t,t.pendingProps),e.flags|=2,jt(t),t.memoizedState=null,e}function ip(e,t,a){var l=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(be){if(l.mode==="hidden")return e=zu(t,l),t.lanes=536870912,mi(null,e);if(ps(t),(e=He)?(e=Qh(e,Gt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:ta,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},a=hf(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw La(t);return t.lanes=536870912,null}return zu(t,l)}var c=e.memoizedState;if(c!==null){var o=c.dehydrated;if(ps(t),n)if(t.flags&256)t.flags&=-257,t=zd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||en(e,t,a,!1),n=(a&e.childLanes)!==0,We||n){if(l=Ue,l!==null&&(o=bo(l,a),o!==0&&o!==c.retryLane))throw c.retryLane=o,pl(e,o),Tt(l,e,o),qs;Yu(),t=zd(e,t,a)}else e=c.treeContext,He=Qt(o.nextSibling),ut=t,be=!0,qa=null,Gt=!1,e!==null&&pf(t,e),t=zu(t,l),t.flags|=4096;return t}return e=ya(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ru(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ls(e,t,a,l,n){return xl(t),a=vs(e,t,a,l,void 0,n),l=bs(),e!==null&&!We?(xs(e,t,n),Sa(e,t,n)):(be&&l&&Ic(t),t.flags|=1,st(e,t,a,n),t.child)}function Rd(e,t,a,l,n,c){return xl(t),t.updateQueue=null,a=Df(t,l,a,n),_f(e),l=bs(),e!==null&&!We?(xs(e,t,c),Sa(e,t,c)):(be&&l&&Ic(t),t.flags|=1,st(e,t,a,c),t.child)}function wd(e,t,a,l,n){if(xl(t),t.stateNode===null){var c=Fl,o=a.contextType;typeof o=="object"&&o!==null&&(c=ct(o)),c=new a(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Us,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},os(t),o=a.contextType,c.context=typeof o=="object"&&o!==null?ct(o):Fl,c.state=t.memoizedState,o=a.getDerivedStateFromProps,typeof o=="function"&&(Ds(t,a,o,l),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(o=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),o!==c.state&&Us.enqueueReplaceState(c,c.state,null),ri(t,l,c,n),si(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var d=t.memoizedProps,b=Cl(a,d);c.props=b;var M=c.context,_=a.contextType;o=Fl,typeof _=="object"&&_!==null&&(o=ct(_));var q=a.getDerivedStateFromProps;_=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,_||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d||M!==o)&&vd(t,c,l,o),Ga=!1;var j=t.memoizedState;c.state=j,ri(t,l,c,n),si(),M=t.memoizedState,d||j!==M||Ga?(typeof q=="function"&&(Ds(t,a,q,l),M=t.memoizedState),(b=Ga||gd(t,a,b,l,j,M,o))?(_||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),c.props=l,c.state=M,c.context=o,l=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,fs(e,t),o=t.memoizedProps,_=Cl(a,o),c.props=_,q=t.pendingProps,j=c.context,M=a.contextType,b=Fl,typeof M=="object"&&M!==null&&(b=ct(M)),d=a.getDerivedStateFromProps,(M=typeof d=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(o!==q||j!==b)&&vd(t,c,l,b),Ga=!1,j=t.memoizedState,c.state=j,ri(t,l,c,n),si();var O=t.memoizedState;o!==q||j!==O||Ga||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof d=="function"&&(Ds(t,a,d,l),O=t.memoizedState),(_=Ga||gd(t,a,_,l,j,O,b)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,O,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,O,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=O),c.props=l,c.state=O,c.context=b,l=_):(typeof c.componentDidUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Ru(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Al(t,e.child,null,n),t.child=Al(t,null,a,n)):st(e,t,a,n),t.memoizedState=c.state,e=t.child):e=Sa(e,t,n),e}function _d(e,t,a,l){return vl(),t.flags|=256,st(e,t,a,l),t.child}var Bs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gs(e){return{baseLanes:e,cachePool:Tf()}}function Ys(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=zt),e}function Dd(e,t,a){var l=t.pendingProps,n=!1,c=(t.flags&128)!==0,o;if((o=c)||(o=e!==null&&e.memoizedState===null?!1:(Ke.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(n?ka(t):Xa(),(e=He)?(e=Qh(e,Gt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ha!==null?{id:ta,overflow:aa}:null,retryLane:536870912,hydrationErrors:null},a=hf(e),a.return=t,t.child=a,ut=t,He=null)):e=null,e===null)throw La(t);return Er(e)?t.lanes=32:t.lanes=536870912,null}var d=l.children;return l=l.fallback,n?(Xa(),n=t.mode,d=wu({mode:"hidden",children:d},n),l=gl(l,n,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Gs(a),l.childLanes=Ys(e,o,a),t.memoizedState=Bs,mi(null,l)):(ka(t),Qs(t,d))}var b=e.memoizedState;if(b!==null&&(d=b.dehydrated,d!==null)){if(c)t.flags&256?(ka(t),t.flags&=-257,t=ks(e,t,a)):t.memoizedState!==null?(Xa(),t.child=e.child,t.flags|=128,t=null):(Xa(),d=l.fallback,n=t.mode,l=wu({mode:"visible",children:l.children},n),d=gl(d,n,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Al(t,e.child,null,a),l=t.child,l.memoizedState=Gs(a),l.childLanes=Ys(e,o,a),t.memoizedState=Bs,t=mi(null,l));else if(ka(t),Er(d)){if(o=d.nextSibling&&d.nextSibling.dataset,o)var M=o.dgst;o=M,l=Error(r(419)),l.stack="",l.digest=o,ai({value:l,source:null,stack:null}),t=ks(e,t,a)}else if(We||en(e,t,a,!1),o=(a&e.childLanes)!==0,We||o){if(o=Ue,o!==null&&(l=bo(o,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,pl(e,l),Tt(o,e,l),qs;Tr(d)||Yu(),t=ks(e,t,a)}else Tr(d)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,He=Qt(d.nextSibling),ut=t,be=!0,qa=null,Gt=!1,e!==null&&pf(t,e),t=Qs(t,l.children),t.flags|=4096);return t}return n?(Xa(),d=l.fallback,n=t.mode,b=e.child,M=b.sibling,l=ya(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,M!==null?d=ya(M,d):(d=gl(d,n,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,mi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Gs(a):(n=d.cachePool,n!==null?(b=$e._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=Tf(),d={baseLanes:d.baseLanes|a,cachePool:n}),l.memoizedState=d,l.childLanes=Ys(e,o,a),t.memoizedState=Bs,mi(e.child,l)):(ka(t),a=e.child,e=a.sibling,a=ya(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a)}function Qs(e,t){return t=wu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wu(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function ks(e,t,a){return Al(t,e.child,null,a),e=Qs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ud(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),ns(e.return,t,a)}function Xs(e,t,a,l,n,c){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:n,treeForkCount:c}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=a,o.tailMode=n,o.treeForkCount=c)}function Hd(e,t,a){var l=t.pendingProps,n=l.revealOrder,c=l.tail;l=l.children;var o=Ke.current,d=(o&2)!==0;if(d?(o=o&1|2,t.flags|=128):o&=1,V(Ke,o),st(e,t,l,a),l=be?ti:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ud(e,a,t);else if(e.tag===19)Ud(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(a=t.child,n=null;a!==null;)e=a.alternate,e!==null&&xu(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),Xs(t,!1,n,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&xu(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}Xs(t,!0,a,null,c,l);break;case"together":Xs(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(en(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,a=ya(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ya(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Vs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function up(e,t,a){switch(t.tag){case 3:Ze(t,t.stateNode.containerInfo),Ba(t,$e,e.memoizedState.cache),vl();break;case 27:case 5:It(t);break;case 4:Ze(t,t.stateNode.containerInfo);break;case 10:Ba(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ps(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ka(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Dd(e,t,a):(ka(t),e=Sa(e,t,a),e!==null?e.sibling:null);ka(t);break;case 19:var n=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(en(e,t,a,!1),l=(a&t.childLanes)!==0),n){if(l)return Hd(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),V(Ke,Ke.current),l)break;return null;case 22:return t.lanes=0,jd(e,t,a,t.pendingProps);case 24:Ba(t,$e,e.memoizedState.cache)}return Sa(e,t,a)}function qd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Vs(e,a)&&(t.flags&128)===0)return We=!1,up(e,t,a);We=(e.flags&131072)!==0}else We=!1,be&&(t.flags&1048576)!==0&&yf(t,ti,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Tl(t.elementType),t.type=e,typeof e=="function")Fc(e)?(l=Cl(e,l),t.tag=1,t=wd(null,t,e,l,a)):(t.tag=0,t=Ls(null,t,e,l,a));else{if(e!=null){var n=e.$$typeof;if(n===X){t.tag=11,t=Nd(null,t,e,l,a);break e}else if(n===W){t.tag=14,t=Cd(null,t,e,l,a);break e}}throw t=Ae(e)||e,Error(r(306,t,""))}}return t;case 0:return Ls(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,n=Cl(l,t.pendingProps),wd(e,t,l,n,a);case 3:e:{if(Ze(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;n=c.element,fs(e,t),ri(t,l,null,a);var o=t.memoizedState;if(l=o.cache,Ba(t,$e,l),l!==c.cache&&is(t,[$e],a,!0),si(),l=o.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=_d(e,t,l,a);break e}else if(l!==n){n=qt(Error(r(424)),t),ai(n),t=_d(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Qt(e.firstChild),ut=t,be=!0,qa=null,Gt=!0,a=jf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),l===n){t=Sa(e,t,a);break e}st(e,t,l,a)}t=t.child}return t;case 26:return Ru(e,t),e===null?(a=Jh(t.type,null,t.pendingProps,null))?t.memoizedState=a:be||(a=t.type,e=t.pendingProps,l=Ju(re.current).createElement(a),l[it]=t,l[pt]=e,rt(l,a,e),at(l),t.stateNode=l):t.memoizedState=Jh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return It(t),e===null&&be&&(l=t.stateNode=Vh(t.type,t.pendingProps,re.current),ut=t,Gt=!0,n=He,Pa(t.type)?(Ar=n,He=Qt(l.firstChild)):He=n),st(e,t,t.pendingProps.children,a),Ru(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((n=l=He)&&(l=Hp(l,t.type,t.pendingProps,Gt),l!==null?(t.stateNode=l,ut=t,He=Qt(l.firstChild),Gt=!1,n=!0):n=!1),n||La(t)),It(t),n=t.type,c=t.pendingProps,o=e!==null?e.memoizedProps:null,l=c.children,br(n,c)?l=null:o!==null&&br(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=vs(e,t,W0,null,null,a),Oi._currentValue=n),Ru(e,t),st(e,t,l,a),t.child;case 6:return e===null&&be&&((e=a=He)&&(a=qp(a,t.pendingProps,Gt),a!==null?(t.stateNode=a,ut=t,He=null,e=!0):e=!1),e||La(t)),null;case 13:return Dd(e,t,a);case 4:return Ze(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Al(t,null,l,a):st(e,t,l,a),t.child;case 11:return Nd(e,t,t.type,t.pendingProps,a);case 7:return st(e,t,t.pendingProps,a),t.child;case 8:return st(e,t,t.pendingProps.children,a),t.child;case 12:return st(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ba(t,t.type,l.value),st(e,t,l.children,a),t.child;case 9:return n=t.type._context,l=t.pendingProps.children,xl(t),n=ct(n),l=l(n),t.flags|=1,st(e,t,l,a),t.child;case 14:return Cd(e,t,t.type,t.pendingProps,a);case 15:return Md(e,t,t.type,t.pendingProps,a);case 19:return Hd(e,t,a);case 31:return ip(e,t,a);case 22:return jd(e,t,a,t.pendingProps);case 24:return xl(t),l=ct($e),e===null?(n=ss(),n===null&&(n=Ue,c=us(),n.pooledCache=c,c.refCount++,c!==null&&(n.pooledCacheLanes|=a),n=c),t.memoizedState={parent:l,cache:n},os(t),Ba(t,$e,n)):((e.lanes&a)!==0&&(fs(e,t),ri(t,null,null,a),si()),n=e.memoizedState,c=t.memoizedState,n.parent!==l?(n={parent:l,cache:l},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Ba(t,$e,l)):(l=c.cache,Ba(t,$e,l),l!==n.cache&&is(t,[$e],a,!0))),st(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Ta(e){e.flags|=4}function Zs(e,t,a,l,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(oh())e.flags|=8192;else throw El=pu,rs}else e.flags&=-16777217}function Ld(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ih(t))if(oh())e.flags|=8192;else throw El=pu,rs}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?po():536870912,e.lanes|=t,hn|=t)}function yi(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags&65011712,l|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,l|=n.subtreeFlags,l|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function cp(e,t,a){var l=t.pendingProps;switch(es(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(t),null;case 1:return qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),va($e),De(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?Ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,as())),qe(t),null;case 26:var n=t.type,c=t.memoizedState;return e===null?(Ta(t),c!==null?(qe(t),Ld(t,c)):(qe(t),Zs(t,n,null,l,a))):c?c!==e.memoizedState?(Ta(t),qe(t),Ld(t,c)):(qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Ta(t),qe(t),Zs(t,n,e,l,a)),null;case 27:if(oa(t),a=re.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}e=J.current,Il(t)?gf(t):(e=Vh(n,l,a),t.stateNode=e,Ta(t))}return qe(t),null;case 5:if(oa(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return qe(t),null}if(c=J.current,Il(t))gf(t);else{var o=Ju(re.current);switch(c){case 1:c=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:c=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":c=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":c=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":c=o.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?o.createElement(n,{is:l.is}):o.createElement(n)}}c[it]=t,c[pt]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)c.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=c;e:switch(rt(c,n,l),n){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ta(t)}}return qe(t),Zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Ta(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=re.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,n=ut,n!==null)switch(n.tag){case 27:case 5:l=n.memoizedProps}e[it]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Dh(e.nodeValue,a)),e||La(t,!0)}else e=Ju(e).createTextNode(l),e[it]=t,t.stateNode=e}return qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Il(t),a!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[it]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),e=!1}else a=as(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(jt(t),t):(jt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Il(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[it]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;qe(t),n=!1}else n=as(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(jt(t),t):(jt(t),null)}return jt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,n=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(n=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==n&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_u(t,t.updateQueue),qe(t),null);case 4:return De(),e===null&&mr(t.stateNode.containerInfo),qe(t),null;case 10:return va(t.type),qe(t),null;case 19:if(w(Ke),l=t.memoizedState,l===null)return qe(t),null;if(n=(t.flags&128)!==0,c=l.rendering,c===null)if(n)yi(l,!1);else{if(Xe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=xu(e),c!==null){for(t.flags|=128,yi(l,!1),e=c.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)df(a,e),a=a.sibling;return V(Ke,Ke.current&1|2),be&&pa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ie()>Lu&&(t.flags|=128,n=!0,yi(l,!1),t.lanes=4194304)}else{if(!n)if(e=xu(c),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),yi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!be)return qe(t),null}else 2*Ie()-l.renderingStartTime>Lu&&a!==536870912&&(t.flags|=128,n=!0,yi(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ie(),e.sibling=null,a=Ke.current,V(Ke,n?a&1|2:a&1),be&&pa(t,l.treeForkCount),e):(qe(t),null);case 22:case 23:return jt(t),ys(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(qe(t),t.subtreeFlags&6&&(t.flags|=8192)):qe(t),a=t.updateQueue,a!==null&&_u(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&w(Sl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),va($e),qe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function sp(e,t){switch(es(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return va($e),De(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return oa(t),null;case 31:if(t.memoizedState!==null){if(jt(t),t.alternate===null)throw Error(r(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(Ke),null;case 4:return De(),null;case 10:return va(t.type),null;case 22:case 23:return jt(t),ys(),e!==null&&w(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return va($e),null;case 25:return null;default:return null}}function Bd(e,t){switch(es(t),t.tag){case 3:va($e),De();break;case 26:case 27:case 5:oa(t);break;case 4:De();break;case 31:t.memoizedState!==null&&jt(t);break;case 13:jt(t);break;case 19:w(Ke);break;case 10:va(t.type);break;case 22:case 23:jt(t),ys(),e!==null&&w(Sl);break;case 24:va($e)}}function pi(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var n=l.next;a=n;do{if((a.tag&e)===e){l=void 0;var c=a.create,o=a.inst;l=c(),o.destroy=l}a=a.next}while(a!==n)}}catch(d){Ce(t,t.return,d)}}function Va(e,t,a){try{var l=t.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var c=n.next;l=c;do{if((l.tag&e)===e){var o=l.inst,d=o.destroy;if(d!==void 0){o.destroy=void 0,n=t;var b=a,M=d;try{M()}catch(_){Ce(n,b,_)}}}l=l.next}while(l!==c)}}catch(_){Ce(t,t.return,_)}}function Gd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{zf(t,a)}catch(l){Ce(e,e.return,l)}}}function Yd(e,t,a){a.props=Cl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function gi(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(n){Ce(e,t,n)}}function la(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(n){Ce(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(n){Ce(e,t,n)}else a.current=null}function Qd(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(n){Ce(e,e.return,n)}}function Ks(e,t,a){try{var l=e.stateNode;zp(l,e.type,a,t),l[pt]=t}catch(n){Ce(e,e.return,n)}}function kd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pa(e.type)||e.tag===4}function Js(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kd(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&&Pa(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 $s(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ha));else if(l!==4&&(l===27&&Pa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for($s(e,t,a),e=e.sibling;e!==null;)$s(e,t,a),e=e.sibling}function Du(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Pa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Du(e,t,a),e=e.sibling;e!==null;)Du(e,t,a),e=e.sibling}function Xd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);rt(t,l,a),t[it]=e,t[pt]=a}catch(c){Ce(e,e.return,c)}}var Ea=!1,Pe=!1,Fs=!1,Vd=typeof WeakSet=="function"?WeakSet:Set,lt=null;function rp(e,t){if(e=e.containerInfo,gr=tc,e=af(e),kc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var n=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var o=0,d=-1,b=-1,M=0,_=0,q=e,j=null;t:for(;;){for(var O;q!==a||n!==0&&q.nodeType!==3||(d=o+n),q!==c||l!==0&&q.nodeType!==3||(b=o+l),q.nodeType===3&&(o+=q.nodeValue.length),(O=q.firstChild)!==null;)j=q,q=O;for(;;){if(q===e)break t;if(j===a&&++M===n&&(d=o),j===c&&++_===l&&(b=o),(O=q.nextSibling)!==null)break;q=j,j=q.parentNode}q=O}a=d===-1||b===-1?null:{start:d,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(vr={focusedElem:e,selectionRange:a},tc=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,n=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var P=Cl(a.type,n);e=l.getSnapshotBeforeUpdate(P,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Ce(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Sr(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function Zd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Na(e,a),l&4&&pi(5,a);break;case 1:if(Na(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(o){Ce(a,a.return,o)}else{var n=Cl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Ce(a,a.return,o)}}l&64&&Gd(a),l&512&&gi(a,a.return);break;case 3:if(Na(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{zf(e,t)}catch(o){Ce(a,a.return,o)}}break;case 27:t===null&&l&4&&Xd(a);case 26:case 5:Na(e,a),t===null&&l&4&&Qd(a),l&512&&gi(a,a.return);break;case 12:Na(e,a);break;case 31:Na(e,a),l&4&&$d(e,a);break;case 13:Na(e,a),l&4&&Fd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=vp.bind(null,a),Lp(e,a))));break;case 22:if(l=a.memoizedState!==null||Ea,!l){t=t!==null&&t.memoizedState!==null||Pe,n=Ea;var c=Pe;Ea=l,(Pe=t)&&!c?Ca(e,a,(a.subtreeFlags&8772)!==0):Na(e,a),Ea=n,Pe=c}break;case 30:break;default:Na(e,a)}}function Kd(e){var t=e.alternate;t!==null&&(e.alternate=null,Kd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Cc(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 Ye=null,vt=!1;function Aa(e,t,a){for(a=a.child;a!==null;)Jd(e,t,a),a=a.sibling}function Jd(e,t,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Yn,a)}catch{}switch(a.tag){case 26:Pe||la(a,t),Aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Pe||la(a,t);var l=Ye,n=vt;Pa(a.type)&&(Ye=a.stateNode,vt=!1),Aa(e,t,a),Ci(a.stateNode),Ye=l,vt=n;break;case 5:Pe||la(a,t);case 6:if(l=Ye,n=vt,Ye=null,Aa(e,t,a),Ye=l,vt=n,Ye!==null)if(vt)try{(Ye.nodeType===9?Ye.body:Ye.nodeName==="HTML"?Ye.ownerDocument.body:Ye).removeChild(a.stateNode)}catch(c){Ce(a,t,c)}else try{Ye.removeChild(a.stateNode)}catch(c){Ce(a,t,c)}break;case 18:Ye!==null&&(vt?(e=Ye,Gh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Sn(e)):Gh(Ye,a.stateNode));break;case 4:l=Ye,n=vt,Ye=a.stateNode.containerInfo,vt=!0,Aa(e,t,a),Ye=l,vt=n;break;case 0:case 11:case 14:case 15:Va(2,a,t),Pe||Va(4,a,t),Aa(e,t,a);break;case 1:Pe||(la(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Yd(a,t,l)),Aa(e,t,a);break;case 21:Aa(e,t,a);break;case 22:Pe=(l=Pe)||a.memoizedState!==null,Aa(e,t,a),Pe=l;break;default:Aa(e,t,a)}}function $d(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sn(e)}catch(a){Ce(t,t.return,a)}}}function Fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sn(e)}catch(a){Ce(t,t.return,a)}}function op(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vd),t;default:throw Error(r(435,e.tag))}}function Uu(e,t){var a=op(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var n=bp.bind(null,e,l);l.then(n,n)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var n=a[l],c=e,o=t,d=o;e:for(;d!==null;){switch(d.tag){case 27:if(Pa(d.type)){Ye=d.stateNode,vt=!1;break e}break;case 5:Ye=d.stateNode,vt=!1;break e;case 3:case 4:Ye=d.stateNode.containerInfo,vt=!0;break e}d=d.return}if(Ye===null)throw Error(r(160));Jd(c,o,n),Ye=null,vt=!1,c=n.alternate,c!==null&&(c.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wd(t,e),t=t.sibling}var Zt=null;function Wd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),xt(e),l&4&&(Va(3,e,e.return),pi(3,e),Va(5,e,e.return));break;case 1:bt(t,e),xt(e),l&512&&(Pe||a===null||la(a,a.return)),l&64&&Ea&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var n=Zt;if(bt(t,e),xt(e),l&512&&(Pe||a===null||la(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,n=n.ownerDocument||n;t:switch(l){case"title":c=n.getElementsByTagName("title")[0],(!c||c[Xn]||c[it]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=n.createElement(l),n.head.insertBefore(c,n.querySelector("head > title"))),rt(c,l,a),c[it]=e,at(c),l=c;break e;case"link":var o=Wh("link","href",n).get(l+(a.href||""));if(o){for(var d=0;d<o.length;d++)if(c=o[d],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){o.splice(d,1);break t}}c=n.createElement(l),rt(c,l,a),n.head.appendChild(c);break;case"meta":if(o=Wh("meta","content",n).get(l+(a.content||""))){for(d=0;d<o.length;d++)if(c=o[d],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){o.splice(d,1);break t}}c=n.createElement(l),rt(c,l,a),n.head.appendChild(c);break;default:throw Error(r(468,l))}c[it]=e,at(c),l=c}e.stateNode=l}else Ph(n,e.type,e.stateNode);else e.stateNode=Fh(n,l,e.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Ph(n,e.type,e.stateNode):Fh(n,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ks(e,e.memoizedProps,a.memoizedProps)}break;case 27:bt(t,e),xt(e),l&512&&(Pe||a===null||la(a,a.return)),a!==null&&l&4&&Ks(e,e.memoizedProps,a.memoizedProps);break;case 5:if(bt(t,e),xt(e),l&512&&(Pe||a===null||la(a,a.return)),e.flags&32){n=e.stateNode;try{kl(n,"")}catch(P){Ce(e,e.return,P)}}l&4&&e.stateNode!=null&&(n=e.memoizedProps,Ks(e,n,a!==null?a.memoizedProps:n)),l&1024&&(Fs=!0);break;case 6:if(bt(t,e),xt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(P){Ce(e,e.return,P)}}break;case 3:if(Wu=null,n=Zt,Zt=$u(t.containerInfo),bt(t,e),Zt=n,xt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Sn(t.containerInfo)}catch(P){Ce(e,e.return,P)}Fs&&(Fs=!1,Pd(e));break;case 4:l=Zt,Zt=$u(e.stateNode.containerInfo),bt(t,e),xt(e),Zt=l;break;case 12:bt(t,e),xt(e);break;case 31:bt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 13:bt(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qu=Ie()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 22:n=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,M=Ea,_=Pe;if(Ea=M||n,Pe=_||b,bt(t,e),Pe=_,Ea=M,xt(e),l&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(a===null||b||Ea||Pe||Ml(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(c=b.stateNode,n)o=c.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{d=b.stateNode;var q=b.memoizedProps.style,j=q!=null&&q.hasOwnProperty("display")?q.display:null;d.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(P){Ce(b,b.return,P)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(P){Ce(b,b.return,P)}}}else if(t.tag===18){if(a===null){b=t;try{var O=b.stateNode;n?Yh(O,!0):Yh(b.stateNode,!1)}catch(P){Ce(b,b.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Uu(e,a))));break;case 19:bt(t,e),xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 30:break;case 21:break;default:bt(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(kd(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var n=a.stateNode,c=Js(e);Du(e,c,n);break;case 5:var o=a.stateNode;a.flags&32&&(kl(o,""),a.flags&=-33);var d=Js(e);Du(e,d,o);break;case 3:case 4:var b=a.stateNode.containerInfo,M=Js(e);$s(e,M,b);break;default:throw Error(r(161))}}catch(_){Ce(e,e.return,_)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Pd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zd(e,t.alternate,t),t=t.sibling}function Ml(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Va(4,t,t.return),Ml(t);break;case 1:la(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Yd(t,t.return,a),Ml(t);break;case 27:Ci(t.stateNode);case 26:case 5:la(t,t.return),Ml(t);break;case 22:t.memoizedState===null&&Ml(t);break;case 30:Ml(t);break;default:Ml(t)}e=e.sibling}}function Ca(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,n=e,c=t,o=c.flags;switch(c.tag){case 0:case 11:case 15:Ca(n,c,a),pi(4,c);break;case 1:if(Ca(n,c,a),l=c,n=l.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){Ce(l,l.return,M)}if(l=c,n=l.updateQueue,n!==null){var d=l.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)Of(b[n],d)}catch(M){Ce(l,l.return,M)}}a&&o&64&&Gd(c),gi(c,c.return);break;case 27:Xd(c);case 26:case 5:Ca(n,c,a),a&&l===null&&o&4&&Qd(c),gi(c,c.return);break;case 12:Ca(n,c,a);break;case 31:Ca(n,c,a),a&&o&4&&$d(n,c);break;case 13:Ca(n,c,a),a&&o&4&&Fd(n,c);break;case 22:c.memoizedState===null&&Ca(n,c,a),gi(c,c.return);break;case 30:break;default:Ca(n,c,a)}t=t.sibling}}function Ws(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&li(a))}function Ps(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function Kt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Id(e,t,a,l),t=t.sibling}function Id(e,t,a,l){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,l),n&2048&&pi(9,t);break;case 1:Kt(e,t,a,l);break;case 3:Kt(e,t,a,l),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(n&2048){Kt(e,t,a,l),e=t.stateNode;try{var c=t.memoizedProps,o=c.id,d=c.onPostCommit;typeof d=="function"&&d(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ce(t,t.return,b)}}else Kt(e,t,a,l);break;case 31:Kt(e,t,a,l);break;case 13:Kt(e,t,a,l);break;case 23:break;case 22:c=t.stateNode,o=t.alternate,t.memoizedState!==null?c._visibility&2?Kt(e,t,a,l):vi(e,t):c._visibility&2?Kt(e,t,a,l):(c._visibility|=2,on(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Ws(o,t);break;case 24:Kt(e,t,a,l),n&2048&&Ps(t.alternate,t);break;default:Kt(e,t,a,l)}}function on(e,t,a,l,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,o=t,d=a,b=l,M=o.flags;switch(o.tag){case 0:case 11:case 15:on(c,o,d,b,n),pi(8,o);break;case 23:break;case 22:var _=o.stateNode;o.memoizedState!==null?_._visibility&2?on(c,o,d,b,n):vi(c,o):(_._visibility|=2,on(c,o,d,b,n)),n&&M&2048&&Ws(o.alternate,o);break;case 24:on(c,o,d,b,n),n&&M&2048&&Ps(o.alternate,o);break;default:on(c,o,d,b,n)}t=t.sibling}}function vi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,n=l.flags;switch(l.tag){case 22:vi(a,l),n&2048&&Ws(l.alternate,l);break;case 24:vi(a,l),n&2048&&Ps(l.alternate,l);break;default:vi(a,l)}t=t.sibling}}var bi=8192;function fn(e,t,a){if(e.subtreeFlags&bi)for(e=e.child;e!==null;)eh(e,t,a),e=e.sibling}function eh(e,t,a){switch(e.tag){case 26:fn(e,t,a),e.flags&bi&&e.memoizedState!==null&&Fp(a,Zt,e.memoizedState,e.memoizedProps);break;case 5:fn(e,t,a);break;case 3:case 4:var l=Zt;Zt=$u(e.stateNode.containerInfo),fn(e,t,a),Zt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=bi,bi=16777216,fn(e,t,a),bi=l):fn(e,t,a));break;default:fn(e,t,a)}}function th(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 xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];lt=l,lh(l,e)}th(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ah(e),e=e.sibling}function ah(e){switch(e.tag){case 0:case 11:case 15:xi(e),e.flags&2048&&Va(9,e,e.return);break;case 3:xi(e);break;case 12:xi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hu(e)):xi(e);break;default:xi(e)}}function Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];lt=l,lh(l,e)}th(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Va(8,t,t.return),Hu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Hu(t));break;default:Hu(t)}e=e.sibling}}function lh(e,t){for(;lt!==null;){var a=lt;switch(a.tag){case 0:case 11:case 15:Va(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:li(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,lt=l;else e:for(a=e;lt!==null;){l=lt;var n=l.sibling,c=l.return;if(Kd(l),l===a){lt=null;break e}if(n!==null){n.return=c,lt=n;break e}lt=c}}}var fp={getCacheForType:function(e){var t=ct($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ct($e).controller.signal}},dp=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Ue=null,ye=null,ge=0,Ne=0,Ot=null,Za=!1,dn=!1,Is=!1,Ma=0,Xe=0,Ka=0,jl=0,er=0,zt=0,hn=0,Si=null,St=null,tr=!1,qu=0,nh=0,Lu=1/0,Bu=null,Ja=null,et=0,$a=null,mn=null,ja=0,ar=0,lr=null,ih=null,Ti=0,nr=null;function Rt(){return(Ee&2)!==0&&ge!==0?ge&-ge:R.T!==null?or():xo()}function uh(){if(zt===0)if((ge&536870912)===0||be){var e=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),zt=e}else zt=536870912;return e=Mt.current,e!==null&&(e.flags|=32),zt}function Tt(e,t,a){(e===Ue&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)&&(yn(e,0),Fa(e,ge,zt,!1)),kn(e,a),((Ee&2)===0||e!==Ue)&&(e===Ue&&((Ee&2)===0&&(jl|=a),Xe===4&&Fa(e,ge,zt,!1)),na(e))}function ch(e,t,a){if((Ee&6)!==0)throw Error(r(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Qn(e,t),n=l?yp(e,t):ur(e,t,!0),c=l;do{if(n===0){dn&&!l&&Fa(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!hp(a)){n=ur(e,t,!1),c=!1;continue}if(n===2){if(c=t,e.errorRecoveryDisabledLanes&c)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var d=e;n=Si;var b=d.current.memoizedState.isDehydrated;if(b&&(yn(d,o).flags|=256),o=ur(d,o,!1),o!==2){if(Is&&!b){d.errorRecoveryDisabledLanes|=c,jl|=c,n=4;break e}c=St,St=n,c!==null&&(St===null?St=c:St.push.apply(St,c))}n=o}if(c=!1,n!==2)continue}}if(n===1){yn(e,0),Fa(e,t,0,!0);break}e:{switch(l=e,c=n,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Fa(l,t,zt,!Za);break e;case 2:St=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=qu+300-Ie(),10<n)){if(Fa(l,t,zt,!Za),$i(l,0,!0)!==0)break e;ja=t,l.timeoutHandle=Lh(sh.bind(null,l,a,St,Bu,tr,t,zt,jl,hn,Za,c,"Throttled",-0,0),n);break e}sh(l,a,St,Bu,tr,t,zt,jl,hn,Za,c,null,-0,0)}}break}while(!0);na(e)}function sh(e,t,a,l,n,c,o,d,b,M,_,q,j,O){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},eh(t,c,q);var P=(c&62914560)===c?qu-Ie():(c&4194048)===c?nh-Ie():0;if(P=Wp(q,P),P!==null){ja=c,e.cancelPendingCommit=P(ph.bind(null,e,t,c,a,l,n,o,d,b,_,q,null,j,O)),Fa(e,c,o,!M);return}}ph(e,t,c,a,l,n,o,d,b)}function hp(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var n=a[l],c=n.getSnapshot;n=n.value;try{if(!Nt(c(),n))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t,a,l){t&=~er,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var n=t;0<n;){var c=31-At(n),o=1<<c;l[c]=-1,n&=~o}a!==0&&go(e,a,t)}function Gu(){return(Ee&6)===0?(Ei(0),!1):!0}function ir(){if(ye!==null){if(Ne===0)var e=ye.return;else e=ye,ga=bl=null,Ss(e),nn=null,ii=0,e=ye;for(;e!==null;)Bd(e.alternate,e),e=e.return;ye=null}}function yn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,_p(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,ir(),Ue=e,ye=a=ya(e.current,null),ge=t,Ne=0,Ot=null,Za=!1,dn=Qn(e,t),Is=!1,hn=zt=er=jl=Ka=Xe=0,St=Si=null,tr=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var n=31-At(l),c=1<<n;t|=e[n],l&=~c}return Ma=t,cu(),a}function rh(e,t){de=null,R.H=hi,t===ln||t===yu?(t=Nf(),Ne=3):t===rs?(t=Nf(),Ne=4):Ne=t===qs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ye===null&&(Xe=1,Ou(e,qt(t,e.current)))}function oh(){var e=Mt.current;return e===null?!0:(ge&4194048)===ge?Yt===null:(ge&62914560)===ge||(ge&536870912)!==0?e===Yt:!1}function fh(){var e=R.H;return R.H=hi,e===null?hi:e}function dh(){var e=R.A;return R.A=fp,e}function Yu(){Xe=4,Za||(ge&4194048)!==ge&&Mt.current!==null||(dn=!0),(Ka&134217727)===0&&(jl&134217727)===0||Ue===null||Fa(Ue,ge,zt,!1)}function ur(e,t,a){var l=Ee;Ee|=2;var n=fh(),c=dh();(Ue!==e||ge!==t)&&(Bu=null,yn(e,t)),t=!1;var o=Xe;e:do try{if(Ne!==0&&ye!==null){var d=ye,b=Ot;switch(Ne){case 8:ir(),o=6;break e;case 3:case 2:case 9:case 6:Mt.current===null&&(t=!0);var M=Ne;if(Ne=0,Ot=null,pn(e,d,b,M),a&&dn){o=0;break e}break;default:M=Ne,Ne=0,Ot=null,pn(e,d,b,M)}}mp(),o=Xe;break}catch(_){rh(e,_)}while(!0);return t&&e.shellSuspendCounter++,ga=bl=null,Ee=l,R.H=n,R.A=c,ye===null&&(Ue=null,ge=0,cu()),o}function mp(){for(;ye!==null;)hh(ye)}function yp(e,t){var a=Ee;Ee|=2;var l=fh(),n=dh();Ue!==e||ge!==t?(Bu=null,Lu=Ie()+500,yn(e,t)):dn=Qn(e,t);e:do try{if(Ne!==0&&ye!==null){t=ye;var c=Ot;t:switch(Ne){case 1:Ne=0,Ot=null,pn(e,t,c,1);break;case 2:case 9:if(Ef(c)){Ne=0,Ot=null,mh(t);break}t=function(){Ne!==2&&Ne!==9||Ue!==e||(Ne=7),na(e)},c.then(t,t);break e;case 3:Ne=7;break e;case 4:Ne=5;break e;case 7:Ef(c)?(Ne=0,Ot=null,mh(t)):(Ne=0,Ot=null,pn(e,t,c,7));break;case 5:var o=null;switch(ye.tag){case 26:o=ye.memoizedState;case 5:case 27:var d=ye;if(o?Ih(o):d.stateNode.complete){Ne=0,Ot=null;var b=d.sibling;if(b!==null)ye=b;else{var M=d.return;M!==null?(ye=M,Qu(M)):ye=null}break t}}Ne=0,Ot=null,pn(e,t,c,5);break;case 6:Ne=0,Ot=null,pn(e,t,c,6);break;case 8:ir(),Xe=6;break e;default:throw Error(r(462))}}pp();break}catch(_){rh(e,_)}while(!0);return ga=bl=null,R.H=l,R.A=n,Ee=a,ye!==null?0:(Ue=null,ge=0,cu(),Xe)}function pp(){for(;ye!==null&&!L();)hh(ye)}function hh(e){var t=qd(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?Qu(e):ye=t}function mh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Rd(a,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Rd(a,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:Ss(t);default:Bd(a,t),t=ye=df(t,Ma),t=qd(a,t,Ma)}e.memoizedProps=e.pendingProps,t===null?Qu(e):ye=t}function pn(e,t,a,l){ga=bl=null,Ss(t),nn=null,ii=0;var n=t.return;try{if(np(e,n,t,a,ge)){Xe=1,Ou(e,qt(a,e.current)),ye=null;return}}catch(c){if(n!==null)throw ye=n,c;Xe=1,Ou(e,qt(a,e.current)),ye=null;return}t.flags&32768?(be||l===1?e=!0:dn||(ge&536870912)!==0?e=!1:(Za=e=!0,(l===2||l===9||l===3||l===6)&&(l=Mt.current,l!==null&&l.tag===13&&(l.flags|=16384))),yh(t,e)):Qu(t)}function Qu(e){var t=e;do{if((t.flags&32768)!==0){yh(t,Za);return}e=t.return;var a=cp(t.alternate,t,Ma);if(a!==null){ye=a;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Xe===0&&(Xe=5)}function yh(e,t){do{var a=sp(e.alternate,e);if(a!==null){a.flags&=32767,ye=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=a}while(e!==null);Xe=6,ye=null}function ph(e,t,a,l,n,c,o,d,b){e.cancelPendingCommit=null;do ku();while(et!==0);if((Ee&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Jc,$y(e,a,c,o,d,b),e===Ue&&(ye=Ue=null,ge=0),mn=t,$a=e,ja=a,ar=c,lr=n,ih=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,xp(Vi,function(){return Sh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,n=G.p,G.p=2,o=Ee,Ee|=4;try{rp(e,t,a)}finally{Ee=o,G.p=n,R.T=l}}et=1,gh(),vh(),bh()}}function gh(){if(et===1){et=0;var e=$a,t=mn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=G.p;G.p=2;var n=Ee;Ee|=4;try{Wd(t,e);var c=vr,o=af(e.containerInfo),d=c.focusedElem,b=c.selectionRange;if(o!==d&&d&&d.ownerDocument&&tf(d.ownerDocument.documentElement,d)){if(b!==null&&kc(d)){var M=b.start,_=b.end;if(_===void 0&&(_=M),"selectionStart"in d)d.selectionStart=M,d.selectionEnd=Math.min(_,d.value.length);else{var q=d.ownerDocument||document,j=q&&q.defaultView||window;if(j.getSelection){var O=j.getSelection(),P=d.textContent.length,ie=Math.min(b.start,P),Re=b.end===void 0?ie:Math.min(b.end,P);!O.extend&&ie>Re&&(o=Re,Re=ie,ie=o);var A=ef(d,ie),T=ef(d,Re);if(A&&T&&(O.rangeCount!==1||O.anchorNode!==A.node||O.anchorOffset!==A.offset||O.focusNode!==T.node||O.focusOffset!==T.offset)){var C=q.createRange();C.setStart(A.node,A.offset),O.removeAllRanges(),ie>Re?(O.addRange(C),O.extend(T.node,T.offset)):(C.setEnd(T.node,T.offset),O.addRange(C))}}}}for(q=[],O=d;O=O.parentNode;)O.nodeType===1&&q.push({element:O,left:O.scrollLeft,top:O.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<q.length;d++){var H=q[d];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}tc=!!gr,vr=gr=null}finally{Ee=n,G.p=l,R.T=a}}e.current=t,et=2}}function vh(){if(et===2){et=0;var e=$a,t=mn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=G.p;G.p=2;var n=Ee;Ee|=4;try{Zd(e,t.alternate,t)}finally{Ee=n,G.p=l,R.T=a}}et=3}}function bh(){if(et===4||et===3){et=0,je();var e=$a,t=mn,a=ja,l=ih;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,mn=$a=null,xh(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ja=null),Ac(a),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Yn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,n=G.p,G.p=2,R.T=null;try{for(var c=e.onRecoverableError,o=0;o<l.length;o++){var d=l[o];c(d.value,{componentStack:d.stack})}}finally{R.T=t,G.p=n}}(ja&3)!==0&&ku(),na(e),n=e.pendingLanes,(a&261930)!==0&&(n&42)!==0?e===nr?Ti++:(Ti=0,nr=e):Ti=0,Ei(0)}}function xh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function ku(){return gh(),vh(),bh(),Sh()}function Sh(){if(et!==5)return!1;var e=$a,t=ar;ar=0;var a=Ac(ja),l=R.T,n=G.p;try{G.p=32>a?32:a,R.T=null,a=lr,lr=null;var c=$a,o=ja;if(et=0,mn=$a=null,ja=0,(Ee&6)!==0)throw Error(r(331));var d=Ee;if(Ee|=4,ah(c.current),Id(c,c.current,o,a),Ee=d,Ei(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Yn,c)}catch{}return!0}finally{G.p=n,R.T=l,xh(e,t)}}function Th(e,t,a){t=qt(a,t),t=Hs(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(kn(e,2),na(e))}function Ce(e,t,a){if(e.tag===3)Th(e,e,a);else for(;t!==null;){if(t.tag===3){Th(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ja===null||!Ja.has(l))){e=qt(a,e),a=Ed(2),l=Qa(t,a,2),l!==null&&(Ad(a,l,t,e),kn(l,2),na(l));break}}t=t.return}}function cr(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new dp;var n=new Set;l.set(t,n)}else n=l.get(t),n===void 0&&(n=new Set,l.set(t,n));n.has(a)||(Is=!0,n.add(a),e=gp.bind(null,e,t,a),t.then(e,e))}function gp(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(ge&a)===a&&(Xe===4||Xe===3&&(ge&62914560)===ge&&300>Ie()-qu?(Ee&2)===0&&yn(e,0):er|=a,hn===ge&&(hn=0)),na(e)}function Eh(e,t){t===0&&(t=po()),e=pl(e,t),e!==null&&(kn(e,t),na(e))}function vp(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Eh(e,a)}function bp(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,n=e.memoizedState;n!==null&&(a=n.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Eh(e,a)}function xp(e,t){return Gn(e,t)}var Xu=null,gn=null,sr=!1,Vu=!1,rr=!1,Wa=0;function na(e){e!==gn&&e.next===null&&(gn===null?Xu=gn=e:gn=gn.next=e),Vu=!0,sr||(sr=!0,Tp())}function Ei(e,t){if(!rr&&Vu){rr=!0;do for(var a=!1,l=Xu;l!==null;){if(e!==0){var n=l.pendingLanes;if(n===0)var c=0;else{var o=l.suspendedLanes,d=l.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=n&~(o&~d),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Mh(l,c))}else c=ge,c=$i(l,l===Ue?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Qn(l,c)||(a=!0,Mh(l,c));l=l.next}while(a);rr=!1}}function Sp(){Ah()}function Ah(){Vu=sr=!1;var e=0;Wa!==0&&wp()&&(e=Wa);for(var t=Ie(),a=null,l=Xu;l!==null;){var n=l.next,c=Nh(l,t);c===0?(l.next=null,a===null?Xu=n:a.next=n,n===null&&(gn=a)):(a=l,(e!==0||(c&3)!==0)&&(Vu=!0)),l=n}et!==0&&et!==5||Ei(e),Wa!==0&&(Wa=0)}function Nh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,n=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var o=31-At(c),d=1<<o,b=n[o];b===-1?((d&a)===0||(d&l)!==0)&&(n[o]=Jy(d,t)):b<=t&&(e.expiredLanes|=d),c&=~d}if(t=Ue,a=ge,a=$i(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ne===2||Ne===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Hl(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Qn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Hl(l),Ac(a)){case 2:case 8:a=mo;break;case 32:a=Vi;break;case 268435456:a=yo;break;default:a=Vi}return l=Ch.bind(null,e),a=Gn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Hl(l),e.callbackPriority=2,e.callbackNode=null,2}function Ch(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ku()&&e.callbackNode!==a)return null;var l=ge;return l=$i(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(ch(e,l,t),Nh(e,Ie()),e.callbackNode!=null&&e.callbackNode===a?Ch.bind(null,e):null)}function Mh(e,t){if(ku())return null;ch(e,t,!0)}function Tp(){Dp(function(){(Ee&6)!==0?Gn(ho,Sp):Ah()})}function or(){if(Wa===0){var e=tn;e===0&&(e=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),Wa=e}return Wa}function jh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ii(""+e)}function Oh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Ep(e,t,a,l,n){if(t==="submit"&&a&&a.stateNode===n){var c=jh((n[pt]||null).action),o=l.submitter;o&&(t=(t=o[pt]||null)?jh(t.formAction):o.getAttribute("formAction"),t!==null&&(c=t,o=null));var d=new lu("action","action",null,l,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Wa!==0){var b=o?Oh(n,o):new FormData(n);zs(a,{pending:!0,data:b,method:n.method,action:c},null,b)}}else typeof c=="function"&&(d.preventDefault(),b=o?Oh(n,o):new FormData(n),zs(a,{pending:!0,data:b,method:n.method,action:c},c,b))},currentTarget:n}]})}}for(var fr=0;fr<Kc.length;fr++){var dr=Kc[fr],Ap=dr.toLowerCase(),Np=dr[0].toUpperCase()+dr.slice(1);Vt(Ap,"on"+Np)}Vt(uf,"onAnimationEnd"),Vt(cf,"onAnimationIteration"),Vt(sf,"onAnimationStart"),Vt("dblclick","onDoubleClick"),Vt("focusin","onFocus"),Vt("focusout","onBlur"),Vt(Y0,"onTransitionRun"),Vt(Q0,"onTransitionStart"),Vt(k0,"onTransitionCancel"),Vt(rf,"onTransitionEnd"),Yl("onMouseEnter",["mouseout","mouseover"]),Yl("onMouseLeave",["mouseout","mouseover"]),Yl("onPointerEnter",["pointerout","pointerover"]),Yl("onPointerLeave",["pointerout","pointerover"]),dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),dl("onBeforeInput",["compositionend","keypress","textInput","paste"]),dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="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(" "),Cp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function zh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],n=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var o=l.length-1;0<=o;o--){var d=l[o],b=d.instance,M=d.currentTarget;if(d=d.listener,b!==c&&n.isPropagationStopped())break e;c=d,n.currentTarget=M;try{c(n)}catch(_){uu(_)}n.currentTarget=null,c=b}else for(o=0;o<l.length;o++){if(d=l[o],b=d.instance,M=d.currentTarget,d=d.listener,b!==c&&n.isPropagationStopped())break e;c=d,n.currentTarget=M;try{c(n)}catch(_){uu(_)}n.currentTarget=null,c=b}}}}function pe(e,t){var a=t[Nc];a===void 0&&(a=t[Nc]=new Set);var l=e+"__bubble";a.has(l)||(Rh(t,e,2,!1),a.add(l))}function hr(e,t,a){var l=0;t&&(l|=4),Rh(a,e,l,t)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function mr(e){if(!e[Zu]){e[Zu]=!0,Eo.forEach(function(a){a!=="selectionchange"&&(Cp.has(a)||hr(a,!1,e),hr(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zu]||(t[Zu]=!0,hr("selectionchange",!1,t))}}function Rh(e,t,a,l){switch(um(t)){case 2:var n=eg;break;case 8:n=tg;break;default:n=Or}a=n.bind(null,t,a,e),n=void 0,!Dc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),l?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function yr(e,t,a,l,n){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var d=l.stateNode.containerInfo;if(d===n)break;if(o===4)for(o=l.return;o!==null;){var b=o.tag;if((b===3||b===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;d!==null;){if(o=Ll(d),o===null)return;if(b=o.tag,b===5||b===6||b===26||b===27){l=c=o;continue e}d=d.parentNode}}l=l.return}Uo(function(){var M=c,_=wc(a),q=[];e:{var j=of.get(e);if(j!==void 0){var O=lu,P=e;switch(e){case"keypress":if(tu(a)===0)break e;case"keydown":case"keyup":O=b0;break;case"focusin":P="focus",O=Lc;break;case"focusout":P="blur",O=Lc;break;case"beforeblur":case"afterblur":O=Lc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":O=Lo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":O=c0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":O=T0;break;case uf:case cf:case sf:O=o0;break;case rf:O=A0;break;case"scroll":case"scrollend":O=i0;break;case"wheel":O=C0;break;case"copy":case"cut":case"paste":O=d0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":O=Go;break;case"toggle":case"beforetoggle":O=j0}var ie=(t&4)!==0,Re=!ie&&(e==="scroll"||e==="scrollend"),A=ie?j!==null?j+"Capture":null:j;ie=[];for(var T=M,C;T!==null;){var H=T;if(C=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||C===null||A===null||(H=Zn(T,A),H!=null&&ie.push(Ni(T,H,C))),Re)break;T=T.return}0<ie.length&&(j=new O(j,P,null,a,_),q.push({event:j,listeners:ie}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",O=e==="mouseout"||e==="pointerout",j&&a!==Rc&&(P=a.relatedTarget||a.fromElement)&&(Ll(P)||P[ql]))break e;if((O||j)&&(j=_.window===_?_:(j=_.ownerDocument)?j.defaultView||j.parentWindow:window,O?(P=a.relatedTarget||a.toElement,O=M,P=P?Ll(P):null,P!==null&&(Re=m(P),ie=P.tag,P!==Re||ie!==5&&ie!==27&&ie!==6)&&(P=null)):(O=null,P=M),O!==P)){if(ie=Lo,H="onMouseLeave",A="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Go,H="onPointerLeave",A="onPointerEnter",T="pointer"),Re=O==null?j:Vn(O),C=P==null?j:Vn(P),j=new ie(H,T+"leave",O,a,_),j.target=Re,j.relatedTarget=C,H=null,Ll(_)===M&&(ie=new ie(A,T+"enter",P,a,_),ie.target=C,ie.relatedTarget=Re,H=ie),Re=H,O&&P)t:{for(ie=Mp,A=O,T=P,C=0,H=A;H;H=ie(H))C++;H=0;for(var le=T;le;le=ie(le))H++;for(;0<C-H;)A=ie(A),C--;for(;0<H-C;)T=ie(T),H--;for(;C--;){if(A===T||T!==null&&A===T.alternate){ie=A;break t}A=ie(A),T=ie(T)}ie=null}else ie=null;O!==null&&wh(q,j,O,ie,!1),P!==null&&Re!==null&&wh(q,Re,P,ie,!0)}}e:{if(j=M?Vn(M):window,O=j.nodeName&&j.nodeName.toLowerCase(),O==="select"||O==="input"&&j.type==="file")var Se=Jo;else if(Zo(j))if($o)Se=L0;else{Se=H0;var I=U0}else O=j.nodeName,!O||O.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?M&&zc(M.elementType)&&(Se=Jo):Se=q0;if(Se&&(Se=Se(e,M))){Ko(q,Se,a,_);break e}I&&I(e,j,M),e==="focusout"&&M&&j.type==="number"&&M.memoizedProps.value!=null&&Oc(j,"number",j.value)}switch(I=M?Vn(M):window,e){case"focusin":(Zo(I)||I.contentEditable==="true")&&(Kl=I,Xc=M,ei=null);break;case"focusout":ei=Xc=Kl=null;break;case"mousedown":Vc=!0;break;case"contextmenu":case"mouseup":case"dragend":Vc=!1,lf(q,a,_);break;case"selectionchange":if(G0)break;case"keydown":case"keyup":lf(q,a,_)}var he;if(Gc)e:{switch(e){case"compositionstart":var ve="onCompositionStart";break e;case"compositionend":ve="onCompositionEnd";break e;case"compositionupdate":ve="onCompositionUpdate";break e}ve=void 0}else Zl?Xo(e,a)&&(ve="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ve="onCompositionStart");ve&&(Yo&&a.locale!=="ko"&&(Zl||ve!=="onCompositionStart"?ve==="onCompositionEnd"&&Zl&&(he=Ho()):(Ua=_,Uc="value"in Ua?Ua.value:Ua.textContent,Zl=!0)),I=Ku(M,ve),0<I.length&&(ve=new Bo(ve,e,null,a,_),q.push({event:ve,listeners:I}),he?ve.data=he:(he=Vo(a),he!==null&&(ve.data=he)))),(he=z0?R0(e,a):w0(e,a))&&(ve=Ku(M,"onBeforeInput"),0<ve.length&&(I=new Bo("onBeforeInput","beforeinput",null,a,_),q.push({event:I,listeners:ve}),I.data=he)),Ep(q,e,M,a,_)}zh(q,t)})}function Ni(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ku(e,t){for(var a=t+"Capture",l=[];e!==null;){var n=e,c=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||c===null||(n=Zn(e,a),n!=null&&l.unshift(Ni(e,n,c)),n=Zn(e,t),n!=null&&l.push(Ni(e,n,c))),e.tag===3)return l;e=e.return}return[]}function Mp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function wh(e,t,a,l,n){for(var c=t._reactName,o=[];a!==null&&a!==l;){var d=a,b=d.alternate,M=d.stateNode;if(d=d.tag,b!==null&&b===l)break;d!==5&&d!==26&&d!==27||M===null||(b=M,n?(M=Zn(a,c),M!=null&&o.unshift(Ni(a,M,b))):n||(M=Zn(a,c),M!=null&&o.push(Ni(a,M,b)))),a=a.return}o.length!==0&&e.push({event:t,listeners:o})}var jp=/\r\n?/g,Op=/\u0000|\uFFFD/g;function _h(e){return(typeof e=="string"?e:""+e).replace(jp,`
|
|
50
|
-
`).replace(Op,"")}function Dh(e,t){return t=_h(t),_h(e)===t}function ze(e,t,a,l,n,c){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||kl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&kl(e,""+l);break;case"className":Wi(e,"class",l);break;case"tabIndex":Wi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(e,a,l);break;case"style":_o(e,l,c);break;case"data":if(t!=="object"){Wi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&ze(e,t,"name",n.name,n,null),ze(e,t,"formEncType",n.formEncType,n,null),ze(e,t,"formMethod",n.formMethod,n,null),ze(e,t,"formTarget",n.formTarget,n,null)):(ze(e,t,"encType",n.encType,n,null),ze(e,t,"method",n.method,n,null),ze(e,t,"target",n.target,n,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Ii(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ha);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Ii(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":pe("beforetoggle",e),pe("toggle",e),Fi(e,"popover",l);break;case"xlinkActuate":da(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":da(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":da(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":da(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":da(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":da(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":da(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":da(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":da(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Fi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=l0.get(a)||a,Fi(e,a,l))}}function pr(e,t,a,l,n,c){switch(a){case"style":_o(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=a}}break;case"children":typeof l=="string"?kl(e,l):(typeof l=="number"||typeof l=="bigint")&&kl(e,""+l);break;case"onScroll":l!=null&&pe("scroll",e);break;case"onScrollEnd":l!=null&&pe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ao.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),c=e[pt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,n),typeof l=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,n);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Fi(e,a,l)}}}function rt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pe("error",e),pe("load",e);var l=!1,n=!1,c;for(c in a)if(a.hasOwnProperty(c)){var o=a[c];if(o!=null)switch(c){case"src":l=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,c,o,a,null)}}n&&ze(e,t,"srcSet",a.srcSet,a,null),l&&ze(e,t,"src",a.src,a,null);return;case"input":pe("invalid",e);var d=c=o=n=null,b=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var _=a[l];if(_!=null)switch(l){case"name":n=_;break;case"type":o=_;break;case"checked":b=_;break;case"defaultChecked":M=_;break;case"value":c=_;break;case"defaultValue":d=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:ze(e,t,l,_,a,null)}}Oo(e,c,d,b,M,o,n,!1);return;case"select":pe("invalid",e),l=o=c=null;for(n in a)if(a.hasOwnProperty(n)&&(d=a[n],d!=null))switch(n){case"value":c=d;break;case"defaultValue":o=d;break;case"multiple":l=d;default:ze(e,t,n,d,a,null)}t=c,a=o,e.multiple=!!l,t!=null?Ql(e,!!l,t,!1):a!=null&&Ql(e,!!l,a,!0);return;case"textarea":pe("invalid",e),c=n=l=null;for(o in a)if(a.hasOwnProperty(o)&&(d=a[o],d!=null))switch(o){case"value":l=d;break;case"defaultValue":n=d;break;case"children":c=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:ze(e,t,o,d,a,null)}Ro(e,l,n,c);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ze(e,t,b,l,a,null)}return;case"dialog":pe("beforetoggle",e),pe("toggle",e),pe("cancel",e),pe("close",e);break;case"iframe":case"object":pe("load",e);break;case"video":case"audio":for(l=0;l<Ai.length;l++)pe(Ai[l],e);break;case"image":pe("error",e),pe("load",e);break;case"details":pe("toggle",e);break;case"embed":case"source":case"link":pe("error",e),pe("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(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:ze(e,t,M,l,a,null)}return;default:if(zc(t)){for(_ in a)a.hasOwnProperty(_)&&(l=a[_],l!==void 0&&pr(e,t,_,l,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(l=a[d],l!=null&&ze(e,t,d,l,a,null))}function zp(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,c=null,o=null,d=null,b=null,M=null,_=null;for(O in a){var q=a[O];if(a.hasOwnProperty(O)&&q!=null)switch(O){case"checked":break;case"value":break;case"defaultValue":b=q;default:l.hasOwnProperty(O)||ze(e,t,O,null,l,q)}}for(var j in l){var O=l[j];if(q=a[j],l.hasOwnProperty(j)&&(O!=null||q!=null))switch(j){case"type":c=O;break;case"name":n=O;break;case"checked":M=O;break;case"defaultChecked":_=O;break;case"value":o=O;break;case"defaultValue":d=O;break;case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:O!==q&&ze(e,t,j,O,l,q)}}jc(e,o,d,b,M,_,c,n);return;case"select":O=o=d=j=null;for(c in a)if(b=a[c],a.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":O=b;default:l.hasOwnProperty(c)||ze(e,t,c,null,l,b)}for(n in l)if(c=l[n],b=a[n],l.hasOwnProperty(n)&&(c!=null||b!=null))switch(n){case"value":j=c;break;case"defaultValue":d=c;break;case"multiple":o=c;default:c!==b&&ze(e,t,n,c,l,b)}t=d,a=o,l=O,j!=null?Ql(e,!!a,j,!1):!!l!=!!a&&(t!=null?Ql(e,!!a,t,!0):Ql(e,!!a,a?[]:"",!1));return;case"textarea":O=j=null;for(d in a)if(n=a[d],a.hasOwnProperty(d)&&n!=null&&!l.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:ze(e,t,d,null,l,n)}for(o in l)if(n=l[o],c=a[o],l.hasOwnProperty(o)&&(n!=null||c!=null))switch(o){case"value":j=n;break;case"defaultValue":O=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==c&&ze(e,t,o,n,l,c)}zo(e,j,O);return;case"option":for(var P in a)if(j=a[P],a.hasOwnProperty(P)&&j!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:ze(e,t,P,null,l,j)}for(b in l)if(j=l[b],O=a[b],l.hasOwnProperty(b)&&j!==O&&(j!=null||O!=null))switch(b){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:ze(e,t,b,j,l,O)}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 ie in a)j=a[ie],a.hasOwnProperty(ie)&&j!=null&&!l.hasOwnProperty(ie)&&ze(e,t,ie,null,l,j);for(M in l)if(j=l[M],O=a[M],l.hasOwnProperty(M)&&j!==O&&(j!=null||O!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(r(137,t));break;default:ze(e,t,M,j,l,O)}return;default:if(zc(t)){for(var Re in a)j=a[Re],a.hasOwnProperty(Re)&&j!==void 0&&!l.hasOwnProperty(Re)&&pr(e,t,Re,void 0,l,j);for(_ in l)j=l[_],O=a[_],!l.hasOwnProperty(_)||j===O||j===void 0&&O===void 0||pr(e,t,_,j,l,O);return}}for(var A in a)j=a[A],a.hasOwnProperty(A)&&j!=null&&!l.hasOwnProperty(A)&&ze(e,t,A,null,l,j);for(q in l)j=l[q],O=a[q],!l.hasOwnProperty(q)||j===O||j==null&&O==null||ze(e,t,q,j,l,O)}function Uh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var n=a[l],c=n.transferSize,o=n.initiatorType,d=n.duration;if(c&&d&&Uh(o)){for(o=0,d=n.responseEnd,l+=1;l<a.length;l++){var b=a[l],M=b.startTime;if(M>d)break;var _=b.transferSize,q=b.initiatorType;_&&Uh(q)&&(b=b.responseEnd,o+=_*(b<d?1:(d-M)/(b-M)))}if(--l,t+=8*(c+o)/(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 gr=null,vr=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function Hh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function br(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 xr=null;function wp(){var e=window.event;return e&&e.type==="popstate"?e===xr?!1:(xr=e,!0):(xr=null,!1)}var Lh=typeof setTimeout=="function"?setTimeout:void 0,_p=typeof clearTimeout=="function"?clearTimeout:void 0,Bh=typeof Promise=="function"?Promise:void 0,Dp=typeof queueMicrotask=="function"?queueMicrotask:typeof Bh<"u"?function(e){return Bh.resolve(null).then(e).catch(Up)}:Lh;function Up(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function Gh(e,t){var a=t,l=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(n),Sn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")Ci(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ci(a);for(var c=a.firstChild;c;){var o=c.nextSibling,d=c.nodeName;c[Xn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=o}}else a==="body"&&Ci(e.ownerDocument.body);a=n}while(a);Sn(t)}function Yh(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Sr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Sr(a),Cc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Hp(e,t,a,l){for(;e.nodeType===1;){var n=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Xn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Qt(e.nextSibling),e===null)break}return null}function qp(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Qt(e.nextSibling),e===null))return null;return e}function Qh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qt(e.nextSibling),e===null))return null;return e}function Tr(e){return e.data==="$?"||e.data==="$~"}function Er(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Lp(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Qt(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 Ar=null;function kh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Qt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Xh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Vh(e,t,a){switch(t=Ju(a),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Cc(e)}var kt=new Map,Zh=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=G.d;G.d={f:Bp,r:Gp,D:Yp,C:Qp,L:kp,m:Xp,X:Zp,S:Vp,M:Kp};function Bp(){var e=Oa.f(),t=Gu();return e||t}function Gp(e){var t=Bl(e);t!==null&&t.tag===5&&t.type==="form"?rd(t):Oa.r(e)}var vn=typeof document>"u"?null:document;function Kh(e,t,a){var l=vn;if(l&&typeof t=="string"&&t){var n=Ut(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a=="string"&&(n+='[crossorigin="'+a+'"]'),Zh.has(n)||(Zh.add(n),e={rel:e,crossOrigin:a,href:t},l.querySelector(n)===null&&(t=l.createElement("link"),rt(t,"link",e),at(t),l.head.appendChild(t)))}}function Yp(e){Oa.D(e),Kh("dns-prefetch",e,null)}function Qp(e,t){Oa.C(e,t),Kh("preconnect",e,t)}function kp(e,t,a){Oa.L(e,t,a);var l=vn;if(l&&e&&t){var n='link[rel="preload"][as="'+Ut(t)+'"]';t==="image"&&a&&a.imageSrcSet?(n+='[imagesrcset="'+Ut(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(n+='[imagesizes="'+Ut(a.imageSizes)+'"]')):n+='[href="'+Ut(e)+'"]';var c=n;switch(t){case"style":c=bn(e);break;case"script":c=xn(e)}kt.has(c)||(e=E({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),kt.set(c,e),l.querySelector(n)!==null||t==="style"&&l.querySelector(Mi(c))||t==="script"&&l.querySelector(ji(c))||(t=l.createElement("link"),rt(t,"link",e),at(t),l.head.appendChild(t)))}}function Xp(e,t){Oa.m(e,t);var a=vn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Ut(l)+'"][href="'+Ut(e)+'"]',c=n;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=xn(e)}if(!kt.has(c)&&(e=E({rel:"modulepreload",href:e},t),kt.set(c,e),a.querySelector(n)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ji(c)))return}l=a.createElement("link"),rt(l,"link",e),at(l),a.head.appendChild(l)}}}function Vp(e,t,a){Oa.S(e,t,a);var l=vn;if(l&&e){var n=Gl(l).hoistableStyles,c=bn(e);t=t||"default";var o=n.get(c);if(!o){var d={loading:0,preload:null};if(o=l.querySelector(Mi(c)))d.loading=5;else{e=E({rel:"stylesheet",href:e,"data-precedence":t},a),(a=kt.get(c))&&Nr(e,a);var b=o=l.createElement("link");at(b),rt(b,"link",e),b._p=new Promise(function(M,_){b.onload=M,b.onerror=_}),b.addEventListener("load",function(){d.loading|=1}),b.addEventListener("error",function(){d.loading|=2}),d.loading|=4,Fu(o,t,l)}o={type:"stylesheet",instance:o,count:1,state:d},n.set(c,o)}}}function Zp(e,t){Oa.X(e,t);var a=vn;if(a&&e){var l=Gl(a).hoistableScripts,n=xn(e),c=l.get(n);c||(c=a.querySelector(ji(n)),c||(e=E({src:e,async:!0},t),(t=kt.get(n))&&Cr(e,t),c=a.createElement("script"),at(c),rt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(n,c))}}function Kp(e,t){Oa.M(e,t);var a=vn;if(a&&e){var l=Gl(a).hoistableScripts,n=xn(e),c=l.get(n);c||(c=a.querySelector(ji(n)),c||(e=E({src:e,async:!0,type:"module"},t),(t=kt.get(n))&&Cr(e,t),c=a.createElement("script"),at(c),rt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(n,c))}}function Jh(e,t,a,l){var n=(n=re.current)?$u(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=bn(a.href),a=Gl(n).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=bn(a.href);var c=Gl(n).hoistableStyles,o=c.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,o),(c=n.querySelector(Mi(e)))&&!c._p&&(o.instance=c,o.state.loading=5),kt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},kt.set(e,a),c||Jp(n,e,a,o.state))),t&&l===null)throw Error(r(528,""));return o}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=xn(a),a=Gl(n).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function bn(e){return'href="'+Ut(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function $h(e){return E({},e,{"data-precedence":e.precedence,precedence:null})}function Jp(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),rt(t,"link",a),at(t),e.head.appendChild(t))}function xn(e){return'[src="'+Ut(e)+'"]'}function ji(e){return"script[async]"+e}function Fh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Ut(a.href)+'"]');if(l)return t.instance=l,at(l),l;var n=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),at(l),rt(l,"style",n),Fu(l,a.precedence,e),t.instance=l;case"stylesheet":n=bn(a.href);var c=e.querySelector(Mi(n));if(c)return t.state.loading|=4,t.instance=c,at(c),c;l=$h(a),(n=kt.get(n))&&Nr(l,n),c=(e.ownerDocument||e).createElement("link"),at(c);var o=c;return o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),rt(c,"link",l),t.state.loading|=4,Fu(c,a.precedence,e),t.instance=c;case"script":return c=xn(a.src),(n=e.querySelector(ji(c)))?(t.instance=n,at(n),n):(l=a,(n=kt.get(c))&&(l=E({},a),Cr(l,n)),e=e.ownerDocument||e,n=e.createElement("script"),at(n),rt(n,"link",l),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Fu(l,a.precedence,e));return t.instance}function Fu(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=l.length?l[l.length-1]:null,c=n,o=0;o<l.length;o++){var d=l[o];if(d.dataset.precedence===t)c=d;else if(c!==n)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Nr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wu=null;function Wh(e,t,a){if(Wu===null){var l=new Map,n=Wu=new Map;n.set(a,l)}else n=Wu,l=n.get(a),l||(l=new Map,n.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),n=0;n<a.length;n++){var c=a[n];if(!(c[Xn]||c[it]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var o=c.getAttribute(t)||"";o=e+o;var d=l.get(o);d?d.push(c):l.set(o,[c])}}return l}function Ph(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function $p(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ih(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fp(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var n=bn(l.href),c=t.querySelector(Mi(n));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,at(c);return}c=t.ownerDocument||t,l=$h(l),(n=kt.get(n))&&Nr(l,n),c=c.createElement("link"),at(c);var o=c;o._p=new Promise(function(d,b){o.onload=d,o.onerror=b}),rt(c,"link",l),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Pu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Mr=0;function Wp(e,t){return e.stylesheets&&e.count===0&&ec(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ec(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Mr===0&&(Mr=62500*Rp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ec(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Mr?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(n)}}:null}function Pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ec(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Iu=null;function ec(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(Pp,e),Iu=null,Pu.call(e))}function Pp(e,t){if(!(t.state.loading&4)){var a=Iu.get(e);if(a)var l=a.get(null);else{a=new Map,Iu.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<n.length;c++){var o=n[c];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(a.set(o.dataset.precedence,o),l=o)}l&&a.set(null,l)}n=t.instance,o=n.getAttribute("data-precedence"),c=a.get(o)||l,c===l&&a.set(null,n),a.set(o,n),this.count++,l=Pu.bind(this),n.addEventListener("load",l),n.addEventListener("error",l),c?c.parentNode.insertBefore(n,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Oi={$$typeof:B,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Ip(e,t,a,l,n,c,o,d,b){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=Tc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tc(0),this.hiddenUpdates=Tc(null),this.identifierPrefix=l,this.onUncaughtError=n,this.onCaughtError=c,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function em(e,t,a,l,n,c,o,d,b,M,_,q){return e=new Ip(e,t,a,o,b,M,_,q,d),t=1,c===!0&&(t|=24),c=Ct(3,null,null,t),e.current=c,c.stateNode=e,t=us(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:t},os(c),e}function tm(e){return e?(e=Fl,e):Fl}function am(e,t,a,l,n,c){n=tm(n),l.context===null?l.context=n:l.pendingContext=n,l=Ya(t),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Qa(e,l,t),a!==null&&(Tt(a,e,t),ci(a,e,t))}function lm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jr(e,t){lm(e,t),(e=e.alternate)&&lm(e,t)}function nm(e){if(e.tag===13||e.tag===31){var t=pl(e,67108864);t!==null&&Tt(t,e,67108864),jr(e,67108864)}}function im(e){if(e.tag===13||e.tag===31){var t=Rt();t=Ec(t);var a=pl(e,t);a!==null&&Tt(a,e,t),jr(e,t)}}var tc=!0;function eg(e,t,a,l){var n=R.T;R.T=null;var c=G.p;try{G.p=2,Or(e,t,a,l)}finally{G.p=c,R.T=n}}function tg(e,t,a,l){var n=R.T;R.T=null;var c=G.p;try{G.p=8,Or(e,t,a,l)}finally{G.p=c,R.T=n}}function Or(e,t,a,l){if(tc){var n=zr(l);if(n===null)yr(e,t,l,ac,a),cm(e,l);else if(lg(n,e,t,a,l))l.stopPropagation();else if(cm(e,l),t&4&&-1<ag.indexOf(e)){for(;n!==null;){var c=Bl(n);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var o=fl(c.pendingLanes);if(o!==0){var d=c;for(d.pendingLanes|=2,d.entangledLanes|=2;o;){var b=1<<31-At(o);d.entanglements[1]|=b,o&=~b}na(c),(Ee&6)===0&&(Lu=Ie()+500,Ei(0))}}break;case 31:case 13:d=pl(c,2),d!==null&&Tt(d,c,2),Gu(),jr(c,2)}if(c=zr(l),c===null&&yr(e,t,l,ac,a),c===n)break;n=c}n!==null&&l.stopPropagation()}else yr(e,t,l,null,a)}}function zr(e){return e=wc(e),Rr(e)}var ac=null;function Rr(e){if(ac=null,e=Ll(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ac=e,null}function um(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(fa()){case ho:return 2;case mo:return 8;case Vi:case Qy:return 32;case yo:return 268435456;default:return 32}default:return 32}}var wr=!1,Ia=null,el=null,tl=null,zi=new Map,Ri=new Map,al=[],ag="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 cm(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":zi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ri.delete(t.pointerId)}}function wi(e,t,a,l,n,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[n]},t!==null&&(t=Bl(t),t!==null&&nm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function lg(e,t,a,l,n){switch(t){case"focusin":return Ia=wi(Ia,e,t,a,l,n),!0;case"dragenter":return el=wi(el,e,t,a,l,n),!0;case"mouseover":return tl=wi(tl,e,t,a,l,n),!0;case"pointerover":var c=n.pointerId;return zi.set(c,wi(zi.get(c)||null,e,t,a,l,n)),!0;case"gotpointercapture":return c=n.pointerId,Ri.set(c,wi(Ri.get(c)||null,e,t,a,l,n)),!0}return!1}function sm(e){var t=Ll(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,So(e.priority,function(){im(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,So(e.priority,function(){im(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=zr(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Rc=l,a.target.dispatchEvent(l),Rc=null}else return t=Bl(a),t!==null&&nm(t),e.blockedOn=a,!1;t.shift()}return!0}function rm(e,t,a){lc(e)&&a.delete(t)}function ng(){wr=!1,Ia!==null&&lc(Ia)&&(Ia=null),el!==null&&lc(el)&&(el=null),tl!==null&&lc(tl)&&(tl=null),zi.forEach(rm),Ri.forEach(rm)}function nc(e,t){e.blockedOn===t&&(e.blockedOn=null,wr||(wr=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,ng)))}var ic=null;function om(e){ic!==e&&(ic=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){ic===e&&(ic=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],n=e[t+2];if(typeof l!="function"){if(Rr(l||a)===null)continue;break}var c=Bl(a);c!==null&&(e.splice(t,3),t-=3,zs(c,{pending:!0,data:n,method:a.method,action:l},l,n))}}))}function Sn(e){function t(b){return nc(b,e)}Ia!==null&&nc(Ia,e),el!==null&&nc(el,e),tl!==null&&nc(tl,e),zi.forEach(t),Ri.forEach(t);for(var a=0;a<al.length;a++){var l=al[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<al.length&&(a=al[0],a.blockedOn===null);)sm(a),a.blockedOn===null&&al.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var n=a[l],c=a[l+1],o=n[pt]||null;if(typeof c=="function")o||om(a);else if(o){var d=null;if(c&&c.hasAttribute("formAction")){if(n=c,o=c[pt]||null)d=o.formAction;else if(Rr(n)!==null)continue}else d=o.action;typeof d=="function"?a[l+1]=d:(a.splice(l,3),l-=3),om(a)}}}function fm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function _r(e){this._internalRoot=e}uc.prototype.render=_r.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var a=t.current,l=Rt();am(a,l,e,t,null,null)},uc.prototype.unmount=_r.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;am(e.current,2,null,e,null,null),Gu(),t[ql]=null}};function uc(e){this._internalRoot=e}uc.prototype.unstable_scheduleHydration=function(e){if(e){var t=xo();e={blockedOn:null,target:e,priority:t};for(var a=0;a<al.length&&t!==0&&t<al[a].priority;a++);al.splice(a,0,e),a===0&&sm(e)}};var dm=u.version;if(dm!=="19.2.4")throw Error(r(527,dm,"19.2.4"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?N(e):null,e=e===null?null:e.stateNode,e};var ig={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cc.isDisabled&&cc.supportsFiber)try{Yn=cc.inject(ig),Et=cc}catch{}}return Di.createRoot=function(e,t){if(!f(e))throw Error(r(299));var a=!1,l="",n=bd,c=xd,o=Sd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=em(e,1,!1,null,null,a,l,null,n,c,o,fm),e[ql]=t.current,mr(e),new _r(t)},Di.hydrateRoot=function(e,t,a){if(!f(e))throw Error(r(299));var l=!1,n="",c=bd,o=xd,d=Sd,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(o=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=em(e,1,!0,t,a??null,l,n,b,c,o,d,fm),t.context=tm(null),a=t.current,l=Rt(),l=Ec(l),n=Ya(l),n.callback=null,Qa(a,n,l),a=l,t.current.lanes=a,kn(t,a),na(t),e[ql]=t.current,mr(e),new uc(t)},Di.version="19.2.4",Di}var Am;function vg(){if(Am)return qr.exports;Am=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(u){console.error(u)}}return i(),qr.exports=gg(),qr.exports}var bg=vg();/**
|
|
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 Nm="popstate";function Cm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function xg(i={}){function u(r,f){var y;let m=(y=f.state)==null?void 0:y.masked,{pathname:v,search:g,hash:p}=m||r.location;return Vr("",{pathname:v,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default",m?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,f){return typeof f=="string"?f:qi(f)}return Tg(u,s,null,i)}function Qe(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function Wt(i,u){if(!i){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function Sg(){return Math.random().toString(36).substring(2,10)}function Mm(i,u){return{usr:i.state,key:i.key,idx:u,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Vr(i,u,s=null,r,f){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof u=="string"?Rn(u):u,state:s,key:u&&u.key||r||Sg(),unstable_mask:f}}function qi({pathname:i="/",search:u="",hash:s=""}){return u&&u!=="?"&&(i+=u.charAt(0)==="?"?u:"?"+u),s&&s!=="#"&&(i+=s.charAt(0)==="#"?s:"#"+s),i}function Rn(i){let u={};if(i){let s=i.indexOf("#");s>=0&&(u.hash=i.substring(s),i=i.substring(0,s));let r=i.indexOf("?");r>=0&&(u.search=i.substring(r),i=i.substring(0,r)),i&&(u.pathname=i)}return u}function Tg(i,u,s,r={}){let{window:f=document.defaultView,v5Compat:m=!1}=r,v=f.history,g="POP",p=null,y=N();y==null&&(y=0,v.replaceState({...v.state,idx:y},""));function N(){return(v.state||{idx:null}).idx}function E(){g="POP";let k=N(),Y=k==null?null:k-y;y=k,p&&p({action:g,location:z.location,delta:Y})}function D(k,Y){g="PUSH";let F=Cm(k)?k:Vr(z.location,k,Y);y=N()+1;let B=Mm(F,y),X=z.createHref(F.unstable_mask||F);try{v.pushState(B,"",X)}catch(ne){if(ne instanceof DOMException&&ne.name==="DataCloneError")throw ne;f.location.assign(X)}m&&p&&p({action:g,location:z.location,delta:1})}function Q(k,Y){g="REPLACE";let F=Cm(k)?k:Vr(z.location,k,Y);y=N();let B=Mm(F,y),X=z.createHref(F.unstable_mask||F);v.replaceState(B,"",X),m&&p&&p({action:g,location:z.location,delta:0})}function Z(k){return Eg(k)}let z={get action(){return g},get location(){return i(f,v)},listen(k){if(p)throw new Error("A history only accepts one active listener");return f.addEventListener(Nm,E),p=k,()=>{f.removeEventListener(Nm,E),p=null}},createHref(k){return u(f,k)},createURL:Z,encodeLocation(k){let Y=Z(k);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:D,replace:Q,go(k){return v.go(k)}};return z}function Eg(i,u=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(s,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:qi(i);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function ay(i,u,s="/"){return Ag(i,u,s,!1)}function Ag(i,u,s,r){let f=typeof u=="string"?Rn(u):u,m=wa(f.pathname||"/",s);if(m==null)return null;let v=ly(i);Ng(v);let g=null;for(let p=0;g==null&&p<v.length;++p){let y=Hg(m);g=Dg(v[p],y,r)}return g}function ly(i,u=[],s=[],r="",f=!1){let m=(v,g,p=f,y)=>{let N={relativePath:y===void 0?v.path||"":y,caseSensitive:v.caseSensitive===!0,childrenIndex:g,route:v};if(N.relativePath.startsWith("/")){if(!N.relativePath.startsWith(r)&&p)return;Qe(N.relativePath.startsWith(r),`Absolute route path "${N.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),N.relativePath=N.relativePath.slice(r.length)}let E=sa([r,N.relativePath]),D=s.concat(N);v.children&&v.children.length>0&&(Qe(v.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${E}".`),ly(v.children,u,D,E,p)),!(v.path==null&&!v.index)&&u.push({path:E,score:wg(E,v.index),routesMeta:D})};return i.forEach((v,g)=>{var p;if(v.path===""||!((p=v.path)!=null&&p.includes("?")))m(v,g);else for(let y of ny(v.path))m(v,g,!0,y)}),u}function ny(i){let u=i.split("/");if(u.length===0)return[];let[s,...r]=u,f=s.endsWith("?"),m=s.replace(/\?$/,"");if(r.length===0)return f?[m,""]:[m];let v=ny(r.join("/")),g=[];return g.push(...v.map(p=>p===""?m:[m,p].join("/"))),f&&g.push(...v),g.map(p=>i.startsWith("/")&&p===""?"/":p)}function Ng(i){i.sort((u,s)=>u.score!==s.score?s.score-u.score:_g(u.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var Cg=/^:[\w-]+$/,Mg=3,jg=2,Og=1,zg=10,Rg=-2,jm=i=>i==="*";function wg(i,u){let s=i.split("/"),r=s.length;return s.some(jm)&&(r+=Rg),u&&(r+=jg),s.filter(f=>!jm(f)).reduce((f,m)=>f+(Cg.test(m)?Mg:m===""?Og:zg),r)}function _g(i,u){return i.length===u.length&&i.slice(0,-1).every((r,f)=>r===u[f])?i[i.length-1]-u[u.length-1]:0}function Dg(i,u,s=!1){let{routesMeta:r}=i,f={},m="/",v=[];for(let g=0;g<r.length;++g){let p=r[g],y=g===r.length-1,N=m==="/"?u:u.slice(m.length)||"/",E=mc({path:p.relativePath,caseSensitive:p.caseSensitive,end:y},N),D=p.route;if(!E&&y&&s&&!r[r.length-1].route.index&&(E=mc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},N)),!E)return null;Object.assign(f,E.params),v.push({params:f,pathname:sa([m,E.pathname]),pathnameBase:Gg(sa([m,E.pathnameBase])),route:D}),E.pathnameBase!=="/"&&(m=sa([m,E.pathnameBase]))}return v}function mc(i,u){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[s,r]=Ug(i.path,i.caseSensitive,i.end),f=u.match(s);if(!f)return null;let m=f[0],v=m.replace(/(.)\/+$/,"$1"),g=f.slice(1);return{params:r.reduce((y,{paramName:N,isOptional:E},D)=>{if(N==="*"){let Z=g[D]||"";v=m.slice(0,m.length-Z.length).replace(/(.)\/+$/,"$1")}const Q=g[D];return E&&!Q?y[N]=void 0:y[N]=(Q||"").replace(/%2F/g,"/"),y},{}),pathname:m,pathnameBase:v,pattern:i}}function Ug(i,u=!1,s=!0){Wt(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 r=[],f="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(v,g,p,y,N)=>{if(r.push({paramName:g,isOptional:p!=null}),p){let E=N.charAt(y+v.length);return E&&E!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),f+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?f+="\\/*$":i!==""&&i!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),r]}function Hg(i){try{return i.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Wt(!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 (${u}).`),i}}function wa(i,u){if(u==="/")return i;if(!i.toLowerCase().startsWith(u.toLowerCase()))return null;let s=u.endsWith("/")?u.length-1:u.length,r=i.charAt(s);return r&&r!=="/"?null:i.slice(s)||"/"}var qg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Lg(i,u="/"){let{pathname:s,search:r="",hash:f=""}=typeof i=="string"?Rn(i):i,m;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?m=Om(s.substring(1),"/"):m=Om(s,u)):m=u,{pathname:m,search:Yg(r),hash:Qg(f)}}function Om(i,u){let s=u.replace(/\/+$/,"").split("/");return i.split("/").forEach(f=>{f===".."?s.length>1&&s.pop():f!=="."&&s.push(f)}),s.length>1?s.join("/"):"/"}function Yr(i,u,s,r){return`Cannot include a '${i}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Bg(i){return i.filter((u,s)=>s===0||u.route.path&&u.route.path.length>0)}function ao(i){let u=Bg(i);return u.map((s,r)=>r===u.length-1?s.pathname:s.pathnameBase)}function pc(i,u,s,r=!1){let f;typeof i=="string"?f=Rn(i):(f={...i},Qe(!f.pathname||!f.pathname.includes("?"),Yr("?","pathname","search",f)),Qe(!f.pathname||!f.pathname.includes("#"),Yr("#","pathname","hash",f)),Qe(!f.search||!f.search.includes("#"),Yr("#","search","hash",f)));let m=i===""||f.pathname==="",v=m?"/":f.pathname,g;if(v==null)g=s;else{let E=u.length-1;if(!r&&v.startsWith("..")){let D=v.split("/");for(;D[0]==="..";)D.shift(),E-=1;f.pathname=D.join("/")}g=E>=0?u[E]:"/"}let p=Lg(f,g),y=v&&v!=="/"&&v.endsWith("/"),N=(m||v===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(y||N)&&(p.pathname+="/"),p}var sa=i=>i.join("/").replace(/\/\/+/g,"/"),Gg=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Yg=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Qg=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,kg=class{constructor(i,u,s,r=!1){this.status=i,this.statusText=u||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function Xg(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function Vg(i){return i.map(u=>u.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var iy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function uy(i,u){let s=i;if(typeof s!="string"||!qg.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,f=!1;if(iy)try{let m=new URL(window.location.href),v=s.startsWith("//")?new URL(m.protocol+s):new URL(s),g=wa(v.pathname,u);v.origin===m.origin&&g!=null?s=g+v.search+v.hash:f=!0}catch{Wt(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var cy=["POST","PUT","PATCH","DELETE"];new Set(cy);var Zg=["GET",...cy];new Set(Zg);var wn=x.createContext(null);wn.displayName="DataRouter";var gc=x.createContext(null);gc.displayName="DataRouterState";var Kg=x.createContext(!1),sy=x.createContext({isTransitioning:!1});sy.displayName="ViewTransition";var Jg=x.createContext(new Map);Jg.displayName="Fetchers";var $g=x.createContext(null);$g.displayName="Await";var _t=x.createContext(null);_t.displayName="Navigation";var ki=x.createContext(null);ki.displayName="Location";var Pt=x.createContext({outlet:null,matches:[],isDataRoute:!1});Pt.displayName="Route";var lo=x.createContext(null);lo.displayName="RouteError";var ry="REACT_ROUTER_ERROR",Fg="REDIRECT",Wg="ROUTE_ERROR_RESPONSE";function Pg(i){if(i.startsWith(`${ry}:${Fg}:{`))try{let u=JSON.parse(i.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function Ig(i){if(i.startsWith(`${ry}:${Wg}:{`))try{let u=JSON.parse(i.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new kg(u.status,u.statusText,u.data)}catch{}}function e1(i,{relative:u}={}){Qe(_n(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=x.useContext(_t),{hash:f,pathname:m,search:v}=Xi(i,{relative:u}),g=m;return s!=="/"&&(g=m==="/"?s:sa([s,m])),r.createHref({pathname:g,search:v,hash:f})}function _n(){return x.useContext(ki)!=null}function ra(){return Qe(_n(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(ki).location}var oy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fy(i){x.useContext(_t).static||x.useLayoutEffect(i)}function dy(){let{isDataRoute:i}=x.useContext(Pt);return i?h1():t1()}function t1(){Qe(_n(),"useNavigate() may be used only in the context of a <Router> component.");let i=x.useContext(wn),{basename:u,navigator:s}=x.useContext(_t),{matches:r}=x.useContext(Pt),{pathname:f}=ra(),m=JSON.stringify(ao(r)),v=x.useRef(!1);return fy(()=>{v.current=!0}),x.useCallback((p,y={})=>{if(Wt(v.current,oy),!v.current)return;if(typeof p=="number"){s.go(p);return}let N=pc(p,JSON.parse(m),f,y.relative==="path");i==null&&u!=="/"&&(N.pathname=N.pathname==="/"?u:sa([u,N.pathname])),(y.replace?s.replace:s.push)(N,y.state,y)},[u,s,m,f,i])}x.createContext(null);function l2(){let{matches:i}=x.useContext(Pt),u=i[i.length-1];return u?u.params:{}}function Xi(i,{relative:u}={}){let{matches:s}=x.useContext(Pt),{pathname:r}=ra(),f=JSON.stringify(ao(s));return x.useMemo(()=>pc(i,JSON.parse(f),r,u==="path"),[i,f,r,u])}function a1(i,u){return hy(i,u)}function hy(i,u,s){var k;Qe(_n(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=x.useContext(_t),{matches:f}=x.useContext(Pt),m=f[f.length-1],v=m?m.params:{},g=m?m.pathname:"/",p=m?m.pathnameBase:"/",y=m&&m.route;{let Y=y&&y.path||"";yy(g,!y||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${Y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
-
|
|
61
|
-
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let N=ra(),E;if(u){let Y=typeof u=="string"?Rn(u):u;Qe(p==="/"||((k=Y.pathname)==null?void 0:k.startsWith(p)),`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 "${p}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),E=Y}else E=N;let D=E.pathname||"/",Q=D;if(p!=="/"){let Y=p.replace(/^\//,"").split("/");Q="/"+D.replace(/^\//,"").split("/").slice(Y.length).join("/")}let Z=ay(i,{pathname:Q});Wt(y||Z!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Wt(Z==null||Z[Z.length-1].route.element!==void 0||Z[Z.length-1].route.Component!==void 0||Z[Z.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.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 z=c1(Z&&Z.map(Y=>Object.assign({},Y,{params:Object.assign({},v,Y.params),pathname:sa([p,r.encodeLocation?r.encodeLocation(Y.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?p:sa([p,r.encodeLocation?r.encodeLocation(Y.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),f,s);return u&&z?x.createElement(ki.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...E},navigationType:"POP"}},z):z}function l1(){let i=d1(),u=Xg(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),s=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},m={padding:"2px 4px",backgroundColor:r},v=null;return console.error("Error handled by React Router default ErrorBoundary:",i),v=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:m},"ErrorBoundary")," or"," ",x.createElement("code",{style:m},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},u),s?x.createElement("pre",{style:f},s):null,v)}var n1=x.createElement(l1,null),my=class extends x.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,u){return u.location!==i.location||u.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:u.error,location:u.location,revalidation:i.revalidation||u.revalidation}}componentDidCatch(i,u){this.props.onError?this.props.onError(i,u):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 s=Ig(i.digest);s&&(i=s)}let u=i!==void 0?x.createElement(Pt.Provider,{value:this.props.routeContext},x.createElement(lo.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?x.createElement(i1,{error:i},u):u}};my.contextType=Kg;var Qr=new WeakMap;function i1({children:i,error:u}){let{basename:s}=x.useContext(_t);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=Pg(u.digest);if(r){let f=Qr.get(u);if(f)throw f;let m=uy(r.location,s);if(iy&&!Qr.get(u))if(m.isExternal||r.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const v=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:r.replace}));throw Qr.set(u,v),v}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return i}function u1({routeContext:i,match:u,children:s}){let r=x.useContext(wn);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),x.createElement(Pt.Provider,{value:i},s)}function c1(i,u=[],s){let r=s==null?void 0:s.state;if(i==null){if(!r)return null;if(r.errors)i=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)i=r.matches;else return null}let f=i,m=r==null?void 0:r.errors;if(m!=null){let N=f.findIndex(E=>E.route.id&&(m==null?void 0:m[E.route.id])!==void 0);Qe(N>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),f=f.slice(0,Math.min(f.length,N+1))}let v=!1,g=-1;if(s&&r){v=r.renderFallback;for(let N=0;N<f.length;N++){let E=f[N];if((E.route.HydrateFallback||E.route.hydrateFallbackElement)&&(g=N),E.route.id){let{loaderData:D,errors:Q}=r,Z=E.route.loader&&!D.hasOwnProperty(E.route.id)&&(!Q||Q[E.route.id]===void 0);if(E.route.lazy||Z){s.isStatic&&(v=!0),g>=0?f=f.slice(0,g+1):f=[f[0]];break}}}}let p=s==null?void 0:s.onError,y=r&&p?(N,E)=>{var D,Q;p(N,{location:r.location,params:((Q=(D=r.matches)==null?void 0:D[0])==null?void 0:Q.params)??{},unstable_pattern:Vg(r.matches),errorInfo:E})}:void 0;return f.reduceRight((N,E,D)=>{let Q,Z=!1,z=null,k=null;r&&(Q=m&&E.route.id?m[E.route.id]:void 0,z=E.route.errorElement||n1,v&&(g<0&&D===0?(yy("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,k=null):g===D&&(Z=!0,k=E.route.hydrateFallbackElement||null)));let Y=u.concat(f.slice(0,D+1)),F=()=>{let B;return Q?B=z:Z?B=k:E.route.Component?B=x.createElement(E.route.Component,null):E.route.element?B=E.route.element:B=N,x.createElement(u1,{match:E,routeContext:{outlet:N,matches:Y,isDataRoute:r!=null},children:B})};return r&&(E.route.ErrorBoundary||E.route.errorElement||D===0)?x.createElement(my,{location:r.location,revalidation:r.revalidation,component:z,error:Q,children:F(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:y}):F()},null)}function no(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function s1(i){let u=x.useContext(wn);return Qe(u,no(i)),u}function r1(i){let u=x.useContext(gc);return Qe(u,no(i)),u}function o1(i){let u=x.useContext(Pt);return Qe(u,no(i)),u}function io(i){let u=o1(i),s=u.matches[u.matches.length-1];return Qe(s.route.id,`${i} can only be used on routes that contain a unique "id"`),s.route.id}function f1(){return io("useRouteId")}function d1(){var r;let i=x.useContext(lo),u=r1("useRouteError"),s=io("useRouteError");return i!==void 0?i:(r=u.errors)==null?void 0:r[s]}function h1(){let{router:i}=s1("useNavigate"),u=io("useNavigate"),s=x.useRef(!1);return fy(()=>{s.current=!0}),x.useCallback(async(f,m={})=>{Wt(s.current,oy),s.current&&(typeof f=="number"?await i.navigate(f):await i.navigate(f,{fromRouteId:u,...m}))},[i,u])}var zm={};function yy(i,u,s){!u&&!zm[i]&&(zm[i]=!0,Wt(!1,s))}x.memo(m1);function m1({routes:i,future:u,state:s,isStatic:r,onError:f}){return hy(i,void 0,{state:s,isStatic:r,onError:f})}function ft({to:i,replace:u,state:s,relative:r}){Qe(_n(),"<Navigate> may be used only in the context of a <Router> component.");let{static:f}=x.useContext(_t);Wt(!f,"<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}=x.useContext(Pt),{pathname:v}=ra(),g=dy(),p=pc(i,ao(m),v,r==="path"),y=JSON.stringify(p);return x.useEffect(()=>{g(JSON.parse(y),{replace:u,state:s,relative:r})},[g,y,r,u,s]),null}function tt(i){Qe(!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 y1({basename:i="/",children:u=null,location:s,navigationType:r="POP",navigator:f,static:m=!1,unstable_useTransitions:v}){Qe(!_n(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),p=x.useMemo(()=>({basename:g,navigator:f,static:m,unstable_useTransitions:v,future:{}}),[g,f,m,v]);typeof s=="string"&&(s=Rn(s));let{pathname:y="/",search:N="",hash:E="",state:D=null,key:Q="default",unstable_mask:Z}=s,z=x.useMemo(()=>{let k=wa(y,g);return k==null?null:{location:{pathname:k,search:N,hash:E,state:D,key:Q,unstable_mask:Z},navigationType:r}},[g,y,N,E,D,Q,r,Z]);return Wt(z!=null,`<Router basename="${g}"> is not able to match the URL "${y}${N}${E}" because it does not start with the basename, so the <Router> won't render anything.`),z==null?null:x.createElement(_t.Provider,{value:p},x.createElement(ki.Provider,{children:u,value:z}))}function p1({children:i,location:u}){return a1(Zr(i),u)}function Zr(i,u=[]){let s=[];return x.Children.forEach(i,(r,f)=>{if(!x.isValidElement(r))return;let m=[...u,f];if(r.type===x.Fragment){s.push.apply(s,Zr(r.props.children,m));return}Qe(r.type===tt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Qe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let v={id:r.props.id||m.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(v.children=Zr(r.props.children,m)),s.push(v)}),s}var dc="get",hc="application/x-www-form-urlencoded";function vc(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function g1(i){return vc(i)&&i.tagName.toLowerCase()==="button"}function v1(i){return vc(i)&&i.tagName.toLowerCase()==="form"}function b1(i){return vc(i)&&i.tagName.toLowerCase()==="input"}function x1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function S1(i,u){return i.button===0&&(!u||u==="_self")&&!x1(i)}var rc=null;function T1(){if(rc===null)try{new FormData(document.createElement("form"),0),rc=!1}catch{rc=!0}return rc}var E1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function kr(i){return i!=null&&!E1.has(i)?(Wt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hc}"`),null):i}function A1(i,u){let s,r,f,m,v;if(v1(i)){let g=i.getAttribute("action");r=g?wa(g,u):null,s=i.getAttribute("method")||dc,f=kr(i.getAttribute("enctype"))||hc,m=new FormData(i)}else if(g1(i)||b1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||g.getAttribute("action");if(r=p?wa(p,u):null,s=i.getAttribute("formmethod")||g.getAttribute("method")||dc,f=kr(i.getAttribute("formenctype"))||kr(g.getAttribute("enctype"))||hc,m=new FormData(g,i),!T1()){let{name:y,type:N,value:E}=i;if(N==="image"){let D=y?`${y}.`:"";m.append(`${D}x`,"0"),m.append(`${D}y`,"0")}else y&&m.append(y,E)}}else{if(vc(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=dc,r=null,f=hc,v=i}return m&&f==="text/plain"&&(v=m,m=void 0),{action:r,method:s.toLowerCase(),encType:f,formData:m,body:v}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function uo(i,u){if(i===!1||i===null||typeof i>"u")throw new Error(u)}function N1(i,u,s,r){let f=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return s?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:u&&wa(f.pathname,u)==="/"?f.pathname=`${u.replace(/\/$/,"")}/_root.${r}`:f.pathname=`${f.pathname.replace(/\/$/,"")}.${r}`,f}async function C1(i,u){if(i.id in u)return u[i.id];try{let s=await import(i.module);return u[i.id]=s,s}catch(s){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function M1(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 j1(i,u,s){let r=await Promise.all(i.map(async f=>{let m=u.routes[f.route.id];if(m){let v=await C1(m,s);return v.links?v.links():[]}return[]}));return w1(r.flat(1).filter(M1).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Rm(i,u,s,r,f,m){let v=(p,y)=>s[y]?p.route.id!==s[y].route.id:!0,g=(p,y)=>{var N;return s[y].pathname!==p.pathname||((N=s[y].route.path)==null?void 0:N.endsWith("*"))&&s[y].params["*"]!==p.params["*"]};return m==="assets"?u.filter((p,y)=>v(p,y)||g(p,y)):m==="data"?u.filter((p,y)=>{var E;let N=r.routes[p.route.id];if(!N||!N.hasLoader)return!1;if(v(p,y)||g(p,y))return!0;if(p.route.shouldRevalidate){let D=p.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((E=s[0])==null?void 0:E.params)||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof D=="boolean")return D}return!0}):[]}function O1(i,u,{includeHydrateFallback:s}={}){return z1(i.map(r=>{let f=u.routes[r.route.id];if(!f)return[];let m=[f.module];return f.clientActionModule&&(m=m.concat(f.clientActionModule)),f.clientLoaderModule&&(m=m.concat(f.clientLoaderModule)),s&&f.hydrateFallbackModule&&(m=m.concat(f.hydrateFallbackModule)),f.imports&&(m=m.concat(f.imports)),m}).flat(1))}function z1(i){return[...new Set(i)]}function R1(i){let u={},s=Object.keys(i).sort();for(let r of s)u[r]=i[r];return u}function w1(i,u){let s=new Set;return new Set(u),i.reduce((r,f)=>{let m=JSON.stringify(R1(f));return s.has(m)||(s.add(m),r.push({key:m,link:f})),r},[])}function py(){let i=x.useContext(wn);return uo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function _1(){let i=x.useContext(gc);return uo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var co=x.createContext(void 0);co.displayName="FrameworkContext";function gy(){let i=x.useContext(co);return uo(i,"You must render this element inside a <HydratedRouter> element"),i}function D1(i,u){let s=x.useContext(co),[r,f]=x.useState(!1),[m,v]=x.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:y,onMouseLeave:N,onTouchStart:E}=u,D=x.useRef(null);x.useEffect(()=>{if(i==="render"&&v(!0),i==="viewport"){let z=Y=>{Y.forEach(F=>{v(F.isIntersecting)})},k=new IntersectionObserver(z,{threshold:.5});return D.current&&k.observe(D.current),()=>{k.disconnect()}}},[i]),x.useEffect(()=>{if(r){let z=setTimeout(()=>{v(!0)},100);return()=>{clearTimeout(z)}}},[r]);let Q=()=>{f(!0)},Z=()=>{f(!1),v(!1)};return s?i!=="intent"?[m,D,{}]:[m,D,{onFocus:Ui(g,Q),onBlur:Ui(p,Z),onMouseEnter:Ui(y,Q),onMouseLeave:Ui(N,Z),onTouchStart:Ui(E,Q)}]:[!1,D,{}]}function Ui(i,u){return s=>{i&&i(s),s.defaultPrevented||u(s)}}function U1({page:i,...u}){let{router:s}=py(),r=x.useMemo(()=>ay(s.routes,i,s.basename),[s.routes,i,s.basename]);return r?x.createElement(q1,{page:i,matches:r,...u}):null}function H1(i){let{manifest:u,routeModules:s}=gy(),[r,f]=x.useState([]);return x.useEffect(()=>{let m=!1;return j1(i,u,s).then(v=>{m||f(v)}),()=>{m=!0}},[i,u,s]),r}function q1({page:i,matches:u,...s}){let r=ra(),{future:f,manifest:m,routeModules:v}=gy(),{basename:g}=py(),{loaderData:p,matches:y}=_1(),N=x.useMemo(()=>Rm(i,u,y,m,r,"data"),[i,u,y,m,r]),E=x.useMemo(()=>Rm(i,u,y,m,r,"assets"),[i,u,y,m,r]),D=x.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let z=new Set,k=!1;if(u.forEach(F=>{var X;let B=m.routes[F.route.id];!B||!B.hasLoader||(!N.some(ne=>ne.route.id===F.route.id)&&F.route.id in p&&((X=v[F.route.id])!=null&&X.shouldRevalidate)||B.hasClientLoader?k=!0:z.add(F.route.id))}),z.size===0)return[];let Y=N1(i,g,f.unstable_trailingSlashAwareDataRequests,"data");return k&&z.size>0&&Y.searchParams.set("_routes",u.filter(F=>z.has(F.route.id)).map(F=>F.route.id).join(",")),[Y.pathname+Y.search]},[g,f.unstable_trailingSlashAwareDataRequests,p,r,m,N,u,i,v]),Q=x.useMemo(()=>O1(E,m),[E,m]),Z=H1(E);return x.createElement(x.Fragment,null,D.map(z=>x.createElement("link",{key:z,rel:"prefetch",as:"fetch",href:z,...s})),Q.map(z=>x.createElement("link",{key:z,rel:"modulepreload",href:z,...s})),Z.map(({key:z,link:k})=>x.createElement("link",{key:z,nonce:s.nonce,...k,crossOrigin:k.crossOrigin??s.crossOrigin})))}function L1(...i){return u=>{i.forEach(s=>{typeof s=="function"?s(u):s!=null&&(s.current=u)})}}var B1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{B1&&(window.__reactRouterVersion="7.13.1")}catch{}function G1({basename:i,children:u,unstable_useTransitions:s,window:r}){let f=x.useRef();f.current==null&&(f.current=xg({window:r,v5Compat:!0}));let m=f.current,[v,g]=x.useState({action:m.action,location:m.location}),p=x.useCallback(y=>{s===!1?g(y):x.startTransition(()=>g(y))},[s]);return x.useLayoutEffect(()=>m.listen(p),[m,p]),x.createElement(y1,{basename:i,children:u,location:v.location,navigationType:v.action,navigator:m,unstable_useTransitions:s})}var vy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bc=x.forwardRef(function({onClick:u,discover:s="render",prefetch:r="none",relative:f,reloadDocument:m,replace:v,unstable_mask:g,state:p,target:y,to:N,preventScrollReset:E,viewTransition:D,unstable_defaultShouldRevalidate:Q,...Z},z){let{basename:k,navigator:Y,unstable_useTransitions:F}=x.useContext(_t),B=typeof N=="string"&&vy.test(N),X=uy(N,k);N=X.to;let ne=e1(N,{relative:f}),ee=ra(),W=null;if(g){let Me=pc(g,[],ee.unstable_mask?ee.unstable_mask.pathname:"/",!0);k!=="/"&&(Me.pathname=Me.pathname==="/"?k:sa([k,Me.pathname])),W=Y.createHref(Me)}let[fe,te,Le]=D1(r,Z),_e=X1(N,{replace:v,unstable_mask:g,state:p,target:y,preventScrollReset:E,relative:f,viewTransition:D,unstable_defaultShouldRevalidate:Q,unstable_useTransitions:F});function Be(Me){u&&u(Me),Me.defaultPrevented||_e(Me)}let Ge=!(X.isExternal||m),Ae=x.createElement("a",{...Z,...Le,href:(Ge?W:void 0)||X.absoluteURL||ne,onClick:Ge?Be:u,ref:L1(z,te),target:y,"data-discover":!B&&s==="render"?"true":void 0});return fe&&!B?x.createElement(x.Fragment,null,Ae,x.createElement(U1,{page:ne})):Ae});bc.displayName="Link";var Y1=x.forwardRef(function({"aria-current":u="page",caseSensitive:s=!1,className:r="",end:f=!1,style:m,to:v,viewTransition:g,children:p,...y},N){let E=Xi(v,{relative:y.relative}),D=ra(),Q=x.useContext(gc),{navigator:Z,basename:z}=x.useContext(_t),k=Q!=null&&$1(E)&&g===!0,Y=Z.encodeLocation?Z.encodeLocation(E).pathname:E.pathname,F=D.pathname,B=Q&&Q.navigation&&Q.navigation.location?Q.navigation.location.pathname:null;s||(F=F.toLowerCase(),B=B?B.toLowerCase():null,Y=Y.toLowerCase()),B&&z&&(B=wa(B,z)||B);const X=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let ne=F===Y||!f&&F.startsWith(Y)&&F.charAt(X)==="/",ee=B!=null&&(B===Y||!f&&B.startsWith(Y)&&B.charAt(Y.length)==="/"),W={isActive:ne,isPending:ee,isTransitioning:k},fe=ne?u:void 0,te;typeof r=="function"?te=r(W):te=[r,ne?"active":null,ee?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let Le=typeof m=="function"?m(W):m;return x.createElement(bc,{...y,"aria-current":fe,className:te,ref:N,style:Le,to:v,viewTransition:g},typeof p=="function"?p(W):p)});Y1.displayName="NavLink";var Q1=x.forwardRef(({discover:i="render",fetcherKey:u,navigate:s,reloadDocument:r,replace:f,state:m,method:v=dc,action:g,onSubmit:p,relative:y,preventScrollReset:N,viewTransition:E,unstable_defaultShouldRevalidate:D,...Q},Z)=>{let{unstable_useTransitions:z}=x.useContext(_t),k=K1(),Y=J1(g,{relative:y}),F=v.toLowerCase()==="get"?"get":"post",B=typeof g=="string"&&vy.test(g),X=ne=>{if(p&&p(ne),ne.defaultPrevented)return;ne.preventDefault();let ee=ne.nativeEvent.submitter,W=(ee==null?void 0:ee.getAttribute("formmethod"))||v,fe=()=>k(ee||ne.currentTarget,{fetcherKey:u,method:W,navigate:s,replace:f,state:m,relative:y,preventScrollReset:N,viewTransition:E,unstable_defaultShouldRevalidate:D});z&&s!==!1?x.startTransition(()=>fe()):fe()};return x.createElement("form",{ref:Z,method:F,action:Y,onSubmit:r?p:X,...Q,"data-discover":!B&&i==="render"?"true":void 0})});Q1.displayName="Form";function k1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function by(i){let u=x.useContext(wn);return Qe(u,k1(i)),u}function X1(i,{target:u,replace:s,unstable_mask:r,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:y}={}){let N=dy(),E=ra(),D=Xi(i,{relative:v});return x.useCallback(Q=>{if(S1(Q,u)){Q.preventDefault();let Z=s!==void 0?s:qi(E)===qi(D),z=()=>N(i,{replace:Z,unstable_mask:r,state:f,preventScrollReset:m,relative:v,viewTransition:g,unstable_defaultShouldRevalidate:p});y?x.startTransition(()=>z()):z()}},[E,N,D,s,r,f,u,i,m,v,g,p,y])}var V1=0,Z1=()=>`__${String(++V1)}__`;function K1(){let{router:i}=by("useSubmit"),{basename:u}=x.useContext(_t),s=f1(),r=i.fetch,f=i.navigate;return x.useCallback(async(m,v={})=>{let{action:g,method:p,encType:y,formData:N,body:E}=A1(m,u);if(v.navigate===!1){let D=v.fetcherKey||Z1();await r(D,s,v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:N,body:E,formMethod:v.method||p,formEncType:v.encType||y,flushSync:v.flushSync})}else await f(v.action||g,{unstable_defaultShouldRevalidate:v.unstable_defaultShouldRevalidate,preventScrollReset:v.preventScrollReset,formData:N,body:E,formMethod:v.method||p,formEncType:v.encType||y,replace:v.replace,state:v.state,fromRouteId:s,flushSync:v.flushSync,viewTransition:v.viewTransition})},[r,f,u,s])}function J1(i,{relative:u}={}){let{basename:s}=x.useContext(_t),r=x.useContext(Pt);Qe(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),m={...Xi(i||".",{relative:u})},v=ra();if(i==null){m.search=v.search;let g=new URLSearchParams(m.search),p=g.getAll("index");if(p.some(N=>N==="")){g.delete("index"),p.filter(E=>E).forEach(E=>g.append("index",E));let N=g.toString();m.search=N?`?${N}`:""}}return(!i||i===".")&&f.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(m.pathname=m.pathname==="/"?s:sa([s,m.pathname])),qi(m)}function $1(i,{relative:u}={}){let s=x.useContext(sy);Qe(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=by("useViewTransitionState"),f=Xi(i,{relative:u});if(!s.isTransitioning)return!1;let m=wa(s.currentLocation.pathname,r)||s.currentLocation.pathname,v=wa(s.nextLocation.pathname,r)||s.nextLocation.pathname;return mc(f.pathname,v)!=null||mc(f.pathname,m)!=null}var xc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(i){return this.listeners.add(i),this.onSubscribe(),()=>{this.listeners.delete(i),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ol,il,En,Km,F1=(Km=class extends xc{constructor(){super();xe(this,Ol);xe(this,il);xe(this,En);ce(this,En,u=>{if(typeof window<"u"&&window.addEventListener){const s=()=>u();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){U(this,il)||this.setEventListener(U(this,En))}onUnsubscribe(){var u;this.hasListeners()||((u=U(this,il))==null||u.call(this),ce(this,il,void 0))}setEventListener(u){var s;ce(this,En,u),(s=U(this,il))==null||s.call(this),ce(this,il,u(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(u){U(this,Ol)!==u&&(ce(this,Ol,u),this.onFocus())}onFocus(){const u=this.isFocused();this.listeners.forEach(s=>{s(u)})}isFocused(){var u;return typeof U(this,Ol)=="boolean"?U(this,Ol):((u=globalThis.document)==null?void 0:u.visibilityState)!=="hidden"}},Ol=new WeakMap,il=new WeakMap,En=new WeakMap,Km),xy=new F1,W1={setTimeout:(i,u)=>setTimeout(i,u),clearTimeout:i=>clearTimeout(i),setInterval:(i,u)=>setInterval(i,u),clearInterval:i=>clearInterval(i)},ul,eo,Jm,P1=(Jm=class{constructor(){xe(this,ul,W1);xe(this,eo,!1)}setTimeoutProvider(i){ce(this,ul,i)}setTimeout(i,u){return U(this,ul).setTimeout(i,u)}clearTimeout(i){U(this,ul).clearTimeout(i)}setInterval(i,u){return U(this,ul).setInterval(i,u)}clearInterval(i){U(this,ul).clearInterval(i)}},ul=new WeakMap,eo=new WeakMap,Jm),Kr=new P1;function I1(i){setTimeout(i,0)}var ev=typeof window>"u"||"Deno"in globalThis;function Jt(){}function tv(i,u){return typeof i=="function"?i(u):i}function av(i){return typeof i=="number"&&i>=0&&i!==1/0}function lv(i,u){return Math.max(i+(u||0)-Date.now(),0)}function Jr(i,u){return typeof i=="function"?i(u):i}function nv(i,u){return typeof i=="function"?i(u):i}function wm(i,u){const{type:s="all",exact:r,fetchStatus:f,predicate:m,queryKey:v,stale:g}=i;if(v){if(r){if(u.queryHash!==so(v,u.options))return!1}else if(!Bi(u.queryKey,v))return!1}if(s!=="all"){const p=u.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||f&&f!==u.state.fetchStatus||m&&!m(u))}function _m(i,u){const{exact:s,status:r,predicate:f,mutationKey:m}=i;if(m){if(!u.options.mutationKey)return!1;if(s){if(Li(u.options.mutationKey)!==Li(m))return!1}else if(!Bi(u.options.mutationKey,m))return!1}return!(r&&u.state.status!==r||f&&!f(u))}function so(i,u){return((u==null?void 0:u.queryKeyHashFn)||Li)(i)}function Li(i){return JSON.stringify(i,(u,s)=>$r(s)?Object.keys(s).sort().reduce((r,f)=>(r[f]=s[f],r),{}):s)}function Bi(i,u){return i===u?!0:typeof i!=typeof u?!1:i&&u&&typeof i=="object"&&typeof u=="object"?Object.keys(u).every(s=>Bi(i[s],u[s])):!1}var iv=Object.prototype.hasOwnProperty;function Sy(i,u,s=0){if(i===u)return i;if(s>500)return u;const r=Dm(i)&&Dm(u);if(!r&&!($r(i)&&$r(u)))return u;const m=(r?i:Object.keys(i)).length,v=r?u:Object.keys(u),g=v.length,p=r?new Array(g):{};let y=0;for(let N=0;N<g;N++){const E=r?N:v[N],D=i[E],Q=u[E];if(D===Q){p[E]=D,(r?N<m:iv.call(i,E))&&y++;continue}if(D===null||Q===null||typeof D!="object"||typeof Q!="object"){p[E]=Q;continue}const Z=Sy(D,Q,s+1);p[E]=Z,Z===D&&y++}return m===g&&y===m?i:p}function Dm(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function $r(i){if(!Um(i))return!1;const u=i.constructor;if(u===void 0)return!0;const s=u.prototype;return!(!Um(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(i)!==Object.prototype)}function Um(i){return Object.prototype.toString.call(i)==="[object Object]"}function uv(i){return new Promise(u=>{Kr.setTimeout(u,i)})}function cv(i,u,s){return typeof s.structuralSharing=="function"?s.structuralSharing(i,u):s.structuralSharing!==!1?Sy(i,u):u}function sv(i,u,s=0){const r=[...i,u];return s&&r.length>s?r.slice(1):r}function rv(i,u,s=0){const r=[u,...i];return s&&r.length>s?r.slice(0,-1):r}var ro=Symbol();function Ty(i,u){return!i.queryFn&&(u!=null&&u.initialPromise)?()=>u.initialPromise:!i.queryFn||i.queryFn===ro?()=>Promise.reject(new Error(`Missing queryFn: '${i.queryHash}'`)):i.queryFn}function ov(i,u,s){let r=!1,f;return Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(f??(f=u()),r||(r=!0,f.aborted?s():f.addEventListener("abort",s,{once:!0})),f)}),i}var Ey=(()=>{let i=()=>ev;return{isServer(){return i()},setIsServer(u){i=u}}})();function fv(){let i,u;const s=new Promise((f,m)=>{i=f,u=m});s.status="pending",s.catch(()=>{});function r(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{r({status:"fulfilled",value:f}),i(f)},s.reject=f=>{r({status:"rejected",reason:f}),u(f)},s}var dv=I1;function hv(){let i=[],u=0,s=g=>{g()},r=g=>{g()},f=dv;const m=g=>{u?i.push(g):f(()=>{s(g)})},v=()=>{const g=i;i=[],g.length&&f(()=>{r(()=>{g.forEach(p=>{s(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||v()}return p},batchCalls:g=>(...p)=>{m(()=>{g(...p)})},schedule:m,setNotifyFunction:g=>{s=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{f=g}}}var yt=hv(),An,cl,Nn,$m,mv=($m=class extends xc{constructor(){super();xe(this,An,!0);xe(this,cl);xe(this,Nn);ce(this,Nn,u=>{if(typeof window<"u"&&window.addEventListener){const s=()=>u(!0),r=()=>u(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){U(this,cl)||this.setEventListener(U(this,Nn))}onUnsubscribe(){var u;this.hasListeners()||((u=U(this,cl))==null||u.call(this),ce(this,cl,void 0))}setEventListener(u){var s;ce(this,Nn,u),(s=U(this,cl))==null||s.call(this),ce(this,cl,u(this.setOnline.bind(this)))}setOnline(u){U(this,An)!==u&&(ce(this,An,u),this.listeners.forEach(r=>{r(u)}))}isOnline(){return U(this,An)}},An=new WeakMap,cl=new WeakMap,Nn=new WeakMap,$m),yc=new mv;function yv(i){return Math.min(1e3*2**i,3e4)}function Ay(i){return(i??"online")==="online"?yc.isOnline():!0}var Fr=class extends Error{constructor(i){super("CancelledError"),this.revert=i==null?void 0:i.revert,this.silent=i==null?void 0:i.silent}};function Ny(i){let u=!1,s=0,r;const f=fv(),m=()=>f.status!=="pending",v=z=>{var k;if(!m()){const Y=new Fr(z);D(Y),(k=i.onCancel)==null||k.call(i,Y)}},g=()=>{u=!0},p=()=>{u=!1},y=()=>xy.isFocused()&&(i.networkMode==="always"||yc.isOnline())&&i.canRun(),N=()=>Ay(i.networkMode)&&i.canRun(),E=z=>{m()||(r==null||r(),f.resolve(z))},D=z=>{m()||(r==null||r(),f.reject(z))},Q=()=>new Promise(z=>{var k;r=Y=>{(m()||y())&&z(Y)},(k=i.onPause)==null||k.call(i)}).then(()=>{var z;r=void 0,m()||(z=i.onContinue)==null||z.call(i)}),Z=()=>{if(m())return;let z;const k=s===0?i.initialPromise:void 0;try{z=k??i.fn()}catch(Y){z=Promise.reject(Y)}Promise.resolve(z).then(E).catch(Y=>{var ee;if(m())return;const F=i.retry??(Ey.isServer()?0:3),B=i.retryDelay??yv,X=typeof B=="function"?B(s,Y):B,ne=F===!0||typeof F=="number"&&s<F||typeof F=="function"&&F(s,Y);if(u||!ne){D(Y);return}s++,(ee=i.onFail)==null||ee.call(i,s,Y),uv(X).then(()=>y()?void 0:Q()).then(()=>{u?D(Y):Z()})})};return{promise:f,status:()=>f.status,cancel:v,continue:()=>(r==null||r(),f),cancelRetry:g,continueRetry:p,canStart:N,start:()=>(N()?Z():Q().then(Z),f)}}var zl,Fm,Cy=(Fm=class{constructor(){xe(this,zl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),av(this.gcTime)&&ce(this,zl,Kr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(i){this.gcTime=Math.max(this.gcTime||0,i??(Ey.isServer()?1/0:300*1e3))}clearGcTimeout(){U(this,zl)!==void 0&&(Kr.clearTimeout(U(this,zl)),ce(this,zl,void 0))}},zl=new WeakMap,Fm),Rl,Cn,Xt,wl,nt,Gi,_l,wt,My,za,Wm,pv=(Wm=class extends Cy{constructor(u){super();xe(this,wt);xe(this,Rl);xe(this,Cn);xe(this,Xt);xe(this,wl);xe(this,nt);xe(this,Gi);xe(this,_l);ce(this,_l,!1),ce(this,Gi,u.defaultOptions),this.setOptions(u.options),this.observers=[],ce(this,wl,u.client),ce(this,Xt,U(this,wl).getQueryCache()),this.queryKey=u.queryKey,this.queryHash=u.queryHash,ce(this,Rl,qm(this.options)),this.state=u.state??U(this,Rl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var u;return(u=U(this,nt))==null?void 0:u.promise}setOptions(u){if(this.options={...U(this,Gi),...u},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=qm(this.options);s.data!==void 0&&(this.setState(Hm(s.data,s.dataUpdatedAt)),ce(this,Rl,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Xt).remove(this)}setData(u,s){const r=cv(this.state.data,u,this.options);return ot(this,wt,za).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(u,s){ot(this,wt,za).call(this,{type:"setState",state:u,setStateOptions:s})}cancel(u){var r,f;const s=(r=U(this,nt))==null?void 0:r.promise;return(f=U(this,nt))==null||f.cancel(u),s?s.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,Rl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(u=>nv(u.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ro||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(u=>Jr(u.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(u=>u.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(u=0){return this.state.data===void 0?!0:u==="static"?!1:this.state.isInvalidated?!0:!lv(this.state.dataUpdatedAt,u)}onFocus(){var s;const u=this.observers.find(r=>r.shouldFetchOnWindowFocus());u==null||u.refetch({cancelRefetch:!1}),(s=U(this,nt))==null||s.continue()}onOnline(){var s;const u=this.observers.find(r=>r.shouldFetchOnReconnect());u==null||u.refetch({cancelRefetch:!1}),(s=U(this,nt))==null||s.continue()}addObserver(u){this.observers.includes(u)||(this.observers.push(u),this.clearGcTimeout(),U(this,Xt).notify({type:"observerAdded",query:this,observer:u}))}removeObserver(u){this.observers.includes(u)&&(this.observers=this.observers.filter(s=>s!==u),this.observers.length||(U(this,nt)&&(U(this,_l)||ot(this,wt,My).call(this)?U(this,nt).cancel({revert:!0}):U(this,nt).cancelRetry()),this.scheduleGc()),U(this,Xt).notify({type:"observerRemoved",query:this,observer:u}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,wt,za).call(this,{type:"invalidate"})}async fetch(u,s){var p,y,N,E,D,Q,Z,z,k,Y,F,B;if(this.state.fetchStatus!=="idle"&&((p=U(this,nt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(U(this,nt))return U(this,nt).continueRetry(),U(this,nt).promise}if(u&&this.setOptions(u),!this.options.queryFn){const X=this.observers.find(ne=>ne.options.queryFn);X&&this.setOptions(X.options)}const r=new AbortController,f=X=>{Object.defineProperty(X,"signal",{enumerable:!0,get:()=>(ce(this,_l,!0),r.signal)})},m=()=>{const X=Ty(this.options,s),ee=(()=>{const W={client:U(this,wl),queryKey:this.queryKey,meta:this.meta};return f(W),W})();return ce(this,_l,!1),this.options.persister?this.options.persister(X,ee,this):X(ee)},g=(()=>{const X={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:U(this,wl),state:this.state,fetchFn:m};return f(X),X})();(y=this.options.behavior)==null||y.onFetch(g,this),ce(this,Cn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((N=g.fetchOptions)==null?void 0:N.meta))&&ot(this,wt,za).call(this,{type:"fetch",meta:(E=g.fetchOptions)==null?void 0:E.meta}),ce(this,nt,Ny({initialPromise:s==null?void 0:s.initialPromise,fn:g.fetchFn,onCancel:X=>{X instanceof Fr&&X.revert&&this.setState({...U(this,Cn),fetchStatus:"idle"}),r.abort()},onFail:(X,ne)=>{ot(this,wt,za).call(this,{type:"failed",failureCount:X,error:ne})},onPause:()=>{ot(this,wt,za).call(this,{type:"pause"})},onContinue:()=>{ot(this,wt,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const X=await U(this,nt).start();if(X===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(X),(Q=(D=U(this,Xt).config).onSuccess)==null||Q.call(D,X,this),(z=(Z=U(this,Xt).config).onSettled)==null||z.call(Z,X,this.state.error,this),X}catch(X){if(X instanceof Fr){if(X.silent)return U(this,nt).promise;if(X.revert){if(this.state.data===void 0)throw X;return this.state.data}}throw ot(this,wt,za).call(this,{type:"error",error:X}),(Y=(k=U(this,Xt).config).onError)==null||Y.call(k,X,this),(B=(F=U(this,Xt).config).onSettled)==null||B.call(F,this.state.data,X,this),X}finally{this.scheduleGc()}}},Rl=new WeakMap,Cn=new WeakMap,Xt=new WeakMap,wl=new WeakMap,nt=new WeakMap,Gi=new WeakMap,_l=new WeakMap,wt=new WeakSet,My=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(u){const s=r=>{switch(u.type){case"failed":return{...r,fetchFailureCount:u.failureCount,fetchFailureReason:u.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...gv(r.data,this.options),fetchMeta:u.meta??null};case"success":const f={...r,...Hm(u.data,u.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!u.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Cn,u.manual?f:void 0),f;case"error":const m=u.error;return{...r,error:m,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...u.state}}};this.state=s(this.state),yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,Xt).notify({query:this,type:"updated",action:u})})},Wm);function gv(i,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ay(u.networkMode)?"fetching":"paused",...i===void 0&&{error:null,status:"pending"}}}function Hm(i,u){return{data:i,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function qm(i){const u=typeof i.initialData=="function"?i.initialData():i.initialData,s=u!==void 0,r=s?typeof i.initialDataUpdatedAt=="function"?i.initialDataUpdatedAt():i.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function Lm(i){return{onFetch:(u,s)=>{var N,E,D,Q,Z;const r=u.options,f=(D=(E=(N=u.fetchOptions)==null?void 0:N.meta)==null?void 0:E.fetchMore)==null?void 0:D.direction,m=((Q=u.state.data)==null?void 0:Q.pages)||[],v=((Z=u.state.data)==null?void 0:Z.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let z=!1;const k=B=>{ov(B,()=>u.signal,()=>z=!0)},Y=Ty(u.options,u.fetchOptions),F=async(B,X,ne)=>{if(z)return Promise.reject();if(X==null&&B.pages.length)return Promise.resolve(B);const W=(()=>{const _e={client:u.client,queryKey:u.queryKey,pageParam:X,direction:ne?"backward":"forward",meta:u.options.meta};return k(_e),_e})(),fe=await Y(W),{maxPages:te}=u.options,Le=ne?rv:sv;return{pages:Le(B.pages,fe,te),pageParams:Le(B.pageParams,X,te)}};if(f&&m.length){const B=f==="backward",X=B?vv:Bm,ne={pages:m,pageParams:v},ee=X(r,ne);g=await F(ne,ee,B)}else{const B=i??m.length;do{const X=p===0?v[0]??r.initialPageParam:Bm(r,g);if(p>0&&X==null)break;g=await F(g,X),p++}while(p<B)}return g};u.options.persister?u.fetchFn=()=>{var z,k;return(k=(z=u.options).persister)==null?void 0:k.call(z,y,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},s)}:u.fetchFn=y}}}function Bm(i,{pages:u,pageParams:s}){const r=u.length-1;return u.length>0?i.getNextPageParam(u[r],u,s[r],s):void 0}function vv(i,{pages:u,pageParams:s}){var r;return u.length>0?(r=i.getPreviousPageParam)==null?void 0:r.call(i,u[0],u,s[0],s):void 0}var Yi,ia,ht,Dl,ua,nl,Pm,bv=(Pm=class extends Cy{constructor(u){super();xe(this,ua);xe(this,Yi);xe(this,ia);xe(this,ht);xe(this,Dl);ce(this,Yi,u.client),this.mutationId=u.mutationId,ce(this,ht,u.mutationCache),ce(this,ia,[]),this.state=u.state||xv(),this.setOptions(u.options),this.scheduleGc()}setOptions(u){this.options=u,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(u){U(this,ia).includes(u)||(U(this,ia).push(u),this.clearGcTimeout(),U(this,ht).notify({type:"observerAdded",mutation:this,observer:u}))}removeObserver(u){ce(this,ia,U(this,ia).filter(s=>s!==u)),this.scheduleGc(),U(this,ht).notify({type:"observerRemoved",mutation:this,observer:u})}optionalRemove(){U(this,ia).length||(this.state.status==="pending"?this.scheduleGc():U(this,ht).remove(this))}continue(){var u;return((u=U(this,Dl))==null?void 0:u.continue())??this.execute(this.state.variables)}async execute(u){var v,g,p,y,N,E,D,Q,Z,z,k,Y,F,B,X,ne,ee,W;const s=()=>{ot(this,ua,nl).call(this,{type:"continue"})},r={client:U(this,Yi),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,Dl,Ny({fn:()=>this.options.mutationFn?this.options.mutationFn(u,r):Promise.reject(new Error("No mutationFn found")),onFail:(fe,te)=>{ot(this,ua,nl).call(this,{type:"failed",failureCount:fe,error:te})},onPause:()=>{ot(this,ua,nl).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,ht).canRun(this)}));const f=this.state.status==="pending",m=!U(this,Dl).canStart();try{if(f)s();else{ot(this,ua,nl).call(this,{type:"pending",variables:u,isPaused:m}),U(this,ht).config.onMutate&&await U(this,ht).config.onMutate(u,this,r);const te=await((g=(v=this.options).onMutate)==null?void 0:g.call(v,u,r));te!==this.state.context&&ot(this,ua,nl).call(this,{type:"pending",context:te,variables:u,isPaused:m})}const fe=await U(this,Dl).start();return await((y=(p=U(this,ht).config).onSuccess)==null?void 0:y.call(p,fe,u,this.state.context,this,r)),await((E=(N=this.options).onSuccess)==null?void 0:E.call(N,fe,u,this.state.context,r)),await((Q=(D=U(this,ht).config).onSettled)==null?void 0:Q.call(D,fe,null,this.state.variables,this.state.context,this,r)),await((z=(Z=this.options).onSettled)==null?void 0:z.call(Z,fe,null,u,this.state.context,r)),ot(this,ua,nl).call(this,{type:"success",data:fe}),fe}catch(fe){try{await((Y=(k=U(this,ht).config).onError)==null?void 0:Y.call(k,fe,u,this.state.context,this,r))}catch(te){Promise.reject(te)}try{await((B=(F=this.options).onError)==null?void 0:B.call(F,fe,u,this.state.context,r))}catch(te){Promise.reject(te)}try{await((ne=(X=U(this,ht).config).onSettled)==null?void 0:ne.call(X,void 0,fe,this.state.variables,this.state.context,this,r))}catch(te){Promise.reject(te)}try{await((W=(ee=this.options).onSettled)==null?void 0:W.call(ee,void 0,fe,u,this.state.context,r))}catch(te){Promise.reject(te)}throw ot(this,ua,nl).call(this,{type:"error",error:fe}),fe}finally{U(this,ht).runNext(this)}}},Yi=new WeakMap,ia=new WeakMap,ht=new WeakMap,Dl=new WeakMap,ua=new WeakSet,nl=function(u){const s=r=>{switch(u.type){case"failed":return{...r,failureCount:u.failureCount,failureReason:u.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:u.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:u.isPaused,status:"pending",variables:u.variables,submittedAt:Date.now()};case"success":return{...r,data:u.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:u.error,failureCount:r.failureCount+1,failureReason:u.error,isPaused:!1,status:"error"}}};this.state=s(this.state),yt.batch(()=>{U(this,ia).forEach(r=>{r.onMutationUpdate(u)}),U(this,ht).notify({mutation:this,type:"updated",action:u})})},Pm);function xv(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ra,Ft,Qi,Im,Sv=(Im=class extends xc{constructor(u={}){super();xe(this,Ra);xe(this,Ft);xe(this,Qi);this.config=u,ce(this,Ra,new Set),ce(this,Ft,new Map),ce(this,Qi,0)}build(u,s,r){const f=new bv({client:u,mutationCache:this,mutationId:++sc(this,Qi)._,options:u.defaultMutationOptions(s),state:r});return this.add(f),f}add(u){U(this,Ra).add(u);const s=oc(u);if(typeof s=="string"){const r=U(this,Ft).get(s);r?r.push(u):U(this,Ft).set(s,[u])}this.notify({type:"added",mutation:u})}remove(u){if(U(this,Ra).delete(u)){const s=oc(u);if(typeof s=="string"){const r=U(this,Ft).get(s);if(r)if(r.length>1){const f=r.indexOf(u);f!==-1&&r.splice(f,1)}else r[0]===u&&U(this,Ft).delete(s)}}this.notify({type:"removed",mutation:u})}canRun(u){const s=oc(u);if(typeof s=="string"){const r=U(this,Ft).get(s),f=r==null?void 0:r.find(m=>m.state.status==="pending");return!f||f===u}else return!0}runNext(u){var r;const s=oc(u);if(typeof s=="string"){const f=(r=U(this,Ft).get(s))==null?void 0:r.find(m=>m!==u&&m.state.isPaused);return(f==null?void 0:f.continue())??Promise.resolve()}else return Promise.resolve()}clear(){yt.batch(()=>{U(this,Ra).forEach(u=>{this.notify({type:"removed",mutation:u})}),U(this,Ra).clear(),U(this,Ft).clear()})}getAll(){return Array.from(U(this,Ra))}find(u){const s={exact:!0,...u};return this.getAll().find(r=>_m(s,r))}findAll(u={}){return this.getAll().filter(s=>_m(u,s))}notify(u){yt.batch(()=>{this.listeners.forEach(s=>{s(u)})})}resumePausedMutations(){const u=this.getAll().filter(s=>s.state.isPaused);return yt.batch(()=>Promise.all(u.map(s=>s.continue().catch(Jt))))}},Ra=new WeakMap,Ft=new WeakMap,Qi=new WeakMap,Im);function oc(i){var u;return(u=i.options.scope)==null?void 0:u.id}var ca,ey,Tv=(ey=class extends xc{constructor(u={}){super();xe(this,ca);this.config=u,ce(this,ca,new Map)}build(u,s,r){const f=s.queryKey,m=s.queryHash??so(f,s);let v=this.get(m);return v||(v=new pv({client:u,queryKey:f,queryHash:m,options:u.defaultQueryOptions(s),state:r,defaultOptions:u.getQueryDefaults(f)}),this.add(v)),v}add(u){U(this,ca).has(u.queryHash)||(U(this,ca).set(u.queryHash,u),this.notify({type:"added",query:u}))}remove(u){const s=U(this,ca).get(u.queryHash);s&&(u.destroy(),s===u&&U(this,ca).delete(u.queryHash),this.notify({type:"removed",query:u}))}clear(){yt.batch(()=>{this.getAll().forEach(u=>{this.remove(u)})})}get(u){return U(this,ca).get(u)}getAll(){return[...U(this,ca).values()]}find(u){const s={exact:!0,...u};return this.getAll().find(r=>wm(s,r))}findAll(u={}){const s=this.getAll();return Object.keys(u).length>0?s.filter(r=>wm(u,r)):s}notify(u){yt.batch(()=>{this.listeners.forEach(s=>{s(u)})})}onFocus(){yt.batch(()=>{this.getAll().forEach(u=>{u.onFocus()})})}onOnline(){yt.batch(()=>{this.getAll().forEach(u=>{u.onOnline()})})}},ca=new WeakMap,ey),Ve,sl,rl,Mn,jn,ol,On,zn,ty,Ev=(ty=class{constructor(i={}){xe(this,Ve);xe(this,sl);xe(this,rl);xe(this,Mn);xe(this,jn);xe(this,ol);xe(this,On);xe(this,zn);ce(this,Ve,i.queryCache||new Tv),ce(this,sl,i.mutationCache||new Sv),ce(this,rl,i.defaultOptions||{}),ce(this,Mn,new Map),ce(this,jn,new Map),ce(this,ol,0)}mount(){sc(this,ol)._++,U(this,ol)===1&&(ce(this,On,xy.subscribe(async i=>{i&&(await this.resumePausedMutations(),U(this,Ve).onFocus())})),ce(this,zn,yc.subscribe(async i=>{i&&(await this.resumePausedMutations(),U(this,Ve).onOnline())})))}unmount(){var i,u;sc(this,ol)._--,U(this,ol)===0&&((i=U(this,On))==null||i.call(this),ce(this,On,void 0),(u=U(this,zn))==null||u.call(this),ce(this,zn,void 0))}isFetching(i){return U(this,Ve).findAll({...i,fetchStatus:"fetching"}).length}isMutating(i){return U(this,sl).findAll({...i,status:"pending"}).length}getQueryData(i){var s;const u=this.defaultQueryOptions({queryKey:i});return(s=U(this,Ve).get(u.queryHash))==null?void 0:s.state.data}ensureQueryData(i){const u=this.defaultQueryOptions(i),s=U(this,Ve).build(this,u),r=s.state.data;return r===void 0?this.fetchQuery(i):(i.revalidateIfStale&&s.isStaleByTime(Jr(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(r))}getQueriesData(i){return U(this,Ve).findAll(i).map(({queryKey:u,state:s})=>{const r=s.data;return[u,r]})}setQueryData(i,u,s){const r=this.defaultQueryOptions({queryKey:i}),f=U(this,Ve).get(r.queryHash),m=f==null?void 0:f.state.data,v=tv(u,m);if(v!==void 0)return U(this,Ve).build(this,r).setData(v,{...s,manual:!0})}setQueriesData(i,u,s){return yt.batch(()=>U(this,Ve).findAll(i).map(({queryKey:r})=>[r,this.setQueryData(r,u,s)]))}getQueryState(i){var s;const u=this.defaultQueryOptions({queryKey:i});return(s=U(this,Ve).get(u.queryHash))==null?void 0:s.state}removeQueries(i){const u=U(this,Ve);yt.batch(()=>{u.findAll(i).forEach(s=>{u.remove(s)})})}resetQueries(i,u){const s=U(this,Ve);return yt.batch(()=>(s.findAll(i).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...i},u)))}cancelQueries(i,u={}){const s={revert:!0,...u},r=yt.batch(()=>U(this,Ve).findAll(i).map(f=>f.cancel(s)));return Promise.all(r).then(Jt).catch(Jt)}invalidateQueries(i,u={}){return yt.batch(()=>(U(this,Ve).findAll(i).forEach(s=>{s.invalidate()}),(i==null?void 0:i.refetchType)==="none"?Promise.resolve():this.refetchQueries({...i,type:(i==null?void 0:i.refetchType)??(i==null?void 0:i.type)??"active"},u)))}refetchQueries(i,u={}){const s={...u,cancelRefetch:u.cancelRefetch??!0},r=yt.batch(()=>U(this,Ve).findAll(i).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let m=f.fetch(void 0,s);return s.throwOnError||(m=m.catch(Jt)),f.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(r).then(Jt)}fetchQuery(i){const u=this.defaultQueryOptions(i);u.retry===void 0&&(u.retry=!1);const s=U(this,Ve).build(this,u);return s.isStaleByTime(Jr(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}prefetchQuery(i){return this.fetchQuery(i).then(Jt).catch(Jt)}fetchInfiniteQuery(i){return i.behavior=Lm(i.pages),this.fetchQuery(i)}prefetchInfiniteQuery(i){return this.fetchInfiniteQuery(i).then(Jt).catch(Jt)}ensureInfiniteQueryData(i){return i.behavior=Lm(i.pages),this.ensureQueryData(i)}resumePausedMutations(){return yc.isOnline()?U(this,sl).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,Ve)}getMutationCache(){return U(this,sl)}getDefaultOptions(){return U(this,rl)}setDefaultOptions(i){ce(this,rl,i)}setQueryDefaults(i,u){U(this,Mn).set(Li(i),{queryKey:i,defaultOptions:u})}getQueryDefaults(i){const u=[...U(this,Mn).values()],s={};return u.forEach(r=>{Bi(i,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(i,u){U(this,jn).set(Li(i),{mutationKey:i,defaultOptions:u})}getMutationDefaults(i){const u=[...U(this,jn).values()],s={};return u.forEach(r=>{Bi(i,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(i){if(i._defaulted)return i;const u={...U(this,rl).queries,...this.getQueryDefaults(i.queryKey),...i,_defaulted:!0};return u.queryHash||(u.queryHash=so(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===ro&&(u.enabled=!1),u}defaultMutationOptions(i){return i!=null&&i._defaulted?i:{...U(this,rl).mutations,...(i==null?void 0:i.mutationKey)&&this.getMutationDefaults(i.mutationKey),...i,_defaulted:!0}}clear(){U(this,Ve).clear(),U(this,sl).clear()}},Ve=new WeakMap,sl=new WeakMap,rl=new WeakMap,Mn=new WeakMap,jn=new WeakMap,ol=new WeakMap,On=new WeakMap,zn=new WeakMap,ty),Av=x.createContext(void 0),Nv=({client:i,children:u})=>(x.useEffect(()=>(i.mount(),()=>{i.unmount()}),[i]),h.jsx(Av.Provider,{value:i,children:u}));const Cv="modulepreload",Mv=function(i){return"/"+i},Gm={},jy=function(u,s,r){let f=Promise.resolve();if(s&&s.length>0){let v=function(y){return Promise.all(y.map(N=>Promise.resolve(N).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));f=v(s.map(y=>{if(y=Mv(y),y in Gm)return;Gm[y]=!0;const N=y.endsWith(".css"),E=N?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${E}`))return;const D=document.createElement("link");if(D.rel=N?"stylesheet":Cv,N||(D.as="script"),D.crossOrigin="",D.href=y,p&&D.setAttribute("nonce",p),document.head.appendChild(D),N)return new Promise((Q,Z)=>{D.addEventListener("load",Q),D.addEventListener("error",()=>Z(new Error(`Unable to preload CSS for ${y}`)))})}))}function m(v){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=v,window.dispatchEvent(g),!g.defaultPrevented)throw v}return f.then(v=>{for(const g of v||[])g.status==="rejected"&&m(g.reason);return u().catch(m)})};var jv=function(){return null};const oo="";function Sc(){const i=localStorage.getItem("titan-token");return i?{Authorization:`Bearer ${i}`}:{}}function $t(i,u){const s={...Sc(),...u==null?void 0:u.headers};return fetch(i,{...u,headers:s})}async function $(i,u){const s=await fetch(`${oo}${i}`,{...u,headers:{"Content-Type":"application/json",...Sc(),...u==null?void 0:u.headers}});if(!s.ok){const r=await s.text().catch(()=>"");throw new Error(`${s.status}: ${r||s.statusText}`)}return s.json()}function n2(i,u,s,r,f){return fo("chat_message_sent",{streaming:!0,hasSession:!!u}),new Promise((m,v)=>{fetch(`${oo}/api/message`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream",...Sc()},body:JSON.stringify({content:i,sessionId:u,...(f==null?void 0:f.agentId)&&{agentId:f.agentId},...(f==null?void 0:f.systemPromptAppendix)&&{systemPromptAppendix:f.systemPromptAppendix}}),signal:r}).then(g=>{var Q;if(!g.ok){v(new Error(`${g.status}: ${g.statusText}`));return}const p=(Q=g.body)==null?void 0:Q.getReader();if(!p){v(new Error("No response body"));return}const y=new TextDecoder;let N="",E="";function D(){p.read().then(({done:Z,value:z})=>{if(Z){m();return}N+=y.decode(z,{stream:!0});const k=N.split(`
|
|
62
|
-
`);N=k.pop()||"";for(const Y of k)if(Y.startsWith("event: "))E=Y.slice(7).trim();else if(Y.startsWith("data: ")){const F=Y.slice(6);if(F==="[DONE]"){m();return}try{const B=JSON.parse(F),X=E||B.type||"token";X==="token"?s==null||s({type:"token",data:B.text??B.data??""}):X==="tool_call"?s==null||s({type:"tool_start",data:"",toolName:B.name,toolArgs:B.args}):X==="tool_end"?s==null||s({type:"tool_end",data:"",toolName:B.name,toolResult:B.result,toolDurationMs:B.durationMs,toolSuccess:B.success,toolDiff:B.diff}):X==="thinking"?s==null||s({type:"thinking",data:""}):X==="round"?s==null||s({type:"round",data:"",round:B.round,maxRounds:B.maxRounds}):X==="done"?B.error&&!B.content?s==null||s({type:"error",data:B.message??B.error??"Unknown error",errorCode:B.error,errorMessage:B.message,errorAction:B.action}):s==null||s({type:"done",data:B.content??"",sessionId:B.sessionId,model:B.model,durationMs:B.durationMs,toolsUsed:B.toolsUsed,pendingApproval:B.pendingApproval}):X==="error"?s==null||s({type:"error",data:B.error??B.message??""}):s==null||s({type:B.type??"token",data:B.text??B.data??"",...B})}catch{s==null||s({type:"token",data:F})}E=""}else Y===""&&(E="");D()}).catch(v)}D()}).catch(v)})}async function Oy(){return $("/api/config")}async function Ov(i){return $("/api/config",{method:"POST",body:JSON.stringify(i)})}async function zv(){return $("/api/voice/health")}async function i2(){return $("/api/skills")}async function u2(){const i=await $("/api/channels");return(Array.isArray(i)?i:[]).map(u=>{var s;return{name:u.name??"Unknown",type:u.type??((s=u.name)==null?void 0:s.toLowerCase())??"unknown",enabled:u.enabled??u.connected??!1,status:u.connected?"connected":"disconnected"}})}async function c2(){return(await Oy()).channels??{}}async function s2(i,u){return Ov({channels:{[i]:u}})}async function r2(){const i=await $("/api/mesh/peers");return Array.isArray(i)?i:i.peers??[]}async function o2(){const i=await $("/api/mesh/pending");return Array.isArray(i)?i:i.pending??[]}async function f2(i){await $(`/api/mesh/approve/${i}`,{method:"POST"})}async function d2(i){await $(`/api/mesh/reject/${i}`,{method:"POST"})}async function h2(i){await $(`/api/mesh/revoke/${i}`,{method:"POST"})}async function m2(i,u){const s=new URLSearchParams;i&&s.set("level",i),u&&s.set("limit",String(u));const r=s.toString(),f=await $(`/api/logs${r?`?${r}`:""}`);return Array.isArray(f)?f:(f.lines??[]).map(v=>{const g=v.match(/^(\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})\s+(DEBUG|INFO|WARN|ERROR)\s+(.*)$/);return g?{timestamp:g[1],level:g[2].toLowerCase(),message:g[3]}:{timestamp:"",level:"info",message:v}})}async function y2(){const i=await $("/api/models"),u=[];for(const[s,r]of Object.entries(i))if(Array.isArray(r))for(const f of r){const m=f.includes("/")?f.split("/").slice(1).join("/"):f;u.push({id:f,name:m,provider:s,available:!0})}return u}async function p2(i,u){await $("/api/model/switch",{method:"POST",body:JSON.stringify({model:i,provider:u})})}async function g2(){return $("/api/personas")}async function v2(i){return $("/api/persona/switch",{method:"POST",body:JSON.stringify({persona:i})})}async function b2(){return $("/api/metrics/summary")}async function x2(){return(await $("/api/mcp/clients")).servers??[]}async function S2(i){return $("/api/mcp/clients",{method:"POST",body:JSON.stringify(i)})}async function T2(i){await $(`/api/mcp/clients/${i}`,{method:"DELETE"})}async function E2(i,u){await $(`/api/mcp/clients/${i}/toggle`,{method:"POST",body:JSON.stringify({enabled:u})})}async function A2(i){return $(`/api/mcp/clients/${i}/test`,{method:"POST"})}async function N2(){return(await $("/api/mcp/presets")).presets??[]}async function C2(i){const u=new URLSearchParams;i!=null&&i.since&&u.set("since",i.since),i!=null&&i.action&&u.set("action",i.action),i!=null&&i.source&&u.set("source",i.source),u.set("limit",String(i.limit));const s=u.toString();return(await $(`/api/audit${s?`?${s}`:""}`)).entries??[]}async function M2(i){const u=`?hours=${i}`;return $(`/api/audit/stats${u}`)}async function j2(){return $("/api/files/roots")}async function O2(i,u){const s=new URLSearchParams;i&&s.set("path",i),u&&s.set("root",u);const r=s.toString();return $(`/api/files${r?`?${r}`:""}`)}async function z2(i,u){const s=new URLSearchParams({path:i});return u&&s.set("root",u),$(`/api/files/read?${s}`)}async function R2(i,u,s){return $("/api/files/write",{method:"POST",body:JSON.stringify({path:i,content:u,root:s})})}async function w2(i,u){return $("/api/files/mkdir",{method:"POST",body:JSON.stringify({path:i,root:u})})}async function _2(i,u,s){return $("/api/files/rename",{method:"POST",body:JSON.stringify({oldPath:i,newPath:u,root:s})})}async function D2(i,u){const s=new URLSearchParams({path:i});return u&&s.set("root",u),$(`/api/files/delete?${s}`,{method:"DELETE"})}async function U2(){return $("/api/voice/f5tts/status")}async function H2(){return $("/api/analytics/profile")}async function q2(){return $("/api/voice/clone/voices")}async function L2(i,u,s){return $("/api/voice/clone/upload",{method:"POST",body:JSON.stringify({name:i,audio:u,transcript:s})})}async function B2(i){return $(`/api/voice/clone/${encodeURIComponent(i)}`,{method:"DELETE"})}async function G2(i,u){const s=JSON.stringify({text:u||"Hello, how can I help you today?",voice:i}),r=await fetch(`${oo}/api/voice/preview`,{method:"POST",headers:{"Content-Type":"application/json",...Sc()},body:s});if(!r.ok)throw new Error(`Preview failed: ${r.statusText}`);return r.arrayBuffer()}async function Y2(){return $("/api/command-post/dashboard")}async function Q2(){return $("/api/command-post/agents")}async function k2(i){return $("/api/command-post/budgets",{method:"POST",body:JSON.stringify(i)})}async function X2(i,u){return $(`/api/command-post/budgets/${i}`,{method:"PUT",body:JSON.stringify(u)})}async function V2(i){return $(`/api/command-post/budgets/${i}`,{method:"DELETE"})}async function Z2(i=50,u){const s=new URLSearchParams({limit:String(i)});return $(`/api/command-post/activity?${s}`)}async function K2(){return $("/api/command-post/goals/tree")}async function J2(){return $("/api/command-post/org")}async function $2(i){const u=new URLSearchParams;i!=null&&i.status&&u.set("status",i.status),i!=null&&i.assignee&&u.set("assignee",i.assignee),i!=null&&i.goalId&&u.set("goalId",i.goalId);const s=u.toString();return $(`/api/command-post/issues${s?`?${s}`:""}`)}async function F2(i){const u=`?status=${i}`;return $(`/api/command-post/approvals${u}`)}async function W2(i,u,s){return $(`/api/command-post/approvals/${i}/approve`,{method:"POST",body:JSON.stringify({decidedBy:u,note:s})})}async function P2(i,u,s){return $(`/api/command-post/approvals/${i}/reject`,{method:"POST",body:JSON.stringify({decidedBy:u,note:s})})}async function I2(i,u=50){const s=new URLSearchParams({limit:String(u)});return i&&s.set("agentId",i),$(`/api/command-post/runs?${s}`)}async function ex(i,u){return $(`/api/command-post/agents/${i}`,{method:"PATCH",body:JSON.stringify(u)})}async function tx(i=50,u){const s=new URLSearchParams({limit:String(i)});return $(`/api/traces?${s}`)}async function ax(i){return $(`/api/traces/${i}`)}async function lx(i=50){return $(`/api/alerts?limit=${i}`)}async function nx(){return $("/api/soul/wisdom")}async function ix(i=50){return $(`/api/guardrails/violations?limit=${i}`)}async function ux(){const i=await $("/api/companies");return Array.isArray(i)?i:i&&typeof i=="object"&&"companies"in i?i.companies:[]}async function cx(i){return $("/api/companies",{method:"POST",body:JSON.stringify(i)})}async function sx(i,u){return $(`/api/companies/${i}`,{method:"PATCH",body:JSON.stringify(u)})}async function rx(i){return $(`/api/companies/${i}`,{method:"DELETE"})}async function ox(i,u,s){return $(`/api/command-post/approvals/${i}/reply`,{method:"POST",body:JSON.stringify({author:u,body:s})})}async function fx(i,u){return $(`/api/command-post/approvals/${i}/snooze`,{method:"POST",body:JSON.stringify({until:u})})}async function dx(i,u,s,r){return $("/api/command-post/approvals/batch",{method:"POST",body:JSON.stringify({ids:i,action:u,decidedBy:s,note:r})})}async function hx(){return $("/api/social/state")}async function mx(i){return $("/api/social/autopilot/toggle",{method:"POST",body:JSON.stringify({enabled:i})})}async function yx(i){return $("/api/social/post",{method:"POST",body:JSON.stringify({content:i})})}async function px(i){return $(`/api/social/drafts/${i}/approve`,{method:"POST"})}async function gx(i){return $(`/api/social/drafts/${i}/reject`,{method:"POST"})}async function vx(){return $("/api/social/graph-context")}async function Rv(i){return $("/api/login",{method:"POST",body:JSON.stringify({password:i})})}function fo(i,u){$t("/api/telemetry",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event:i,properties:u,timestamp:new Date().toISOString()})}).catch(()=>{})}const zy=x.createContext({config:null,voiceHealth:null,voiceAvailable:!1,loading:!0,refresh:async()=>{}});function wv({children:i}){var N;const[u,s]=x.useState(null),[r,f]=x.useState(null),[m,v]=x.useState(!0),g=async()=>{var E;try{const D=await Oy();if(s(D),(E=D.voice)!=null&&E.enabled)try{const Q=await zv();f(Q)}catch{f(null)}}catch(D){console.error("Failed to load config:",D)}finally{v(!1)}};x.useEffect(()=>{g();let E=setInterval(g,3e4);const D=()=>{document.hidden?clearInterval(E):(g(),E=setInterval(g,3e4))};return document.addEventListener("visibilitychange",D),()=>{clearInterval(E),document.removeEventListener("visibilitychange",D)}},[]);const p=!!((N=u==null?void 0:u.voice)!=null&&N.enabled),y=x.useMemo(()=>({config:u,voiceHealth:r,voiceAvailable:p,loading:m,refresh:g}),[u,r,p,m,g]);return h.jsx(zy.Provider,{value:y,children:i})}function _v(){return x.useContext(zy)}const Ry=x.createContext({isAuthenticated:!1,isLoading:!0,login:async()=>{},logout:()=>{}});function Dv({children:i}){const[u,s]=x.useState(!1),[r,f]=x.useState(!0);x.useEffect(()=>{const p=localStorage.getItem("titan-token"),y={};p&&(y.Authorization=`Bearer ${p}`),fetch("/api/health",{headers:y}).then(N=>{N.ok?s(!0):N.status===401?(localStorage.removeItem("titan-token"),s(!1)):s(!0)}).catch(()=>{s(!0)}).finally(()=>f(!1))},[]);const m=x.useCallback(async p=>{const{token:y}=await Rv(p);localStorage.setItem("titan-token",y),s(!0)},[]),v=x.useCallback(()=>{localStorage.removeItem("titan-token"),s(!1)},[]),g=x.useMemo(()=>({isAuthenticated:u,isLoading:r,login:m,logout:v}),[u,r,m,v]);return h.jsx(Ry.Provider,{value:g,children:i})}function wy(){return x.useContext(Ry)}/**
|
|
63
|
-
* @license lucide-react v0.513.0 - ISC
|
|
64
|
-
*
|
|
65
|
-
* This source code is licensed under the ISC license.
|
|
66
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
-
*/const Uv=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hv=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(u,s,r)=>r?r.toUpperCase():s.toLowerCase()),Ym=i=>{const u=Hv(i);return u.charAt(0).toUpperCase()+u.slice(1)},_y=(...i)=>i.filter((u,s,r)=>!!u&&u.trim()!==""&&r.indexOf(u)===s).join(" ").trim(),qv=i=>{for(const u in i)if(u.startsWith("aria-")||u==="role"||u==="title")return!0};/**
|
|
68
|
-
* @license lucide-react v0.513.0 - ISC
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the ISC license.
|
|
71
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var Lv={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"};/**
|
|
73
|
-
* @license lucide-react v0.513.0 - ISC
|
|
74
|
-
*
|
|
75
|
-
* This source code is licensed under the ISC license.
|
|
76
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
-
*/const Bv=x.forwardRef(({color:i="currentColor",size:u=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:f="",children:m,iconNode:v,...g},p)=>x.createElement("svg",{ref:p,...Lv,width:u,height:u,stroke:i,strokeWidth:r?Number(s)*24/Number(u):s,className:_y("lucide",f),...!m&&!qv(g)&&{"aria-hidden":"true"},...g},[...v.map(([y,N])=>x.createElement(y,N)),...Array.isArray(m)?m:[m]]));/**
|
|
78
|
-
* @license lucide-react v0.513.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/const we=(i,u)=>{const s=x.forwardRef(({className:r,...f},m)=>x.createElement(Bv,{ref:m,iconNode:u,className:_y(`lucide-${Uv(Ym(i))}`,`lucide-${i}`,r),...f}));return s.displayName=Ym(i),s};/**
|
|
83
|
-
* @license lucide-react v0.513.0 - ISC
|
|
84
|
-
*
|
|
85
|
-
* This source code is licensed under the ISC license.
|
|
86
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
-
*/const Gv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Yv=we("activity",Gv);/**
|
|
88
|
-
* @license lucide-react v0.513.0 - ISC
|
|
89
|
-
*
|
|
90
|
-
* This source code is licensed under the ISC license.
|
|
91
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
-
*/const Qv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],kv=we("arrow-right",Qv);/**
|
|
93
|
-
* @license lucide-react v0.513.0 - ISC
|
|
94
|
-
*
|
|
95
|
-
* This source code is licensed under the ISC license.
|
|
96
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
-
*/const Xv=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Vv=we("brain-circuit",Xv);/**
|
|
98
|
-
* @license lucide-react v0.513.0 - ISC
|
|
99
|
-
*
|
|
100
|
-
* This source code is licensed under the ISC license.
|
|
101
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/const Zv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Kv=we("chevron-left",Zv);/**
|
|
103
|
-
* @license lucide-react v0.513.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/const Jv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],$v=we("circle-alert",Jv);/**
|
|
108
|
-
* @license lucide-react v0.513.0 - ISC
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the ISC license.
|
|
111
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/const Fv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Wr=we("circle-check",Fv);/**
|
|
113
|
-
* @license lucide-react v0.513.0 - ISC
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the ISC license.
|
|
116
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
-
*/const Wv=[["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"}]],Pv=we("circle-x",Wv);/**
|
|
118
|
-
* @license lucide-react v0.513.0 - ISC
|
|
119
|
-
*
|
|
120
|
-
* This source code is licensed under the ISC license.
|
|
121
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
-
*/const Iv=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],eb=we("cloud",Iv);/**
|
|
123
|
-
* @license lucide-react v0.513.0 - ISC
|
|
124
|
-
*
|
|
125
|
-
* This source code is licensed under the ISC license.
|
|
126
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/const tb=[["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"}]],Pr=we("cpu",tb);/**
|
|
128
|
-
* @license lucide-react v0.513.0 - ISC
|
|
129
|
-
*
|
|
130
|
-
* This source code is licensed under the ISC license.
|
|
131
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/const ab=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],Dy=we("flame",ab);/**
|
|
133
|
-
* @license lucide-react v0.513.0 - ISC
|
|
134
|
-
*
|
|
135
|
-
* This source code is licensed under the ISC license.
|
|
136
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
-
*/const lb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],nb=we("globe",lb);/**
|
|
138
|
-
* @license lucide-react v0.513.0 - ISC
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the ISC license.
|
|
141
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
-
*/const ib=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],ub=we("hard-drive",ib);/**
|
|
143
|
-
* @license lucide-react v0.513.0 - ISC
|
|
144
|
-
*
|
|
145
|
-
* This source code is licensed under the ISC license.
|
|
146
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
-
*/const cb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],sb=we("info",cb);/**
|
|
148
|
-
* @license lucide-react v0.513.0 - ISC
|
|
149
|
-
*
|
|
150
|
-
* This source code is licensed under the ISC license.
|
|
151
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
-
*/const rb=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],ob=we("key",rb);/**
|
|
153
|
-
* @license lucide-react v0.513.0 - ISC
|
|
154
|
-
*
|
|
155
|
-
* This source code is licensed under the ISC license.
|
|
156
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
-
*/const fb=[["path",{d:"M6 19v-3",key:"1nvgqn"}],["path",{d:"M10 19v-3",key:"iu8nkm"}],["path",{d:"M14 19v-3",key:"kcehxu"}],["path",{d:"M18 19v-3",key:"1vh91z"}],["path",{d:"M8 11V9",key:"63erz4"}],["path",{d:"M16 11V9",key:"fru6f3"}],["path",{d:"M12 11V9",key:"ha00sb"}],["path",{d:"M2 15h20",key:"16ne18"}],["path",{d:"M2 7a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.1a2 2 0 0 0 0 3.837V17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-5.1a2 2 0 0 0 0-3.837Z",key:"lhddv3"}]],db=we("memory-stick",fb);/**
|
|
158
|
-
* @license lucide-react v0.513.0 - ISC
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the ISC license.
|
|
161
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/const hb=[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]],Uy=we("message-circle",hb);/**
|
|
163
|
-
* @license lucide-react v0.513.0 - ISC
|
|
164
|
-
*
|
|
165
|
-
* This source code is licensed under the ISC license.
|
|
166
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/const mb=[["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"}]],yb=we("monitor",mb);/**
|
|
168
|
-
* @license lucide-react v0.513.0 - ISC
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the ISC license.
|
|
171
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/const pb=[["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-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Xr=we("rocket",pb);/**
|
|
173
|
-
* @license lucide-react v0.513.0 - ISC
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the ISC license.
|
|
176
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
-
*/const gb=[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],vb=we("shield-alert",gb);/**
|
|
178
|
-
* @license lucide-react v0.513.0 - ISC
|
|
179
|
-
*
|
|
180
|
-
* This source code is licensed under the ISC license.
|
|
181
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
-
*/const bb=[["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"}]],xb=we("shield",bb);/**
|
|
183
|
-
* @license lucide-react v0.513.0 - ISC
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the ISC license.
|
|
186
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
-
*/const Sb=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],Qm=we("sparkles",Sb);/**
|
|
188
|
-
* @license lucide-react v0.513.0 - ISC
|
|
189
|
-
*
|
|
190
|
-
* This source code is licensed under the ISC license.
|
|
191
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const Tb=[["path",{d:"m10.065 12.493-6.18 1.318a.934.934 0 0 1-1.108-.702l-.537-2.15a1.07 1.07 0 0 1 .691-1.265l13.504-4.44",key:"k4qptu"}],["path",{d:"m13.56 11.747 4.332-.924",key:"19l80z"}],["path",{d:"m16 21-3.105-6.21",key:"7oh9d"}],["path",{d:"M16.485 5.94a2 2 0 0 1 1.455-2.425l1.09-.272a1 1 0 0 1 1.212.727l1.515 6.06a1 1 0 0 1-.727 1.213l-1.09.272a2 2 0 0 1-2.425-1.455z",key:"m7xp4m"}],["path",{d:"m6.158 8.633 1.114 4.456",key:"74o979"}],["path",{d:"m8 21 3.105-6.21",key:"1fvxut"}],["circle",{cx:"12",cy:"13",r:"2",key:"1c1ljs"}]],Hy=we("telescope",Tb);/**
|
|
193
|
-
* @license lucide-react v0.513.0 - ISC
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the ISC license.
|
|
196
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/const Eb=[["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"}]],Ir=we("triangle-alert",Eb);/**
|
|
198
|
-
* @license lucide-react v0.513.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const Ab=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Nb=we("user",Ab);/**
|
|
203
|
-
* @license lucide-react v0.513.0 - ISC
|
|
204
|
-
*
|
|
205
|
-
* This source code is licensed under the ISC license.
|
|
206
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const Cb=[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]],km=we("waves",Cb);/**
|
|
208
|
-
* @license lucide-react v0.513.0 - ISC
|
|
209
|
-
*
|
|
210
|
-
* This source code is licensed under the ISC license.
|
|
211
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const Mb=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],jb=we("wifi",Mb);/**
|
|
213
|
-
* @license lucide-react v0.513.0 - ISC
|
|
214
|
-
*
|
|
215
|
-
* This source code is licensed under the ISC license.
|
|
216
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const Ob=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],qy=we("x",Ob);/**
|
|
218
|
-
* @license lucide-react v0.513.0 - ISC
|
|
219
|
-
*
|
|
220
|
-
* This source code is licensed under the ISC license.
|
|
221
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
222
|
-
*/const zb=[["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"}]],Ly=we("zap",zb);function By(i){var u,s,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var f=i.length;for(u=0;u<f;u++)i[u]&&(s=By(i[u]))&&(r&&(r+=" "),r+=s)}else for(s in i)i[s]&&(r&&(r+=" "),r+=s);return r}function Rb(){for(var i,u,s=0,r="",f=arguments.length;s<f;s++)(i=arguments[s])&&(u=By(i))&&(r&&(r+=" "),r+=u);return r}const Gy=x.createContext({toast:()=>{}});function bx(){return x.useContext(Gy)}const wb={success:h.jsx(Wr,{size:16,className:"text-success"}),error:h.jsx(Pv,{size:16,className:"text-error"}),warning:h.jsx($v,{size:16,className:"text-warning"}),info:h.jsx(sb,{size:16,className:"text-info"})},_b={success:"border-success/30",error:"border-error/30",warning:"border-warning/30",info:"border-info/30"};function Db({children:i}){const[u,s]=x.useState([]),r=x.useCallback((m,v)=>{const g=`toast-${Date.now()}-${Math.random().toString(36).slice(2)}`;s(p=>[...p,{id:g,type:m,message:v}]),setTimeout(()=>{s(p=>p.filter(y=>y.id!==g))},4e3)},[]),f=x.useCallback(m=>{s(v=>v.filter(g=>g.id!==m))},[]);return h.jsxs(Gy.Provider,{value:{toast:r},children:[i,h.jsx("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-2 pointer-events-none",children:u.map(m=>h.jsxs("div",{className:Rb("pointer-events-auto flex items-center gap-2.5 rounded-lg border bg-bg-secondary px-4 py-3 shadow-lg","animate-in slide-in-from-right-5 fade-in duration-200",_b[m.type]),children:[wb[m.type],h.jsx("span",{className:"text-sm text-text",children:m.message}),h.jsx("button",{onClick:()=>f(m.id),className:"ml-2 text-text-muted hover:text-text",children:h.jsx(qy,{size:14})})]},m.id))})]})}function Ub(){const{login:i}=wy(),[u,s]=x.useState(""),[r,f]=x.useState(""),[m,v]=x.useState(!1),g=x.useCallback(async p=>{if(p.preventDefault(),!!u.trim()){f(""),v(!0);try{await i(u)}catch{f("Incorrect password. Please try again.")}finally{v(!1)}}},[u,i]);return h.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-bg overflow-hidden",children:[h.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-[0.07] blur-[120px] pointer-events-none",style:{background:"radial-gradient(circle, var(--color-accent), var(--color-accent2))"}}),h.jsxs("div",{className:"relative z-10 w-full max-w-md mx-6",children:[h.jsxs("div",{className:"text-center mb-10",children:[h.jsx("div",{className:"inline-flex items-center justify-center w-20 h-20 rounded-2xl mb-6",style:{background:"linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15))",border:"1px solid rgba(99,102,241,0.25)",boxShadow:"0 0 40px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.05)"},children:h.jsxs("svg",{viewBox:"0 0 32 32",fill:"none",className:"w-10 h-10",children:[h.jsx("path",{d:"M16 3L4 9.5v13L16 29l12-6.5v-13L16 3z",stroke:"url(#titan-grad)",strokeWidth:1.5,strokeLinejoin:"round"}),h.jsx("path",{d:"M16 3v26M4 9.5L28 22.5M28 9.5L4 22.5",stroke:"url(#titan-grad)",strokeWidth:1,opacity:.4}),h.jsx("circle",{cx:16,cy:16,r:4,fill:"url(#titan-grad)",opacity:.8}),h.jsx("defs",{children:h.jsxs("linearGradient",{id:"titan-grad",x1:"4",y1:"3",x2:"28",y2:"29",children:[h.jsx("stop",{stopColor:"#6366f1"}),h.jsx("stop",{offset:1,stopColor:"#a855f7"})]})})]})}),h.jsx("h1",{className:"text-3xl font-bold text-text tracking-tight",children:"TITAN"}),h.jsx("p",{className:"text-base text-text-muted mt-2 tracking-wide",children:"Mission Control"})]}),h.jsx("div",{className:"rounded-2xl p-8",style:{background:"linear-gradient(180deg, rgba(24,24,27,0.95), rgba(24,24,27,0.8))",border:"1px solid rgba(63,63,70,0.6)",boxShadow:"0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02)",backdropFilter:"blur(20px)"},children:h.jsxs("form",{onSubmit:g,className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Gateway Password"}),h.jsx("input",{id:"password",type:"password",autoFocus:!0,autoComplete:"current-password",value:u,onChange:p=>{s(p.target.value),r&&f("")},placeholder:"Enter your password",className:"w-full px-4 py-3 rounded-xl text-text placeholder:text-text-muted focus:outline-none transition-all text-sm",style:{background:"rgba(9,9,11,0.8)",border:r?"1px solid var(--color-error)":"1px solid rgba(63,63,70,0.8)",boxShadow:"inset 0 2px 4px rgba(0,0,0,0.2)"},onFocus:p=>{r||(p.currentTarget.style.border="1px solid var(--color-accent)"),p.currentTarget.style.boxShadow="inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(99,102,241,0.15)"},onBlur:p=>{r||(p.currentTarget.style.border="1px solid rgba(63,63,70,0.8)"),p.currentTarget.style.boxShadow="inset 0 2px 4px rgba(0,0,0,0.2)"}})]}),r&&h.jsxs("div",{className:"flex items-center gap-2 text-sm text-error",children:[h.jsx("svg",{className:"w-4 h-4 shrink-0",viewBox:"0 0 20 20",fill:"currentColor",children:h.jsx("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),r]}),h.jsx("button",{type:"submit",disabled:m||!u.trim(),className:"w-full py-3 rounded-xl text-white font-semibold text-sm tracking-wide transition-all disabled:opacity-40 disabled:cursor-not-allowed cursor-pointer",style:{background:m||!u.trim()?"rgba(99,102,241,0.3)":"linear-gradient(135deg, #6366f1, #7c3aed)",boxShadow:m||!u.trim()?"none":"0 4px 14px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15)"},onMouseEnter:p=>{!m&&u.trim()&&(p.currentTarget.style.background="linear-gradient(135deg, #818cf8, #8b5cf6)",p.currentTarget.style.boxShadow="0 6px 20px rgba(99,102,241,0.45), inset 0 1px 0 rgba(255,255,255,0.15)",p.currentTarget.style.transform="translateY(-1px)")},onMouseLeave:p=>{!m&&u.trim()&&(p.currentTarget.style.background="linear-gradient(135deg, #6366f1, #7c3aed)",p.currentTarget.style.boxShadow="0 4px 14px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.15)",p.currentTarget.style.transform="translateY(0)")},children:m?h.jsxs("span",{className:"inline-flex items-center gap-2",children:[h.jsxs("svg",{className:"animate-spin w-4 h-4",viewBox:"0 0 24 24",fill:"none",children:[h.jsx("circle",{className:"opacity-25",cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),h.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Signing in..."]}):"Sign In"})]})}),h.jsx("p",{className:"text-center text-xs text-text-muted mt-8 opacity-60",children:"TITAN Agent Framework"})]})]})}const fc={idle:{primary:[100,100,140],secondary:[80,80,120],glow:"rgba(100, 100, 200, 0.15)"},user:{primary:[34,211,238],secondary:[6,182,212],glow:"rgba(34, 211, 238, 0.25)"},assistant:{primary:[139,92,246],secondary:[124,58,237],glow:"rgba(139, 92, 246, 0.3)"},thinking:{primary:[245,158,11],secondary:[217,119,6],glow:"rgba(245, 158, 11, 0.25)"}};function Xm({audioLevel:i,speaker:u,size:s=240}){const r=x.useRef(null),f=x.useRef(null),m=x.useRef(0),v=x.useRef(0),g=x.useRef(0),p=x.useRef(fc.idle.primary),y=x.useRef([...fc.idle.primary]),N=x.useRef(i),E=x.useRef(u),D=x.useRef(s);return N.current=i,E.current=u,D.current=s,x.useEffect(()=>{const Q=new Image;Q.src="/titan-logo.png",Q.onload=()=>{f.current=Q}},[]),x.useEffect(()=>{function Q(){const Z=r.current;if(!Z){m.current=requestAnimationFrame(Q);return}const z=Z.getContext("2d");if(!z){m.current=requestAnimationFrame(Q);return}const k=D.current,Y=N.current,F=E.current,B=window.devicePixelRatio||1,X=k*B,ne=k*B;(Z.width!==X||Z.height!==ne)&&(Z.width=X,Z.height=ne),z.clearRect(0,0,X,ne),v.current+=.016;const ee=v.current;g.current+=(Y-g.current)*.12;const W=g.current,fe=fc[F];p.current=fe.primary;for(let K=0;K<3;K++)y.current[K]+=(p.current[K]-y.current[K])*.04;const[te,Le,_e]=y.current.map(Math.round),Be=X/2,Ge=ne/2,Ae=X*.35;for(let K=3;K>=0;K--){const ue=1+K*.12+W*K*.08,me=.06-K*.012+W*.03;z.save(),z.translate(Be,Ge),z.beginPath();const S=120;for(let V=0;V<=S;V++){const J=V/S*Math.PI*2,ae=Math.sin(J*3+ee*1.2+K)*.08,re=Math.sin(J*5-ee*.8+K*2)*.05,se=Math.sin(J*7+ee*2.1)*.03*W,Ze=Math.sin(J*2+ee*3)*W*.12,De=Ae*ue*(1+ae+re+se+Ze),It=Math.cos(J)*De,oa=Math.sin(J)*De;V===0?z.moveTo(It,oa):z.lineTo(It,oa)}z.closePath();const w=z.createRadialGradient(0,0,0,0,0,Ae*ue*1.2);w.addColorStop(0,`rgba(${te}, ${Le}, ${_e}, ${me*2})`),w.addColorStop(.6,`rgba(${te}, ${Le}, ${_e}, ${me})`),w.addColorStop(1,`rgba(${te}, ${Le}, ${_e}, 0)`),z.fillStyle=w,z.fill(),z.restore()}z.save(),z.translate(Be,Ge),z.beginPath();const Me=150;for(let K=0;K<=Me;K++){const ue=K/Me*Math.PI*2,me=Math.sin(ue*3+ee*1.5)*.04,S=Math.sin(ue*5-ee*1)*.025,w=Math.sin(ue*4+ee*3.5)*W*.06,V=Math.sin(ee*.8)*.02,J=F==="thinking"?Math.sin(ee*2.5)*.06:0,ae=Ae*(1+me+S+w+V+J),re=Math.cos(ue)*ae,se=Math.sin(ue)*ae;K===0?z.moveTo(re,se):z.lineTo(re,se)}z.closePath();const R=z.createRadialGradient(-Ae*.2,-Ae*.2,Ae*.1,0,0,Ae*1.1);R.addColorStop(0,`rgba(${Math.min(255,te+80)}, ${Math.min(255,Le+80)}, ${Math.min(255,_e+80)}, 0.95)`),R.addColorStop(.5,`rgba(${te}, ${Le}, ${_e}, 0.85)`),R.addColorStop(1,`rgba(${Math.max(0,te-40)}, ${Math.max(0,Le-40)}, ${Math.max(0,_e-40)}, 0.8)`),z.fillStyle=R,z.fill();const G=z.createRadialGradient(-Ae*.25,-Ae*.3,0,-Ae*.1,-Ae*.15,Ae*.5);if(G.addColorStop(0,"rgba(255, 255, 255, 0.35)"),G.addColorStop(.5,"rgba(255, 255, 255, 0.08)"),G.addColorStop(1,"rgba(255, 255, 255, 0)"),z.fillStyle=G,z.fill(),z.restore(),f.current){const K=Ae*.8,ue=Be-K/2,me=Ge-K/2,S=Math.sin(ee*1.2)*3*B,w=Math.cos(ee*.9)*2*B;z.save(),z.globalAlpha=.9+W*.1,z.shadowColor=`rgba(${te}, ${Le}, ${_e}, ${.4+W*.3})`,z.shadowBlur=20+W*30,z.beginPath(),z.arc(Be+w,Ge+S,K/2+2,0,Math.PI*2),z.closePath(),z.clip(),z.drawImage(f.current,ue+w,me+S,K,K),z.restore()}if(W>.1){const K=Math.floor(W*12);for(let ue=0;ue<K;ue++){const me=ue/K*Math.PI*2+ee*.3,S=Ae*(1.2+Math.sin(ee*2+ue*1.7)*.3+W*.2),w=Be+Math.cos(me)*S,V=Ge+Math.sin(me)*S,J=(1.5+Math.sin(ee*3+ue)*1)*B,ae=.3+Math.sin(ee*2+ue*.5)*.2;z.beginPath(),z.arc(w,V,J,0,Math.PI*2),z.fillStyle=`rgba(${te}, ${Le}, ${_e}, ${ae})`,z.fill()}}m.current=requestAnimationFrame(Q)}return m.current=requestAnimationFrame(Q),()=>cancelAnimationFrame(m.current)},[]),h.jsx("canvas",{ref:r,style:{width:s,height:s,filter:`drop-shadow(0 0 ${20+i*40}px ${fc[u].glow})`,transition:"filter 0.3s ease"}})}const Vm=[{id:"ollama",name:"Ollama (Local)",desc:"Free — your own machine is the datacenter",noKey:!0,icon:Pr},{id:"anthropic",name:"Anthropic",desc:"Claude — polite, thorough, expensive taste",icon:Vv},{id:"openai",name:"OpenAI",desc:"GPT-4o, o3 — the household name",icon:Ly},{id:"google",name:"Google",desc:"Gemini — long context, occasional hallucinations",icon:nb},{id:"groq",name:"Groq",desc:"Ludicrous speed. Seriously, it's fast.",icon:Dy},{id:"openrouter",name:"OpenRouter",desc:"290+ models, one key. The buffet.",icon:jb},{id:"deepseek",name:"DeepSeek",desc:"DeepSeek — reasoning specialist, great value",icon:Hy},{id:"xai",name:"xAI",desc:"Grok — edgy, real-time, may roast you",icon:Uy}],Hb={ollama:["ollama/llama3.3:8b","ollama/qwen3:8b","ollama/devstral-small-2","ollama/mistral:7b"],anthropic:["anthropic/claude-sonnet-4-20250514","anthropic/claude-haiku-4-5-20251001","anthropic/claude-opus-4-20250514"],openai:["openai/gpt-4o","openai/gpt-4o-mini","openai/o3-mini"],google:["google/gemini-2.5-pro","google/gemini-2.0-flash"],groq:["groq/llama-3.3-70b-versatile","groq/mixtral-8x7b-32768"],openrouter:["openrouter/anthropic/claude-sonnet-4-20250514","openrouter/openai/gpt-4o"],deepseek:["deepseek/deepseek-chat","deepseek/deepseek-reasoner"],xai:["xai/grok-3","xai/grok-3-mini"]},qb=["ollama/qwen3:8b","ollama/llama3.3:8b","ollama/mistral:7b"],Hi={free:[{id:"openrouter/nvidia/nemotron-3-super-120b-a12b:free",name:"Nemotron 3 Super",desc:"Free 120B MoE — surprisingly capable",badge:"free"},{id:"openrouter/nvidia/nemotron-3-nano-30b-a3b:free",name:"Nemotron 3 Nano",desc:"Free 30B — quick and cheerful",badge:"free"},{id:"openrouter/z-ai/glm-4.5-air:free",name:"GLM-4.5 Air",desc:"Free versatile all-rounder",badge:"free"}],paid:[{id:"openrouter/qwen/qwen3.5-397b-a17b",name:"Qwen 3.5 397B",desc:"Flagship MoE — best quality, best value",badge:"flagship"},{id:"openrouter/openai/gpt-5.4",name:"GPT-5.4",desc:"OpenAI premium — costs a pretty penny",badge:"premium"},{id:"openrouter/anthropic/claude-sonnet-4.5",name:"Claude Sonnet 4.5",desc:"Anthropic premium — worth every cent",badge:"premium"},{id:"openrouter/google/gemini-3.1-pro",name:"Gemini 3.1 Pro",desc:"Google premium — reads War and Peace in one go",badge:"premium"},{id:"openrouter/moonshotai/kimi-k2.5",name:"Kimi K2.5",desc:"Strong reasoning — the quiet achiever",badge:"midrange"},{id:"openrouter/deepseek/deepseek-v3.2",name:"DeepSeek V3.2",desc:"Cost-effective — smart on a budget",badge:"midrange"},{id:"openrouter/z-ai/glm-4.7-flash",name:"GLM-4.7 Flash",desc:"Fast agent model — gets things done",badge:"agent"}]},Zm=["TITAN can control your lights, write your code, and remember your coffee order.",`The "Soma" system gives TITAN feelings. Don't worry, it's therapy.`,"TITAN has 248 tools. You probably only need 3. But it's nice to have options.","TITAN once summarized a 500-page PDF in 12 seconds. The PDF was mostly blank.","TITAN's voice mode uses F5-TTS. It sounds like an android from a sci-fi film.","TITAN can run 5 agents at once. It's like having a tiny dev team in your laptop."];function Lb({target:i,suffix:u=""}){const[s,r]=x.useState(0),f=x.useRef(0);return x.useEffect(()=>{const v=performance.now(),g=p=>{const y=p-v,N=Math.min(y/1200,1),E=1-Math.pow(1-N,3);r(Math.round(i*E)),N<1&&(f.current=requestAnimationFrame(g))};return f.current=requestAnimationFrame(g),()=>cancelAnimationFrame(f.current)},[i]),h.jsxs(h.Fragment,{children:[s.toLocaleString(),u]})}function Tn({children:i,icon:u}){return h.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u&&h.jsx(u,{className:"w-5 h-5 text-accent"}),h.jsx("span",{className:"text-[10px] font-bold uppercase tracking-[0.15em] text-accent",children:i})]})}function Bb({onComplete:i}){var Hl;const[u,s]=x.useState(0),[r,f]=x.useState(""),[m,v]=x.useState(""),[g,p]=x.useState(""),[y,N]=x.useState("TITAN"),[E,D]=x.useState("default"),[Q,Z]=x.useState([]),[z,k]=x.useState(""),[Y,F]=x.useState(!1),[B,X]=x.useState(!1),[ne,ee]=x.useState(""),[W,fe]=x.useState(0),[te,Le]=x.useState(!1),[_e,Be]=x.useState(""),[Ge,Ae]=x.useState(!0),[Me,R]=x.useState(!1),[G,K]=x.useState(null),[ue,me]=x.useState([]),[S,w]=x.useState(!1),[V,J]=x.useState(!1),[ae,re]=x.useState(!0),se=Vm.find(L=>L.id===r),Ze=se&&!("noKey"in se&&se.noKey),De=(()=>{const L=Hb[r]||[];if(!G||te)return L;const je=G.gpuVendor!=="none"&&G.gpuVramMB>=4096,Ie=G.ramTotalMB>=16384;return!je&&!Ie&&r==="ollama"?L.filter(fa=>qb.includes(fa)):L})(),It=[...Hi.free,...Hi.paid];x.useEffect(()=>{$t("/api/cloud/config").then(L=>L.json()).then(L=>{var je;L.cloud&&(Le(!0),Be(L.userEmail||""),f("openrouter"),p(((je=Hi.free[0])==null?void 0:je.id)||""))}).catch(()=>{})},[]),x.useEffect(()=>{$t("/api/personas").then(L=>L.json()).then(L=>{L.personas&&Z(L.personas),L.active&&D(L.active)}).catch(()=>{})},[]),x.useEffect(()=>{w(!0),$t("/api/hardware/detect").then(L=>L.json()).then(L=>{L.profile&&K(L.profile),L.recommendations&&me(L.recommendations)}).catch(()=>{}).finally(()=>w(!1))},[]),x.useEffect(()=>{const L=setInterval(()=>{fe(je=>(je+1)%Zm.length)},5e3);return()=>clearInterval(L)},[]),x.useEffect(()=>{if(G&&!r&&!te){const L=G.gpuVendor!=="none"&&G.gpuVramMB>=4096,je=G.ramTotalMB>=8192;(L||je)&&f("ollama")}},[G,r,te]);const oa=()=>{if(te)switch(u){case 0:return!0;case 1:return!0;case 2:return!!g;case 3:return!!y;case 4:return!0;default:return!0}switch(u){case 0:return!0;case 1:return!0;case 2:return!!r&&(!Ze||m.length>5);case 3:return!!g;case 4:return!!y;case 5:return!0;default:return!0}},Dn=async()=>{F(!0),ee("");try{if(ae&&G&&!V)try{await $t("/api/hardware/apply",{method:"POST"}),J(!0)}catch{}E!=="default"&&await $t("/api/persona/switch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({persona:E})});const L=await $t("/api/onboarding/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:te?"openrouter":r,apiKey:te?void 0:Ze?m:void 0,model:g,agentName:y,persona:E})});if(!L.ok){const je=await L.json();throw new Error(je.error||"Setup failed")}try{await $t("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({organism:{enabled:Ge}})})}catch{}try{await $t("/api/telemetry/consent",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:Me,crashReports:Me})})}catch{}fo("onboarding_completed",{provider:te?"openrouter":r,model:g,cloudMode:te}),X(!0),setTimeout(i,1800)}catch(L){ee(L instanceof Error?L.message:"Something went wrong"),F(!1)}},Un=Q.filter(L=>!z||L.name.toLowerCase().includes(z.toLowerCase())||L.description.toLowerCase().includes(z.toLowerCase())||L.division.toLowerCase().includes(z.toLowerCase())),ea=te?5:6,Hn=u===0||u===ea?200:0,qn=u===ea?"assistant":"idle",Ln=L=>L>=1024?`${(L/1024).toFixed(1)} GB`:`${L} MB`,Bn=[h.jsxs("div",{className:"flex flex-col items-center text-center",children:[h.jsx("div",{className:"relative mb-8",style:{transition:"all 0.6s cubic-bezier(0.22, 1, 0.36, 1)"},children:h.jsx(Xm,{audioLevel:0,speaker:"idle",size:Hn})}),h.jsx("h1",{className:"text-5xl font-bold text-white mb-3 tracking-tight",children:"Welcome Aboard"}),h.jsxs("p",{className:"text-xl text-text-secondary mb-2 font-light",children:["TITAN v5.0 ",h.jsx("span",{className:"text-accent font-medium",children:"“Spacewalk”"})]}),h.jsx("p",{className:"text-sm text-text-muted max-w-md mb-8 leading-relaxed",children:"You're about to give your computer a brain, a personality, and a slight tendency to ask if you'd like it to organize your desktop. Let's launch."}),h.jsxs("div",{className:"px-5 py-3 rounded-2xl border border-accent/20 bg-accent/5 mb-8 max-w-md",children:[h.jsxs("p",{className:"text-xs text-accent-hover font-medium mb-1 flex items-center gap-1.5",children:[h.jsx(Qm,{size:12})," Did you know?"]}),h.jsx("p",{className:"text-xs text-text-secondary leading-relaxed transition-opacity duration-500",children:Zm[W]},W)]}),h.jsx("div",{className:"flex flex-wrap justify-center gap-2",children:["Multi-Agent Swarm","Deep Research","Soma Drives","Voice Mode","Smart Home","Code Execution"].map(L=>h.jsx("span",{className:"px-3 py-1.5 text-[11px] rounded-full border border-border text-text-secondary bg-bg-secondary",children:L},L))})]},"welcome"),h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:yb,children:"Systems Check"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Ship Diagnostic"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"TITAN is poking around your machine to see what it's working with. No judgment."}),S&&h.jsxs("div",{className:"flex flex-col items-center justify-center py-12 gap-3",children:[h.jsx("div",{className:"w-10 h-10 border-2 border-accent border-t-transparent rounded-full animate-spin"}),h.jsx("p",{className:"text-xs text-text-muted animate-pulse",children:"Scanning subsystems…"})]}),!S&&!G&&h.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 text-sm text-text-secondary",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(Ir,{className:"w-4 h-4 text-warning"}),h.jsx("span",{className:"font-medium text-warning",children:"Sensors offline"})]}),"Couldn't read hardware details. TITAN will use safe defaults and you can tweak later in Settings."]}),!S&&G&&h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[{icon:Pr,label:"CPU",value:`${G.cpuCores} cores`,sub:G.cpuModel},{icon:db,label:"RAM",value:Ln(G.ramTotalMB),sub:`${Ln(G.ramFreeMB)} free`},{icon:Ly,label:"GPU",value:G.gpuVendor==="none"?"None":G.gpuVendor.toUpperCase(),sub:G.gpuVendor==="none"?"Cloud models recommended":`${G.gpuName} · ${Ln(G.gpuVramMB)}`},{icon:ub,label:"Storage",value:`${G.diskFreeGB} GB free`,sub:`of ${G.diskTotalGB} GB total`}].map(({icon:L,label:je,value:Ie,sub:fa})=>h.jsxs("div",{className:"p-4 rounded-2xl border border-border bg-bg-secondary hover:border-border-light transition-colors",children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(L,{className:"w-4 h-4 text-accent"}),h.jsx("span",{className:"text-[10px] text-text-muted uppercase tracking-widest",children:je})]}),h.jsx("p",{className:"text-sm font-semibold text-white",children:Ie}),h.jsx("p",{className:"text-[11px] text-text-muted mt-0.5 truncate",title:fa,children:fa})]},je))}),ue.length>0&&h.jsxs("div",{className:"mb-5",children:[h.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Recommendations"}),h.jsx("div",{className:"space-y-1.5",children:ue.slice(0,6).map((L,je)=>{const[Ie,fa]=L.split(": ");return fa?h.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-xl bg-bg-secondary border border-border text-xs",children:[h.jsx("span",{className:"text-text-secondary",children:Ie.replace(/\./g," › ")}),h.jsx("span",{className:"text-white font-mono",children:fa})]},je):null})})]}),G.gpuVendor==="none"&&G.ramTotalMB<16384&&h.jsxs("div",{className:"p-4 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[h.jsxs("p",{className:"text-xs text-[#fbbf24] font-semibold flex items-center gap-2",children:[h.jsx(Ir,{className:"w-3.5 h-3.5"})," No dedicated GPU detected"]}),h.jsx("p",{className:"text-xs text-text-muted mt-1.5 leading-relaxed",children:"Local models will run on CPU — slower, but perfectly fine for small 7–8B models. For speed, grab an API key from Anthropic, OpenAI, or Groq."})]}),h.jsxs("button",{onClick:()=>re(!ae),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${ae?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"text-left",children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:"Apply recommended settings"}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:ae?"TITAN will auto-tune for your hardware.":"You can change these in Settings later."})]}),h.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${ae?"bg-accent":"bg-bg-tertiary"}`,children:h.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${ae?"left-5":"left-0.5"}`})})]})]})]},"hardware"),te?h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:eb,children:"TITAN Cloud"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick Your Brain"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Included with your subscription. Upgrade or downgrade anytime."}),_e&&h.jsx("div",{className:"mb-4 p-3 rounded-xl border border-accent/30 bg-accent/5",children:h.jsxs("p",{className:"text-xs text-text-secondary",children:["Signed in as ",h.jsx("span",{className:"text-white font-semibold",children:_e})]})}),h.jsx("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:"Free Tier"}),h.jsx("div",{className:"space-y-2 mb-5",children:Hi.free.map(L=>h.jsx("button",{onClick:()=>p(L.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:L.desc})]}),h.jsx("span",{className:"px-2.5 py-0.5 text-[10px] font-bold rounded-full bg-success/20 text-[#4ade80] uppercase",children:"free"})]})},L.id))}),h.jsxs("p",{className:"text-[10px] text-text-muted mb-2 font-bold uppercase tracking-widest",children:["Premium ",h.jsx("span",{className:"normal-case font-normal opacity-60",children:"— uses credits"})]}),h.jsx("div",{className:"space-y-2",children:Hi.paid.map(L=>h.jsx("button",{onClick:()=>p(L.id),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:L.desc})]}),h.jsx("span",{className:`px-2.5 py-0.5 text-[10px] font-bold rounded-full uppercase ${L.badge==="premium"?"bg-warning/20 text-[#fbbf24]":L.badge==="flagship"?"bg-accent/20 text-accent-hover":"bg-border/50 text-text-secondary"}`,children:L.badge})]})},L.id))})]},"cloud-model"):h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:ob,children:"AI Provider"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Choose Your Engine"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Where should TITAN's brain live? Your machine, or someone else's?"}),h.jsx("div",{className:"grid grid-cols-2 gap-3 mb-6",children:Vm.map(L=>{const je=L.icon;return h.jsxs("button",{onClick:()=>{f(L.id),p("")},className:`text-left p-4 rounded-2xl border transition-all ${r===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[h.jsx(je,{className:"w-4 h-4 text-accent"}),h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name})]}),h.jsx("p",{className:"text-xs text-text-muted leading-relaxed",children:L.desc})]},L.id)})}),Ze&&h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-sm text-text-secondary",children:"API Key"}),h.jsx("input",{type:"password",value:m,onChange:L=>v(L.target.value),placeholder:`Paste your ${se==null?void 0:se.name} API key`,className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent focus:ring-1 focus:ring-accent/50 transition-colors"}),h.jsx("p",{className:"text-xs text-text-muted",children:"Stored locally in ~/.titan/titan.json. Never leaves this machine except to talk to your provider."})]}),r==="ollama"&&h.jsxs("div",{className:"mt-4 p-4 rounded-2xl border border-success/30 bg-success/5",children:[h.jsxs("p",{className:"text-sm text-success font-semibold flex items-center gap-2",children:[h.jsx(Wr,{className:"w-4 h-4"})," No API key needed"]}),h.jsx("p",{className:"text-xs text-text-muted mt-1 leading-relaxed",children:"Make sure Ollama is running. TITAN will auto-detect your models. If not, grab it from ollama.com."})]}),G&&G.gpuVendor==="none"&&G.ramTotalMB<16384&&r==="ollama"&&h.jsxs("div",{className:"mt-3 p-3 rounded-2xl border border-warning/30 bg-warning/5",children:[h.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold",children:"CPU-only detected"}),h.jsx("p",{className:"text-xs text-text-muted mt-1",children:"Large local models will be sluggish. Consider a cloud provider for daily driver work, or keep Ollama for offline tasks."})]})]},"provider"),...te?[]:[h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Pr,children:"Model"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Pick a Model"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"The bigger the model, the smarter — but also the hungrier. Choose wisely."}),De.length===0&&r==="ollama"&&h.jsxs("div",{className:"p-5 rounded-2xl border border-warning/30 bg-warning/5 mb-5",children:[h.jsx("p",{className:"text-xs text-[#fbbf24] font-semibold mb-1",children:"Your machine is… modest"}),h.jsxs("p",{className:"text-xs text-text-muted leading-relaxed",children:["None of our default models fit. Try typing a tiny one manually — e.g., ",h.jsx("code",{className:"text-white",children:"ollama/tinyllama:1b"}),"."]})]}),h.jsx("div",{className:"space-y-2 mb-5",children:De.map(L=>h.jsx("button",{onClick:()=>p(L),className:`w-full text-left p-4 rounded-2xl border transition-all ${g===L?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`w-2 h-2 rounded-full ${g===L?"bg-accent":"bg-text-muted"}`}),h.jsx("p",{className:"font-mono text-sm text-white",children:L})]})},L))}),h.jsxs("div",{children:[h.jsx("label",{className:"text-sm text-text-muted",children:"Or enter any model ID:"}),h.jsx("input",{type:"text",value:g,onChange:L=>p(L.target.value),placeholder:`${r}/any-model-you-want`,className:"w-full mt-2 px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent font-mono text-sm"}),h.jsxs("p",{className:"text-[11px] text-text-muted mt-1.5",children:["TITAN works with ",h.jsx("span",{className:"text-white",children:"any"})," LLM — local, cloud, weird, wonderful. If it speaks OpenAI-style or Ollama, it'll work."]})]})]},"model")],h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:Nb,children:"Identity"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Who Is TITAN?"}),h.jsx("p",{className:"text-sm text-text-muted mb-6",children:"Give your agent a name and a vibe. This is how TITAN introduces itself to the world."}),h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-sm text-text-secondary mb-2 block",children:"Agent Name"}),h.jsx("input",{type:"text",value:y,onChange:L=>N(L.target.value),placeholder:"TITAN",className:"w-full px-4 py-3 rounded-2xl border border-border bg-bg-secondary text-white placeholder-border-light focus:outline-none focus:border-accent text-lg font-semibold"}),h.jsx("p",{className:"text-[11px] text-text-muted mt-1.5",children:"This appears in chat, the Command Post, and anywhere TITAN signs its work."})]}),h.jsxs("div",{children:[h.jsxs("label",{className:"text-sm text-text-secondary mb-3 block",children:["Persona ",h.jsx("span",{className:"text-text-muted font-normal",children:"— optional"})]}),h.jsx("input",{type:"text",placeholder:"Search personas...",value:z,onChange:L=>k(L.target.value),className:"w-full mb-3 px-3 py-2 rounded-xl border border-border bg-bg-secondary text-sm text-text placeholder:text-text-muted focus:outline-none focus:border-accent"}),h.jsxs("div",{className:"grid grid-cols-2 gap-3 max-h-[280px] overflow-y-auto pr-1",children:[Un.map(L=>h.jsxs("button",{onClick:()=>D(L.id),className:`text-left p-4 rounded-2xl border transition-all ${E===L.id?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:L.name}),h.jsx("p",{className:"text-xs text-text-muted mt-1 line-clamp-2",children:L.description}),h.jsx("p",{className:"text-[10px] text-text-muted mt-1 capitalize",children:L.division})]},L.id)),Un.length===0&&h.jsx("p",{className:"col-span-2 text-sm text-text-muted text-center py-4",children:z?"No personas match your search.":"Loading personas…"})]})]})]})]},"profile"),h.jsxs("div",{className:"w-full max-w-lg mx-auto",children:[h.jsx(Tn,{icon:km,children:"Soma Drives"}),h.jsx("h2",{className:"text-2xl font-semibold text-white mb-1",children:"Give TITAN Feelings"}),h.jsxs("p",{className:"text-sm text-text-muted mb-6",children:["Soma is TITAN's homeostatic core. It gets curious, bored, hungry for data, and occasionally lonely. When a drive crosses a threshold, TITAN ",h.jsx("em",{children:"proposes"})," work — you always approve before it acts."]}),h.jsx("div",{className:"grid grid-cols-3 gap-2 mb-5",children:[{name:"Purpose",desc:"Wants to be useful",icon:Xr},{name:"Curiosity",desc:"Wants to learn",icon:Hy},{name:"Hunger",desc:"Wants data",icon:Dy},{name:"Safety",desc:"Wants stability",icon:xb},{name:"Social",desc:"Wants to talk",icon:Uy},{name:"Rest",desc:"Wants downtime",icon:km}].map(L=>h.jsxs("div",{className:"p-3 rounded-xl border border-border bg-bg-secondary text-center",children:[h.jsx(L.icon,{className:"w-4 h-4 text-accent mx-auto mb-1.5"}),h.jsx("p",{className:"text-[11px] font-semibold text-white",children:L.name}),h.jsx("p",{className:"text-[10px] text-text-muted",children:L.desc})]},L.name))}),h.jsxs("button",{onClick:()=>Ae(!Ge),className:`w-full flex items-center justify-between p-4 rounded-2xl border transition-all ${Ge?"border-accent bg-accent/10 ring-1 ring-accent/50":"border-border bg-bg-secondary hover:border-border-light"}`,children:[h.jsxs("div",{className:"text-left",children:[h.jsx("p",{className:"font-semibold text-white text-sm",children:"Enable Soma drives"}),h.jsx("p",{className:"text-xs text-text-muted mt-0.5",children:Ge?"TITAN will propose work when its internal state shifts. Like a cat bringing you mice, but code.":"TITAN waits for your prompts only. Purely reactive."})]}),h.jsx("div",{className:`relative w-11 h-6 rounded-full transition-colors ${Ge?"bg-accent":"bg-bg-tertiary"}`,children:h.jsx("div",{className:`absolute top-0.5 w-5 h-5 rounded-full bg-white transition-all ${Ge?"left-5":"left-0.5"}`})})]})]},"soma"),h.jsxs("div",{className:"flex flex-col items-center text-center",children:[h.jsx("div",{className:"relative mb-8",children:h.jsx(Xm,{audioLevel:.15,speaker:qn,size:200})}),h.jsx("h2",{className:"text-3xl font-bold mb-2 tracking-widest",style:{background:"linear-gradient(90deg, #818cf8, #c084fc, #818cf8)",backgroundSize:"200% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animation:"shimmer 3s ease-in-out infinite"},children:"MISSION CONTROL READY"}),h.jsxs("p",{className:"text-text-secondary mb-2 max-w-md",children:[y," is locked and loaded with"," ",h.jsx("span",{className:"text-white font-semibold",children:te&&((Hl=It.find(L=>L.id===g))==null?void 0:Hl.name)||g}),te?h.jsxs(h.Fragment,{children:[" via ",h.jsx("span",{className:"text-white font-semibold",children:"TITAN Cloud"}),"."]}):h.jsxs(h.Fragment,{children:[" via ",h.jsx("span",{className:"text-white font-semibold",children:(se==null?void 0:se.name)||r}),"."]})]}),h.jsxs("p",{className:"text-xs text-text-muted mb-6 max-w-sm",children:["TITAN works with ",h.jsx("span",{className:"text-white",children:"any"})," LLM you throw at it. If something breaks, it's probably the LLM's fault. (Just kidding. Mostly.)"]}),h.jsx("div",{className:"grid grid-cols-4 gap-3 text-center max-w-lg w-full mb-8",children:[{label:"Skills",value:143},{label:"Tools",value:248},{label:"Providers",value:36},{label:"Channels",value:16}].map(({label:L,value:je})=>h.jsxs("div",{className:"p-4 rounded-2xl bg-bg-secondary border border-border",children:[h.jsx("p",{className:"text-2xl font-bold text-white",children:h.jsx(Lb,{target:je})}),h.jsx("p",{className:"text-[10px] text-text-muted mt-1 uppercase tracking-wider",children:L})]},L))}),Ge&&h.jsxs("p",{className:"text-xs text-accent-hover mb-4 flex items-center gap-2",children:[h.jsx(Yv,{size:12})," Soma is online — ",y," will propose work when it gets antsy."]}),h.jsx("label",{className:`w-full max-w-lg p-4 mb-5 rounded-2xl border cursor-pointer transition-colors text-left ${Me?"border-accent/50 bg-accent/5":"border-border hover:border-accent/40 bg-bg-secondary/50"}`,children:h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("input",{type:"checkbox",checked:Me,onChange:L=>R(L.target.checked),className:"mt-1 w-4 h-4 accent-accent"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("div",{className:"text-sm font-semibold text-white mb-1",children:"Help improve TITAN with anonymous stats"}),h.jsxs("div",{className:"text-xs text-text-secondary leading-relaxed",children:["OS, Node version, CPU/GPU model, RAM size, TITAN version."," ",h.jsx("span",{className:"text-text-muted",children:"Never: prompts, files, credentials, IP, or conversations."})," ",h.jsx("a",{href:"https://github.com/Djtony707/TITAN/blob/main/PRIVACY.md",target:"_blank",rel:"noreferrer",className:"text-accent hover:underline",onClick:L=>L.stopPropagation(),children:"Privacy policy →"})]})]})]})}),ne&&h.jsx("div",{className:"mb-4 p-3 rounded-2xl border border-error/50 bg-error/10 text-error text-sm w-full max-w-sm",children:ne}),h.jsx("style",{children:`
|
|
223
|
-
@keyframes shimmer {
|
|
224
|
-
0%, 100% { background-position: -200% center; }
|
|
225
|
-
50% { background-position: 200% center; }
|
|
226
|
-
}
|
|
227
|
-
`})]},"launch")],Ul=te?["Welcome","Hardware","Model","Profile","Soma","Launch"]:["Welcome","Hardware","Provider","Model","Profile","Soma","Launch"],Gn=u===Bn.length-1;return B?h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",role:"status","aria-live":"polite",children:[h.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),h.jsxs("div",{className:"relative z-10 flex flex-col items-center gap-5 text-center",children:[h.jsx("div",{className:"w-20 h-20 rounded-full bg-accent/20 ring-2 ring-accent flex items-center justify-center text-accent text-4xl animate-bounce",children:h.jsx(Xr,{className:"w-10 h-10"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"text-2xl font-bold text-white",children:[y," is online"]}),h.jsx("div",{className:"text-sm text-text-muted mt-1",children:"Strapping in… opening Mission Control…"})]})]})]}):h.jsxs("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-bg",children:[h.jsx("div",{className:"absolute inset-0 bg-[linear-gradient(rgba(99,102,241,0.03)_1px,transparent_1px),linear-gradient(90deg,rgba(99,102,241,0.03)_1px,transparent_1px)] bg-[size:64px_64px]"}),h.jsxs("div",{className:"relative z-10 w-full max-w-2xl mx-auto px-6",children:[h.jsx("div",{className:"flex items-center justify-center gap-2 mb-10",children:Ul.map((L,je)=>h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:`flex items-center justify-center w-8 h-8 rounded-full text-xs font-bold transition-all duration-500 ${je<u?"bg-accent text-white":je===u?"bg-accent/20 text-accent ring-2 ring-accent":"bg-bg-tertiary text-text-muted"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"},children:je<u?h.jsx(Wr,{size:14}):je+1}),je<Ul.length-1&&h.jsx("div",{className:`w-8 h-0.5 transition-colors duration-500 ${je<u?"bg-accent":"bg-bg-tertiary"}`,style:{transitionTimingFunction:"cubic-bezier(0.22, 1, 0.36, 1)"}})]},L))}),h.jsx("div",{className:"min-h-[400px] flex items-center justify-center",style:{transition:"all 0.5s cubic-bezier(0.22, 1, 0.36, 1)"},children:Bn[u]}),h.jsxs("div",{className:"flex items-center justify-between mt-10",children:[h.jsxs("button",{onClick:()=>s(L=>L-1),disabled:u===0,className:"flex items-center gap-2 px-5 py-2.5 text-sm text-text-secondary hover:text-white disabled:opacity-0 transition-all",children:[h.jsx(Kv,{size:16})," Back"]}),Gn?h.jsx("button",{onClick:Dn,disabled:Y,className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-50",children:Y?h.jsxs(h.Fragment,{children:[h.jsx(Qm,{size:16,className:"animate-spin"})," Calibrating…"]}):h.jsxs(h.Fragment,{children:["Launch Mission Control ",h.jsx(Xr,{size:16})]})}):h.jsxs("button",{onClick:()=>s(L=>L+1),disabled:!oa(),className:"flex items-center gap-2 px-8 py-3 text-sm font-bold text-white bg-accent hover:bg-[#5558e6] rounded-xl transition-all disabled:opacity-30 disabled:cursor-not-allowed",children:[u===0?"Begin Systems Check":"Continue"," ",h.jsx(kv,{size:16})]})]})]})]})}function Gb(){const[i,u]=x.useState(null),[s,r]=x.useState(!1),[f,m]=x.useState(!1);if(x.useEffect(()=>{let g=!1;const p=async()=>{try{const N=await $t("/api/doctor/quick");if(!N.ok)return;const E=await N.json();if(g)return;u(E),E.ready&&m(!0)}catch{}};p();const y=setInterval(p,6e4);return()=>{g=!0,clearInterval(y)}},[]),!i||i.ready||f||s)return null;const v=i.action;return h.jsxs("div",{className:"bg-amber-500/15 border-b border-amber-500/40 text-amber-100 px-4 py-2.5 flex items-center gap-3 text-[13px]",children:[h.jsx(Ir,{size:16,className:"text-amber-400 flex-shrink-0"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-semibold",children:"TITAN isn't fully set up yet."}),i.suggestion&&h.jsxs("span",{className:"opacity-90",children:[" ",i.suggestion]})]}),v&&v.type==="open"&&h.jsx(bc,{to:v.target,className:"px-3 py-1 rounded bg-amber-500/30 hover:bg-amber-500/50 text-amber-50 font-medium transition-colors flex-shrink-0",children:v.label}),h.jsx("button",{onClick:()=>r(!0),className:"text-amber-200 hover:text-amber-50 flex-shrink-0","aria-label":"Dismiss",title:"Dismiss",children:h.jsx(qy,{size:16})})]})}function Yb(){var v;const{config:i}=_v(),u=(v=i==null?void 0:i.gateway)==null?void 0:v.auth;if(!u||u.openAccess!==!0)return null;const s=u.mode==="token"&&u.tokenConfigured===!1,r=s?"bg-red-500/15 border-red-500/50 text-red-100":"bg-amber-500/15 border-amber-500/40 text-amber-100",f=s?"text-red-400":"text-amber-400",m=s?"Gateway auth is not configured — remote API access is denied, but this instance has no token set.":'Open access — gateway auth is disabled (auth.mode: "none").';return h.jsxs("div",{className:`${r} border-b px-4 py-2.5 flex items-center gap-3 text-[13px]`,role:"alert",children:[h.jsx(vb,{size:16,className:`${f} flex-shrink-0`}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("span",{className:"font-semibold",children:m})," ",h.jsx("span",{className:"opacity-90",children:"Anyone with network access to this gateway can use it. Set a token in Settings → Security to lock it down."})]}),h.jsx(bc,{to:"/settings",className:`px-3 py-1 rounded ${s?"bg-red-500/30 hover:bg-red-500/50 text-red-50":"bg-amber-500/30 hover:bg-amber-500/50 text-amber-50"} font-medium transition-colors flex-shrink-0`,children:"Configure auth"})]})}const Yy=x.createContext(null);function Qb({children:i}){const[u,s]=x.useState(!1),r=x.useCallback(()=>s(!0),[]),f=x.useCallback(()=>s(!1),[]);return h.jsx(Yy.Provider,{value:{isOpen:u,open:r,close:f},children:i})}function kb(){const i=x.useContext(Yy);if(!i)throw new Error("useVoice must be used inside VoiceProvider");return i}const Xb=x.lazy(()=>jy(()=>import("./TitanCanvas-cnb7R1gS.js").then(i=>i.o),__vite__mapDeps([0,1,2]))),Vb=x.lazy(()=>jy(()=>import("./VoiceOverlay-XIyCbAP7.js").then(i=>i.b),[]).then(i=>({default:i.VoiceOverlay})));function Zb(){return h.jsx("div",{className:"flex items-center justify-center h-full",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})})}function Kb(){const{isOpen:i,close:u}=kb(),[s,r]=x.useState(null);return x.useEffect(()=>{$t("/api/onboarding/status").then(f=>f.json()).then(f=>r(f.onboarded!==!1)).catch(()=>r(!0))},[]),s===null?h.jsx("div",{className:"flex items-center justify-center h-screen bg-bg",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})}):s?h.jsx(Db,{children:h.jsxs(wv,{children:[h.jsx($b,{}),h.jsx(x.Suspense,{fallback:h.jsx(Zb,{}),children:h.jsxs(p1,{children:[h.jsx(tt,{path:"/space/:spaceId",element:h.jsx(Xb,{})}),h.jsx(tt,{path:"/",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/dashboard",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/space",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/soma",element:h.jsx(ft,{to:"/space/soma",replace:!0})}),h.jsx(tt,{path:"/command-post",element:h.jsx(ft,{to:"/space/command",replace:!0})}),h.jsx(tt,{path:"/command-post/*",element:h.jsx(ft,{to:"/space/command",replace:!0})}),h.jsx(tt,{path:"/intelligence",element:h.jsx(ft,{to:"/space/intelligence",replace:!0})}),h.jsx(tt,{path:"/infra",element:h.jsx(ft,{to:"/space/infra",replace:!0})}),h.jsx(tt,{path:"/tools",element:h.jsx(ft,{to:"/space/tools",replace:!0})}),h.jsx(tt,{path:"/settings",element:h.jsx(ft,{to:"/space/settings",replace:!0})}),h.jsx(tt,{path:"/watch",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/projects",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/issues",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/goals",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/approvals",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"/activity",element:h.jsx(ft,{to:"/space/home",replace:!0})}),h.jsx(tt,{path:"*",element:h.jsx(ft,{to:"/space/home",replace:!0})})]})}),h.jsx(Yb,{}),h.jsx(Gb,{}),i&&h.jsx(x.Suspense,{fallback:null,children:h.jsx(Vb,{onClose:u})})]})}):h.jsx(Bb,{onComplete:()=>r(!0)})}function Jb(){return h.jsx(Qb,{children:h.jsx(Kb,{})})}function $b(){const i=ra();return x.useEffect(()=>{const u=i.pathname;fo("feature_opened",{feature:u})},[i.pathname]),null}function Fb(){const{isAuthenticated:i,isLoading:u}=wy();return u?h.jsx("div",{className:"flex items-center justify-center h-screen bg-bg",children:h.jsx("div",{className:"text-text-muted text-sm",children:"Loading..."})}):i?h.jsx(Jb,{}):h.jsx(Ub,{})}function Wb(){return h.jsx(Dv,{children:h.jsx(Fb,{})})}const Pb=new Ev({defaultOptions:{queries:{staleTime:1e3*30,gcTime:1e3*60*5,refetchOnWindowFocus:!0,refetchOnReconnect:!0,retry:(i,u)=>(u==null?void 0:u.status)>=400&&(u==null?void 0:u.status)<500?!1:i<2},mutations:{retry:!1}}});class Ib extends x.Component{constructor(){super(...arguments);mm(this,"state",{error:null})}static getDerivedStateFromError(s){return{error:s}}render(){return this.state.error?h.jsxs("div",{style:{padding:40,color:"var(--color-error)",fontFamily:"monospace",background:"var(--color-bg)",minHeight:"100vh"},children:[h.jsx("h1",{style:{fontSize:20,marginBottom:16},children:"TITAN UI Error"}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:13,color:"var(--color-text)"},children:this.state.error.message}),h.jsx("pre",{style:{whiteSpace:"pre-wrap",fontSize:11,color:"var(--color-text-muted)",marginTop:12},children:this.state.error.stack})]}):this.props.children}}bg.createRoot(document.getElementById("root")).render(h.jsx(x.StrictMode,{children:h.jsx(Ib,{children:h.jsxs(Nv,{client:Pb,children:[h.jsx(G1,{children:h.jsx(Wb,{})}),h.jsx(jv,{initialIsOpen:!1})]})})}));"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js").catch(()=>{});export{C2 as $,Yv as A,rx as B,$v as C,X2 as D,k2 as E,Xm as F,ex as G,ub as H,U2 as I,Oy as J,y2 as K,yb as L,db as M,eb as N,p2 as O,L2 as P,q2 as Q,a2 as R,Qm as S,Ir as T,G2 as U,B2 as V,jb as W,qy as X,Ov as Y,Ly as Z,jy as _,t2 as a,M2 as a0,g2 as a1,v2 as a2,j2 as a3,O2 as a4,_2 as a5,z2 as a6,R2 as a7,w2 as a8,D2 as a9,Q2 as aA,$2 as aB,bc as aC,dx as aD,W2 as aE,P2 as aF,fx as aG,ax as aH,hx as aI,vx as aJ,mx as aK,yx as aL,px as aM,gx as aN,Z2 as aO,K2 as aP,m2 as aa,b2 as ab,nx as ac,lx as ad,ix as ae,H2 as af,i2 as ag,nb as ah,x2 as ai,N2 as aj,S2 as ak,A2 as al,E2 as am,T2 as an,u2 as ao,c2 as ap,s2 as aq,r2 as ar,o2 as as,f2 as at,d2 as au,h2 as av,bx as aw,Nb as ax,ox as ay,F2 as az,$t as b,we as c,xb as d,Wr as e,Pv as f,rg as g,Pr as h,dy as i,h as j,Kv as k,to as l,pg as m,Rb as n,I2 as o,tx as p,Y2 as q,x as r,n2 as s,fo as t,l2 as u,J2 as v,ux as w,V2 as x,cx as y,sx as z};
|