@kafca/agentdock 0.1.56 → 0.1.57
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/README.md +7 -0
- package/dist/renderer/assets/{Badge-DjcoXx2J.js → Badge-CDTbmw1h.js} +1 -1
- package/dist/renderer/assets/Card-DayUo35w.js +1 -0
- package/dist/renderer/assets/Config-ByGMQuzR.js +21 -0
- package/dist/renderer/assets/CronList-XqHdVlgu.js +1 -0
- package/dist/renderer/assets/Dashboard-CZj-oANw.js +41 -0
- package/dist/renderer/assets/{EmptyState-DIZLiccW.js → EmptyState-EFMkOjZO.js} +1 -1
- package/dist/renderer/assets/HighlightedMarkdown-DyvF3DHK.js +12 -0
- package/dist/renderer/assets/Input-DxoWVc9d.js +1 -0
- package/dist/renderer/assets/{KnowledgeDetail-CJ9IYOsa.js → KnowledgeDetail-CbUb2tG7.js} +2 -2
- package/dist/renderer/assets/{KnowledgeHome-BLGPwnBO.js → KnowledgeHome-BWV1gz4f.js} +3 -3
- package/dist/renderer/assets/Logs-DqnanQTc.js +6 -0
- package/dist/renderer/assets/{Modal-CQiUpfl4.js → Modal-yY7TzR0x.js} +3 -3
- package/dist/renderer/assets/MonitorList-CIjGQkFs.js +1 -0
- package/dist/renderer/assets/Page-vwHNUdoj.js +1 -0
- package/dist/renderer/assets/{Select-D6z65IT3.js → Select-CmbK36pN.js} +2 -2
- package/dist/renderer/assets/ThreadChat-4OceMgM4.js +86 -0
- package/dist/renderer/assets/Workspace-DplPJOjJ.js +19 -0
- package/dist/renderer/assets/{arrow-left-CV5cL3f4.js → arrow-left-C8HfBt2K.js} +1 -1
- package/dist/renderer/assets/{book-open-DThvB7pj.js → book-open-BCdZWncQ.js} +1 -1
- package/dist/renderer/assets/channels-hgO3cAIx.js +6 -0
- package/dist/renderer/assets/chevron-down-BPk77tqY.js +11 -0
- package/dist/renderer/assets/index-BIKL3fTP.css +11 -0
- package/dist/renderer/assets/index-BlA4xPdd.js +41 -0
- package/dist/renderer/assets/index-wYpjqVqC.js +167 -0
- package/dist/renderer/assets/knowledge-7pl06KuH.js +1 -0
- package/dist/renderer/assets/{pencil-Dv5WxhdC.js → pencil-CB1SWZ9A.js} +1 -1
- package/dist/renderer/assets/{play-DnCnft83.js → play-BvsoXUrM.js} +1 -1
- package/dist/renderer/assets/{plus-DsxIagzS.js → plus-CokBDnaL.js} +1 -1
- package/dist/renderer/assets/{save-CST01lIc.js → save-D-w4kATO.js} +1 -1
- package/dist/renderer/assets/{search-B_bqy6Wd.js → search-Cnsn6i4Q.js} +1 -1
- package/dist/renderer/assets/{shield-check-D6lG5Aoc.js → shield-check-Cjja2Gh6.js} +1 -1
- package/dist/renderer/assets/threads-BCm6j4eI.js +1 -0
- package/dist/renderer/assets/{trash-2-Cefngb6Q.js → trash-2-CIxz9qYY.js} +1 -1
- package/dist/renderer/index.html +2 -2
- package/dist-electron/packages/contracts/src/automation.js +2 -0
- package/dist-electron/packages/contracts/src/channels.js +2 -0
- package/dist-electron/packages/contracts/src/knowledge.js +2 -0
- package/dist-electron/packages/contracts/src/local-core.js +15 -0
- package/dist-electron/packages/contracts/src/runtime.js +2 -0
- package/dist-electron/packages/contracts/src/scheduler.js +2 -0
- package/dist-electron/packages/contracts/src/threads.js +2 -0
- package/dist-electron/packages/core-sdk/src/automation.js +32 -0
- package/dist-electron/packages/core-sdk/src/channels.js +121 -0
- package/dist-electron/packages/core-sdk/src/client.js +455 -0
- package/dist-electron/packages/core-sdk/src/index.js +43 -607
- package/dist-electron/packages/core-sdk/src/knowledge.js +85 -0
- package/dist-electron/packages/core-sdk/src/request.js +22 -0
- package/dist-electron/packages/core-sdk/src/runtime.js +214 -0
- package/dist-electron/packages/core-sdk/src/scheduler.js +32 -0
- package/dist-electron/packages/core-sdk/src/threads.js +67 -0
- package/dist-electron/packages/plugin-sdk/src/agents.js +2 -0
- package/dist-electron/packages/plugin-sdk/src/automation.js +2 -0
- package/dist-electron/packages/plugin-sdk/src/channels.js +2 -0
- package/dist-electron/packages/plugin-sdk/src/index.js +21 -0
- package/dist-electron/packages/plugin-sdk/src/knowledge.js +2 -0
- package/dist-electron/packages/plugin-sdk/src/runtime.js +2 -0
- package/dist-electron/packages/plugin-sdk/src/scheduler.js +2 -0
- package/dist-electron/packages/plugin-sdk/src/threads.js +2 -0
- package/dist-electron/services/local-ai-core/src/acp/local-core-acp-backend.js +5 -8
- package/dist-electron/services/local-ai-core/src/acp/local-core-acp-content.js +2 -2
- package/dist-electron/services/local-ai-core/src/acp/local-core-acp-turn-coordinator.js +3 -3
- package/dist-electron/services/local-ai-core/src/acp/store/agent-task-store.js +5 -5
- package/dist-electron/services/local-ai-core/src/acp/store/automation-monitor-store.js +12 -12
- package/dist-electron/services/local-ai-core/src/acp/store/local-core-acp-store.js +2 -2
- package/dist-electron/services/local-ai-core/src/acp/store/scheduler-store.js +11 -11
- package/dist-electron/services/local-ai-core/src/acp/store/security-store.js +3 -3
- package/dist-electron/services/local-ai-core/src/acp/store/thread-store.js +7 -7
- package/dist-electron/services/local-ai-core/src/acp/workspace-acp-permissions.js +2 -2
- package/dist-electron/services/local-ai-core/src/agents/claudecode/definition.js +3 -3
- package/dist-electron/services/local-ai-core/src/agents/codex/definition.js +3 -3
- package/dist-electron/services/local-ai-core/src/agents/localcore-acp/definition.js +2 -2
- package/dist-electron/services/local-ai-core/src/agents/localcore-acp/index.js +4 -4
- package/dist-electron/services/local-ai-core/src/agents/opencode/launch.js +2 -2
- package/dist-electron/services/local-ai-core/src/agents/pi/definition.js +2 -2
- package/dist-electron/services/local-ai-core/src/agents/pi/launch.js +3 -3
- package/dist-electron/services/local-ai-core/src/agents/pi/provider-materializer.js +1 -1
- package/dist-electron/services/local-ai-core/src/agents/shared/agent-plugin.js +4 -4
- package/dist-electron/services/local-ai-core/src/channel/lark/cards.js +33 -18
- package/dist-electron/services/local-ai-core/src/channel/lark/config.js +2 -2
- package/dist-electron/services/local-ai-core/src/channel/lark/gateway-utils.js +91 -0
- package/dist-electron/services/local-ai-core/src/channel/lark/inbound-handler.js +180 -0
- package/dist-electron/services/local-ai-core/src/channel/lark/local-core-lark-gateway.js +52 -486
- package/dist-electron/services/local-ai-core/src/channel/lark/outbound-transport.js +124 -0
- package/dist-electron/services/local-ai-core/src/channel/shared/inbound-authorization.js +54 -0
- package/dist-electron/services/local-ai-core/src/channel/weixin/config.js +2 -2
- package/dist-electron/services/local-ai-core/src/channel/weixin/inbound-media.js +21 -0
- package/dist-electron/services/local-ai-core/src/channel/weixin/inbound-poller.js +167 -0
- package/dist-electron/services/local-ai-core/src/channel/weixin/local-core-weixin-gateway.js +50 -469
- package/dist-electron/services/local-ai-core/src/channel/weixin/runtime-state.js +156 -0
- package/dist-electron/services/local-ai-core/src/channel/weixin/text-utils.js +100 -0
- package/dist-electron/services/local-ai-core/src/cli/lac.js +6 -6
- package/dist-electron/services/local-ai-core/src/cli/monitor-cli-parsers.js +2 -2
- package/dist-electron/services/local-ai-core/src/kernel/bootstrap.js +28 -70
- package/dist-electron/services/local-ai-core/src/plugins/builtin/knowledge-ai-vector-plugin.js +2 -2
- package/dist-electron/services/local-ai-core/src/plugins/builtin/knowledge-noop-plugin.js +2 -2
- package/dist-electron/services/local-ai-core/src/router/workspace-bridge-event-stream.js +29 -0
- package/dist-electron/services/local-ai-core/src/router/workspace-route-config.js +5 -5
- package/dist-electron/services/local-ai-core/src/router/workspace-router.js +47 -60
- package/dist-electron/services/local-ai-core/src/runtime/agent-runtime-detector.js +5 -5
- package/dist-electron/services/local-ai-core/src/runtime/config-migration.js +6 -6
- package/dist-electron/services/local-ai-core/src/runtime/deployment-diagnostics.js +3 -3
- package/dist-electron/services/local-ai-core/src/runtime/external-service.js +3 -1
- package/dist-electron/services/local-ai-core/src/runtime/handlers/automation-handler.js +11 -2
- package/dist-electron/services/local-ai-core/src/runtime/handlers/channel-handler.js +12 -6
- package/dist-electron/services/local-ai-core/src/runtime/handlers/external-handler.js +10 -2
- package/dist-electron/services/local-ai-core/src/runtime/handlers/knowledge-handler.js +18 -6
- package/dist-electron/services/local-ai-core/src/runtime/handlers/provider-handler.js +7 -2
- package/dist-electron/services/local-ai-core/src/runtime/handlers/runtime-handler.js +28 -3
- package/dist-electron/services/local-ai-core/src/runtime/handlers/scheduler-handler.js +10 -2
- package/dist-electron/services/local-ai-core/src/runtime/handlers/security-handler.js +18 -5
- package/dist-electron/services/local-ai-core/src/runtime/handlers/task-handler.js +14 -2
- package/dist-electron/services/local-ai-core/src/runtime/handlers/thread-handler.js +18 -15
- package/dist-electron/services/local-ai-core/src/runtime/handlers/workspace-handler.js +13 -2
- package/dist-electron/services/local-ai-core/src/runtime/local-core-controller.js +35 -8
- package/dist-electron/services/local-ai-core/src/runtime/request-validation.js +79 -0
- package/dist-electron/services/local-ai-core/src/runtime/runtime-detection-service.js +9 -9
- package/dist-electron/services/local-ai-core/src/runtime/server-helpers.js +10 -1
- package/dist-electron/services/local-ai-core/src/runtime/server.js +2 -1
- package/dist-electron/services/local-ai-core/src/runtime/workspace-project-registry.js +76 -0
- package/dist-electron/services/local-ai-core/src/sandbox/sandbox-config.js +8 -8
- package/dist-electron/services/local-ai-core/src/thread/agent-message-policy.js +75 -0
- package/dist-electron/shared/desktop.js +1 -64
- package/dist-electron/src/components/chat/chat-controller-state.js +60 -0
- package/dist-electron/src/components/chat/chat-event-gate.js +146 -0
- package/dist-electron/src/components/chat/markdown-code-block.js +8 -0
- package/dist-electron/src/pages/Desktop/workspace-model.js +212 -0
- package/dist-electron/src/pages/Threads/thread-chat-model.js +50 -51
- package/dist-electron/tests/contracts/agent-message-policy.test.js +21 -0
- package/dist-electron/tests/contracts/architecture-docs.test.js +56 -33
- package/dist-electron/tests/contracts/chat-event-gate.test.js +114 -0
- package/dist-electron/tests/contracts/chat-markdown.test.js +16 -0
- package/dist-electron/tests/contracts/thread-task-state.test.js +32 -0
- package/dist-electron/tests/contracts/workspace-identity.test.js +23 -0
- package/dist-electron/tests/electron/core-client.test.js +284 -0
- package/dist-electron/tests/electron/plugin-kernel.test.js +54 -0
- package/dist-electron/tests/electron/renderer-packaging.test.js +9 -0
- package/dist-electron/tests/electron/workspace-task-store.test.js +31 -0
- package/dist-electron/tests/integration/channel-inbound-authorization.test.js +80 -0
- package/dist-electron/tests/integration/lark-gateway-utils.test.js +13 -0
- package/dist-electron/tests/integration/lark-gateway.test.js +4 -4
- package/dist-electron/tests/integration/weixin-runtime-state.test.js +32 -0
- package/dist-electron/tests/integration/weixin-text-utils.test.js +15 -0
- package/package.json +9 -4
- package/dist/renderer/assets/Chat-C5Bkm9-M.js +0 -2
- package/dist/renderer/assets/ChatMarkdown-uc36EzyD.js +0 -45
- package/dist/renderer/assets/Config-DHtQuuLy.js +0 -21
- package/dist/renderer/assets/CronList-BYUnhzSC.js +0 -1
- package/dist/renderer/assets/Dashboard-BPnGMDg3.js +0 -26
- package/dist/renderer/assets/Logs-Dyd2Uwlt.js +0 -1
- package/dist/renderer/assets/MonitorList-Byg3E3Gt.js +0 -1
- package/dist/renderer/assets/Page-7DxXvTMm.js +0 -1
- package/dist/renderer/assets/ProjectDetail-Dfr5s0Ja.js +0 -11
- package/dist/renderer/assets/ProjectList-CDDQjAQ_.js +0 -1
- package/dist/renderer/assets/SessionChat-s7CAaCPL.js +0 -1
- package/dist/renderer/assets/SessionList-D-OycKKS.js +0 -1
- package/dist/renderer/assets/ThreadChat-CLdFynB5.js +0 -28
- package/dist/renderer/assets/Workspace-xfT5z4j_.js +0 -19
- package/dist/renderer/assets/bot-CWQ5-ovl.js +0 -6
- package/dist/renderer/assets/check-DKM7zfWG.js +0 -6
- package/dist/renderer/assets/chevron-down-Dfw2KU87.js +0 -6
- package/dist/renderer/assets/circle-CoP4RA4s.js +0 -6
- package/dist/renderer/assets/desktop-CsDYrOOU.js +0 -1
- package/dist/renderer/assets/desktop-JQkhNOF4.js +0 -5
- package/dist/renderer/assets/funnel-DpVLlG3g.js +0 -6
- package/dist/renderer/assets/heart-BMD36ejP.js +0 -6
- package/dist/renderer/assets/index-COxSYBjE.js +0 -182
- package/dist/renderer/assets/index-CTGTI-cm.js +0 -41
- package/dist/renderer/assets/index-CjCuR6DI.css +0 -11
- package/dist/renderer/assets/projects-DgjHcNgt.js +0 -1
- package/dist/renderer/assets/server-ecH4GNwa.js +0 -11
- package/dist/renderer/assets/session-utils-Dd_WKMYW.js +0 -6
- package/dist/renderer/assets/sessions-BQ33Mv4k.js +0 -1
- package/dist/renderer/assets/user-D_8RSH-T.js +0 -6
- package/dist/renderer/assets/wifi-off-DB9D-pOu.js +0 -11
- package/dist-electron/src/api/client.js +0 -73
- package/dist-electron/src/api/sessions.js +0 -21
- package/dist-electron/src/lib/session-utils.js +0 -51
- package/dist-electron/src/pages/Projects/project-provider-config.js +0 -75
- package/dist-electron/tests/electron/project-provider-config.test.js +0 -71
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-CZj-oANw.js","./Card-DayUo35w.js","./Badge-CDTbmw1h.js","./EmptyState-EFMkOjZO.js","./Page-vwHNUdoj.js","./threads-BCm6j4eI.js","./book-open-BCdZWncQ.js","./shield-check-Cjja2Gh6.js","./ThreadChat-4OceMgM4.js","./channels-hgO3cAIx.js","./chevron-down-BPk77tqY.js","./Input-DxoWVc9d.js","./Modal-yY7TzR0x.js","./index-BlA4xPdd.js","./search-Cnsn6i4Q.js","./pencil-CB1SWZ9A.js","./trash-2-CIxz9qYY.js","./knowledge-7pl06KuH.js","./Workspace-DplPJOjJ.js","./Select-CmbK36pN.js","./plus-CokBDnaL.js","./save-D-w4kATO.js","./CronList-XqHdVlgu.js","./play-BvsoXUrM.js","./MonitorList-CIjGQkFs.js","./Config-ByGMQuzR.js","./Logs-DqnanQTc.js","./arrow-left-C8HfBt2K.js","./KnowledgeHome-BWV1gz4f.js","./KnowledgeDetail-CbUb2tG7.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F0=Object.defineProperty;var W0=(l,i,s)=>i in l?F0(l,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[i]=s;var Ru=(l,i,s)=>W0(l,typeof i!="symbol"?i+"":i,s);function I0(l,i){for(var s=0;s<i.length;s++){const o=i[s];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&o(h)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function Ym(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var uo={exports:{}},Jl={};/**
|
|
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 Xh;function P0(){if(Xh)return Jl;Xh=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var g in c)g!=="key"&&(f[g]=c[g])}else f=c;return c=f.ref,{$$typeof:l,type:o,key:h,ref:c!==void 0?c:null,props:f}}return Jl.Fragment=i,Jl.jsx=s,Jl.jsxs=s,Jl}var Qh;function ey(){return Qh||(Qh=1,uo.exports=P0()),uo.exports}var j=ey(),ro={exports:{}},le={};/**
|
|
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 Zh;function ty(){if(Zh)return le;Zh=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),O=Symbol.iterator;function N(x){return x===null||typeof x!="object"?null:(x=O&&x[O]||x["@@iterator"],typeof x=="function"?x:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,k={};function Y(x,w,G){this.props=x,this.context=w,this.refs=k,this.updater=G||A}Y.prototype.isReactComponent={},Y.prototype.setState=function(x,w){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,w,"setState")},Y.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function q(){}q.prototype=Y.prototype;function K(x,w,G){this.props=x,this.context=w,this.refs=k,this.updater=G||A}var $=K.prototype=new q;$.constructor=K,H($,Y.prototype),$.isPureReactComponent=!0;var ee=Array.isArray;function se(){}var J={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function re(x,w,G){var Q=G.ref;return{$$typeof:l,type:x,key:w,ref:Q!==void 0?Q:null,props:G}}function de(x,w){return re(x.type,w,x.props)}function Me(x){return typeof x=="object"&&x!==null&&x.$$typeof===l}function Je(x){var w={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return w[G]})}var Ce=/\/+/g;function De(x,w){return typeof x=="object"&&x!==null&&x.key!=null?Je(""+x.key):w.toString(36)}function we(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(se,se):(x.status="pending",x.then(function(w){x.status==="pending"&&(x.status="fulfilled",x.value=w)},function(w){x.status==="pending"&&(x.status="rejected",x.reason=w)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function D(x,w,G,Q,ae){var oe=typeof x;(oe==="undefined"||oe==="boolean")&&(x=null);var xe=!1;if(x===null)xe=!0;else switch(oe){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(x.$$typeof){case l:case i:xe=!0;break;case b:return xe=x._init,D(xe(x._payload),w,G,Q,ae)}}if(xe)return ae=ae(x),xe=Q===""?"."+De(x,0):Q,ee(ae)?(G="",xe!=null&&(G=xe.replace(Ce,"$&/")+"/"),D(ae,w,G,"",function(tl){return tl})):ae!=null&&(Me(ae)&&(ae=de(ae,G+(ae.key==null||x&&x.key===ae.key?"":(""+ae.key).replace(Ce,"$&/")+"/")+xe)),w.push(ae)),1;xe=0;var ut=Q===""?".":Q+":";if(ee(x))for(var Be=0;Be<x.length;Be++)Q=x[Be],oe=ut+De(Q,Be),xe+=D(Q,w,G,oe,ae);else if(Be=N(x),typeof Be=="function")for(x=Be.call(x),Be=0;!(Q=x.next()).done;)Q=Q.value,oe=ut+De(Q,Be++),xe+=D(Q,w,G,oe,ae);else if(oe==="object"){if(typeof x.then=="function")return D(we(x),w,G,Q,ae);throw w=String(x),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return xe}function V(x,w,G){if(x==null)return x;var Q=[],ae=0;return D(x,Q,"","",function(oe){return w.call(G,oe,ae++)}),Q}function I(x){if(x._status===-1){var w=x._result;w=w(),w.then(function(G){(x._status===0||x._status===-1)&&(x._status=1,x._result=G)},function(G){(x._status===0||x._status===-1)&&(x._status=2,x._result=G)}),x._status===-1&&(x._status=0,x._result=w)}if(x._status===1)return x._result.default;throw x._result}var pe=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Se={map:V,forEach:function(x,w,G){V(x,function(){w.apply(this,arguments)},G)},count:function(x){var w=0;return V(x,function(){w++}),w},toArray:function(x){return V(x,function(w){return w})||[]},only:function(x){if(!Me(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return le.Activity=v,le.Children=Se,le.Component=Y,le.Fragment=s,le.Profiler=c,le.PureComponent=K,le.StrictMode=o,le.Suspense=y,le.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,le.__COMPILER_RUNTIME={__proto__:null,c:function(x){return J.H.useMemoCache(x)}},le.cache=function(x){return function(){return x.apply(null,arguments)}},le.cacheSignal=function(){return null},le.cloneElement=function(x,w,G){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Q=H({},x.props),ae=x.key;if(w!=null)for(oe in w.key!==void 0&&(ae=""+w.key),w)!ne.call(w,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&w.ref===void 0||(Q[oe]=w[oe]);var oe=arguments.length-2;if(oe===1)Q.children=G;else if(1<oe){for(var xe=Array(oe),ut=0;ut<oe;ut++)xe[ut]=arguments[ut+2];Q.children=xe}return re(x.type,ae,Q)},le.createContext=function(x){return x={$$typeof:h,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:f,_context:x},x},le.createElement=function(x,w,G){var Q,ae={},oe=null;if(w!=null)for(Q in w.key!==void 0&&(oe=""+w.key),w)ne.call(w,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ae[Q]=w[Q]);var xe=arguments.length-2;if(xe===1)ae.children=G;else if(1<xe){for(var ut=Array(xe),Be=0;Be<xe;Be++)ut[Be]=arguments[Be+2];ae.children=ut}if(x&&x.defaultProps)for(Q in xe=x.defaultProps,xe)ae[Q]===void 0&&(ae[Q]=xe[Q]);return re(x,oe,ae)},le.createRef=function(){return{current:null}},le.forwardRef=function(x){return{$$typeof:g,render:x}},le.isValidElement=Me,le.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:I}},le.memo=function(x,w){return{$$typeof:m,type:x,compare:w===void 0?null:w}},le.startTransition=function(x){var w=J.T,G={};J.T=G;try{var Q=x(),ae=J.S;ae!==null&&ae(G,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then(se,pe)}catch(oe){pe(oe)}finally{w!==null&&G.types!==null&&(w.types=G.types),J.T=w}},le.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},le.use=function(x){return J.H.use(x)},le.useActionState=function(x,w,G){return J.H.useActionState(x,w,G)},le.useCallback=function(x,w){return J.H.useCallback(x,w)},le.useContext=function(x){return J.H.useContext(x)},le.useDebugValue=function(){},le.useDeferredValue=function(x,w){return J.H.useDeferredValue(x,w)},le.useEffect=function(x,w){return J.H.useEffect(x,w)},le.useEffectEvent=function(x){return J.H.useEffectEvent(x)},le.useId=function(){return J.H.useId()},le.useImperativeHandle=function(x,w,G){return J.H.useImperativeHandle(x,w,G)},le.useInsertionEffect=function(x,w){return J.H.useInsertionEffect(x,w)},le.useLayoutEffect=function(x,w){return J.H.useLayoutEffect(x,w)},le.useMemo=function(x,w){return J.H.useMemo(x,w)},le.useOptimistic=function(x,w){return J.H.useOptimistic(x,w)},le.useReducer=function(x,w,G){return J.H.useReducer(x,w,G)},le.useRef=function(x){return J.H.useRef(x)},le.useState=function(x){return J.H.useState(x)},le.useSyncExternalStore=function(x,w,G){return J.H.useSyncExternalStore(x,w,G)},le.useTransition=function(){return J.H.useTransition()},le.version="19.2.5",le}var Jh;function Mo(){return Jh||(Jh=1,ro.exports=ty()),ro.exports}var T=Mo();const $n=Ym(T),ay=I0({__proto__:null,default:$n},[T]);/**
|
|
19
|
+
* @license lucide-react v0.487.0 - ISC
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the ISC license.
|
|
22
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/const ny=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ly=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,o)=>o?o.toUpperCase():s.toLowerCase()),$h=l=>{const i=ly(l);return i.charAt(0).toUpperCase()+i.slice(1)},qm=(...l)=>l.filter((i,s,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===s).join(" ").trim();/**
|
|
24
|
+
* @license lucide-react v0.487.0 - ISC
|
|
25
|
+
*
|
|
26
|
+
* This source code is licensed under the ISC license.
|
|
27
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
+
*/var iy={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"};/**
|
|
29
|
+
* @license lucide-react v0.487.0 - ISC
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the ISC license.
|
|
32
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/const uy=T.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:h,...g},y)=>T.createElement("svg",{ref:y,...iy,width:i,height:i,stroke:l,strokeWidth:o?Number(s)*24/Number(i):s,className:qm("lucide",c),...g},[...h.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));/**
|
|
34
|
+
* @license lucide-react v0.487.0 - ISC
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the ISC license.
|
|
37
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/const nt=(l,i)=>{const s=T.forwardRef(({className:o,...c},f)=>T.createElement(uy,{ref:f,iconNode:i,className:qm(`lucide-${ny($h(l))}`,`lucide-${l}`,o),...c}));return s.displayName=$h(l),s};/**
|
|
39
|
+
* @license lucide-react v0.487.0 - ISC
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the ISC license.
|
|
42
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/const ry=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],sy=nt("bell",ry);/**
|
|
44
|
+
* @license lucide-react v0.487.0 - ISC
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the ISC license.
|
|
47
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
+
*/const oy=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],cy=nt("chevron-left",oy);/**
|
|
49
|
+
* @license lucide-react v0.487.0 - ISC
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the ISC license.
|
|
52
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/const fy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],dy=nt("chevron-right",fy);/**
|
|
54
|
+
* @license lucide-react v0.487.0 - ISC
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the ISC license.
|
|
57
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/const hy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],my=nt("clock",hy);/**
|
|
59
|
+
* @license lucide-react v0.487.0 - ISC
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the ISC license.
|
|
62
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
+
*/const gy=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],py=nt("folder-kanban",gy);/**
|
|
64
|
+
* @license lucide-react v0.487.0 - ISC
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the ISC license.
|
|
67
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/const yy=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],vy=nt("languages",yy);/**
|
|
69
|
+
* @license lucide-react v0.487.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const by=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Sy=nt("layout-dashboard",by);/**
|
|
74
|
+
* @license lucide-react v0.487.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/const xy=[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]],Ey=nt("library",xy);/**
|
|
79
|
+
* @license lucide-react v0.487.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const Ty=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Ry=nt("message-square",Ty);/**
|
|
84
|
+
* @license lucide-react v0.487.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const Oy=[["path",{d:"M14 9a2 2 0 0 1-2 2H6l-4 4V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z",key:"p1xzt8"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v11l-4-4h-6a2 2 0 0 1-2-2v-1",key:"1cx29u"}]],Ay=nt("messages-square",Oy);/**
|
|
89
|
+
* @license lucide-react v0.487.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const _y=[["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"}]],Cy=nt("monitor",_y);/**
|
|
94
|
+
* @license lucide-react v0.487.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const zy=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Ny=nt("moon",zy);/**
|
|
99
|
+
* @license lucide-react v0.487.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const My=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Vm=nt("refresh-cw",My);/**
|
|
104
|
+
* @license lucide-react v0.487.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const Dy=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Ly=nt("settings",Dy);/**
|
|
109
|
+
* @license lucide-react v0.487.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const jy=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],wy=nt("sun",jy);/**
|
|
114
|
+
* @license lucide-react v0.487.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const Uy=[["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"}]],Hy=nt("triangle-alert",Uy);/**
|
|
119
|
+
* @license lucide-react v0.487.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const By=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],ky=nt("wrench",By);var so={exports:{}},$l={},oo={exports:{}},co={};/**
|
|
124
|
+
* @license React
|
|
125
|
+
* scheduler.production.js
|
|
126
|
+
*
|
|
127
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the MIT license found in the
|
|
130
|
+
* LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/var Fh;function Yy(){return Fh||(Fh=1,(function(l){function i(D,V){var I=D.length;D.push(V);e:for(;0<I;){var pe=I-1>>>1,Se=D[pe];if(0<c(Se,V))D[pe]=V,D[I]=Se,I=pe;else break e}}function s(D){return D.length===0?null:D[0]}function o(D){if(D.length===0)return null;var V=D[0],I=D.pop();if(I!==V){D[0]=I;e:for(var pe=0,Se=D.length,x=Se>>>1;pe<x;){var w=2*(pe+1)-1,G=D[w],Q=w+1,ae=D[Q];if(0>c(G,I))Q<Se&&0>c(ae,G)?(D[pe]=ae,D[Q]=I,pe=Q):(D[pe]=G,D[w]=I,pe=w);else if(Q<Se&&0>c(ae,I))D[pe]=ae,D[Q]=I,pe=Q;else break e}}return V}function c(D,V){var I=D.sortIndex-V.sortIndex;return I!==0?I:D.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();l.unstable_now=function(){return h.now()-g}}var y=[],m=[],b=1,v=null,O=3,N=!1,A=!1,H=!1,k=!1,Y=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function $(D){for(var V=s(m);V!==null;){if(V.callback===null)o(m);else if(V.startTime<=D)o(m),V.sortIndex=V.expirationTime,i(y,V);else break;V=s(m)}}function ee(D){if(H=!1,$(D),!A)if(s(y)!==null)A=!0,se||(se=!0,Je());else{var V=s(m);V!==null&&we(ee,V.startTime-D)}}var se=!1,J=-1,ne=5,re=-1;function de(){return k?!0:!(l.unstable_now()-re<ne)}function Me(){if(k=!1,se){var D=l.unstable_now();re=D;var V=!0;try{e:{A=!1,H&&(H=!1,q(J),J=-1),N=!0;var I=O;try{t:{for($(D),v=s(y);v!==null&&!(v.expirationTime>D&&de());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,O=v.priorityLevel;var Se=pe(v.expirationTime<=D);if(D=l.unstable_now(),typeof Se=="function"){v.callback=Se,$(D),V=!0;break t}v===s(y)&&o(y),$(D)}else o(y);v=s(y)}if(v!==null)V=!0;else{var x=s(m);x!==null&&we(ee,x.startTime-D),V=!1}}break e}finally{v=null,O=I,N=!1}V=void 0}}finally{V?Je():se=!1}}}var Je;if(typeof K=="function")Je=function(){K(Me)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,De=Ce.port2;Ce.port1.onmessage=Me,Je=function(){De.postMessage(null)}}else Je=function(){Y(Me,0)};function we(D,V){J=Y(function(){D(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(D){D.callback=null},l.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<D?Math.floor(1e3/D):5},l.unstable_getCurrentPriorityLevel=function(){return O},l.unstable_next=function(D){switch(O){case 1:case 2:case 3:var V=3;break;default:V=O}var I=O;O=V;try{return D()}finally{O=I}},l.unstable_requestPaint=function(){k=!0},l.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var I=O;O=D;try{return V()}finally{O=I}},l.unstable_scheduleCallback=function(D,V,I){var pe=l.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?pe+I:pe):I=pe,D){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=I+Se,D={id:b++,callback:V,priorityLevel:D,startTime:I,expirationTime:Se,sortIndex:-1},I>pe?(D.sortIndex=I,i(m,D),s(y)===null&&D===s(m)&&(H?(q(J),J=-1):H=!0,we(ee,I-pe))):(D.sortIndex=Se,i(y,D),A||N||(A=!0,se||(se=!0,Je()))),D},l.unstable_shouldYield=de,l.unstable_wrapCallback=function(D){var V=O;return function(){var I=O;O=V;try{return D.apply(this,arguments)}finally{O=I}}}})(co)),co}var Wh;function qy(){return Wh||(Wh=1,oo.exports=Yy()),oo.exports}var fo={exports:{}},lt={};/**
|
|
132
|
+
* @license React
|
|
133
|
+
* react-dom.production.js
|
|
134
|
+
*
|
|
135
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the MIT license found in the
|
|
138
|
+
* LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/var Ih;function Vy(){if(Ih)return lt;Ih=1;var l=Mo();function i(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(y,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:y,containerInfo:m,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,lt.createPortal=function(y,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(i(299));return f(y,m,null,b)},lt.flushSync=function(y){var m=h.T,b=o.p;try{if(h.T=null,o.p=2,y)return y()}finally{h.T=m,o.p=b,o.d.f()}},lt.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(y,m))},lt.prefetchDNS=function(y){typeof y=="string"&&o.d.D(y)},lt.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin),O=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?o.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:O,fetchPriority:N}):b==="script"&&o.d.X(y,{crossOrigin:v,integrity:O,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},lt.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=g(m.as,m.crossOrigin);o.d.M(y,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&o.d.M(y)},lt.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin);o.d.L(y,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},lt.preloadModule=function(y,m){if(typeof y=="string")if(m){var b=g(m.as,m.crossOrigin);o.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else o.d.m(y)},lt.requestFormReset=function(y){o.d.r(y)},lt.unstable_batchedUpdates=function(y,m){return y(m)},lt.useFormState=function(y,m,b){return h.H.useFormState(y,m,b)},lt.useFormStatus=function(){return h.H.useHostTransitionStatus()},lt.version="19.2.5",lt}var Ph;function Gy(){if(Ph)return fo.exports;Ph=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),fo.exports=Vy(),fo.exports}/**
|
|
140
|
+
* @license React
|
|
141
|
+
* react-dom-client.production.js
|
|
142
|
+
*
|
|
143
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the MIT license found in the
|
|
146
|
+
* LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/var em;function Ky(){if(em)return $l;em=1;var l=qy(),i=Mo(),s=Gy();function o(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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function 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 y(e){if(f(e)!==e)throw Error(o(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,n=t;;){var u=a.return;if(u===null)break;var r=u.alternate;if(r===null){if(n=u.return,n!==null){a=n;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===a)return y(u),e;if(r===n)return y(u),t;r=r.sibling}throw Error(o(188))}if(a.return!==n.return)a=u,n=r;else{for(var d=!1,p=u.child;p;){if(p===a){d=!0,a=u,n=r;break}if(p===n){d=!0,n=u,a=r;break}p=p.sibling}if(!d){for(p=r.child;p;){if(p===a){d=!0,a=r,n=u;break}if(p===n){d=!0,n=r,a=u;break}p=p.sibling}if(!d)throw Error(o(189))}}if(a.alternate!==n)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,O=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),re=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),Me=Symbol.iterator;function Je(e){return e===null||typeof e!="object"?null:(e=Me&&e[Me]||e["@@iterator"],typeof e=="function"?e:null)}var Ce=Symbol.for("react.client.reference");function De(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case Y:return"Profiler";case k:return"StrictMode";case ee:return"Suspense";case se:return"SuspenseList";case re:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case K:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case $:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:De(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return De(e(t))}catch{}}return null}var we=Array.isArray,D=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},pe=[],Se=-1;function x(e){return{current:e}}function w(e){0>Se||(e.current=pe[Se],pe[Se]=null,Se--)}function G(e,t){Se++,pe[Se]=e.current,e.current=t}var Q=x(null),ae=x(null),oe=x(null),xe=x(null);function ut(e,t){switch(G(oe,t),G(ae,e),G(Q,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mh(t),e=gh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}w(Q),G(Q,e)}function Be(){w(Q),w(ae),w(oe)}function tl(e){e.memoizedState!==null&&G(xe,e);var t=Q.current,a=gh(t,e.type);t!==a&&(G(ae,e),G(Q,a))}function ui(e){ae.current===e&&(w(Q),w(ae)),xe.current===e&&(w(xe),Kl._currentValue=I)}var Vu,Go;function ka(e){if(Vu===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Vu=t&&t[1]||"",Go=-1<a.stack.indexOf(`
|
|
148
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
149
|
+
`+Vu+e+Go}var Gu=!1;function Ku(e,t){if(!e||Gu)return"";Gu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(M){var z=M}Reflect.construct(e,[],B)}else{try{B.call()}catch(M){z=M}e.call(B.prototype)}}else{try{throw Error()}catch(M){z=M}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(M){if(M&&z&&typeof M.stack=="string")return[M.stack,z.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),d=r[0],p=r[1];if(d&&p){var S=d.split(`
|
|
150
|
+
`),C=p.split(`
|
|
151
|
+
`);for(u=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;u<C.length&&!C[u].includes("DetermineComponentFrameRoot");)u++;if(n===S.length||u===C.length)for(n=S.length-1,u=C.length-1;1<=n&&0<=u&&S[n]!==C[u];)u--;for(;1<=n&&0<=u;n--,u--)if(S[n]!==C[u]){if(n!==1||u!==1)do if(n--,u--,0>u||S[n]!==C[u]){var L=`
|
|
152
|
+
`+S[n].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=n&&0<=u);break}}}finally{Gu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ka(a):""}function _g(e,t){switch(e.tag){case 26:case 27:case 5:return ka(e.type);case 16:return ka("Lazy");case 13:return e.child!==t&&t!==null?ka("Suspense Fallback"):ka("Suspense");case 19:return ka("SuspenseList");case 0:case 15:return Ku(e.type,!1);case 11:return Ku(e.type.render,!1);case 1:return Ku(e.type,!0);case 31:return ka("Activity");default:return""}}function Ko(e){try{var t="",a=null;do t+=_g(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
153
|
+
Error generating stack: `+n.message+`
|
|
154
|
+
`+n.stack}}var Xu=Object.prototype.hasOwnProperty,Qu=l.unstable_scheduleCallback,Zu=l.unstable_cancelCallback,Cg=l.unstable_shouldYield,zg=l.unstable_requestPaint,pt=l.unstable_now,Ng=l.unstable_getCurrentPriorityLevel,Xo=l.unstable_ImmediatePriority,Qo=l.unstable_UserBlockingPriority,ri=l.unstable_NormalPriority,Mg=l.unstable_LowPriority,Zo=l.unstable_IdlePriority,Dg=l.log,Lg=l.unstable_setDisableYieldValue,al=null,yt=null;function ma(e){if(typeof Dg=="function"&&Lg(e),yt&&typeof yt.setStrictMode=="function")try{yt.setStrictMode(al,e)}catch{}}var vt=Math.clz32?Math.clz32:Ug,jg=Math.log,wg=Math.LN2;function Ug(e){return e>>>=0,e===0?32:31-(jg(e)/wg|0)|0}var si=256,oi=262144,ci=4194304;function Ya(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 fi(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var u=0,r=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var p=n&134217727;return p!==0?(n=p&~r,n!==0?u=Ya(n):(d&=p,d!==0?u=Ya(d):a||(a=p&~e,a!==0&&(u=Ya(a))))):(p=n&~r,p!==0?u=Ya(p):d!==0?u=Ya(d):a||(a=n&~e,a!==0&&(u=Ya(a)))),u===0?0:t!==0&&t!==u&&(t&r)===0&&(r=u&-u,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:u}function nl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Hg(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 Jo(){var e=ci;return ci<<=1,(ci&62914560)===0&&(ci=4194304),e}function Ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ll(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Bg(e,t,a,n,u,r){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(a=d&~a;0<a;){var L=31-vt(a),B=1<<L;p[L]=0,S[L]=-1;var z=C[L];if(z!==null)for(C[L]=null,L=0;L<z.length;L++){var M=z[L];M!==null&&(M.lane&=-536870913)}a&=~B}n!==0&&$o(e,n,0),r!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=r&~(d&~t))}function $o(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-vt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Fo(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-vt(a),u=1<<n;u&t|e[n]&t&&(e[n]|=t),a&=~u}}function Wo(e,t){var a=t&-t;return a=(a&42)!==0?1:$u(a),(a&(e.suspendedLanes|t))!==0?0:a}function $u(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 Fu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Io(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Bh(e.type))}function Po(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var ga=Math.random().toString(36).slice(2),We="__reactFiber$"+ga,st="__reactProps$"+ga,on="__reactContainer$"+ga,Wu="__reactEvents$"+ga,kg="__reactListeners$"+ga,Yg="__reactHandles$"+ga,ec="__reactResources$"+ga,il="__reactMarker$"+ga;function Iu(e){delete e[We],delete e[st],delete e[Wu],delete e[kg],delete e[Yg]}function cn(e){var t=e[We];if(t)return t;for(var a=e.parentNode;a;){if(t=a[on]||a[We]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Eh(e);e!==null;){if(a=e[We])return a;e=Eh(e)}return t}e=a,a=e.parentNode}return null}function fn(e){if(e=e[We]||e[on]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ul(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function dn(e){var t=e[ec];return t||(t=e[ec]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[il]=!0}var tc=new Set,ac={};function qa(e,t){hn(e,t),hn(e+"Capture",t)}function hn(e,t){for(ac[e]=t,e=0;e<t.length;e++)tc.add(t[e])}var qg=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]*$"),nc={},lc={};function Vg(e){return Xu.call(lc,e)?!0:Xu.call(nc,e)?!1:qg.test(e)?lc[e]=!0:(nc[e]=!0,!1)}function di(e,t,a){if(Vg(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function hi(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 $t(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function zt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ic(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gg(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,r.call(this,d)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pu(e){if(!e._valueTracker){var t=ic(e)?"checked":"value";e._valueTracker=Gg(e,t,""+e[t])}}function uc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=ic(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function mi(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 Kg=/[\n"\\]/g;function Nt(e){return e.replace(Kg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function er(e,t,a,n,u,r,d,p){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zt(t)):e.value!==""+zt(t)&&(e.value=""+zt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?tr(e,d,zt(t)):a!=null?tr(e,d,zt(a)):n!=null&&e.removeAttribute("value"),u==null&&r!=null&&(e.defaultChecked=!!r),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+zt(p):e.removeAttribute("name")}function rc(e,t,a,n,u,r,d,p){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){Pu(e);return}a=a!=null?""+zt(a):"",t=t!=null?""+zt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=p?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Pu(e)}function tr(e,t,a){t==="number"&&mi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function mn(e,t,a,n){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&n&&(e[a].defaultSelected=!0)}else{for(a=""+zt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,n&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function sc(e,t,a){if(t!=null&&(t=""+zt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zt(a):""}function oc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(we(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=zt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Pu(e)}function gn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Xg=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 cc(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||Xg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function fc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var u in t)n=t[u],t.hasOwnProperty(u)&&a[u]!==n&&cc(e,u,n)}else for(var r in t)t.hasOwnProperty(r)&&cc(e,r,t[r])}function ar(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 Qg=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"]]),Zg=/^[\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 gi(e){return Zg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ft(){}var nr=null;function lr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var pn=null,yn=null;function dc(e){var t=fn(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(er(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="'+Nt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var u=n[st]||null;if(!u)throw Error(o(90));er(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&uc(n)}break e;case"textarea":sc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&mn(e,!!a.multiple,t,!1)}}}var ir=!1;function hc(e,t,a){if(ir)return e(t,a);ir=!0;try{var n=e(t);return n}finally{if(ir=!1,(pn!==null||yn!==null)&&(au(),pn&&(t=pn,e=yn,yn=pn=null,dc(t),e)))for(t=0;t<e.length;t++)dc(e[t])}}function rl(e,t){var a=e.stateNode;if(a===null)return null;var n=a[st]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var Wt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ur=!1;if(Wt)try{var sl={};Object.defineProperty(sl,"passive",{get:function(){ur=!0}}),window.addEventListener("test",sl,sl),window.removeEventListener("test",sl,sl)}catch{ur=!1}var pa=null,rr=null,pi=null;function mc(){if(pi)return pi;var e,t=rr,a=t.length,n,u="value"in pa?pa.value:pa.textContent,r=u.length;for(e=0;e<a&&t[e]===u[e];e++);var d=a-e;for(n=1;n<=d&&t[a-n]===u[r-n];n++);return pi=u.slice(e,1<n?1-n:void 0)}function yi(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 vi(){return!0}function gc(){return!1}function ot(e){function t(a,n,u,r,d){this._reactName=a,this._targetInst=u,this.type=n,this.nativeEvent=r,this.target=d,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?vi:gc,this.isPropagationStopped=gc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),t}var Va={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bi=ot(Va),ol=v({},Va,{view:0,detail:0}),Jg=ot(ol),sr,or,cl,Si=v({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fr,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!==cl&&(cl&&e.type==="mousemove"?(sr=e.screenX-cl.screenX,or=e.screenY-cl.screenY):or=sr=0,cl=e),sr)},movementY:function(e){return"movementY"in e?e.movementY:or}}),pc=ot(Si),$g=v({},Si,{dataTransfer:0}),Fg=ot($g),Wg=v({},ol,{relatedTarget:0}),cr=ot(Wg),Ig=v({},Va,{animationName:0,elapsedTime:0,pseudoElement:0}),Pg=ot(Ig),ep=v({},Va,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tp=ot(ep),ap=v({},Va,{data:0}),yc=ot(ap),np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},lp={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"},ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function up(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ip[e])?!!t[e]:!1}function fr(){return up}var rp=v({},ol,{key:function(e){if(e.key){var t=np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?lp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fr,charCode:function(e){return e.type==="keypress"?yi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sp=ot(rp),op=v({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vc=ot(op),cp=v({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fr}),fp=ot(cp),dp=v({},Va,{propertyName:0,elapsedTime:0,pseudoElement:0}),hp=ot(dp),mp=v({},Si,{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}),gp=ot(mp),pp=v({},Va,{newState:0,oldState:0}),yp=ot(pp),vp=[9,13,27,32],dr=Wt&&"CompositionEvent"in window,fl=null;Wt&&"documentMode"in document&&(fl=document.documentMode);var bp=Wt&&"TextEvent"in window&&!fl,bc=Wt&&(!dr||fl&&8<fl&&11>=fl),Sc=" ",xc=!1;function Ec(e,t){switch(e){case"keyup":return vp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vn=!1;function Sp(e,t){switch(e){case"compositionend":return Tc(t);case"keypress":return t.which!==32?null:(xc=!0,Sc);case"textInput":return e=t.data,e===Sc&&xc?null:e;default:return null}}function xp(e,t){if(vn)return e==="compositionend"||!dr&&Ec(e,t)?(e=mc(),pi=rr=pa=null,vn=!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 bc&&t.locale!=="ko"?null:t.data;default:return null}}var Ep={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 Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ep[e.type]:t==="textarea"}function Oc(e,t,a,n){pn?yn?yn.push(n):yn=[n]:pn=n,t=ou(t,"onChange"),0<t.length&&(a=new bi("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var dl=null,hl=null;function Tp(e){sh(e,0)}function xi(e){var t=ul(e);if(uc(t))return e}function Ac(e,t){if(e==="change")return t}var _c=!1;if(Wt){var hr;if(Wt){var mr="oninput"in document;if(!mr){var Cc=document.createElement("div");Cc.setAttribute("oninput","return;"),mr=typeof Cc.oninput=="function"}hr=mr}else hr=!1;_c=hr&&(!document.documentMode||9<document.documentMode)}function zc(){dl&&(dl.detachEvent("onpropertychange",Nc),hl=dl=null)}function Nc(e){if(e.propertyName==="value"&&xi(hl)){var t=[];Oc(t,hl,e,lr(e)),hc(Tp,t)}}function Rp(e,t,a){e==="focusin"?(zc(),dl=t,hl=a,dl.attachEvent("onpropertychange",Nc)):e==="focusout"&&zc()}function Op(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return xi(hl)}function Ap(e,t){if(e==="click")return xi(t)}function _p(e,t){if(e==="input"||e==="change")return xi(t)}function Cp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var bt=typeof Object.is=="function"?Object.is:Cp;function ml(e,t){if(bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var u=a[n];if(!Xu.call(t,u)||!bt(e[u],t[u]))return!1}return!0}function Mc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dc(e,t){var a=Mc(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Mc(a)}}function Lc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mi(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=mi(e.document)}return t}function gr(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 zp=Wt&&"documentMode"in document&&11>=document.documentMode,bn=null,pr=null,gl=null,yr=!1;function wc(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;yr||bn==null||bn!==mi(n)||(n=bn,"selectionStart"in n&&gr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),gl&&ml(gl,n)||(gl=n,n=ou(pr,"onSelect"),0<n.length&&(t=new bi("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=bn)))}function Ga(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Sn={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionrun:Ga("Transition","TransitionRun"),transitionstart:Ga("Transition","TransitionStart"),transitioncancel:Ga("Transition","TransitionCancel"),transitionend:Ga("Transition","TransitionEnd")},vr={},Uc={};Wt&&(Uc=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);function Ka(e){if(vr[e])return vr[e];if(!Sn[e])return e;var t=Sn[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Uc)return vr[e]=t[a];return e}var Hc=Ka("animationend"),Bc=Ka("animationiteration"),kc=Ka("animationstart"),Np=Ka("transitionrun"),Mp=Ka("transitionstart"),Dp=Ka("transitioncancel"),Yc=Ka("transitionend"),qc=new Map,br="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(" ");br.push("scrollEnd");function Yt(e,t){qc.set(e,t),qa(t,[e])}var Ei=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)},Mt=[],xn=0,Sr=0;function Ti(){for(var e=xn,t=Sr=xn=0;t<e;){var a=Mt[t];Mt[t++]=null;var n=Mt[t];Mt[t++]=null;var u=Mt[t];Mt[t++]=null;var r=Mt[t];if(Mt[t++]=null,n!==null&&u!==null){var d=n.pending;d===null?u.next=u:(u.next=d.next,d.next=u),n.pending=u}r!==0&&Vc(a,u,r)}}function Ri(e,t,a,n){Mt[xn++]=e,Mt[xn++]=t,Mt[xn++]=a,Mt[xn++]=n,Sr|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function xr(e,t,a,n){return Ri(e,t,a,n),Oi(e)}function Xa(e,t){return Ri(e,null,null,t),Oi(e)}function Vc(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var u=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(u=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,u&&t!==null&&(u=31-vt(a),e=r.hiddenUpdates,n=e[u],n===null?e[u]=[t]:n.push(t),t.lane=a|536870912),r):null}function Oi(e){if(50<Hl)throw Hl=0,Ns=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var En={};function Lp(e,t,a,n){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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function St(e,t,a,n){return new Lp(e,t,a,n)}function Er(e){return e=e.prototype,!(!e||!e.isReactComponent)}function It(e,t){var a=e.alternate;return a===null?(a=St(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 Gc(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 Ai(e,t,a,n,u,r){var d=0;if(n=e,typeof e=="function")Er(e)&&(d=1);else if(typeof e=="string")d=B0(e,a,Q.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case re:return e=St(31,a,t,u),e.elementType=re,e.lanes=r,e;case H:return Qa(a.children,u,r,t);case k:d=8,u|=24;break;case Y:return e=St(12,a,t,u|2),e.elementType=Y,e.lanes=r,e;case ee:return e=St(13,a,t,u),e.elementType=ee,e.lanes=r,e;case se:return e=St(19,a,t,u),e.elementType=se,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case q:d=9;break e;case $:d=11;break e;case J:d=14;break e;case ne:d=16,n=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=St(d,a,t,u),t.elementType=e,t.type=n,t.lanes=r,t}function Qa(e,t,a,n){return e=St(7,e,n,t),e.lanes=a,e}function Tr(e,t,a){return e=St(6,e,null,t),e.lanes=a,e}function Kc(e){var t=St(18,null,null,0);return t.stateNode=e,t}function Rr(e,t,a){return t=St(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xc=new WeakMap;function Dt(e,t){if(typeof e=="object"&&e!==null){var a=Xc.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ko(t)},Xc.set(e,t),t)}return{value:e,source:t,stack:Ko(t)}}var Tn=[],Rn=0,_i=null,pl=0,Lt=[],jt=0,ya=null,Kt=1,Xt="";function Pt(e,t){Tn[Rn++]=pl,Tn[Rn++]=_i,_i=e,pl=t}function Qc(e,t,a){Lt[jt++]=Kt,Lt[jt++]=Xt,Lt[jt++]=ya,ya=e;var n=Kt;e=Xt;var u=32-vt(n)-1;n&=~(1<<u),a+=1;var r=32-vt(t)+u;if(30<r){var d=u-u%5;r=(n&(1<<d)-1).toString(32),n>>=d,u-=d,Kt=1<<32-vt(t)+u|a<<u|n,Xt=r+e}else Kt=1<<r|a<<u|n,Xt=e}function Or(e){e.return!==null&&(Pt(e,1),Qc(e,1,0))}function Ar(e){for(;e===_i;)_i=Tn[--Rn],Tn[Rn]=null,pl=Tn[--Rn],Tn[Rn]=null;for(;e===ya;)ya=Lt[--jt],Lt[jt]=null,Xt=Lt[--jt],Lt[jt]=null,Kt=Lt[--jt],Lt[jt]=null}function Zc(e,t){Lt[jt++]=Kt,Lt[jt++]=Xt,Lt[jt++]=ya,Kt=t.id,Xt=t.overflow,ya=e}var Ie=null,ze=null,ge=!1,va=null,wt=!1,_r=Error(o(519));function ba(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw yl(Dt(t,e)),_r}function Jc(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[We]=e,t[st]=n,a){case"dialog":fe("cancel",t),fe("close",t);break;case"iframe":case"object":case"embed":fe("load",t);break;case"video":case"audio":for(a=0;a<kl.length;a++)fe(kl[a],t);break;case"source":fe("error",t);break;case"img":case"image":case"link":fe("error",t),fe("load",t);break;case"details":fe("toggle",t);break;case"input":fe("invalid",t),rc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":fe("invalid",t);break;case"textarea":fe("invalid",t),oc(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||dh(t.textContent,a)?(n.popover!=null&&(fe("beforetoggle",t),fe("toggle",t)),n.onScroll!=null&&fe("scroll",t),n.onScrollEnd!=null&&fe("scrollend",t),n.onClick!=null&&(t.onclick=Ft),t=!0):t=!1,t||ba(e,!0)}function $c(e){for(Ie=e.return;Ie;)switch(Ie.tag){case 5:case 31:case 13:wt=!1;return;case 27:case 3:wt=!0;return;default:Ie=Ie.return}}function On(e){if(e!==Ie)return!1;if(!ge)return $c(e),ge=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Xs(e.type,e.memoizedProps)),a=!a),a&&ze&&ba(e),$c(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=xh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ze=xh(e)}else t===27?(t=ze,La(e.type)?(e=Fs,Fs=null,ze=e):ze=t):ze=Ie?Ht(e.stateNode.nextSibling):null;return!0}function Za(){ze=Ie=null,ge=!1}function Cr(){var e=va;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),va=null),e}function yl(e){va===null?va=[e]:va.push(e)}var zr=x(null),Ja=null,ea=null;function Sa(e,t,a){G(zr,t._currentValue),t._currentValue=a}function ta(e){e._currentValue=zr.current,w(zr)}function Nr(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Mr(e,t,a,n){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var r=u.dependencies;if(r!==null){var d=u.child;r=r.firstContext;e:for(;r!==null;){var p=r;r=u;for(var S=0;S<t.length;S++)if(p.context===t[S]){r.lanes|=a,p=r.alternate,p!==null&&(p.lanes|=a),Nr(r.return,a,e),n||(d=null);break e}r=p.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=a,r=d.alternate,r!==null&&(r.lanes|=a),Nr(d,a,e),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function An(e,t,a,n){e=null;for(var u=t,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var p=u.type;bt(u.pendingProps.value,d.value)||(e!==null?e.push(p):e=[p])}}else if(u===xe.current){if(d=u.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Kl):e=[Kl])}u=u.return}e!==null&&Mr(t,e,a,n),t.flags|=262144}function Ci(e){for(e=e.firstContext;e!==null;){if(!bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $a(e){Ja=e,ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return Fc(Ja,e)}function zi(e,t){return Ja===null&&$a(e),Fc(e,t)}function Fc(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ea===null){if(e===null)throw Error(o(308));ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ea=ea.next=t;return a}var jp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},wp=l.unstable_scheduleCallback,Up=l.unstable_NormalPriority,Ve={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dr(){return{controller:new jp,data:new Map,refCount:0}}function vl(e){e.refCount--,e.refCount===0&&wp(Up,function(){e.controller.abort()})}var bl=null,Lr=0,_n=0,Cn=null;function Hp(e,t){if(bl===null){var a=bl=[];Lr=0,_n=Us(),Cn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Lr++,t.then(Wc,Wc),t}function Wc(){if(--Lr===0&&bl!==null){Cn!==null&&(Cn.status="fulfilled");var e=bl;bl=null,_n=0,Cn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Bp(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(n.status="rejected",n.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),n}var Ic=D.S;D.S=function(e,t){Ud=pt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Hp(e,t),Ic!==null&&Ic(e,t)};var Fa=x(null);function jr(){var e=Fa.current;return e!==null?e:_e.pooledCache}function Ni(e,t){t===null?G(Fa,Fa.current):G(Fa,t.pool)}function Pc(){var e=jr();return e===null?null:{parent:Ve._currentValue,pool:e}}var zn=Error(o(460)),wr=Error(o(474)),Mi=Error(o(542)),Di={then:function(){}};function ef(e){return e=e.status,e==="fulfilled"||e==="rejected"}function tf(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ft,Ft),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nf(e),e;default:if(typeof t.status=="string")t.then(Ft,Ft);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=n}},function(n){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,nf(e),e}throw Ia=t,zn}}function Wa(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Ia=a,zn):a}}var Ia=null;function af(){if(Ia===null)throw Error(o(459));var e=Ia;return Ia=null,e}function nf(e){if(e===zn||e===Mi)throw Error(o(483))}var Nn=null,Sl=0;function Li(e){var t=Sl;return Sl+=1,Nn===null&&(Nn=[]),tf(Nn,e,t)}function xl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ji(e,t){throw t.$$typeof===O?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lf(e){function t(R,E){if(e){var _=R.deletions;_===null?(R.deletions=[E],R.flags|=16):_.push(E)}}function a(R,E){if(!e)return null;for(;E!==null;)t(R,E),E=E.sibling;return null}function n(R){for(var E=new Map;R!==null;)R.key!==null?E.set(R.key,R):E.set(R.index,R),R=R.sibling;return E}function u(R,E){return R=It(R,E),R.index=0,R.sibling=null,R}function r(R,E,_){return R.index=_,e?(_=R.alternate,_!==null?(_=_.index,_<E?(R.flags|=67108866,E):_):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function p(R,E,_,U){return E===null||E.tag!==6?(E=Tr(_,R.mode,U),E.return=R,E):(E=u(E,_),E.return=R,E)}function S(R,E,_,U){var W=_.type;return W===H?L(R,E,_.props.children,U,_.key):E!==null&&(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ne&&Wa(W)===E.type)?(E=u(E,_.props),xl(E,_),E.return=R,E):(E=Ai(_.type,_.key,_.props,null,R.mode,U),xl(E,_),E.return=R,E)}function C(R,E,_,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==_.containerInfo||E.stateNode.implementation!==_.implementation?(E=Rr(_,R.mode,U),E.return=R,E):(E=u(E,_.children||[]),E.return=R,E)}function L(R,E,_,U,W){return E===null||E.tag!==7?(E=Qa(_,R.mode,U,W),E.return=R,E):(E=u(E,_),E.return=R,E)}function B(R,E,_){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Tr(""+E,R.mode,_),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case N:return _=Ai(E.type,E.key,E.props,null,R.mode,_),xl(_,E),_.return=R,_;case A:return E=Rr(E,R.mode,_),E.return=R,E;case ne:return E=Wa(E),B(R,E,_)}if(we(E)||Je(E))return E=Qa(E,R.mode,_,null),E.return=R,E;if(typeof E.then=="function")return B(R,Li(E),_);if(E.$$typeof===K)return B(R,zi(R,E),_);ji(R,E)}return null}function z(R,E,_,U){var W=E!==null?E.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return W!==null?null:p(R,E,""+_,U);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case N:return _.key===W?S(R,E,_,U):null;case A:return _.key===W?C(R,E,_,U):null;case ne:return _=Wa(_),z(R,E,_,U)}if(we(_)||Je(_))return W!==null?null:L(R,E,_,U,null);if(typeof _.then=="function")return z(R,E,Li(_),U);if(_.$$typeof===K)return z(R,E,zi(R,_),U);ji(R,_)}return null}function M(R,E,_,U,W){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return R=R.get(_)||null,p(E,R,""+U,W);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case N:return R=R.get(U.key===null?_:U.key)||null,S(E,R,U,W);case A:return R=R.get(U.key===null?_:U.key)||null,C(E,R,U,W);case ne:return U=Wa(U),M(R,E,_,U,W)}if(we(U)||Je(U))return R=R.get(_)||null,L(E,R,U,W,null);if(typeof U.then=="function")return M(R,E,_,Li(U),W);if(U.$$typeof===K)return M(R,E,_,zi(E,U),W);ji(E,U)}return null}function Z(R,E,_,U){for(var W=null,ye=null,F=E,ue=E=0,me=null;F!==null&&ue<_.length;ue++){F.index>ue?(me=F,F=null):me=F.sibling;var ve=z(R,F,_[ue],U);if(ve===null){F===null&&(F=me);break}e&&F&&ve.alternate===null&&t(R,F),E=r(ve,E,ue),ye===null?W=ve:ye.sibling=ve,ye=ve,F=me}if(ue===_.length)return a(R,F),ge&&Pt(R,ue),W;if(F===null){for(;ue<_.length;ue++)F=B(R,_[ue],U),F!==null&&(E=r(F,E,ue),ye===null?W=F:ye.sibling=F,ye=F);return ge&&Pt(R,ue),W}for(F=n(F);ue<_.length;ue++)me=M(F,R,ue,_[ue],U),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?ue:me.key),E=r(me,E,ue),ye===null?W=me:ye.sibling=me,ye=me);return e&&F.forEach(function(Ba){return t(R,Ba)}),ge&&Pt(R,ue),W}function P(R,E,_,U){if(_==null)throw Error(o(151));for(var W=null,ye=null,F=E,ue=E=0,me=null,ve=_.next();F!==null&&!ve.done;ue++,ve=_.next()){F.index>ue?(me=F,F=null):me=F.sibling;var Ba=z(R,F,ve.value,U);if(Ba===null){F===null&&(F=me);break}e&&F&&Ba.alternate===null&&t(R,F),E=r(Ba,E,ue),ye===null?W=Ba:ye.sibling=Ba,ye=Ba,F=me}if(ve.done)return a(R,F),ge&&Pt(R,ue),W;if(F===null){for(;!ve.done;ue++,ve=_.next())ve=B(R,ve.value,U),ve!==null&&(E=r(ve,E,ue),ye===null?W=ve:ye.sibling=ve,ye=ve);return ge&&Pt(R,ue),W}for(F=n(F);!ve.done;ue++,ve=_.next())ve=M(F,R,ue,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&F.delete(ve.key===null?ue:ve.key),E=r(ve,E,ue),ye===null?W=ve:ye.sibling=ve,ye=ve);return e&&F.forEach(function($0){return t(R,$0)}),ge&&Pt(R,ue),W}function Ae(R,E,_,U){if(typeof _=="object"&&_!==null&&_.type===H&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case N:e:{for(var W=_.key;E!==null;){if(E.key===W){if(W=_.type,W===H){if(E.tag===7){a(R,E.sibling),U=u(E,_.props.children),U.return=R,R=U;break e}}else if(E.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ne&&Wa(W)===E.type){a(R,E.sibling),U=u(E,_.props),xl(U,_),U.return=R,R=U;break e}a(R,E);break}else t(R,E);E=E.sibling}_.type===H?(U=Qa(_.props.children,R.mode,U,_.key),U.return=R,R=U):(U=Ai(_.type,_.key,_.props,null,R.mode,U),xl(U,_),U.return=R,R=U)}return d(R);case A:e:{for(W=_.key;E!==null;){if(E.key===W)if(E.tag===4&&E.stateNode.containerInfo===_.containerInfo&&E.stateNode.implementation===_.implementation){a(R,E.sibling),U=u(E,_.children||[]),U.return=R,R=U;break e}else{a(R,E);break}else t(R,E);E=E.sibling}U=Rr(_,R.mode,U),U.return=R,R=U}return d(R);case ne:return _=Wa(_),Ae(R,E,_,U)}if(we(_))return Z(R,E,_,U);if(Je(_)){if(W=Je(_),typeof W!="function")throw Error(o(150));return _=W.call(_),P(R,E,_,U)}if(typeof _.then=="function")return Ae(R,E,Li(_),U);if(_.$$typeof===K)return Ae(R,E,zi(R,_),U);ji(R,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,E!==null&&E.tag===6?(a(R,E.sibling),U=u(E,_),U.return=R,R=U):(a(R,E),U=Tr(_,R.mode,U),U.return=R,R=U),d(R)):a(R,E)}return function(R,E,_,U){try{Sl=0;var W=Ae(R,E,_,U);return Nn=null,W}catch(F){if(F===zn||F===Mi)throw F;var ye=St(29,F,null,R.mode);return ye.lanes=U,ye.return=R,ye}finally{}}}var Pa=lf(!0),uf=lf(!1),xa=!1;function Ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ea(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ta(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(be&2)!==0){var u=n.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),n.pending=t,t=Oi(e),Vc(e,null,a),t}return Ri(e,n,t,a),Oi(e)}function El(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Fo(e,a)}}function Br(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var u=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?u=r=d:r=r.next=d,a=a.next}while(a!==null);r===null?u=r=t:r=r.next=t}else u=r=t;a={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var kr=!1;function Tl(){if(kr){var e=Cn;if(e!==null)throw e}}function Rl(e,t,a,n){kr=!1;var u=e.updateQueue;xa=!1;var r=u.firstBaseUpdate,d=u.lastBaseUpdate,p=u.shared.pending;if(p!==null){u.shared.pending=null;var S=p,C=S.next;S.next=null,d===null?r=C:d.next=C,d=S;var L=e.alternate;L!==null&&(L=L.updateQueue,p=L.lastBaseUpdate,p!==d&&(p===null?L.firstBaseUpdate=C:p.next=C,L.lastBaseUpdate=S))}if(r!==null){var B=u.baseState;d=0,L=C=S=null,p=r;do{var z=p.lane&-536870913,M=z!==p.lane;if(M?(he&z)===z:(n&z)===z){z!==0&&z===_n&&(kr=!0),L!==null&&(L=L.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var Z=e,P=p;z=t;var Ae=a;switch(P.tag){case 1:if(Z=P.payload,typeof Z=="function"){B=Z.call(Ae,B,z);break e}B=Z;break e;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=P.payload,z=typeof Z=="function"?Z.call(Ae,B,z):Z,z==null)break e;B=v({},B,z);break e;case 2:xa=!0}}z=p.callback,z!==null&&(e.flags|=64,M&&(e.flags|=8192),M=u.callbacks,M===null?u.callbacks=[z]:M.push(z))}else M={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},L===null?(C=L=M,S=B):L=L.next=M,d|=z;if(p=p.next,p===null){if(p=u.shared.pending,p===null)break;M=p,p=M.next,M.next=null,u.lastBaseUpdate=M,u.shared.pending=null}}while(!0);L===null&&(S=B),u.baseState=S,u.firstBaseUpdate=C,u.lastBaseUpdate=L,r===null&&(u.shared.lanes=0),Ca|=d,e.lanes=d,e.memoizedState=B}}function rf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function sf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)rf(a[e],t)}var Mn=x(null),wi=x(0);function of(e,t){e=ca,G(wi,e),G(Mn,t),ca=e|t.baseLanes}function Yr(){G(wi,ca),G(Mn,Mn.current)}function qr(){ca=wi.current,w(Mn),w(wi)}var xt=x(null),Ut=null;function Ra(e){var t=e.alternate;G(ke,ke.current&1),G(xt,e),Ut===null&&(t===null||Mn.current!==null||t.memoizedState!==null)&&(Ut=e)}function Vr(e){G(ke,ke.current),G(xt,e),Ut===null&&(Ut=e)}function cf(e){e.tag===22?(G(ke,ke.current),G(xt,e),Ut===null&&(Ut=e)):Oa()}function Oa(){G(ke,ke.current),G(xt,xt.current)}function Et(e){w(xt),Ut===e&&(Ut=null),w(ke)}var ke=x(0);function Ui(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Js(a)||$s(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 aa=0,ie=null,Re=null,Ge=null,Hi=!1,Dn=!1,en=!1,Bi=0,Ol=0,Ln=null,kp=0;function Ue(){throw Error(o(321))}function Gr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!bt(e[a],t[a]))return!1;return!0}function Kr(e,t,a,n,u,r){return aa=r,ie=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Zf:is,en=!1,r=a(n,u),en=!1,Dn&&(r=df(t,a,n,u)),ff(e),r}function ff(e){D.H=Cl;var t=Re!==null&&Re.next!==null;if(aa=0,Ge=Re=ie=null,Hi=!1,Ol=0,Ln=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&Ci(e)&&(Ke=!0))}function df(e,t,a,n){ie=e;var u=0;do{if(Dn&&(Ln=null),Ol=0,Dn=!1,25<=u)throw Error(o(301));if(u+=1,Ge=Re=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=Jf,r=t(a,n)}while(Dn);return r}function Yp(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Al(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(ie.flags|=1024),t}function Xr(){var e=Bi!==0;return Bi=0,e}function Qr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Zr(e){if(Hi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hi=!1}aa=0,Ge=Re=ie=null,Dn=!1,Ol=Bi=0,Ln=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?ie.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Ye(){if(Re===null){var e=ie.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ge===null?ie.memoizedState:Ge.next;if(t!==null)Ge=t,Re=e;else{if(e===null)throw ie.alternate===null?Error(o(467)):Error(o(310));Re=e,e={memoizedState:Re.memoizedState,baseState:Re.baseState,baseQueue:Re.baseQueue,queue:Re.queue,next:null},Ge===null?ie.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function ki(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(e){var t=Ol;return Ol+=1,Ln===null&&(Ln=[]),e=tf(Ln,e,t),t=ie,(Ge===null?t.memoizedState:Ge.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Zf:is),e}function Yi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Al(e);if(e.$$typeof===K)return Pe(e)}throw Error(o(438,String(e)))}function Jr(e){var t=null,a=ie.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=ie.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ki(),ie.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=de;return t.index++,a}function na(e,t){return typeof t=="function"?t(e):t}function qi(e){var t=Ye();return $r(t,Re,e)}function $r(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var u=e.baseQueue,r=n.pending;if(r!==null){if(u!==null){var d=u.next;u.next=r.next,r.next=d}t.baseQueue=u=r,n.pending=null}if(r=e.baseState,u===null)e.memoizedState=r;else{t=u.next;var p=d=null,S=null,C=t,L=!1;do{var B=C.lane&-536870913;if(B!==C.lane?(he&B)===B:(aa&B)===B){var z=C.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),B===_n&&(L=!0);else if((aa&z)===z){C=C.next,z===_n&&(L=!0);continue}else B={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(p=S=B,d=r):S=S.next=B,ie.lanes|=z,Ca|=z;B=C.action,en&&a(r,B),r=C.hasEagerState?C.eagerState:a(r,B)}else z={lane:B,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(p=S=z,d=r):S=S.next=z,ie.lanes|=B,Ca|=B;C=C.next}while(C!==null&&C!==t);if(S===null?d=r:S.next=p,!bt(r,e.memoizedState)&&(Ke=!0,L&&(a=Cn,a!==null)))throw a;e.memoizedState=r,e.baseState=d,e.baseQueue=S,n.lastRenderedState=r}return u===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Fr(e){var t=Ye(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,u=a.pending,r=t.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do r=e(r,d.action),d=d.next;while(d!==u);bt(r,t.memoizedState)||(Ke=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function hf(e,t,a){var n=ie,u=Ye(),r=ge;if(r){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!bt((Re||u).memoizedState,a);if(d&&(u.memoizedState=a,Ke=!0),u=u.queue,Pr(pf.bind(null,n,u,e),[e]),u.getSnapshot!==t||d||Ge!==null&&Ge.memoizedState.tag&1){if(n.flags|=2048,jn(9,{destroy:void 0},gf.bind(null,n,u,a,t),null),_e===null)throw Error(o(349));r||(aa&127)!==0||mf(n,t,a)}return a}function mf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ie.updateQueue,t===null?(t=ki(),ie.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function gf(e,t,a,n){t.value=a,t.getSnapshot=n,yf(t)&&vf(e)}function pf(e,t,a){return a(function(){yf(t)&&vf(e)})}function yf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!bt(e,a)}catch{return!0}}function vf(e){var t=Xa(e,2);t!==null&&mt(t,e,2)}function Wr(e){var t=rt();if(typeof e=="function"){var a=e;if(e=a(),en){ma(!0);try{a()}finally{ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:e},t}function bf(e,t,a,n){return e.baseState=a,$r(e,Re,typeof n=="function"?n:na)}function qp(e,t,a,n,u){if(Ki(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){r.listeners.push(d)}};D.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Sf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Sf(e,t){var a=t.action,n=t.payload,u=e.state;if(t.isTransition){var r=D.T,d={};D.T=d;try{var p=a(u,n),S=D.S;S!==null&&S(d,p),xf(e,t,p)}catch(C){Ir(e,t,C)}finally{r!==null&&d.types!==null&&(r.types=d.types),D.T=r}}else try{r=a(u,n),xf(e,t,r)}catch(C){Ir(e,t,C)}}function xf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Ef(e,t,n)},function(n){return Ir(e,t,n)}):Ef(e,t,a)}function Ef(e,t,a){t.status="fulfilled",t.value=a,Tf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Sf(e,a)))}function Ir(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Tf(t),t=t.next;while(t!==n)}e.action=null}function Tf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rf(e,t){return t}function Of(e,t){if(ge){var a=_e.formState;if(a!==null){e:{var n=ie;if(ge){if(ze){t:{for(var u=ze,r=wt;u.nodeType!==8;){if(!r){u=null;break t}if(u=Ht(u.nextSibling),u===null){u=null;break t}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){ze=Ht(u.nextSibling),n=u.data==="F!";break e}}ba(n)}n=!1}n&&(t=a[0])}}return a=rt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rf,lastRenderedState:t},a.queue=n,a=Kf.bind(null,ie,n),n.dispatch=a,n=Wr(!1),r=ls.bind(null,ie,!1,n.queue),n=rt(),u={state:t,dispatch:null,action:e,pending:null},n.queue=u,a=qp.bind(null,ie,u,r,a),u.dispatch=a,n.memoizedState=e,[t,a,!1]}function Af(e){var t=Ye();return _f(t,Re,e)}function _f(e,t,a){if(t=$r(e,t,Rf)[0],e=qi(na)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Al(t)}catch(d){throw d===zn?Mi:d}else n=t;t=Ye();var u=t.queue,r=u.dispatch;return a!==t.memoizedState&&(ie.flags|=2048,jn(9,{destroy:void 0},Vp.bind(null,u,a),null)),[n,r,e]}function Vp(e,t){e.action=t}function Cf(e){var t=Ye(),a=Re;if(a!==null)return _f(t,a,e);Ye(),t=t.memoizedState,a=Ye();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function jn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=ie.updateQueue,t===null&&(t=ki(),ie.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function zf(){return Ye().memoizedState}function Vi(e,t,a,n){var u=rt();ie.flags|=e,u.memoizedState=jn(1|t,{destroy:void 0},a,n===void 0?null:n)}function Gi(e,t,a,n){var u=Ye();n=n===void 0?null:n;var r=u.memoizedState.inst;Re!==null&&n!==null&&Gr(n,Re.memoizedState.deps)?u.memoizedState=jn(t,r,a,n):(ie.flags|=e,u.memoizedState=jn(1|t,r,a,n))}function Nf(e,t){Vi(8390656,8,e,t)}function Pr(e,t){Gi(2048,8,e,t)}function Gp(e){ie.flags|=4;var t=ie.updateQueue;if(t===null)t=ki(),ie.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Mf(e){var t=Ye().memoizedState;return Gp({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Df(e,t){return Gi(4,2,e,t)}function Lf(e,t){return Gi(4,4,e,t)}function jf(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 wf(e,t,a){a=a!=null?a.concat([e]):null,Gi(4,4,jf.bind(null,t,e),a)}function es(){}function Uf(e,t){var a=Ye();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Gr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Hf(e,t){var a=Ye();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Gr(t,n[1]))return n[0];if(n=e(),en){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[n,t],n}function ts(e,t,a){return a===void 0||(aa&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Bd(),ie.lanes|=e,Ca|=e,a)}function Bf(e,t,a,n){return bt(a,t)?a:Mn.current!==null?(e=ts(e,a,n),bt(e,t)||(Ke=!0),e):(aa&42)===0||(aa&1073741824)!==0&&(he&261930)===0?(Ke=!0,e.memoizedState=a):(e=Bd(),ie.lanes|=e,Ca|=e,t)}function kf(e,t,a,n,u){var r=V.p;V.p=r!==0&&8>r?r:8;var d=D.T,p={};D.T=p,ls(e,!1,t,a);try{var S=u(),C=D.S;if(C!==null&&C(p,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=Bp(S,n);_l(e,t,L,Ot(e))}else _l(e,t,n,Ot(e))}catch(B){_l(e,t,{then:function(){},status:"rejected",reason:B},Ot())}finally{V.p=r,d!==null&&p.types!==null&&(d.types=p.types),D.T=d}}function Kp(){}function as(e,t,a,n){if(e.tag!==5)throw Error(o(476));var u=Yf(e).queue;kf(e,u,t,I,a===null?Kp:function(){return qf(e),a(n)})}function Yf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:na,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qf(e){var t=Yf(e);t.next===null&&(t=e.alternate.memoizedState),_l(e,t.next.queue,{},Ot())}function ns(){return Pe(Kl)}function Vf(){return Ye().memoizedState}function Gf(){return Ye().memoizedState}function Xp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ot();e=Ea(a);var n=Ta(t,e,a);n!==null&&(mt(n,t,a),El(n,t,a)),t={cache:Dr()},e.payload=t;return}t=t.return}}function Qp(e,t,a){var n=Ot();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ki(e)?Xf(t,a):(a=xr(e,t,a,n),a!==null&&(mt(a,e,n),Qf(a,t,n)))}function Kf(e,t,a){var n=Ot();_l(e,t,a,n)}function _l(e,t,a,n){var u={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ki(e))Xf(t,u);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var d=t.lastRenderedState,p=r(d,a);if(u.hasEagerState=!0,u.eagerState=p,bt(p,d))return Ri(e,t,u,0),_e===null&&Ti(),!1}catch{}finally{}if(a=xr(e,t,u,n),a!==null)return mt(a,e,n),Qf(a,t,n),!0}return!1}function ls(e,t,a,n){if(n={lane:2,revertLane:Us(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ki(e)){if(t)throw Error(o(479))}else t=xr(e,a,n,2),t!==null&&mt(t,e,2)}function Ki(e){var t=e.alternate;return e===ie||t!==null&&t===ie}function Xf(e,t){Dn=Hi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Qf(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Fo(e,a)}}var Cl={readContext:Pe,use:Yi,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useLayoutEffect:Ue,useInsertionEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useSyncExternalStore:Ue,useId:Ue,useHostTransitionStatus:Ue,useFormState:Ue,useActionState:Ue,useOptimistic:Ue,useMemoCache:Ue,useCacheRefresh:Ue};Cl.useEffectEvent=Ue;var Zf={readContext:Pe,use:Yi,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:Nf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vi(4194308,4,jf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vi(4194308,4,e,t)},useInsertionEffect:function(e,t){Vi(4,2,e,t)},useMemo:function(e,t){var a=rt();t=t===void 0?null:t;var n=e();if(en){ma(!0);try{e()}finally{ma(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=rt();if(a!==void 0){var u=a(t);if(en){ma(!0);try{a(t)}finally{ma(!1)}}}else u=t;return n.memoizedState=n.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},n.queue=e,e=e.dispatch=Qp.bind(null,ie,e),[n.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=Wr(e);var t=e.queue,a=Kf.bind(null,ie,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:es,useDeferredValue:function(e,t){var a=rt();return ts(a,e,t)},useTransition:function(){var e=Wr(!1);return e=kf.bind(null,ie,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=ie,u=rt();if(ge){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),_e===null)throw Error(o(349));(he&127)!==0||mf(n,t,a)}u.memoizedState=a;var r={value:a,getSnapshot:t};return u.queue=r,Nf(pf.bind(null,n,r,e),[e]),n.flags|=2048,jn(9,{destroy:void 0},gf.bind(null,n,r,a,t),null),a},useId:function(){var e=rt(),t=_e.identifierPrefix;if(ge){var a=Xt,n=Kt;a=(n&~(1<<32-vt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Bi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=kp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ns,useFormState:Of,useActionState:Of,useOptimistic:function(e){var t=rt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ls.bind(null,ie,!0,a),a.dispatch=t,[e,t]},useMemoCache:Jr,useCacheRefresh:function(){return rt().memoizedState=Xp.bind(null,ie)},useEffectEvent:function(e){var t=rt(),a={impl:e};return t.memoizedState=a,function(){if((be&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},is={readContext:Pe,use:Yi,useCallback:Uf,useContext:Pe,useEffect:Pr,useImperativeHandle:wf,useInsertionEffect:Df,useLayoutEffect:Lf,useMemo:Hf,useReducer:qi,useRef:zf,useState:function(){return qi(na)},useDebugValue:es,useDeferredValue:function(e,t){var a=Ye();return Bf(a,Re.memoizedState,e,t)},useTransition:function(){var e=qi(na)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:hf,useId:Vf,useHostTransitionStatus:ns,useFormState:Af,useActionState:Af,useOptimistic:function(e,t){var a=Ye();return bf(a,Re,e,t)},useMemoCache:Jr,useCacheRefresh:Gf};is.useEffectEvent=Mf;var Jf={readContext:Pe,use:Yi,useCallback:Uf,useContext:Pe,useEffect:Pr,useImperativeHandle:wf,useInsertionEffect:Df,useLayoutEffect:Lf,useMemo:Hf,useReducer:Fr,useRef:zf,useState:function(){return Fr(na)},useDebugValue:es,useDeferredValue:function(e,t){var a=Ye();return Re===null?ts(a,e,t):Bf(a,Re.memoizedState,e,t)},useTransition:function(){var e=Fr(na)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:hf,useId:Vf,useHostTransitionStatus:ns,useFormState:Cf,useActionState:Cf,useOptimistic:function(e,t){var a=Ye();return Re!==null?bf(a,Re,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Jr,useCacheRefresh:Gf};Jf.useEffectEvent=Mf;function us(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var rs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ot(),u=Ea(n);u.payload=t,a!=null&&(u.callback=a),t=Ta(e,u,n),t!==null&&(mt(t,e,n),El(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ot(),u=Ea(n);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ta(e,u,n),t!==null&&(mt(t,e,n),El(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ot(),n=Ea(a);n.tag=2,t!=null&&(n.callback=t),t=Ta(e,n,a),t!==null&&(mt(t,e,a),El(t,e,a))}};function $f(e,t,a,n,u,r,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,d):t.prototype&&t.prototype.isPureReactComponent?!ml(a,n)||!ml(u,r):!0}function Ff(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&rs.enqueueReplaceState(t,t.state,null)}function tn(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function Wf(e){Ei(e)}function If(e){console.error(e)}function Pf(e){Ei(e)}function Xi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function ed(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function ss(e,t,a){return a=Ea(a),a.tag=3,a.payload={element:null},a.callback=function(){Xi(e,t)},a}function td(e){return e=Ea(e),e.tag=3,e}function ad(e,t,a,n){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var r=n.value;e.payload=function(){return u(r)},e.callback=function(){ed(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){ed(t,a,n),typeof u!="function"&&(za===null?za=new Set([this]):za.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})})}function Zp(e,t,a,n,u){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&An(t,a,u,!0),a=xt.current,a!==null){switch(a.tag){case 31:case 13:return Ut===null?nu():a.alternate===null&&He===0&&(He=3),a.flags&=-257,a.flags|=65536,a.lanes=u,n===Di?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Ls(e,n,u)),!1;case 22:return a.flags|=65536,n===Di?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Ls(e,n,u)),!1}throw Error(o(435,a.tag))}return Ls(e,n,u),nu(),!1}if(ge)return t=xt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,n!==_r&&(e=Error(o(422),{cause:n}),yl(Dt(e,a)))):(n!==_r&&(t=Error(o(423),{cause:n}),yl(Dt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,n=Dt(n,a),u=ss(e.stateNode,n,u),Br(e,u),He!==4&&(He=2)),!1;var r=Error(o(520),{cause:n});if(r=Dt(r,a),Ul===null?Ul=[r]:Ul.push(r),He!==4&&(He=2),t===null)return!0;n=Dt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=ss(a.stateNode,n,e),Br(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(za===null||!za.has(r))))return a.flags|=65536,u&=-u,a.lanes|=u,u=td(u),ad(u,e,a,n),Br(a,u),!1}a=a.return}while(a!==null);return!1}var os=Error(o(461)),Ke=!1;function et(e,t,a,n){t.child=e===null?uf(t,null,a,n):Pa(t,e.child,a,n)}function nd(e,t,a,n,u){a=a.render;var r=t.ref;if("ref"in n){var d={};for(var p in n)p!=="ref"&&(d[p]=n[p])}else d=n;return $a(t),n=Kr(e,t,a,d,r,u),p=Xr(),e!==null&&!Ke?(Qr(e,t,u),la(e,t,u)):(ge&&p&&Or(t),t.flags|=1,et(e,t,n,u),t.child)}function ld(e,t,a,n,u){if(e===null){var r=a.type;return typeof r=="function"&&!Er(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,id(e,t,r,n,u)):(e=Ai(a.type,null,n,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!ys(e,u)){var d=r.memoizedProps;if(a=a.compare,a=a!==null?a:ml,a(d,n)&&e.ref===t.ref)return la(e,t,u)}return t.flags|=1,e=It(r,n),e.ref=t.ref,e.return=t,t.child=e}function id(e,t,a,n,u){if(e!==null){var r=e.memoizedProps;if(ml(r,n)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=n=r,ys(e,u))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,la(e,t,u)}return cs(e,t,a,n,u)}function ud(e,t,a,n){var u=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;n=u&~r}else n=0,t.child=null;return rd(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ni(t,r!==null?r.cachePool:null),r!==null?of(t,r):Yr(),cf(t);else return n=t.lanes=536870912,rd(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(Ni(t,r.cachePool),of(t,r),Oa(),t.memoizedState=null):(e!==null&&Ni(t,null),Yr(),Oa());return et(e,t,u,a),t.child}function zl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rd(e,t,a,n,u){var r=jr();return r=r===null?null:{parent:Ve._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Ni(t,null),Yr(),cf(t),e!==null&&An(e,t,n,!0),t.childLanes=u,null}function Qi(e,t){return t=Ji({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function sd(e,t,a){return Pa(t,e.child,null,a),e=Qi(t,t.pendingProps),e.flags|=2,Et(t),t.memoizedState=null,e}function Jp(e,t,a){var n=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(n.mode==="hidden")return e=Qi(t,n),t.lanes=536870912,zl(null,e);if(Vr(t),(e=ze)?(e=Sh(e,wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:Kt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},a=Kc(e),a.return=t,t.child=a,Ie=t,ze=null)):e=null,e===null)throw ba(t);return t.lanes=536870912,null}return Qi(t,n)}var r=e.memoizedState;if(r!==null){var d=r.dehydrated;if(Vr(t),u)if(t.flags&256)t.flags&=-257,t=sd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ke||An(e,t,a,!1),u=(a&e.childLanes)!==0,Ke||u){if(n=_e,n!==null&&(d=Wo(n,a),d!==0&&d!==r.retryLane))throw r.retryLane=d,Xa(e,d),mt(n,e,d),os;nu(),t=sd(e,t,a)}else e=r.treeContext,ze=Ht(d.nextSibling),Ie=t,ge=!0,va=null,wt=!1,e!==null&&Zc(t,e),t=Qi(t,n),t.flags|=4096;return t}return e=It(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zi(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(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function cs(e,t,a,n,u){return $a(t),a=Kr(e,t,a,n,void 0,u),n=Xr(),e!==null&&!Ke?(Qr(e,t,u),la(e,t,u)):(ge&&n&&Or(t),t.flags|=1,et(e,t,a,u),t.child)}function od(e,t,a,n,u,r){return $a(t),t.updateQueue=null,a=df(t,n,a,u),ff(e),n=Xr(),e!==null&&!Ke?(Qr(e,t,r),la(e,t,r)):(ge&&n&&Or(t),t.flags|=1,et(e,t,a,r),t.child)}function cd(e,t,a,n,u){if($a(t),t.stateNode===null){var r=En,d=a.contextType;typeof d=="object"&&d!==null&&(r=Pe(d)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=rs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},Ur(t),d=a.contextType,r.context=typeof d=="object"&&d!==null?Pe(d):En,r.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(us(t,a,d,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(d=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),d!==r.state&&rs.enqueueReplaceState(r,r.state,null),Rl(t,n,r,u),Tl(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var p=t.memoizedProps,S=tn(a,p);r.props=S;var C=r.context,L=a.contextType;d=En,typeof L=="object"&&L!==null&&(d=Pe(L));var B=a.getDerivedStateFromProps;L=typeof B=="function"||typeof r.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,L||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(p||C!==d)&&Ff(t,r,n,d),xa=!1;var z=t.memoizedState;r.state=z,Rl(t,n,r,u),Tl(),C=t.memoizedState,p||z!==C||xa?(typeof B=="function"&&(us(t,a,B,n),C=t.memoizedState),(S=xa||$f(t,a,S,n,z,C,d))?(L||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=C),r.props=n,r.state=C,r.context=d,n=S):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,Hr(e,t),d=t.memoizedProps,L=tn(a,d),r.props=L,B=t.pendingProps,z=r.context,C=a.contextType,S=En,typeof C=="object"&&C!==null&&(S=Pe(C)),p=a.getDerivedStateFromProps,(C=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(d!==B||z!==S)&&Ff(t,r,n,S),xa=!1,z=t.memoizedState,r.state=z,Rl(t,n,r,u),Tl();var M=t.memoizedState;d!==B||z!==M||xa||e!==null&&e.dependencies!==null&&Ci(e.dependencies)?(typeof p=="function"&&(us(t,a,p,n),M=t.memoizedState),(L=xa||$f(t,a,L,n,z,M,S)||e!==null&&e.dependencies!==null&&Ci(e.dependencies))?(C||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,M,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,M,S)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=M),r.props=n,r.state=M,r.context=S,n=L):(typeof r.componentDidUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,Zi(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=Pa(t,e.child,null,u),t.child=Pa(t,null,a,u)):et(e,t,a,u),t.memoizedState=r.state,e=t.child):e=la(e,t,u),e}function fd(e,t,a,n){return Za(),t.flags|=256,et(e,t,a,n),t.child}var fs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ds(e){return{baseLanes:e,cachePool:Pc()}}function hs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Rt),e}function dd(e,t,a){var n=t.pendingProps,u=!1,r=(t.flags&128)!==0,d;if((d=r)||(d=e!==null&&e.memoizedState===null?!1:(ke.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(u?Ra(t):Oa(),(e=ze)?(e=Sh(e,wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ya!==null?{id:Kt,overflow:Xt}:null,retryLane:536870912,hydrationErrors:null},a=Kc(e),a.return=t,t.child=a,Ie=t,ze=null)):e=null,e===null)throw ba(t);return $s(e)?t.lanes=32:t.lanes=536870912,null}var p=n.children;return n=n.fallback,u?(Oa(),u=t.mode,p=Ji({mode:"hidden",children:p},u),n=Qa(n,u,a,null),p.return=t,n.return=t,p.sibling=n,t.child=p,n=t.child,n.memoizedState=ds(a),n.childLanes=hs(e,d,a),t.memoizedState=fs,zl(null,n)):(Ra(t),ms(t,p))}var S=e.memoizedState;if(S!==null&&(p=S.dehydrated,p!==null)){if(r)t.flags&256?(Ra(t),t.flags&=-257,t=gs(e,t,a)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),p=n.fallback,u=t.mode,n=Ji({mode:"visible",children:n.children},u),p=Qa(p,u,a,null),p.flags|=2,n.return=t,p.return=t,n.sibling=p,t.child=n,Pa(t,e.child,null,a),n=t.child,n.memoizedState=ds(a),n.childLanes=hs(e,d,a),t.memoizedState=fs,t=zl(null,n));else if(Ra(t),$s(p)){if(d=p.nextSibling&&p.nextSibling.dataset,d)var C=d.dgst;d=C,n=Error(o(419)),n.stack="",n.digest=d,yl({value:n,source:null,stack:null}),t=gs(e,t,a)}else if(Ke||An(e,t,a,!1),d=(a&e.childLanes)!==0,Ke||d){if(d=_e,d!==null&&(n=Wo(d,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,Xa(e,n),mt(d,e,n),os;Js(p)||nu(),t=gs(e,t,a)}else Js(p)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,ze=Ht(p.nextSibling),Ie=t,ge=!0,va=null,wt=!1,e!==null&&Zc(t,e),t=ms(t,n.children),t.flags|=4096);return t}return u?(Oa(),p=n.fallback,u=t.mode,S=e.child,C=S.sibling,n=It(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,C!==null?p=It(C,p):(p=Qa(p,u,a,null),p.flags|=2),p.return=t,n.return=t,n.sibling=p,t.child=n,zl(null,n),n=t.child,p=e.child.memoizedState,p===null?p=ds(a):(u=p.cachePool,u!==null?(S=Ve._currentValue,u=u.parent!==S?{parent:S,pool:S}:u):u=Pc(),p={baseLanes:p.baseLanes|a,cachePool:u}),n.memoizedState=p,n.childLanes=hs(e,d,a),t.memoizedState=fs,zl(e.child,n)):(Ra(t),a=e.child,e=a.sibling,a=It(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=a,t.memoizedState=null,a)}function ms(e,t){return t=Ji({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ji(e,t){return e=St(22,e,null,t),e.lanes=0,e}function gs(e,t,a){return Pa(t,e.child,null,a),e=ms(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hd(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Nr(e.return,t,a)}function ps(e,t,a,n,u,r){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:u,treeForkCount:r}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=u,d.treeForkCount=r)}function md(e,t,a){var n=t.pendingProps,u=n.revealOrder,r=n.tail;n=n.children;var d=ke.current,p=(d&2)!==0;if(p?(d=d&1|2,t.flags|=128):d&=1,G(ke,d),et(e,t,n,a),n=ge?pl:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hd(e,a,t);else if(e.tag===19)hd(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(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Ui(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),ps(t,!1,u,a,r,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Ui(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}ps(t,!0,a,null,r,n);break;case"together":ps(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function la(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ca|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(An(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=It(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=It(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function ys(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ci(e)))}function $p(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),Sa(t,Ve,e.memoizedState.cache),Za();break;case 27:case 5:tl(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:Sa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ra(t),t.flags|=128,null):(a&t.child.childLanes)!==0?dd(e,t,a):(Ra(t),e=la(e,t,a),e!==null?e.sibling:null);Ra(t);break;case 19:var u=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(An(e,t,a,!1),n=(a&t.childLanes)!==0),u){if(n)return md(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),G(ke,ke.current),n)break;return null;case 22:return t.lanes=0,ud(e,t,a,t.pendingProps);case 24:Sa(t,Ve,e.memoizedState.cache)}return la(e,t,a)}function gd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!ys(e,a)&&(t.flags&128)===0)return Ke=!1,$p(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,ge&&(t.flags&1048576)!==0&&Qc(t,pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Wa(t.elementType),t.type=e,typeof e=="function")Er(e)?(n=tn(e,n),t.tag=1,t=cd(null,t,e,n,a)):(t.tag=0,t=cs(null,t,e,n,a));else{if(e!=null){var u=e.$$typeof;if(u===$){t.tag=11,t=nd(null,t,e,n,a);break e}else if(u===J){t.tag=14,t=ld(null,t,e,n,a);break e}}throw t=De(e)||e,Error(o(306,t,""))}}return t;case 0:return cs(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,u=tn(n,t.pendingProps),cd(e,t,n,u,a);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var r=t.memoizedState;u=r.element,Hr(e,t),Rl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Sa(t,Ve,n),n!==r.cache&&Mr(t,[Ve],a,!0),Tl(),n=d.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=fd(e,t,n,a);break e}else if(n!==u){u=Dt(Error(o(424)),t),yl(u),t=fd(e,t,n,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(ze=Ht(e.firstChild),Ie=t,ge=!0,va=null,wt=!0,a=uf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Za(),n===u){t=la(e,t,a);break e}et(e,t,n,a)}t=t.child}return t;case 26:return Zi(e,t),e===null?(a=Ah(t.type,null,t.pendingProps,null))?t.memoizedState=a:ge||(a=t.type,e=t.pendingProps,n=cu(oe.current).createElement(a),n[We]=t,n[st]=e,tt(n,a,e),$e(n),t.stateNode=n):t.memoizedState=Ah(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return tl(t),e===null&&ge&&(n=t.stateNode=Th(t.type,t.pendingProps,oe.current),Ie=t,wt=!0,u=ze,La(t.type)?(Fs=u,ze=Ht(n.firstChild)):ze=u),et(e,t,t.pendingProps.children,a),Zi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((u=n=ze)&&(n=O0(n,t.type,t.pendingProps,wt),n!==null?(t.stateNode=n,Ie=t,ze=Ht(n.firstChild),wt=!1,u=!0):u=!1),u||ba(t)),tl(t),u=t.type,r=t.pendingProps,d=e!==null?e.memoizedProps:null,n=r.children,Xs(u,r)?n=null:d!==null&&Xs(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=Kr(e,t,Yp,null,null,a),Kl._currentValue=u),Zi(e,t),et(e,t,n,a),t.child;case 6:return e===null&&ge&&((e=a=ze)&&(a=A0(a,t.pendingProps,wt),a!==null?(t.stateNode=a,Ie=t,ze=null,e=!0):e=!1),e||ba(t)),null;case 13:return dd(e,t,a);case 4:return ut(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Pa(t,null,n,a):et(e,t,n,a),t.child;case 11:return nd(e,t,t.type,t.pendingProps,a);case 7:return et(e,t,t.pendingProps,a),t.child;case 8:return et(e,t,t.pendingProps.children,a),t.child;case 12:return et(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Sa(t,t.type,n.value),et(e,t,n.children,a),t.child;case 9:return u=t.type._context,n=t.pendingProps.children,$a(t),u=Pe(u),n=n(u),t.flags|=1,et(e,t,n,a),t.child;case 14:return ld(e,t,t.type,t.pendingProps,a);case 15:return id(e,t,t.type,t.pendingProps,a);case 19:return md(e,t,a);case 31:return Jp(e,t,a);case 22:return ud(e,t,a,t.pendingProps);case 24:return $a(t),n=Pe(Ve),e===null?(u=jr(),u===null&&(u=_e,r=Dr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=a),u=r),t.memoizedState={parent:n,cache:u},Ur(t),Sa(t,Ve,u)):((e.lanes&a)!==0&&(Hr(e,t),Rl(t,null,null,a),Tl()),u=e.memoizedState,r=t.memoizedState,u.parent!==n?(u={parent:n,cache:n},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Sa(t,Ve,n)):(n=r.cache,Sa(t,Ve,n),n!==u.cache&&Mr(t,[Ve],a,!0))),et(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ia(e){e.flags|=4}function vs(e,t,a,n,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Vd())e.flags|=8192;else throw Ia=Di,wr}else e.flags&=-16777217}function pd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mh(t))if(Vd())e.flags|=8192;else throw Ia=Di,wr}function $i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Jo():536870912,e.lanes|=t,Bn|=t)}function Nl(e,t){if(!ge)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 n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Ne(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,n|=u.subtreeFlags&65011712,n|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,n|=u.subtreeFlags,n|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Fp(e,t,a){var n=t.pendingProps;switch(Ar(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(t),null;case 1:return Ne(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ta(Ve),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(On(t)?ia(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Cr())),Ne(t),null;case 26:var u=t.type,r=t.memoizedState;return e===null?(ia(t),r!==null?(Ne(t),pd(t,r)):(Ne(t),vs(t,u,null,n,a))):r?r!==e.memoizedState?(ia(t),Ne(t),pd(t,r)):(Ne(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ia(t),Ne(t),vs(t,u,e,n,a)),null;case 27:if(ui(t),a=oe.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ia(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}e=Q.current,On(t)?Jc(t):(e=Th(u,n,a),t.stateNode=e,ia(t))}return Ne(t),null;case 5:if(ui(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ia(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return Ne(t),null}if(r=Q.current,On(t))Jc(t);else{var d=cu(oe.current);switch(r){case 1:r=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=d.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?d.createElement(u,{is:n.is}):d.createElement(u)}}r[We]=t,r[st]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)r.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=r;e:switch(tt(r,u,n),u){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&ia(t)}}return Ne(t),vs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ia(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=oe.current,On(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,u=Ie,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}e[We]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||dh(e.nodeValue,a)),e||ba(t,!0)}else e=cu(e).createTextNode(n),e[We]=t,t.stateNode=e}return Ne(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=On(t),a!==null){if(e===null){if(!n)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[We]=t}else Za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),e=!1}else a=Cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Et(t),t):(Et(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ne(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=On(t),n!==null&&n.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[We]=t}else Za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ne(t),u=!1}else u=Cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Et(t),t):(Et(t),null)}return Et(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,u=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(u=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==u&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),$i(t,t.updateQueue),Ne(t),null);case 4:return Be(),e===null&&Ys(t.stateNode.containerInfo),Ne(t),null;case 10:return ta(t.type),Ne(t),null;case 19:if(w(ke),n=t.memoizedState,n===null)return Ne(t),null;if(u=(t.flags&128)!==0,r=n.rendering,r===null)if(u)Nl(n,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ui(e),r!==null){for(t.flags|=128,Nl(n,!1),e=r.updateQueue,t.updateQueue=e,$i(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Gc(a,e),a=a.sibling;return G(ke,ke.current&1|2),ge&&Pt(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&pt()>eu&&(t.flags|=128,u=!0,Nl(n,!1),t.lanes=4194304)}else{if(!u)if(e=Ui(r),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,$i(t,e),Nl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!ge)return Ne(t),null}else 2*pt()-n.renderingStartTime>eu&&a!==536870912&&(t.flags|=128,u=!0,Nl(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=pt(),e.sibling=null,a=ke.current,G(ke,u?a&1|2:a&1),ge&&Pt(t,n.treeForkCount),e):(Ne(t),null);case 22:case 23:return Et(t),qr(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Ne(t),t.subtreeFlags&6&&(t.flags|=8192)):Ne(t),a=t.updateQueue,a!==null&&$i(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&w(Fa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ta(Ve),Ne(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Wp(e,t){switch(Ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(Ve),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ui(t),null;case 31:if(t.memoizedState!==null){if(Et(t),t.alternate===null)throw Error(o(340));Za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Et(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return w(ke),null;case 4:return Be(),null;case 10:return ta(t.type),null;case 22:case 23:return Et(t),qr(),e!==null&&w(Fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(Ve),null;case 25:return null;default:return null}}function yd(e,t){switch(Ar(t),t.tag){case 3:ta(Ve),Be();break;case 26:case 27:case 5:ui(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&Et(t);break;case 13:Et(t);break;case 19:w(ke);break;case 10:ta(t.type);break;case 22:case 23:Et(t),qr(),e!==null&&w(Fa);break;case 24:ta(Ve)}}function Ml(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var u=n.next;a=u;do{if((a.tag&e)===e){n=void 0;var r=a.create,d=a.inst;n=r(),d.destroy=n}a=a.next}while(a!==u)}}catch(p){Te(t,t.return,p)}}function Aa(e,t,a){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var r=u.next;n=r;do{if((n.tag&e)===e){var d=n.inst,p=d.destroy;if(p!==void 0){d.destroy=void 0,u=t;var S=a,C=p;try{C()}catch(L){Te(u,S,L)}}}n=n.next}while(n!==r)}}catch(L){Te(t,t.return,L)}}function vd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{sf(t,a)}catch(n){Te(e,e.return,n)}}}function bd(e,t,a){a.props=tn(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Te(e,t,n)}}function Dl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(u){Te(e,t,u)}}function Qt(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(u){Te(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Te(e,t,u)}else a.current=null}function Sd(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(u){Te(e,e.return,u)}}function bs(e,t,a){try{var n=e.stateNode;b0(n,e.type,a,t),n[st]=t}catch(u){Te(e,e.return,u)}}function xd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&La(e.type)||e.tag===4}function Ss(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xd(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&&La(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 xs(e,t,a){var n=e.tag;if(n===5||n===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=Ft));else if(n!==4&&(n===27&&La(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(xs(e,t,a),e=e.sibling;e!==null;)xs(e,t,a),e=e.sibling}function Fi(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&La(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Fi(e,t,a),e=e.sibling;e!==null;)Fi(e,t,a),e=e.sibling}function Ed(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);tt(t,n,a),t[We]=e,t[st]=a}catch(r){Te(e,e.return,r)}}var ua=!1,Xe=!1,Es=!1,Td=typeof WeakSet=="function"?WeakSet:Set,Fe=null;function Ip(e,t){if(e=e.containerInfo,Gs=yu,e=jc(e),gr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var u=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var d=0,p=-1,S=-1,C=0,L=0,B=e,z=null;t:for(;;){for(var M;B!==a||u!==0&&B.nodeType!==3||(p=d+u),B!==r||n!==0&&B.nodeType!==3||(S=d+n),B.nodeType===3&&(d+=B.nodeValue.length),(M=B.firstChild)!==null;)z=B,B=M;for(;;){if(B===e)break t;if(z===a&&++C===u&&(p=d),z===r&&++L===n&&(S=d),(M=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=M}a=p===-1||S===-1?null:{start:p,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ks={focusedElem:e,selectionRange:a},yu=!1,Fe=t;Fe!==null;)if(t=Fe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Fe=e;else for(;Fe!==null;){switch(t=Fe,r=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++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,u=r.memoizedProps,r=r.memoizedState,n=a.stateNode;try{var Z=tn(a.type,u);e=n.getSnapshotBeforeUpdate(Z,r),n.__reactInternalSnapshotBeforeUpdate=e}catch(P){Te(a,a.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Zs(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zs(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Fe=e;break}Fe=t.return}}function Rd(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:sa(e,a),n&4&&Ml(5,a);break;case 1:if(sa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Te(a,a.return,d)}else{var u=tn(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Te(a,a.return,d)}}n&64&&vd(a),n&512&&Dl(a,a.return);break;case 3:if(sa(e,a),n&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{sf(e,t)}catch(d){Te(a,a.return,d)}}break;case 27:t===null&&n&4&&Ed(a);case 26:case 5:sa(e,a),t===null&&n&4&&Sd(a),n&512&&Dl(a,a.return);break;case 12:sa(e,a);break;case 31:sa(e,a),n&4&&_d(e,a);break;case 13:sa(e,a),n&4&&Cd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=r0.bind(null,a),_0(e,a))));break;case 22:if(n=a.memoizedState!==null||ua,!n){t=t!==null&&t.memoizedState!==null||Xe,u=ua;var r=Xe;ua=n,(Xe=t)&&!r?oa(e,a,(a.subtreeFlags&8772)!==0):sa(e,a),ua=u,Xe=r}break;case 30:break;default:sa(e,a)}}function Od(e){var t=e.alternate;t!==null&&(e.alternate=null,Od(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Iu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,ct=!1;function ra(e,t,a){for(a=a.child;a!==null;)Ad(e,t,a),a=a.sibling}function Ad(e,t,a){if(yt&&typeof yt.onCommitFiberUnmount=="function")try{yt.onCommitFiberUnmount(al,a)}catch{}switch(a.tag){case 26:Xe||Qt(a,t),ra(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||Qt(a,t);var n=Le,u=ct;La(a.type)&&(Le=a.stateNode,ct=!1),ra(e,t,a),ql(a.stateNode),Le=n,ct=u;break;case 5:Xe||Qt(a,t);case 6:if(n=Le,u=ct,Le=null,ra(e,t,a),Le=n,ct=u,Le!==null)if(ct)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(a.stateNode)}catch(r){Te(a,t,r)}else try{Le.removeChild(a.stateNode)}catch(r){Te(a,t,r)}break;case 18:Le!==null&&(ct?(e=Le,vh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Qn(e)):vh(Le,a.stateNode));break;case 4:n=Le,u=ct,Le=a.stateNode.containerInfo,ct=!0,ra(e,t,a),Le=n,ct=u;break;case 0:case 11:case 14:case 15:Aa(2,a,t),Xe||Aa(4,a,t),ra(e,t,a);break;case 1:Xe||(Qt(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&bd(a,t,n)),ra(e,t,a);break;case 21:ra(e,t,a);break;case 22:Xe=(n=Xe)||a.memoizedState!==null,ra(e,t,a),Xe=n;break;default:ra(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{Qn(e)}catch(a){Te(t,t.return,a)}}}function Cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Qn(e)}catch(a){Te(t,t.return,a)}}function Pp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Td),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Td),t;default:throw Error(o(435,e.tag))}}function Wi(e,t){var a=Pp(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var u=s0.bind(null,e,n);n.then(u,u)}})}function ft(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var u=a[n],r=e,d=t,p=d;e:for(;p!==null;){switch(p.tag){case 27:if(La(p.type)){Le=p.stateNode,ct=!1;break e}break;case 5:Le=p.stateNode,ct=!1;break e;case 3:case 4:Le=p.stateNode.containerInfo,ct=!0;break e}p=p.return}if(Le===null)throw Error(o(160));Ad(r,d,u),Le=null,ct=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zd(t,e),t=t.sibling}var qt=null;function zd(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),dt(e),n&4&&(Aa(3,e,e.return),Ml(3,e),Aa(5,e,e.return));break;case 1:ft(t,e),dt(e),n&512&&(Xe||a===null||Qt(a,a.return)),n&64&&ua&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var u=qt;if(ft(t,e),dt(e),n&512&&(Xe||a===null||Qt(a,a.return)),n&4){var r=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(n){case"title":r=u.getElementsByTagName("title")[0],(!r||r[il]||r[We]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(n),u.head.insertBefore(r,u.querySelector("head > title"))),tt(r,n,a),r[We]=e,$e(r),n=r;break e;case"link":var d=zh("link","href",u).get(n+(a.href||""));if(d){for(var p=0;p<d.length;p++)if(r=d[p],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(p,1);break t}}r=u.createElement(n),tt(r,n,a),u.head.appendChild(r);break;case"meta":if(d=zh("meta","content",u).get(n+(a.content||""))){for(p=0;p<d.length;p++)if(r=d[p],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(p,1);break t}}r=u.createElement(n),tt(r,n,a),u.head.appendChild(r);break;default:throw Error(o(468,n))}r[We]=e,$e(r),n=r}e.stateNode=n}else Nh(u,e.type,e.stateNode);else e.stateNode=Ch(u,n,e.memoizedProps);else r!==n?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,n===null?Nh(u,e.type,e.stateNode):Ch(u,n,e.memoizedProps)):n===null&&e.stateNode!==null&&bs(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),n&512&&(Xe||a===null||Qt(a,a.return)),a!==null&&n&4&&bs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),n&512&&(Xe||a===null||Qt(a,a.return)),e.flags&32){u=e.stateNode;try{gn(u,"")}catch(Z){Te(e,e.return,Z)}}n&4&&e.stateNode!=null&&(u=e.memoizedProps,bs(e,u,a!==null?a.memoizedProps:u)),n&1024&&(Es=!0);break;case 6:if(ft(t,e),dt(e),n&4){if(e.stateNode===null)throw Error(o(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(Z){Te(e,e.return,Z)}}break;case 3:if(hu=null,u=qt,qt=fu(t.containerInfo),ft(t,e),qt=u,dt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Qn(t.containerInfo)}catch(Z){Te(e,e.return,Z)}Es&&(Es=!1,Nd(e));break;case 4:n=qt,qt=fu(e.stateNode.containerInfo),ft(t,e),dt(e),qt=n;break;case 12:ft(t,e),dt(e);break;case 31:ft(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wi(e,n)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Pi=pt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wi(e,n)));break;case 22:u=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,C=ua,L=Xe;if(ua=C||u,Xe=L||S,ft(t,e),Xe=L,ua=C,dt(e),n&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||S||ua||Xe||an(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(r=S.stateNode,u)d=r.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{p=S.stateNode;var B=S.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(Z){Te(S,S.return,Z)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=u?"":S.memoizedProps}catch(Z){Te(S,S.return,Z)}}}else if(t.tag===18){if(a===null){S=t;try{var M=S.stateNode;u?bh(M,!0):bh(S.stateNode,!1)}catch(Z){Te(S,S.return,Z)}}}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}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Wi(e,a))));break;case 19:ft(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wi(e,n)));break;case 30:break;case 21:break;default:ft(t,e),dt(e)}}function dt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(xd(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,r=Ss(e);Fi(e,r,u);break;case 5:var d=a.stateNode;a.flags&32&&(gn(d,""),a.flags&=-33);var p=Ss(e);Fi(e,p,d);break;case 3:case 4:var S=a.stateNode.containerInfo,C=Ss(e);xs(e,C,S);break;default:throw Error(o(161))}}catch(L){Te(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rd(e,t.alternate,t),t=t.sibling}function an(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Aa(4,t,t.return),an(t);break;case 1:Qt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&bd(t,t.return,a),an(t);break;case 27:ql(t.stateNode);case 26:case 5:Qt(t,t.return),an(t);break;case 22:t.memoizedState===null&&an(t);break;case 30:an(t);break;default:an(t)}e=e.sibling}}function oa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,u=e,r=t,d=r.flags;switch(r.tag){case 0:case 11:case 15:oa(u,r,a),Ml(4,r);break;case 1:if(oa(u,r,a),n=r,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(C){Te(n,n.return,C)}if(n=r,u=n.updateQueue,u!==null){var p=n.stateNode;try{var S=u.shared.hiddenCallbacks;if(S!==null)for(u.shared.hiddenCallbacks=null,u=0;u<S.length;u++)rf(S[u],p)}catch(C){Te(n,n.return,C)}}a&&d&64&&vd(r),Dl(r,r.return);break;case 27:Ed(r);case 26:case 5:oa(u,r,a),a&&n===null&&d&4&&Sd(r),Dl(r,r.return);break;case 12:oa(u,r,a);break;case 31:oa(u,r,a),a&&d&4&&_d(u,r);break;case 13:oa(u,r,a),a&&d&4&&Cd(u,r);break;case 22:r.memoizedState===null&&oa(u,r,a),Dl(r,r.return);break;case 30:break;default:oa(u,r,a)}t=t.sibling}}function Ts(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&&vl(a))}function Rs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e))}function Vt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Md(e,t,a,n),t=t.sibling}function Md(e,t,a,n){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,a,n),u&2048&&Ml(9,t);break;case 1:Vt(e,t,a,n);break;case 3:Vt(e,t,a,n),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e)));break;case 12:if(u&2048){Vt(e,t,a,n),e=t.stateNode;try{var r=t.memoizedProps,d=r.id,p=r.onPostCommit;typeof p=="function"&&p(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Te(t,t.return,S)}}else Vt(e,t,a,n);break;case 31:Vt(e,t,a,n);break;case 13:Vt(e,t,a,n);break;case 23:break;case 22:r=t.stateNode,d=t.alternate,t.memoizedState!==null?r._visibility&2?Vt(e,t,a,n):Ll(e,t):r._visibility&2?Vt(e,t,a,n):(r._visibility|=2,wn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Ts(d,t);break;case 24:Vt(e,t,a,n),u&2048&&Rs(t.alternate,t);break;default:Vt(e,t,a,n)}}function wn(e,t,a,n,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,d=t,p=a,S=n,C=d.flags;switch(d.tag){case 0:case 11:case 15:wn(r,d,p,S,u),Ml(8,d);break;case 23:break;case 22:var L=d.stateNode;d.memoizedState!==null?L._visibility&2?wn(r,d,p,S,u):Ll(r,d):(L._visibility|=2,wn(r,d,p,S,u)),u&&C&2048&&Ts(d.alternate,d);break;case 24:wn(r,d,p,S,u),u&&C&2048&&Rs(d.alternate,d);break;default:wn(r,d,p,S,u)}t=t.sibling}}function Ll(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,u=n.flags;switch(n.tag){case 22:Ll(a,n),u&2048&&Ts(n.alternate,n);break;case 24:Ll(a,n),u&2048&&Rs(n.alternate,n);break;default:Ll(a,n)}t=t.sibling}}var jl=8192;function Un(e,t,a){if(e.subtreeFlags&jl)for(e=e.child;e!==null;)Dd(e,t,a),e=e.sibling}function Dd(e,t,a){switch(e.tag){case 26:Un(e,t,a),e.flags&jl&&e.memoizedState!==null&&k0(a,qt,e.memoizedState,e.memoizedProps);break;case 5:Un(e,t,a);break;case 3:case 4:var n=qt;qt=fu(e.stateNode.containerInfo),Un(e,t,a),qt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=jl,jl=16777216,Un(e,t,a),jl=n):Un(e,t,a));break;default:Un(e,t,a)}}function Ld(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 wl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Fe=n,wd(n,e)}Ld(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jd(e),e=e.sibling}function jd(e){switch(e.tag){case 0:case 11:case 15:wl(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:wl(e);break;case 12:wl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ii(e)):wl(e);break;default:wl(e)}}function Ii(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];Fe=n,wd(n,e)}Ld(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),Ii(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ii(t));break;default:Ii(t)}e=e.sibling}}function wd(e,t){for(;Fe!==null;){var a=Fe;switch(a.tag){case 0:case 11:case 15:Aa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:vl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Fe=n;else e:for(a=e;Fe!==null;){n=Fe;var u=n.sibling,r=n.return;if(Od(n),n===a){Fe=null;break e}if(u!==null){u.return=r,Fe=u;break e}Fe=r}}}var e0={getCacheForType:function(e){var t=Pe(Ve),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Pe(Ve).controller.signal}},t0=typeof WeakMap=="function"?WeakMap:Map,be=0,_e=null,ce=null,he=0,Ee=0,Tt=null,_a=!1,Hn=!1,Os=!1,ca=0,He=0,Ca=0,nn=0,As=0,Rt=0,Bn=0,Ul=null,ht=null,_s=!1,Pi=0,Ud=0,eu=1/0,tu=null,za=null,Qe=0,Na=null,kn=null,fa=0,Cs=0,zs=null,Hd=null,Hl=0,Ns=null;function Ot(){return(be&2)!==0&&he!==0?he&-he:D.T!==null?Us():Io()}function Bd(){if(Rt===0)if((he&536870912)===0||ge){var e=oi;oi<<=1,(oi&3932160)===0&&(oi=262144),Rt=e}else Rt=536870912;return e=xt.current,e!==null&&(e.flags|=32),Rt}function mt(e,t,a){(e===_e&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Yn(e,0),Ma(e,he,Rt,!1)),ll(e,a),((be&2)===0||e!==_e)&&(e===_e&&((be&2)===0&&(nn|=a),He===4&&Ma(e,he,Rt,!1)),Zt(e))}function kd(e,t,a){if((be&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nl(e,t),u=n?l0(e,t):Ds(e,t,!0),r=n;do{if(u===0){Hn&&!n&&Ma(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!a0(a)){u=Ds(e,t,!1),r=!1;continue}if(u===2){if(r=t,e.errorRecoveryDisabledLanes&r)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var p=e;u=Ul;var S=p.current.memoizedState.isDehydrated;if(S&&(Yn(p,d).flags|=256),d=Ds(p,d,!1),d!==2){if(Os&&!S){p.errorRecoveryDisabledLanes|=r,nn|=r,u=4;break e}r=ht,ht=u,r!==null&&(ht===null?ht=r:ht.push.apply(ht,r))}u=d}if(r=!1,u!==2)continue}}if(u===1){Yn(e,0),Ma(e,t,0,!0);break}e:{switch(n=e,r=u,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ma(n,t,Rt,!_a);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=Pi+300-pt(),10<u)){if(Ma(n,t,Rt,!_a),fi(n,0,!0)!==0)break e;fa=t,n.timeoutHandle=ph(Yd.bind(null,n,a,ht,tu,_s,t,Rt,nn,Bn,_a,r,"Throttled",-0,0),u);break e}Yd(n,a,ht,tu,_s,t,Rt,nn,Bn,_a,r,null,-0,0)}}break}while(!0);Zt(e)}function Yd(e,t,a,n,u,r,d,p,S,C,L,B,z,M){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ft},Dd(t,r,B);var Z=(r&62914560)===r?Pi-pt():(r&4194048)===r?Ud-pt():0;if(Z=Y0(B,Z),Z!==null){fa=r,e.cancelPendingCommit=Z(Jd.bind(null,e,t,r,a,n,u,d,p,S,L,B,null,z,M)),Ma(e,r,d,!C);return}}Jd(e,t,r,a,n,u,d,p,S)}function a0(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 n=0;n<a.length;n++){var u=a[n],r=u.getSnapshot;u=u.value;try{if(!bt(r(),u))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 Ma(e,t,a,n){t&=~As,t&=~nn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var u=t;0<u;){var r=31-vt(u),d=1<<r;n[r]=-1,u&=~d}a!==0&&$o(e,a,t)}function au(){return(be&6)===0?(Bl(0),!1):!0}function Ms(){if(ce!==null){if(Ee===0)var e=ce.return;else e=ce,ea=Ja=null,Zr(e),Nn=null,Sl=0,e=ce;for(;e!==null;)yd(e.alternate,e),e=e.return;ce=null}}function Yn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,E0(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),fa=0,Ms(),_e=e,ce=a=It(e.current,null),he=t,Ee=0,Tt=null,_a=!1,Hn=nl(e,t),Os=!1,Bn=Rt=As=nn=Ca=He=0,ht=Ul=null,_s=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var u=31-vt(n),r=1<<u;t|=e[u],n&=~r}return ca=t,Ti(),a}function qd(e,t){ie=null,D.H=Cl,t===zn||t===Mi?(t=af(),Ee=3):t===wr?(t=af(),Ee=4):Ee=t===os?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,ce===null&&(He=1,Xi(e,Dt(t,e.current)))}function Vd(){var e=xt.current;return e===null?!0:(he&4194048)===he?Ut===null:(he&62914560)===he||(he&536870912)!==0?e===Ut:!1}function Gd(){var e=D.H;return D.H=Cl,e===null?Cl:e}function Kd(){var e=D.A;return D.A=e0,e}function nu(){He=4,_a||(he&4194048)!==he&&xt.current!==null||(Hn=!0),(Ca&134217727)===0&&(nn&134217727)===0||_e===null||Ma(_e,he,Rt,!1)}function Ds(e,t,a){var n=be;be|=2;var u=Gd(),r=Kd();(_e!==e||he!==t)&&(tu=null,Yn(e,t)),t=!1;var d=He;e:do try{if(Ee!==0&&ce!==null){var p=ce,S=Tt;switch(Ee){case 8:Ms(),d=6;break e;case 3:case 2:case 9:case 6:xt.current===null&&(t=!0);var C=Ee;if(Ee=0,Tt=null,qn(e,p,S,C),a&&Hn){d=0;break e}break;default:C=Ee,Ee=0,Tt=null,qn(e,p,S,C)}}n0(),d=He;break}catch(L){qd(e,L)}while(!0);return t&&e.shellSuspendCounter++,ea=Ja=null,be=n,D.H=u,D.A=r,ce===null&&(_e=null,he=0,Ti()),d}function n0(){for(;ce!==null;)Xd(ce)}function l0(e,t){var a=be;be|=2;var n=Gd(),u=Kd();_e!==e||he!==t?(tu=null,eu=pt()+500,Yn(e,t)):Hn=nl(e,t);e:do try{if(Ee!==0&&ce!==null){t=ce;var r=Tt;t:switch(Ee){case 1:Ee=0,Tt=null,qn(e,t,r,1);break;case 2:case 9:if(ef(r)){Ee=0,Tt=null,Qd(t);break}t=function(){Ee!==2&&Ee!==9||_e!==e||(Ee=7),Zt(e)},r.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:ef(r)?(Ee=0,Tt=null,Qd(t)):(Ee=0,Tt=null,qn(e,t,r,7));break;case 5:var d=null;switch(ce.tag){case 26:d=ce.memoizedState;case 5:case 27:var p=ce;if(d?Mh(d):p.stateNode.complete){Ee=0,Tt=null;var S=p.sibling;if(S!==null)ce=S;else{var C=p.return;C!==null?(ce=C,lu(C)):ce=null}break t}}Ee=0,Tt=null,qn(e,t,r,5);break;case 6:Ee=0,Tt=null,qn(e,t,r,6);break;case 8:Ms(),He=6;break e;default:throw Error(o(462))}}i0();break}catch(L){qd(e,L)}while(!0);return ea=Ja=null,D.H=n,D.A=u,be=a,ce!==null?0:(_e=null,he=0,Ti(),He)}function i0(){for(;ce!==null&&!Cg();)Xd(ce)}function Xd(e){var t=gd(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?lu(e):ce=t}function Qd(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=od(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=od(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Zr(t);default:yd(a,t),t=ce=Gc(t,ca),t=gd(a,t,ca)}e.memoizedProps=e.pendingProps,t===null?lu(e):ce=t}function qn(e,t,a,n){ea=Ja=null,Zr(t),Nn=null,Sl=0;var u=t.return;try{if(Zp(e,u,t,a,he)){He=1,Xi(e,Dt(a,e.current)),ce=null;return}}catch(r){if(u!==null)throw ce=u,r;He=1,Xi(e,Dt(a,e.current)),ce=null;return}t.flags&32768?(ge||n===1?e=!0:Hn||(he&536870912)!==0?e=!1:(_a=e=!0,(n===2||n===9||n===3||n===6)&&(n=xt.current,n!==null&&n.tag===13&&(n.flags|=16384))),Zd(t,e)):lu(t)}function lu(e){var t=e;do{if((t.flags&32768)!==0){Zd(t,_a);return}e=t.return;var a=Fp(t.alternate,t,ca);if(a!==null){ce=a;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);He===0&&(He=5)}function Zd(e,t){do{var a=Wp(e.alternate,e);if(a!==null){a.flags&=32767,ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=a}while(e!==null);He=6,ce=null}function Jd(e,t,a,n,u,r,d,p,S){e.cancelPendingCommit=null;do iu();while(Qe!==0);if((be&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=Sr,Bg(e,a,r,d,p,S),e===_e&&(ce=_e=null,he=0),kn=t,Na=e,fa=a,Cs=r,zs=u,Hd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o0(ri,function(){return Pd(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=D.T,D.T=null,u=V.p,V.p=2,d=be,be|=4;try{Ip(e,t,a)}finally{be=d,V.p=u,D.T=n}}Qe=1,$d(),Fd(),Wd()}}function $d(){if(Qe===1){Qe=0;var e=Na,t=kn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var n=V.p;V.p=2;var u=be;be|=4;try{zd(t,e);var r=Ks,d=jc(e.containerInfo),p=r.focusedElem,S=r.selectionRange;if(d!==p&&p&&p.ownerDocument&&Lc(p.ownerDocument.documentElement,p)){if(S!==null&&gr(p)){var C=S.start,L=S.end;if(L===void 0&&(L=C),"selectionStart"in p)p.selectionStart=C,p.selectionEnd=Math.min(L,p.value.length);else{var B=p.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var M=z.getSelection(),Z=p.textContent.length,P=Math.min(S.start,Z),Ae=S.end===void 0?P:Math.min(S.end,Z);!M.extend&&P>Ae&&(d=Ae,Ae=P,P=d);var R=Dc(p,P),E=Dc(p,Ae);if(R&&E&&(M.rangeCount!==1||M.anchorNode!==R.node||M.anchorOffset!==R.offset||M.focusNode!==E.node||M.focusOffset!==E.offset)){var _=B.createRange();_.setStart(R.node,R.offset),M.removeAllRanges(),P>Ae?(M.addRange(_),M.extend(E.node,E.offset)):(_.setEnd(E.node,E.offset),M.addRange(_))}}}}for(B=[],M=p;M=M.parentNode;)M.nodeType===1&&B.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var U=B[p];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}yu=!!Gs,Ks=Gs=null}finally{be=u,V.p=n,D.T=a}}e.current=t,Qe=2}}function Fd(){if(Qe===2){Qe=0;var e=Na,t=kn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var n=V.p;V.p=2;var u=be;be|=4;try{Rd(e,t.alternate,t)}finally{be=u,V.p=n,D.T=a}}Qe=3}}function Wd(){if(Qe===4||Qe===3){Qe=0,zg();var e=Na,t=kn,a=fa,n=Hd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Qe=5:(Qe=0,kn=Na=null,Id(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(za=null),Fu(a),t=t.stateNode,yt&&typeof yt.onCommitFiberRoot=="function")try{yt.onCommitFiberRoot(al,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=D.T,u=V.p,V.p=2,D.T=null;try{for(var r=e.onRecoverableError,d=0;d<n.length;d++){var p=n[d];r(p.value,{componentStack:p.stack})}}finally{D.T=t,V.p=u}}(fa&3)!==0&&iu(),Zt(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Ns?Hl++:(Hl=0,Ns=e):Hl=0,Bl(0)}}function Id(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vl(t)))}function iu(){return $d(),Fd(),Wd(),Pd()}function Pd(){if(Qe!==5)return!1;var e=Na,t=Cs;Cs=0;var a=Fu(fa),n=D.T,u=V.p;try{V.p=32>a?32:a,D.T=null,a=zs,zs=null;var r=Na,d=fa;if(Qe=0,kn=Na=null,fa=0,(be&6)!==0)throw Error(o(331));var p=be;if(be|=4,jd(r.current),Md(r,r.current,d,a),be=p,Bl(0,!1),yt&&typeof yt.onPostCommitFiberRoot=="function")try{yt.onPostCommitFiberRoot(al,r)}catch{}return!0}finally{V.p=u,D.T=n,Id(e,t)}}function eh(e,t,a){t=Dt(a,t),t=ss(e.stateNode,t,2),e=Ta(e,t,2),e!==null&&(ll(e,2),Zt(e))}function Te(e,t,a){if(e.tag===3)eh(e,e,a);else for(;t!==null;){if(t.tag===3){eh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(za===null||!za.has(n))){e=Dt(a,e),a=td(2),n=Ta(t,a,2),n!==null&&(ad(a,n,t,e),ll(n,2),Zt(n));break}}t=t.return}}function Ls(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new t0;var u=new Set;n.set(t,u)}else u=n.get(t),u===void 0&&(u=new Set,n.set(t,u));u.has(a)||(Os=!0,u.add(a),e=u0.bind(null,e,t,a),t.then(e,e))}function u0(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,_e===e&&(he&a)===a&&(He===4||He===3&&(he&62914560)===he&&300>pt()-Pi?(be&2)===0&&Yn(e,0):As|=a,Bn===he&&(Bn=0)),Zt(e)}function th(e,t){t===0&&(t=Jo()),e=Xa(e,t),e!==null&&(ll(e,t),Zt(e))}function r0(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),th(e,a)}function s0(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(o(314))}n!==null&&n.delete(t),th(e,a)}function o0(e,t){return Qu(e,t)}var uu=null,Vn=null,js=!1,ru=!1,ws=!1,Da=0;function Zt(e){e!==Vn&&e.next===null&&(Vn===null?uu=Vn=e:Vn=Vn.next=e),ru=!0,js||(js=!0,f0())}function Bl(e,t){if(!ws&&ru){ws=!0;do for(var a=!1,n=uu;n!==null;){if(e!==0){var u=n.pendingLanes;if(u===0)var r=0;else{var d=n.suspendedLanes,p=n.pingedLanes;r=(1<<31-vt(42|e)+1)-1,r&=u&~(d&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,ih(n,r))}else r=he,r=fi(n,n===_e?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||nl(n,r)||(a=!0,ih(n,r));n=n.next}while(a);ws=!1}}function c0(){ah()}function ah(){ru=js=!1;var e=0;Da!==0&&x0()&&(e=Da);for(var t=pt(),a=null,n=uu;n!==null;){var u=n.next,r=nh(n,t);r===0?(n.next=null,a===null?uu=u:a.next=u,u===null&&(Vn=a)):(a=n,(e!==0||(r&3)!==0)&&(ru=!0)),n=u}Qe!==0&&Qe!==5||Bl(e),Da!==0&&(Da=0)}function nh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,u=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var d=31-vt(r),p=1<<d,S=u[d];S===-1?((p&a)===0||(p&n)!==0)&&(u[d]=Hg(p,t)):S<=t&&(e.expiredLanes|=p),r&=~p}if(t=_e,a=he,a=fi(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Zu(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Zu(n),Fu(a)){case 2:case 8:a=Qo;break;case 32:a=ri;break;case 268435456:a=Zo;break;default:a=ri}return n=lh.bind(null,e),a=Qu(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Zu(n),e.callbackPriority=2,e.callbackNode=null,2}function lh(e,t){if(Qe!==0&&Qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(iu()&&e.callbackNode!==a)return null;var n=he;return n=fi(e,e===_e?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(kd(e,n,t),nh(e,pt()),e.callbackNode!=null&&e.callbackNode===a?lh.bind(null,e):null)}function ih(e,t){if(iu())return null;kd(e,t,!0)}function f0(){T0(function(){(be&6)!==0?Qu(Xo,c0):ah()})}function Us(){if(Da===0){var e=_n;e===0&&(e=si,si<<=1,(si&261888)===0&&(si=256)),Da=e}return Da}function uh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gi(""+e)}function rh(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 d0(e,t,a,n,u){if(t==="submit"&&a&&a.stateNode===u){var r=uh((u[st]||null).action),d=n.submitter;d&&(t=(t=d[st]||null)?uh(t.formAction):d.getAttribute("formAction"),t!==null&&(r=t,d=null));var p=new bi("action","action",null,n,u);e.push({event:p,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Da!==0){var S=d?rh(u,d):new FormData(u);as(a,{pending:!0,data:S,method:u.method,action:r},null,S)}}else typeof r=="function"&&(p.preventDefault(),S=d?rh(u,d):new FormData(u),as(a,{pending:!0,data:S,method:u.method,action:r},r,S))},currentTarget:u}]})}}for(var Hs=0;Hs<br.length;Hs++){var Bs=br[Hs],h0=Bs.toLowerCase(),m0=Bs[0].toUpperCase()+Bs.slice(1);Yt(h0,"on"+m0)}Yt(Hc,"onAnimationEnd"),Yt(Bc,"onAnimationIteration"),Yt(kc,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Np,"onTransitionRun"),Yt(Mp,"onTransitionStart"),Yt(Dp,"onTransitionCancel"),Yt(Yc,"onTransitionEnd"),hn("onMouseEnter",["mouseout","mouseover"]),hn("onMouseLeave",["mouseout","mouseover"]),hn("onPointerEnter",["pointerout","pointerover"]),hn("onPointerLeave",["pointerout","pointerover"]),qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qa("onBeforeInput",["compositionend","keypress","textInput","paste"]),qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),g0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kl));function sh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],u=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var d=n.length-1;0<=d;d--){var p=n[d],S=p.instance,C=p.currentTarget;if(p=p.listener,S!==r&&u.isPropagationStopped())break e;r=p,u.currentTarget=C;try{r(u)}catch(L){Ei(L)}u.currentTarget=null,r=S}else for(d=0;d<n.length;d++){if(p=n[d],S=p.instance,C=p.currentTarget,p=p.listener,S!==r&&u.isPropagationStopped())break e;r=p,u.currentTarget=C;try{r(u)}catch(L){Ei(L)}u.currentTarget=null,r=S}}}}function fe(e,t){var a=t[Wu];a===void 0&&(a=t[Wu]=new Set);var n=e+"__bubble";a.has(n)||(oh(t,e,2,!1),a.add(n))}function ks(e,t,a){var n=0;t&&(n|=4),oh(a,e,n,t)}var su="_reactListening"+Math.random().toString(36).slice(2);function Ys(e){if(!e[su]){e[su]=!0,tc.forEach(function(a){a!=="selectionchange"&&(g0.has(a)||ks(a,!1,e),ks(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[su]||(t[su]=!0,ks("selectionchange",!1,t))}}function oh(e,t,a,n){switch(Bh(t)){case 2:var u=G0;break;case 8:u=K0;break;default:u=to}a=u.bind(null,t,a,e),u=void 0,!ur||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),n?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function qs(e,t,a,n,u){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var d=n.tag;if(d===3||d===4){var p=n.stateNode.containerInfo;if(p===u)break;if(d===4)for(d=n.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;p!==null;){if(d=cn(p),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){n=r=d;continue e}p=p.parentNode}}n=n.return}hc(function(){var C=r,L=lr(a),B=[];e:{var z=qc.get(e);if(z!==void 0){var M=bi,Z=e;switch(e){case"keypress":if(yi(a)===0)break e;case"keydown":case"keyup":M=sp;break;case"focusin":Z="focus",M=cr;break;case"focusout":Z="blur",M=cr;break;case"beforeblur":case"afterblur":M=cr;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":M=pc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Fg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=fp;break;case Hc:case Bc:case kc:M=Pg;break;case Yc:M=hp;break;case"scroll":case"scrollend":M=Jg;break;case"wheel":M=gp;break;case"copy":case"cut":case"paste":M=tp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=vc;break;case"toggle":case"beforetoggle":M=yp}var P=(t&4)!==0,Ae=!P&&(e==="scroll"||e==="scrollend"),R=P?z!==null?z+"Capture":null:z;P=[];for(var E=C,_;E!==null;){var U=E;if(_=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||_===null||R===null||(U=rl(E,R),U!=null&&P.push(Yl(E,U,_))),Ae)break;E=E.return}0<P.length&&(z=new M(z,Z,null,a,L),B.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",z&&a!==nr&&(Z=a.relatedTarget||a.fromElement)&&(cn(Z)||Z[on]))break e;if((M||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,M?(Z=a.relatedTarget||a.toElement,M=C,Z=Z?cn(Z):null,Z!==null&&(Ae=f(Z),P=Z.tag,Z!==Ae||P!==5&&P!==27&&P!==6)&&(Z=null)):(M=null,Z=C),M!==Z)){if(P=pc,U="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(P=vc,U="onPointerLeave",R="onPointerEnter",E="pointer"),Ae=M==null?z:ul(M),_=Z==null?z:ul(Z),z=new P(U,E+"leave",M,a,L),z.target=Ae,z.relatedTarget=_,U=null,cn(L)===C&&(P=new P(R,E+"enter",Z,a,L),P.target=_,P.relatedTarget=Ae,U=P),Ae=U,M&&Z)t:{for(P=p0,R=M,E=Z,_=0,U=R;U;U=P(U))_++;U=0;for(var W=E;W;W=P(W))U++;for(;0<_-U;)R=P(R),_--;for(;0<U-_;)E=P(E),U--;for(;_--;){if(R===E||E!==null&&R===E.alternate){P=R;break t}R=P(R),E=P(E)}P=null}else P=null;M!==null&&ch(B,z,M,P,!1),Z!==null&&Ae!==null&&ch(B,Ae,Z,P,!0)}}e:{if(z=C?ul(C):window,M=z.nodeName&&z.nodeName.toLowerCase(),M==="select"||M==="input"&&z.type==="file")var ye=Ac;else if(Rc(z))if(_c)ye=_p;else{ye=Op;var F=Rp}else M=z.nodeName,!M||M.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&ar(C.elementType)&&(ye=Ac):ye=Ap;if(ye&&(ye=ye(e,C))){Oc(B,ye,a,L);break e}F&&F(e,z,C),e==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&tr(z,"number",z.value)}switch(F=C?ul(C):window,e){case"focusin":(Rc(F)||F.contentEditable==="true")&&(bn=F,pr=C,gl=null);break;case"focusout":gl=pr=bn=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,wc(B,a,L);break;case"selectionchange":if(zp)break;case"keydown":case"keyup":wc(B,a,L)}var ue;if(dr)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else vn?Ec(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(bc&&a.locale!=="ko"&&(vn||me!=="onCompositionStart"?me==="onCompositionEnd"&&vn&&(ue=mc()):(pa=L,rr="value"in pa?pa.value:pa.textContent,vn=!0)),F=ou(C,me),0<F.length&&(me=new yc(me,e,null,a,L),B.push({event:me,listeners:F}),ue?me.data=ue:(ue=Tc(a),ue!==null&&(me.data=ue)))),(ue=bp?Sp(e,a):xp(e,a))&&(me=ou(C,"onBeforeInput"),0<me.length&&(F=new yc("onBeforeInput","beforeinput",null,a,L),B.push({event:F,listeners:me}),F.data=ue)),d0(B,e,C,a,L)}sh(B,t)})}function Yl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function ou(e,t){for(var a=t+"Capture",n=[];e!==null;){var u=e,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=rl(e,a),u!=null&&n.unshift(Yl(e,u,r)),u=rl(e,t),u!=null&&n.push(Yl(e,u,r))),e.tag===3)return n;e=e.return}return[]}function p0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ch(e,t,a,n,u){for(var r=t._reactName,d=[];a!==null&&a!==n;){var p=a,S=p.alternate,C=p.stateNode;if(p=p.tag,S!==null&&S===n)break;p!==5&&p!==26&&p!==27||C===null||(S=C,u?(C=rl(a,r),C!=null&&d.unshift(Yl(a,C,S))):u||(C=rl(a,r),C!=null&&d.push(Yl(a,C,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var y0=/\r\n?/g,v0=/\u0000|\uFFFD/g;function fh(e){return(typeof e=="string"?e:""+e).replace(y0,`
|
|
155
|
+
`).replace(v0,"")}function dh(e,t){return t=fh(t),fh(e)===t}function Oe(e,t,a,n,u,r){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||gn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&gn(e,""+n);break;case"className":hi(e,"class",n);break;case"tabIndex":hi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":hi(e,a,n);break;case"style":fc(e,n,r);break;case"data":if(t!=="object"){hi(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=gi(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="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 r=="function"&&(a==="formAction"?(t!=="input"&&Oe(e,t,"name",u.name,u,null),Oe(e,t,"formEncType",u.formEncType,u,null),Oe(e,t,"formMethod",u.formMethod,u,null),Oe(e,t,"formTarget",u.formTarget,u,null)):(Oe(e,t,"encType",u.encType,u,null),Oe(e,t,"method",u.method,u,null),Oe(e,t,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=gi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Ft);break;case"onScroll":n!=null&&fe("scroll",e);break;case"onScrollEnd":n!=null&&fe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=gi(""+n),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":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":fe("beforetoggle",e),fe("toggle",e),di(e,"popover",n);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":di(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Qg.get(a)||a,di(e,a,n))}}function Vs(e,t,a,n,u,r){switch(a){case"style":fc(e,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(o(61));if(a=n.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof n=="string"?gn(e,n):(typeof n=="number"||typeof n=="bigint")&&gn(e,""+n);break;case"onScroll":n!=null&&fe("scroll",e);break;case"onScrollEnd":n!=null&&fe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Ft);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ac.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),r=e[st]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,u),typeof n=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,u);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):di(e,a,n)}}}function tt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":fe("error",e),fe("load",e);var n=!1,u=!1,r;for(r in a)if(a.hasOwnProperty(r)){var d=a[r];if(d!=null)switch(r){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,r,d,a,null)}}u&&Oe(e,t,"srcSet",a.srcSet,a,null),n&&Oe(e,t,"src",a.src,a,null);return;case"input":fe("invalid",e);var p=r=d=u=null,S=null,C=null;for(n in a)if(a.hasOwnProperty(n)){var L=a[n];if(L!=null)switch(n){case"name":u=L;break;case"type":d=L;break;case"checked":S=L;break;case"defaultChecked":C=L;break;case"value":r=L;break;case"defaultValue":p=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Oe(e,t,n,L,a,null)}}rc(e,r,p,S,C,d,u,!1);return;case"select":fe("invalid",e),n=d=r=null;for(u in a)if(a.hasOwnProperty(u)&&(p=a[u],p!=null))switch(u){case"value":r=p;break;case"defaultValue":d=p;break;case"multiple":n=p;default:Oe(e,t,u,p,a,null)}t=r,a=d,e.multiple=!!n,t!=null?mn(e,!!n,t,!1):a!=null&&mn(e,!!n,a,!0);return;case"textarea":fe("invalid",e),r=u=n=null;for(d in a)if(a.hasOwnProperty(d)&&(p=a[d],p!=null))switch(d){case"value":n=p;break;case"defaultValue":u=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Oe(e,t,d,p,a,null)}oc(e,n,u,r);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Oe(e,t,S,n,a,null)}return;case"dialog":fe("beforetoggle",e),fe("toggle",e),fe("cancel",e),fe("close",e);break;case"iframe":case"object":fe("load",e);break;case"video":case"audio":for(n=0;n<kl.length;n++)fe(kl[n],e);break;case"image":fe("error",e),fe("load",e);break;case"details":fe("toggle",e);break;case"embed":case"source":case"link":fe("error",e),fe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in a)if(a.hasOwnProperty(C)&&(n=a[C],n!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Oe(e,t,C,n,a,null)}return;default:if(ar(t)){for(L in a)a.hasOwnProperty(L)&&(n=a[L],n!==void 0&&Vs(e,t,L,n,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(n=a[p],n!=null&&Oe(e,t,p,n,a,null))}function b0(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,d=null,p=null,S=null,C=null,L=null;for(M in a){var B=a[M];if(a.hasOwnProperty(M)&&B!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":S=B;default:n.hasOwnProperty(M)||Oe(e,t,M,null,n,B)}}for(var z in n){var M=n[z];if(B=a[z],n.hasOwnProperty(z)&&(M!=null||B!=null))switch(z){case"type":r=M;break;case"name":u=M;break;case"checked":C=M;break;case"defaultChecked":L=M;break;case"value":d=M;break;case"defaultValue":p=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:M!==B&&Oe(e,t,z,M,n,B)}}er(e,d,p,S,C,L,r,u);return;case"select":M=d=p=z=null;for(r in a)if(S=a[r],a.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":M=S;default:n.hasOwnProperty(r)||Oe(e,t,r,null,n,S)}for(u in n)if(r=n[u],S=a[u],n.hasOwnProperty(u)&&(r!=null||S!=null))switch(u){case"value":z=r;break;case"defaultValue":p=r;break;case"multiple":d=r;default:r!==S&&Oe(e,t,u,r,n,S)}t=p,a=d,n=M,z!=null?mn(e,!!a,z,!1):!!n!=!!a&&(t!=null?mn(e,!!a,t,!0):mn(e,!!a,a?[]:"",!1));return;case"textarea":M=z=null;for(p in a)if(u=a[p],a.hasOwnProperty(p)&&u!=null&&!n.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Oe(e,t,p,null,n,u)}for(d in n)if(u=n[d],r=a[d],n.hasOwnProperty(d)&&(u!=null||r!=null))switch(d){case"value":z=u;break;case"defaultValue":M=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==r&&Oe(e,t,d,u,n,r)}sc(e,z,M);return;case"option":for(var Z in a)if(z=a[Z],a.hasOwnProperty(Z)&&z!=null&&!n.hasOwnProperty(Z))switch(Z){case"selected":e.selected=!1;break;default:Oe(e,t,Z,null,n,z)}for(S in n)if(z=n[S],M=a[S],n.hasOwnProperty(S)&&z!==M&&(z!=null||M!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Oe(e,t,S,z,n,M)}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 P in a)z=a[P],a.hasOwnProperty(P)&&z!=null&&!n.hasOwnProperty(P)&&Oe(e,t,P,null,n,z);for(C in n)if(z=n[C],M=a[C],n.hasOwnProperty(C)&&z!==M&&(z!=null||M!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Oe(e,t,C,z,n,M)}return;default:if(ar(t)){for(var Ae in a)z=a[Ae],a.hasOwnProperty(Ae)&&z!==void 0&&!n.hasOwnProperty(Ae)&&Vs(e,t,Ae,void 0,n,z);for(L in n)z=n[L],M=a[L],!n.hasOwnProperty(L)||z===M||z===void 0&&M===void 0||Vs(e,t,L,z,n,M);return}}for(var R in a)z=a[R],a.hasOwnProperty(R)&&z!=null&&!n.hasOwnProperty(R)&&Oe(e,t,R,null,n,z);for(B in n)z=n[B],M=a[B],!n.hasOwnProperty(B)||z===M||z==null&&M==null||Oe(e,t,B,z,n,M)}function hh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var u=a[n],r=u.transferSize,d=u.initiatorType,p=u.duration;if(r&&p&&hh(d)){for(d=0,p=u.responseEnd,n+=1;n<a.length;n++){var S=a[n],C=S.startTime;if(C>p)break;var L=S.transferSize,B=S.initiatorType;L&&hh(B)&&(S=S.responseEnd,d+=L*(S<p?1:(p-C)/(S-C)))}if(--n,t+=8*(r+d)/(u.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 Gs=null,Ks=null;function cu(e){return e.nodeType===9?e:e.ownerDocument}function mh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gh(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Xs(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 Qs=null;function x0(){var e=window.event;return e&&e.type==="popstate"?e===Qs?!1:(Qs=e,!0):(Qs=null,!1)}var ph=typeof setTimeout=="function"?setTimeout:void 0,E0=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,T0=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(e){return yh.resolve(null).then(e).catch(R0)}:ph;function R0(e){setTimeout(function(){throw e})}function La(e){return e==="head"}function vh(e,t){var a=t,n=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(u),Qn(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")ql(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ql(a);for(var r=a.firstChild;r;){var d=r.nextSibling,p=r.nodeName;r[il]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=d}}else a==="body"&&ql(e.ownerDocument.body);a=u}while(a);Qn(t)}function bh(e,t){var a=e;e=0;do{var n=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||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Zs(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":Zs(a),Iu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function O0(e,t,a,n){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[il])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function A0(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Ht(e.nextSibling),e===null))return null;return e}function Sh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Ht(e.nextSibling),e===null))return null;return e}function Js(e){return e.data==="$?"||e.data==="$~"}function $s(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _0(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function Ht(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 Fs=null;function xh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Ht(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Eh(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 Th(e,t,a){switch(t=cu(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Iu(e)}var Bt=new Map,Rh=new Set;function fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var da=V.d;V.d={f:C0,r:z0,D:N0,C:M0,L:D0,m:L0,X:w0,S:j0,M:U0};function C0(){var e=da.f(),t=au();return e||t}function z0(e){var t=fn(e);t!==null&&t.tag===5&&t.type==="form"?qf(t):da.r(e)}var Gn=typeof document>"u"?null:document;function Oh(e,t,a){var n=Gn;if(n&&typeof t=="string"&&t){var u=Nt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Rh.has(u)||(Rh.add(u),e={rel:e,crossOrigin:a,href:t},n.querySelector(u)===null&&(t=n.createElement("link"),tt(t,"link",e),$e(t),n.head.appendChild(t)))}}function N0(e){da.D(e),Oh("dns-prefetch",e,null)}function M0(e,t){da.C(e,t),Oh("preconnect",e,t)}function D0(e,t,a){da.L(e,t,a);var n=Gn;if(n&&e&&t){var u='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Nt(a.imageSizes)+'"]')):u+='[href="'+Nt(e)+'"]';var r=u;switch(t){case"style":r=Kn(e);break;case"script":r=Xn(e)}Bt.has(r)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bt.set(r,e),n.querySelector(u)!==null||t==="style"&&n.querySelector(Vl(r))||t==="script"&&n.querySelector(Gl(r))||(t=n.createElement("link"),tt(t,"link",e),$e(t),n.head.appendChild(t)))}}function L0(e,t){da.m(e,t);var a=Gn;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Nt(n)+'"][href="'+Nt(e)+'"]',r=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Xn(e)}if(!Bt.has(r)&&(e=v({rel:"modulepreload",href:e},t),Bt.set(r,e),a.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Gl(r)))return}n=a.createElement("link"),tt(n,"link",e),$e(n),a.head.appendChild(n)}}}function j0(e,t,a){da.S(e,t,a);var n=Gn;if(n&&e){var u=dn(n).hoistableStyles,r=Kn(e);t=t||"default";var d=u.get(r);if(!d){var p={loading:0,preload:null};if(d=n.querySelector(Vl(r)))p.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bt.get(r))&&Ws(e,a);var S=d=n.createElement("link");$e(S),tt(S,"link",e),S._p=new Promise(function(C,L){S.onload=C,S.onerror=L}),S.addEventListener("load",function(){p.loading|=1}),S.addEventListener("error",function(){p.loading|=2}),p.loading|=4,du(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:p},u.set(r,d)}}}function w0(e,t){da.X(e,t);var a=Gn;if(a&&e){var n=dn(a).hoistableScripts,u=Xn(e),r=n.get(u);r||(r=a.querySelector(Gl(u)),r||(e=v({src:e,async:!0},t),(t=Bt.get(u))&&Is(e,t),r=a.createElement("script"),$e(r),tt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function U0(e,t){da.M(e,t);var a=Gn;if(a&&e){var n=dn(a).hoistableScripts,u=Xn(e),r=n.get(u);r||(r=a.querySelector(Gl(u)),r||(e=v({src:e,async:!0,type:"module"},t),(t=Bt.get(u))&&Is(e,t),r=a.createElement("script"),$e(r),tt(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function Ah(e,t,a,n){var u=(u=oe.current)?fu(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Kn(a.href),a=dn(u).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Kn(a.href);var r=dn(u).hoistableStyles,d=r.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,d),(r=u.querySelector(Vl(e)))&&!r._p&&(d.instance=r,d.state.loading=5),Bt.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},Bt.set(e,a),r||H0(u,e,a,d.state))),t&&n===null)throw Error(o(528,""));return d}if(t&&n!==null)throw Error(o(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=dn(u).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Kn(e){return'href="'+Nt(e)+'"'}function Vl(e){return'link[rel="stylesheet"]['+e+"]"}function _h(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function H0(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),tt(t,"link",a),$e(t),e.head.appendChild(t))}function Xn(e){return'[src="'+Nt(e)+'"]'}function Gl(e){return"script[async]"+e}function Ch(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(n)return t.instance=n,$e(n),n;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),$e(n),tt(n,"style",u),du(n,a.precedence,e),t.instance=n;case"stylesheet":u=Kn(a.href);var r=e.querySelector(Vl(u));if(r)return t.state.loading|=4,t.instance=r,$e(r),r;n=_h(a),(u=Bt.get(u))&&Ws(n,u),r=(e.ownerDocument||e).createElement("link"),$e(r);var d=r;return d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),tt(r,"link",n),t.state.loading|=4,du(r,a.precedence,e),t.instance=r;case"script":return r=Xn(a.src),(u=e.querySelector(Gl(r)))?(t.instance=u,$e(u),u):(n=a,(u=Bt.get(r))&&(n=v({},a),Is(n,u)),e=e.ownerDocument||e,u=e.createElement("script"),$e(u),tt(u,"link",n),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,du(n,a.precedence,e));return t.instance}function du(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,r=u,d=0;d<n.length;d++){var p=n[d];if(p.dataset.precedence===t)r=p;else if(r!==u)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ws(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Is(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hu=null;function zh(e,t,a){if(hu===null){var n=new Map,u=hu=new Map;u.set(a,n)}else u=hu,n=u.get(a),n||(n=new Map,u.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var r=a[u];if(!(r[il]||r[We]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var d=r.getAttribute(t)||"";d=e+d;var p=n.get(d);p?p.push(r):n.set(d,[r])}}return n}function Nh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function B0(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Mh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function k0(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Kn(n.href),r=t.querySelector(Vl(u));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,$e(r);return}r=t.ownerDocument||t,n=_h(n),(u=Bt.get(u))&&Ws(n,u),r=r.createElement("link"),$e(r);var d=r;d._p=new Promise(function(p,S){d.onload=p,d.onerror=S}),tt(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=mu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Ps=0;function Y0(e,t){return e.stylesheets&&e.count===0&&pu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&pu(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&Ps===0&&(Ps=62500*S0());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pu(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>Ps?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function mu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var gu=null;function pu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,gu=new Map,t.forEach(q0,e),gu=null,mu.call(e))}function q0(e,t){if(!(t.state.loading&4)){var a=gu.get(e);if(a)var n=a.get(null);else{a=new Map,gu.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var d=u[r];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),n=d)}n&&a.set(null,n)}u=t.instance,d=u.getAttribute("data-precedence"),r=a.get(d)||n,r===n&&a.set(null,u),a.set(d,u),this.count++,n=mu.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),r?r.parentNode.insertBefore(u,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Kl={$$typeof:K,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function V0(e,t,a,n,u,r,d,p,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Dh(e,t,a,n,u,r,d,p,S,C,L,B){return e=new V0(e,t,a,d,S,C,L,B,p),t=1,r===!0&&(t|=24),r=St(3,null,null,t),e.current=r,r.stateNode=e,t=Dr(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},Ur(r),e}function Lh(e){return e?(e=En,e):En}function jh(e,t,a,n,u,r){u=Lh(u),n.context===null?n.context=u:n.pendingContext=u,n=Ea(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=Ta(e,n,t),a!==null&&(mt(a,e,t),El(a,e,t))}function wh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function eo(e,t){wh(e,t),(e=e.alternate)&&wh(e,t)}function Uh(e){if(e.tag===13||e.tag===31){var t=Xa(e,67108864);t!==null&&mt(t,e,67108864),eo(e,67108864)}}function Hh(e){if(e.tag===13||e.tag===31){var t=Ot();t=$u(t);var a=Xa(e,t);a!==null&&mt(a,e,t),eo(e,t)}}var yu=!0;function G0(e,t,a,n){var u=D.T;D.T=null;var r=V.p;try{V.p=2,to(e,t,a,n)}finally{V.p=r,D.T=u}}function K0(e,t,a,n){var u=D.T;D.T=null;var r=V.p;try{V.p=8,to(e,t,a,n)}finally{V.p=r,D.T=u}}function to(e,t,a,n){if(yu){var u=ao(n);if(u===null)qs(e,t,n,vu,a),kh(e,n);else if(Q0(u,e,t,a,n))n.stopPropagation();else if(kh(e,n),t&4&&-1<X0.indexOf(e)){for(;u!==null;){var r=fn(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var d=Ya(r.pendingLanes);if(d!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;d;){var S=1<<31-vt(d);p.entanglements[1]|=S,d&=~S}Zt(r),(be&6)===0&&(eu=pt()+500,Bl(0))}}break;case 31:case 13:p=Xa(r,2),p!==null&&mt(p,r,2),au(),eo(r,2)}if(r=ao(n),r===null&&qs(e,t,n,vu,a),r===u)break;u=r}u!==null&&n.stopPropagation()}else qs(e,t,n,null,a)}}function ao(e){return e=lr(e),no(e)}var vu=null;function no(e){if(vu=null,e=cn(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=h(t),e!==null)return e;e=null}else if(a===31){if(e=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 vu=e,null}function Bh(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(Ng()){case Xo:return 2;case Qo:return 8;case ri:case Mg:return 32;case Zo:return 268435456;default:return 32}default:return 32}}var lo=!1,ja=null,wa=null,Ua=null,Xl=new Map,Ql=new Map,Ha=[],X0="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 kh(e,t){switch(e){case"focusin":case"focusout":ja=null;break;case"dragenter":case"dragleave":wa=null;break;case"mouseover":case"mouseout":Ua=null;break;case"pointerover":case"pointerout":Xl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(t.pointerId)}}function Zl(e,t,a,n,u,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[u]},t!==null&&(t=fn(t),t!==null&&Uh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Q0(e,t,a,n,u){switch(t){case"focusin":return ja=Zl(ja,e,t,a,n,u),!0;case"dragenter":return wa=Zl(wa,e,t,a,n,u),!0;case"mouseover":return Ua=Zl(Ua,e,t,a,n,u),!0;case"pointerover":var r=u.pointerId;return Xl.set(r,Zl(Xl.get(r)||null,e,t,a,n,u)),!0;case"gotpointercapture":return r=u.pointerId,Ql.set(r,Zl(Ql.get(r)||null,e,t,a,n,u)),!0}return!1}function Yh(e){var t=cn(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=h(a),t!==null){e.blockedOn=t,Po(e.priority,function(){Hh(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Po(e.priority,function(){Hh(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 bu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=ao(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);nr=n,a.target.dispatchEvent(n),nr=null}else return t=fn(a),t!==null&&Uh(t),e.blockedOn=a,!1;t.shift()}return!0}function qh(e,t,a){bu(e)&&a.delete(t)}function Z0(){lo=!1,ja!==null&&bu(ja)&&(ja=null),wa!==null&&bu(wa)&&(wa=null),Ua!==null&&bu(Ua)&&(Ua=null),Xl.forEach(qh),Ql.forEach(qh)}function Su(e,t){e.blockedOn===t&&(e.blockedOn=null,lo||(lo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,Z0)))}var xu=null;function Vh(e){xu!==e&&(xu=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){xu===e&&(xu=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],u=e[t+2];if(typeof n!="function"){if(no(n||a)===null)continue;break}var r=fn(a);r!==null&&(e.splice(t,3),t-=3,as(r,{pending:!0,data:u,method:a.method,action:n},n,u))}}))}function Qn(e){function t(S){return Su(S,e)}ja!==null&&Su(ja,e),wa!==null&&Su(wa,e),Ua!==null&&Su(Ua,e),Xl.forEach(t),Ql.forEach(t);for(var a=0;a<Ha.length;a++){var n=Ha[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ha.length&&(a=Ha[0],a.blockedOn===null);)Yh(a),a.blockedOn===null&&Ha.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var u=a[n],r=a[n+1],d=u[st]||null;if(typeof r=="function")d||Vh(a);else if(d){var p=null;if(r&&r.hasAttribute("formAction")){if(u=r,d=r[st]||null)p=d.formAction;else if(no(u)!==null)continue}else p=d.action;typeof p=="function"?a[n+1]=p:(a.splice(n,3),n-=3),Vh(a)}}}function Gh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(d){return u=d})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function io(e){this._internalRoot=e}Eu.prototype.render=io.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=Ot();jh(a,n,e,t,null,null)},Eu.prototype.unmount=io.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jh(e.current,2,null,e,null,null),au(),t[on]=null}};function Eu(e){this._internalRoot=e}Eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Io();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ha.length&&t!==0&&t<Ha[a].priority;a++);Ha.splice(a,0,e),a===0&&Yh(e)}};var Kh=i.version;if(Kh!=="19.2.5")throw Error(o(527,Kh,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var J0={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Tu.isDisabled&&Tu.supportsFiber)try{al=Tu.inject(J0),yt=Tu}catch{}}return $l.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,n="",u=Wf,r=If,d=Pf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Dh(e,1,!1,null,null,a,n,null,u,r,d,Gh),e[on]=t.current,Ys(e),new io(t)},$l.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var n=!1,u="",r=Wf,d=If,p=Pf,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Dh(e,1,!0,t,a??null,n,u,S,r,d,p,Gh),t.context=Lh(null),a=t.current,n=Ot(),n=$u(n),u=Ea(n),u.callback=null,Ta(a,u,n),a=n,t.current.lanes=a,ll(t,a),Zt(t),e[on]=t.current,Ys(e),new Eu(t)},$l.version="19.2.5",$l}var tm;function Xy(){if(tm)return so.exports;tm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),so.exports=Ky(),so.exports}var Qy=Xy();const Zy=Ym(Qy);/**
|
|
156
|
+
* react-router v7.14.2
|
|
157
|
+
*
|
|
158
|
+
* Copyright (c) Remix Software Inc.
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the MIT license found in the
|
|
161
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
162
|
+
*
|
|
163
|
+
* @license MIT
|
|
164
|
+
*/var am="popstate";function nm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function Jy(l={}){function i(c,f){let{pathname:h="/",search:g="",hash:y=""}=sn(c.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),So("",{pathname:h,search:g,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function s(c,f){let h=c.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let y=c.location.href,m=y.indexOf("#");g=m===-1?y:y.slice(0,m)}return g+"#"+(typeof f=="string"?f:ai(f))}function o(c,f){At(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return Fy(i,s,o,l)}function je(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function At(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function $y(){return Math.random().toString(36).substring(2,10)}function lm(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function So(l,i,s=null,o,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?sn(i):i,state:s,key:i&&i.key||o||$y(),unstable_mask:c}}function ai({pathname:l="/",search:i="",hash:s=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function sn(l){let i={};if(l){let s=l.indexOf("#");s>=0&&(i.hash=l.substring(s),l=l.substring(0,s));let o=l.indexOf("?");o>=0&&(i.search=l.substring(o),l=l.substring(0,o)),l&&(i.pathname=l)}return i}function Fy(l,i,s,o={}){let{window:c=document.defaultView,v5Compat:f=!1}=o,h=c.history,g="POP",y=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function v(){g="POP";let k=b(),Y=k==null?null:k-m;m=k,y&&y({action:g,location:H.location,delta:Y})}function O(k,Y){g="PUSH";let q=nm(k)?k:So(H.location,k,Y);s&&s(q,k),m=b()+1;let K=lm(q,m),$=H.createHref(q.unstable_mask||q);try{h.pushState(K,"",$)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;c.location.assign($)}f&&y&&y({action:g,location:H.location,delta:1})}function N(k,Y){g="REPLACE";let q=nm(k)?k:So(H.location,k,Y);s&&s(q,k),m=b();let K=lm(q,m),$=H.createHref(q.unstable_mask||q);h.replaceState(K,"",$),f&&y&&y({action:g,location:H.location,delta:0})}function A(k){return Wy(k)}let H={get action(){return g},get location(){return l(c,h)},listen(k){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(am,v),y=k,()=>{c.removeEventListener(am,v),y=null}},createHref(k){return i(c,k)},createURL:A,encodeLocation(k){let Y=A(k);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:O,replace:N,go(k){return h.go(k)}};return H}function Wy(l,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),je(s,"No window.location.(origin|href) available to create URL");let o=typeof l=="string"?l:ai(l);return o=o.replace(/ $/,"%20"),!i&&o.startsWith("//")&&(o=s+o),new URL(o,s)}function Gm(l,i,s="/"){return Iy(l,i,s,!1)}function Iy(l,i,s,o){let c=typeof i=="string"?sn(i):i,f=ha(c.pathname||"/",s);if(f==null)return null;let h=Km(l);Py(h);let g=null;for(let y=0;g==null&&y<h.length;++y){let m=cv(f);g=sv(h[y],m,o)}return g}function Km(l,i=[],s=[],o="",c=!1){let f=(h,g,y=c,m)=>{let b={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:g,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&y)return;je(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let v=Gt([o,b.relativePath]),O=s.concat(b);h.children&&h.children.length>0&&(je(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Km(h.children,i,O,v,y)),!(h.path==null&&!h.index)&&i.push({path:v,score:uv(v,h.index),routesMeta:O})};return l.forEach((h,g)=>{var y;if(h.path===""||!((y=h.path)!=null&&y.includes("?")))f(h,g);else for(let m of Xm(h.path))f(h,g,!0,m)}),i}function Xm(l){let i=l.split("/");if(i.length===0)return[];let[s,...o]=i,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(o.length===0)return c?[f,""]:[f];let h=Xm(o.join("/")),g=[];return g.push(...h.map(y=>y===""?f:[f,y].join("/"))),c&&g.push(...h),g.map(y=>l.startsWith("/")&&y===""?"/":y)}function Py(l){l.sort((i,s)=>i.score!==s.score?s.score-i.score:rv(i.routesMeta.map(o=>o.childrenIndex),s.routesMeta.map(o=>o.childrenIndex)))}var ev=/^:[\w-]+$/,tv=3,av=2,nv=1,lv=10,iv=-2,im=l=>l==="*";function uv(l,i){let s=l.split("/"),o=s.length;return s.some(im)&&(o+=iv),i&&(o+=av),s.filter(c=>!im(c)).reduce((c,f)=>c+(ev.test(f)?tv:f===""?nv:lv),o)}function rv(l,i){return l.length===i.length&&l.slice(0,-1).every((o,c)=>o===i[c])?l[l.length-1]-i[i.length-1]:0}function sv(l,i,s=!1){let{routesMeta:o}=l,c={},f="/",h=[];for(let g=0;g<o.length;++g){let y=o[g],m=g===o.length-1,b=f==="/"?i:i.slice(f.length)||"/",v=Mu({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},b),O=y.route;if(!v&&m&&s&&!o[o.length-1].route.index&&(v=Mu({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!v)return null;Object.assign(c,v.params),h.push({params:c,pathname:Gt([f,v.pathname]),pathnameBase:mv(Gt([f,v.pathnameBase])),route:O}),v.pathnameBase!=="/"&&(f=Gt([f,v.pathnameBase]))}return h}function Mu(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[s,o]=ov(l.path,l.caseSensitive,l.end),c=i.match(s);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),g=c.slice(1);return{params:o.reduce((m,{paramName:b,isOptional:v},O)=>{if(b==="*"){let A=g[O]||"";h=f.slice(0,f.length-A.length).replace(/(.)\/+$/,"$1")}const N=g[O];return v&&!N?m[b]=void 0:m[b]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:l}}function ov(l,i=!1,s=!0){At(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let o=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,y,m,b)=>{if(o.push({paramName:g,isOptional:y!=null}),y){let v=b.charAt(m+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(o.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),o]}function cv(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return At(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function ha(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,o=l.charAt(s);return o&&o!=="/"?null:l.slice(s)||"/"}var fv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function dv(l,i="/"){let{pathname:s,search:o="",hash:c=""}=typeof l=="string"?sn(l):l,f;return s?(s=Qm(s),s.startsWith("/")?f=um(s.substring(1),"/"):f=um(s,i)):f=i,{pathname:f,search:gv(o),hash:pv(c)}}function um(l,i){let s=Du(i).split("/");return l.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function ho(l,i,s,o){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(o)}]. 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 hv(l){return l.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Do(l){let i=hv(l);return i.map((s,o)=>o===i.length-1?s.pathname:s.pathnameBase)}function Hu(l,i,s,o=!1){let c;typeof l=="string"?c=sn(l):(c={...l},je(!c.pathname||!c.pathname.includes("?"),ho("?","pathname","search",c)),je(!c.pathname||!c.pathname.includes("#"),ho("#","pathname","hash",c)),je(!c.search||!c.search.includes("#"),ho("#","search","hash",c)));let f=l===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=s;else{let v=i.length-1;if(!o&&h.startsWith("..")){let O=h.split("/");for(;O[0]==="..";)O.shift(),v-=1;c.pathname=O.join("/")}g=v>=0?i[v]:"/"}let y=dv(c,g),m=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&s.endsWith("/");return!y.pathname.endsWith("/")&&(m||b)&&(y.pathname+="/"),y}var Qm=l=>l.replace(/\/\/+/g,"/"),Gt=l=>Qm(l.join("/")),Du=l=>l.replace(/\/+$/,""),mv=l=>Du(l).replace(/^\/*/,"/"),gv=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,pv=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,yv=class{constructor(l,i,s,o=!1){this.status=l,this.statusText=i||"",this.internal=o,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function vv(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function bv(l){let i=l.map(s=>s.route.path).filter(Boolean);return Gt(i)||"/"}var Zm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jm(l,i){let s=l;if(typeof s!="string"||!fv.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let o=s,c=!1;if(Zm)try{let f=new URL(window.location.href),h=s.startsWith("//")?new URL(f.protocol+s):new URL(s),g=ha(h.pathname,i);h.origin===f.origin&&g!=null?s=g+h.search+h.hash:c=!0}catch{At(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $m=["POST","PUT","PATCH","DELETE"];new Set($m);var Sv=["GET",...$m];new Set(Sv);var In=T.createContext(null);In.displayName="DataRouter";var Bu=T.createContext(null);Bu.displayName="DataRouterState";var Fm=T.createContext(!1);function xv(){return T.useContext(Fm)}var Wm=T.createContext({isTransitioning:!1});Wm.displayName="ViewTransition";var Ev=T.createContext(new Map);Ev.displayName="Fetchers";var Tv=T.createContext(null);Tv.displayName="Await";var _t=T.createContext(null);_t.displayName="Navigation";var li=T.createContext(null);li.displayName="Location";var kt=T.createContext({outlet:null,matches:[],isDataRoute:!1});kt.displayName="Route";var Lo=T.createContext(null);Lo.displayName="RouteError";var Im="REACT_ROUTER_ERROR",Rv="REDIRECT",Ov="ROUTE_ERROR_RESPONSE";function Av(l){if(l.startsWith(`${Im}:${Rv}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function _v(l){if(l.startsWith(`${Im}:${Ov}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new yv(i.status,i.statusText,i.data)}catch{}}function Cv(l,{relative:i}={}){je(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:o}=T.useContext(_t),{hash:c,pathname:f,search:h}=ii(l,{relative:i}),g=f;return s!=="/"&&(g=f==="/"?s:Gt([s,f])),o.createHref({pathname:g,search:h,hash:c})}function Pn(){return T.useContext(li)!=null}function Ct(){return je(Pn(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(li).location}var Pm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eg(l){T.useContext(_t).static||T.useLayoutEffect(l)}function jo(){let{isDataRoute:l}=T.useContext(kt);return l?Gv():zv()}function zv(){je(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let l=T.useContext(In),{basename:i,navigator:s}=T.useContext(_t),{matches:o}=T.useContext(kt),{pathname:c}=Ct(),f=JSON.stringify(Do(o)),h=T.useRef(!1);return eg(()=>{h.current=!0}),T.useCallback((y,m={})=>{if(At(h.current,Pm),!h.current)return;if(typeof y=="number"){s.go(y);return}let b=Hu(y,JSON.parse(f),c,m.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:Gt([i,b.pathname])),(m.replace?s.replace:s.push)(b,m.state,m)},[i,s,f,c,l])}var Nv=T.createContext(null);function Mv(l){let i=T.useContext(kt).outlet;return T.useMemo(()=>i&&T.createElement(Nv.Provider,{value:l},i),[i,l])}function tg(){let{matches:l}=T.useContext(kt),i=l[l.length-1];return(i==null?void 0:i.params)??{}}function ii(l,{relative:i}={}){let{matches:s}=T.useContext(kt),{pathname:o}=Ct(),c=JSON.stringify(Do(s));return T.useMemo(()=>Hu(l,JSON.parse(c),o,i==="path"),[l,c,o,i])}function Dv(l,i){return ag(l,i)}function ag(l,i,s){var k;je(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=T.useContext(_t),{matches:c}=T.useContext(kt),f=c[c.length-1],h=f?f.params:{},g=f?f.pathname:"/",y=f?f.pathnameBase:"/",m=f&&f.route;{let Y=m&&m.path||"";lg(g,!m||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.
|
|
165
|
+
|
|
166
|
+
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let b=Ct(),v;if(i){let Y=typeof i=="string"?sn(i):i;je(y==="/"||((k=Y.pathname)==null?void 0:k.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),v=Y}else v=b;let O=v.pathname||"/",N=O;if(y!=="/"){let Y=y.replace(/^\//,"").split("/");N="/"+O.replace(/^\//,"").split("/").slice(Y.length).join("/")}let A=Gm(l,{pathname:N});At(m||A!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),At(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let H=Hv(A&&A.map(Y=>Object.assign({},Y,{params:Object.assign({},h,Y.params),pathname:Gt([y,o.encodeLocation?o.encodeLocation(Y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?y:Gt([y,o.encodeLocation?o.encodeLocation(Y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),c,s);return i&&H?T.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},H):H}function Lv(){let l=Vv(),i=vv(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:f},"ErrorBoundary")," or"," ",T.createElement("code",{style:f},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},i),s?T.createElement("pre",{style:c},s):null,h)}var jv=T.createElement(Lv,null),ng=class extends T.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const s=_v(l.digest);s&&(l=s)}let i=l!==void 0?T.createElement(kt.Provider,{value:this.props.routeContext},T.createElement(Lo.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?T.createElement(wv,{error:l},i):i}};ng.contextType=Fm;var mo=new WeakMap;function wv({children:l,error:i}){let{basename:s}=T.useContext(_t);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let o=Av(i.digest);if(o){let c=mo.get(i);if(c)throw c;let f=Jm(o.location,s);if(Zm&&!mo.get(i))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw mo.set(i,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function Uv({routeContext:l,match:i,children:s}){let o=T.useContext(In);return o&&o.static&&o.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=i.route.id),T.createElement(kt.Provider,{value:l},s)}function Hv(l,i=[],s){let o=s==null?void 0:s.state;if(l==null){if(!o)return null;if(o.errors)l=o.matches;else if(i.length===0&&!o.initialized&&o.matches.length>0)l=o.matches;else return null}let c=l,f=o==null?void 0:o.errors;if(f!=null){let b=c.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);je(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let h=!1,g=-1;if(s&&o){h=o.renderFallback;for(let b=0;b<c.length;b++){let v=c[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(g=b),v.route.id){let{loaderData:O,errors:N}=o,A=v.route.loader&&!O.hasOwnProperty(v.route.id)&&(!N||N[v.route.id]===void 0);if(v.route.lazy||A){s.isStatic&&(h=!0),g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}}let y=s==null?void 0:s.onError,m=o&&y?(b,v)=>{var O,N;y(b,{location:o.location,params:((N=(O=o.matches)==null?void 0:O[0])==null?void 0:N.params)??{},unstable_pattern:bv(o.matches),errorInfo:v})}:void 0;return c.reduceRight((b,v,O)=>{let N,A=!1,H=null,k=null;o&&(N=f&&v.route.id?f[v.route.id]:void 0,H=v.route.errorElement||jv,h&&(g<0&&O===0?(lg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),A=!0,k=null):g===O&&(A=!0,k=v.route.hydrateFallbackElement||null)));let Y=i.concat(c.slice(0,O+1)),q=()=>{let K;return N?K=H:A?K=k:v.route.Component?K=T.createElement(v.route.Component,null):v.route.element?K=v.route.element:K=b,T.createElement(Uv,{match:v,routeContext:{outlet:b,matches:Y,isDataRoute:o!=null},children:K})};return o&&(v.route.ErrorBoundary||v.route.errorElement||O===0)?T.createElement(ng,{location:o.location,revalidation:o.revalidation,component:H,error:N,children:q(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:m}):q()},null)}function wo(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bv(l){let i=T.useContext(In);return je(i,wo(l)),i}function kv(l){let i=T.useContext(Bu);return je(i,wo(l)),i}function Yv(l){let i=T.useContext(kt);return je(i,wo(l)),i}function Uo(l){let i=Yv(l),s=i.matches[i.matches.length-1];return je(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function qv(){return Uo("useRouteId")}function Vv(){var o;let l=T.useContext(Lo),i=kv("useRouteError"),s=Uo("useRouteError");return l!==void 0?l:(o=i.errors)==null?void 0:o[s]}function Gv(){let{router:l}=Bv("useNavigate"),i=Uo("useNavigate"),s=T.useRef(!1);return eg(()=>{s.current=!0}),T.useCallback(async(c,f={})=>{At(s.current,Pm),s.current&&(typeof c=="number"?await l.navigate(c):await l.navigate(c,{fromRouteId:i,...f}))},[l,i])}var rm={};function lg(l,i,s){!i&&!rm[l]&&(rm[l]=!0,At(!1,s))}T.memo(Kv);function Kv({routes:l,future:i,state:s,isStatic:o,onError:c}){return ag(l,void 0,{state:s,isStatic:o,onError:c})}function Wn({to:l,replace:i,state:s,relative:o}){je(Pn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=T.useContext(_t);At(!c,"<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:f}=T.useContext(kt),{pathname:h}=Ct(),g=jo(),y=Hu(l,Do(f),h,o==="path"),m=JSON.stringify(y);return T.useEffect(()=>{g(JSON.parse(m),{replace:i,state:s,relative:o})},[g,m,o,i,s]),null}function Xv(l){return Mv(l.context)}function Jn(l){je(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Qv({basename:l="/",children:i=null,location:s,navigationType:o="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){je(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=l.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:g,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[g,c,f,h]);typeof s=="string"&&(s=sn(s));let{pathname:m="/",search:b="",hash:v="",state:O=null,key:N="default",unstable_mask:A}=s,H=T.useMemo(()=>{let k=ha(m,g);return k==null?null:{location:{pathname:k,search:b,hash:v,state:O,key:N,unstable_mask:A},navigationType:o}},[g,m,b,v,O,N,o,A]);return At(H!=null,`<Router basename="${g}"> is not able to match the URL "${m}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),H==null?null:T.createElement(_t.Provider,{value:y},T.createElement(li.Provider,{children:i,value:H}))}function Zv({children:l,location:i}){return Dv(xo(l),i)}function xo(l,i=[]){let s=[];return T.Children.forEach(l,(o,c)=>{if(!T.isValidElement(o))return;let f=[...i,c];if(o.type===T.Fragment){s.push.apply(s,xo(o.props.children,f));return}je(o.type===Jn,`[${typeof o.type=="string"?o.type:o.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),je(!o.props.index||!o.props.children,"An index route cannot have child routes.");let h={id:o.props.id||f.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,middleware:o.props.middleware,loader:o.props.loader,action:o.props.action,hydrateFallbackElement:o.props.hydrateFallbackElement,HydrateFallback:o.props.HydrateFallback,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.hasErrorBoundary===!0||o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(h.children=xo(o.props.children,f)),s.push(h)}),s}var Cu="get",zu="application/x-www-form-urlencoded";function ku(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function Jv(l){return ku(l)&&l.tagName.toLowerCase()==="button"}function $v(l){return ku(l)&&l.tagName.toLowerCase()==="form"}function Fv(l){return ku(l)&&l.tagName.toLowerCase()==="input"}function Wv(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Iv(l,i){return l.button===0&&(!i||i==="_self")&&!Wv(l)}function Eo(l=""){return new URLSearchParams(typeof l=="string"||Array.isArray(l)||l instanceof URLSearchParams?l:Object.keys(l).reduce((i,s)=>{let o=l[s];return i.concat(Array.isArray(o)?o.map(c=>[s,c]):[[s,o]])},[]))}function Pv(l,i){let s=Eo(l);return i&&i.forEach((o,c)=>{s.has(c)||i.getAll(c).forEach(f=>{s.append(c,f)})}),s}var Ou=null;function e1(){if(Ou===null)try{new FormData(document.createElement("form"),0),Ou=!1}catch{Ou=!0}return Ou}var t1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function go(l){return l!=null&&!t1.has(l)?(At(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${zu}"`),null):l}function a1(l,i){let s,o,c,f,h;if($v(l)){let g=l.getAttribute("action");o=g?ha(g,i):null,s=l.getAttribute("method")||Cu,c=go(l.getAttribute("enctype"))||zu,f=new FormData(l)}else if(Jv(l)||Fv(l)&&(l.type==="submit"||l.type==="image")){let g=l.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=l.getAttribute("formaction")||g.getAttribute("action");if(o=y?ha(y,i):null,s=l.getAttribute("formmethod")||g.getAttribute("method")||Cu,c=go(l.getAttribute("formenctype"))||go(g.getAttribute("enctype"))||zu,f=new FormData(g,l),!e1()){let{name:m,type:b,value:v}=l;if(b==="image"){let O=m?`${m}.`:"";f.append(`${O}x`,"0"),f.append(`${O}y`,"0")}else m&&f.append(m,v)}}else{if(ku(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Cu,o=null,c=zu,h=l}return f&&c==="text/plain"&&(h=f,f=void 0),{action:o,method:s.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ho(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ig(l,i,s,o){let c=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:c.pathname==="/"?c.pathname=`_root.${o}`:i&&ha(c.pathname,i)==="/"?c.pathname=`${Du(i)}/_root.${o}`:c.pathname=`${Du(c.pathname)}.${o}`,c}async function n1(l,i){if(l.id in i)return i[l.id];try{let s=await import(l.module);return i[l.id]=s,s}catch(s){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function l1(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function i1(l,i,s){let o=await Promise.all(l.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await n1(f,s);return h.links?h.links():[]}return[]}));return o1(o.flat(1).filter(l1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function sm(l,i,s,o,c,f){let h=(y,m)=>s[m]?y.route.id!==s[m].route.id:!0,g=(y,m)=>{var b;return s[m].pathname!==y.pathname||((b=s[m].route.path)==null?void 0:b.endsWith("*"))&&s[m].params["*"]!==y.params["*"]};return f==="assets"?i.filter((y,m)=>h(y,m)||g(y,m)):f==="data"?i.filter((y,m)=>{var v;let b=o.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(h(y,m)||g(y,m))return!0;if(y.route.shouldRevalidate){let O=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=s[0])==null?void 0:v.params)||{},nextUrl:new URL(l,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof O=="boolean")return O}return!0}):[]}function u1(l,i,{includeHydrateFallback:s}={}){return r1(l.map(o=>{let c=i.routes[o.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function r1(l){return[...new Set(l)]}function s1(l){let i={},s=Object.keys(l).sort();for(let o of s)i[o]=l[o];return i}function o1(l,i){let s=new Set;return new Set(i),l.reduce((o,c)=>{let f=JSON.stringify(s1(c));return s.has(f)||(s.add(f),o.push({key:f,link:c})),o},[])}function Bo(){let l=T.useContext(In);return Ho(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function c1(){let l=T.useContext(Bu);return Ho(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var ko=T.createContext(void 0);ko.displayName="FrameworkContext";function Yo(){let l=T.useContext(ko);return Ho(l,"You must render this element inside a <HydratedRouter> element"),l}function f1(l,i){let s=T.useContext(ko),[o,c]=T.useState(!1),[f,h]=T.useState(!1),{onFocus:g,onBlur:y,onMouseEnter:m,onMouseLeave:b,onTouchStart:v}=i,O=T.useRef(null);T.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let H=Y=>{Y.forEach(q=>{h(q.isIntersecting)})},k=new IntersectionObserver(H,{threshold:.5});return O.current&&k.observe(O.current),()=>{k.disconnect()}}},[l]),T.useEffect(()=>{if(o){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[o]);let N=()=>{c(!0)},A=()=>{c(!1),h(!1)};return s?l!=="intent"?[f,O,{}]:[f,O,{onFocus:Fl(g,N),onBlur:Fl(y,A),onMouseEnter:Fl(m,N),onMouseLeave:Fl(b,A),onTouchStart:Fl(v,N)}]:[!1,O,{}]}function Fl(l,i){return s=>{l&&l(s),s.defaultPrevented||i(s)}}function d1({page:l,...i}){let s=xv(),{router:o}=Bo(),c=T.useMemo(()=>Gm(o.routes,l,o.basename),[o.routes,l,o.basename]);return c?s?T.createElement(m1,{page:l,matches:c,...i}):T.createElement(g1,{page:l,matches:c,...i}):null}function h1(l){let{manifest:i,routeModules:s}=Yo(),[o,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return i1(l,i,s).then(h=>{f||c(h)}),()=>{f=!0}},[l,i,s]),o}function m1({page:l,matches:i,...s}){let o=Ct(),{future:c}=Yo(),{basename:f}=Bo(),h=T.useMemo(()=>{if(l===o.pathname+o.search+o.hash)return[];let g=ig(l,f,c.unstable_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let b of i)typeof b.route.shouldRevalidate=="function"?y=!0:m.push(b.route.id);return y&&m.length>0&&g.searchParams.set("_routes",m.join(",")),[g.pathname+g.search]},[f,c.unstable_trailingSlashAwareDataRequests,l,o,i]);return T.createElement(T.Fragment,null,h.map(g=>T.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...s})))}function g1({page:l,matches:i,...s}){let o=Ct(),{future:c,manifest:f,routeModules:h}=Yo(),{basename:g}=Bo(),{loaderData:y,matches:m}=c1(),b=T.useMemo(()=>sm(l,i,m,f,o,"data"),[l,i,m,f,o]),v=T.useMemo(()=>sm(l,i,m,f,o,"assets"),[l,i,m,f,o]),O=T.useMemo(()=>{if(l===o.pathname+o.search+o.hash)return[];let H=new Set,k=!1;if(i.forEach(q=>{var $;let K=f.routes[q.route.id];!K||!K.hasLoader||(!b.some(ee=>ee.route.id===q.route.id)&&q.route.id in y&&(($=h[q.route.id])!=null&&$.shouldRevalidate)||K.hasClientLoader?k=!0:H.add(q.route.id))}),H.size===0)return[];let Y=ig(l,g,c.unstable_trailingSlashAwareDataRequests,"data");return k&&H.size>0&&Y.searchParams.set("_routes",i.filter(q=>H.has(q.route.id)).map(q=>q.route.id).join(",")),[Y.pathname+Y.search]},[g,c.unstable_trailingSlashAwareDataRequests,y,o,f,b,i,l,h]),N=T.useMemo(()=>u1(v,f),[v,f]),A=h1(v);return T.createElement(T.Fragment,null,O.map(H=>T.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...s})),N.map(H=>T.createElement("link",{key:H,rel:"modulepreload",href:H,...s})),A.map(({key:H,link:k})=>T.createElement("link",{key:H,nonce:s.nonce,...k,crossOrigin:k.crossOrigin??s.crossOrigin})))}function p1(...l){return i=>{l.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var y1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{y1&&(window.__reactRouterVersion="7.14.2")}catch{}function v1({basename:l,children:i,unstable_useTransitions:s,window:o}){let c=T.useRef();c.current==null&&(c.current=Jy({window:o,v5Compat:!0}));let f=c.current,[h,g]=T.useState({action:f.action,location:f.location}),y=T.useCallback(m=>{s===!1?g(m):T.startTransition(()=>g(m))},[s]);return T.useLayoutEffect(()=>f.listen(y),[f,y]),T.createElement(Qv,{basename:l,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:s})}var ug=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rg=T.forwardRef(function({onClick:i,discover:s="render",prefetch:o="none",relative:c,reloadDocument:f,replace:h,unstable_mask:g,state:y,target:m,to:b,preventScrollReset:v,viewTransition:O,unstable_defaultShouldRevalidate:N,...A},H){let{basename:k,navigator:Y,unstable_useTransitions:q}=T.useContext(_t),K=typeof b=="string"&&ug.test(b),$=Jm(b,k);b=$.to;let ee=Cv(b,{relative:c}),se=Ct(),J=null;if(g){let we=Hu(g,[],se.unstable_mask?se.unstable_mask.pathname:"/",!0);k!=="/"&&(we.pathname=we.pathname==="/"?k:Gt([k,we.pathname])),J=Y.createHref(we)}let[ne,re,de]=f1(o,A),Me=x1(b,{replace:h,unstable_mask:g,state:y,target:m,preventScrollReset:v,relative:c,viewTransition:O,unstable_defaultShouldRevalidate:N,unstable_useTransitions:q});function Je(we){i&&i(we),we.defaultPrevented||Me(we)}let Ce=!($.isExternal||f),De=T.createElement("a",{...A,...de,href:(Ce?J:void 0)||$.absoluteURL||ee,onClick:Ce?Je:i,ref:p1(H,re),target:m,"data-discover":!K&&s==="render"?"true":void 0});return ne&&!K?T.createElement(T.Fragment,null,De,T.createElement(d1,{page:ee})):De});rg.displayName="Link";var To=T.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:o="",end:c=!1,style:f,to:h,viewTransition:g,children:y,...m},b){let v=ii(h,{relative:m.relative}),O=Ct(),N=T.useContext(Bu),{navigator:A,basename:H}=T.useContext(_t),k=N!=null&&A1(v)&&g===!0,Y=A.encodeLocation?A.encodeLocation(v).pathname:v.pathname,q=O.pathname,K=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;s||(q=q.toLowerCase(),K=K?K.toLowerCase():null,Y=Y.toLowerCase()),K&&H&&(K=ha(K,H)||K);const $=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let ee=q===Y||!c&&q.startsWith(Y)&&q.charAt($)==="/",se=K!=null&&(K===Y||!c&&K.startsWith(Y)&&K.charAt(Y.length)==="/"),J={isActive:ee,isPending:se,isTransitioning:k},ne=ee?i:void 0,re;typeof o=="function"?re=o(J):re=[o,ee?"active":null,se?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let de=typeof f=="function"?f(J):f;return T.createElement(rg,{...m,"aria-current":ne,className:re,ref:b,style:de,to:h,viewTransition:g},typeof y=="function"?y(J):y)});To.displayName="NavLink";var b1=T.forwardRef(({discover:l="render",fetcherKey:i,navigate:s,reloadDocument:o,replace:c,state:f,method:h=Cu,action:g,onSubmit:y,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:O,...N},A)=>{let{unstable_useTransitions:H}=T.useContext(_t),k=R1(),Y=O1(g,{relative:m}),q=h.toLowerCase()==="get"?"get":"post",K=typeof g=="string"&&ug.test(g),$=ee=>{if(y&&y(ee),ee.defaultPrevented)return;ee.preventDefault();let se=ee.nativeEvent.submitter,J=(se==null?void 0:se.getAttribute("formmethod"))||h,ne=()=>k(se||ee.currentTarget,{fetcherKey:i,method:J,navigate:s,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:O});H&&s!==!1?T.startTransition(()=>ne()):ne()};return T.createElement("form",{ref:A,method:q,action:Y,onSubmit:o?y:$,...N,"data-discover":!K&&l==="render"?"true":void 0})});b1.displayName="Form";function S1(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sg(l){let i=T.useContext(In);return je(i,S1(l)),i}function x1(l,{target:i,replace:s,unstable_mask:o,state:c,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:m}={}){let b=jo(),v=Ct(),O=ii(l,{relative:h});return T.useCallback(N=>{if(Iv(N,i)){N.preventDefault();let A=s!==void 0?s:ai(v)===ai(O),H=()=>b(l,{replace:A,unstable_mask:o,state:c,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:y});m?T.startTransition(()=>H()):H()}},[v,b,O,s,o,c,i,l,f,h,g,y,m])}function MS(l){At(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let i=T.useRef(Eo(l)),s=T.useRef(!1),o=Ct(),c=T.useMemo(()=>Pv(o.search,s.current?null:i.current),[o.search]),f=jo(),h=T.useCallback((g,y)=>{const m=Eo(typeof g=="function"?g(new URLSearchParams(c)):g);s.current=!0,f("?"+m,y)},[f,c]);return[c,h]}var E1=0,T1=()=>`__${String(++E1)}__`;function R1(){let{router:l}=sg("useSubmit"),{basename:i}=T.useContext(_t),s=qv(),o=l.fetch,c=l.navigate;return T.useCallback(async(f,h={})=>{let{action:g,method:y,encType:m,formData:b,body:v}=a1(f,i);if(h.navigate===!1){let O=h.fetcherKey||T1();await o(O,s,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,flushSync:h.flushSync})}else await c(h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:s,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,c,i,s])}function O1(l,{relative:i}={}){let{basename:s}=T.useContext(_t),o=T.useContext(kt);je(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),f={...ii(l||".",{relative:i})},h=Ct();if(l==null){f.search=h.search;let g=new URLSearchParams(f.search),y=g.getAll("index");if(y.some(b=>b==="")){g.delete("index"),y.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:Gt([s,f.pathname])),ai(f)}function A1(l,{relative:i}={}){let s=T.useContext(Wm);je(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=sg("useViewTransitionState"),c=ii(l,{relative:i});if(!s.isTransitioning)return!1;let f=ha(s.currentLocation.pathname,o)||s.currentLocation.pathname,h=ha(s.nextLocation.pathname,o)||s.nextLocation.pathname;return Mu(c.pathname,h)!=null||Mu(c.pathname,f)!=null}const _1=(l,i,s,o)=>{var f,h,g,y;const c=[s,{code:i,...o||{}}];if((h=(f=l==null?void 0:l.services)==null?void 0:f.logger)!=null&&h.forward)return l.services.logger.forward(c,"warn","react-i18next::",!0);rn(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(y=(g=l==null?void 0:l.services)==null?void 0:g.logger)!=null&&y.warn?l.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},om={},Ro=(l,i,s,o)=>{rn(s)&&om[s]||(rn(s)&&(om[s]=new Date),_1(l,i,s,o))},og=(l,i)=>()=>{if(l.isInitialized)i();else{const s=()=>{setTimeout(()=>{l.off("initialized",s)},0),i()};l.on("initialized",s)}},Oo=(l,i,s)=>{l.loadNamespaces(i,og(l,s))},cm=(l,i,s,o)=>{if(rn(s)&&(s=[s]),l.options.preload&&l.options.preload.indexOf(i)>-1)return Oo(l,s,o);s.forEach(c=>{l.options.ns.indexOf(c)<0&&l.options.ns.push(c)}),l.loadLanguages(i,og(l,o))},C1=(l,i,s={})=>!i.languages||!i.languages.length?(Ro(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(l,{lng:s.lng,precheck:(o,c)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,l))return!1}}),rn=l=>typeof l=="string",z1=l=>typeof l=="object"&&l!==null,N1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,M1={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},D1=l=>M1[l],L1=l=>l.replace(N1,D1);let Ao={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:L1};const j1=(l={})=>{Ao={...Ao,...l}},w1=()=>Ao;let cg;const U1=l=>{cg=l},H1=()=>cg,B1={type:"3rdParty",init(l){j1(l.options.react),U1(l)}},k1=T.createContext();class Y1{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q1=(l,i)=>{const s=T.useRef();return T.useEffect(()=>{s.current=l},[l,i]),s.current},fg=(l,i,s,o)=>l.getFixedT(i,s,o),V1=(l,i,s,o)=>T.useCallback(fg(l,i,s,o),[l,i,s,o]),G1=(l,i={})=>{var $,ee,se,J;const{i18n:s}=i,{i18n:o,defaultNS:c}=T.useContext(k1)||{},f=s||o||H1();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new Y1),!f){Ro(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const ne=(de,Me)=>rn(Me)?Me:z1(Me)&&rn(Me.defaultValue)?Me.defaultValue:Array.isArray(de)?de[de.length-1]:de,re=[ne,{},!1];return re.t=ne,re.i18n={},re.ready=!1,re}($=f.options.react)!=null&&$.wait&&Ro(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h={...w1(),...f.options.react,...i},{useSuspense:g,keyPrefix:y}=h;let m=c||((ee=f.options)==null?void 0:ee.defaultNS);m=rn(m)?[m]:m||["translation"],(J=(se=f.reportNamespaces).addUsedNamespaces)==null||J.call(se,m);const b=(f.isInitialized||f.initializedStoreOnce)&&m.every(ne=>C1(ne,f,h)),v=V1(f,i.lng||null,h.nsMode==="fallback"?m:m[0],y),O=()=>v,N=()=>fg(f,i.lng||null,h.nsMode==="fallback"?m:m[0],y),[A,H]=T.useState(O);let k=m.join();i.lng&&(k=`${i.lng}${k}`);const Y=q1(k),q=T.useRef(!0);T.useEffect(()=>{const{bindI18n:ne,bindI18nStore:re}=h;q.current=!0,!b&&!g&&(i.lng?cm(f,i.lng,m,()=>{q.current&&H(N)}):Oo(f,m,()=>{q.current&&H(N)})),b&&Y&&Y!==k&&q.current&&H(N);const de=()=>{q.current&&H(N)};return ne&&(f==null||f.on(ne,de)),re&&(f==null||f.store.on(re,de)),()=>{q.current=!1,f&&ne&&(ne==null||ne.split(" ").forEach(Me=>f.off(Me,de))),re&&f&&re.split(" ").forEach(Me=>f.store.off(Me,de))}},[f,k]),T.useEffect(()=>{q.current&&b&&H(O)},[f,y,b]);const K=[A,f,b];if(K.t=A,K.i18n=f,K.ready=b,b||!b&&!g)return K;throw new Promise(ne=>{i.lng?cm(f,i.lng,m,()=>ne()):Oo(f,m,()=>ne())})};function dg(l){var i,s,o="";if(typeof l=="string"||typeof l=="number")o+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(i=0;i<c;i++)l[i]&&(s=dg(l[i]))&&(o&&(o+=" "),o+=s)}else for(s in l)l[s]&&(o&&(o+=" "),o+=s);return o}function K1(){for(var l,i,s=0,o="",c=arguments.length;s<c;s++)(l=arguments[s])&&(i=dg(l))&&(o&&(o+=" "),o+=i);return o}function at(...l){return K1(l)}function DS(l){return l?new Date(l).toLocaleString():"-"}function LS(l,i="just now"){if(!l)return"";const s=Math.floor((Date.now()-new Date(l).getTime())/6e4);if(s<1)return i;if(s<60)return`${s}m`;const o=Math.floor(s/60);return o<24?`${o}h`:`${Math.floor(o/24)}d`}const fm=l=>{let i;const s=new Set,o=(m,b)=>{const v=typeof m=="function"?m(i):m;if(!Object.is(v,i)){const O=i;i=b??(typeof v!="object"||v===null)?v:Object.assign({},i,v),s.forEach(N=>N(i,O))}},c=()=>i,g={setState:o,getState:c,getInitialState:()=>y,subscribe:m=>(s.add(m),()=>s.delete(m))},y=i=l(o,c,g);return g},X1=(l=>l?fm(l):fm),Q1=l=>l;function Z1(l,i=Q1){const s=$n.useSyncExternalStore(l.subscribe,$n.useCallback(()=>i(l.getState()),[l,i]),$n.useCallback(()=>i(l.getInitialState()),[l,i]));return $n.useDebugValue(s),s}const dm=l=>{const i=X1(l),s=o=>Z1(i,o);return Object.assign(s,i),s},hg=(l=>l?dm(l):dm),qo=hg(l=>({snapshot:null,setSnapshot:i=>l({snapshot:i})}));function hm(l){qo.getState().setSnapshot(l)}function J1(){return qo.getState().snapshot}function $1(l){return!!(l!=null&&l.knowledge.some(i=>i.enabled!==!1))}function F1(l){return!!(l!=null&&l.schedulers.some(i=>i.enabled!==!1))}function W1(l){var i;return!!((i=l==null?void 0:l.monitors)!=null&&i.some(s=>s.enabled!==!1))}function mm(l){return!!(l!=null&&l.agents.some(i=>i.agentType))}function I1(l=J1()){const i=!!l,s=i?mm(l):!0;return{desktopRuntime:!0,desktopChat:s,chatRoute:i?s:!0,desktopWorkspace:i?mm(l):!0,knowledgeModule:i?$1(l):!0,schedulerModule:i?F1(l):!0,monitorModule:i?W1(l):!0}}function Vo(){const l=qo(i=>i.snapshot);return I1(l)}function gm(l){return l==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":l}function pm(l){document.documentElement.classList.toggle("dark",l==="dark")}const mg=hg(l=>({theme:"dark",resolved:"dark",setTheme:i=>{const s=gm(i);localStorage.setItem("cc_theme",i),pm(s),l({theme:i,resolved:s})},init:()=>{const i=localStorage.getItem("cc_theme")||"dark",s=gm(i);pm(s),l({theme:i,resolved:s})}})),P1="modulepreload",eb=function(l,i){return new URL(l,i).href},ym={},gt=function(i,s,o){let c=Promise.resolve();if(s&&s.length>0){let h=function(b){return Promise.all(b.map(v=>Promise.resolve(v).then(O=>({status:"fulfilled",value:O}),O=>({status:"rejected",reason:O}))))};const g=document.getElementsByTagName("link"),y=document.querySelector("meta[property=csp-nonce]"),m=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));c=h(s.map(b=>{if(b=eb(b,o),b in ym)return;ym[b]=!0;const v=b.endsWith(".css"),O=v?'[rel="stylesheet"]':"";if(!!o)for(let H=g.length-1;H>=0;H--){const k=g[H];if(k.href===b&&(!v||k.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${b}"]${O}`))return;const A=document.createElement("link");if(A.rel=v?"stylesheet":P1,v||(A.as="script"),A.crossOrigin="",A.href=b,m&&A.setAttribute("nonce",m),document.head.appendChild(A),v)return new Promise((H,k)=>{A.addEventListener("load",H),A.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${b}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return c.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return i().catch(f)})},tb=T.lazy(()=>gt(()=>import("./Dashboard-CZj-oANw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),ab=T.lazy(()=>gt(()=>import("./ThreadChat-4OceMgM4.js").then(l=>l.T),__vite__mapDeps([8,9,10,7,11,12,13,14,15,16,17,5]),import.meta.url)),nb=T.lazy(()=>gt(()=>import("./Workspace-DplPJOjJ.js"),__vite__mapDeps([18,12,13,11,19,10,3,4,1,9,16,20,21]),import.meta.url)),lb=T.lazy(()=>gt(()=>import("./CronList-XqHdVlgu.js"),__vite__mapDeps([22,5,1,2,12,13,11,19,10,3,4,20,23,15,16]),import.meta.url)),ib=T.lazy(()=>gt(()=>import("./MonitorList-CIjGQkFs.js"),__vite__mapDeps([24,5,1,2,12,13,11,19,10,3,4,20,23,15,16]),import.meta.url)),ub=T.lazy(()=>gt(()=>import("./Config-ByGMQuzR.js"),__vite__mapDeps([25,2,11,4,1,7,21]),import.meta.url)),rb=T.lazy(()=>gt(()=>import("./Logs-DqnanQTc.js"),__vite__mapDeps([26,1,2,11,19,13,10,4,27,14]),import.meta.url)),sb=T.lazy(()=>gt(()=>import("./KnowledgeHome-BWV1gz4f.js"),__vite__mapDeps([28,1,12,13,11,3,17,15,16,14,20,6]),import.meta.url)),ob=T.lazy(()=>gt(()=>import("./KnowledgeDetail-CbUb2tG7.js"),__vite__mapDeps([29,1,11,3,17,27,14,16]),import.meta.url));class cb{constructor(){Ru(this,"routes",new Map);Ru(this,"navItems",new Map)}registerRoute(i){this.routes.set(i.id,i)}registerNavItem(i){this.navItems.set(i.id,i)}listRoutes(){return[...this.routes.values()].sort((i,s)=>i.order-s.order)}listNavItems(){return[...this.navItems.values()].sort((i,s)=>i.order-s.order)}}function ln(l,i,s="/"){return l?i:j.jsx(Wn,{to:s,replace:!0})}function fb(){const{name:l}=tg();return j.jsx(Wn,{to:l?`/workspace?project=${encodeURIComponent(l)}`:"/workspace",replace:!0})}function vm(){const{project:l,id:i}=tg(),s=new URLSearchParams;return l&&s.set("project",l),i&&s.set("session",i),j.jsx(Wn,{to:`/chat${s.toString()?`?${s.toString()}`:""}`,replace:!0})}function db(l){[{id:"dashboard",index:!0,titleKey:"nav.dashboard",order:10,element:()=>j.jsx(tb,{})},{id:"chat",path:"chat",titleKey:"nav.chat",order:20,element:({features:s})=>ln(s.chatRoute,j.jsx(ab,{}))},{id:"workspace",path:"workspace",titleKey:"nav.workspace",order:30,element:({features:s})=>ln(s.desktopWorkspace,j.jsx(nb,{}))},{id:"knowledge",path:"knowledge",titleKey:"nav.knowledge",order:40,element:({features:s})=>ln(s.knowledgeModule,j.jsx(sb,{}))},{id:"knowledge-detail",path:"knowledge/:knowledgebaseId",titleKey:"nav.knowledge",order:41,element:({features:s})=>ln(s.knowledgeModule,j.jsx(ob,{}))},{id:"projects",path:"projects",titleKey:"nav.projects",order:50,element:({features:s})=>ln(s.desktopWorkspace,j.jsx(Wn,{to:"/workspace",replace:!0}))},{id:"project-detail",path:"projects/:name",titleKey:"nav.projects",order:51,element:()=>j.jsx(fb,{})},{id:"sessions",path:"sessions",titleKey:"nav.sessions",order:60,element:()=>j.jsx(vm,{})},{id:"session-detail",path:"sessions/:project/:id",titleKey:"nav.sessions",order:61,element:()=>j.jsx(vm,{})},{id:"cron",path:"cron",titleKey:"nav.cron",order:70,element:({features:s})=>ln(s.schedulerModule,j.jsx(lb,{}))},{id:"monitors",path:"monitors",titleKey:"nav.monitors",order:71,element:({features:s})=>ln(s.monitorModule,j.jsx(ib,{}))},{id:"system",path:"system",titleKey:"nav.system",order:80,element:()=>j.jsx(ub,{})},{id:"system-logs",path:"system/logs",titleKey:"nav.system",order:81,element:()=>j.jsx(rb,{})}].forEach(s=>l.registerRoute(s))}function hb(l){[{id:"dashboard",path:"/",labelKey:"nav.dashboard",icon:Sy,order:10,end:!0},{id:"chat",path:"/chat",labelKey:"nav.chat",icon:Ay,order:20,visible:({features:s})=>s.chatRoute,resolveLabelKey:({features:s})=>s.desktopChat?"nav.chat":"nav.chatWeb"},{id:"workspace",path:"/workspace",labelKey:"nav.workspace",icon:ky,order:30,visible:({features:s})=>s.desktopWorkspace},{id:"knowledge",path:"/knowledge",labelKey:"nav.knowledge",icon:Ey,order:40,visible:({features:s})=>s.knowledgeModule},{id:"projects",path:"/projects",labelKey:"nav.projects",icon:py,order:50,visible:()=>!1},{id:"sessions",path:"/sessions",labelKey:"nav.sessions",icon:Ry,order:60,visible:()=>!1},{id:"cron",path:"/cron",labelKey:"nav.cron",icon:my,order:70,visible:({features:s})=>s.schedulerModule},{id:"monitors",path:"/monitors",labelKey:"nav.monitors",icon:sy,order:71,visible:({features:s})=>s.monitorModule},{id:"system",path:"/system",labelKey:"nav.system",icon:Ly,order:80}].forEach(s=>l.registerNavItem(s))}const Yu=new cb;db(Yu);hb(Yu);function mb({className:l,markClassName:i,showWordmark:s=!1}){const o=T.useId(),c=`${o}-bg`,f=`${o}-stroke`;return j.jsxs("div",{className:at("inline-flex items-center gap-3",l),children:[j.jsxs("svg",{className:at("h-8 w-8 shrink-0",i),viewBox:"0 0 64 64",role:"img","aria-label":"AgentDock",fill:"none",children:[j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:c,x1:"7",y1:"5",x2:"57",y2:"59",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{className:"[stop-color:#FFFFFF] dark:[stop-color:#3A3A3C]"}),j.jsx("stop",{offset:"0.52",className:"[stop-color:#F5F5F7] dark:[stop-color:#2C2C2E]"}),j.jsx("stop",{offset:"1",className:"[stop-color:#E5E5EA] dark:[stop-color:#1C1C1E]"})]}),j.jsxs("linearGradient",{id:f,x1:"18",y1:"16",x2:"47",y2:"48",gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#5AC8FA"}),j.jsx("stop",{offset:"0.44",stopColor:"#0A84FF"}),j.jsx("stop",{offset:"1",stopColor:"#007AFF"})]})]}),j.jsx("rect",{x:"4",y:"4",width:"56",height:"56",rx:"16",fill:`url(#${c})`,className:"stroke-black/10 dark:stroke-white/10",strokeWidth:"1.5"}),j.jsx("path",{d:"M14.5 45L25.3 20.1C26.1 18.1 28.9 18.1 29.8 20.1L40.8 45",stroke:`url(#${f})`,strokeWidth:"7.5",strokeLinecap:"round",strokeLinejoin:"round"}),j.jsx("path",{d:"M20.8 37.5H34.7",className:"stroke-white dark:stroke-white",strokeWidth:"5.25",strokeLinecap:"round"}),j.jsx("path",{d:"M33.8 20.2H37.4C45.1 20.2 50 25.6 50 32.5C50 39.4 45.1 44.8 37.4 44.8H33.8",stroke:`url(#${f})`,strokeWidth:"7",strokeLinecap:"round",strokeLinejoin:"round",opacity:"0.82"}),j.jsx("path",{d:"M34 25.5V39.5",className:"stroke-black/70 dark:stroke-black/80",strokeWidth:"3",strokeLinecap:"round",opacity:"0.18"})]}),s&&j.jsx("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:"AgentDock"})]})}var po={};const te=l=>typeof l=="string",Wl=()=>{let l,i;const s=new Promise((o,c)=>{l=o,i=c});return s.resolve=l,s.reject=i,s},bm=l=>l==null?"":""+l,gb=(l,i,s)=>{l.forEach(o=>{i[o]&&(s[o]=i[o])})},pb=/###/g,Sm=l=>l&&l.indexOf("###")>-1?l.replace(pb,"."):l,xm=l=>!l||te(l),Pl=(l,i,s)=>{const o=te(i)?i.split("."):i;let c=0;for(;c<o.length-1;){if(xm(l))return{};const f=Sm(o[c]);!l[f]&&s&&(l[f]=new s),Object.prototype.hasOwnProperty.call(l,f)?l=l[f]:l={},++c}return xm(l)?{}:{obj:l,k:Sm(o[c])}},Em=(l,i,s)=>{const{obj:o,k:c}=Pl(l,i,Object);if(o!==void 0||i.length===1){o[c]=s;return}let f=i[i.length-1],h=i.slice(0,i.length-1),g=Pl(l,h,Object);for(;g.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),g=Pl(l,h,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=s},yb=(l,i,s,o)=>{const{obj:c,k:f}=Pl(l,i,Object);c[f]=c[f]||[],c[f].push(s)},Lu=(l,i)=>{const{obj:s,k:o}=Pl(l,i);if(s&&Object.prototype.hasOwnProperty.call(s,o))return s[o]},vb=(l,i,s)=>{const o=Lu(l,s);return o!==void 0?o:Lu(i,s)},gg=(l,i,s)=>{for(const o in i)o!=="__proto__"&&o!=="constructor"&&(o in l?te(l[o])||l[o]instanceof String||te(i[o])||i[o]instanceof String?s&&(l[o]=i[o]):gg(l[o],i[o],s):l[o]=i[o]);return l},un=l=>l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var bb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Sb=l=>te(l)?l.replace(/[&<>"'\/]/g,i=>bb[i]):l;class xb{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const s=this.regExpMap.get(i);if(s!==void 0)return s;const o=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,o),this.regExpQueue.push(i),o}}const Eb=[" ",",","?","!",";"],Tb=new xb(20),Rb=(l,i,s)=>{i=i||"",s=s||"";const o=Eb.filter(h=>i.indexOf(h)<0&&s.indexOf(h)<0);if(o.length===0)return!0;const c=Tb.getRegExp(`(${o.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!c.test(l);if(!f){const h=l.indexOf(s);h>0&&!c.test(l.substring(0,h))&&(f=!0)}return f},_o=(l,i,s=".")=>{if(!l)return;if(l[i])return Object.prototype.hasOwnProperty.call(l,i)?l[i]:void 0;const o=i.split(s);let c=l;for(let f=0;f<o.length;){if(!c||typeof c!="object")return;let h,g="";for(let y=f;y<o.length;++y)if(y!==f&&(g+=s),g+=o[y],h=c[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&y<o.length-1)continue;f+=y-f+1;break}c=h}return c},ni=l=>l==null?void 0:l.replace(/_/g,"-"),Ob={type:"logger",log(l){this.output("log",l)},warn(l){this.output("warn",l)},error(l){this.output("error",l)},output(l,i){var s,o;(o=(s=console==null?void 0:console[l])==null?void 0:s.apply)==null||o.call(s,console,i)}};class ju{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||Ob,this.options=s,this.debug=s.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,s,o,c){return c&&!this.debug?null:(te(i[0])&&(i[0]=`${o}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new ju(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new ju(this.logger,i)}}var Jt=new ju;class qu{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const c=this.observers[o].get(s)||0;this.observers[o].set(s,c+1)}),this}off(i,s){if(this.observers[i]){if(!s){delete this.observers[i];return}this.observers[i].delete(s)}}emit(i,...s){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c.apply(c,[i,...s])})}}class Tm extends qu{constructor(i,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const s=this.options.ns.indexOf(i);s>-1&&this.options.ns.splice(s,1)}getResource(i,s,o,c={}){var m,b;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,h=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let g;i.indexOf(".")>-1?g=i.split("."):(g=[i,s],o&&(Array.isArray(o)?g.push(...o):te(o)&&f?g.push(...o.split(f)):g.push(o)));const y=Lu(this.data,g);return!y&&!s&&!o&&i.indexOf(".")>-1&&(i=g[0],s=g[1],o=g.slice(2).join(".")),y||!h||!te(o)?y:_o((b=(m=this.data)==null?void 0:m[i])==null?void 0:b[s],o,f)}addResource(i,s,o,c,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[i,s];o&&(g=g.concat(h?o.split(h):o)),i.indexOf(".")>-1&&(g=i.split("."),c=s,s=g[1]),this.addNamespaces(s),Em(this.data,g,c),f.silent||this.emit("added",i,s,o,c)}addResources(i,s,o,c={silent:!1}){for(const f in o)(te(o[f])||Array.isArray(o[f]))&&this.addResource(i,s,f,o[f],{silent:!0});c.silent||this.emit("added",i,s,o)}addResourceBundle(i,s,o,c,f,h={silent:!1,skipCopy:!1}){let g=[i,s];i.indexOf(".")>-1&&(g=i.split("."),c=o,o=s,s=g[1]),this.addNamespaces(s);let y=Lu(this.data,g)||{};h.skipCopy||(o=JSON.parse(JSON.stringify(o))),c?gg(y,o,f):y={...y,...o},Em(this.data,g,y),h.silent||this.emit("added",i,s,o)}removeResourceBundle(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}hasResourceBundle(i,s){return this.getResource(i,s)!==void 0}getResourceBundle(i,s){return s||(s=this.options.defaultNS),this.getResource(i,s)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const s=this.getDataByLanguage(i);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var pg={processors:{},addPostProcessor(l){this.processors[l.name]=l},handle(l,i,s,o,c){return l.forEach(f=>{var h;i=((h=this.processors[f])==null?void 0:h.process(i,s,o,c))??i}),i}};const yg=Symbol("i18next/PATH_KEY");function Ab(){const l=[],i=Object.create(null);let s;return i.get=(o,c)=>{var f;return(f=s==null?void 0:s.revoke)==null||f.call(s),c===yg?l:(l.push(c),s=Proxy.revocable(o,i),s.proxy)},Proxy.revocable(Object.create(null),i).proxy}function Fn(l,i){const{[yg]:s}=l(Ab()),o=(i==null?void 0:i.keySeparator)??".",c=(i==null?void 0:i.nsSeparator)??":";if(s.length>1&&c){const f=i==null?void 0:i.ns,h=Array.isArray(f)?f:null;if(h&&h.length>1&&h.slice(1).includes(s[0]))return`${s[0]}${c}${s.slice(1).join(o)}`}return s.join(o)}const Rm={},yo=l=>!te(l)&&typeof l!="boolean"&&typeof l!="number";class wu extends qu{constructor(i,s={}){super(),gb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Jt.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const o={...s};if(i==null)return!1;const c=this.resolve(i,o);if((c==null?void 0:c.res)===void 0)return!1;const f=yo(c.res);return!(o.returnObjects===!1&&f)}extractFromKey(i,s){let o=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let f=s.ns||this.options.defaultNS||[];const h=o&&i.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!Rb(i,o,c);if(h&&!g){const y=i.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:i,namespaces:te(f)?[f]:f};const m=i.split(o);(o!==c||o===c&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),i=m.join(c)}return{key:i,namespaces:te(f)?[f]:f}}translate(i,s,o){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),i==null)return"";typeof i=="function"&&(i=Fn(i,{...this.options,...c})),Array.isArray(i)||(i=[String(i)]),i=i.map(Ce=>typeof Ce=="function"?Fn(Ce,{...this.options,...c}):String(Ce));const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:g,namespaces:y}=this.extractFromKey(i[i.length-1],c),m=y[y.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=c.lng||this.language,O=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return O?f?{res:`${m}${b}${g}`,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(c)}:`${m}${b}${g}`:f?{res:g,usedKey:g,exactUsedKey:g,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(c)}:g;const N=this.resolve(i,c);let A=N==null?void 0:N.res;const H=(N==null?void 0:N.usedKey)||g,k=(N==null?void 0:N.exactUsedKey)||g,Y=["[object Number]","[object Function]","[object RegExp]"],q=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,$=c.count!==void 0&&!te(c.count),ee=wu.hasDefaultValue(c),se=$?this.pluralResolver.getSuffix(v,c.count,c):"",J=c.ordinal&&$?this.pluralResolver.getSuffix(v,c.count,{ordinal:!1}):"",ne=$&&!c.ordinal&&c.count===0,re=ne&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${se}`]||c[`defaultValue${J}`]||c.defaultValue;let de=A;K&&!A&&ee&&(de=re);const Me=yo(de),Je=Object.prototype.toString.apply(de);if(K&&de&&Me&&Y.indexOf(Je)<0&&!(te(q)&&Array.isArray(de))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Ce=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,de,{...c,ns:y}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(N.res=Ce,N.usedParams=this.getUsedParamsDetails(c),N):Ce}if(h){const Ce=Array.isArray(de),De=Ce?[]:{},we=Ce?k:H;for(const D in de)if(Object.prototype.hasOwnProperty.call(de,D)){const V=`${we}${h}${D}`;ee&&!A?De[D]=this.translate(V,{...c,defaultValue:yo(re)?re[D]:void 0,joinArrays:!1,ns:y}):De[D]=this.translate(V,{...c,joinArrays:!1,ns:y}),De[D]===V&&(De[D]=de[D])}A=De}}else if(K&&te(q)&&Array.isArray(A))A=A.join(q),A&&(A=this.extendTranslation(A,i,c,o));else{let Ce=!1,De=!1;!this.isValidLookup(A)&&ee&&(Ce=!0,A=re),this.isValidLookup(A)||(De=!0,A=g);const D=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&De?void 0:A,V=ee&&re!==A&&this.options.updateMissing;if(De||Ce||V){if(this.logger.log(V?"updateKey":"missingKey",v,m,g,V?re:A),h){const x=this.resolve(g,{...c,keySeparator:!1});x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let x=0;x<pe.length;x++)I.push(pe[x]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(c.lng||this.language):I.push(c.lng||this.language);const Se=(x,w,G)=>{var ae;const Q=ee&&G!==A?G:D;this.options.missingKeyHandler?this.options.missingKeyHandler(x,m,w,Q,V,c):(ae=this.backendConnector)!=null&&ae.saveMissing&&this.backendConnector.saveMissing(x,m,w,Q,V,c),this.emit("missingKey",x,m,w,A)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?I.forEach(x=>{const w=this.pluralResolver.getSuffixes(x,c);ne&&c[`defaultValue${this.options.pluralSeparator}zero`]&&w.indexOf(`${this.options.pluralSeparator}zero`)<0&&w.push(`${this.options.pluralSeparator}zero`),w.forEach(G=>{Se([x],g+G,c[`defaultValue${G}`]||re)})}):Se(I,g,re))}A=this.extendTranslation(A,i,c,N,o),De&&A===g&&this.options.appendNamespaceToMissingKey&&(A=`${m}${b}${g}`),(De||Ce)&&this.options.parseMissingKeyHandler&&(A=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${g}`:g,Ce?A:void 0,c))}return f?(N.res=A,N.usedParams=this.getUsedParamsDetails(c),N):A}extendTranslation(i,s,o,c,f){var y,m;if((y=this.i18nFormat)!=null&&y.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const b=te(i)&&(((m=o==null?void 0:o.interpolation)==null?void 0:m.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const N=i.match(this.interpolator.nestingRegexp);v=N&&N.length}let O=o.replace&&!te(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(O={...this.options.interpolation.defaultVariables,...O}),i=this.interpolator.interpolate(i,O,o.lng||this.language||c.usedLng,o),b){const N=i.match(this.interpolator.nestingRegexp),A=N&&N.length;v<A&&(o.nest=!1)}!o.lng&&c&&c.res&&(o.lng=this.language||c.usedLng),o.nest!==!1&&(i=this.interpolator.nest(i,(...N)=>(f==null?void 0:f[0])===N[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${s[0]}`),null):this.translate(...N,s),o)),o.interpolation&&this.interpolator.reset()}const h=o.postProcess||this.options.postProcess,g=te(h)?[h]:h;return i!=null&&(g!=null&&g.length)&&o.applyPostProcessor!==!1&&(i=pg.handle(g,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),i}resolve(i,s={}){let o,c,f,h,g;return te(i)&&(i=[i]),Array.isArray(i)&&(i=i.map(y=>typeof y=="function"?Fn(y,{...this.options,...s}):y)),i.forEach(y=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(y,s),b=m.key;c=b;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const O=s.count!==void 0&&!te(s.count),N=O&&!s.ordinal&&s.count===0,A=s.context!==void 0&&(te(s.context)||typeof s.context=="number")&&s.context!=="",H=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);v.forEach(k=>{var Y,q;this.isValidLookup(o)||(g=k,!Rm[`${H[0]}-${k}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((q=this.utils)!=null&&q.hasLoadedNamespace(g))&&(Rm[`${H[0]}-${k}`]=!0,this.logger.warn(`key "${c}" for languages "${H.join(", ")}" won't get resolved as namespace "${g}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),H.forEach(K=>{var se;if(this.isValidLookup(o))return;h=K;const $=[b];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys($,b,K,k,s);else{let J;O&&(J=this.pluralResolver.getSuffix(K,s.count,s));const ne=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(O&&(s.ordinal&&J.indexOf(re)===0&&$.push(b+J.replace(re,this.options.pluralSeparator)),$.push(b+J),N&&$.push(b+ne)),A){const de=`${b}${this.options.contextSeparator||"_"}${s.context}`;$.push(de),O&&(s.ordinal&&J.indexOf(re)===0&&$.push(de+J.replace(re,this.options.pluralSeparator)),$.push(de+J),N&&$.push(de+ne))}}let ee;for(;ee=$.pop();)this.isValidLookup(o)||(f=ee,o=this.getResource(K,k,ee,s))}))})}),{res:o,usedKey:c,exactUsedKey:f,usedLng:h,usedNS:g}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,s,o,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(i,s,o,c):this.resourceStore.getResource(i,s,o,c)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=i.replace&&!te(i.replace);let c=o?i.replace:i;if(o&&typeof i.count<"u"&&(c.count=i.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!o){c={...c};for(const f of s)delete c[f]}return c}static hasDefaultValue(i){const s="defaultValue";for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&s===o.substring(0,s.length)&&i[o]!==void 0)return!0;return!1}}class Om{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Jt.create("languageUtils")}getScriptPartFromCode(i){if(i=ni(i),!i||i.indexOf("-")<0)return null;const s=i.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(i){if(i=ni(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(te(i)&&i.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(i)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let s;return i.forEach(o=>{if(s)return;const c=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&i.forEach(o=>{if(s)return;const c=this.getScriptPartFromCode(o);if(this.isSupportedCode(c))return s=c;const f=this.getLanguagePartFromCode(o);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(h=>{if(h===f)return h;if(!(h.indexOf("-")<0&&f.indexOf("-")<0)&&(h.indexOf("-")>0&&f.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===f||h.indexOf(f)===0&&f.length>1))return h})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(i,s){if(!i)return[];if(typeof i=="function"&&(i=i(s)),te(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let o=i[s];return o||(o=i[this.getScriptPartFromCode(s)]),o||(o=i[this.formatLanguageCode(s)]),o||(o=i[this.getLanguagePartFromCode(s)]),o||(o=i.default),o||[]}toResolveHierarchy(i,s){const o=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],i),c=[],f=h=>{h&&(this.isSupportedCode(h)?c.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return te(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):te(i)&&f(this.formatLanguageCode(i)),o.forEach(h=>{c.indexOf(h)<0&&f(this.formatLanguageCode(h))}),c}}const Am={zero:0,one:1,two:2,few:3,many:4,other:5},_m={select:l=>l===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class _b{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=Jt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const o=ni(i==="dev"?"en":i),c=s.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:o,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(o,{type:c})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),_m;if(!i.match(/-|_/))return _m;const y=this.languageUtils.getLanguagePartFromCode(i);h=this.getRule(y,s)}return this.pluralRulesCache[f]=h,h}needsPlural(i,s={}){let o=this.getRule(i,s);return o||(o=this.getRule("dev",s)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,s,o={}){return this.getSuffixes(i,o).map(c=>`${s}${c}`)}getSuffixes(i,s={}){let o=this.getRule(i,s);return o||(o=this.getRule("dev",s)),o?o.resolvedOptions().pluralCategories.sort((c,f)=>Am[c]-Am[f]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(i,s,o={}){const c=this.getRule(i,o);return c?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,o))}}const Cm=(l,i,s,o=".",c=!0)=>{let f=vb(l,i,s);return!f&&c&&te(s)&&(f=_o(l,s,o),f===void 0&&(f=_o(i,s,o))),f},vo=l=>l.replace(/\$/g,"$$$$");class zm{constructor(i={}){var s;this.logger=Jt.create("interpolator"),this.options=i,this.format=((s=i==null?void 0:i.interpolation)==null?void 0:s.format)||(o=>o),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:o,useRawValueToEscape:c,prefix:f,prefixEscaped:h,suffix:g,suffixEscaped:y,formatSeparator:m,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:O,nestingPrefixEscaped:N,nestingSuffix:A,nestingSuffixEscaped:H,nestingOptionsSeparator:k,maxReplaces:Y,alwaysFormat:q}=i.interpolation;this.escape=s!==void 0?s:Sb,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?un(f):h||"{{",this.suffix=g?un(g):y||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=O?un(O):N||un("$t("),this.nestingSuffix=A?un(A):H||un(")"),this.nestingOptionsSeparator=k||",",this.maxReplaces=Y||1e3,this.alwaysFormat=q!==void 0?q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,o)=>(s==null?void 0:s.source)===o?(s.lastIndex=0,s):new RegExp(o,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,s,o,c){var N;let f,h,g;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=A=>{if(A.indexOf(this.formatSeparator)<0){const q=Cm(s,y,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(q,void 0,o,{...c,...s,interpolationkey:A}):q}const H=A.split(this.formatSeparator),k=H.shift().trim(),Y=H.join(this.formatSeparator).trim();return this.format(Cm(s,y,k,this.options.keySeparator,this.options.ignoreJSONStructure),Y,o,{...c,...s,interpolationkey:k})};this.resetRegExp();const b=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((N=c==null?void 0:c.interpolation)==null?void 0:N.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:A=>vo(A)},{regex:this.regexp,safeValue:A=>this.escapeValue?vo(this.escape(A)):vo(A)}].forEach(A=>{for(g=0;f=A.regex.exec(i);){const H=f[1].trim();if(h=m(H),h===void 0)if(typeof b=="function"){const Y=b(i,f,c);h=te(Y)?Y:""}else if(c&&Object.prototype.hasOwnProperty.call(c,H))h="";else if(v){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${H} for interpolating ${i}`),h="";else!te(h)&&!this.useRawValueToEscape&&(h=bm(h));const k=A.safeValue(h);if(i=i.replace(f[0],k),v?(A.regex.lastIndex+=h.length,A.regex.lastIndex-=f[0].length):A.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),i}nest(i,s,o={}){let c,f,h;const g=(y,m)=>{const b=this.nestingOptionsSeparator;if(y.indexOf(b)<0)return y;const v=y.split(new RegExp(`${un(b)}[ ]*{`));let O=`{${v[1]}`;y=v[0],O=this.interpolate(O,h);const N=O.match(/'/g),A=O.match(/"/g);(((N==null?void 0:N.length)??0)%2===0&&!A||((A==null?void 0:A.length)??0)%2!==0)&&(O=O.replace(/'/g,'"'));try{h=JSON.parse(O),m&&(h={...m,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,H),`${y}${b}${O}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,y};for(;c=this.nestingRegexp.exec(i);){let y=[];h={...o},h=h.replace&&!te(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const m=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(m!==-1&&(y=c[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,m)),f=s(g.call(this,c[1].trim(),h),h),f&&c[0]===i&&!te(f))return f;te(f)||(f=bm(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${i}`),f=""),y.length&&(f=y.reduce((b,v)=>this.format(b,v,o.lng,{...o,interpolationkey:c[1].trim()}),f.trim())),i=i.replace(c[0],f),this.regexp.lastIndex=0}return i}}const Cb=l=>{let i=l.toLowerCase().trim();const s={};if(l.indexOf("(")>-1){const o=l.split("(");i=o[0].toLowerCase().trim();const c=o[1].substring(0,o[1].length-1);i==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):i==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(h=>{if(h){const[g,...y]=h.split(":"),m=y.join(":").trim().replace(/^'+|'+$/g,""),b=g.trim();s[b]||(s[b]=m),m==="false"&&(s[b]=!1),m==="true"&&(s[b]=!0),isNaN(m)||(s[b]=parseInt(m,10))}})}return{formatName:i,formatOptions:s}},Nm=l=>{const i={};return(s,o,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const h=o+JSON.stringify(f);let g=i[h];return g||(g=l(ni(o),c),i[h]=g),g(s)}},zb=l=>(i,s,o)=>l(ni(s),o)(i);class Nb{constructor(i={}){this.logger=Jt.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const o=s.cacheInBuiltFormats?Nm:zb;this.formats={number:o((c,f)=>{const h=new Intl.NumberFormat(c,{...f});return g=>h.format(g)}),currency:o((c,f)=>{const h=new Intl.NumberFormat(c,{...f,style:"currency"});return g=>h.format(g)}),datetime:o((c,f)=>{const h=new Intl.DateTimeFormat(c,{...f});return g=>h.format(g)}),relativetime:o((c,f)=>{const h=new Intl.RelativeTimeFormat(c,{...f});return g=>h.format(g,f.range||"day")}),list:o((c,f)=>{const h=new Intl.ListFormat(c,{...f});return g=>h.format(g)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=Nm(s)}format(i,s,o,c={}){const f=s.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(g=>g.indexOf(")")>-1)){const g=f.findIndex(y=>y.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,y)=>{var v;const{formatName:m,formatOptions:b}=Cb(y);if(this.formats[m]){let O=g;try{const N=((v=c==null?void 0:c.formatParams)==null?void 0:v[c.interpolationkey])||{},A=N.locale||N.lng||c.locale||c.lng||o;O=this.formats[m](g,A,{...b,...c,...N})}catch(N){this.logger.warn(N)}return O}else this.logger.warn(`there was no format function for ${m}`);return g},i)}}const Mb=(l,i)=>{l.pending[i]!==void 0&&(delete l.pending[i],l.pendingCount--)};class Db extends qu{constructor(i,s,o,c={}){var f,h;super(),this.backend=i,this.store=s,this.services=o,this.languageUtils=o.languageUtils,this.options=c,this.logger=Jt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(h=(f=this.backend)==null?void 0:f.init)==null||h.call(f,o,c.backend,c)}queueLoad(i,s,o,c){const f={},h={},g={},y={};return i.forEach(m=>{let b=!0;s.forEach(v=>{const O=`${m}|${v}`;!o.reload&&this.store.hasResourceBundle(m,v)?this.state[O]=2:this.state[O]<0||(this.state[O]===1?h[O]===void 0&&(h[O]=!0):(this.state[O]=1,b=!1,h[O]===void 0&&(h[O]=!0),f[O]===void 0&&(f[O]=!0),y[v]===void 0&&(y[v]=!0)))}),b||(g[m]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(g),toLoadNamespaces:Object.keys(y)}}loaded(i,s,o){const c=i.split("|"),f=c[0],h=c[1];s&&this.emit("failedLoading",f,h,s),!s&&o&&this.store.addResourceBundle(f,h,o,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&o&&(this.state[i]=0);const g={};this.queue.forEach(y=>{yb(y.loaded,[f],h),Mb(y,i),s&&y.errors.push(s),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(m=>{g[m]||(g[m]={});const b=y.loaded[m];b.length&&b.forEach(v=>{g[m][v]===void 0&&(g[m][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(y=>!y.done)}read(i,s,o,c=0,f=this.retryTimeout,h){if(!i.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:o,tried:c,wait:f,callback:h});return}this.readingCalls++;const g=(m,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&b&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,i,s,o,c+1,f*2,h)},f);return}h(m,b)},y=this.backend[o].bind(this.backend);if(y.length===2){try{const m=y(i,s);m&&typeof m.then=="function"?m.then(b=>g(null,b)).catch(g):g(null,m)}catch(m){g(m)}return}return y(i,s,g)}prepareLoading(i,s,o={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();te(i)&&(i=this.languageUtils.toResolveHierarchy(i)),te(s)&&(s=[s]);const f=this.queueLoad(i,s,o,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(i,s,o){this.prepareLoading(i,s,{},o)}reload(i,s,o){this.prepareLoading(i,s,{reload:!0},o)}loadOne(i,s=""){const o=i.split("|"),c=o[0],f=o[1];this.read(c,f,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${s}loading namespace ${f} for language ${c} failed`,h),!h&&g&&this.logger.log(`${s}loaded namespace ${f} for language ${c}`,g),this.loaded(i,h,g)})}saveMissing(i,s,o,c,f,h={},g=()=>{}){var y,m,b,v,O;if((m=(y=this.services)==null?void 0:y.utils)!=null&&m.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${o}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if((O=this.backend)!=null&&O.create){const N={...h,isUpdate:f},A=this.backend.create.bind(this.backend);if(A.length<6)try{let H;A.length===5?H=A(i,s,o,c,N):H=A(i,s,o,c),H&&typeof H.then=="function"?H.then(k=>g(null,k)).catch(g):g(null,H)}catch(H){g(H)}else A(i,s,o,c,g,N)}!i||!i[0]||this.store.addResource(i[0],s,o,c)}}}const bo=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:l=>{let i={};if(typeof l[1]=="object"&&(i=l[1]),te(l[1])&&(i.defaultValue=l[1]),te(l[2])&&(i.tDescription=l[2]),typeof l[2]=="object"||typeof l[3]=="object"){const s=l[3]||l[2];Object.keys(s).forEach(o=>{i[o]=s[o]})}return i},interpolation:{escapeValue:!0,format:l=>l,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Mm=l=>{var i,s;return te(l.ns)&&(l.ns=[l.ns]),te(l.fallbackLng)&&(l.fallbackLng=[l.fallbackLng]),te(l.fallbackNS)&&(l.fallbackNS=[l.fallbackNS]),((s=(i=l.supportedLngs)==null?void 0:i.indexOf)==null?void 0:s.call(i,"cimode"))<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),typeof l.initImmediate=="boolean"&&(l.initAsync=l.initImmediate),l},Au=()=>{},Lb=l=>{Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(s=>{typeof l[s]=="function"&&(l[s]=l[s].bind(l))})},vg="__i18next_supportNoticeShown",jb=()=>!!(typeof globalThis<"u"&&globalThis[vg]||typeof process<"u"&&po&&po.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&po),wb=()=>{typeof globalThis<"u"&&(globalThis[vg]=!0)},Ub=l=>{var i,s,o,c,f,h,g,y,m,b,v,O,N;return!!(((o=(s=(i=l==null?void 0:l.modules)==null?void 0:i.backend)==null?void 0:s.name)==null?void 0:o.indexOf("Locize"))>0||((g=(h=(f=(c=l==null?void 0:l.modules)==null?void 0:c.backend)==null?void 0:f.constructor)==null?void 0:h.name)==null?void 0:g.indexOf("Locize"))>0||(m=(y=l==null?void 0:l.options)==null?void 0:y.backend)!=null&&m.backends&&l.options.backend.backends.some(A=>{var H,k,Y;return((H=A==null?void 0:A.name)==null?void 0:H.indexOf("Locize"))>0||((Y=(k=A==null?void 0:A.constructor)==null?void 0:k.name)==null?void 0:Y.indexOf("Locize"))>0})||(v=(b=l==null?void 0:l.options)==null?void 0:b.backend)!=null&&v.projectId||(N=(O=l==null?void 0:l.options)==null?void 0:O.backend)!=null&&N.backendOptions&&l.options.backend.backendOptions.some(A=>A==null?void 0:A.projectId))};class ei extends qu{constructor(i={},s){if(super(),this.options=Mm(i),this.services={},this.logger=Jt,this.modules={external:[]},Lb(this),s&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,s),this;setTimeout(()=>{this.init(i,s)},0)}}init(i={},s){this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(te(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const o=bo();this.options={...o,...this.options,...Mm(i)},this.options.interpolation={...o.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Ub(this)&&!jb()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),wb());const c=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Jt.init(c(this.modules.logger),this.options):Jt.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=Nb;const b=new Om(this.options);this.store=new Tm(this.options.resources,this.options);const v=this.services;v.logger=Jt,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new _b(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),m&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(v.formatter=c(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new zm(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new Db(c(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(N,...A)=>{this.emit(N,...A)}),this.modules.languageDetector&&(v.languageDetector=c(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=c(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new wu(this.services,this.options),this.translator.on("*",(N,...A)=>{this.emit(N,...A)}),this.modules.external.forEach(N=>{N.init&&N.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Au),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...b)=>this.store[m](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...b)=>(this.store[m](...b),this)});const g=Wl(),y=()=>{const m=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),g.resolve(v),s(b,v)};if(this.languages&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),g}loadResources(i,s=Au){var f,h;let o=s;const c=te(i)?i:this.language;if(typeof i=="function"&&(o=i),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const g=[],y=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&g.indexOf(v)<0&&g.push(v)})};c?y(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>y(b)),(h=(f=this.options.preload)==null?void 0:f.forEach)==null||h.call(f,m=>y(m)),this.services.backendConnector.load(g,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(m)})}else o(null)}reloadResources(i,s,o){const c=Wl();return typeof i=="function"&&(o=i,i=void 0),typeof s=="function"&&(o=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),o||(o=Au),this.services.backendConnector.reload(i,s,f=>{c.resolve(),o(f)}),c}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&pg.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let s=0;s<this.languages.length;s++){const o=this.languages[s];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const o=Wl();this.emit("languageChanging",i);const c=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,y)=>{y?this.isLanguageChangingTo===i&&(c(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,o.resolve((...m)=>this.t(...m)),s&&s(g,(...m)=>this.t(...m))},h=g=>{var b,v;!i&&!g&&this.services.languageDetector&&(g=[]);const y=te(g)?g:g&&g[0],m=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(te(g)?[g]:g);m&&(this.language||c(m),this.translator.language||this.translator.changeLanguage(m),(v=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||v.call(b,m)),this.loadResources(m,O=>{f(O,m)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i),o}getFixedT(i,s,o){const c=(f,h,...g)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([f,h].concat(g)):y={...h},y.lng=y.lng||c.lng,y.lngs=y.lngs||c.lngs,y.ns=y.ns||c.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||o||c.keyPrefix);const m={...this.options,...y};typeof y.keyPrefix=="function"&&(y.keyPrefix=Fn(y.keyPrefix,m));const b=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(f)?v=f.map(O=>(typeof O=="function"&&(O=Fn(O,m)),`${y.keyPrefix}${b}${O}`)):(typeof f=="function"&&(f=Fn(f,m)),v=y.keyPrefix?`${y.keyPrefix}${b}${f}`:f),this.t(v,y)};return te(i)?c.lng=i:c.lngs=i,c.ns=s,c.keyPrefix=o,c}t(...i){var s;return(s=this.translator)==null?void 0:s.translate(...i)}exists(...i){var s;return(s=this.translator)==null?void 0:s.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const h=(g,y)=>{const m=this.services.backendConnector.state[`${g}|${y}`];return m===-1||m===0||m===2};if(s.precheck){const g=s.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(o,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(o,i)&&(!c||h(f,i)))}loadNamespaces(i,s){const o=Wl();return this.options.ns?(te(i)&&(i=[i]),i.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{o.resolve(),s&&s(c)}),o):(s&&s(),Promise.resolve())}loadLanguages(i,s){const o=Wl();te(i)&&(i=[i]);const c=this.options.preload||[],f=i.filter(h=>c.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return f.length?(this.options.preload=c.concat(f),this.loadResources(h=>{o.resolve(),s&&s(h)}),o):(s&&s(),Promise.resolve())}dir(i){var c,f;if(i||(i=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const h=new Intl.Locale(i);if(h&&h.getTextInfo){const g=h.getTextInfo();if(g&&g.direction)return g.direction}}catch{}const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=((f=this.services)==null?void 0:f.languageUtils)||new Om(bo());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(o.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){const o=new ei(i,s);return o.createInstance=ei.createInstance,o}cloneInstance(i={},s=Au){const o=i.forkResourceStore;o&&delete i.forkResourceStore;const c={...this.options,...i,isClone:!0},f=new ei(c);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(g=>{f[g]=this[g]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},o){const g=Object.keys(this.store.data).reduce((y,m)=>(y[m]={...this.store.data[m]},y[m]=Object.keys(y[m]).reduce((b,v)=>(b[v]={...y[m][v]},b),y[m]),y),{});f.store=new Tm(g,c),f.services.resourceStore=f.store}if(i.interpolation){const y={...bo().interpolation,...this.options.interpolation,...i.interpolation},m={...c,interpolation:y};f.services.interpolator=new zm(m)}return f.translator=new wu(f.services,c),f.translator.on("*",(g,...y)=>{f.emit(g,...y)}),f.init(c,s),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Ze=ei.createInstance();Ze.createInstance;Ze.dir;Ze.init;Ze.loadResources;Ze.reloadResources;Ze.use;Ze.changeLanguage;Ze.getFixedT;Ze.t;Ze.exists;Ze.setDefaultNamespace;Ze.hasLoadedNamespace;Ze.loadNamespaces;Ze.loadLanguages;const ti="en",bg={en:()=>gt(()=>import("./en-CmAr_0e6.js"),[],import.meta.url),zh:()=>gt(()=>import("./zh-CcJ9vBZj.js"),[],import.meta.url),"zh-TW":()=>gt(()=>import("./zh-TW-elI72AC1.js"),[],import.meta.url),ja:()=>gt(()=>import("./ja-DtvtBRTW.js"),[],import.meta.url),es:()=>gt(()=>import("./es-Cs9x52ca.js"),[],import.meta.url)},Nu={};function Dm(l){return l in bg}function Sg(l){if(Dm(l))return l;const i=l.split("-")[0];return Dm(i)?i:ti}function Hb(){const l=localStorage.getItem("cc_lang");return Sg(l||navigator.language||ti)}async function Co(l){if(Nu[l])return;const i=await bg[l]();Nu[l]=i.default,Ze.isInitialized&&Ze.addResourceBundle(l,"translation",Nu[l],!0,!0)}async function Bb(){const l=Hb();await Promise.all([Co(ti),l===ti?Promise.resolve():Co(l)]),Ze.isInitialized||await Ze.use(B1).init({lng:l,fallbackLng:ti,resources:Object.fromEntries(Object.entries(Nu).map(([i,s])=>[i,{translation:s}])),interpolation:{escapeValue:!1}})}async function kb(l){const i=Sg(l);await Co(i),await Ze.changeLanguage(i),localStorage.setItem("cc_lang",i)}const Lm=[{code:"en",label:"English"},{code:"zh",label:"中文"},{code:"zh-TW",label:"繁體中文"},{code:"ja",label:"日本語"},{code:"es",label:"Español"}],Yb=[{label:"Core",ids:["dashboard","chat","workspace","projects","sessions"]},{label:"Knowledge",ids:["knowledge","cron","monitors"]},{label:"System",ids:["system"]}];function qb(){var Y;const{pathname:l}=Ct(),{t:i,i18n:s}=G1(),{theme:o,setTheme:c}=mg(),f=Vo(),[h,g]=T.useState(!1),[y,m]=T.useState(!1),b=q=>{kb(q),m(!1)},v={light:wy,dark:Ny,system:Cy},O={light:"dark",dark:"system",system:"light"},N=v[o],A=Yu.listNavItems().filter(q=>{var K;return((K=q.visible)==null?void 0:K.call(q,{features:f}))??!0}),H=A.map(q=>{var ee;const K=q.icon,$=((ee=q.resolveLabelKey)==null?void 0:ee.call(q,{features:f}))||q.labelKey;return{...q,Icon:K,labelKey:$}}),k=l.startsWith("/chat");return j.jsxs(j.Fragment,{children:[j.jsxs("aside",{className:at("relative hidden h-[100dvh] flex-col overflow-hidden border-r transition-all duration-300 ease-out md:flex","border-white/55 bg-white/24 shadow-[inset_-1px_0_0_rgba(255,255,255,0.36)] backdrop-blur-[34px] supports-[backdrop-filter]:bg-white/18","dark:border-white/[0.10] dark:bg-[#1c1c1e]/34 dark:shadow-[inset_-1px_0_0_rgba(255,255,255,0.08)] dark:supports-[backdrop-filter]:bg-[#1c1c1e]/26",h?"w-16":"w-56"),children:[j.jsx("div",{className:"pointer-events-none absolute inset-0 bg-[linear-gradient(180deg,rgba(255,255,255,0.55),rgba(255,255,255,0.18)_48%,rgba(255,255,255,0.08))] dark:bg-[linear-gradient(180deg,rgba(255,255,255,0.08),rgba(255,255,255,0.025)_52%,rgba(255,255,255,0.015))]","aria-hidden":"true"}),j.jsx("div",{className:at("relative flex h-[5.25rem] items-center gap-3 px-4 pt-7 transition-colors"),children:j.jsx(mb,{showWordmark:!h})}),j.jsx("nav",{className:"relative flex-1 py-3 space-y-4 px-2 overflow-y-auto",children:Yb.map(q=>{const K=A.filter($=>q.ids.includes($.id));return K.length===0?null:j.jsxs("div",{className:"space-y-1",children:[!h&&j.jsx("p",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:q.label}),K.map($=>{var J;const ee=$.icon,se=((J=$.resolveLabelKey)==null?void 0:J.call($,{features:f}))||$.labelKey;return j.jsxs(To,{to:$.path,end:$.end,className:({isActive:ne})=>at("flex items-center gap-3 px-3 py-2 rounded-lg text-sm font-medium transition-colors duration-200","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",ne?"bg-black/[0.07] text-foreground dark:bg-white/[0.10]":"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]"),children:[j.jsx(ee,{size:18,className:"shrink-0"}),!h&&j.jsx("span",{children:i(se)})]},$.id)})]},q.label)})}),j.jsxs("div",{className:at("relative border-t p-2 space-y-1","border-black/10 dark:border-white/[0.08]"),children:[!h&&j.jsxs("div",{className:"px-3 pb-1 pt-0.5 text-[11px] font-medium text-muted-foreground/75",children:["AgentDock v","0.1.57"]}),j.jsxs("div",{className:"relative",children:[j.jsxs("button",{type:"button",onClick:()=>m(!y),className:at("flex items-center gap-3 w-full px-3 py-2 rounded-lg text-sm transition-colors duration-200","text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[j.jsx(vy,{size:18,className:"shrink-0"}),!h&&j.jsx("span",{children:((Y=Lm.find(q=>q.code===s.language))==null?void 0:Y.label)||"English"})]}),y&&j.jsx("div",{className:at("absolute bottom-full left-0 mb-1 w-48 rounded-xl py-1 z-50 overflow-hidden","border border-black/10 bg-white/90 text-popover-foreground shadow-[0_18px_40px_rgba(0,0,0,0.12)] backdrop-blur-2xl","dark:border-white/[0.08] dark:bg-[#2c2c2e]/90"),children:Lm.map(q=>j.jsx("button",{type:"button",onClick:()=>b(q.code),className:at("w-full text-left px-3 py-2 text-sm transition-colors duration-150",s.language===q.code?"text-primary font-medium bg-primary/10":"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]"),children:q.label},q.code))})]}),j.jsxs("button",{type:"button",onClick:()=>c(O[o]),className:at("flex items-center gap-3 w-full px-3 py-2 rounded-lg text-sm transition-colors duration-200","text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[j.jsx(N,{size:18,className:"shrink-0"}),!h&&j.jsx("span",{children:i(`theme.${o}`)})]}),j.jsx("button",{type:"button",onClick:()=>g(!h),className:at("flex items-center justify-center w-full px-3 py-2 rounded-lg transition-colors duration-200","text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:h?j.jsx(dy,{size:18}):j.jsx(cy,{size:18})})]})]}),k?null:j.jsx("nav",{className:at("fixed inset-x-0 bottom-0 z-50 border-t px-2 pb-[max(env(safe-area-inset-bottom),0.5rem)] pt-2 md:hidden","border-black/10 bg-white/88 shadow-[0_-12px_32px_rgba(15,23,42,0.10)] backdrop-blur-2xl","dark:border-white/[0.08] dark:bg-[#111113]/88 dark:shadow-[0_-16px_42px_rgba(0,0,0,0.34)]"),"aria-label":"Primary navigation",children:j.jsx("div",{className:"flex items-stretch gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:H.map(({id:q,path:K,end:$,Icon:ee,labelKey:se})=>j.jsxs(To,{to:K,end:$,className:({isActive:J})=>at("flex min-w-[4.5rem] flex-1 flex-col items-center justify-center gap-1 rounded-xl px-2 py-2 text-[11px] font-medium transition-colors","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",J?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]"),children:[j.jsx(ee,{size:18,className:"shrink-0"}),j.jsx("span",{className:"max-w-[4.25rem] truncate",children:i(se)})]},q))})})]})}function Vb(){const{pathname:l}=Ct(),{desktopChat:i}=Vo(),s=l.startsWith("/chat"),o=l.startsWith("/chat")&&i;return j.jsxs("div",{className:at("flex h-[100dvh] overflow-hidden","bg-background/60 backdrop-blur-2xl"),children:[j.jsx("div",{className:"fixed left-0 right-0 top-0 z-50 hidden h-8 [-webkit-app-region:drag] md:block","aria-hidden":"true"}),j.jsx(qb,{}),j.jsx("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0 bg-background/45 backdrop-blur-2xl",children:j.jsx("main",{className:at("flex-1 min-h-0",o?"overflow-hidden":"overflow-y-auto",s?"p-4 pb-4 sm:p-6 sm:pb-6":"p-4 pb-24 sm:p-6 sm:pb-6"),children:j.jsx("div",{className:at(o&&"h-full min-h-0","mx-auto w-full max-w-7xl"),children:j.jsx(Xv,{})})})})]})}function Gb(){return j.jsx("div",{className:"flex min-h-64 items-center justify-center text-sm text-muted-foreground",children:"正在加载…"})}function Kb(){const l=Vo();return j.jsx(T.Suspense,{fallback:j.jsx(Gb,{}),children:j.jsxs(Zv,{children:[j.jsxs(Jn,{element:j.jsx(Vb,{}),children:[Yu.listRoutes().map(i=>i.index?j.jsx(Jn,{index:!0,element:i.element({features:l})},i.id):j.jsx(Jn,{path:i.path,element:i.element({features:l})},i.id)),j.jsx(Jn,{path:"*",element:j.jsx(Wn,{to:"/",replace:!0})})]}),j.jsx(Jn,{path:"*",element:j.jsx(Wn,{to:"/",replace:!0})})]})})}class Xb extends $n.Component{constructor(){super(...arguments);Ru(this,"state",{hasError:!1,errorMessage:""})}static getDerivedStateFromError(s){return{hasError:!0,errorMessage:s instanceof Error?s.message:String(s)}}componentDidCatch(s,o){console.error("App render failed",s,o)}render(){return this.state.hasError?j.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:j.jsxs("div",{className:"max-w-lg w-full rounded-2xl border border-red-200 dark:border-red-900/40 bg-red-50 dark:bg-red-950/20 px-6 py-5",children:[j.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"页面渲染失败"}),j.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400 break-words",children:this.state.errorMessage||"Unknown renderer error"}),j.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-4 inline-flex items-center rounded-lg bg-red-600 px-4 py-2 text-sm font-medium text-white hover:bg-red-700",children:"Reload"})]})}):this.props.children}}function jm(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function xg(...l){return i=>{let s=!1;const o=l.map(c=>{const f=jm(c,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():jm(l[c],null)}}}}function jS(...l){return T.useCallback(xg(...l),l)}var Qb=Symbol.for("react.lazy"),Uu=ay[" use ".trim().toString()];function Zb(l){return typeof l=="object"&&l!==null&&"then"in l}function Eg(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===Qb&&"_payload"in l&&Zb(l._payload)}function Jb(l){const i=Fb(l),s=T.forwardRef((o,c)=>{let{children:f,...h}=o;Eg(f)&&typeof Uu=="function"&&(f=Uu(f._payload));const g=T.Children.toArray(f),y=g.find(Ib);if(y){const m=y.props.children,b=g.map(v=>v===y?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:v);return j.jsx(i,{...h,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return j.jsx(i,{...h,ref:c,children:f})});return s.displayName=`${l}.Slot`,s}var $b=Jb("Slot");function Fb(l){const i=T.forwardRef((s,o)=>{let{children:c,...f}=s;if(Eg(c)&&typeof Uu=="function"&&(c=Uu(c._payload)),T.isValidElement(c)){const h=eS(c),g=Pb(f,c.props);return c.type!==T.Fragment&&(g.ref=o?xg(o,h):h),T.cloneElement(c,g)}return T.Children.count(c)>1?T.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var Wb=Symbol("radix.slottable");function Ib(l){return T.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===Wb}function Pb(l,i){const s={...i};for(const o in i){const c=l[o],f=i[o];/^on[A-Z]/.test(o)?c&&f?s[o]=(...g)=>{const y=f(...g);return c(...g),y}:c&&(s[o]=c):o==="style"?s[o]={...c,...f}:o==="className"&&(s[o]=[c,f].filter(Boolean).join(" "))}return{...l,...s}}function eS(l){var o,c;let i=(o=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:o.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?l.ref:(i=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?l.props.ref:l.props.ref||l.ref)}const tS={default:"bg-primary text-primary-foreground hover:bg-accent-dim",primary:"bg-primary text-primary-foreground hover:bg-accent-dim",secondary:"bg-black/[0.05] text-secondary-foreground hover:bg-black/[0.08] dark:bg-white/[0.08] dark:hover:bg-white/[0.12]",outline:"border border-input bg-background hover:bg-black/[0.04] hover:text-foreground dark:hover:bg-white/[0.06]",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",danger:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]",link:"text-primary underline-offset-4 hover:underline"},aS={default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",md:"h-9 rounded-md px-4 py-2 text-sm",lg:"h-10 rounded-md px-6 text-sm",icon:"h-9 w-9"};function wm({variant:l="primary",size:i="md",className:s,children:o,loading:c,asChild:f,disabled:h,type:g="button",...y}){const m=i==="default"?"md":i,b=f?$b:"button";return j.jsxs(b,{...f?{}:{type:g},className:at("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors duration-200","cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:opacity-50",tS[l],aS[m],s),disabled:h||c,...y,children:[c&&j.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-hidden":!0,children:[j.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),j.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),o]})}const zo="http://127.0.0.1:9831",nS=`${zo}/api/local/v1`,lS=["runtime.updated","runtime.detect.started","runtime.detect.completed","runtime.detect.failed","runtime.status.changed","thread.updated","thread.session.activated","message.created","message.updated","run.updated","scheduler.job.updated","scheduler.run.updated","automation.monitor.updated","automation.monitor.run.updated","presence.updated","stream.updated"];function Tg(l){return(l.trim()||nS).replace(/\/+$/,"")}function it(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)}function X(l,i){return typeof l[i]=="string"}function el(l,i){return typeof l[i]=="boolean"}function Il(l,i){return it(l[i])}function Rg(l){return it(l)&&X(l,"type")&&X(l,"channelId")}function iS(l){if(!it(l))return!1;const i=l.value;return X(l,"metric")&&X(l,"operator")&&(typeof i=="number"||typeof i=="string"||typeof i=="boolean")}function uS(l){return it(l)&&X(l,"id")&&X(l,"workspaceId")&&X(l,"title")&&el(l,"live")&&X(l,"updatedAt")&&X(l,"createdAt")&&typeof l.historyCount=="number"&&X(l,"excerpt")}function rS(l){return it(l)&&X(l,"id")&&X(l,"role")&&X(l,"content")&&X(l,"timestamp")}function sS(l){return it(l)?(l.id===void 0||typeof l.id=="string")&&(l.role===void 0||["user","assistant","system"].includes(l.role))&&(l.content===void 0||typeof l.content=="string")&&(l.timestamp===void 0||typeof l.timestamp=="string"):!1}function oS(l){return it(l)&&X(l,"id")&&X(l,"threadId")&&X(l,"status")&&X(l,"startedAt")&&X(l,"updatedAt")}function cS(l){return it(l)&&X(l,"id")&&X(l,"workspaceId")&&X(l,"platform")&&Rg(l.route)&&X(l,"executionMode")&&X(l,"triggerType")&&X(l,"promptTemplate")&&X(l,"description")&&el(l,"enabled")&&X(l,"concurrencyPolicy")&&X(l,"createdAt")&&X(l,"updatedAt")}function fS(l){return it(l)&&X(l,"id")&&X(l,"jobId")&&X(l,"status")&&X(l,"triggeredAt")}function dS(l){return it(l)&&X(l,"id")&&X(l,"workspaceId")&&X(l,"title")&&X(l,"sourceType")&&Il(l,"sourceConfig")&&iS(l.condition)&&X(l,"promptTemplate")&&X(l,"platform")&&Rg(l.route)&&X(l,"executionMode")&&el(l,"enabled")&&typeof l.cooldownMs=="number"&&X(l,"concurrencyPolicy")&&X(l,"createdAt")&&X(l,"updatedAt")}function hS(l){return it(l)&&X(l,"id")&&X(l,"monitorId")&&X(l,"status")&&X(l,"triggeredAt")}function Um(l){return it(l)&&X(l,"agentType")&&X(l,"runtimeId")&&X(l,"displayName")&&X(l,"status")&&el(l,"installed")&&X(l,"detectedAt")&&X(l,"summary")&&Array.isArray(l.issues)&&Array.isArray(l.recommendedActions)&&X(l,"source")}function mS(l){return it(l)&&l.mode==="desktop"&&X(l,"phase")&&el(l,"pendingRestart")&&Il(l,"service")&&Il(l,"roles")&&Il(l,"settings")&&Il(l,"runtimeConfig")&&Array.isArray(l.logs)&&l.logs.every(i=>typeof i=="string")}function Zn(l){return it(l)&&X(l,"type")}function gS(l){if(!it(l)||!X(l,"type"))return!1;switch(l.type){case"runtime.updated":return mS(l.runtime);case"runtime.detect.started":return X(l,"detectedAt");case"runtime.detect.completed":return X(l,"detectedAt")&&Array.isArray(l.runtimes)&&l.runtimes.every(Um);case"runtime.detect.failed":return X(l,"detectedAt")&&X(l,"error");case"runtime.status.changed":return Um(l.runtime);case"thread.updated":return uS(l.thread);case"thread.session.activated":return X(l,"workspaceId")&&X(l,"threadId")&&X(l,"reason");case"message.created":return X(l,"threadId")&&rS(l.message)&&(l.stream===void 0||Zn(l.stream));case"message.updated":return X(l,"threadId")&&sS(l.message)&&(l.stream===void 0||Zn(l.stream));case"run.updated":return oS(l.run)&&(l.stream===void 0||Zn(l.stream));case"scheduler.job.updated":return cS(l.job);case"scheduler.run.updated":return fS(l.run);case"automation.monitor.updated":return dS(l.monitor);case"automation.monitor.run.updated":return hS(l.run);case"presence.updated":return el(l,"live")&&(l.stream===void 0||Zn(l.stream));case"stream.updated":return Zn(l.stream);case"external.run.snapshot":return it(l.snapshot)&&X(l.snapshot,"runId");case"external.run.stream":return X(l,"runId")&&Zn(l.stream);default:return!1}}function pS(l){return l.type==="stream.updated"||(l.type==="message.created"||l.type==="message.updated"||l.type==="run.updated")&&l.stream?l.stream:null}const _u=new Map;function yS(l,i,s){const o=new Set,c=new Set;let f=null,h=null,g="disconnected";const y=N=>{g=N,c.forEach(A=>{try{A(N)}catch{}})},m=()=>{h!==null&&(i.cancelReconnect(h),h=null)},b=()=>{f==null||f.close(),f=null},v=()=>{m(),b(),s()},O=()=>{if(f||o.size===0&&c.size===0)return;const N=i.eventSourceFactory(`${l}/events`);f=N,N.onopen=()=>{f===N&&y("connected")};const A=H=>{try{const k=JSON.parse(H.data);gS(k)&&o.forEach(Y=>{try{Y(k)}catch{}})}catch{}};lS.forEach(H=>N.addEventListener(H,A)),N.onerror=()=>{f===N&&(b(),y("disconnected"),(o.size>0||c.size>0)&&h===null&&(h=i.scheduleReconnect(()=>{h=null,O()},1e3)))}};return{subscribe(N){const A=H=>N(H);return o.add(A),O(),()=>{o.delete(A)&&o.size===0&&c.size===0&&v()}},subscribeConnectionState(N){if(c.add(N),O(),g==="connected")try{N("connected")}catch{}return()=>{c.delete(N)&&o.size===0&&c.size===0&&v()}}}}function Hm(l,i){const s=_u.get(l);if(s)return s;let o;return o=yS(l,i,()=>{_u.get(l)===o&&_u.delete(l)}),_u.set(l,o),o}function vS(l){const i=Tg(l.baseUrl),s=l.fetchImpl||globalThis.fetch.bind(globalThis),o=l.eventSourceFactory||(b=>new EventSource(b)),c=l.scheduleReconnect||((b,v)=>setTimeout(b,v)),f=l.cancelReconnect||(b=>clearTimeout(b)),h=new Set,g=b=>{const O=Hm(i,{eventSourceFactory:o,scheduleReconnect:c,cancelReconnect:f}).subscribe(b);return h.add(O),()=>{h.delete(O),O()}};return{baseUrl:i,request:async(b,v,O)=>{const N=await s(`${i}${v}`,{method:b,headers:{"Content-Type":"application/json"},body:O===void 0?void 0:JSON.stringify(O)}),A=await N.json();if(!N.ok||!A.ok)throw new Error(A.error||`Local AI Core request failed: ${N.status}`);return A.data},async detect(b=350){var N;const v=new AbortController,O=setTimeout(()=>v.abort(),b);try{const A=await s(`${i}/health`,{signal:v.signal}),H=await A.json();return A.ok&&H.ok&&((N=H.data)==null?void 0:N.name)==="local-ai-core"}catch{return!1}finally{clearTimeout(O)}},events:{subscribe:g,subscribeConnectionState:b=>{const O=Hm(i,{eventSourceFactory:o,scheduleReconnect:c,cancelReconnect:f}).subscribeConnectionState(b);return h.add(O),()=>{h.delete(O),O()}},subscribeRuntime(b){return g(v=>{v.type==="runtime.updated"&&b(v.runtime)})},subscribeBridge(b){return g(v=>{const O=pS(v);O&&b(O)})},close(){const b=Array.from(h);h.clear(),b.forEach(v=>v())}}}}const No=Tg("/api/local/v1");No.endsWith("/api/local/v1")&&No.slice(0,-13);const Og=vS({baseUrl:No});function qe(l,i,s){return Og.request(l,i,s)}function Ag(l){const i=Object.entries(l).filter(([,o])=>o!==void 0&&o!=="");if(i.length===0)return"";const s=new URLSearchParams;for(const[o,c]of i)s.set(o,String(c));return`?${s.toString()}`}function bS(l){return Og.events.subscribe(l)}function SS(){return qe("GET","/runtime")}function wS(){return qe("POST","/runtime/service/start")}function US(){return qe("POST","/runtime/service/restart")}function xS(l){const i=Ag({limit:l});return qe("GET",`/runtime/logs${i}`)}function HS(l="sys",i=200){const s=Ag({level:l,limit:i});return qe("GET",`/logs${s}`)}function BS(){return qe("GET","/runtime/agent-runtimes")}function kS(){return qe("POST","/runtimes/refresh")}function YS(){return qe("GET","/diagnostics/errors")}function qS(){return qe("POST","/diagnostics/doctor")}function VS(){return qe("GET","/runtime/runtime-config")}function GS(l){return qe("POST","/runtime/runtime-config",{config:l})}function KS(l){return qe("POST","/runtime/settings",l)}function XS(){return qe("GET","/providers")}function QS(l){return qe("POST","/providers",l)}function ZS(l,i){return qe("PUT",`/providers/${encodeURIComponent(l)}`,i)}function JS(l){return qe("DELETE",`/providers/${encodeURIComponent(l)}`)}function $S(l={}){const i=new URLSearchParams;l.workspaceId&&i.set("workspace_id",l.workspaceId),l.runtimeId&&i.set("runtime_id",l.runtimeId),l.status&&i.set("status",Array.isArray(l.status)?l.status.join(","):l.status),l.limit&&i.set("limit",String(l.limit));const s=i.toString()?`?${i.toString()}`:"";return qe("GET",`/tasks${s}`)}function FS(l={}){const i=new URLSearchParams;l.workspaceId&&i.set("workspace_id",l.workspaceId),l.taskId&&i.set("task_id",l.taskId),l.status&&i.set("status",Array.isArray(l.status)?l.status.join(","):l.status),l.limit&&i.set("limit",String(l.limit));const s=i.toString()?`?${i.toString()}`:"";return qe("GET",`/approvals${s}`)}function WS(l={}){const i=new URLSearchParams;l.workspaceId&&i.set("workspace_id",l.workspaceId),l.taskId&&i.set("task_id",l.taskId),l.approvalId&&i.set("approval_id",l.approvalId),l.type&&i.set("type",Array.isArray(l.type)?l.type.join(","):l.type),l.limit&&i.set("limit",String(l.limit));const s=i.toString()?`?${i.toString()}`:"";return qe("GET",`/audit-events${s}`)}function Bm(){return qe("GET","/capabilities/snapshot")}function IS(){return qe("GET","/plugins/diagnostics")}function ES(l){return bS(i=>{i.type==="runtime.updated"&&l(i.runtime)})}const km=20,TS=500;function RS(l){return new Promise(i=>window.setTimeout(i,l))}function OS(){const l=window.navigator.userAgent.toLowerCase().includes("windows")?"windows":window.navigator.userAgent.toLowerCase().includes("mac os x")?"macos":window.navigator.userAgent.toLowerCase().includes("linux")?"linux":"unknown";document.documentElement.classList.add(`platform-${l}`)}function AS(){return j.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:j.jsxs("div",{className:"flex items-center gap-3 rounded-2xl border border-gray-200 dark:border-white/[0.08] bg-white dark:bg-gray-900 px-5 py-4 text-sm text-gray-600 dark:text-gray-300 shadow-sm",children:[j.jsx(Vm,{size:16,className:"animate-spin"}),"正在初始化 AgentDock 运行时…"]})})}function _S({message:l,logs:i,onRetry:s}){return j.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:j.jsxs("div",{className:"max-w-2xl w-full rounded-3xl border border-red-200 dark:border-red-900/40 bg-white dark:bg-gray-900 shadow-sm overflow-hidden",children:[j.jsx("div",{className:"px-6 py-5 border-b border-red-100 dark:border-red-900/30 bg-red-50/80 dark:bg-red-950/20",children:j.jsxs("div",{className:"flex items-start gap-3",children:[j.jsx("div",{className:"w-10 h-10 rounded-2xl bg-red-100 dark:bg-red-950/40 text-red-600 dark:text-red-300 flex items-center justify-center shrink-0",children:j.jsx(Hy,{size:18})}),j.jsxs("div",{children:[j.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"AgentDock 运行时初始化失败"}),j.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400 break-words",children:l})]})]})}),j.jsxs("div",{className:"px-6 py-5 space-y-4",children:[j.jsxs("div",{className:"rounded-2xl border border-gray-200 dark:border-white/[0.08] px-4 py-3 text-sm text-gray-600 dark:text-gray-300",children:[j.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:"What we can do next"}),j.jsx("p",{className:"mt-1",children:"请先重试本地运行时初始化。如果仍然失败,请检查下方运行时日志,并确认 Local AI Core 配置文件路径与运行环境是否正确。"})]}),i.length>0&&j.jsxs("div",{className:"rounded-2xl border border-gray-200 dark:border-white/[0.08] bg-gray-50 dark:bg-gray-950/40 px-4 py-3",children:[j.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"最近的桌面日志"}),j.jsx("pre",{className:"mt-2 max-h-64 overflow-auto whitespace-pre-wrap break-words text-xs text-gray-600 dark:text-gray-300 font-mono",children:i.join(`
|
|
167
|
+
`)})]}),j.jsxs("div",{className:"flex gap-3",children:[j.jsxs(wm,{onClick:s,children:[j.jsx(Vm,{size:14})," 重试初始化"]}),j.jsx(wm,{variant:"secondary",onClick:()=>window.location.reload(),children:"重新加载应用"})]})]})]})})}function CS(){const[l,i]=T.useState({status:"loading"}),s=T.useCallback(async()=>{i({status:"loading"});try{let o=null;for(let c=0;c<km;c+=1)try{await SS(),o=null;break}catch(f){o=f,c<km-1&&await RS(TS)}if(o)throw o;hm(await Bm())}catch(o){let c=[];try{c=await xS(80)}catch{c=[]}i({status:"error",message:o instanceof Error?o.message:String(o),logs:c});return}i({status:"ready"})},[]);return T.useEffect(()=>{s()},[s]),T.useEffect(()=>ES(()=>{Bm().then(o=>hm(o)).catch(()=>{})}),[]),l.status==="loading"?j.jsx(AS,{}):l.status==="error"?j.jsx(_S,{message:l.message,logs:l.logs,onRetry:()=>void s()}):j.jsx(v1,{children:j.jsx(Kb,{})})}async function zS(){OS(),await Bb(),mg.getState().init(),Zy.createRoot(document.getElementById("root")).render(j.jsx(Xb,{children:j.jsx(CS,{})}))}zS();export{Ag as A,wm as B,dy as C,my as D,DS as E,py as F,sy as G,IS as H,YS as I,US as J,KS as K,rg as L,Ry as M,qS as N,HS as O,jS as P,Ey as Q,Vm as R,Ly as S,Hy as T,Gy as U,ay as V,ky as W,xg as X,tg as Y,No as Z,gt as _,Vo as a,$S as b,nt as c,FS as d,WS as e,kS as f,at as g,Ym as h,wS as i,j,SS as k,BS as l,MS as m,$n as n,ES as o,VS as p,XS as q,T as r,bS as s,LS as t,G1 as u,GS as v,QS as w,ZS as x,JS as y,qe as z};
|