@kafca/agentdock 0.1.22 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +4 -0
  2. package/dist/renderer/assets/{Badge-B_rgzxYO.js → Badge-CXcUMqb-.js} +1 -1
  3. package/dist/renderer/assets/{Chat-CYtp6m7T.js → Chat-BRxdPzi-.js} +1 -1
  4. package/dist/renderer/assets/{ChatMarkdown-DOBMwa9d.js → ChatMarkdown-sWGBIfIb.js} +1 -1
  5. package/dist/renderer/assets/{Config-DppMSPHF.js → Config-DqxuxIGg.js} +1 -1
  6. package/dist/renderer/assets/{CronList-BDtB1SuA.js → CronList-OgHxbti5.js} +1 -1
  7. package/dist/renderer/assets/{Dashboard-iFlRnd7Y.js → Dashboard-DmklXiH1.js} +2 -2
  8. package/dist/renderer/assets/{EmptyState-bKDt_T88.js → EmptyState-BvDmi8dq.js} +1 -1
  9. package/dist/renderer/assets/{KnowledgeDetail-CKPhKPIg.js → KnowledgeDetail-Bj59Hdpo.js} +2 -2
  10. package/dist/renderer/assets/{KnowledgeHome-CFeJre6i.js → KnowledgeHome-CigQ-nSo.js} +3 -3
  11. package/dist/renderer/assets/{Logs-CyxSVOFK.js → Logs-Bfc7gBpY.js} +1 -1
  12. package/dist/renderer/assets/{Modal-CxPnk1Ey.js → Modal-CfmiFknz.js} +1 -1
  13. package/dist/renderer/assets/{Page-kU9vubzj.js → Page-BxtLEw_b.js} +1 -1
  14. package/dist/renderer/assets/{ProjectDetail-D9FY9NWZ.js → ProjectDetail-CcUphxGm.js} +1 -1
  15. package/dist/renderer/assets/{ProjectList-DIwr2TXg.js → ProjectList-CVkvDIfy.js} +1 -1
  16. package/dist/renderer/assets/{Select-BaWoz5Dn.js → Select-DgQMZ0MD.js} +1 -1
  17. package/dist/renderer/assets/{SessionChat-Cm9CW8Zx.js → SessionChat-CRmGKfBx.js} +1 -1
  18. package/dist/renderer/assets/{SessionList-UPnWlXXO.js → SessionList-D0E8XbYw.js} +1 -1
  19. package/dist/renderer/assets/ThreadChat-DUgqZSBB.js +23 -0
  20. package/dist/renderer/assets/Workspace-Q4g4rlRT.js +14 -0
  21. package/dist/renderer/assets/{arrow-left-BmZAVGV7.js → arrow-left-BySN_zhF.js} +1 -1
  22. package/dist/renderer/assets/{book-open-DZ3GXFgI.js → book-open-BGlrnrTc.js} +1 -1
  23. package/dist/renderer/assets/{check-CeVSvDCv.js → check-BiJogEa5.js} +1 -1
  24. package/dist/renderer/assets/{chevron-down-yryuMoQ-.js → chevron-down-D2fHRJv6.js} +1 -1
  25. package/dist/renderer/assets/{circle-eASsFISH.js → circle-CIcjixmI.js} +1 -1
  26. package/dist/renderer/assets/desktop-DAXY9Bxv.js +4 -0
  27. package/dist/renderer/assets/desktop-DyA_NYew.js +1 -0
  28. package/dist/renderer/assets/{funnel-pwAe2Ixp.js → funnel-BUzwb-id.js} +1 -1
  29. package/dist/renderer/assets/{heart-B2Sp-bCm.js → heart-DZEQ1z_V.js} +1 -1
  30. package/dist/renderer/assets/{index-BC3MWbS1.js → index-CB_KyLOr.js} +39 -39
  31. package/dist/renderer/assets/{index-Cse2Br64.js → index-DgsIo4vJ.js} +3 -3
  32. package/dist/renderer/assets/{pencil-BfEunUF3.js → pencil-DGL4agcl.js} +1 -1
  33. package/dist/renderer/assets/{play-Dcs9Lj_Z.js → play-DzasCLM4.js} +1 -1
  34. package/dist/renderer/assets/{plug-B_YschQe.js → plug-dubNMe_m.js} +1 -1
  35. package/dist/renderer/assets/{plus-Pqo-cXHQ.js → plus-DN4kML4k.js} +1 -1
  36. package/dist/renderer/assets/projects-migPtfRe.js +1 -0
  37. package/dist/renderer/assets/{save-BKM5yi1A.js → save-CNIc9tjl.js} +1 -1
  38. package/dist/renderer/assets/{search-BU42h10M.js → search-C0EGbF3I.js} +1 -1
  39. package/dist/renderer/assets/{server-DA5t3Rtr.js → server-BMxQ4zmc.js} +1 -1
  40. package/dist/renderer/assets/{session-utils-Cr9VhNSq.js → session-utils-Bf5O-iMi.js} +1 -1
  41. package/dist/renderer/assets/{sessions-bvV8ZMfX.js → sessions-BMSs6rEI.js} +1 -1
  42. package/dist/renderer/assets/{shield-check-BeOJKur_.js → shield-check-i3Tf1TUz.js} +1 -1
  43. package/dist/renderer/assets/{trash-2-CQ7HKO3q.js → trash-2-SKrcp18f.js} +1 -1
  44. package/dist/renderer/assets/{user-CtFjY9SV.js → user-cNUZddjZ.js} +1 -1
  45. package/dist/renderer/assets/{wifi-off-Ci5m0ysf.js → wifi-off-Dyb84ANR.js} +1 -1
  46. package/dist/renderer/index.html +1 -1
  47. package/dist-electron/electron/channel-content.test.js +29 -0
  48. package/dist-electron/electron/lac-cli.test.js +49 -4
  49. package/dist-electron/electron/local-core-acp-content.test.js +39 -0
  50. package/dist-electron/electron/local-core-contracts.test.js +67 -0
  51. package/dist-electron/electron/local-core-refactor.test.js +628 -0
  52. package/dist-electron/electron/plugin-kernel.test.js +74 -14
  53. package/dist-electron/electron/workspace-task-store.test.js +124 -0
  54. package/dist-electron/packages/contracts/src/local-core.js +110 -0
  55. package/dist-electron/packages/core-sdk/src/index.js +40 -20
  56. package/dist-electron/services/local-ai-core/src/acp/local-core-acp-content.js +25 -4
  57. package/dist-electron/services/local-ai-core/src/acp/local-core-acp-response-processor.js +3 -2
  58. package/dist-electron/services/local-ai-core/src/acp/local-core-acp-store.js +44 -28
  59. package/dist-electron/services/local-ai-core/src/acp/local-core-acp-turn-coordinator.js +5 -1
  60. package/dist-electron/services/local-ai-core/src/acp/workspace-acp-permissions.js +15 -6
  61. package/dist-electron/services/local-ai-core/src/channel/lark/cards.js +210 -0
  62. package/dist-electron/services/local-ai-core/src/channel/lark/config.js +54 -0
  63. package/dist-electron/services/local-ai-core/src/channel/lark/local-core-lark-gateway.js +280 -496
  64. package/dist-electron/services/local-ai-core/src/channel/lark/registration.js +50 -0
  65. package/dist-electron/services/local-ai-core/src/channel/lark/runtime-state.js +191 -0
  66. package/dist-electron/services/local-ai-core/src/channel/lark/types.js +2 -0
  67. package/dist-electron/services/local-ai-core/src/channel/shared/content.js +23 -0
  68. package/dist-electron/services/local-ai-core/src/channel/shared/plugin.js +31 -0
  69. package/dist-electron/services/local-ai-core/src/channel/weixin/config.js +125 -0
  70. package/dist-electron/services/local-ai-core/src/channel/weixin/local-core-weixin-gateway.js +164 -352
  71. package/dist-electron/services/local-ai-core/src/channel/weixin/transport.js +169 -0
  72. package/dist-electron/services/local-ai-core/src/channel/weixin/types.js +2 -0
  73. package/dist-electron/services/local-ai-core/src/cli/lac.js +19 -16
  74. package/dist-electron/services/local-ai-core/src/kernel/bootstrap.js +5 -0
  75. package/dist-electron/services/local-ai-core/src/plugins/builtin/channel-lark-plugin.js +18 -39
  76. package/dist-electron/services/local-ai-core/src/plugins/builtin/channel-weixin-plugin.js +18 -39
  77. package/dist-electron/services/local-ai-core/src/runtime/local-core-controller.js +55 -44
  78. package/dist-electron/services/local-ai-core/src/runtime/server.js +10 -8
  79. package/dist-electron/services/local-ai-core/src/scheduler/job-id.js +15 -0
  80. package/dist-electron/services/local-ai-core/src/scheduler/scheduler-service.js +30 -5
  81. package/dist-electron/shared/desktop.js +37 -5
  82. package/dist-electron/src/pages/Threads/thread-chat-model.js +57 -0
  83. package/dist-electron/src/pages/Threads/thread-chat-permission.test.js +70 -0
  84. package/package.json +1 -1
  85. package/dist/renderer/assets/ThreadChat-YvVsACW3.js +0 -23
  86. package/dist/renderer/assets/Workspace-ST7V8u6T.js +0 -14
  87. package/dist/renderer/assets/desktop-Che1cbpE.js +0 -4
  88. package/dist/renderer/assets/desktop-DkrP_s-b.js +0 -1
  89. package/dist/renderer/assets/projects-BCj0k_Gy.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-iFlRnd7Y.js","./Badge-B_rgzxYO.js","./EmptyState-bKDt_T88.js","./Page-kU9vubzj.js","./projects-BCj0k_Gy.js","./desktop-DkrP_s-b.js","./server-DA5t3Rtr.js","./book-open-DZ3GXFgI.js","./shield-check-BeOJKur_.js","./ThreadChat-YvVsACW3.js","./Modal-CxPnk1Ey.js","./index-Cse2Br64.js","./ChatMarkdown-DOBMwa9d.js","./check-CeVSvDCv.js","./session-utils-Cr9VhNSq.js","./desktop-Che1cbpE.js","./wifi-off-Ci5m0ysf.js","./search-BU42h10M.js","./circle-eASsFISH.js","./pencil-BfEunUF3.js","./trash-2-CQ7HKO3q.js","./user-CtFjY9SV.js","./chevron-down-yryuMoQ-.js","./Chat-CYtp6m7T.js","./sessions-bvV8ZMfX.js","./Workspace-ST7V8u6T.js","./Select-BaWoz5Dn.js","./plus-Pqo-cXHQ.js","./save-BKM5yi1A.js","./ProjectList-DIwr2TXg.js","./heart-B2Sp-bCm.js","./ProjectDetail-D9FY9NWZ.js","./arrow-left-BmZAVGV7.js","./plug-B_YschQe.js","./play-Dcs9Lj_Z.js","./SessionList-UPnWlXXO.js","./funnel-pwAe2Ixp.js","./SessionChat-Cm9CW8Zx.js","./CronList-BDtB1SuA.js","./Config-DppMSPHF.js","./Logs-CyxSVOFK.js","./KnowledgeHome-CFeJre6i.js","./KnowledgeDetail-CKPhKPIg.js"])))=>i.map(i=>d[i]);
2
- var i0=Object.defineProperty;var u0=(i,l,r)=>l in i?i0(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r;var In=(i,l,r)=>u0(i,typeof l!="symbol"?l+"":l,r);function r0(i,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in i)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(i,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.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 r(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=r(c);fetch(c.href,f)}})();function Qm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ho={exports:{}},Fl={};/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-DmklXiH1.js","./Badge-CXcUMqb-.js","./EmptyState-BvDmi8dq.js","./Page-BxtLEw_b.js","./projects-migPtfRe.js","./desktop-DyA_NYew.js","./server-BMxQ4zmc.js","./book-open-BGlrnrTc.js","./shield-check-i3Tf1TUz.js","./ThreadChat-DUgqZSBB.js","./Modal-CfmiFknz.js","./index-DgsIo4vJ.js","./ChatMarkdown-sWGBIfIb.js","./check-BiJogEa5.js","./session-utils-Bf5O-iMi.js","./desktop-DAXY9Bxv.js","./wifi-off-Dyb84ANR.js","./search-C0EGbF3I.js","./circle-CIcjixmI.js","./pencil-DGL4agcl.js","./trash-2-SKrcp18f.js","./user-cNUZddjZ.js","./chevron-down-D2fHRJv6.js","./Chat-BRxdPzi-.js","./sessions-BMSs6rEI.js","./Workspace-Q4g4rlRT.js","./Select-DgQMZ0MD.js","./plus-DN4kML4k.js","./save-CNIc9tjl.js","./ProjectList-CVkvDIfy.js","./heart-DZEQ1z_V.js","./ProjectDetail-CcUphxGm.js","./arrow-left-BySN_zhF.js","./plug-dubNMe_m.js","./play-DzasCLM4.js","./SessionList-D0E8XbYw.js","./funnel-BUzwb-id.js","./SessionChat-CRmGKfBx.js","./CronList-OgHxbti5.js","./Config-DqxuxIGg.js","./Logs-Bfc7gBpY.js","./KnowledgeHome-CigQ-nSo.js","./KnowledgeDetail-Bj59Hdpo.js"])))=>i.map(i=>d[i]);
2
+ var s0=Object.defineProperty;var o0=(i,l,r)=>l in i?s0(i,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[l]=r;var In=(i,l,r)=>o0(i,typeof l!="symbol"?l+"":l,r);function c0(i,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in i)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(i,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.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 r(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=r(c);fetch(c.href,f)}})();function Zm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var mo={exports:{}},Fl={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
5
5
  *
@@ -7,7 +7,7 @@ var i0=Object.defineProperty;var u0=(i,l,r)=>l in i?i0(i,l,{enumerable:!0,config
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var em;function s0(){if(em)return Fl;em=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(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:i,type:o,key:h,ref:c!==void 0?c:null,props:f}}return Fl.Fragment=l,Fl.jsx=r,Fl.jsxs=r,Fl}var tm;function o0(){return tm||(tm=1,ho.exports=s0()),ho.exports}var _=o0(),mo={exports:{}},ie={};/**
10
+ */var tm;function f0(){if(tm)return Fl;tm=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(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:i,type:o,key:h,ref:c!==void 0?c:null,props:f}}return Fl.Fragment=l,Fl.jsx=r,Fl.jsxs=r,Fl}var am;function d0(){return am||(am=1,mo.exports=f0()),mo.exports}var _=d0(),go={exports:{}},ie={};/**
11
11
  * @license React
12
12
  * react.production.js
13
13
  *
@@ -15,122 +15,122 @@ var i0=Object.defineProperty;var u0=(i,l,r)=>l in i?i0(i,l,{enumerable:!0,config
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var am;function c0(){if(am)return ie;am=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=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"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function L(x){return x===null||typeof x!="object"?null:(x=N&&x[N]||x["@@iterator"],typeof x=="function"?x:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,B={};function q(x,D,G){this.props=x,this.context=D,this.refs=B,this.updater=G||z}q.prototype.isReactComponent={},q.prototype.setState=function(x,D){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,D,"setState")},q.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function X(){}X.prototype=q.prototype;function Q(x,D,G){this.props=x,this.context=D,this.refs=B,this.updater=G||z}var J=Q.prototype=new X;J.constructor=Q,H(J,q.prototype),J.isPureReactComponent=!0;var V=Array.isArray;function ue(){}var K={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function le(x,D,G){var Z=G.ref;return{$$typeof:i,type:x,key:D,ref:Z!==void 0?Z:null,props:G}}function se(x,D){return le(x.type,D,x.props)}function Ae(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function Fe(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return D[G]})}var ze=/\/+/g;function je(x,D){return typeof x=="object"&&x!==null&&x.key!=null?Fe(""+x.key):D.toString(36)}function De(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ue,ue):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function j(x,D,G,Z,ne){var ce=typeof x;(ce==="undefined"||ce==="boolean")&&(x=null);var xe=!1;if(x===null)xe=!0;else switch(ce){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(x.$$typeof){case i:case l:xe=!0;break;case b:return xe=x._init,j(xe(x._payload),D,G,Z,ne)}}if(xe)return ne=ne(x),xe=Z===""?"."+je(x,0):Z,V(ne)?(G="",xe!=null&&(G=xe.replace(ze,"$&/")+"/"),j(ne,D,G,"",function(nl){return nl})):ne!=null&&(Ae(ne)&&(ne=se(ne,G+(ne.key==null||x&&x.key===ne.key?"":(""+ne.key).replace(ze,"$&/")+"/")+xe)),D.push(ne)),1;xe=0;var ut=Z===""?".":Z+":";if(V(x))for(var Be=0;Be<x.length;Be++)Z=x[Be],ce=ut+je(Z,Be),xe+=j(Z,D,G,ce,ne);else if(Be=L(x),typeof Be=="function")for(x=Be.call(x),Be=0;!(Z=x.next()).done;)Z=Z.value,ce=ut+je(Z,Be++),xe+=j(Z,D,G,ce,ne);else if(ce==="object"){if(typeof x.then=="function")return j(De(x),D,G,Z,ne);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return xe}function Y(x,D,G){if(x==null)return x;var Z=[],ne=0;return j(x,Z,"","",function(ce){return D.call(G,ce,ne++)}),Z}function P(x){if(x._status===-1){var D=x._result;D=D(),D.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=D)}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 D=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(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Se={map:Y,forEach:function(x,D,G){Y(x,function(){D.apply(this,arguments)},G)},count:function(x){var D=0;return Y(x,function(){D++}),D},toArray:function(x){return Y(x,function(D){return D})||[]},only:function(x){if(!Ae(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ie.Activity=v,ie.Children=Se,ie.Component=q,ie.Fragment=r,ie.Profiler=c,ie.PureComponent=Q,ie.StrictMode=o,ie.Suspense=p,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ie.__COMPILER_RUNTIME={__proto__:null,c:function(x){return K.H.useMemoCache(x)}},ie.cache=function(x){return function(){return x.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(x,D,G){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=H({},x.props),ne=x.key;if(D!=null)for(ce in D.key!==void 0&&(ne=""+D.key),D)!te.call(D,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&D.ref===void 0||(Z[ce]=D[ce]);var ce=arguments.length-2;if(ce===1)Z.children=G;else if(1<ce){for(var xe=Array(ce),ut=0;ut<ce;ut++)xe[ut]=arguments[ut+2];Z.children=xe}return le(x.type,ne,Z)},ie.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},ie.createElement=function(x,D,G){var Z,ne={},ce=null;if(D!=null)for(Z in D.key!==void 0&&(ce=""+D.key),D)te.call(D,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ne[Z]=D[Z]);var xe=arguments.length-2;if(xe===1)ne.children=G;else if(1<xe){for(var ut=Array(xe),Be=0;Be<xe;Be++)ut[Be]=arguments[Be+2];ne.children=ut}if(x&&x.defaultProps)for(Z in xe=x.defaultProps,xe)ne[Z]===void 0&&(ne[Z]=xe[Z]);return le(x,ce,ne)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(x){return{$$typeof:g,render:x}},ie.isValidElement=Ae,ie.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:P}},ie.memo=function(x,D){return{$$typeof:m,type:x,compare:D===void 0?null:D}},ie.startTransition=function(x){var D=K.T,G={};K.T=G;try{var Z=x(),ne=K.S;ne!==null&&ne(G,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(ue,pe)}catch(ce){pe(ce)}finally{D!==null&&G.types!==null&&(D.types=G.types),K.T=D}},ie.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ie.use=function(x){return K.H.use(x)},ie.useActionState=function(x,D,G){return K.H.useActionState(x,D,G)},ie.useCallback=function(x,D){return K.H.useCallback(x,D)},ie.useContext=function(x){return K.H.useContext(x)},ie.useDebugValue=function(){},ie.useDeferredValue=function(x,D){return K.H.useDeferredValue(x,D)},ie.useEffect=function(x,D){return K.H.useEffect(x,D)},ie.useEffectEvent=function(x){return K.H.useEffectEvent(x)},ie.useId=function(){return K.H.useId()},ie.useImperativeHandle=function(x,D,G){return K.H.useImperativeHandle(x,D,G)},ie.useInsertionEffect=function(x,D){return K.H.useInsertionEffect(x,D)},ie.useLayoutEffect=function(x,D){return K.H.useLayoutEffect(x,D)},ie.useMemo=function(x,D){return K.H.useMemo(x,D)},ie.useOptimistic=function(x,D){return K.H.useOptimistic(x,D)},ie.useReducer=function(x,D,G){return K.H.useReducer(x,D,G)},ie.useRef=function(x){return K.H.useRef(x)},ie.useState=function(x){return K.H.useState(x)},ie.useSyncExternalStore=function(x,D,G){return K.H.useSyncExternalStore(x,D,G)},ie.useTransition=function(){return K.H.useTransition()},ie.version="19.2.5",ie}var nm;function Ho(){return nm||(nm=1,mo.exports=c0()),mo.exports}var T=Ho();const Pn=Qm(T),f0=r0({__proto__:null,default:Pn},[T]);/**
18
+ */var nm;function h0(){if(nm)return ie;nm=1;var i=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=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"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),N=Symbol.iterator;function L(x){return x===null||typeof x!="object"?null:(x=N&&x[N]||x["@@iterator"],typeof x=="function"?x:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,B={};function q(x,D,G){this.props=x,this.context=D,this.refs=B,this.updater=G||z}q.prototype.isReactComponent={},q.prototype.setState=function(x,D){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,D,"setState")},q.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function Q(){}Q.prototype=q.prototype;function X(x,D,G){this.props=x,this.context=D,this.refs=B,this.updater=G||z}var J=X.prototype=new Q;J.constructor=X,H(J,q.prototype),J.isPureReactComponent=!0;var V=Array.isArray;function ue(){}var K={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function le(x,D,G){var Z=G.ref;return{$$typeof:i,type:x,key:D,ref:Z!==void 0?Z:null,props:G}}function se(x,D){return le(x.type,D,x.props)}function Ae(x){return typeof x=="object"&&x!==null&&x.$$typeof===i}function Fe(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(G){return D[G]})}var ze=/\/+/g;function je(x,D){return typeof x=="object"&&x!==null&&x.key!=null?Fe(""+x.key):D.toString(36)}function De(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(ue,ue):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function j(x,D,G,Z,ne){var ce=typeof x;(ce==="undefined"||ce==="boolean")&&(x=null);var xe=!1;if(x===null)xe=!0;else switch(ce){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(x.$$typeof){case i:case l:xe=!0;break;case b:return xe=x._init,j(xe(x._payload),D,G,Z,ne)}}if(xe)return ne=ne(x),xe=Z===""?"."+je(x,0):Z,V(ne)?(G="",xe!=null&&(G=xe.replace(ze,"$&/")+"/"),j(ne,D,G,"",function(nl){return nl})):ne!=null&&(Ae(ne)&&(ne=se(ne,G+(ne.key==null||x&&x.key===ne.key?"":(""+ne.key).replace(ze,"$&/")+"/")+xe)),D.push(ne)),1;xe=0;var ut=Z===""?".":Z+":";if(V(x))for(var Be=0;Be<x.length;Be++)Z=x[Be],ce=ut+je(Z,Be),xe+=j(Z,D,G,ce,ne);else if(Be=L(x),typeof Be=="function")for(x=Be.call(x),Be=0;!(Z=x.next()).done;)Z=Z.value,ce=ut+je(Z,Be++),xe+=j(Z,D,G,ce,ne);else if(ce==="object"){if(typeof x.then=="function")return j(De(x),D,G,Z,ne);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return xe}function Y(x,D,G){if(x==null)return x;var Z=[],ne=0;return j(x,Z,"","",function(ce){return D.call(G,ce,ne++)}),Z}function P(x){if(x._status===-1){var D=x._result;D=D(),D.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=D)}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 D=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(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},Se={map:Y,forEach:function(x,D,G){Y(x,function(){D.apply(this,arguments)},G)},count:function(x){var D=0;return Y(x,function(){D++}),D},toArray:function(x){return Y(x,function(D){return D})||[]},only:function(x){if(!Ae(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ie.Activity=v,ie.Children=Se,ie.Component=q,ie.Fragment=r,ie.Profiler=c,ie.PureComponent=X,ie.StrictMode=o,ie.Suspense=p,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ie.__COMPILER_RUNTIME={__proto__:null,c:function(x){return K.H.useMemoCache(x)}},ie.cache=function(x){return function(){return x.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(x,D,G){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var Z=H({},x.props),ne=x.key;if(D!=null)for(ce in D.key!==void 0&&(ne=""+D.key),D)!te.call(D,ce)||ce==="key"||ce==="__self"||ce==="__source"||ce==="ref"&&D.ref===void 0||(Z[ce]=D[ce]);var ce=arguments.length-2;if(ce===1)Z.children=G;else if(1<ce){for(var xe=Array(ce),ut=0;ut<ce;ut++)xe[ut]=arguments[ut+2];Z.children=xe}return le(x.type,ne,Z)},ie.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},ie.createElement=function(x,D,G){var Z,ne={},ce=null;if(D!=null)for(Z in D.key!==void 0&&(ce=""+D.key),D)te.call(D,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ne[Z]=D[Z]);var xe=arguments.length-2;if(xe===1)ne.children=G;else if(1<xe){for(var ut=Array(xe),Be=0;Be<xe;Be++)ut[Be]=arguments[Be+2];ne.children=ut}if(x&&x.defaultProps)for(Z in xe=x.defaultProps,xe)ne[Z]===void 0&&(ne[Z]=xe[Z]);return le(x,ce,ne)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(x){return{$$typeof:g,render:x}},ie.isValidElement=Ae,ie.lazy=function(x){return{$$typeof:b,_payload:{_status:-1,_result:x},_init:P}},ie.memo=function(x,D){return{$$typeof:m,type:x,compare:D===void 0?null:D}},ie.startTransition=function(x){var D=K.T,G={};K.T=G;try{var Z=x(),ne=K.S;ne!==null&&ne(G,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(ue,pe)}catch(ce){pe(ce)}finally{D!==null&&G.types!==null&&(D.types=G.types),K.T=D}},ie.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ie.use=function(x){return K.H.use(x)},ie.useActionState=function(x,D,G){return K.H.useActionState(x,D,G)},ie.useCallback=function(x,D){return K.H.useCallback(x,D)},ie.useContext=function(x){return K.H.useContext(x)},ie.useDebugValue=function(){},ie.useDeferredValue=function(x,D){return K.H.useDeferredValue(x,D)},ie.useEffect=function(x,D){return K.H.useEffect(x,D)},ie.useEffectEvent=function(x){return K.H.useEffectEvent(x)},ie.useId=function(){return K.H.useId()},ie.useImperativeHandle=function(x,D,G){return K.H.useImperativeHandle(x,D,G)},ie.useInsertionEffect=function(x,D){return K.H.useInsertionEffect(x,D)},ie.useLayoutEffect=function(x,D){return K.H.useLayoutEffect(x,D)},ie.useMemo=function(x,D){return K.H.useMemo(x,D)},ie.useOptimistic=function(x,D){return K.H.useOptimistic(x,D)},ie.useReducer=function(x,D,G){return K.H.useReducer(x,D,G)},ie.useRef=function(x){return K.H.useRef(x)},ie.useState=function(x){return K.H.useState(x)},ie.useSyncExternalStore=function(x,D,G){return K.H.useSyncExternalStore(x,D,G)},ie.useTransition=function(){return K.H.useTransition()},ie.version="19.2.5",ie}var lm;function Bo(){return lm||(lm=1,go.exports=h0()),go.exports}var T=Bo();const Pn=Zm(T),m0=c0({__proto__:null,default:Pn},[T]);/**
19
19
  * @license lucide-react v0.487.0 - ISC
20
20
  *
21
21
  * This source code is licensed under the ISC license.
22
22
  * See the LICENSE file in the root directory of this source tree.
23
- */const d0=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h0=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,o)=>o?o.toUpperCase():r.toLowerCase()),lm=i=>{const l=h0(i);return l.charAt(0).toUpperCase()+l.slice(1)},Zm=(...i)=>i.filter((l,r,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===r).join(" ").trim();/**
23
+ */const g0=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),p0=i=>i.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,o)=>o?o.toUpperCase():r.toLowerCase()),im=i=>{const l=p0(i);return l.charAt(0).toUpperCase()+l.slice(1)},$m=(...i)=>i.filter((l,r,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===r).join(" ").trim();/**
24
24
  * @license lucide-react v0.487.0 - ISC
25
25
  *
26
26
  * This source code is licensed under the ISC license.
27
27
  * See the LICENSE file in the root directory of this source tree.
28
- */var m0={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"};/**
28
+ */var y0={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
29
  * @license lucide-react v0.487.0 - ISC
30
30
  *
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
- */const g0=T.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:h,...g},p)=>T.createElement("svg",{ref:p,...m0,width:l,height:l,stroke:i,strokeWidth:o?Number(r)*24/Number(l):r,className:Zm("lucide",c),...g},[...h.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));/**
33
+ */const v0=T.forwardRef(({color:i="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:h,...g},p)=>T.createElement("svg",{ref:p,...y0,width:l,height:l,stroke:i,strokeWidth:o?Number(r)*24/Number(l):r,className:$m("lucide",c),...g},[...h.map(([m,b])=>T.createElement(m,b)),...Array.isArray(f)?f:[f]]));/**
34
34
  * @license lucide-react v0.487.0 - ISC
35
35
  *
36
36
  * This source code is licensed under the ISC license.
37
37
  * See the LICENSE file in the root directory of this source tree.
38
- */const Je=(i,l)=>{const r=T.forwardRef(({className:o,...c},f)=>T.createElement(g0,{ref:f,iconNode:l,className:Zm(`lucide-${d0(lm(i))}`,`lucide-${i}`,o),...c}));return r.displayName=lm(i),r};/**
38
+ */const Je=(i,l)=>{const r=T.forwardRef(({className:o,...c},f)=>T.createElement(v0,{ref:f,iconNode:l,className:$m(`lucide-${g0(im(i))}`,`lucide-${i}`,o),...c}));return r.displayName=im(i),r};/**
39
39
  * @license lucide-react v0.487.0 - ISC
40
40
  *
41
41
  * This source code is licensed under the ISC license.
42
42
  * See the LICENSE file in the root directory of this source tree.
43
- */const p0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],y0=Je("chevron-left",p0);/**
43
+ */const b0=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],S0=Je("chevron-left",b0);/**
44
44
  * @license lucide-react v0.487.0 - ISC
45
45
  *
46
46
  * This source code is licensed under the ISC license.
47
47
  * See the LICENSE file in the root directory of this source tree.
48
- */const v0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],b0=Je("chevron-right",v0);/**
48
+ */const x0=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],E0=Je("chevron-right",x0);/**
49
49
  * @license lucide-react v0.487.0 - ISC
50
50
  *
51
51
  * This source code is licensed under the ISC license.
52
52
  * See the LICENSE file in the root directory of this source tree.
53
- */const S0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],x0=Je("circle-alert",S0);/**
53
+ */const T0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],R0=Je("circle-alert",T0);/**
54
54
  * @license lucide-react v0.487.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
- */const E0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],T0=Je("clock",E0);/**
58
+ */const _0=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],C0=Je("clock",_0);/**
59
59
  * @license lucide-react v0.487.0 - ISC
60
60
  *
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
- */const R0=[["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"}]],_0=Je("folder-kanban",R0);/**
63
+ */const O0=[["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"}]],A0=Je("folder-kanban",O0);/**
64
64
  * @license lucide-react v0.487.0 - ISC
65
65
  *
66
66
  * This source code is licensed under the ISC license.
67
67
  * See the LICENSE file in the root directory of this source tree.
68
- */const O0=[["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"}]],C0=Je("languages",O0);/**
68
+ */const z0=[["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"}]],N0=Je("languages",z0);/**
69
69
  * @license lucide-react v0.487.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
- */const A0=[["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"}]],z0=Je("layout-dashboard",A0);/**
73
+ */const w0=[["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"}]],j0=Je("layout-dashboard",w0);/**
74
74
  * @license lucide-react v0.487.0 - ISC
75
75
  *
76
76
  * This source code is licensed under the ISC license.
77
77
  * See the LICENSE file in the root directory of this source tree.
78
- */const N0=[["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"}]],w0=Je("library",N0);/**
78
+ */const M0=[["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"}]],L0=Je("library",M0);/**
79
79
  * @license lucide-react v0.487.0 - ISC
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const j0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],M0=Je("log-out",j0);/**
83
+ */const D0=[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]],U0=Je("log-out",D0);/**
84
84
  * @license lucide-react v0.487.0 - ISC
85
85
  *
86
86
  * This source code is licensed under the ISC license.
87
87
  * See the LICENSE file in the root directory of this source tree.
88
- */const L0=[["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"}]],D0=Je("message-square",L0);/**
88
+ */const k0=[["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"}]],H0=Je("message-square",k0);/**
89
89
  * @license lucide-react v0.487.0 - ISC
90
90
  *
91
91
  * This source code is licensed under the ISC license.
92
92
  * See the LICENSE file in the root directory of this source tree.
93
- */const U0=[["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"}]],k0=Je("messages-square",U0);/**
93
+ */const B0=[["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"}]],q0=Je("messages-square",B0);/**
94
94
  * @license lucide-react v0.487.0 - ISC
95
95
  *
96
96
  * This source code is licensed under the ISC license.
97
97
  * See the LICENSE file in the root directory of this source tree.
98
- */const H0=[["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"}]],$m=Je("monitor",H0);/**
98
+ */const Y0=[["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"}]],Jm=Je("monitor",Y0);/**
99
99
  * @license lucide-react v0.487.0 - ISC
100
100
  *
101
101
  * This source code is licensed under the ISC license.
102
102
  * See the LICENSE file in the root directory of this source tree.
103
- */const B0=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Jm=Je("moon",B0);/**
103
+ */const G0=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Fm=Je("moon",G0);/**
104
104
  * @license lucide-react v0.487.0 - ISC
105
105
  *
106
106
  * This source code is licensed under the ISC license.
107
107
  * See the LICENSE file in the root directory of this source tree.
108
- */const q0=[["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"}]],Fm=Je("refresh-cw",q0);/**
108
+ */const V0=[["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"}]],Wm=Je("refresh-cw",V0);/**
109
109
  * @license lucide-react v0.487.0 - ISC
110
110
  *
111
111
  * This source code is licensed under the ISC license.
112
112
  * See the LICENSE file in the root directory of this source tree.
113
- */const Y0=[["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"}]],G0=Je("settings",Y0);/**
113
+ */const K0=[["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"}]],Q0=Je("settings",K0);/**
114
114
  * @license lucide-react v0.487.0 - ISC
115
115
  *
116
116
  * This source code is licensed under the ISC license.
117
117
  * See the LICENSE file in the root directory of this source tree.
118
- */const V0=[["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"}]],Wm=Je("sun",V0);/**
118
+ */const X0=[["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"}]],Im=Je("sun",X0);/**
119
119
  * @license lucide-react v0.487.0 - ISC
120
120
  *
121
121
  * This source code is licensed under the ISC license.
122
122
  * See the LICENSE file in the root directory of this source tree.
123
- */const K0=[["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"}]],X0=Je("triangle-alert",K0);/**
123
+ */const Z0=[["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"}]],$0=Je("triangle-alert",Z0);/**
124
124
  * @license lucide-react v0.487.0 - ISC
125
125
  *
126
126
  * This source code is licensed under the ISC license.
127
127
  * See the LICENSE file in the root directory of this source tree.
128
- */const Q0=[["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"}]],Z0=Je("wrench",Q0);/**
128
+ */const J0=[["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"}]],F0=Je("wrench",J0);/**
129
129
  * @license lucide-react v0.487.0 - ISC
130
130
  *
131
131
  * This source code is licensed under the ISC license.
132
132
  * See the LICENSE file in the root directory of this source tree.
133
- */const $0=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],J0=Je("zap",$0);var go={exports:{}},Wl={},po={exports:{}},yo={};/**
133
+ */const W0=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],I0=Je("zap",W0);var po={exports:{}},Wl={},yo={exports:{}},vo={};/**
134
134
  * @license React
135
135
  * scheduler.production.js
136
136
  *
@@ -138,7 +138,7 @@ var i0=Object.defineProperty;var u0=(i,l,r)=>l in i?i0(i,l,{enumerable:!0,config
138
138
  *
139
139
  * This source code is licensed under the MIT license found in the
140
140
  * LICENSE file in the root directory of this source tree.
141
- */var im;function F0(){return im||(im=1,(function(i){function l(j,Y){var P=j.length;j.push(Y);e:for(;0<P;){var pe=P-1>>>1,Se=j[pe];if(0<c(Se,Y))j[pe]=Y,j[P]=Se,P=pe;else break e}}function r(j){return j.length===0?null:j[0]}function o(j){if(j.length===0)return null;var Y=j[0],P=j.pop();if(P!==Y){j[0]=P;e:for(var pe=0,Se=j.length,x=Se>>>1;pe<x;){var D=2*(pe+1)-1,G=j[D],Z=D+1,ne=j[Z];if(0>c(G,P))Z<Se&&0>c(ne,G)?(j[pe]=ne,j[Z]=P,pe=Z):(j[pe]=G,j[D]=P,pe=D);else if(Z<Se&&0>c(ne,P))j[pe]=ne,j[Z]=P,pe=Z;else break e}}return Y}function c(j,Y){var P=j.sortIndex-Y.sortIndex;return P!==0?P:j.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();i.unstable_now=function(){return h.now()-g}}var p=[],m=[],b=1,v=null,N=3,L=!1,z=!1,H=!1,B=!1,q=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,Q=typeof setImmediate<"u"?setImmediate:null;function J(j){for(var Y=r(m);Y!==null;){if(Y.callback===null)o(m);else if(Y.startTime<=j)o(m),Y.sortIndex=Y.expirationTime,l(p,Y);else break;Y=r(m)}}function V(j){if(H=!1,J(j),!z)if(r(p)!==null)z=!0,ue||(ue=!0,Fe());else{var Y=r(m);Y!==null&&De(V,Y.startTime-j)}}var ue=!1,K=-1,te=5,le=-1;function se(){return B?!0:!(i.unstable_now()-le<te)}function Ae(){if(B=!1,ue){var j=i.unstable_now();le=j;var Y=!0;try{e:{z=!1,H&&(H=!1,X(K),K=-1),L=!0;var P=N;try{t:{for(J(j),v=r(p);v!==null&&!(v.expirationTime>j&&se());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Se=pe(v.expirationTime<=j);if(j=i.unstable_now(),typeof Se=="function"){v.callback=Se,J(j),Y=!0;break t}v===r(p)&&o(p),J(j)}else o(p);v=r(p)}if(v!==null)Y=!0;else{var x=r(m);x!==null&&De(V,x.startTime-j),Y=!1}}break e}finally{v=null,N=P,L=!1}Y=void 0}}finally{Y?Fe():ue=!1}}}var Fe;if(typeof Q=="function")Fe=function(){Q(Ae)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,je=ze.port2;ze.port1.onmessage=Ae,Fe=function(){je.postMessage(null)}}else Fe=function(){q(Ae,0)};function De(j,Y){K=q(function(){j(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(j){switch(N){case 1:case 2:case 3:var Y=3;break;default:Y=N}var P=N;N=Y;try{return j()}finally{N=P}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=N;N=j;try{return Y()}finally{N=P}},i.unstable_scheduleCallback=function(j,Y,P){var pe=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?pe+P:pe):P=pe,j){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=P+Se,j={id:b++,callback:Y,priorityLevel:j,startTime:P,expirationTime:Se,sortIndex:-1},P>pe?(j.sortIndex=P,l(m,j),r(p)===null&&j===r(m)&&(H?(X(K),K=-1):H=!0,De(V,P-pe))):(j.sortIndex=Se,l(p,j),z||L||(z=!0,ue||(ue=!0,Fe()))),j},i.unstable_shouldYield=se,i.unstable_wrapCallback=function(j){var Y=N;return function(){var P=N;N=Y;try{return j.apply(this,arguments)}finally{N=P}}}})(yo)),yo}var um;function W0(){return um||(um=1,po.exports=F0()),po.exports}var vo={exports:{}},it={};/**
141
+ */var um;function P0(){return um||(um=1,(function(i){function l(j,Y){var P=j.length;j.push(Y);e:for(;0<P;){var pe=P-1>>>1,Se=j[pe];if(0<c(Se,Y))j[pe]=Y,j[P]=Se,P=pe;else break e}}function r(j){return j.length===0?null:j[0]}function o(j){if(j.length===0)return null;var Y=j[0],P=j.pop();if(P!==Y){j[0]=P;e:for(var pe=0,Se=j.length,x=Se>>>1;pe<x;){var D=2*(pe+1)-1,G=j[D],Z=D+1,ne=j[Z];if(0>c(G,P))Z<Se&&0>c(ne,G)?(j[pe]=ne,j[Z]=P,pe=Z):(j[pe]=G,j[D]=P,pe=D);else if(Z<Se&&0>c(ne,P))j[pe]=ne,j[Z]=P,pe=Z;else break e}}return Y}function c(j,Y){var P=j.sortIndex-Y.sortIndex;return P!==0?P:j.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();i.unstable_now=function(){return h.now()-g}}var p=[],m=[],b=1,v=null,N=3,L=!1,z=!1,H=!1,B=!1,q=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function J(j){for(var Y=r(m);Y!==null;){if(Y.callback===null)o(m);else if(Y.startTime<=j)o(m),Y.sortIndex=Y.expirationTime,l(p,Y);else break;Y=r(m)}}function V(j){if(H=!1,J(j),!z)if(r(p)!==null)z=!0,ue||(ue=!0,Fe());else{var Y=r(m);Y!==null&&De(V,Y.startTime-j)}}var ue=!1,K=-1,te=5,le=-1;function se(){return B?!0:!(i.unstable_now()-le<te)}function Ae(){if(B=!1,ue){var j=i.unstable_now();le=j;var Y=!0;try{e:{z=!1,H&&(H=!1,Q(K),K=-1),L=!0;var P=N;try{t:{for(J(j),v=r(p);v!==null&&!(v.expirationTime>j&&se());){var pe=v.callback;if(typeof pe=="function"){v.callback=null,N=v.priorityLevel;var Se=pe(v.expirationTime<=j);if(j=i.unstable_now(),typeof Se=="function"){v.callback=Se,J(j),Y=!0;break t}v===r(p)&&o(p),J(j)}else o(p);v=r(p)}if(v!==null)Y=!0;else{var x=r(m);x!==null&&De(V,x.startTime-j),Y=!1}}break e}finally{v=null,N=P,L=!1}Y=void 0}}finally{Y?Fe():ue=!1}}}var Fe;if(typeof X=="function")Fe=function(){X(Ae)};else if(typeof MessageChannel<"u"){var ze=new MessageChannel,je=ze.port2;ze.port1.onmessage=Ae,Fe=function(){je.postMessage(null)}}else Fe=function(){q(Ae,0)};function De(j,Y){K=q(function(){j(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(j){j.callback=null},i.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):te=0<j?Math.floor(1e3/j):5},i.unstable_getCurrentPriorityLevel=function(){return N},i.unstable_next=function(j){switch(N){case 1:case 2:case 3:var Y=3;break;default:Y=N}var P=N;N=Y;try{return j()}finally{N=P}},i.unstable_requestPaint=function(){B=!0},i.unstable_runWithPriority=function(j,Y){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=N;N=j;try{return Y()}finally{N=P}},i.unstable_scheduleCallback=function(j,Y,P){var pe=i.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?pe+P:pe):P=pe,j){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=P+Se,j={id:b++,callback:Y,priorityLevel:j,startTime:P,expirationTime:Se,sortIndex:-1},P>pe?(j.sortIndex=P,l(m,j),r(p)===null&&j===r(m)&&(H?(Q(K),K=-1):H=!0,De(V,P-pe))):(j.sortIndex=Se,l(p,j),z||L||(z=!0,ue||(ue=!0,Fe()))),j},i.unstable_shouldYield=se,i.unstable_wrapCallback=function(j){var Y=N;return function(){var P=N;N=Y;try{return j.apply(this,arguments)}finally{N=P}}}})(vo)),vo}var rm;function ev(){return rm||(rm=1,yo.exports=P0()),yo.exports}var bo={exports:{}},it={};/**
142
142
  * @license React
143
143
  * react-dom.production.js
144
144
  *
@@ -146,7 +146,7 @@ var i0=Object.defineProperty;var u0=(i,l,r)=>l in i?i0(i,l,{enumerable:!0,config
146
146
  *
147
147
  * This source code is licensed under the MIT license found in the
148
148
  * LICENSE file in the root directory of this source tree.
149
- */var rm;function I0(){if(rm)return it;rm=1;var i=Ho();function l(p){var m="https://react.dev/errors/"+p;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 #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:p,containerInfo:m,implementation:b}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(p,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(l(299));return f(p,m,null,b)},it.flushSync=function(p){var m=h.T,b=o.p;try{if(h.T=null,o.p=2,p)return p()}finally{h.T=m,o.p=b,o.d.f()}},it.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(p,m))},it.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},it.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin),N=typeof m.integrity=="string"?m.integrity:void 0,L=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?o.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:L}):b==="script"&&o.d.X(p,{crossOrigin:v,integrity:N,fetchPriority:L,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},it.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=g(m.as,m.crossOrigin);o.d.M(p,{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(p)},it.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin);o.d.L(p,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})}},it.preloadModule=function(p,m){if(typeof p=="string")if(m){var b=g(m.as,m.crossOrigin);o.d.m(p,{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(p)},it.requestFormReset=function(p){o.d.r(p)},it.unstable_batchedUpdates=function(p,m){return p(m)},it.useFormState=function(p,m,b){return h.H.useFormState(p,m,b)},it.useFormStatus=function(){return h.H.useHostTransitionStatus()},it.version="19.2.5",it}var sm;function P0(){if(sm)return vo.exports;sm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),vo.exports=I0(),vo.exports}/**
149
+ */var sm;function tv(){if(sm)return it;sm=1;var i=Bo();function l(p){var m="https://react.dev/errors/"+p;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 #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var o={d:{f:r,r:function(){throw Error(l(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:p,containerInfo:m,implementation:b}}var h=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(p,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(l(299));return f(p,m,null,b)},it.flushSync=function(p){var m=h.T,b=o.p;try{if(h.T=null,o.p=2,p)return p()}finally{h.T=m,o.p=b,o.d.f()}},it.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,o.d.C(p,m))},it.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},it.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin),N=typeof m.integrity=="string"?m.integrity:void 0,L=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?o.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:N,fetchPriority:L}):b==="script"&&o.d.X(p,{crossOrigin:v,integrity:N,fetchPriority:L,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},it.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=g(m.as,m.crossOrigin);o.d.M(p,{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(p)},it.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=g(b,m.crossOrigin);o.d.L(p,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})}},it.preloadModule=function(p,m){if(typeof p=="string")if(m){var b=g(m.as,m.crossOrigin);o.d.m(p,{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(p)},it.requestFormReset=function(p){o.d.r(p)},it.unstable_batchedUpdates=function(p,m){return p(m)},it.useFormState=function(p,m,b){return h.H.useFormState(p,m,b)},it.useFormStatus=function(){return h.H.useHostTransitionStatus()},it.version="19.2.5",it}var om;function av(){if(om)return bo.exports;om=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),bo.exports=tv(),bo.exports}/**
150
150
  * @license React
151
151
  * react-dom-client.production.js
152
152
  *
@@ -154,15 +154,15 @@ var i0=Object.defineProperty;var u0=(i,l,r)=>l in i?i0(i,l,{enumerable:!0,config
154
154
  *
155
155
  * This source code is licensed under the MIT license found in the
156
156
  * LICENSE file in the root directory of this source tree.
157
- */var om;function ev(){if(om)return Wl;om=1;var i=W0(),l=Ho(),r=P0();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 p(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 s=u.alternate;if(s===null){if(n=u.return,n!==null){a=n;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===a)return p(u),e;if(s===n)return p(u),t;s=s.sibling}throw Error(o(188))}if(a.return!==n.return)a=u,n=s;else{for(var d=!1,y=u.child;y;){if(y===a){d=!0,a=u,n=s;break}if(y===n){d=!0,n=u,a=s;break}y=y.sibling}if(!d){for(y=s.child;y;){if(y===a){d=!0,a=s,n=u;break}if(y===n){d=!0,n=s,a=u;break}y=y.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,N=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),Q=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Fe(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function je(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case q:return"Profiler";case B:return"StrictMode";case V:return"Suspense";case ue:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case Q:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:je(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return je(e(t))}catch{}}return null}var De=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},pe=[],Se=-1;function x(e){return{current:e}}function D(e){0>Se||(e.current=pe[Se],pe[Se]=null,Se--)}function G(e,t){Se++,pe[Se]=e.current,e.current=t}var Z=x(null),ne=x(null),ce=x(null),xe=x(null);function ut(e,t){switch(G(ce,t),G(ne,e),G(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Th(t),e=Rh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(Z),G(Z,e)}function Be(){D(Z),D(ne),D(ce)}function nl(e){e.memoizedState!==null&&G(xe,e);var t=Z.current,a=Rh(t,e.type);t!==a&&(G(ne,e),G(Z,a))}function di(e){ne.current===e&&(D(Z),D(ne)),xe.current===e&&(D(xe),Ql._currentValue=P)}var $u,Io;function Ga(e){if($u===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);$u=t&&t[1]||"",Io=-1<a.stack.indexOf(`
157
+ */var cm;function nv(){if(cm)return Wl;cm=1;var i=ev(),l=Bo(),r=av();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 p(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 s=u.alternate;if(s===null){if(n=u.return,n!==null){a=n;continue}break}if(u.child===s.child){for(s=u.child;s;){if(s===a)return p(u),e;if(s===n)return p(u),t;s=s.sibling}throw Error(o(188))}if(a.return!==n.return)a=u,n=s;else{for(var d=!1,y=u.child;y;){if(y===a){d=!0,a=u,n=s;break}if(y===n){d=!0,n=u,a=s;break}y=y.sibling}if(!d){for(y=s.child;y;){if(y===a){d=!0,a=s,n=u;break}if(y===n){d=!0,n=s,a=u;break}y=y.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,N=Symbol.for("react.element"),L=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),X=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),ue=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Fe(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var ze=Symbol.for("react.client.reference");function je(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ze?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case q:return"Profiler";case B:return"StrictMode";case V:return"Suspense";case ue:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case X:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case J:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:je(e.type)||"Memo";case te:t=e._payload,e=e._init;try{return je(e(t))}catch{}}return null}var De=Array.isArray,j=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},pe=[],Se=-1;function x(e){return{current:e}}function D(e){0>Se||(e.current=pe[Se],pe[Se]=null,Se--)}function G(e,t){Se++,pe[Se]=e.current,e.current=t}var Z=x(null),ne=x(null),ce=x(null),xe=x(null);function ut(e,t){switch(G(ce,t),G(ne,e),G(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Rh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Rh(t),e=_h(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(Z),G(Z,e)}function Be(){D(Z),D(ne),D(ce)}function nl(e){e.memoizedState!==null&&G(xe,e);var t=Z.current,a=_h(t,e.type);t!==a&&(G(ne,e),G(Z,a))}function hi(e){ne.current===e&&(D(Z),D(ne)),xe.current===e&&(D(xe),Xl._currentValue=P)}var Ju,Po;function Ga(e){if(Ju===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ju=t&&t[1]||"",Po=-1<a.stack.indexOf(`
158
158
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
159
- `+$u+e+Io}var Ju=!1;function Fu(e,t){if(!e||Ju)return"";Ju=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(w){var A=w}Reflect.construct(e,[],k)}else{try{k.call()}catch(w){A=w}e.call(k.prototype)}}else{try{throw Error()}catch(w){A=w}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(w){if(w&&A&&typeof w.stack=="string")return[w.stack,A.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 s=n.DetermineComponentFrameRoot(),d=s[0],y=s[1];if(d&&y){var S=d.split(`
160
- `),C=y.split(`
161
- `);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 M=`
162
- `+S[n].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=n&&0<=u);break}}}finally{Ju=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ga(a):""}function Ug(e,t){switch(e.tag){case 26:case 27:case 5:return Ga(e.type);case 16:return Ga("Lazy");case 13:return e.child!==t&&t!==null?Ga("Suspense Fallback"):Ga("Suspense");case 19:return Ga("SuspenseList");case 0:case 15:return Fu(e.type,!1);case 11:return Fu(e.type.render,!1);case 1:return Fu(e.type,!0);case 31:return Ga("Activity");default:return""}}function Po(e){try{var t="",a=null;do t+=Ug(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
159
+ `+Ju+e+Po}var Fu=!1;function Wu(e,t){if(!e||Fu)return"";Fu=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var k=function(){throw Error()};if(Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(w){var A=w}Reflect.construct(e,[],k)}else{try{k.call()}catch(w){A=w}e.call(k.prototype)}}else{try{throw Error()}catch(w){A=w}(k=e())&&typeof k.catch=="function"&&k.catch(function(){})}}catch(w){if(w&&A&&typeof w.stack=="string")return[w.stack,A.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 s=n.DetermineComponentFrameRoot(),d=s[0],y=s[1];if(d&&y){var S=d.split(`
160
+ `),O=y.split(`
161
+ `);for(u=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;u<O.length&&!O[u].includes("DetermineComponentFrameRoot");)u++;if(n===S.length||u===O.length)for(n=S.length-1,u=O.length-1;1<=n&&0<=u&&S[n]!==O[u];)u--;for(;1<=n&&0<=u;n--,u--)if(S[n]!==O[u]){if(n!==1||u!==1)do if(n--,u--,0>u||S[n]!==O[u]){var M=`
162
+ `+S[n].replace(" at new "," at ");return e.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",e.displayName)),M}while(1<=n&&0<=u);break}}}finally{Fu=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ga(a):""}function Bg(e,t){switch(e.tag){case 26:case 27:case 5:return Ga(e.type);case 16:return Ga("Lazy");case 13:return e.child!==t&&t!==null?Ga("Suspense Fallback"):Ga("Suspense");case 19:return Ga("SuspenseList");case 0:case 15:return Wu(e.type,!1);case 11:return Wu(e.type.render,!1);case 1:return Wu(e.type,!0);case 31:return Ga("Activity");default:return""}}function ec(e){try{var t="",a=null;do t+=Bg(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
163
163
  Error generating stack: `+n.message+`
164
- `+n.stack}}var Wu=Object.prototype.hasOwnProperty,Iu=i.unstable_scheduleCallback,Pu=i.unstable_cancelCallback,kg=i.unstable_shouldYield,Hg=i.unstable_requestPaint,gt=i.unstable_now,Bg=i.unstable_getCurrentPriorityLevel,ec=i.unstable_ImmediatePriority,tc=i.unstable_UserBlockingPriority,hi=i.unstable_NormalPriority,qg=i.unstable_LowPriority,ac=i.unstable_IdlePriority,Yg=i.log,Gg=i.unstable_setDisableYieldValue,ll=null,pt=null;function pa(e){if(typeof Yg=="function"&&Gg(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(ll,e)}catch{}}var yt=Math.clz32?Math.clz32:Xg,Vg=Math.log,Kg=Math.LN2;function Xg(e){return e>>>=0,e===0?32:31-(Vg(e)/Kg|0)|0}var mi=256,gi=262144,pi=4194304;function Va(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 yi(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var u=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=n&134217727;return y!==0?(n=y&~s,n!==0?u=Va(n):(d&=y,d!==0?u=Va(d):a||(a=y&~e,a!==0&&(u=Va(a))))):(y=n&~s,y!==0?u=Va(y):d!==0?u=Va(d):a||(a=n&~e,a!==0&&(u=Va(a)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:u}function il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qg(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 nc(){var e=pi;return pi<<=1,(pi&62914560)===0&&(pi=4194304),e}function er(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ul(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Zg(e,t,a,n,u,s){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 y=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(a=d&~a;0<a;){var M=31-yt(a),k=1<<M;y[M]=0,S[M]=-1;var A=C[M];if(A!==null)for(C[M]=null,M=0;M<A.length;M++){var w=A[M];w!==null&&(w.lane&=-536870913)}a&=~k}n!==0&&lc(e,n,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function lc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-yt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function ic(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-yt(a),u=1<<n;u&t|e[n]&t&&(e[n]|=t),a&=~u}}function uc(e,t){var a=t&-t;return a=(a&42)!==0?1:tr(a),(a&(e.suspendedLanes|t))!==0?0:a}function tr(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 ar(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Zh(e.type))}function sc(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ya=Math.random().toString(36).slice(2),et="__reactFiber$"+ya,st="__reactProps$"+ya,mn="__reactContainer$"+ya,nr="__reactEvents$"+ya,$g="__reactListeners$"+ya,Jg="__reactHandles$"+ya,oc="__reactResources$"+ya,rl="__reactMarker$"+ya;function lr(e){delete e[et],delete e[st],delete e[nr],delete e[$g],delete e[Jg]}function gn(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[mn]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=wh(e);e!==null;){if(a=e[et])return a;e=wh(e)}return t}e=a,a=e.parentNode}return null}function pn(e){if(e=e[et]||e[mn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function sl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function yn(e){var t=e[oc];return t||(t=e[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[rl]=!0}var cc=new Set,fc={};function Ka(e,t){vn(e,t),vn(e+"Capture",t)}function vn(e,t){for(fc[e]=t,e=0;e<t.length;e++)cc.add(t[e])}var Fg=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]*$"),dc={},hc={};function Wg(e){return Wu.call(hc,e)?!0:Wu.call(dc,e)?!1:Fg.test(e)?hc[e]=!0:(dc[e]=!0,!1)}function vi(e,t,a){if(Wg(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 bi(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 Wt(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 Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ig(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,s.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 ir(e){if(!e._valueTracker){var t=mc(e)?"checked":"value";e._valueTracker=Ig(e,t,""+e[t])}}function gc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=mc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function Si(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 Pg=/[\n"\\]/g;function wt(e){return e.replace(Pg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ur(e,t,a,n,u,s,d,y){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=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?rr(e,d,Nt(t)):a!=null?rr(e,d,Nt(a)):n!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Nt(y):e.removeAttribute("name")}function pc(e,t,a,n,u,s,d,y){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){ir(e);return}a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=y?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),ir(e)}function rr(e,t,a){t==="number"&&Si(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function bn(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=""+Nt(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 yc(e,t,a){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Nt(a):""}function vc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(De(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Nt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),ir(e)}function Sn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ep=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 bc(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||ep.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Sc(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&&bc(e,u,n)}else for(var s in t)t.hasOwnProperty(s)&&bc(e,s,t[s])}function sr(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 tp=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"]]),ap=/^[\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 xi(e){return ap.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var or=null;function cr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,En=null;function xc(e){var t=pn(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(ur(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="'+wt(""+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));ur(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&&gc(n)}break e;case"textarea":yc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&bn(e,!!a.multiple,t,!1)}}}var fr=!1;function Ec(e,t,a){if(fr)return e(t,a);fr=!0;try{var n=e(t);return n}finally{if(fr=!1,(xn!==null||En!==null)&&(su(),xn&&(t=xn,e=En,En=xn=null,xc(t),e)))for(t=0;t<e.length;t++)xc(e[t])}}function ol(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 Pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dr=!1;if(Pt)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){dr=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{dr=!1}var va=null,hr=null,Ei=null;function Tc(){if(Ei)return Ei;var e,t=hr,a=t.length,n,u="value"in va?va.value:va.textContent,s=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[s-n];n++);return Ei=u.slice(e,1<n?1-n:void 0)}function Ti(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 Ri(){return!0}function Rc(){return!1}function ot(e){function t(a,n,u,s,d){this._reactName=a,this._targetInst=u,this.type=n,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(s):s[y]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ri:Rc,this.isPropagationStopped=Rc,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=Ri)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ri)},persist:function(){},isPersistent:Ri}),t}var Xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_i=ot(Xa),fl=v({},Xa,{view:0,detail:0}),np=ot(fl),mr,gr,dl,Oi=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yr,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!==dl&&(dl&&e.type==="mousemove"?(mr=e.screenX-dl.screenX,gr=e.screenY-dl.screenY):gr=mr=0,dl=e),mr)},movementY:function(e){return"movementY"in e?e.movementY:gr}}),_c=ot(Oi),lp=v({},Oi,{dataTransfer:0}),ip=ot(lp),up=v({},fl,{relatedTarget:0}),pr=ot(up),rp=v({},Xa,{animationName:0,elapsedTime:0,pseudoElement:0}),sp=ot(rp),op=v({},Xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cp=ot(op),fp=v({},Xa,{data:0}),Oc=ot(fp),dp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hp={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"},mp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mp[e])?!!t[e]:!1}function yr(){return gp}var pp=v({},fl,{key:function(e){if(e.key){var t=dp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ti(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yr,charCode:function(e){return e.type==="keypress"?Ti(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ti(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yp=ot(pp),vp=v({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cc=ot(vp),bp=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yr}),Sp=ot(bp),xp=v({},Xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ep=ot(xp),Tp=v({},Oi,{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}),Rp=ot(Tp),_p=v({},Xa,{newState:0,oldState:0}),Op=ot(_p),Cp=[9,13,27,32],vr=Pt&&"CompositionEvent"in window,hl=null;Pt&&"documentMode"in document&&(hl=document.documentMode);var Ap=Pt&&"TextEvent"in window&&!hl,Ac=Pt&&(!vr||hl&&8<hl&&11>=hl),zc=" ",Nc=!1;function wc(e,t){switch(e){case"keyup":return Cp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function zp(e,t){switch(e){case"compositionend":return jc(t);case"keypress":return t.which!==32?null:(Nc=!0,zc);case"textInput":return e=t.data,e===zc&&Nc?null:e;default:return null}}function Np(e,t){if(Tn)return e==="compositionend"||!vr&&wc(e,t)?(e=Tc(),Ei=hr=va=null,Tn=!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 Ac&&t.locale!=="ko"?null:t.data;default:return null}}var wp={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 Mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!wp[e.type]:t==="textarea"}function Lc(e,t,a,n){xn?En?En.push(n):En=[n]:xn=n,t=gu(t,"onChange"),0<t.length&&(a=new _i("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var ml=null,gl=null;function jp(e){yh(e,0)}function Ci(e){var t=sl(e);if(gc(t))return e}function Dc(e,t){if(e==="change")return t}var Uc=!1;if(Pt){var br;if(Pt){var Sr="oninput"in document;if(!Sr){var kc=document.createElement("div");kc.setAttribute("oninput","return;"),Sr=typeof kc.oninput=="function"}br=Sr}else br=!1;Uc=br&&(!document.documentMode||9<document.documentMode)}function Hc(){ml&&(ml.detachEvent("onpropertychange",Bc),gl=ml=null)}function Bc(e){if(e.propertyName==="value"&&Ci(gl)){var t=[];Lc(t,gl,e,cr(e)),Ec(jp,t)}}function Mp(e,t,a){e==="focusin"?(Hc(),ml=t,gl=a,ml.attachEvent("onpropertychange",Bc)):e==="focusout"&&Hc()}function Lp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ci(gl)}function Dp(e,t){if(e==="click")return Ci(t)}function Up(e,t){if(e==="input"||e==="change")return Ci(t)}function kp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:kp;function pl(e,t){if(vt(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(!Wu.call(t,u)||!vt(e[u],t[u]))return!1}return!0}function qc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var a=qc(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=qc(a)}}function Gc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Si(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=Si(e.document)}return t}function xr(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 Hp=Pt&&"documentMode"in document&&11>=document.documentMode,Rn=null,Er=null,yl=null,Tr=!1;function Kc(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tr||Rn==null||Rn!==Si(n)||(n=Rn,"selectionStart"in n&&xr(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}),yl&&pl(yl,n)||(yl=n,n=gu(Er,"onSelect"),0<n.length&&(t=new _i("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Rn)))}function Qa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var _n={animationend:Qa("Animation","AnimationEnd"),animationiteration:Qa("Animation","AnimationIteration"),animationstart:Qa("Animation","AnimationStart"),transitionrun:Qa("Transition","TransitionRun"),transitionstart:Qa("Transition","TransitionStart"),transitioncancel:Qa("Transition","TransitionCancel"),transitionend:Qa("Transition","TransitionEnd")},Rr={},Xc={};Pt&&(Xc=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);function Za(e){if(Rr[e])return Rr[e];if(!_n[e])return e;var t=_n[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xc)return Rr[e]=t[a];return e}var Qc=Za("animationend"),Zc=Za("animationiteration"),$c=Za("animationstart"),Bp=Za("transitionrun"),qp=Za("transitionstart"),Yp=Za("transitioncancel"),Jc=Za("transitionend"),Fc=new Map,_r="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(" ");_r.push("scrollEnd");function Yt(e,t){Fc.set(e,t),Ka(t,[e])}var Ai=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)},jt=[],On=0,Or=0;function zi(){for(var e=On,t=Or=On=0;t<e;){var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var u=jt[t];jt[t++]=null;var s=jt[t];if(jt[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}s!==0&&Wc(a,u,s)}}function Ni(e,t,a,n){jt[On++]=e,jt[On++]=t,jt[On++]=a,jt[On++]=n,Or|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Cr(e,t,a,n){return Ni(e,t,a,n),wi(e)}function $a(e,t){return Ni(e,null,null,t),wi(e)}function Wc(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var u=!1,s=e.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-yt(a),e=s.hiddenUpdates,n=e[u],n===null?e[u]=[t]:n.push(t),t.lane=a|536870912),s):null}function wi(e){if(50<Bl)throw Bl=0,Us=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Cn={};function Gp(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 bt(e,t,a,n){return new Gp(e,t,a,n)}function Ar(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var a=e.alternate;return a===null?(a=bt(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 Ic(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 ji(e,t,a,n,u,s){var d=0;if(n=e,typeof e=="function")Ar(e)&&(d=1);else if(typeof e=="string")d=Zy(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=bt(31,a,t,u),e.elementType=le,e.lanes=s,e;case H:return Ja(a.children,u,s,t);case B:d=8,u|=24;break;case q:return e=bt(12,a,t,u|2),e.elementType=q,e.lanes=s,e;case V:return e=bt(13,a,t,u),e.elementType=V,e.lanes=s,e;case ue:return e=bt(19,a,t,u),e.elementType=ue,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Q:d=10;break e;case X:d=9;break e;case J:d=11;break e;case K:d=14;break e;case te:d=16,n=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=bt(d,a,t,u),t.elementType=e,t.type=n,t.lanes=s,t}function Ja(e,t,a,n){return e=bt(7,e,n,t),e.lanes=a,e}function zr(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function Pc(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function Nr(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var a=ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Po(t)},ef.set(e,t),t)}return{value:e,source:t,stack:Po(t)}}var An=[],zn=0,Mi=null,vl=0,Lt=[],Dt=0,ba=null,Qt=1,Zt="";function ta(e,t){An[zn++]=vl,An[zn++]=Mi,Mi=e,vl=t}function tf(e,t,a){Lt[Dt++]=Qt,Lt[Dt++]=Zt,Lt[Dt++]=ba,ba=e;var n=Qt;e=Zt;var u=32-yt(n)-1;n&=~(1<<u),a+=1;var s=32-yt(t)+u;if(30<s){var d=u-u%5;s=(n&(1<<d)-1).toString(32),n>>=d,u-=d,Qt=1<<32-yt(t)+u|a<<u|n,Zt=s+e}else Qt=1<<s|a<<u|n,Zt=e}function wr(e){e.return!==null&&(ta(e,1),tf(e,1,0))}function jr(e){for(;e===Mi;)Mi=An[--zn],An[zn]=null,vl=An[--zn],An[zn]=null;for(;e===ba;)ba=Lt[--Dt],Lt[Dt]=null,Zt=Lt[--Dt],Lt[Dt]=null,Qt=Lt[--Dt],Lt[Dt]=null}function af(e,t){Lt[Dt++]=Qt,Lt[Dt++]=Zt,Lt[Dt++]=ba,Qt=t.id,Zt=t.overflow,ba=e}var tt=null,Ne=null,ge=!1,Sa=null,Ut=!1,Mr=Error(o(519));function xa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(Mt(t,e)),Mr}function nf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[et]=e,t[st]=n,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<Yl.length;a++)de(Yl[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),pc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),vc(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||xh(t.textContent,a)?(n.popover!=null&&(de("beforetoggle",t),de("toggle",t)),n.onScroll!=null&&de("scroll",t),n.onScrollEnd!=null&&de("scrollend",t),n.onClick!=null&&(t.onclick=It),t=!0):t=!1,t||xa(e,!0)}function lf(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:tt=tt.return}}function Nn(e){if(e!==tt)return!1;if(!ge)return lf(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")||Ws(e.type,e.memoizedProps)),a=!a),a&&Ne&&xa(e),lf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ne=Nh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ne=Nh(e)}else t===27?(t=Ne,Da(e.type)?(e=ao,ao=null,Ne=e):Ne=t):Ne=tt?Ht(e.stateNode.nextSibling):null;return!0}function Fa(){Ne=tt=null,ge=!1}function Lr(){var e=Sa;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),Sa=null),e}function bl(e){Sa===null?Sa=[e]:Sa.push(e)}var Dr=x(null),Wa=null,aa=null;function Ea(e,t,a){G(Dr,t._currentValue),t._currentValue=a}function na(e){e._currentValue=Dr.current,D(Dr)}function Ur(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 kr(e,t,a,n){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var d=u.child;s=s.firstContext;e:for(;s!==null;){var y=s;s=u;for(var S=0;S<t.length;S++)if(y.context===t[S]){s.lanes|=a,y=s.alternate,y!==null&&(y.lanes|=a),Ur(s.return,a,e),n||(d=null);break e}s=y.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=a,s=d.alternate,s!==null&&(s.lanes|=a),Ur(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 wn(e,t,a,n){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!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 y=u.type;vt(u.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}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(Ql):e=[Ql])}u=u.return}e!==null&&kr(t,e,a,n),t.flags|=262144}function Li(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ia(e){Wa=e,aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return uf(Wa,e)}function Di(e,t){return Wa===null&&Ia(e),uf(e,t)}function uf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},aa===null){if(e===null)throw Error(o(308));aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else aa=aa.next=t;return a}var Vp=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()})}},Kp=i.unstable_scheduleCallback,Xp=i.unstable_NormalPriority,Ge={$$typeof:Q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hr(){return{controller:new Vp,data:new Map,refCount:0}}function Sl(e){e.refCount--,e.refCount===0&&Kp(Xp,function(){e.controller.abort()})}var xl=null,Br=0,jn=0,Mn=null;function Qp(e,t){if(xl===null){var a=xl=[];Br=0,jn=Gs(),Mn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Br++,t.then(rf,rf),t}function rf(){if(--Br===0&&xl!==null){Mn!==null&&(Mn.status="fulfilled");var e=xl;xl=null,jn=0,Mn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Zp(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 sf=j.S;j.S=function(e,t){Xd=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Qp(e,t),sf!==null&&sf(e,t)};var Pa=x(null);function qr(){var e=Pa.current;return e!==null?e:Ce.pooledCache}function Ui(e,t){t===null?G(Pa,Pa.current):G(Pa,t.pool)}function of(){var e=qr();return e===null?null:{parent:Ge._currentValue,pool:e}}var Ln=Error(o(460)),Yr=Error(o(474)),ki=Error(o(542)),Hi={then:function(){}};function cf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ff(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(It,It),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hf(e),e;default:if(typeof t.status=="string")t.then(It,It);else{if(e=Ce,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,hf(e),e}throw tn=t,Ln}}function en(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(tn=a,Ln):a}}var tn=null;function df(){if(tn===null)throw Error(o(459));var e=tn;return tn=null,e}function hf(e){if(e===Ln||e===ki)throw Error(o(483))}var Dn=null,El=0;function Bi(e){var t=El;return El+=1,Dn===null&&(Dn=[]),ff(Dn,e,t)}function Tl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mf(e){function t(R,E){if(e){var O=R.deletions;O===null?(R.deletions=[E],R.flags|=16):O.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=ea(R,E),R.index=0,R.sibling=null,R}function s(R,E,O){return R.index=O,e?(O=R.alternate,O!==null?(O=O.index,O<E?(R.flags|=67108866,E):O):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function y(R,E,O,U){return E===null||E.tag!==6?(E=zr(O,R.mode,U),E.return=R,E):(E=u(E,O),E.return=R,E)}function S(R,E,O,U){var I=O.type;return I===H?M(R,E,O.props.children,U,O.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===te&&en(I)===E.type)?(E=u(E,O.props),Tl(E,O),E.return=R,E):(E=ji(O.type,O.key,O.props,null,R.mode,U),Tl(E,O),E.return=R,E)}function C(R,E,O,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=Nr(O,R.mode,U),E.return=R,E):(E=u(E,O.children||[]),E.return=R,E)}function M(R,E,O,U,I){return E===null||E.tag!==7?(E=Ja(O,R.mode,U,I),E.return=R,E):(E=u(E,O),E.return=R,E)}function k(R,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=zr(""+E,R.mode,O),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case L:return O=ji(E.type,E.key,E.props,null,R.mode,O),Tl(O,E),O.return=R,O;case z:return E=Nr(E,R.mode,O),E.return=R,E;case te:return E=en(E),k(R,E,O)}if(De(E)||Fe(E))return E=Ja(E,R.mode,O,null),E.return=R,E;if(typeof E.then=="function")return k(R,Bi(E),O);if(E.$$typeof===Q)return k(R,Di(R,E),O);qi(R,E)}return null}function A(R,E,O,U){var I=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return I!==null?null:y(R,E,""+O,U);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case L:return O.key===I?S(R,E,O,U):null;case z:return O.key===I?C(R,E,O,U):null;case te:return O=en(O),A(R,E,O,U)}if(De(O)||Fe(O))return I!==null?null:M(R,E,O,U,null);if(typeof O.then=="function")return A(R,E,Bi(O),U);if(O.$$typeof===Q)return A(R,E,Di(R,O),U);qi(R,O)}return null}function w(R,E,O,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return R=R.get(O)||null,y(E,R,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case L:return R=R.get(U.key===null?O:U.key)||null,S(E,R,U,I);case z:return R=R.get(U.key===null?O:U.key)||null,C(E,R,U,I);case te:return U=en(U),w(R,E,O,U,I)}if(De(U)||Fe(U))return R=R.get(O)||null,M(E,R,U,I,null);if(typeof U.then=="function")return w(R,E,O,Bi(U),I);if(U.$$typeof===Q)return w(R,E,O,Di(E,U),I);qi(E,U)}return null}function $(R,E,O,U){for(var I=null,ye=null,F=E,oe=E=0,me=null;F!==null&&oe<O.length;oe++){F.index>oe?(me=F,F=null):me=F.sibling;var ve=A(R,F,O[oe],U);if(ve===null){F===null&&(F=me);break}e&&F&&ve.alternate===null&&t(R,F),E=s(ve,E,oe),ye===null?I=ve:ye.sibling=ve,ye=ve,F=me}if(oe===O.length)return a(R,F),ge&&ta(R,oe),I;if(F===null){for(;oe<O.length;oe++)F=k(R,O[oe],U),F!==null&&(E=s(F,E,oe),ye===null?I=F:ye.sibling=F,ye=F);return ge&&ta(R,oe),I}for(F=n(F);oe<O.length;oe++)me=w(F,R,oe,O[oe],U),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?oe:me.key),E=s(me,E,oe),ye===null?I=me:ye.sibling=me,ye=me);return e&&F.forEach(function(qa){return t(R,qa)}),ge&&ta(R,oe),I}function ee(R,E,O,U){if(O==null)throw Error(o(151));for(var I=null,ye=null,F=E,oe=E=0,me=null,ve=O.next();F!==null&&!ve.done;oe++,ve=O.next()){F.index>oe?(me=F,F=null):me=F.sibling;var qa=A(R,F,ve.value,U);if(qa===null){F===null&&(F=me);break}e&&F&&qa.alternate===null&&t(R,F),E=s(qa,E,oe),ye===null?I=qa:ye.sibling=qa,ye=qa,F=me}if(ve.done)return a(R,F),ge&&ta(R,oe),I;if(F===null){for(;!ve.done;oe++,ve=O.next())ve=k(R,ve.value,U),ve!==null&&(E=s(ve,E,oe),ye===null?I=ve:ye.sibling=ve,ye=ve);return ge&&ta(R,oe),I}for(F=n(F);!ve.done;oe++,ve=O.next())ve=w(F,R,oe,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&F.delete(ve.key===null?oe:ve.key),E=s(ve,E,oe),ye===null?I=ve:ye.sibling=ve,ye=ve);return e&&F.forEach(function(l0){return t(R,l0)}),ge&&ta(R,oe),I}function Oe(R,E,O,U){if(typeof O=="object"&&O!==null&&O.type===H&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case L:e:{for(var I=O.key;E!==null;){if(E.key===I){if(I=O.type,I===H){if(E.tag===7){a(R,E.sibling),U=u(E,O.props.children),U.return=R,R=U;break e}}else if(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===te&&en(I)===E.type){a(R,E.sibling),U=u(E,O.props),Tl(U,O),U.return=R,R=U;break e}a(R,E);break}else t(R,E);E=E.sibling}O.type===H?(U=Ja(O.props.children,R.mode,U,O.key),U.return=R,R=U):(U=ji(O.type,O.key,O.props,null,R.mode,U),Tl(U,O),U.return=R,R=U)}return d(R);case z:e:{for(I=O.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){a(R,E.sibling),U=u(E,O.children||[]),U.return=R,R=U;break e}else{a(R,E);break}else t(R,E);E=E.sibling}U=Nr(O,R.mode,U),U.return=R,R=U}return d(R);case te:return O=en(O),Oe(R,E,O,U)}if(De(O))return $(R,E,O,U);if(Fe(O)){if(I=Fe(O),typeof I!="function")throw Error(o(150));return O=I.call(O),ee(R,E,O,U)}if(typeof O.then=="function")return Oe(R,E,Bi(O),U);if(O.$$typeof===Q)return Oe(R,E,Di(R,O),U);qi(R,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(a(R,E.sibling),U=u(E,O),U.return=R,R=U):(a(R,E),U=zr(O,R.mode,U),U.return=R,R=U),d(R)):a(R,E)}return function(R,E,O,U){try{El=0;var I=Oe(R,E,O,U);return Dn=null,I}catch(F){if(F===Ln||F===ki)throw F;var ye=bt(29,F,null,R.mode);return ye.lanes=U,ye.return=R,ye}finally{}}}var an=mf(!0),gf=mf(!1),Ta=!1;function Gr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vr(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _a(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=wi(e),Wc(e,null,a),t}return Ni(e,n,t,a),wi(e)}function Rl(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,ic(e,a)}}function Kr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var u=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?u=s=d:s=s.next=d,a=a.next}while(a!==null);s===null?u=s=t:s=s.next=t}else u=s=t;a={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:s,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 Xr=!1;function _l(){if(Xr){var e=Mn;if(e!==null)throw e}}function Ol(e,t,a,n){Xr=!1;var u=e.updateQueue;Ta=!1;var s=u.firstBaseUpdate,d=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var S=y,C=S.next;S.next=null,d===null?s=C:d.next=C,d=S;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==d&&(y===null?M.firstBaseUpdate=C:y.next=C,M.lastBaseUpdate=S))}if(s!==null){var k=u.baseState;d=0,M=C=S=null,y=s;do{var A=y.lane&-536870913,w=A!==y.lane;if(w?(he&A)===A:(n&A)===A){A!==0&&A===jn&&(Xr=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var $=e,ee=y;A=t;var Oe=a;switch(ee.tag){case 1:if($=ee.payload,typeof $=="function"){k=$.call(Oe,k,A);break e}k=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ee.payload,A=typeof $=="function"?$.call(Oe,k,A):$,A==null)break e;k=v({},k,A);break e;case 2:Ta=!0}}A=y.callback,A!==null&&(e.flags|=64,w&&(e.flags|=8192),w=u.callbacks,w===null?u.callbacks=[A]:w.push(A))}else w={lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(C=M=w,S=k):M=M.next=w,d|=A;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;w=y,y=w.next,w.next=null,u.lastBaseUpdate=w,u.shared.pending=null}}while(!0);M===null&&(S=k),u.baseState=S,u.firstBaseUpdate=C,u.lastBaseUpdate=M,s===null&&(u.shared.lanes=0),Na|=d,e.lanes=d,e.memoizedState=k}}function pf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function yf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)pf(a[e],t)}var Un=x(null),Yi=x(0);function vf(e,t){e=da,G(Yi,e),G(Un,t),da=e|t.baseLanes}function Qr(){G(Yi,da),G(Un,Un.current)}function Zr(){da=Yi.current,D(Un),D(Yi)}var St=x(null),kt=null;function Oa(e){var t=e.alternate;G(qe,qe.current&1),G(St,e),kt===null&&(t===null||Un.current!==null||t.memoizedState!==null)&&(kt=e)}function $r(e){G(qe,qe.current),G(St,e),kt===null&&(kt=e)}function bf(e){e.tag===22?(G(qe,qe.current),G(St,e),kt===null&&(kt=e)):Ca()}function Ca(){G(qe,qe.current),G(St,St.current)}function xt(e){D(St),kt===e&&(kt=null),D(qe)}var qe=x(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||eo(a)||to(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 la=0,re=null,Re=null,Ve=null,Vi=!1,kn=!1,nn=!1,Ki=0,Cl=0,Hn=null,$p=0;function Ue(){throw Error(o(321))}function Jr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vt(e[a],t[a]))return!1;return!0}function Fr(e,t,a,n,u,s){return la=s,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?ad:fs,nn=!1,s=a(n,u),nn=!1,kn&&(s=xf(t,a,n,u)),Sf(e),s}function Sf(e){j.H=Nl;var t=Re!==null&&Re.next!==null;if(la=0,Ve=Re=re=null,Vi=!1,Cl=0,Hn=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&Li(e)&&(Ke=!0))}function xf(e,t,a,n){re=e;var u=0;do{if(kn&&(Hn=null),Cl=0,kn=!1,25<=u)throw Error(o(301));if(u+=1,Ve=Re=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}j.H=nd,s=t(a,n)}while(kn);return s}function Jp(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Al(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(re.flags|=1024),t}function Wr(){var e=Ki!==0;return Ki=0,e}function Ir(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Pr(e){if(Vi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Vi=!1}la=0,Ve=Re=re=null,kn=!1,Cl=Ki=0,Hn=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ye(){if(Re===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ve===null?re.memoizedState:Ve.next;if(t!==null)Ve=t,Re=e;else{if(e===null)throw re.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},Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(e){var t=Cl;return Cl+=1,Hn===null&&(Hn=[]),e=ff(Hn,e,t),t=re,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?ad:fs),e}function Qi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Al(e);if(e.$$typeof===Q)return at(e)}throw Error(o(438,String(e)))}function es(e){var t=null,a=re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=re.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=Xi(),re.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]=se;return t.index++,a}function ia(e,t){return typeof t=="function"?t(e):t}function Zi(e){var t=Ye();return ts(t,Re,e)}function ts(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var u=e.baseQueue,s=n.pending;if(s!==null){if(u!==null){var d=u.next;u.next=s.next,s.next=d}t.baseQueue=u=s,n.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var y=d=null,S=null,C=t,M=!1;do{var k=C.lane&-536870913;if(k!==C.lane?(he&k)===k:(la&k)===k){var A=C.revertLane;if(A===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),k===jn&&(M=!0);else if((la&A)===A){C=C.next,A===jn&&(M=!0);continue}else k={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(y=S=k,d=s):S=S.next=k,re.lanes|=A,Na|=A;k=C.action,nn&&a(s,k),s=C.hasEagerState?C.eagerState:a(s,k)}else A={lane:k,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(y=S=A,d=s):S=S.next=A,re.lanes|=k,Na|=k;C=C.next}while(C!==null&&C!==t);if(S===null?d=s:S.next=y,!vt(s,e.memoizedState)&&(Ke=!0,M&&(a=Mn,a!==null)))throw a;e.memoizedState=s,e.baseState=d,e.baseQueue=S,n.lastRenderedState=s}return u===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function as(e){var t=Ye(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,u=a.pending,s=t.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do s=e(s,d.action),d=d.next;while(d!==u);vt(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,n]}function Ef(e,t,a){var n=re,u=Ye(),s=ge;if(s){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!vt((Re||u).memoizedState,a);if(d&&(u.memoizedState=a,Ke=!0),u=u.queue,is(_f.bind(null,n,u,e),[e]),u.getSnapshot!==t||d||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Bn(9,{destroy:void 0},Rf.bind(null,n,u,a,t),null),Ce===null)throw Error(o(349));s||(la&127)!==0||Tf(n,t,a)}return a}function Tf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=re.updateQueue,t===null?(t=Xi(),re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Rf(e,t,a,n){t.value=a,t.getSnapshot=n,Of(t)&&Cf(e)}function _f(e,t,a){return a(function(){Of(t)&&Cf(e)})}function Of(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vt(e,a)}catch{return!0}}function Cf(e){var t=$a(e,2);t!==null&&mt(t,e,2)}function ns(e){var t=rt();if(typeof e=="function"){var a=e;if(e=a(),nn){pa(!0);try{a()}finally{pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},t}function Af(e,t,a,n){return e.baseState=a,ts(e,Re,typeof n=="function"?n:ia)}function Fp(e,t,a,n,u){if(Fi(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};j.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,zf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function zf(e,t){var a=t.action,n=t.payload,u=e.state;if(t.isTransition){var s=j.T,d={};j.T=d;try{var y=a(u,n),S=j.S;S!==null&&S(d,y),Nf(e,t,y)}catch(C){ls(e,t,C)}finally{s!==null&&d.types!==null&&(s.types=d.types),j.T=s}}else try{s=a(u,n),Nf(e,t,s)}catch(C){ls(e,t,C)}}function Nf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){wf(e,t,n)},function(n){return ls(e,t,n)}):wf(e,t,a)}function wf(e,t,a){t.status="fulfilled",t.value=a,jf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zf(e,a)))}function ls(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,jf(t),t=t.next;while(t!==n)}e.action=null}function jf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Mf(e,t){return t}function Lf(e,t){if(ge){var a=Ce.formState;if(a!==null){e:{var n=re;if(ge){if(Ne){t:{for(var u=Ne,s=Ut;u.nodeType!==8;){if(!s){u=null;break t}if(u=Ht(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){Ne=Ht(u.nextSibling),n=u.data==="F!";break e}}xa(n)}n=!1}n&&(t=a[0])}}return a=rt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mf,lastRenderedState:t},a.queue=n,a=Pf.bind(null,re,n),n.dispatch=a,n=ns(!1),s=cs.bind(null,re,!1,n.queue),n=rt(),u={state:t,dispatch:null,action:e,pending:null},n.queue=u,a=Fp.bind(null,re,u,s,a),u.dispatch=a,n.memoizedState=e,[t,a,!1]}function Df(e){var t=Ye();return Uf(t,Re,e)}function Uf(e,t,a){if(t=ts(e,t,Mf)[0],e=Zi(ia)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Al(t)}catch(d){throw d===Ln?ki:d}else n=t;t=Ye();var u=t.queue,s=u.dispatch;return a!==t.memoizedState&&(re.flags|=2048,Bn(9,{destroy:void 0},Wp.bind(null,u,a),null)),[n,s,e]}function Wp(e,t){e.action=t}function kf(e){var t=Ye(),a=Re;if(a!==null)return Uf(t,a,e);Ye(),t=t.memoizedState,a=Ye();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Bn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=re.updateQueue,t===null&&(t=Xi(),re.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 Hf(){return Ye().memoizedState}function $i(e,t,a,n){var u=rt();re.flags|=e,u.memoizedState=Bn(1|t,{destroy:void 0},a,n===void 0?null:n)}function Ji(e,t,a,n){var u=Ye();n=n===void 0?null:n;var s=u.memoizedState.inst;Re!==null&&n!==null&&Jr(n,Re.memoizedState.deps)?u.memoizedState=Bn(t,s,a,n):(re.flags|=e,u.memoizedState=Bn(1|t,s,a,n))}function Bf(e,t){$i(8390656,8,e,t)}function is(e,t){Ji(2048,8,e,t)}function Ip(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Xi(),re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function qf(e){var t=Ye().memoizedState;return Ip({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Yf(e,t){return Ji(4,2,e,t)}function Gf(e,t){return Ji(4,4,e,t)}function Vf(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 Kf(e,t,a){a=a!=null?a.concat([e]):null,Ji(4,4,Vf.bind(null,t,e),a)}function us(){}function Xf(e,t){var a=Ye();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Jr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Qf(e,t){var a=Ye();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Jr(t,n[1]))return n[0];if(n=e(),nn){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[n,t],n}function rs(e,t,a){return a===void 0||(la&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Zd(),re.lanes|=e,Na|=e,a)}function Zf(e,t,a,n){return vt(a,t)?a:Un.current!==null?(e=rs(e,a,n),vt(e,t)||(Ke=!0),e):(la&42)===0||(la&1073741824)!==0&&(he&261930)===0?(Ke=!0,e.memoizedState=a):(e=Zd(),re.lanes|=e,Na|=e,t)}function $f(e,t,a,n,u){var s=Y.p;Y.p=s!==0&&8>s?s:8;var d=j.T,y={};j.T=y,cs(e,!1,t,a);try{var S=u(),C=j.S;if(C!==null&&C(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=Zp(S,n);zl(e,t,M,Rt(e))}else zl(e,t,n,Rt(e))}catch(k){zl(e,t,{then:function(){},status:"rejected",reason:k},Rt())}finally{Y.p=s,d!==null&&y.types!==null&&(d.types=y.types),j.T=d}}function Pp(){}function ss(e,t,a,n){if(e.tag!==5)throw Error(o(476));var u=Jf(e).queue;$f(e,u,t,P,a===null?Pp:function(){return Ff(e),a(n)})}function Jf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:P},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ff(e){var t=Jf(e);t.next===null&&(t=e.alternate.memoizedState),zl(e,t.next.queue,{},Rt())}function os(){return at(Ql)}function Wf(){return Ye().memoizedState}function If(){return Ye().memoizedState}function ey(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var n=_a(t,e,a);n!==null&&(mt(n,t,a),Rl(n,t,a)),t={cache:Hr()},e.payload=t;return}t=t.return}}function ty(e,t,a){var n=Rt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Fi(e)?ed(t,a):(a=Cr(e,t,a,n),a!==null&&(mt(a,e,n),td(a,t,n)))}function Pf(e,t,a){var n=Rt();zl(e,t,a,n)}function zl(e,t,a,n){var u={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Fi(e))ed(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,y=s(d,a);if(u.hasEagerState=!0,u.eagerState=y,vt(y,d))return Ni(e,t,u,0),Ce===null&&zi(),!1}catch{}finally{}if(a=Cr(e,t,u,n),a!==null)return mt(a,e,n),td(a,t,n),!0}return!1}function cs(e,t,a,n){if(n={lane:2,revertLane:Gs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fi(e)){if(t)throw Error(o(479))}else t=Cr(e,a,n,2),t!==null&&mt(t,e,2)}function Fi(e){var t=e.alternate;return e===re||t!==null&&t===re}function ed(e,t){kn=Vi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function td(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,ic(e,a)}}var Nl={readContext:at,use:Qi,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};Nl.useEffectEvent=Ue;var ad={readContext:at,use:Qi,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:Bf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,$i(4194308,4,Vf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){$i(4,2,e,t)},useMemo:function(e,t){var a=rt();t=t===void 0?null:t;var n=e();if(nn){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=rt();if(a!==void 0){var u=a(t);if(nn){pa(!0);try{a(t)}finally{pa(!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=ty.bind(null,re,e),[n.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=ns(e);var t=e.queue,a=Pf.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:us,useDeferredValue:function(e,t){var a=rt();return rs(a,e,t)},useTransition:function(){var e=ns(!1);return e=$f.bind(null,re,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=re,u=rt();if(ge){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ce===null)throw Error(o(349));(he&127)!==0||Tf(n,t,a)}u.memoizedState=a;var s={value:a,getSnapshot:t};return u.queue=s,Bf(_f.bind(null,n,s,e),[e]),n.flags|=2048,Bn(9,{destroy:void 0},Rf.bind(null,n,s,a,t),null),a},useId:function(){var e=rt(),t=Ce.identifierPrefix;if(ge){var a=Zt,n=Qt;a=(n&~(1<<32-yt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ki++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=$p++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:os,useFormState:Lf,useActionState:Lf,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=cs.bind(null,re,!0,a),a.dispatch=t,[e,t]},useMemoCache:es,useCacheRefresh:function(){return rt().memoizedState=ey.bind(null,re)},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)}}},fs={readContext:at,use:Qi,useCallback:Xf,useContext:at,useEffect:is,useImperativeHandle:Kf,useInsertionEffect:Yf,useLayoutEffect:Gf,useMemo:Qf,useReducer:Zi,useRef:Hf,useState:function(){return Zi(ia)},useDebugValue:us,useDeferredValue:function(e,t){var a=Ye();return Zf(a,Re.memoizedState,e,t)},useTransition:function(){var e=Zi(ia)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Ef,useId:Wf,useHostTransitionStatus:os,useFormState:Df,useActionState:Df,useOptimistic:function(e,t){var a=Ye();return Af(a,Re,e,t)},useMemoCache:es,useCacheRefresh:If};fs.useEffectEvent=qf;var nd={readContext:at,use:Qi,useCallback:Xf,useContext:at,useEffect:is,useImperativeHandle:Kf,useInsertionEffect:Yf,useLayoutEffect:Gf,useMemo:Qf,useReducer:as,useRef:Hf,useState:function(){return as(ia)},useDebugValue:us,useDeferredValue:function(e,t){var a=Ye();return Re===null?rs(a,e,t):Zf(a,Re.memoizedState,e,t)},useTransition:function(){var e=as(ia)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Ef,useId:Wf,useHostTransitionStatus:os,useFormState:kf,useActionState:kf,useOptimistic:function(e,t){var a=Ye();return Re!==null?Af(a,Re,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:es,useCacheRefresh:If};nd.useEffectEvent=qf;function ds(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 hs={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Rt(),u=Ra(n);u.payload=t,a!=null&&(u.callback=a),t=_a(e,u,n),t!==null&&(mt(t,e,n),Rl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Rt(),u=Ra(n);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=_a(e,u,n),t!==null&&(mt(t,e,n),Rl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),n=Ra(a);n.tag=2,t!=null&&(n.callback=t),t=_a(e,n,a),t!==null&&(mt(t,e,a),Rl(t,e,a))}};function ld(e,t,a,n,u,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,d):t.prototype&&t.prototype.isPureReactComponent?!pl(a,n)||!pl(u,s):!0}function id(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&&hs.enqueueReplaceState(t,t.state,null)}function ln(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 ud(e){Ai(e)}function rd(e){console.error(e)}function sd(e){Ai(e)}function Wi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function od(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 ms(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){Wi(e,t)},a}function cd(e){return e=Ra(e),e.tag=3,e}function fd(e,t,a,n){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var s=n.value;e.payload=function(){return u(s)},e.callback=function(){od(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){od(t,a,n),typeof u!="function"&&(wa===null?wa=new Set([this]):wa.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})})}function ay(e,t,a,n,u){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&wn(t,a,u,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return kt===null?ou():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=u,n===Hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Bs(e,n,u)),!1;case 22:return a.flags|=65536,n===Hi?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)),Bs(e,n,u)),!1}throw Error(o(435,a.tag))}return Bs(e,n,u),ou(),!1}if(ge)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,n!==Mr&&(e=Error(o(422),{cause:n}),bl(Mt(e,a)))):(n!==Mr&&(t=Error(o(423),{cause:n}),bl(Mt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,n=Mt(n,a),u=ms(e.stateNode,n,u),Kr(e,u),ke!==4&&(ke=2)),!1;var s=Error(o(520),{cause:n});if(s=Mt(s,a),Hl===null?Hl=[s]:Hl.push(s),ke!==4&&(ke=2),t===null)return!0;n=Mt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=ms(a.stateNode,n,e),Kr(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(wa===null||!wa.has(s))))return a.flags|=65536,u&=-u,a.lanes|=u,u=cd(u),fd(u,e,a,n),Kr(a,u),!1}a=a.return}while(a!==null);return!1}var gs=Error(o(461)),Ke=!1;function nt(e,t,a,n){t.child=e===null?gf(t,null,a,n):an(t,e.child,a,n)}function dd(e,t,a,n,u){a=a.render;var s=t.ref;if("ref"in n){var d={};for(var y in n)y!=="ref"&&(d[y]=n[y])}else d=n;return Ia(t),n=Fr(e,t,a,d,s,u),y=Wr(),e!==null&&!Ke?(Ir(e,t,u),ua(e,t,u)):(ge&&y&&wr(t),t.flags|=1,nt(e,t,n,u),t.child)}function hd(e,t,a,n,u){if(e===null){var s=a.type;return typeof s=="function"&&!Ar(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,md(e,t,s,n,u)):(e=ji(a.type,null,n,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Ts(e,u)){var d=s.memoizedProps;if(a=a.compare,a=a!==null?a:pl,a(d,n)&&e.ref===t.ref)return ua(e,t,u)}return t.flags|=1,e=ea(s,n),e.ref=t.ref,e.return=t,t.child=e}function md(e,t,a,n,u){if(e!==null){var s=e.memoizedProps;if(pl(s,n)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=n=s,Ts(e,u))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,ua(e,t,u)}return ps(e,t,a,n,u)}function gd(e,t,a,n){var u=n.children,s=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(s=s!==null?s.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&~s}else n=0,t.child=null;return pd(e,t,s,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ui(t,s!==null?s.cachePool:null),s!==null?vf(t,s):Qr(),bf(t);else return n=t.lanes=536870912,pd(e,t,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(Ui(t,s.cachePool),vf(t,s),Ca(),t.memoizedState=null):(e!==null&&Ui(t,null),Qr(),Ca());return nt(e,t,u,a),t.child}function wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pd(e,t,a,n,u){var s=qr();return s=s===null?null:{parent:Ge._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&Ui(t,null),Qr(),bf(t),e!==null&&wn(e,t,n,!0),t.childLanes=u,null}function Ii(e,t){return t=eu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yd(e,t,a){return an(t,e.child,null,a),e=Ii(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function ny(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=Ii(t,n),t.lanes=536870912,wl(null,e);if($r(t),(e=Ne)?(e=zh(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Qt,overflow:Zt}:null,retryLane:536870912,hydrationErrors:null},a=Pc(e),a.return=t,t.child=a,tt=t,Ne=null)):e=null,e===null)throw xa(t);return t.lanes=536870912,null}return Ii(t,n)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if($r(t),u)if(t.flags&256)t.flags&=-257,t=yd(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||wn(e,t,a,!1),u=(a&e.childLanes)!==0,Ke||u){if(n=Ce,n!==null&&(d=uc(n,a),d!==0&&d!==s.retryLane))throw s.retryLane=d,$a(e,d),mt(n,e,d),gs;ou(),t=yd(e,t,a)}else e=s.treeContext,Ne=Ht(d.nextSibling),tt=t,ge=!0,Sa=null,Ut=!1,e!==null&&af(t,e),t=Ii(t,n),t.flags|=4096;return t}return e=ea(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Pi(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 ps(e,t,a,n,u){return Ia(t),a=Fr(e,t,a,n,void 0,u),n=Wr(),e!==null&&!Ke?(Ir(e,t,u),ua(e,t,u)):(ge&&n&&wr(t),t.flags|=1,nt(e,t,a,u),t.child)}function vd(e,t,a,n,u,s){return Ia(t),t.updateQueue=null,a=xf(t,n,a,u),Sf(e),n=Wr(),e!==null&&!Ke?(Ir(e,t,s),ua(e,t,s)):(ge&&n&&wr(t),t.flags|=1,nt(e,t,a,s),t.child)}function bd(e,t,a,n,u){if(Ia(t),t.stateNode===null){var s=Cn,d=a.contextType;typeof d=="object"&&d!==null&&(s=at(d)),s=new a(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=hs,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},Gr(t),d=a.contextType,s.context=typeof d=="object"&&d!==null?at(d):Cn,s.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(ds(t,a,d,n),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&hs.enqueueReplaceState(s,s.state,null),Ol(t,n,s,u),_l(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var y=t.memoizedProps,S=ln(a,y);s.props=S;var C=s.context,M=a.contextType;d=Cn,typeof M=="object"&&M!==null&&(d=at(M));var k=a.getDerivedStateFromProps;M=typeof k=="function"||typeof s.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(y||C!==d)&&id(t,s,n,d),Ta=!1;var A=t.memoizedState;s.state=A,Ol(t,n,s,u),_l(),C=t.memoizedState,y||A!==C||Ta?(typeof k=="function"&&(ds(t,a,k,n),C=t.memoizedState),(S=Ta||ld(t,a,S,n,A,C,d))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=C),s.props=n,s.state=C,s.context=d,n=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Vr(e,t),d=t.memoizedProps,M=ln(a,d),s.props=M,k=t.pendingProps,A=s.context,C=a.contextType,S=Cn,typeof C=="object"&&C!==null&&(S=at(C)),y=a.getDerivedStateFromProps,(C=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==k||A!==S)&&id(t,s,n,S),Ta=!1,A=t.memoizedState,s.state=A,Ol(t,n,s,u),_l();var w=t.memoizedState;d!==k||A!==w||Ta||e!==null&&e.dependencies!==null&&Li(e.dependencies)?(typeof y=="function"&&(ds(t,a,y,n),w=t.memoizedState),(M=Ta||ld(t,a,M,n,A,w,S)||e!==null&&e.dependencies!==null&&Li(e.dependencies))?(C||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,w,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,w,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),s.props=n,s.state=w,s.context=S,n=M):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,Pi(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=an(t,e.child,null,u),t.child=an(t,null,a,u)):nt(e,t,a,u),t.memoizedState=s.state,e=t.child):e=ua(e,t,u),e}function Sd(e,t,a,n){return Fa(),t.flags|=256,nt(e,t,a,n),t.child}var ys={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vs(e){return{baseLanes:e,cachePool:of()}}function bs(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function xd(e,t,a){var n=t.pendingProps,u=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(u?Oa(t):Ca(),(e=Ne)?(e=zh(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Qt,overflow:Zt}:null,retryLane:536870912,hydrationErrors:null},a=Pc(e),a.return=t,t.child=a,tt=t,Ne=null)):e=null,e===null)throw xa(t);return to(e)?t.lanes=32:t.lanes=536870912,null}var y=n.children;return n=n.fallback,u?(Ca(),u=t.mode,y=eu({mode:"hidden",children:y},u),n=Ja(n,u,a,null),y.return=t,n.return=t,y.sibling=n,t.child=y,n=t.child,n.memoizedState=vs(a),n.childLanes=bs(e,d,a),t.memoizedState=ys,wl(null,n)):(Oa(t),Ss(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(s)t.flags&256?(Oa(t),t.flags&=-257,t=xs(e,t,a)):t.memoizedState!==null?(Ca(),t.child=e.child,t.flags|=128,t=null):(Ca(),y=n.fallback,u=t.mode,n=eu({mode:"visible",children:n.children},u),y=Ja(y,u,a,null),y.flags|=2,n.return=t,y.return=t,n.sibling=y,t.child=n,an(t,e.child,null,a),n=t.child,n.memoizedState=vs(a),n.childLanes=bs(e,d,a),t.memoizedState=ys,t=wl(null,n));else if(Oa(t),to(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var C=d.dgst;d=C,n=Error(o(419)),n.stack="",n.digest=d,bl({value:n,source:null,stack:null}),t=xs(e,t,a)}else if(Ke||wn(e,t,a,!1),d=(a&e.childLanes)!==0,Ke||d){if(d=Ce,d!==null&&(n=uc(d,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,$a(e,n),mt(d,e,n),gs;eo(y)||ou(),t=xs(e,t,a)}else eo(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ne=Ht(y.nextSibling),tt=t,ge=!0,Sa=null,Ut=!1,e!==null&&af(t,e),t=Ss(t,n.children),t.flags|=4096);return t}return u?(Ca(),y=n.fallback,u=t.mode,S=e.child,C=S.sibling,n=ea(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,C!==null?y=ea(C,y):(y=Ja(y,u,a,null),y.flags|=2),y.return=t,n.return=t,n.sibling=y,t.child=n,wl(null,n),n=t.child,y=e.child.memoizedState,y===null?y=vs(a):(u=y.cachePool,u!==null?(S=Ge._currentValue,u=u.parent!==S?{parent:S,pool:S}:u):u=of(),y={baseLanes:y.baseLanes|a,cachePool:u}),n.memoizedState=y,n.childLanes=bs(e,d,a),t.memoizedState=ys,wl(e.child,n)):(Oa(t),a=e.child,e=a.sibling,a=ea(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 Ss(e,t){return t=eu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function eu(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function xs(e,t,a){return an(t,e.child,null,a),e=Ss(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ed(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ur(e.return,t,a)}function Es(e,t,a,n,u,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:u,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=u,d.treeForkCount=s)}function Td(e,t,a){var n=t.pendingProps,u=n.revealOrder,s=n.tail;n=n.children;var d=qe.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,G(qe,d),nt(e,t,n,a),n=ge?vl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ed(e,a,t);else if(e.tag===19)Ed(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&&Gi(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Es(t,!1,u,a,s,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&&Gi(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Es(t,!0,a,null,s,n);break;case"together":Es(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Na|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wn(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=ea(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ea(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ts(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Li(e)))}function ly(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),Ea(t,Ge,e.memoizedState.cache),Fa();break;case 27:case 5:nl(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$r(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Oa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?xd(e,t,a):(Oa(t),e=ua(e,t,a),e!==null?e.sibling:null);Oa(t);break;case 19:var u=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(wn(e,t,a,!1),n=(a&t.childLanes)!==0),u){if(n)return Td(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),G(qe,qe.current),n)break;return null;case 22:return t.lanes=0,gd(e,t,a,t.pendingProps);case 24:Ea(t,Ge,e.memoizedState.cache)}return ua(e,t,a)}function Rd(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Ts(e,a)&&(t.flags&128)===0)return Ke=!1,ly(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,ge&&(t.flags&1048576)!==0&&tf(t,vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=en(t.elementType),t.type=e,typeof e=="function")Ar(e)?(n=ln(e,n),t.tag=1,t=bd(null,t,e,n,a)):(t.tag=0,t=ps(null,t,e,n,a));else{if(e!=null){var u=e.$$typeof;if(u===J){t.tag=11,t=dd(null,t,e,n,a);break e}else if(u===K){t.tag=14,t=hd(null,t,e,n,a);break e}}throw t=je(e)||e,Error(o(306,t,""))}}return t;case 0:return ps(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,u=ln(n,t.pendingProps),bd(e,t,n,u,a);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var s=t.memoizedState;u=s.element,Vr(e,t),Ol(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Ea(t,Ge,n),n!==s.cache&&kr(t,[Ge],a,!0),_l(),n=d.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=Sd(e,t,n,a);break e}else if(n!==u){u=Mt(Error(o(424)),t),bl(u),t=Sd(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(Ne=Ht(e.firstChild),tt=t,ge=!0,Sa=null,Ut=!0,a=gf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Fa(),n===u){t=ua(e,t,a);break e}nt(e,t,n,a)}t=t.child}return t;case 26:return Pi(e,t),e===null?(a=Dh(t.type,null,t.pendingProps,null))?t.memoizedState=a:ge||(a=t.type,e=t.pendingProps,n=pu(ce.current).createElement(a),n[et]=t,n[st]=e,lt(n,a,e),We(n),t.stateNode=n):t.memoizedState=Dh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nl(t),e===null&&ge&&(n=t.stateNode=jh(t.type,t.pendingProps,ce.current),tt=t,Ut=!0,u=Ne,Da(t.type)?(ao=u,Ne=Ht(n.firstChild)):Ne=u),nt(e,t,t.pendingProps.children,a),Pi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((u=n=Ne)&&(n=Ly(n,t.type,t.pendingProps,Ut),n!==null?(t.stateNode=n,tt=t,Ne=Ht(n.firstChild),Ut=!1,u=!0):u=!1),u||xa(t)),nl(t),u=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,n=s.children,Ws(u,s)?n=null:d!==null&&Ws(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=Fr(e,t,Jp,null,null,a),Ql._currentValue=u),Pi(e,t),nt(e,t,n,a),t.child;case 6:return e===null&&ge&&((e=a=Ne)&&(a=Dy(a,t.pendingProps,Ut),a!==null?(t.stateNode=a,tt=t,Ne=null,e=!0):e=!1),e||xa(t)),null;case 13:return xd(e,t,a);case 4:return ut(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=an(t,null,n,a):nt(e,t,n,a),t.child;case 11:return dd(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Ea(t,t.type,n.value),nt(e,t,n.children,a),t.child;case 9:return u=t.type._context,n=t.pendingProps.children,Ia(t),u=at(u),n=n(u),t.flags|=1,nt(e,t,n,a),t.child;case 14:return hd(e,t,t.type,t.pendingProps,a);case 15:return md(e,t,t.type,t.pendingProps,a);case 19:return Td(e,t,a);case 31:return ny(e,t,a);case 22:return gd(e,t,a,t.pendingProps);case 24:return Ia(t),n=at(Ge),e===null?(u=qr(),u===null&&(u=Ce,s=Hr(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=a),u=s),t.memoizedState={parent:n,cache:u},Gr(t),Ea(t,Ge,u)):((e.lanes&a)!==0&&(Vr(e,t),Ol(t,null,null,a),_l()),u=e.memoizedState,s=t.memoizedState,u.parent!==n?(u={parent:n,cache:n},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ea(t,Ge,n)):(n=s.cache,Ea(t,Ge,n),n!==u.cache&&kr(t,[Ge],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ra(e){e.flags|=4}function Rs(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(Wd())e.flags|=8192;else throw tn=Hi,Yr}else e.flags&=-16777217}function _d(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qh(t))if(Wd())e.flags|=8192;else throw tn=Hi,Yr}function tu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nc():536870912,e.lanes|=t,Vn|=t)}function jl(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 we(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 iy(e,t,a){var n=t.pendingProps;switch(jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return we(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(Ge),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nn(t)?ra(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Lr())),we(t),null;case 26:var u=t.type,s=t.memoizedState;return e===null?(ra(t),s!==null?(we(t),_d(t,s)):(we(t),Rs(t,u,null,n,a))):s?s!==e.memoizedState?(ra(t),we(t),_d(t,s)):(we(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ra(t),we(t),Rs(t,u,e,n,a)),null;case 27:if(di(t),a=ce.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ra(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return we(t),null}e=Z.current,Nn(t)?nf(t):(e=jh(u,n,a),t.stateNode=e,ra(t))}return we(t),null;case 5:if(di(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ra(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return we(t),null}if(s=Z.current,Nn(t))nf(t);else{var d=pu(ce.current);switch(s){case 1:s=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=d.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?d.createElement(u,{is:n.is}):d.createElement(u)}}s[et]=t,s[st]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.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=s;e:switch(lt(s,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&&ra(t)}}return we(t),Rs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ra(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=ce.current,Nn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,u=tt,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||xh(e.nodeValue,a)),e||xa(t,!0)}else e=pu(e).createTextNode(n),e[et]=t,t.stateNode=e}return we(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Nn(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[et]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;we(t),e=!1}else a=Lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return we(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Nn(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[et]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;we(t),u=!1}else u=Lr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(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),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==u&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),tu(t,t.updateQueue),we(t),null);case 4:return Be(),e===null&&Qs(t.stateNode.containerInfo),we(t),null;case 10:return na(t.type),we(t),null;case 19:if(D(qe),n=t.memoizedState,n===null)return we(t),null;if(u=(t.flags&128)!==0,s=n.rendering,s===null)if(u)jl(n,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Gi(e),s!==null){for(t.flags|=128,jl(n,!1),e=s.updateQueue,t.updateQueue=e,tu(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Ic(a,e),a=a.sibling;return G(qe,qe.current&1|2),ge&&ta(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&gt()>uu&&(t.flags|=128,u=!0,jl(n,!1),t.lanes=4194304)}else{if(!u)if(e=Gi(s),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,tu(t,e),jl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ge)return we(t),null}else 2*gt()-n.renderingStartTime>uu&&a!==536870912&&(t.flags|=128,u=!0,jl(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(e=n.last,e!==null?e.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=gt(),e.sibling=null,a=qe.current,G(qe,u?a&1|2:a&1),ge&&ta(t,n.treeForkCount),e):(we(t),null);case 22:case 23:return xt(t),Zr(),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&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),a=t.updateQueue,a!==null&&tu(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&&D(Pa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(Ge),we(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function uy(e,t){switch(jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(Ge),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return di(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(o(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(qe),null;case 4:return Be(),null;case 10:return na(t.type),null;case 22:case 23:return xt(t),Zr(),e!==null&&D(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(Ge),null;case 25:return null;default:return null}}function Od(e,t){switch(jr(t),t.tag){case 3:na(Ge),Be();break;case 26:case 27:case 5:di(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:D(qe);break;case 10:na(t.type);break;case 22:case 23:xt(t),Zr(),e!==null&&D(Pa);break;case 24:na(Ge)}}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 s=a.create,d=a.inst;n=s(),d.destroy=n}a=a.next}while(a!==u)}}catch(y){Te(t,t.return,y)}}function Aa(e,t,a){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var s=u.next;n=s;do{if((n.tag&e)===e){var d=n.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,u=t;var S=a,C=y;try{C()}catch(M){Te(u,S,M)}}}n=n.next}while(n!==s)}}catch(M){Te(t,t.return,M)}}function Cd(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yf(t,a)}catch(n){Te(e,e.return,n)}}}function Ad(e,t,a){a.props=ln(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Te(e,t,n)}}function Ll(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 $t(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 zd(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 _s(e,t,a){try{var n=e.stateNode;Ay(n,e.type,a,t),n[st]=t}catch(u){Te(e,e.return,u)}}function Nd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nd(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&&Da(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 Cs(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=It));else if(n!==4&&(n===27&&Da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Cs(e,t,a),e=e.sibling;e!==null;)Cs(e,t,a),e=e.sibling}function au(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&&Da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(au(e,t,a),e=e.sibling;e!==null;)au(e,t,a),e=e.sibling}function wd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);lt(t,n,a),t[et]=e,t[st]=a}catch(s){Te(e,e.return,s)}}var sa=!1,Xe=!1,As=!1,jd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function ry(e,t){if(e=e.containerInfo,Js=Tu,e=Vc(e),xr(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,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var d=0,y=-1,S=-1,C=0,M=0,k=e,A=null;t:for(;;){for(var w;k!==a||u!==0&&k.nodeType!==3||(y=d+u),k!==s||n!==0&&k.nodeType!==3||(S=d+n),k.nodeType===3&&(d+=k.nodeValue.length),(w=k.firstChild)!==null;)A=k,k=w;for(;;){if(k===e)break t;if(A===a&&++C===u&&(y=d),A===s&&++M===n&&(S=d),(w=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=w}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Fs={focusedElem:e,selectionRange:a},Tu=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,s=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&&s!==null){e=void 0,a=t,u=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var $=ln(a.type,u);e=n.getSnapshotBeforeUpdate($,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Te(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ps(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ps(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,Ie=e;break}Ie=t.return}}function Md(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:ca(e,a),n&4&&Ml(5,a);break;case 1:if(ca(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Te(a,a.return,d)}else{var u=ln(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Te(a,a.return,d)}}n&64&&Cd(a),n&512&&Ll(a,a.return);break;case 3:if(ca(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{yf(e,t)}catch(d){Te(a,a.return,d)}}break;case 27:t===null&&n&4&&wd(a);case 26:case 5:ca(e,a),t===null&&n&4&&zd(a),n&512&&Ll(a,a.return);break;case 12:ca(e,a);break;case 31:ca(e,a),n&4&&Ud(e,a);break;case 13:ca(e,a),n&4&&kd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=py.bind(null,a),Uy(e,a))));break;case 22:if(n=a.memoizedState!==null||sa,!n){t=t!==null&&t.memoizedState!==null||Xe,u=sa;var s=Xe;sa=n,(Xe=t)&&!s?fa(e,a,(a.subtreeFlags&8772)!==0):ca(e,a),sa=u,Xe=s}break;case 30:break;default:ca(e,a)}}function Ld(e){var t=e.alternate;t!==null&&(e.alternate=null,Ld(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lr(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 Me=null,ct=!1;function oa(e,t,a){for(a=a.child;a!==null;)Dd(e,t,a),a=a.sibling}function Dd(e,t,a){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(ll,a)}catch{}switch(a.tag){case 26:Xe||$t(a,t),oa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Xe||$t(a,t);var n=Me,u=ct;Da(a.type)&&(Me=a.stateNode,ct=!1),oa(e,t,a),Vl(a.stateNode),Me=n,ct=u;break;case 5:Xe||$t(a,t);case 6:if(n=Me,u=ct,Me=null,oa(e,t,a),Me=n,ct=u,Me!==null)if(ct)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(s){Te(a,t,s)}else try{Me.removeChild(a.stateNode)}catch(s){Te(a,t,s)}break;case 18:Me!==null&&(ct?(e=Me,Ch(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wn(e)):Ch(Me,a.stateNode));break;case 4:n=Me,u=ct,Me=a.stateNode.containerInfo,ct=!0,oa(e,t,a),Me=n,ct=u;break;case 0:case 11:case 14:case 15:Aa(2,a,t),Xe||Aa(4,a,t),oa(e,t,a);break;case 1:Xe||($t(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Ad(a,t,n)),oa(e,t,a);break;case 21:oa(e,t,a);break;case 22:Xe=(n=Xe)||a.memoizedState!==null,oa(e,t,a),Xe=n;break;default:oa(e,t,a)}}function Ud(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wn(e)}catch(a){Te(t,t.return,a)}}}function kd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wn(e)}catch(a){Te(t,t.return,a)}}function sy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new jd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new jd),t;default:throw Error(o(435,e.tag))}}function nu(e,t){var a=sy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var u=yy.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],s=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Da(y.type)){Me=y.stateNode,ct=!1;break e}break;case 5:Me=y.stateNode,ct=!1;break e;case 3:case 4:Me=y.stateNode.containerInfo,ct=!0;break e}y=y.return}if(Me===null)throw Error(o(160));Dd(s,d,u),Me=null,ct=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hd(t,e),t=t.sibling}var Gt=null;function Hd(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||$t(a,a.return)),n&64&&sa&&(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=Gt;if(ft(t,e),dt(e),n&512&&(Xe||a===null||$t(a,a.return)),n&4){var s=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":s=u.getElementsByTagName("title")[0],(!s||s[rl]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(n),u.head.insertBefore(s,u.querySelector("head > title"))),lt(s,n,a),s[et]=e,We(s),n=s;break e;case"link":var d=Hh("link","href",u).get(n+(a.href||""));if(d){for(var y=0;y<d.length;y++)if(s=d[y],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(y,1);break t}}s=u.createElement(n),lt(s,n,a),u.head.appendChild(s);break;case"meta":if(d=Hh("meta","content",u).get(n+(a.content||""))){for(y=0;y<d.length;y++)if(s=d[y],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(y,1);break t}}s=u.createElement(n),lt(s,n,a),u.head.appendChild(s);break;default:throw Error(o(468,n))}s[et]=e,We(s),n=s}e.stateNode=n}else Bh(u,e.type,e.stateNode);else e.stateNode=kh(u,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?Bh(u,e.type,e.stateNode):kh(u,n,e.memoizedProps)):n===null&&e.stateNode!==null&&_s(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),n&512&&(Xe||a===null||$t(a,a.return)),a!==null&&n&4&&_s(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),n&512&&(Xe||a===null||$t(a,a.return)),e.flags&32){u=e.stateNode;try{Sn(u,"")}catch($){Te(e,e.return,$)}}n&4&&e.stateNode!=null&&(u=e.memoizedProps,_s(e,u,a!==null?a.memoizedProps:u)),n&1024&&(As=!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($){Te(e,e.return,$)}}break;case 3:if(bu=null,u=Gt,Gt=yu(t.containerInfo),ft(t,e),Gt=u,dt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch($){Te(e,e.return,$)}As&&(As=!1,Bd(e));break;case 4:n=Gt,Gt=yu(e.stateNode.containerInfo),ft(t,e),dt(e),Gt=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,nu(e,n)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(iu=gt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,nu(e,n)));break;case 22:u=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,C=sa,M=Xe;if(sa=C||u,Xe=M||S,ft(t,e),Xe=M,sa=C,dt(e),n&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||S||sa||Xe||un(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(s=S.stateNode,u)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var k=S.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;y.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch($){Te(S,S.return,$)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=u?"":S.memoizedProps}catch($){Te(S,S.return,$)}}}else if(t.tag===18){if(a===null){S=t;try{var w=S.stateNode;u?Ah(w,!0):Ah(S.stateNode,!1)}catch($){Te(S,S.return,$)}}}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,nu(e,a))));break;case 19:ft(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,nu(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(Nd(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,s=Os(e);au(e,s,u);break;case 5:var d=a.stateNode;a.flags&32&&(Sn(d,""),a.flags&=-33);var y=Os(e);au(e,y,d);break;case 3:case 4:var S=a.stateNode.containerInfo,C=Os(e);Cs(e,C,S);break;default:throw Error(o(161))}}catch(M){Te(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Md(e,t.alternate,t),t=t.sibling}function un(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),un(t);break;case 1:$t(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Ad(t,t.return,a),un(t);break;case 27:Vl(t.stateNode);case 26:case 5:$t(t,t.return),un(t);break;case 22:t.memoizedState===null&&un(t);break;case 30:un(t);break;default:un(t)}e=e.sibling}}function fa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,u=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:fa(u,s,a),Ml(4,s);break;case 1:if(fa(u,s,a),n=s,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(C){Te(n,n.return,C)}if(n=s,u=n.updateQueue,u!==null){var y=n.stateNode;try{var S=u.shared.hiddenCallbacks;if(S!==null)for(u.shared.hiddenCallbacks=null,u=0;u<S.length;u++)pf(S[u],y)}catch(C){Te(n,n.return,C)}}a&&d&64&&Cd(s),Ll(s,s.return);break;case 27:wd(s);case 26:case 5:fa(u,s,a),a&&n===null&&d&4&&zd(s),Ll(s,s.return);break;case 12:fa(u,s,a);break;case 31:fa(u,s,a),a&&d&4&&Ud(u,s);break;case 13:fa(u,s,a),a&&d&4&&kd(u,s);break;case 22:s.memoizedState===null&&fa(u,s,a),Ll(s,s.return);break;case 30:break;default:fa(u,s,a)}t=t.sibling}}function zs(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&&Sl(a))}function Ns(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sl(e))}function Vt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qd(e,t,a,n),t=t.sibling}function qd(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&&Sl(e)));break;case 12:if(u&2048){Vt(e,t,a,n),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,y=s.onPostCommit;typeof y=="function"&&y(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:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?Vt(e,t,a,n):Dl(e,t):s._visibility&2?Vt(e,t,a,n):(s._visibility|=2,qn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),u&2048&&zs(d,t);break;case 24:Vt(e,t,a,n),u&2048&&Ns(t.alternate,t);break;default:Vt(e,t,a,n)}}function qn(e,t,a,n,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,d=t,y=a,S=n,C=d.flags;switch(d.tag){case 0:case 11:case 15:qn(s,d,y,S,u),Ml(8,d);break;case 23:break;case 22:var M=d.stateNode;d.memoizedState!==null?M._visibility&2?qn(s,d,y,S,u):Dl(s,d):(M._visibility|=2,qn(s,d,y,S,u)),u&&C&2048&&zs(d.alternate,d);break;case 24:qn(s,d,y,S,u),u&&C&2048&&Ns(d.alternate,d);break;default:qn(s,d,y,S,u)}t=t.sibling}}function Dl(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:Dl(a,n),u&2048&&zs(n.alternate,n);break;case 24:Dl(a,n),u&2048&&Ns(n.alternate,n);break;default:Dl(a,n)}t=t.sibling}}var Ul=8192;function Yn(e,t,a){if(e.subtreeFlags&Ul)for(e=e.child;e!==null;)Yd(e,t,a),e=e.sibling}function Yd(e,t,a){switch(e.tag){case 26:Yn(e,t,a),e.flags&Ul&&e.memoizedState!==null&&$y(a,Gt,e.memoizedState,e.memoizedProps);break;case 5:Yn(e,t,a);break;case 3:case 4:var n=Gt;Gt=yu(e.stateNode.containerInfo),Yn(e,t,a),Gt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ul,Ul=16777216,Yn(e,t,a),Ul=n):Yn(e,t,a));break;default:Yn(e,t,a)}}function Gd(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 kl(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];Ie=n,Kd(n,e)}Gd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vd(e),e=e.sibling}function Vd(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,lu(e)):kl(e);break;default:kl(e)}}function lu(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];Ie=n,Kd(n,e)}Gd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),lu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,lu(t));break;default:lu(t)}e=e.sibling}}function Kd(e,t){for(;Ie!==null;){var a=Ie;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:Sl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Ie=n;else e:for(a=e;Ie!==null;){n=Ie;var u=n.sibling,s=n.return;if(Ld(n),n===a){Ie=null;break e}if(u!==null){u.return=s,Ie=u;break e}Ie=s}}}var oy={getCacheForType:function(e){var t=at(Ge),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Ge).controller.signal}},cy=typeof WeakMap=="function"?WeakMap:Map,be=0,Ce=null,fe=null,he=0,Ee=0,Et=null,za=!1,Gn=!1,ws=!1,da=0,ke=0,Na=0,rn=0,js=0,Tt=0,Vn=0,Hl=null,ht=null,Ms=!1,iu=0,Xd=0,uu=1/0,ru=null,wa=null,Ze=0,ja=null,Kn=null,ha=0,Ls=0,Ds=null,Qd=null,Bl=0,Us=null;function Rt(){return(be&2)!==0&&he!==0?he&-he:j.T!==null?Gs():rc()}function Zd(){if(Tt===0)if((he&536870912)===0||ge){var e=gi;gi<<=1,(gi&3932160)===0&&(gi=262144),Tt=e}else Tt=536870912;return e=St.current,e!==null&&(e.flags|=32),Tt}function mt(e,t,a){(e===Ce&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Xn(e,0),Ma(e,he,Tt,!1)),ul(e,a),((be&2)===0||e!==Ce)&&(e===Ce&&((be&2)===0&&(rn|=a),ke===4&&Ma(e,he,Tt,!1)),Jt(e))}function $d(e,t,a){if((be&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||il(e,t),u=n?hy(e,t):Hs(e,t,!0),s=n;do{if(u===0){Gn&&!n&&Ma(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!fy(a)){u=Hs(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;u=Hl;var S=y.current.memoizedState.isDehydrated;if(S&&(Xn(y,d).flags|=256),d=Hs(y,d,!1),d!==2){if(ws&&!S){y.errorRecoveryDisabledLanes|=s,rn|=s,u=4;break e}s=ht,ht=u,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}u=d}if(s=!1,u!==2)continue}}if(u===1){Xn(e,0),Ma(e,t,0,!0);break}e:{switch(n=e,s=u,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ma(n,t,Tt,!za);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=iu+300-gt(),10<u)){if(Ma(n,t,Tt,!za),yi(n,0,!0)!==0)break e;ha=t,n.timeoutHandle=_h(Jd.bind(null,n,a,ht,ru,Ms,t,Tt,rn,Vn,za,s,"Throttled",-0,0),u);break e}Jd(n,a,ht,ru,Ms,t,Tt,rn,Vn,za,s,null,-0,0)}}break}while(!0);Jt(e)}function Jd(e,t,a,n,u,s,d,y,S,C,M,k,A,w){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},Yd(t,s,k);var $=(s&62914560)===s?iu-gt():(s&4194048)===s?Xd-gt():0;if($=Jy(k,$),$!==null){ha=s,e.cancelPendingCommit=$(nh.bind(null,e,t,s,a,n,u,d,y,S,M,k,null,A,w)),Ma(e,s,d,!C);return}}nh(e,t,s,a,n,u,d,y,S)}function fy(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],s=u.getSnapshot;u=u.value;try{if(!vt(s(),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&=~js,t&=~rn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var u=t;0<u;){var s=31-yt(u),d=1<<s;n[s]=-1,u&=~d}a!==0&&lc(e,a,t)}function su(){return(be&6)===0?(ql(0),!1):!0}function ks(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,aa=Wa=null,Pr(e),Dn=null,El=0,e=fe;for(;e!==null;)Od(e.alternate,e),e=e.return;fe=null}}function Xn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,wy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ha=0,ks(),Ce=e,fe=a=ea(e.current,null),he=t,Ee=0,Et=null,za=!1,Gn=il(e,t),ws=!1,Vn=Tt=js=rn=Na=ke=0,ht=Hl=null,Ms=!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-yt(n),s=1<<u;t|=e[u],n&=~s}return da=t,zi(),a}function Fd(e,t){re=null,j.H=Nl,t===Ln||t===ki?(t=df(),Ee=3):t===Yr?(t=df(),Ee=4):Ee=t===gs?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,fe===null&&(ke=1,Wi(e,Mt(t,e.current)))}function Wd(){var e=St.current;return e===null?!0:(he&4194048)===he?kt===null:(he&62914560)===he||(he&536870912)!==0?e===kt:!1}function Id(){var e=j.H;return j.H=Nl,e===null?Nl:e}function Pd(){var e=j.A;return j.A=oy,e}function ou(){ke=4,za||(he&4194048)!==he&&St.current!==null||(Gn=!0),(Na&134217727)===0&&(rn&134217727)===0||Ce===null||Ma(Ce,he,Tt,!1)}function Hs(e,t,a){var n=be;be|=2;var u=Id(),s=Pd();(Ce!==e||he!==t)&&(ru=null,Xn(e,t)),t=!1;var d=ke;e:do try{if(Ee!==0&&fe!==null){var y=fe,S=Et;switch(Ee){case 8:ks(),d=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var C=Ee;if(Ee=0,Et=null,Qn(e,y,S,C),a&&Gn){d=0;break e}break;default:C=Ee,Ee=0,Et=null,Qn(e,y,S,C)}}dy(),d=ke;break}catch(M){Fd(e,M)}while(!0);return t&&e.shellSuspendCounter++,aa=Wa=null,be=n,j.H=u,j.A=s,fe===null&&(Ce=null,he=0,zi()),d}function dy(){for(;fe!==null;)eh(fe)}function hy(e,t){var a=be;be|=2;var n=Id(),u=Pd();Ce!==e||he!==t?(ru=null,uu=gt()+500,Xn(e,t)):Gn=il(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var s=Et;t:switch(Ee){case 1:Ee=0,Et=null,Qn(e,t,s,1);break;case 2:case 9:if(cf(s)){Ee=0,Et=null,th(t);break}t=function(){Ee!==2&&Ee!==9||Ce!==e||(Ee=7),Jt(e)},s.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:cf(s)?(Ee=0,Et=null,th(t)):(Ee=0,Et=null,Qn(e,t,s,7));break;case 5:var d=null;switch(fe.tag){case 26:d=fe.memoizedState;case 5:case 27:var y=fe;if(d?qh(d):y.stateNode.complete){Ee=0,Et=null;var S=y.sibling;if(S!==null)fe=S;else{var C=y.return;C!==null?(fe=C,cu(C)):fe=null}break t}}Ee=0,Et=null,Qn(e,t,s,5);break;case 6:Ee=0,Et=null,Qn(e,t,s,6);break;case 8:ks(),ke=6;break e;default:throw Error(o(462))}}my();break}catch(M){Fd(e,M)}while(!0);return aa=Wa=null,j.H=n,j.A=u,be=a,fe!==null?0:(Ce=null,he=0,zi(),ke)}function my(){for(;fe!==null&&!kg();)eh(fe)}function eh(e){var t=Rd(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?cu(e):fe=t}function th(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=vd(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=vd(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Pr(t);default:Od(a,t),t=fe=Ic(t,da),t=Rd(a,t,da)}e.memoizedProps=e.pendingProps,t===null?cu(e):fe=t}function Qn(e,t,a,n){aa=Wa=null,Pr(t),Dn=null,El=0;var u=t.return;try{if(ay(e,u,t,a,he)){ke=1,Wi(e,Mt(a,e.current)),fe=null;return}}catch(s){if(u!==null)throw fe=u,s;ke=1,Wi(e,Mt(a,e.current)),fe=null;return}t.flags&32768?(ge||n===1?e=!0:Gn||(he&536870912)!==0?e=!1:(za=e=!0,(n===2||n===9||n===3||n===6)&&(n=St.current,n!==null&&n.tag===13&&(n.flags|=16384))),ah(t,e)):cu(t)}function cu(e){var t=e;do{if((t.flags&32768)!==0){ah(t,za);return}e=t.return;var a=iy(t.alternate,t,da);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);ke===0&&(ke=5)}function ah(e,t){do{var a=uy(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);ke=6,fe=null}function nh(e,t,a,n,u,s,d,y,S){e.cancelPendingCommit=null;do fu();while(Ze!==0);if((be&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Or,Zg(e,a,s,d,y,S),e===Ce&&(fe=Ce=null,he=0),Kn=t,ja=e,ha=a,Ls=s,Ds=u,Qd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,vy(hi,function(){return sh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null,u=Y.p,Y.p=2,d=be,be|=4;try{ry(e,t,a)}finally{be=d,Y.p=u,j.T=n}}Ze=1,lh(),ih(),uh()}}function lh(){if(Ze===1){Ze=0;var e=ja,t=Kn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var n=Y.p;Y.p=2;var u=be;be|=4;try{Hd(t,e);var s=Fs,d=Vc(e.containerInfo),y=s.focusedElem,S=s.selectionRange;if(d!==y&&y&&y.ownerDocument&&Gc(y.ownerDocument.documentElement,y)){if(S!==null&&xr(y)){var C=S.start,M=S.end;if(M===void 0&&(M=C),"selectionStart"in y)y.selectionStart=C,y.selectionEnd=Math.min(M,y.value.length);else{var k=y.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var w=A.getSelection(),$=y.textContent.length,ee=Math.min(S.start,$),Oe=S.end===void 0?ee:Math.min(S.end,$);!w.extend&&ee>Oe&&(d=Oe,Oe=ee,ee=d);var R=Yc(y,ee),E=Yc(y,Oe);if(R&&E&&(w.rangeCount!==1||w.anchorNode!==R.node||w.anchorOffset!==R.offset||w.focusNode!==E.node||w.focusOffset!==E.offset)){var O=k.createRange();O.setStart(R.node,R.offset),w.removeAllRanges(),ee>Oe?(w.addRange(O),w.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),w.addRange(O))}}}}for(k=[],w=y;w=w.parentNode;)w.nodeType===1&&k.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<k.length;y++){var U=k[y];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Tu=!!Js,Fs=Js=null}finally{be=u,Y.p=n,j.T=a}}e.current=t,Ze=2}}function ih(){if(Ze===2){Ze=0;var e=ja,t=Kn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var n=Y.p;Y.p=2;var u=be;be|=4;try{Md(e,t.alternate,t)}finally{be=u,Y.p=n,j.T=a}}Ze=3}}function uh(){if(Ze===4||Ze===3){Ze=0,Hg();var e=ja,t=Kn,a=ha,n=Qd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Kn=ja=null,rh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(wa=null),ar(a),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(ll,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=j.T,u=Y.p,Y.p=2,j.T=null;try{for(var s=e.onRecoverableError,d=0;d<n.length;d++){var y=n[d];s(y.value,{componentStack:y.stack})}}finally{j.T=t,Y.p=u}}(ha&3)!==0&&fu(),Jt(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Us?Bl++:(Bl=0,Us=e):Bl=0,ql(0)}}function rh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Sl(t)))}function fu(){return lh(),ih(),uh(),sh()}function sh(){if(Ze!==5)return!1;var e=ja,t=Ls;Ls=0;var a=ar(ha),n=j.T,u=Y.p;try{Y.p=32>a?32:a,j.T=null,a=Ds,Ds=null;var s=ja,d=ha;if(Ze=0,Kn=ja=null,ha=0,(be&6)!==0)throw Error(o(331));var y=be;if(be|=4,Vd(s.current),qd(s,s.current,d,a),be=y,ql(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(ll,s)}catch{}return!0}finally{Y.p=u,j.T=n,rh(e,t)}}function oh(e,t,a){t=Mt(a,t),t=ms(e.stateNode,t,2),e=_a(e,t,2),e!==null&&(ul(e,2),Jt(e))}function Te(e,t,a){if(e.tag===3)oh(e,e,a);else for(;t!==null;){if(t.tag===3){oh(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(wa===null||!wa.has(n))){e=Mt(a,e),a=cd(2),n=_a(t,a,2),n!==null&&(fd(a,n,t,e),ul(n,2),Jt(n));break}}t=t.return}}function Bs(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new cy;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)||(ws=!0,u.add(a),e=gy.bind(null,e,t,a),t.then(e,e))}function gy(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ce===e&&(he&a)===a&&(ke===4||ke===3&&(he&62914560)===he&&300>gt()-iu?(be&2)===0&&Xn(e,0):js|=a,Vn===he&&(Vn=0)),Jt(e)}function ch(e,t){t===0&&(t=nc()),e=$a(e,t),e!==null&&(ul(e,t),Jt(e))}function py(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ch(e,a)}function yy(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),ch(e,a)}function vy(e,t){return Iu(e,t)}var du=null,Zn=null,qs=!1,hu=!1,Ys=!1,La=0;function Jt(e){e!==Zn&&e.next===null&&(Zn===null?du=Zn=e:Zn=Zn.next=e),hu=!0,qs||(qs=!0,Sy())}function ql(e,t){if(!Ys&&hu){Ys=!0;do for(var a=!1,n=du;n!==null;){if(e!==0){var u=n.pendingLanes;if(u===0)var s=0;else{var d=n.suspendedLanes,y=n.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=u&~(d&~y),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,mh(n,s))}else s=he,s=yi(n,n===Ce?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||il(n,s)||(a=!0,mh(n,s));n=n.next}while(a);Ys=!1}}function by(){fh()}function fh(){hu=qs=!1;var e=0;La!==0&&Ny()&&(e=La);for(var t=gt(),a=null,n=du;n!==null;){var u=n.next,s=dh(n,t);s===0?(n.next=null,a===null?du=u:a.next=u,u===null&&(Zn=a)):(a=n,(e!==0||(s&3)!==0)&&(hu=!0)),n=u}Ze!==0&&Ze!==5||ql(e),La!==0&&(La=0)}function dh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-yt(s),y=1<<d,S=u[d];S===-1?((y&a)===0||(y&n)!==0)&&(u[d]=Qg(y,t)):S<=t&&(e.expiredLanes|=y),s&=~y}if(t=Ce,a=he,a=yi(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&&Pu(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||il(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Pu(n),ar(a)){case 2:case 8:a=tc;break;case 32:a=hi;break;case 268435456:a=ac;break;default:a=hi}return n=hh.bind(null,e),a=Iu(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Pu(n),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(fu()&&e.callbackNode!==a)return null;var n=he;return n=yi(e,e===Ce?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:($d(e,n,t),dh(e,gt()),e.callbackNode!=null&&e.callbackNode===a?hh.bind(null,e):null)}function mh(e,t){if(fu())return null;$d(e,t,!0)}function Sy(){jy(function(){(be&6)!==0?Iu(ec,by):fh()})}function Gs(){if(La===0){var e=jn;e===0&&(e=mi,mi<<=1,(mi&261888)===0&&(mi=256)),La=e}return La}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function ph(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 xy(e,t,a,n,u){if(t==="submit"&&a&&a.stateNode===u){var s=gh((u[st]||null).action),d=n.submitter;d&&(t=(t=d[st]||null)?gh(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var y=new _i("action","action",null,n,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(La!==0){var S=d?ph(u,d):new FormData(u);ss(a,{pending:!0,data:S,method:u.method,action:s},null,S)}}else typeof s=="function"&&(y.preventDefault(),S=d?ph(u,d):new FormData(u),ss(a,{pending:!0,data:S,method:u.method,action:s},s,S))},currentTarget:u}]})}}for(var Vs=0;Vs<_r.length;Vs++){var Ks=_r[Vs],Ey=Ks.toLowerCase(),Ty=Ks[0].toUpperCase()+Ks.slice(1);Yt(Ey,"on"+Ty)}Yt(Qc,"onAnimationEnd"),Yt(Zc,"onAnimationIteration"),Yt($c,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Bp,"onTransitionRun"),Yt(qp,"onTransitionStart"),Yt(Yp,"onTransitionCancel"),Yt(Jc,"onTransitionEnd"),vn("onMouseEnter",["mouseout","mouseover"]),vn("onMouseLeave",["mouseout","mouseover"]),vn("onPointerEnter",["pointerout","pointerover"]),vn("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="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(" "),Ry=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yl));function yh(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 s=void 0;if(t)for(var d=n.length-1;0<=d;d--){var y=n[d],S=y.instance,C=y.currentTarget;if(y=y.listener,S!==s&&u.isPropagationStopped())break e;s=y,u.currentTarget=C;try{s(u)}catch(M){Ai(M)}u.currentTarget=null,s=S}else for(d=0;d<n.length;d++){if(y=n[d],S=y.instance,C=y.currentTarget,y=y.listener,S!==s&&u.isPropagationStopped())break e;s=y,u.currentTarget=C;try{s(u)}catch(M){Ai(M)}u.currentTarget=null,s=S}}}}function de(e,t){var a=t[nr];a===void 0&&(a=t[nr]=new Set);var n=e+"__bubble";a.has(n)||(vh(t,e,2,!1),a.add(n))}function Xs(e,t,a){var n=0;t&&(n|=4),vh(a,e,n,t)}var mu="_reactListening"+Math.random().toString(36).slice(2);function Qs(e){if(!e[mu]){e[mu]=!0,cc.forEach(function(a){a!=="selectionchange"&&(Ry.has(a)||Xs(a,!1,e),Xs(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mu]||(t[mu]=!0,Xs("selectionchange",!1,t))}}function vh(e,t,a,n){switch(Zh(t)){case 2:var u=Iy;break;case 8:u=Py;break;default:u=ro}a=u.bind(null,t,a,e),u=void 0,!dr||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 Zs(e,t,a,n,u){var s=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 y=n.stateNode.containerInfo;if(y===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(;y!==null;){if(d=gn(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){n=s=d;continue e}y=y.parentNode}}n=n.return}Ec(function(){var C=s,M=cr(a),k=[];e:{var A=Fc.get(e);if(A!==void 0){var w=_i,$=e;switch(e){case"keypress":if(Ti(a)===0)break e;case"keydown":case"keyup":w=yp;break;case"focusin":$="focus",w=pr;break;case"focusout":$="blur",w=pr;break;case"beforeblur":case"afterblur":w=pr;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":w=_c;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=ip;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Sp;break;case Qc:case Zc:case $c:w=sp;break;case Jc:w=Ep;break;case"scroll":case"scrollend":w=np;break;case"wheel":w=Rp;break;case"copy":case"cut":case"paste":w=cp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Cc;break;case"toggle":case"beforetoggle":w=Op}var ee=(t&4)!==0,Oe=!ee&&(e==="scroll"||e==="scrollend"),R=ee?A!==null?A+"Capture":null:A;ee=[];for(var E=C,O;E!==null;){var U=E;if(O=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||O===null||R===null||(U=ol(E,R),U!=null&&ee.push(Gl(E,U,O))),Oe)break;E=E.return}0<ee.length&&(A=new w(A,$,null,a,M),k.push({event:A,listeners:ee}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",A&&a!==or&&($=a.relatedTarget||a.fromElement)&&(gn($)||$[mn]))break e;if((w||A)&&(A=M.window===M?M:(A=M.ownerDocument)?A.defaultView||A.parentWindow:window,w?($=a.relatedTarget||a.toElement,w=C,$=$?gn($):null,$!==null&&(Oe=f($),ee=$.tag,$!==Oe||ee!==5&&ee!==27&&ee!==6)&&($=null)):(w=null,$=C),w!==$)){if(ee=_c,U="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Cc,U="onPointerLeave",R="onPointerEnter",E="pointer"),Oe=w==null?A:sl(w),O=$==null?A:sl($),A=new ee(U,E+"leave",w,a,M),A.target=Oe,A.relatedTarget=O,U=null,gn(M)===C&&(ee=new ee(R,E+"enter",$,a,M),ee.target=O,ee.relatedTarget=Oe,U=ee),Oe=U,w&&$)t:{for(ee=_y,R=w,E=$,O=0,U=R;U;U=ee(U))O++;U=0;for(var I=E;I;I=ee(I))U++;for(;0<O-U;)R=ee(R),O--;for(;0<U-O;)E=ee(E),U--;for(;O--;){if(R===E||E!==null&&R===E.alternate){ee=R;break t}R=ee(R),E=ee(E)}ee=null}else ee=null;w!==null&&bh(k,A,w,ee,!1),$!==null&&Oe!==null&&bh(k,Oe,$,ee,!0)}}e:{if(A=C?sl(C):window,w=A.nodeName&&A.nodeName.toLowerCase(),w==="select"||w==="input"&&A.type==="file")var ye=Dc;else if(Mc(A))if(Uc)ye=Up;else{ye=Lp;var F=Mp}else w=A.nodeName,!w||w.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?C&&sr(C.elementType)&&(ye=Dc):ye=Dp;if(ye&&(ye=ye(e,C))){Lc(k,ye,a,M);break e}F&&F(e,A,C),e==="focusout"&&C&&A.type==="number"&&C.memoizedProps.value!=null&&rr(A,"number",A.value)}switch(F=C?sl(C):window,e){case"focusin":(Mc(F)||F.contentEditable==="true")&&(Rn=F,Er=C,yl=null);break;case"focusout":yl=Er=Rn=null;break;case"mousedown":Tr=!0;break;case"contextmenu":case"mouseup":case"dragend":Tr=!1,Kc(k,a,M);break;case"selectionchange":if(Hp)break;case"keydown":case"keyup":Kc(k,a,M)}var oe;if(vr)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 Tn?wc(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(Ac&&a.locale!=="ko"&&(Tn||me!=="onCompositionStart"?me==="onCompositionEnd"&&Tn&&(oe=Tc()):(va=M,hr="value"in va?va.value:va.textContent,Tn=!0)),F=gu(C,me),0<F.length&&(me=new Oc(me,e,null,a,M),k.push({event:me,listeners:F}),oe?me.data=oe:(oe=jc(a),oe!==null&&(me.data=oe)))),(oe=Ap?zp(e,a):Np(e,a))&&(me=gu(C,"onBeforeInput"),0<me.length&&(F=new Oc("onBeforeInput","beforeinput",null,a,M),k.push({event:F,listeners:me}),F.data=oe)),xy(k,e,C,a,M)}yh(k,t)})}function Gl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function gu(e,t){for(var a=t+"Capture",n=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=ol(e,a),u!=null&&n.unshift(Gl(e,u,s)),u=ol(e,t),u!=null&&n.push(Gl(e,u,s))),e.tag===3)return n;e=e.return}return[]}function _y(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bh(e,t,a,n,u){for(var s=t._reactName,d=[];a!==null&&a!==n;){var y=a,S=y.alternate,C=y.stateNode;if(y=y.tag,S!==null&&S===n)break;y!==5&&y!==26&&y!==27||C===null||(S=C,u?(C=ol(a,s),C!=null&&d.unshift(Gl(a,C,S))):u||(C=ol(a,s),C!=null&&d.push(Gl(a,C,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var Oy=/\r\n?/g,Cy=/\u0000|\uFFFD/g;function Sh(e){return(typeof e=="string"?e:""+e).replace(Oy,`
165
- `).replace(Cy,"")}function xh(e,t){return t=Sh(t),Sh(e)===t}function _e(e,t,a,n,u,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Sn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Sn(e,""+n);break;case"className":bi(e,"class",n);break;case"tabIndex":bi(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":bi(e,a,n);break;case"style":Sc(e,n,s);break;case"data":if(t!=="object"){bi(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=xi(""+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 s=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",u.name,u,null),_e(e,t,"formEncType",u.formEncType,u,null),_e(e,t,"formMethod",u.formMethod,u,null),_e(e,t,"formTarget",u.formTarget,u,null)):(_e(e,t,"encType",u.encType,u,null),_e(e,t,"method",u.method,u,null),_e(e,t,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=xi(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=It);break;case"onScroll":n!=null&&de("scroll",e);break;case"onScrollEnd":n!=null&&de("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=xi(""+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":de("beforetoggle",e),de("toggle",e),vi(e,"popover",n);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":vi(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=tp.get(a)||a,vi(e,a,n))}}function $s(e,t,a,n,u,s){switch(a){case"style":Sc(e,n,s);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"?Sn(e,n):(typeof n=="number"||typeof n=="bigint")&&Sn(e,""+n);break;case"onScroll":n!=null&&de("scroll",e);break;case"onScrollEnd":n!=null&&de("scrollend",e);break;case"onClick":n!=null&&(e.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),s=e[st]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof n=="function")){typeof s!="function"&&s!==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,""):vi(e,a,n)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var n=!1,u=!1,s;for(s in a)if(a.hasOwnProperty(s)){var d=a[s];if(d!=null)switch(s){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:_e(e,t,s,d,a,null)}}u&&_e(e,t,"srcSet",a.srcSet,a,null),n&&_e(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var y=s=d=u=null,S=null,C=null;for(n in a)if(a.hasOwnProperty(n)){var M=a[n];if(M!=null)switch(n){case"name":u=M;break;case"type":d=M;break;case"checked":S=M;break;case"defaultChecked":C=M;break;case"value":s=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:_e(e,t,n,M,a,null)}}pc(e,s,y,S,C,d,u,!1);return;case"select":de("invalid",e),n=d=s=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":s=y;break;case"defaultValue":d=y;break;case"multiple":n=y;default:_e(e,t,u,y,a,null)}t=s,a=d,e.multiple=!!n,t!=null?bn(e,!!n,t,!1):a!=null&&bn(e,!!n,a,!0);return;case"textarea":de("invalid",e),s=u=n=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case"value":n=y;break;case"defaultValue":u=y;break;case"children":s=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:_e(e,t,d,y,a,null)}vc(e,n,u,s);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:_e(e,t,S,n,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(n=0;n<Yl.length;n++)de(Yl[n],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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:_e(e,t,C,n,a,null)}return;default:if(sr(t)){for(M in a)a.hasOwnProperty(M)&&(n=a[M],n!==void 0&&$s(e,t,M,n,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(n=a[y],n!=null&&_e(e,t,y,n,a,null))}function Ay(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,s=null,d=null,y=null,S=null,C=null,M=null;for(w in a){var k=a[w];if(a.hasOwnProperty(w)&&k!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":S=k;default:n.hasOwnProperty(w)||_e(e,t,w,null,n,k)}}for(var A in n){var w=n[A];if(k=a[A],n.hasOwnProperty(A)&&(w!=null||k!=null))switch(A){case"type":s=w;break;case"name":u=w;break;case"checked":C=w;break;case"defaultChecked":M=w;break;case"value":d=w;break;case"defaultValue":y=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:w!==k&&_e(e,t,A,w,n,k)}}ur(e,d,y,S,C,M,s,u);return;case"select":w=d=y=A=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":w=S;default:n.hasOwnProperty(s)||_e(e,t,s,null,n,S)}for(u in n)if(s=n[u],S=a[u],n.hasOwnProperty(u)&&(s!=null||S!=null))switch(u){case"value":A=s;break;case"defaultValue":y=s;break;case"multiple":d=s;default:s!==S&&_e(e,t,u,s,n,S)}t=y,a=d,n=w,A!=null?bn(e,!!a,A,!1):!!n!=!!a&&(t!=null?bn(e,!!a,t,!0):bn(e,!!a,a?[]:"",!1));return;case"textarea":w=A=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!n.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:_e(e,t,y,null,n,u)}for(d in n)if(u=n[d],s=a[d],n.hasOwnProperty(d)&&(u!=null||s!=null))switch(d){case"value":A=u;break;case"defaultValue":w=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==s&&_e(e,t,d,u,n,s)}yc(e,A,w);return;case"option":for(var $ in a)if(A=a[$],a.hasOwnProperty($)&&A!=null&&!n.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:_e(e,t,$,null,n,A)}for(S in n)if(A=n[S],w=a[S],n.hasOwnProperty(S)&&A!==w&&(A!=null||w!=null))switch(S){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:_e(e,t,S,A,n,w)}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 ee in a)A=a[ee],a.hasOwnProperty(ee)&&A!=null&&!n.hasOwnProperty(ee)&&_e(e,t,ee,null,n,A);for(C in n)if(A=n[C],w=a[C],n.hasOwnProperty(C)&&A!==w&&(A!=null||w!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:_e(e,t,C,A,n,w)}return;default:if(sr(t)){for(var Oe in a)A=a[Oe],a.hasOwnProperty(Oe)&&A!==void 0&&!n.hasOwnProperty(Oe)&&$s(e,t,Oe,void 0,n,A);for(M in n)A=n[M],w=a[M],!n.hasOwnProperty(M)||A===w||A===void 0&&w===void 0||$s(e,t,M,A,n,w);return}}for(var R in a)A=a[R],a.hasOwnProperty(R)&&A!=null&&!n.hasOwnProperty(R)&&_e(e,t,R,null,n,A);for(k in n)A=n[k],w=a[k],!n.hasOwnProperty(k)||A===w||A==null&&w==null||_e(e,t,k,A,n,w)}function Eh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function zy(){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],s=u.transferSize,d=u.initiatorType,y=u.duration;if(s&&y&&Eh(d)){for(d=0,y=u.responseEnd,n+=1;n<a.length;n++){var S=a[n],C=S.startTime;if(C>y)break;var M=S.transferSize,k=S.initiatorType;M&&Eh(k)&&(S=S.responseEnd,d+=M*(S<y?1:(y-C)/(S-C)))}if(--n,t+=8*(s+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 Js=null,Fs=null;function pu(e){return e.nodeType===9?e:e.ownerDocument}function Th(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 Rh(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 Ws(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 Is=null;function Ny(){var e=window.event;return e&&e.type==="popstate"?e===Is?!1:(Is=e,!0):(Is=null,!1)}var _h=typeof setTimeout=="function"?setTimeout:void 0,wy=typeof clearTimeout=="function"?clearTimeout:void 0,Oh=typeof Promise=="function"?Promise:void 0,jy=typeof queueMicrotask=="function"?queueMicrotask:typeof Oh<"u"?function(e){return Oh.resolve(null).then(e).catch(My)}:_h;function My(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function Ch(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),Wn(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Vl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Vl(a);for(var s=a.firstChild;s;){var d=s.nextSibling,y=s.nodeName;s[rl]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=d}}else a==="body"&&Vl(e.ownerDocument.body);a=u}while(a);Wn(t)}function Ah(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 Ps(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":Ps(a),lr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Ly(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[rl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function Dy(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 zh(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 eo(e){return e.data==="$?"||e.data==="$~"}function to(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Uy(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 ao=null;function Nh(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 wh(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 jh(e,t,a){switch(t=pu(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 Vl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lr(e)}var Bt=new Map,Mh=new Set;function yu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=Y.d;Y.d={f:ky,r:Hy,D:By,C:qy,L:Yy,m:Gy,X:Ky,S:Vy,M:Xy};function ky(){var e=ma.f(),t=su();return e||t}function Hy(e){var t=pn(e);t!==null&&t.tag===5&&t.type==="form"?Ff(t):ma.r(e)}var $n=typeof document>"u"?null:document;function Lh(e,t,a){var n=$n;if(n&&typeof t=="string"&&t){var u=wt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Mh.has(u)||(Mh.add(u),e={rel:e,crossOrigin:a,href:t},n.querySelector(u)===null&&(t=n.createElement("link"),lt(t,"link",e),We(t),n.head.appendChild(t)))}}function By(e){ma.D(e),Lh("dns-prefetch",e,null)}function qy(e,t){ma.C(e,t),Lh("preconnect",e,t)}function Yy(e,t,a){ma.L(e,t,a);var n=$n;if(n&&e&&t){var u='link[rel="preload"][as="'+wt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+wt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+wt(a.imageSizes)+'"]')):u+='[href="'+wt(e)+'"]';var s=u;switch(t){case"style":s=Jn(e);break;case"script":s=Fn(e)}Bt.has(s)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bt.set(s,e),n.querySelector(u)!==null||t==="style"&&n.querySelector(Kl(s))||t==="script"&&n.querySelector(Xl(s))||(t=n.createElement("link"),lt(t,"link",e),We(t),n.head.appendChild(t)))}}function Gy(e,t){ma.m(e,t);var a=$n;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+wt(n)+'"][href="'+wt(e)+'"]',s=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Fn(e)}if(!Bt.has(s)&&(e=v({rel:"modulepreload",href:e},t),Bt.set(s,e),a.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Xl(s)))return}n=a.createElement("link"),lt(n,"link",e),We(n),a.head.appendChild(n)}}}function Vy(e,t,a){ma.S(e,t,a);var n=$n;if(n&&e){var u=yn(n).hoistableStyles,s=Jn(e);t=t||"default";var d=u.get(s);if(!d){var y={loading:0,preload:null};if(d=n.querySelector(Kl(s)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bt.get(s))&&no(e,a);var S=d=n.createElement("link");We(S),lt(S,"link",e),S._p=new Promise(function(C,M){S.onload=C,S.onerror=M}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,vu(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:y},u.set(s,d)}}}function Ky(e,t){ma.X(e,t);var a=$n;if(a&&e){var n=yn(a).hoistableScripts,u=Fn(e),s=n.get(u);s||(s=a.querySelector(Xl(u)),s||(e=v({src:e,async:!0},t),(t=Bt.get(u))&&lo(e,t),s=a.createElement("script"),We(s),lt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function Xy(e,t){ma.M(e,t);var a=$n;if(a&&e){var n=yn(a).hoistableScripts,u=Fn(e),s=n.get(u);s||(s=a.querySelector(Xl(u)),s||(e=v({src:e,async:!0,type:"module"},t),(t=Bt.get(u))&&lo(e,t),s=a.createElement("script"),We(s),lt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function Dh(e,t,a,n){var u=(u=ce.current)?yu(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=Jn(a.href),a=yn(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=Jn(a.href);var s=yn(u).hoistableStyles,d=s.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=u.querySelector(Kl(e)))&&!s._p&&(d.instance=s,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),s||Qy(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=Fn(a),a=yn(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 Jn(e){return'href="'+wt(e)+'"'}function Kl(e){return'link[rel="stylesheet"]['+e+"]"}function Uh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Qy(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}),lt(t,"link",a),We(t),e.head.appendChild(t))}function Fn(e){return'[src="'+wt(e)+'"]'}function Xl(e){return"script[async]"+e}function kh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+wt(a.href)+'"]');if(n)return t.instance=n,We(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"),We(n),lt(n,"style",u),vu(n,a.precedence,e),t.instance=n;case"stylesheet":u=Jn(a.href);var s=e.querySelector(Kl(u));if(s)return t.state.loading|=4,t.instance=s,We(s),s;n=Uh(a),(u=Bt.get(u))&&no(n,u),s=(e.ownerDocument||e).createElement("link"),We(s);var d=s;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),lt(s,"link",n),t.state.loading|=4,vu(s,a.precedence,e),t.instance=s;case"script":return s=Fn(a.src),(u=e.querySelector(Xl(s)))?(t.instance=u,We(u),u):(n=a,(u=Bt.get(s))&&(n=v({},a),lo(n,u)),e=e.ownerDocument||e,u=e.createElement("script"),We(u),lt(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,vu(n,a.precedence,e));return t.instance}function vu(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,s=u,d=0;d<n.length;d++){var y=n[d];if(y.dataset.precedence===t)s=y;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function no(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function Hh(e,t,a){if(bu===null){var n=new Map,u=bu=new Map;u.set(a,n)}else u=bu,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 s=a[u];if(!(s[rl]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var y=n.get(d);y?y.push(s):n.set(d,[s])}}return n}function Bh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Zy(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 qh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function $y(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=Jn(n.href),s=t.querySelector(Kl(u));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Su.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,We(s);return}s=t.ownerDocument||t,n=Uh(n),(u=Bt.get(u))&&no(n,u),s=s.createElement("link"),We(s);var d=s;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),lt(s,"link",n),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Su.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var io=0;function Jy(e,t){return e.stylesheets&&e.count===0&&Eu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Eu(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&io===0&&(io=62500*zy());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Eu(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>io?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xu=null;function Eu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xu=new Map,t.forEach(Fy,e),xu=null,Su.call(e))}function Fy(e,t){if(!(t.state.loading&4)){var a=xu.get(e);if(a)var n=a.get(null);else{a=new Map,xu.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var d=u[s];(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"),s=a.get(d)||n,s===n&&a.set(null,u),a.set(d,u),this.count++,n=Su.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ql={$$typeof:Q,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Wy(e,t,a,n,u,s,d,y,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=er(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=er(0),this.hiddenUpdates=er(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Yh(e,t,a,n,u,s,d,y,S,C,M,k){return e=new Wy(e,t,a,d,S,C,M,k,y),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=Hr(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},Gr(s),e}function Gh(e){return e?(e=Cn,e):Cn}function Vh(e,t,a,n,u,s){u=Gh(u),n.context===null?n.context=u:n.pendingContext=u,n=Ra(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=_a(e,n,t),a!==null&&(mt(a,e,t),Rl(a,e,t))}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function uo(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function Xh(e){if(e.tag===13||e.tag===31){var t=$a(e,67108864);t!==null&&mt(t,e,67108864),uo(e,67108864)}}function Qh(e){if(e.tag===13||e.tag===31){var t=Rt();t=tr(t);var a=$a(e,t);a!==null&&mt(a,e,t),uo(e,t)}}var Tu=!0;function Iy(e,t,a,n){var u=j.T;j.T=null;var s=Y.p;try{Y.p=2,ro(e,t,a,n)}finally{Y.p=s,j.T=u}}function Py(e,t,a,n){var u=j.T;j.T=null;var s=Y.p;try{Y.p=8,ro(e,t,a,n)}finally{Y.p=s,j.T=u}}function ro(e,t,a,n){if(Tu){var u=so(n);if(u===null)Zs(e,t,n,Ru,a),$h(e,n);else if(t0(u,e,t,a,n))n.stopPropagation();else if($h(e,n),t&4&&-1<e0.indexOf(e)){for(;u!==null;){var s=pn(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=Va(s.pendingLanes);if(d!==0){var y=s;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-yt(d);y.entanglements[1]|=S,d&=~S}Jt(s),(be&6)===0&&(uu=gt()+500,ql(0))}}break;case 31:case 13:y=$a(s,2),y!==null&&mt(y,s,2),su(),uo(s,2)}if(s=so(n),s===null&&Zs(e,t,n,Ru,a),s===u)break;u=s}u!==null&&n.stopPropagation()}else Zs(e,t,n,null,a)}}function so(e){return e=cr(e),oo(e)}var Ru=null;function oo(e){if(Ru=null,e=gn(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 Ru=e,null}function Zh(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(Bg()){case ec:return 2;case tc:return 8;case hi:case qg:return 32;case ac:return 268435456;default:return 32}default:return 32}}var co=!1,Ua=null,ka=null,Ha=null,Zl=new Map,$l=new Map,Ba=[],e0="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 $h(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(t.pointerId)}}function Jl(e,t,a,n,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[u]},t!==null&&(t=pn(t),t!==null&&Xh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function t0(e,t,a,n,u){switch(t){case"focusin":return Ua=Jl(Ua,e,t,a,n,u),!0;case"dragenter":return ka=Jl(ka,e,t,a,n,u),!0;case"mouseover":return Ha=Jl(Ha,e,t,a,n,u),!0;case"pointerover":var s=u.pointerId;return Zl.set(s,Jl(Zl.get(s)||null,e,t,a,n,u)),!0;case"gotpointercapture":return s=u.pointerId,$l.set(s,Jl($l.get(s)||null,e,t,a,n,u)),!0}return!1}function Jh(e){var t=gn(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,sc(e.priority,function(){Qh(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,sc(e.priority,function(){Qh(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 _u(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=so(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);or=n,a.target.dispatchEvent(n),or=null}else return t=pn(a),t!==null&&Xh(t),e.blockedOn=a,!1;t.shift()}return!0}function Fh(e,t,a){_u(e)&&a.delete(t)}function a0(){co=!1,Ua!==null&&_u(Ua)&&(Ua=null),ka!==null&&_u(ka)&&(ka=null),Ha!==null&&_u(Ha)&&(Ha=null),Zl.forEach(Fh),$l.forEach(Fh)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,co||(co=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,a0)))}var Cu=null;function Wh(e){Cu!==e&&(Cu=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Cu===e&&(Cu=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(oo(n||a)===null)continue;break}var s=pn(a);s!==null&&(e.splice(t,3),t-=3,ss(s,{pending:!0,data:u,method:a.method,action:n},n,u))}}))}function Wn(e){function t(S){return Ou(S,e)}Ua!==null&&Ou(Ua,e),ka!==null&&Ou(ka,e),Ha!==null&&Ou(Ha,e),Zl.forEach(t),$l.forEach(t);for(var a=0;a<Ba.length;a++){var n=Ba[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ba.length&&(a=Ba[0],a.blockedOn===null);)Jh(a),a.blockedOn===null&&Ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var u=a[n],s=a[n+1],d=u[st]||null;if(typeof s=="function")d||Wh(a);else if(d){var y=null;if(s&&s.hasAttribute("formAction")){if(u=s,d=s[st]||null)y=d.formAction;else if(oo(u)!==null)continue}else y=d.action;typeof y=="function"?a[n+1]=y:(a.splice(n,3),n-=3),Wh(a)}}}function Ih(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.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 s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 fo(e){this._internalRoot=e}Au.prototype.render=fo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=Rt();Vh(a,n,e,t,null,null)},Au.prototype.unmount=fo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vh(e.current,2,null,e,null,null),su(),t[mn]=null}};function Au(e){this._internalRoot=e}Au.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ba.length&&t!==0&&t<Ba[a].priority;a++);Ba.splice(a,0,e),a===0&&Jh(e)}};var Ph=l.version;if(Ph!=="19.2.5")throw Error(o(527,Ph,"19.2.5"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var n0={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zu.isDisabled&&zu.supportsFiber)try{ll=zu.inject(n0),pt=zu}catch{}}return Wl.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,n="",u=ud,s=rd,d=sd;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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Yh(e,1,!1,null,null,a,n,null,u,s,d,Ih),e[mn]=t.current,Qs(e),new fo(t)},Wl.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var n=!1,u="",s=ud,d=rd,y=sd,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Yh(e,1,!0,t,a??null,n,u,S,s,d,y,Ih),t.context=Gh(null),a=t.current,n=Rt(),n=tr(n),u=Ra(n),u.callback=null,_a(a,u,n),a=n,t.current.lanes=a,ul(t,a),Jt(t),e[mn]=t.current,Qs(e),new Au(t)},Wl.version="19.2.5",Wl}var cm;function tv(){if(cm)return go.exports;cm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),go.exports=ev(),go.exports}var av=tv();const nv=Qm(av);/**
164
+ `+n.stack}}var Iu=Object.prototype.hasOwnProperty,Pu=i.unstable_scheduleCallback,er=i.unstable_cancelCallback,qg=i.unstable_shouldYield,Yg=i.unstable_requestPaint,gt=i.unstable_now,Gg=i.unstable_getCurrentPriorityLevel,tc=i.unstable_ImmediatePriority,ac=i.unstable_UserBlockingPriority,mi=i.unstable_NormalPriority,Vg=i.unstable_LowPriority,nc=i.unstable_IdlePriority,Kg=i.log,Qg=i.unstable_setDisableYieldValue,ll=null,pt=null;function pa(e){if(typeof Kg=="function"&&Qg(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(ll,e)}catch{}}var yt=Math.clz32?Math.clz32:$g,Xg=Math.log,Zg=Math.LN2;function $g(e){return e>>>=0,e===0?32:31-(Xg(e)/Zg|0)|0}var gi=256,pi=262144,yi=4194304;function Va(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 vi(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var u=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=n&134217727;return y!==0?(n=y&~s,n!==0?u=Va(n):(d&=y,d!==0?u=Va(d):a||(a=y&~e,a!==0&&(u=Va(a))))):(y=n&~s,y!==0?u=Va(y):d!==0?u=Va(d):a||(a=n&~e,a!==0&&(u=Va(a)))),u===0?0:t!==0&&t!==u&&(t&s)===0&&(s=u&-u,a=t&-t,s>=a||s===32&&(a&4194048)!==0)?t:u}function il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jg(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 lc(){var e=yi;return yi<<=1,(yi&62914560)===0&&(yi=4194304),e}function tr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ul(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fg(e,t,a,n,u,s){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 y=e.entanglements,S=e.expirationTimes,O=e.hiddenUpdates;for(a=d&~a;0<a;){var M=31-yt(a),k=1<<M;y[M]=0,S[M]=-1;var A=O[M];if(A!==null)for(O[M]=null,M=0;M<A.length;M++){var w=A[M];w!==null&&(w.lane&=-536870913)}a&=~k}n!==0&&ic(e,n,0),s!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~t))}function ic(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-yt(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function uc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-yt(a),u=1<<n;u&t|e[n]&t&&(e[n]|=t),a&=~u}}function rc(e,t){var a=t&-t;return a=(a&42)!==0?1:ar(a),(a&(e.suspendedLanes|t))!==0?0:a}function ar(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 nr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:$h(e.type))}function oc(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var ya=Math.random().toString(36).slice(2),et="__reactFiber$"+ya,st="__reactProps$"+ya,mn="__reactContainer$"+ya,lr="__reactEvents$"+ya,Wg="__reactListeners$"+ya,Ig="__reactHandles$"+ya,cc="__reactResources$"+ya,rl="__reactMarker$"+ya;function ir(e){delete e[et],delete e[st],delete e[lr],delete e[Wg],delete e[Ig]}function gn(e){var t=e[et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[mn]||a[et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=jh(e);e!==null;){if(a=e[et])return a;e=jh(e)}return t}e=a,a=e.parentNode}return null}function pn(e){if(e=e[et]||e[mn]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function sl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function yn(e){var t=e[cc];return t||(t=e[cc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[rl]=!0}var fc=new Set,dc={};function Ka(e,t){vn(e,t),vn(e+"Capture",t)}function vn(e,t){for(dc[e]=t,e=0;e<t.length;e++)fc.add(t[e])}var Pg=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]*$"),hc={},mc={};function ep(e){return Iu.call(mc,e)?!0:Iu.call(hc,e)?!1:Pg.test(e)?mc[e]=!0:(hc[e]=!0,!1)}function bi(e,t,a){if(ep(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 Si(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 Wt(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 Nt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tp(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,s.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 ur(e){if(!e._valueTracker){var t=gc(e)?"checked":"value";e._valueTracker=tp(e,t,""+e[t])}}function pc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=gc(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function xi(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 ap=/[\n"\\]/g;function wt(e){return e.replace(ap,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rr(e,t,a,n,u,s,d,y){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=""+Nt(t)):e.value!==""+Nt(t)&&(e.value=""+Nt(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?sr(e,d,Nt(t)):a!=null?sr(e,d,Nt(a)):n!=null&&e.removeAttribute("value"),u==null&&s!=null&&(e.defaultChecked=!!s),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Nt(y):e.removeAttribute("name")}function yc(e,t,a,n,u,s,d,y){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){ur(e);return}a=a!=null?""+Nt(a):"",t=t!=null?""+Nt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=y?e.checked:!!n,e.defaultChecked=!!n,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),ur(e)}function sr(e,t,a){t==="number"&&xi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function bn(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=""+Nt(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 vc(e,t,a){if(t!=null&&(t=""+Nt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Nt(a):""}function bc(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(o(92));if(De(n)){if(1<n.length)throw Error(o(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Nt(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),ur(e)}function Sn(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var np=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 Sc(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||np.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xc(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&&Sc(e,u,n)}else for(var s in t)t.hasOwnProperty(s)&&Sc(e,s,t[s])}function or(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 lp=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"]]),ip=/^[\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 Ei(e){return ip.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function It(){}var cr=null;function fr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,En=null;function Ec(e){var t=pn(e);if(t&&(e=t.stateNode)){var a=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(rr(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="'+wt(""+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));rr(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&&pc(n)}break e;case"textarea":vc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&bn(e,!!a.multiple,t,!1)}}}var dr=!1;function Tc(e,t,a){if(dr)return e(t,a);dr=!0;try{var n=e(t);return n}finally{if(dr=!1,(xn!==null||En!==null)&&(ou(),xn&&(t=xn,e=En,En=xn=null,Ec(t),e)))for(t=0;t<e.length;t++)Ec(e[t])}}function ol(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 Pt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hr=!1;if(Pt)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){hr=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{hr=!1}var va=null,mr=null,Ti=null;function Rc(){if(Ti)return Ti;var e,t=mr,a=t.length,n,u="value"in va?va.value:va.textContent,s=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[s-n];n++);return Ti=u.slice(e,1<n?1-n:void 0)}function Ri(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 _i(){return!0}function _c(){return!1}function ot(e){function t(a,n,u,s,d){this._reactName=a,this._targetInst=u,this.type=n,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(s):s[y]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?_i:_c,this.isPropagationStopped=_c,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=_i)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=_i)},persist:function(){},isPersistent:_i}),t}var Qa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ci=ot(Qa),fl=v({},Qa,{view:0,detail:0}),up=ot(fl),gr,pr,dl,Oi=v({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vr,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!==dl&&(dl&&e.type==="mousemove"?(gr=e.screenX-dl.screenX,pr=e.screenY-dl.screenY):pr=gr=0,dl=e),gr)},movementY:function(e){return"movementY"in e?e.movementY:pr}}),Cc=ot(Oi),rp=v({},Oi,{dataTransfer:0}),sp=ot(rp),op=v({},fl,{relatedTarget:0}),yr=ot(op),cp=v({},Qa,{animationName:0,elapsedTime:0,pseudoElement:0}),fp=ot(cp),dp=v({},Qa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hp=ot(dp),mp=v({},Qa,{data:0}),Oc=ot(mp),gp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pp={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"},yp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=yp[e])?!!t[e]:!1}function vr(){return vp}var bp=v({},fl,{key:function(e){if(e.key){var t=gp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vr,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sp=ot(bp),xp=v({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=ot(xp),Ep=v({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vr}),Tp=ot(Ep),Rp=v({},Qa,{propertyName:0,elapsedTime:0,pseudoElement:0}),_p=ot(Rp),Cp=v({},Oi,{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}),Op=ot(Cp),Ap=v({},Qa,{newState:0,oldState:0}),zp=ot(Ap),Np=[9,13,27,32],br=Pt&&"CompositionEvent"in window,hl=null;Pt&&"documentMode"in document&&(hl=document.documentMode);var wp=Pt&&"TextEvent"in window&&!hl,zc=Pt&&(!br||hl&&8<hl&&11>=hl),Nc=" ",wc=!1;function jc(e,t){switch(e){case"keyup":return Np.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function jp(e,t){switch(e){case"compositionend":return Mc(t);case"keypress":return t.which!==32?null:(wc=!0,Nc);case"textInput":return e=t.data,e===Nc&&wc?null:e;default:return null}}function Mp(e,t){if(Tn)return e==="compositionend"||!br&&jc(e,t)?(e=Rc(),Ti=mr=va=null,Tn=!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 zc&&t.locale!=="ko"?null:t.data;default:return null}}var Lp={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 Lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Lp[e.type]:t==="textarea"}function Dc(e,t,a,n){xn?En?En.push(n):En=[n]:xn=n,t=pu(t,"onChange"),0<t.length&&(a=new Ci("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var ml=null,gl=null;function Dp(e){vh(e,0)}function Ai(e){var t=sl(e);if(pc(t))return e}function Uc(e,t){if(e==="change")return t}var kc=!1;if(Pt){var Sr;if(Pt){var xr="oninput"in document;if(!xr){var Hc=document.createElement("div");Hc.setAttribute("oninput","return;"),xr=typeof Hc.oninput=="function"}Sr=xr}else Sr=!1;kc=Sr&&(!document.documentMode||9<document.documentMode)}function Bc(){ml&&(ml.detachEvent("onpropertychange",qc),gl=ml=null)}function qc(e){if(e.propertyName==="value"&&Ai(gl)){var t=[];Dc(t,gl,e,fr(e)),Tc(Dp,t)}}function Up(e,t,a){e==="focusin"?(Bc(),ml=t,gl=a,ml.attachEvent("onpropertychange",qc)):e==="focusout"&&Bc()}function kp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ai(gl)}function Hp(e,t){if(e==="click")return Ai(t)}function Bp(e,t){if(e==="input"||e==="change")return Ai(t)}function qp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vt=typeof Object.is=="function"?Object.is:qp;function pl(e,t){if(vt(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(!Iu.call(t,u)||!vt(e[u],t[u]))return!1}return!0}function Yc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gc(e,t){var a=Yc(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=Yc(a)}}function Vc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=xi(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=xi(e.document)}return t}function Er(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 Yp=Pt&&"documentMode"in document&&11>=document.documentMode,Rn=null,Tr=null,yl=null,Rr=!1;function Qc(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Rr||Rn==null||Rn!==xi(n)||(n=Rn,"selectionStart"in n&&Er(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}),yl&&pl(yl,n)||(yl=n,n=pu(Tr,"onSelect"),0<n.length&&(t=new Ci("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Rn)))}function Xa(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var _n={animationend:Xa("Animation","AnimationEnd"),animationiteration:Xa("Animation","AnimationIteration"),animationstart:Xa("Animation","AnimationStart"),transitionrun:Xa("Transition","TransitionRun"),transitionstart:Xa("Transition","TransitionStart"),transitioncancel:Xa("Transition","TransitionCancel"),transitionend:Xa("Transition","TransitionEnd")},_r={},Xc={};Pt&&(Xc=document.createElement("div").style,"AnimationEvent"in window||(delete _n.animationend.animation,delete _n.animationiteration.animation,delete _n.animationstart.animation),"TransitionEvent"in window||delete _n.transitionend.transition);function Za(e){if(_r[e])return _r[e];if(!_n[e])return e;var t=_n[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Xc)return _r[e]=t[a];return e}var Zc=Za("animationend"),$c=Za("animationiteration"),Jc=Za("animationstart"),Gp=Za("transitionrun"),Vp=Za("transitionstart"),Kp=Za("transitioncancel"),Fc=Za("transitionend"),Wc=new Map,Cr="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(" ");Cr.push("scrollEnd");function Yt(e,t){Wc.set(e,t),Ka(t,[e])}var zi=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)},jt=[],Cn=0,Or=0;function Ni(){for(var e=Cn,t=Or=Cn=0;t<e;){var a=jt[t];jt[t++]=null;var n=jt[t];jt[t++]=null;var u=jt[t];jt[t++]=null;var s=jt[t];if(jt[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}s!==0&&Ic(a,u,s)}}function wi(e,t,a,n){jt[Cn++]=e,jt[Cn++]=t,jt[Cn++]=a,jt[Cn++]=n,Or|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Ar(e,t,a,n){return wi(e,t,a,n),ji(e)}function $a(e,t){return wi(e,null,null,t),ji(e)}function Ic(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var u=!1,s=e.return;s!==null;)s.childLanes|=a,n=s.alternate,n!==null&&(n.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(u=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,u&&t!==null&&(u=31-yt(a),e=s.hiddenUpdates,n=e[u],n===null?e[u]=[t]:n.push(t),t.lane=a|536870912),s):null}function ji(e){if(50<Bl)throw Bl=0,ks=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var On={};function Qp(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 bt(e,t,a,n){return new Qp(e,t,a,n)}function zr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var a=e.alternate;return a===null?(a=bt(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 Pc(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 Mi(e,t,a,n,u,s){var d=0;if(n=e,typeof e=="function")zr(e)&&(d=1);else if(typeof e=="string")d=Fy(e,a,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=bt(31,a,t,u),e.elementType=le,e.lanes=s,e;case H:return Ja(a.children,u,s,t);case B:d=8,u|=24;break;case q:return e=bt(12,a,t,u|2),e.elementType=q,e.lanes=s,e;case V:return e=bt(13,a,t,u),e.elementType=V,e.lanes=s,e;case ue:return e=bt(19,a,t,u),e.elementType=ue,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:d=10;break e;case Q:d=9;break e;case J:d=11;break e;case K:d=14;break e;case te:d=16,n=null;break e}d=29,a=Error(o(130,e===null?"null":typeof e,"")),n=null}return t=bt(d,a,t,u),t.elementType=e,t.type=n,t.lanes=s,t}function Ja(e,t,a,n){return e=bt(7,e,n,t),e.lanes=a,e}function Nr(e,t,a){return e=bt(6,e,null,t),e.lanes=a,e}function ef(e){var t=bt(18,null,null,0);return t.stateNode=e,t}function wr(e,t,a){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var tf=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var a=tf.get(e);return a!==void 0?a:(t={value:e,source:t,stack:ec(t)},tf.set(e,t),t)}return{value:e,source:t,stack:ec(t)}}var An=[],zn=0,Li=null,vl=0,Lt=[],Dt=0,ba=null,Xt=1,Zt="";function ta(e,t){An[zn++]=vl,An[zn++]=Li,Li=e,vl=t}function af(e,t,a){Lt[Dt++]=Xt,Lt[Dt++]=Zt,Lt[Dt++]=ba,ba=e;var n=Xt;e=Zt;var u=32-yt(n)-1;n&=~(1<<u),a+=1;var s=32-yt(t)+u;if(30<s){var d=u-u%5;s=(n&(1<<d)-1).toString(32),n>>=d,u-=d,Xt=1<<32-yt(t)+u|a<<u|n,Zt=s+e}else Xt=1<<s|a<<u|n,Zt=e}function jr(e){e.return!==null&&(ta(e,1),af(e,1,0))}function Mr(e){for(;e===Li;)Li=An[--zn],An[zn]=null,vl=An[--zn],An[zn]=null;for(;e===ba;)ba=Lt[--Dt],Lt[Dt]=null,Zt=Lt[--Dt],Lt[Dt]=null,Xt=Lt[--Dt],Lt[Dt]=null}function nf(e,t){Lt[Dt++]=Xt,Lt[Dt++]=Zt,Lt[Dt++]=ba,Xt=t.id,Zt=t.overflow,ba=e}var tt=null,Ne=null,ge=!1,Sa=null,Ut=!1,Lr=Error(o(519));function xa(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(Mt(t,e)),Lr}function lf(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[et]=e,t[st]=n,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<Yl.length;a++)de(Yl[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),yc(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),bc(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||Eh(t.textContent,a)?(n.popover!=null&&(de("beforetoggle",t),de("toggle",t)),n.onScroll!=null&&de("scroll",t),n.onScrollEnd!=null&&de("scrollend",t),n.onClick!=null&&(t.onclick=It),t=!0):t=!1,t||xa(e,!0)}function uf(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Ut=!1;return;case 27:case 3:Ut=!0;return;default:tt=tt.return}}function Nn(e){if(e!==tt)return!1;if(!ge)return uf(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")||Is(e.type,e.memoizedProps)),a=!a),a&&Ne&&xa(e),uf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ne=wh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ne=wh(e)}else t===27?(t=Ne,Da(e.type)?(e=no,no=null,Ne=e):Ne=t):Ne=tt?Ht(e.stateNode.nextSibling):null;return!0}function Fa(){Ne=tt=null,ge=!1}function Dr(){var e=Sa;return e!==null&&(ht===null?ht=e:ht.push.apply(ht,e),Sa=null),e}function bl(e){Sa===null?Sa=[e]:Sa.push(e)}var Ur=x(null),Wa=null,aa=null;function Ea(e,t,a){G(Ur,t._currentValue),t._currentValue=a}function na(e){e._currentValue=Ur.current,D(Ur)}function kr(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 Hr(e,t,a,n){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var s=u.dependencies;if(s!==null){var d=u.child;s=s.firstContext;e:for(;s!==null;){var y=s;s=u;for(var S=0;S<t.length;S++)if(y.context===t[S]){s.lanes|=a,y=s.alternate,y!==null&&(y.lanes|=a),kr(s.return,a,e),n||(d=null);break e}s=y.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(o(341));d.lanes|=a,s=d.alternate,s!==null&&(s.lanes|=a),kr(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 wn(e,t,a,n){e=null;for(var u=t,s=!1;u!==null;){if(!s){if((u.flags&524288)!==0)s=!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 y=u.type;vt(u.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}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(Xl):e=[Xl])}u=u.return}e!==null&&Hr(t,e,a,n),t.flags|=262144}function Di(e){for(e=e.firstContext;e!==null;){if(!vt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ia(e){Wa=e,aa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function at(e){return rf(Wa,e)}function Ui(e,t){return Wa===null&&Ia(e),rf(e,t)}function rf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},aa===null){if(e===null)throw Error(o(308));aa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else aa=aa.next=t;return a}var Xp=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()})}},Zp=i.unstable_scheduleCallback,$p=i.unstable_NormalPriority,Ge={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Br(){return{controller:new Xp,data:new Map,refCount:0}}function Sl(e){e.refCount--,e.refCount===0&&Zp($p,function(){e.controller.abort()})}var xl=null,qr=0,jn=0,Mn=null;function Jp(e,t){if(xl===null){var a=xl=[];qr=0,jn=Vs(),Mn={status:"pending",value:void 0,then:function(n){a.push(n)}}}return qr++,t.then(sf,sf),t}function sf(){if(--qr===0&&xl!==null){Mn!==null&&(Mn.status="fulfilled");var e=xl;xl=null,jn=0,Mn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Fp(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 of=j.S;j.S=function(e,t){Xd=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Jp(e,t),of!==null&&of(e,t)};var Pa=x(null);function Yr(){var e=Pa.current;return e!==null?e:Oe.pooledCache}function ki(e,t){t===null?G(Pa,Pa.current):G(Pa,t.pool)}function cf(){var e=Yr();return e===null?null:{parent:Ge._currentValue,pool:e}}var Ln=Error(o(460)),Gr=Error(o(474)),Hi=Error(o(542)),Bi={then:function(){}};function ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function df(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(It,It),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,mf(e),e;default:if(typeof t.status=="string")t.then(It,It);else{if(e=Oe,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,mf(e),e}throw tn=t,Ln}}function en(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(tn=a,Ln):a}}var tn=null;function hf(){if(tn===null)throw Error(o(459));var e=tn;return tn=null,e}function mf(e){if(e===Ln||e===Hi)throw Error(o(483))}var Dn=null,El=0;function qi(e){var t=El;return El+=1,Dn===null&&(Dn=[]),df(Dn,e,t)}function Tl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yi(e,t){throw t.$$typeof===N?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function gf(e){function t(R,E){if(e){var C=R.deletions;C===null?(R.deletions=[E],R.flags|=16):C.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=ea(R,E),R.index=0,R.sibling=null,R}function s(R,E,C){return R.index=C,e?(C=R.alternate,C!==null?(C=C.index,C<E?(R.flags|=67108866,E):C):(R.flags|=67108866,E)):(R.flags|=1048576,E)}function d(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function y(R,E,C,U){return E===null||E.tag!==6?(E=Nr(C,R.mode,U),E.return=R,E):(E=u(E,C),E.return=R,E)}function S(R,E,C,U){var I=C.type;return I===H?M(R,E,C.props.children,U,C.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===te&&en(I)===E.type)?(E=u(E,C.props),Tl(E,C),E.return=R,E):(E=Mi(C.type,C.key,C.props,null,R.mode,U),Tl(E,C),E.return=R,E)}function O(R,E,C,U){return E===null||E.tag!==4||E.stateNode.containerInfo!==C.containerInfo||E.stateNode.implementation!==C.implementation?(E=wr(C,R.mode,U),E.return=R,E):(E=u(E,C.children||[]),E.return=R,E)}function M(R,E,C,U,I){return E===null||E.tag!==7?(E=Ja(C,R.mode,U,I),E.return=R,E):(E=u(E,C),E.return=R,E)}function k(R,E,C){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Nr(""+E,R.mode,C),E.return=R,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case L:return C=Mi(E.type,E.key,E.props,null,R.mode,C),Tl(C,E),C.return=R,C;case z:return E=wr(E,R.mode,C),E.return=R,E;case te:return E=en(E),k(R,E,C)}if(De(E)||Fe(E))return E=Ja(E,R.mode,C,null),E.return=R,E;if(typeof E.then=="function")return k(R,qi(E),C);if(E.$$typeof===X)return k(R,Ui(R,E),C);Yi(R,E)}return null}function A(R,E,C,U){var I=E!==null?E.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return I!==null?null:y(R,E,""+C,U);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case L:return C.key===I?S(R,E,C,U):null;case z:return C.key===I?O(R,E,C,U):null;case te:return C=en(C),A(R,E,C,U)}if(De(C)||Fe(C))return I!==null?null:M(R,E,C,U,null);if(typeof C.then=="function")return A(R,E,qi(C),U);if(C.$$typeof===X)return A(R,E,Ui(R,C),U);Yi(R,C)}return null}function w(R,E,C,U,I){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return R=R.get(C)||null,y(E,R,""+U,I);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case L:return R=R.get(U.key===null?C:U.key)||null,S(E,R,U,I);case z:return R=R.get(U.key===null?C:U.key)||null,O(E,R,U,I);case te:return U=en(U),w(R,E,C,U,I)}if(De(U)||Fe(U))return R=R.get(C)||null,M(E,R,U,I,null);if(typeof U.then=="function")return w(R,E,C,qi(U),I);if(U.$$typeof===X)return w(R,E,C,Ui(E,U),I);Yi(E,U)}return null}function $(R,E,C,U){for(var I=null,ye=null,F=E,oe=E=0,me=null;F!==null&&oe<C.length;oe++){F.index>oe?(me=F,F=null):me=F.sibling;var ve=A(R,F,C[oe],U);if(ve===null){F===null&&(F=me);break}e&&F&&ve.alternate===null&&t(R,F),E=s(ve,E,oe),ye===null?I=ve:ye.sibling=ve,ye=ve,F=me}if(oe===C.length)return a(R,F),ge&&ta(R,oe),I;if(F===null){for(;oe<C.length;oe++)F=k(R,C[oe],U),F!==null&&(E=s(F,E,oe),ye===null?I=F:ye.sibling=F,ye=F);return ge&&ta(R,oe),I}for(F=n(F);oe<C.length;oe++)me=w(F,R,oe,C[oe],U),me!==null&&(e&&me.alternate!==null&&F.delete(me.key===null?oe:me.key),E=s(me,E,oe),ye===null?I=me:ye.sibling=me,ye=me);return e&&F.forEach(function(qa){return t(R,qa)}),ge&&ta(R,oe),I}function ee(R,E,C,U){if(C==null)throw Error(o(151));for(var I=null,ye=null,F=E,oe=E=0,me=null,ve=C.next();F!==null&&!ve.done;oe++,ve=C.next()){F.index>oe?(me=F,F=null):me=F.sibling;var qa=A(R,F,ve.value,U);if(qa===null){F===null&&(F=me);break}e&&F&&qa.alternate===null&&t(R,F),E=s(qa,E,oe),ye===null?I=qa:ye.sibling=qa,ye=qa,F=me}if(ve.done)return a(R,F),ge&&ta(R,oe),I;if(F===null){for(;!ve.done;oe++,ve=C.next())ve=k(R,ve.value,U),ve!==null&&(E=s(ve,E,oe),ye===null?I=ve:ye.sibling=ve,ye=ve);return ge&&ta(R,oe),I}for(F=n(F);!ve.done;oe++,ve=C.next())ve=w(F,R,oe,ve.value,U),ve!==null&&(e&&ve.alternate!==null&&F.delete(ve.key===null?oe:ve.key),E=s(ve,E,oe),ye===null?I=ve:ye.sibling=ve,ye=ve);return e&&F.forEach(function(r0){return t(R,r0)}),ge&&ta(R,oe),I}function Ce(R,E,C,U){if(typeof C=="object"&&C!==null&&C.type===H&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case L:e:{for(var I=C.key;E!==null;){if(E.key===I){if(I=C.type,I===H){if(E.tag===7){a(R,E.sibling),U=u(E,C.props.children),U.return=R,R=U;break e}}else if(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===te&&en(I)===E.type){a(R,E.sibling),U=u(E,C.props),Tl(U,C),U.return=R,R=U;break e}a(R,E);break}else t(R,E);E=E.sibling}C.type===H?(U=Ja(C.props.children,R.mode,U,C.key),U.return=R,R=U):(U=Mi(C.type,C.key,C.props,null,R.mode,U),Tl(U,C),U.return=R,R=U)}return d(R);case z:e:{for(I=C.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){a(R,E.sibling),U=u(E,C.children||[]),U.return=R,R=U;break e}else{a(R,E);break}else t(R,E);E=E.sibling}U=wr(C,R.mode,U),U.return=R,R=U}return d(R);case te:return C=en(C),Ce(R,E,C,U)}if(De(C))return $(R,E,C,U);if(Fe(C)){if(I=Fe(C),typeof I!="function")throw Error(o(150));return C=I.call(C),ee(R,E,C,U)}if(typeof C.then=="function")return Ce(R,E,qi(C),U);if(C.$$typeof===X)return Ce(R,E,Ui(R,C),U);Yi(R,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,E!==null&&E.tag===6?(a(R,E.sibling),U=u(E,C),U.return=R,R=U):(a(R,E),U=Nr(C,R.mode,U),U.return=R,R=U),d(R)):a(R,E)}return function(R,E,C,U){try{El=0;var I=Ce(R,E,C,U);return Dn=null,I}catch(F){if(F===Ln||F===Hi)throw F;var ye=bt(29,F,null,R.mode);return ye.lanes=U,ye.return=R,ye}finally{}}}var an=gf(!0),pf=gf(!1),Ta=!1;function Vr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kr(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _a(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=ji(e),Ic(e,null,a),t}return wi(e,n,t,a),ji(e)}function Rl(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,uc(e,a)}}function Qr(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var u=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?u=s=d:s=s.next=d,a=a.next}while(a!==null);s===null?u=s=t:s=s.next=t}else u=s=t;a={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:s,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 Xr=!1;function _l(){if(Xr){var e=Mn;if(e!==null)throw e}}function Cl(e,t,a,n){Xr=!1;var u=e.updateQueue;Ta=!1;var s=u.firstBaseUpdate,d=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var S=y,O=S.next;S.next=null,d===null?s=O:d.next=O,d=S;var M=e.alternate;M!==null&&(M=M.updateQueue,y=M.lastBaseUpdate,y!==d&&(y===null?M.firstBaseUpdate=O:y.next=O,M.lastBaseUpdate=S))}if(s!==null){var k=u.baseState;d=0,M=O=S=null,y=s;do{var A=y.lane&-536870913,w=A!==y.lane;if(w?(he&A)===A:(n&A)===A){A!==0&&A===jn&&(Xr=!0),M!==null&&(M=M.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var $=e,ee=y;A=t;var Ce=a;switch(ee.tag){case 1:if($=ee.payload,typeof $=="function"){k=$.call(Ce,k,A);break e}k=$;break e;case 3:$.flags=$.flags&-65537|128;case 0:if($=ee.payload,A=typeof $=="function"?$.call(Ce,k,A):$,A==null)break e;k=v({},k,A);break e;case 2:Ta=!0}}A=y.callback,A!==null&&(e.flags|=64,w&&(e.flags|=8192),w=u.callbacks,w===null?u.callbacks=[A]:w.push(A))}else w={lane:A,tag:y.tag,payload:y.payload,callback:y.callback,next:null},M===null?(O=M=w,S=k):M=M.next=w,d|=A;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;w=y,y=w.next,w.next=null,u.lastBaseUpdate=w,u.shared.pending=null}}while(!0);M===null&&(S=k),u.baseState=S,u.firstBaseUpdate=O,u.lastBaseUpdate=M,s===null&&(u.shared.lanes=0),Na|=d,e.lanes=d,e.memoizedState=k}}function yf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function vf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)yf(a[e],t)}var Un=x(null),Gi=x(0);function bf(e,t){e=da,G(Gi,e),G(Un,t),da=e|t.baseLanes}function Zr(){G(Gi,da),G(Un,Un.current)}function $r(){da=Gi.current,D(Un),D(Gi)}var St=x(null),kt=null;function Ca(e){var t=e.alternate;G(qe,qe.current&1),G(St,e),kt===null&&(t===null||Un.current!==null||t.memoizedState!==null)&&(kt=e)}function Jr(e){G(qe,qe.current),G(St,e),kt===null&&(kt=e)}function Sf(e){e.tag===22?(G(qe,qe.current),G(St,e),kt===null&&(kt=e)):Oa()}function Oa(){G(qe,qe.current),G(St,St.current)}function xt(e){D(St),kt===e&&(kt=null),D(qe)}var qe=x(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||to(a)||ao(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 la=0,re=null,Re=null,Ve=null,Ki=!1,kn=!1,nn=!1,Qi=0,Ol=0,Hn=null,Wp=0;function Ue(){throw Error(o(321))}function Fr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!vt(e[a],t[a]))return!1;return!0}function Wr(e,t,a,n,u,s){return la=s,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?nd:ds,nn=!1,s=a(n,u),nn=!1,kn&&(s=Ef(t,a,n,u)),xf(e),s}function xf(e){j.H=Nl;var t=Re!==null&&Re.next!==null;if(la=0,Ve=Re=re=null,Ki=!1,Ol=0,Hn=null,t)throw Error(o(300));e===null||Ke||(e=e.dependencies,e!==null&&Di(e)&&(Ke=!0))}function Ef(e,t,a,n){re=e;var u=0;do{if(kn&&(Hn=null),Ol=0,kn=!1,25<=u)throw Error(o(301));if(u+=1,Ve=Re=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}j.H=ld,s=t(a,n)}while(kn);return s}function Ip(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?Al(t):t,e=e.useState()[0],(Re!==null?Re.memoizedState:null)!==e&&(re.flags|=1024),t}function Ir(){var e=Qi!==0;return Qi=0,e}function Pr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function es(e){if(Ki){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ki=!1}la=0,Ve=Re=re=null,kn=!1,Ol=Qi=0,Hn=null}function rt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function Ye(){if(Re===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Re.next;var t=Ve===null?re.memoizedState:Ve.next;if(t!==null)Ve=t,Re=e;else{if(e===null)throw re.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},Ve===null?re.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function Xi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(e){var t=Ol;return Ol+=1,Hn===null&&(Hn=[]),e=df(Hn,e,t),t=re,(Ve===null?t.memoizedState:Ve.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?nd:ds),e}function Zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Al(e);if(e.$$typeof===X)return at(e)}throw Error(o(438,String(e)))}function ts(e){var t=null,a=re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=re.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=Xi(),re.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]=se;return t.index++,a}function ia(e,t){return typeof t=="function"?t(e):t}function $i(e){var t=Ye();return as(t,Re,e)}function as(e,t,a){var n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=a;var u=e.baseQueue,s=n.pending;if(s!==null){if(u!==null){var d=u.next;u.next=s.next,s.next=d}t.baseQueue=u=s,n.pending=null}if(s=e.baseState,u===null)e.memoizedState=s;else{t=u.next;var y=d=null,S=null,O=t,M=!1;do{var k=O.lane&-536870913;if(k!==O.lane?(he&k)===k:(la&k)===k){var A=O.revertLane;if(A===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),k===jn&&(M=!0);else if((la&A)===A){O=O.next,A===jn&&(M=!0);continue}else k={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(y=S=k,d=s):S=S.next=k,re.lanes|=A,Na|=A;k=O.action,nn&&a(s,k),s=O.hasEagerState?O.eagerState:a(s,k)}else A={lane:k,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},S===null?(y=S=A,d=s):S=S.next=A,re.lanes|=k,Na|=k;O=O.next}while(O!==null&&O!==t);if(S===null?d=s:S.next=y,!vt(s,e.memoizedState)&&(Ke=!0,M&&(a=Mn,a!==null)))throw a;e.memoizedState=s,e.baseState=d,e.baseQueue=S,n.lastRenderedState=s}return u===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function ns(e){var t=Ye(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var n=a.dispatch,u=a.pending,s=t.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do s=e(s,d.action),d=d.next;while(d!==u);vt(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),a.lastRenderedState=s}return[s,n]}function Tf(e,t,a){var n=re,u=Ye(),s=ge;if(s){if(a===void 0)throw Error(o(407));a=a()}else a=t();var d=!vt((Re||u).memoizedState,a);if(d&&(u.memoizedState=a,Ke=!0),u=u.queue,us(Cf.bind(null,n,u,e),[e]),u.getSnapshot!==t||d||Ve!==null&&Ve.memoizedState.tag&1){if(n.flags|=2048,Bn(9,{destroy:void 0},_f.bind(null,n,u,a,t),null),Oe===null)throw Error(o(349));s||(la&127)!==0||Rf(n,t,a)}return a}function Rf(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=re.updateQueue,t===null?(t=Xi(),re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _f(e,t,a,n){t.value=a,t.getSnapshot=n,Of(t)&&Af(e)}function Cf(e,t,a){return a(function(){Of(t)&&Af(e)})}function Of(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!vt(e,a)}catch{return!0}}function Af(e){var t=$a(e,2);t!==null&&mt(t,e,2)}function ls(e){var t=rt();if(typeof e=="function"){var a=e;if(e=a(),nn){pa(!0);try{a()}finally{pa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},t}function zf(e,t,a,n){return e.baseState=a,as(e,Re,typeof n=="function"?n:ia)}function Pp(e,t,a,n,u){if(Wi(e))throw Error(o(485));if(e=t.action,e!==null){var s={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d)}};j.T!==null?a(!0):s.isTransition=!1,n(s),a=t.pending,a===null?(s.next=t.pending=s,Nf(t,s)):(s.next=a.next,t.pending=a.next=s)}}function Nf(e,t){var a=t.action,n=t.payload,u=e.state;if(t.isTransition){var s=j.T,d={};j.T=d;try{var y=a(u,n),S=j.S;S!==null&&S(d,y),wf(e,t,y)}catch(O){is(e,t,O)}finally{s!==null&&d.types!==null&&(s.types=d.types),j.T=s}}else try{s=a(u,n),wf(e,t,s)}catch(O){is(e,t,O)}}function wf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){jf(e,t,n)},function(n){return is(e,t,n)}):jf(e,t,a)}function jf(e,t,a){t.status="fulfilled",t.value=a,Mf(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Nf(e,a)))}function is(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Mf(t),t=t.next;while(t!==n)}e.action=null}function Mf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lf(e,t){return t}function Df(e,t){if(ge){var a=Oe.formState;if(a!==null){e:{var n=re;if(ge){if(Ne){t:{for(var u=Ne,s=Ut;u.nodeType!==8;){if(!s){u=null;break t}if(u=Ht(u.nextSibling),u===null){u=null;break t}}s=u.data,u=s==="F!"||s==="F"?u:null}if(u){Ne=Ht(u.nextSibling),n=u.data==="F!";break e}}xa(n)}n=!1}n&&(t=a[0])}}return a=rt(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lf,lastRenderedState:t},a.queue=n,a=ed.bind(null,re,n),n.dispatch=a,n=ls(!1),s=fs.bind(null,re,!1,n.queue),n=rt(),u={state:t,dispatch:null,action:e,pending:null},n.queue=u,a=Pp.bind(null,re,u,s,a),u.dispatch=a,n.memoizedState=e,[t,a,!1]}function Uf(e){var t=Ye();return kf(t,Re,e)}function kf(e,t,a){if(t=as(e,t,Lf)[0],e=$i(ia)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Al(t)}catch(d){throw d===Ln?Hi:d}else n=t;t=Ye();var u=t.queue,s=u.dispatch;return a!==t.memoizedState&&(re.flags|=2048,Bn(9,{destroy:void 0},ey.bind(null,u,a),null)),[n,s,e]}function ey(e,t){e.action=t}function Hf(e){var t=Ye(),a=Re;if(a!==null)return kf(t,a,e);Ye(),t=t.memoizedState,a=Ye();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Bn(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=re.updateQueue,t===null&&(t=Xi(),re.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 Bf(){return Ye().memoizedState}function Ji(e,t,a,n){var u=rt();re.flags|=e,u.memoizedState=Bn(1|t,{destroy:void 0},a,n===void 0?null:n)}function Fi(e,t,a,n){var u=Ye();n=n===void 0?null:n;var s=u.memoizedState.inst;Re!==null&&n!==null&&Fr(n,Re.memoizedState.deps)?u.memoizedState=Bn(t,s,a,n):(re.flags|=e,u.memoizedState=Bn(1|t,s,a,n))}function qf(e,t){Ji(8390656,8,e,t)}function us(e,t){Fi(2048,8,e,t)}function ty(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=Xi(),re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Yf(e){var t=Ye().memoizedState;return ty({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Gf(e,t){return Fi(4,2,e,t)}function Vf(e,t){return Fi(4,4,e,t)}function Kf(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 Qf(e,t,a){a=a!=null?a.concat([e]):null,Fi(4,4,Kf.bind(null,t,e),a)}function rs(){}function Xf(e,t){var a=Ye();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Fr(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function Zf(e,t){var a=Ye();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Fr(t,n[1]))return n[0];if(n=e(),nn){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[n,t],n}function ss(e,t,a){return a===void 0||(la&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=$d(),re.lanes|=e,Na|=e,a)}function $f(e,t,a,n){return vt(a,t)?a:Un.current!==null?(e=ss(e,a,n),vt(e,t)||(Ke=!0),e):(la&42)===0||(la&1073741824)!==0&&(he&261930)===0?(Ke=!0,e.memoizedState=a):(e=$d(),re.lanes|=e,Na|=e,t)}function Jf(e,t,a,n,u){var s=Y.p;Y.p=s!==0&&8>s?s:8;var d=j.T,y={};j.T=y,fs(e,!1,t,a);try{var S=u(),O=j.S;if(O!==null&&O(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var M=Fp(S,n);zl(e,t,M,Rt(e))}else zl(e,t,n,Rt(e))}catch(k){zl(e,t,{then:function(){},status:"rejected",reason:k},Rt())}finally{Y.p=s,d!==null&&y.types!==null&&(d.types=y.types),j.T=d}}function ay(){}function os(e,t,a,n){if(e.tag!==5)throw Error(o(476));var u=Ff(e).queue;Jf(e,u,t,P,a===null?ay:function(){return Wf(e),a(n)})}function Ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:P},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Wf(e){var t=Ff(e);t.next===null&&(t=e.alternate.memoizedState),zl(e,t.next.queue,{},Rt())}function cs(){return at(Xl)}function If(){return Ye().memoizedState}function Pf(){return Ye().memoizedState}function ny(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var n=_a(t,e,a);n!==null&&(mt(n,t,a),Rl(n,t,a)),t={cache:Br()},e.payload=t;return}t=t.return}}function ly(e,t,a){var n=Rt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Wi(e)?td(t,a):(a=Ar(e,t,a,n),a!==null&&(mt(a,e,n),ad(a,t,n)))}function ed(e,t,a){var n=Rt();zl(e,t,a,n)}function zl(e,t,a,n){var u={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Wi(e))td(t,u);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var d=t.lastRenderedState,y=s(d,a);if(u.hasEagerState=!0,u.eagerState=y,vt(y,d))return wi(e,t,u,0),Oe===null&&Ni(),!1}catch{}finally{}if(a=Ar(e,t,u,n),a!==null)return mt(a,e,n),ad(a,t,n),!0}return!1}function fs(e,t,a,n){if(n={lane:2,revertLane:Vs(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wi(e)){if(t)throw Error(o(479))}else t=Ar(e,a,n,2),t!==null&&mt(t,e,2)}function Wi(e){var t=e.alternate;return e===re||t!==null&&t===re}function td(e,t){kn=Ki=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ad(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,uc(e,a)}}var Nl={readContext:at,use:Zi,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};Nl.useEffectEvent=Ue;var nd={readContext:at,use:Zi,useCallback:function(e,t){return rt().memoizedState=[e,t===void 0?null:t],e},useContext:at,useEffect:qf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ji(4194308,4,Kf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(4,2,e,t)},useMemo:function(e,t){var a=rt();t=t===void 0?null:t;var n=e();if(nn){pa(!0);try{e()}finally{pa(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=rt();if(a!==void 0){var u=a(t);if(nn){pa(!0);try{a(t)}finally{pa(!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=ly.bind(null,re,e),[n.memoizedState,e]},useRef:function(e){var t=rt();return e={current:e},t.memoizedState=e},useState:function(e){e=ls(e);var t=e.queue,a=ed.bind(null,re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:rs,useDeferredValue:function(e,t){var a=rt();return ss(a,e,t)},useTransition:function(){var e=ls(!1);return e=Jf.bind(null,re,e.queue,!0,!1),rt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=re,u=rt();if(ge){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Oe===null)throw Error(o(349));(he&127)!==0||Rf(n,t,a)}u.memoizedState=a;var s={value:a,getSnapshot:t};return u.queue=s,qf(Cf.bind(null,n,s,e),[e]),n.flags|=2048,Bn(9,{destroy:void 0},_f.bind(null,n,s,a,t),null),a},useId:function(){var e=rt(),t=Oe.identifierPrefix;if(ge){var a=Zt,n=Xt;a=(n&~(1<<32-yt(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Qi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Wp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cs,useFormState:Df,useActionState:Df,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=fs.bind(null,re,!0,a),a.dispatch=t,[e,t]},useMemoCache:ts,useCacheRefresh:function(){return rt().memoizedState=ny.bind(null,re)},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)}}},ds={readContext:at,use:Zi,useCallback:Xf,useContext:at,useEffect:us,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:Vf,useMemo:Zf,useReducer:$i,useRef:Bf,useState:function(){return $i(ia)},useDebugValue:rs,useDeferredValue:function(e,t){var a=Ye();return $f(a,Re.memoizedState,e,t)},useTransition:function(){var e=$i(ia)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Tf,useId:If,useHostTransitionStatus:cs,useFormState:Uf,useActionState:Uf,useOptimistic:function(e,t){var a=Ye();return zf(a,Re,e,t)},useMemoCache:ts,useCacheRefresh:Pf};ds.useEffectEvent=Yf;var ld={readContext:at,use:Zi,useCallback:Xf,useContext:at,useEffect:us,useImperativeHandle:Qf,useInsertionEffect:Gf,useLayoutEffect:Vf,useMemo:Zf,useReducer:ns,useRef:Bf,useState:function(){return ns(ia)},useDebugValue:rs,useDeferredValue:function(e,t){var a=Ye();return Re===null?ss(a,e,t):$f(a,Re.memoizedState,e,t)},useTransition:function(){var e=ns(ia)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:Al(e),t]},useSyncExternalStore:Tf,useId:If,useHostTransitionStatus:cs,useFormState:Hf,useActionState:Hf,useOptimistic:function(e,t){var a=Ye();return Re!==null?zf(a,Re,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ts,useCacheRefresh:Pf};ld.useEffectEvent=Yf;function hs(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 ms={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Rt(),u=Ra(n);u.payload=t,a!=null&&(u.callback=a),t=_a(e,u,n),t!==null&&(mt(t,e,n),Rl(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Rt(),u=Ra(n);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=_a(e,u,n),t!==null&&(mt(t,e,n),Rl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),n=Ra(a);n.tag=2,t!=null&&(n.callback=t),t=_a(e,n,a),t!==null&&(mt(t,e,a),Rl(t,e,a))}};function id(e,t,a,n,u,s,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,d):t.prototype&&t.prototype.isPureReactComponent?!pl(a,n)||!pl(u,s):!0}function ud(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&&ms.enqueueReplaceState(t,t.state,null)}function ln(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 rd(e){zi(e)}function sd(e){console.error(e)}function od(e){zi(e)}function Ii(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function cd(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 gs(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){Ii(e,t)},a}function fd(e){return e=Ra(e),e.tag=3,e}function dd(e,t,a,n){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var s=n.value;e.payload=function(){return u(s)},e.callback=function(){cd(t,a,n)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){cd(t,a,n),typeof u!="function"&&(wa===null?wa=new Set([this]):wa.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})})}function iy(e,t,a,n,u){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&wn(t,a,u,!0),a=St.current,a!==null){switch(a.tag){case 31:case 13:return kt===null?cu():a.alternate===null&&ke===0&&(ke=3),a.flags&=-257,a.flags|=65536,a.lanes=u,n===Bi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),qs(e,n,u)),!1;case 22:return a.flags|=65536,n===Bi?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)),qs(e,n,u)),!1}throw Error(o(435,a.tag))}return qs(e,n,u),cu(),!1}if(ge)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,n!==Lr&&(e=Error(o(422),{cause:n}),bl(Mt(e,a)))):(n!==Lr&&(t=Error(o(423),{cause:n}),bl(Mt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,n=Mt(n,a),u=gs(e.stateNode,n,u),Qr(e,u),ke!==4&&(ke=2)),!1;var s=Error(o(520),{cause:n});if(s=Mt(s,a),Hl===null?Hl=[s]:Hl.push(s),ke!==4&&(ke=2),t===null)return!0;n=Mt(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=gs(a.stateNode,n,e),Qr(a,e),!1;case 1:if(t=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(wa===null||!wa.has(s))))return a.flags|=65536,u&=-u,a.lanes|=u,u=fd(u),dd(u,e,a,n),Qr(a,u),!1}a=a.return}while(a!==null);return!1}var ps=Error(o(461)),Ke=!1;function nt(e,t,a,n){t.child=e===null?pf(t,null,a,n):an(t,e.child,a,n)}function hd(e,t,a,n,u){a=a.render;var s=t.ref;if("ref"in n){var d={};for(var y in n)y!=="ref"&&(d[y]=n[y])}else d=n;return Ia(t),n=Wr(e,t,a,d,s,u),y=Ir(),e!==null&&!Ke?(Pr(e,t,u),ua(e,t,u)):(ge&&y&&jr(t),t.flags|=1,nt(e,t,n,u),t.child)}function md(e,t,a,n,u){if(e===null){var s=a.type;return typeof s=="function"&&!zr(s)&&s.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=s,gd(e,t,s,n,u)):(e=Mi(a.type,null,n,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!Rs(e,u)){var d=s.memoizedProps;if(a=a.compare,a=a!==null?a:pl,a(d,n)&&e.ref===t.ref)return ua(e,t,u)}return t.flags|=1,e=ea(s,n),e.ref=t.ref,e.return=t,t.child=e}function gd(e,t,a,n,u){if(e!==null){var s=e.memoizedProps;if(pl(s,n)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=n=s,Rs(e,u))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,ua(e,t,u)}return ys(e,t,a,n,u)}function pd(e,t,a,n){var u=n.children,s=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(s=s!==null?s.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&~s}else n=0,t.child=null;return yd(e,t,s,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ki(t,s!==null?s.cachePool:null),s!==null?bf(t,s):Zr(),Sf(t);else return n=t.lanes=536870912,yd(e,t,s!==null?s.baseLanes|a:a,a,n)}else s!==null?(ki(t,s.cachePool),bf(t,s),Oa(),t.memoizedState=null):(e!==null&&ki(t,null),Zr(),Oa());return nt(e,t,u,a),t.child}function wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function yd(e,t,a,n,u){var s=Yr();return s=s===null?null:{parent:Ge._currentValue,pool:s},t.memoizedState={baseLanes:a,cachePool:s},e!==null&&ki(t,null),Zr(),Sf(t),e!==null&&wn(e,t,n,!0),t.childLanes=u,null}function Pi(e,t){return t=tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function vd(e,t,a){return an(t,e.child,null,a),e=Pi(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function uy(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=Pi(t,n),t.lanes=536870912,wl(null,e);if(Jr(t),(e=Ne)?(e=Nh(e,Ut),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Xt,overflow:Zt}:null,retryLane:536870912,hydrationErrors:null},a=ef(e),a.return=t,t.child=a,tt=t,Ne=null)):e=null,e===null)throw xa(t);return t.lanes=536870912,null}return Pi(t,n)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(Jr(t),u)if(t.flags&256)t.flags&=-257,t=vd(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||wn(e,t,a,!1),u=(a&e.childLanes)!==0,Ke||u){if(n=Oe,n!==null&&(d=rc(n,a),d!==0&&d!==s.retryLane))throw s.retryLane=d,$a(e,d),mt(n,e,d),ps;cu(),t=vd(e,t,a)}else e=s.treeContext,Ne=Ht(d.nextSibling),tt=t,ge=!0,Sa=null,Ut=!1,e!==null&&nf(t,e),t=Pi(t,n),t.flags|=4096;return t}return e=ea(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function eu(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 ys(e,t,a,n,u){return Ia(t),a=Wr(e,t,a,n,void 0,u),n=Ir(),e!==null&&!Ke?(Pr(e,t,u),ua(e,t,u)):(ge&&n&&jr(t),t.flags|=1,nt(e,t,a,u),t.child)}function bd(e,t,a,n,u,s){return Ia(t),t.updateQueue=null,a=Ef(t,n,a,u),xf(e),n=Ir(),e!==null&&!Ke?(Pr(e,t,s),ua(e,t,s)):(ge&&n&&jr(t),t.flags|=1,nt(e,t,a,s),t.child)}function Sd(e,t,a,n,u){if(Ia(t),t.stateNode===null){var s=On,d=a.contextType;typeof d=="object"&&d!==null&&(s=at(d)),s=new a(n,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=ms,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=n,s.state=t.memoizedState,s.refs={},Vr(t),d=a.contextType,s.context=typeof d=="object"&&d!==null?at(d):On,s.state=t.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(hs(t,a,d,n),s.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&ms.enqueueReplaceState(s,s.state,null),Cl(t,n,s,u),_l(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){s=t.stateNode;var y=t.memoizedProps,S=ln(a,y);s.props=S;var O=s.context,M=a.contextType;d=On,typeof M=="object"&&M!==null&&(d=at(M));var k=a.getDerivedStateFromProps;M=typeof k=="function"||typeof s.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,M||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(y||O!==d)&&ud(t,s,n,d),Ta=!1;var A=t.memoizedState;s.state=A,Cl(t,n,s,u),_l(),O=t.memoizedState,y||A!==O||Ta?(typeof k=="function"&&(hs(t,a,k,n),O=t.memoizedState),(S=Ta||id(t,a,S,n,A,O,d))?(M||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=O),s.props=n,s.state=O,s.context=d,n=S):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Kr(e,t),d=t.memoizedProps,M=ln(a,d),s.props=M,k=t.pendingProps,A=s.context,O=a.contextType,S=On,typeof O=="object"&&O!==null&&(S=at(O)),y=a.getDerivedStateFromProps,(O=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==k||A!==S)&&ud(t,s,n,S),Ta=!1,A=t.memoizedState,s.state=A,Cl(t,n,s,u),_l();var w=t.memoizedState;d!==k||A!==w||Ta||e!==null&&e.dependencies!==null&&Di(e.dependencies)?(typeof y=="function"&&(hs(t,a,y,n),w=t.memoizedState),(M=Ta||id(t,a,M,n,A,w,S)||e!==null&&e.dependencies!==null&&Di(e.dependencies))?(O||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,w,S),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,w,S)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=w),s.props=n,s.state=w,s.context=S,n=M):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(t.flags|=1024),n=!1)}return s=n,eu(e,t),n=(t.flags&128)!==0,s||n?(s=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&n?(t.child=an(t,e.child,null,u),t.child=an(t,null,a,u)):nt(e,t,a,u),t.memoizedState=s.state,e=t.child):e=ua(e,t,u),e}function xd(e,t,a,n){return Fa(),t.flags|=256,nt(e,t,a,n),t.child}var vs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function bs(e){return{baseLanes:e,cachePool:cf()}}function Ss(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function Ed(e,t,a){var n=t.pendingProps,u=!1,s=(t.flags&128)!==0,d;if((d=s)||(d=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),d&&(u=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(u?Ca(t):Oa(),(e=Ne)?(e=Nh(e,Ut),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Xt,overflow:Zt}:null,retryLane:536870912,hydrationErrors:null},a=ef(e),a.return=t,t.child=a,tt=t,Ne=null)):e=null,e===null)throw xa(t);return ao(e)?t.lanes=32:t.lanes=536870912,null}var y=n.children;return n=n.fallback,u?(Oa(),u=t.mode,y=tu({mode:"hidden",children:y},u),n=Ja(n,u,a,null),y.return=t,n.return=t,y.sibling=n,t.child=y,n=t.child,n.memoizedState=bs(a),n.childLanes=Ss(e,d,a),t.memoizedState=vs,wl(null,n)):(Ca(t),xs(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(s)t.flags&256?(Ca(t),t.flags&=-257,t=Es(e,t,a)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),y=n.fallback,u=t.mode,n=tu({mode:"visible",children:n.children},u),y=Ja(y,u,a,null),y.flags|=2,n.return=t,y.return=t,n.sibling=y,t.child=n,an(t,e.child,null,a),n=t.child,n.memoizedState=bs(a),n.childLanes=Ss(e,d,a),t.memoizedState=vs,t=wl(null,n));else if(Ca(t),ao(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var O=d.dgst;d=O,n=Error(o(419)),n.stack="",n.digest=d,bl({value:n,source:null,stack:null}),t=Es(e,t,a)}else if(Ke||wn(e,t,a,!1),d=(a&e.childLanes)!==0,Ke||d){if(d=Oe,d!==null&&(n=rc(d,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,$a(e,n),mt(d,e,n),ps;to(y)||cu(),t=Es(e,t,a)}else to(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ne=Ht(y.nextSibling),tt=t,ge=!0,Sa=null,Ut=!1,e!==null&&nf(t,e),t=xs(t,n.children),t.flags|=4096);return t}return u?(Oa(),y=n.fallback,u=t.mode,S=e.child,O=S.sibling,n=ea(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,O!==null?y=ea(O,y):(y=Ja(y,u,a,null),y.flags|=2),y.return=t,n.return=t,n.sibling=y,t.child=n,wl(null,n),n=t.child,y=e.child.memoizedState,y===null?y=bs(a):(u=y.cachePool,u!==null?(S=Ge._currentValue,u=u.parent!==S?{parent:S,pool:S}:u):u=cf(),y={baseLanes:y.baseLanes|a,cachePool:u}),n.memoizedState=y,n.childLanes=Ss(e,d,a),t.memoizedState=vs,wl(e.child,n)):(Ca(t),a=e.child,e=a.sibling,a=ea(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 xs(e,t){return t=tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tu(e,t){return e=bt(22,e,null,t),e.lanes=0,e}function Es(e,t,a){return an(t,e.child,null,a),e=xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Td(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),kr(e.return,t,a)}function Ts(e,t,a,n,u,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:u,treeForkCount:s}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=n,d.tail=a,d.tailMode=u,d.treeForkCount=s)}function Rd(e,t,a){var n=t.pendingProps,u=n.revealOrder,s=n.tail;n=n.children;var d=qe.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,G(qe,d),nt(e,t,n,a),n=ge?vl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Td(e,a,t);else if(e.tag===19)Td(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&&Vi(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Ts(t,!1,u,a,s,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&&Vi(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Ts(t,!0,a,null,s,n);break;case"together":Ts(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Na|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(wn(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=ea(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ea(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Rs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Di(e)))}function ry(e,t,a){switch(t.tag){case 3:ut(t,t.stateNode.containerInfo),Ea(t,Ge,e.memoizedState.cache),Fa();break;case 27:case 5:nl(t);break;case 4:ut(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jr(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Ca(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Ed(e,t,a):(Ca(t),e=ua(e,t,a),e!==null?e.sibling:null);Ca(t);break;case 19:var u=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(wn(e,t,a,!1),n=(a&t.childLanes)!==0),u){if(n)return Rd(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),G(qe,qe.current),n)break;return null;case 22:return t.lanes=0,pd(e,t,a,t.pendingProps);case 24:Ea(t,Ge,e.memoizedState.cache)}return ua(e,t,a)}function _d(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Rs(e,a)&&(t.flags&128)===0)return Ke=!1,ry(e,t,a);Ke=(e.flags&131072)!==0}else Ke=!1,ge&&(t.flags&1048576)!==0&&af(t,vl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=en(t.elementType),t.type=e,typeof e=="function")zr(e)?(n=ln(e,n),t.tag=1,t=Sd(null,t,e,n,a)):(t.tag=0,t=ys(null,t,e,n,a));else{if(e!=null){var u=e.$$typeof;if(u===J){t.tag=11,t=hd(null,t,e,n,a);break e}else if(u===K){t.tag=14,t=md(null,t,e,n,a);break e}}throw t=je(e)||e,Error(o(306,t,""))}}return t;case 0:return ys(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,u=ln(n,t.pendingProps),Sd(e,t,n,u,a);case 3:e:{if(ut(t,t.stateNode.containerInfo),e===null)throw Error(o(387));n=t.pendingProps;var s=t.memoizedState;u=s.element,Kr(e,t),Cl(t,n,null,a);var d=t.memoizedState;if(n=d.cache,Ea(t,Ge,n),n!==s.cache&&Hr(t,[Ge],a,!0),_l(),n=d.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=xd(e,t,n,a);break e}else if(n!==u){u=Mt(Error(o(424)),t),bl(u),t=xd(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(Ne=Ht(e.firstChild),tt=t,ge=!0,Sa=null,Ut=!0,a=pf(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Fa(),n===u){t=ua(e,t,a);break e}nt(e,t,n,a)}t=t.child}return t;case 26:return eu(e,t),e===null?(a=Uh(t.type,null,t.pendingProps,null))?t.memoizedState=a:ge||(a=t.type,e=t.pendingProps,n=yu(ce.current).createElement(a),n[et]=t,n[st]=e,lt(n,a,e),We(n),t.stateNode=n):t.memoizedState=Uh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nl(t),e===null&&ge&&(n=t.stateNode=Mh(t.type,t.pendingProps,ce.current),tt=t,Ut=!0,u=Ne,Da(t.type)?(no=u,Ne=Ht(n.firstChild)):Ne=u),nt(e,t,t.pendingProps.children,a),eu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((u=n=Ne)&&(n=ky(n,t.type,t.pendingProps,Ut),n!==null?(t.stateNode=n,tt=t,Ne=Ht(n.firstChild),Ut=!1,u=!0):u=!1),u||xa(t)),nl(t),u=t.type,s=t.pendingProps,d=e!==null?e.memoizedProps:null,n=s.children,Is(u,s)?n=null:d!==null&&Is(u,d)&&(t.flags|=32),t.memoizedState!==null&&(u=Wr(e,t,Ip,null,null,a),Xl._currentValue=u),eu(e,t),nt(e,t,n,a),t.child;case 6:return e===null&&ge&&((e=a=Ne)&&(a=Hy(a,t.pendingProps,Ut),a!==null?(t.stateNode=a,tt=t,Ne=null,e=!0):e=!1),e||xa(t)),null;case 13:return Ed(e,t,a);case 4:return ut(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=an(t,null,n,a):nt(e,t,n,a),t.child;case 11:return hd(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Ea(t,t.type,n.value),nt(e,t,n.children,a),t.child;case 9:return u=t.type._context,n=t.pendingProps.children,Ia(t),u=at(u),n=n(u),t.flags|=1,nt(e,t,n,a),t.child;case 14:return md(e,t,t.type,t.pendingProps,a);case 15:return gd(e,t,t.type,t.pendingProps,a);case 19:return Rd(e,t,a);case 31:return uy(e,t,a);case 22:return pd(e,t,a,t.pendingProps);case 24:return Ia(t),n=at(Ge),e===null?(u=Yr(),u===null&&(u=Oe,s=Br(),u.pooledCache=s,s.refCount++,s!==null&&(u.pooledCacheLanes|=a),u=s),t.memoizedState={parent:n,cache:u},Vr(t),Ea(t,Ge,u)):((e.lanes&a)!==0&&(Kr(e,t),Cl(t,null,null,a),_l()),u=e.memoizedState,s=t.memoizedState,u.parent!==n?(u={parent:n,cache:n},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ea(t,Ge,n)):(n=s.cache,Ea(t,Ge,n),n!==u.cache&&Hr(t,[Ge],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ra(e){e.flags|=4}function _s(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(Id())e.flags|=8192;else throw tn=Bi,Gr}else e.flags&=-16777217}function Cd(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Yh(t))if(Id())e.flags|=8192;else throw tn=Bi,Gr}function au(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lc():536870912,e.lanes|=t,Vn|=t)}function jl(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 we(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 sy(e,t,a){var n=t.pendingProps;switch(Mr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(t),null;case 1:return we(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(Ge),Be(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Nn(t)?ra(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dr())),we(t),null;case 26:var u=t.type,s=t.memoizedState;return e===null?(ra(t),s!==null?(we(t),Cd(t,s)):(we(t),_s(t,u,null,n,a))):s?s!==e.memoizedState?(ra(t),we(t),Cd(t,s)):(we(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&ra(t),we(t),_s(t,u,e,n,a)),null;case 27:if(hi(t),a=ce.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ra(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return we(t),null}e=Z.current,Nn(t)?lf(t):(e=Mh(u,n,a),t.stateNode=e,ra(t))}return we(t),null;case 5:if(hi(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&ra(t);else{if(!n){if(t.stateNode===null)throw Error(o(166));return we(t),null}if(s=Z.current,Nn(t))lf(t);else{var d=yu(ce.current);switch(s){case 1:s=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=d.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof n.is=="string"?d.createElement("select",{is:n.is}):d.createElement("select"),n.multiple?s.multiple=!0:n.size&&(s.size=n.size);break;default:s=typeof n.is=="string"?d.createElement(u,{is:n.is}):d.createElement(u)}}s[et]=t,s[st]=n;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)s.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=s;e:switch(lt(s,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&&ra(t)}}return we(t),_s(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&ra(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(o(166));if(e=ce.current,Nn(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,u=tt,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}e[et]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||Eh(e.nodeValue,a)),e||xa(t,!0)}else e=yu(e).createTextNode(n),e[et]=t,t.stateNode=e}return we(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Nn(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[et]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;we(t),e=!1}else a=Dr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return we(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Nn(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[et]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;we(t),u=!1}else u=Dr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(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),s=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),s!==u&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),au(t,t.updateQueue),we(t),null);case 4:return Be(),e===null&&Zs(t.stateNode.containerInfo),we(t),null;case 10:return na(t.type),we(t),null;case 19:if(D(qe),n=t.memoizedState,n===null)return we(t),null;if(u=(t.flags&128)!==0,s=n.rendering,s===null)if(u)jl(n,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Vi(e),s!==null){for(t.flags|=128,jl(n,!1),e=s.updateQueue,t.updateQueue=e,au(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Pc(a,e),a=a.sibling;return G(qe,qe.current&1|2),ge&&ta(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&gt()>ru&&(t.flags|=128,u=!0,jl(n,!1),t.lanes=4194304)}else{if(!u)if(e=Vi(s),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,au(t,e),jl(n,!0),n.tail===null&&n.tailMode==="hidden"&&!s.alternate&&!ge)return we(t),null}else 2*gt()-n.renderingStartTime>ru&&a!==536870912&&(t.flags|=128,u=!0,jl(n,!1),t.lanes=4194304);n.isBackwards?(s.sibling=t.child,t.child=s):(e=n.last,e!==null?e.sibling=s:t.child=s,n.last=s)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=gt(),e.sibling=null,a=qe.current,G(qe,u?a&1|2:a&1),ge&&ta(t,n.treeForkCount),e):(we(t),null);case 22:case 23:return xt(t),$r(),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&&(we(t),t.subtreeFlags&6&&(t.flags|=8192)):we(t),a=t.updateQueue,a!==null&&au(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&&D(Pa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(Ge),we(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function oy(e,t){switch(Mr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(Ge),Be(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hi(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(o(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(qe),null;case 4:return Be(),null;case 10:return na(t.type),null;case 22:case 23:return xt(t),$r(),e!==null&&D(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(Ge),null;case 25:return null;default:return null}}function Od(e,t){switch(Mr(t),t.tag){case 3:na(Ge),Be();break;case 26:case 27:case 5:hi(t);break;case 4:Be();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:D(qe);break;case 10:na(t.type);break;case 22:case 23:xt(t),$r(),e!==null&&D(Pa);break;case 24:na(Ge)}}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 s=a.create,d=a.inst;n=s(),d.destroy=n}a=a.next}while(a!==u)}}catch(y){Te(t,t.return,y)}}function Aa(e,t,a){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var s=u.next;n=s;do{if((n.tag&e)===e){var d=n.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,u=t;var S=a,O=y;try{O()}catch(M){Te(u,S,M)}}}n=n.next}while(n!==s)}}catch(M){Te(t,t.return,M)}}function Ad(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{vf(t,a)}catch(n){Te(e,e.return,n)}}}function zd(e,t,a){a.props=ln(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Te(e,t,n)}}function Ll(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 $t(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 Nd(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 Cs(e,t,a){try{var n=e.stateNode;wy(n,e.type,a,t),n[st]=t}catch(u){Te(e,e.return,u)}}function wd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Da(e.type)||e.tag===4}function Os(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wd(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&&Da(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 As(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=It));else if(n!==4&&(n===27&&Da(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(As(e,t,a),e=e.sibling;e!==null;)As(e,t,a),e=e.sibling}function nu(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&&Da(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(nu(e,t,a),e=e.sibling;e!==null;)nu(e,t,a),e=e.sibling}function jd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);lt(t,n,a),t[et]=e,t[st]=a}catch(s){Te(e,e.return,s)}}var sa=!1,Qe=!1,zs=!1,Md=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function cy(e,t){if(e=e.containerInfo,Fs=Ru,e=Kc(e),Er(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,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break e}var d=0,y=-1,S=-1,O=0,M=0,k=e,A=null;t:for(;;){for(var w;k!==a||u!==0&&k.nodeType!==3||(y=d+u),k!==s||n!==0&&k.nodeType!==3||(S=d+n),k.nodeType===3&&(d+=k.nodeValue.length),(w=k.firstChild)!==null;)A=k,k=w;for(;;){if(k===e)break t;if(A===a&&++O===u&&(y=d),A===s&&++M===n&&(S=d),(w=k.nextSibling)!==null)break;k=A,A=k.parentNode}k=w}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ws={focusedElem:e,selectionRange:a},Ru=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,s=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&&s!==null){e=void 0,a=t,u=s.memoizedProps,s=s.memoizedState,n=a.stateNode;try{var $=ln(a.type,u);e=n.getSnapshotBeforeUpdate($,s),n.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Te(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)eo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":eo(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,Ie=e;break}Ie=t.return}}function Ld(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:ca(e,a),n&4&&Ml(5,a);break;case 1:if(ca(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(d){Te(a,a.return,d)}else{var u=ln(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Te(a,a.return,d)}}n&64&&Ad(a),n&512&&Ll(a,a.return);break;case 3:if(ca(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{vf(e,t)}catch(d){Te(a,a.return,d)}}break;case 27:t===null&&n&4&&jd(a);case 26:case 5:ca(e,a),t===null&&n&4&&Nd(a),n&512&&Ll(a,a.return);break;case 12:ca(e,a);break;case 31:ca(e,a),n&4&&kd(e,a);break;case 13:ca(e,a),n&4&&Hd(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=by.bind(null,a),By(e,a))));break;case 22:if(n=a.memoizedState!==null||sa,!n){t=t!==null&&t.memoizedState!==null||Qe,u=sa;var s=Qe;sa=n,(Qe=t)&&!s?fa(e,a,(a.subtreeFlags&8772)!==0):ca(e,a),sa=u,Qe=s}break;case 30:break;default:ca(e,a)}}function Dd(e){var t=e.alternate;t!==null&&(e.alternate=null,Dd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ir(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 Me=null,ct=!1;function oa(e,t,a){for(a=a.child;a!==null;)Ud(e,t,a),a=a.sibling}function Ud(e,t,a){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(ll,a)}catch{}switch(a.tag){case 26:Qe||$t(a,t),oa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Qe||$t(a,t);var n=Me,u=ct;Da(a.type)&&(Me=a.stateNode,ct=!1),oa(e,t,a),Vl(a.stateNode),Me=n,ct=u;break;case 5:Qe||$t(a,t);case 6:if(n=Me,u=ct,Me=null,oa(e,t,a),Me=n,ct=u,Me!==null)if(ct)try{(Me.nodeType===9?Me.body:Me.nodeName==="HTML"?Me.ownerDocument.body:Me).removeChild(a.stateNode)}catch(s){Te(a,t,s)}else try{Me.removeChild(a.stateNode)}catch(s){Te(a,t,s)}break;case 18:Me!==null&&(ct?(e=Me,Ah(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Wn(e)):Ah(Me,a.stateNode));break;case 4:n=Me,u=ct,Me=a.stateNode.containerInfo,ct=!0,oa(e,t,a),Me=n,ct=u;break;case 0:case 11:case 14:case 15:Aa(2,a,t),Qe||Aa(4,a,t),oa(e,t,a);break;case 1:Qe||($t(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&zd(a,t,n)),oa(e,t,a);break;case 21:oa(e,t,a);break;case 22:Qe=(n=Qe)||a.memoizedState!==null,oa(e,t,a),Qe=n;break;default:oa(e,t,a)}}function kd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wn(e)}catch(a){Te(t,t.return,a)}}}function Hd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wn(e)}catch(a){Te(t,t.return,a)}}function fy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Md),t;default:throw Error(o(435,e.tag))}}function lu(e,t){var a=fy(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var u=Sy.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],s=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Da(y.type)){Me=y.stateNode,ct=!1;break e}break;case 5:Me=y.stateNode,ct=!1;break e;case 3:case 4:Me=y.stateNode.containerInfo,ct=!0;break e}y=y.return}if(Me===null)throw Error(o(160));Ud(s,d,u),Me=null,ct=!1,s=u.alternate,s!==null&&(s.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Bd(t,e),t=t.sibling}var Gt=null;function Bd(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&&(Qe||a===null||$t(a,a.return)),n&64&&sa&&(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=Gt;if(ft(t,e),dt(e),n&512&&(Qe||a===null||$t(a,a.return)),n&4){var s=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":s=u.getElementsByTagName("title")[0],(!s||s[rl]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=u.createElement(n),u.head.insertBefore(s,u.querySelector("head > title"))),lt(s,n,a),s[et]=e,We(s),n=s;break e;case"link":var d=Bh("link","href",u).get(n+(a.href||""));if(d){for(var y=0;y<d.length;y++)if(s=d[y],s.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&s.getAttribute("rel")===(a.rel==null?null:a.rel)&&s.getAttribute("title")===(a.title==null?null:a.title)&&s.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(y,1);break t}}s=u.createElement(n),lt(s,n,a),u.head.appendChild(s);break;case"meta":if(d=Bh("meta","content",u).get(n+(a.content||""))){for(y=0;y<d.length;y++)if(s=d[y],s.getAttribute("content")===(a.content==null?null:""+a.content)&&s.getAttribute("name")===(a.name==null?null:a.name)&&s.getAttribute("property")===(a.property==null?null:a.property)&&s.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&s.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(y,1);break t}}s=u.createElement(n),lt(s,n,a),u.head.appendChild(s);break;default:throw Error(o(468,n))}s[et]=e,We(s),n=s}e.stateNode=n}else qh(u,e.type,e.stateNode);else e.stateNode=Hh(u,n,e.memoizedProps);else s!==n?(s===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):s.count--,n===null?qh(u,e.type,e.stateNode):Hh(u,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Cs(e,e.memoizedProps,a.memoizedProps)}break;case 27:ft(t,e),dt(e),n&512&&(Qe||a===null||$t(a,a.return)),a!==null&&n&4&&Cs(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ft(t,e),dt(e),n&512&&(Qe||a===null||$t(a,a.return)),e.flags&32){u=e.stateNode;try{Sn(u,"")}catch($){Te(e,e.return,$)}}n&4&&e.stateNode!=null&&(u=e.memoizedProps,Cs(e,u,a!==null?a.memoizedProps:u)),n&1024&&(zs=!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($){Te(e,e.return,$)}}break;case 3:if(Su=null,u=Gt,Gt=vu(t.containerInfo),ft(t,e),Gt=u,dt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Wn(t.containerInfo)}catch($){Te(e,e.return,$)}zs&&(zs=!1,qd(e));break;case 4:n=Gt,Gt=vu(e.stateNode.containerInfo),ft(t,e),dt(e),Gt=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,lu(e,n)));break;case 13:ft(t,e),dt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(uu=gt()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,lu(e,n)));break;case 22:u=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,O=sa,M=Qe;if(sa=O||u,Qe=M||S,ft(t,e),Qe=M,sa=O,dt(e),n&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||S||sa||Qe||un(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(s=S.stateNode,u)d=s.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var k=S.memoizedProps.style,A=k!=null&&k.hasOwnProperty("display")?k.display:null;y.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch($){Te(S,S.return,$)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=u?"":S.memoizedProps}catch($){Te(S,S.return,$)}}}else if(t.tag===18){if(a===null){S=t;try{var w=S.stateNode;u?zh(w,!0):zh(S.stateNode,!1)}catch($){Te(S,S.return,$)}}}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,lu(e,a))));break;case 19:ft(t,e),dt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,lu(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(wd(n)){a=n;break}n=n.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,s=Os(e);nu(e,s,u);break;case 5:var d=a.stateNode;a.flags&32&&(Sn(d,""),a.flags&=-33);var y=Os(e);nu(e,y,d);break;case 3:case 4:var S=a.stateNode.containerInfo,O=Os(e);As(e,O,S);break;default:throw Error(o(161))}}catch(M){Te(e,e.return,M)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ca(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ld(e,t.alternate,t),t=t.sibling}function un(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),un(t);break;case 1:$t(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&zd(t,t.return,a),un(t);break;case 27:Vl(t.stateNode);case 26:case 5:$t(t,t.return),un(t);break;case 22:t.memoizedState===null&&un(t);break;case 30:un(t);break;default:un(t)}e=e.sibling}}function fa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,u=e,s=t,d=s.flags;switch(s.tag){case 0:case 11:case 15:fa(u,s,a),Ml(4,s);break;case 1:if(fa(u,s,a),n=s,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(O){Te(n,n.return,O)}if(n=s,u=n.updateQueue,u!==null){var y=n.stateNode;try{var S=u.shared.hiddenCallbacks;if(S!==null)for(u.shared.hiddenCallbacks=null,u=0;u<S.length;u++)yf(S[u],y)}catch(O){Te(n,n.return,O)}}a&&d&64&&Ad(s),Ll(s,s.return);break;case 27:jd(s);case 26:case 5:fa(u,s,a),a&&n===null&&d&4&&Nd(s),Ll(s,s.return);break;case 12:fa(u,s,a);break;case 31:fa(u,s,a),a&&d&4&&kd(u,s);break;case 13:fa(u,s,a),a&&d&4&&Hd(u,s);break;case 22:s.memoizedState===null&&fa(u,s,a),Ll(s,s.return);break;case 30:break;default:fa(u,s,a)}t=t.sibling}}function Ns(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&&Sl(a))}function ws(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Sl(e))}function Vt(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Yd(e,t,a,n),t=t.sibling}function Yd(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&&Sl(e)));break;case 12:if(u&2048){Vt(e,t,a,n),e=t.stateNode;try{var s=t.memoizedProps,d=s.id,y=s.onPostCommit;typeof y=="function"&&y(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:s=t.stateNode,d=t.alternate,t.memoizedState!==null?s._visibility&2?Vt(e,t,a,n):Dl(e,t):s._visibility&2?Vt(e,t,a,n):(s._visibility|=2,qn(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Ns(d,t);break;case 24:Vt(e,t,a,n),u&2048&&ws(t.alternate,t);break;default:Vt(e,t,a,n)}}function qn(e,t,a,n,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,d=t,y=a,S=n,O=d.flags;switch(d.tag){case 0:case 11:case 15:qn(s,d,y,S,u),Ml(8,d);break;case 23:break;case 22:var M=d.stateNode;d.memoizedState!==null?M._visibility&2?qn(s,d,y,S,u):Dl(s,d):(M._visibility|=2,qn(s,d,y,S,u)),u&&O&2048&&Ns(d.alternate,d);break;case 24:qn(s,d,y,S,u),u&&O&2048&&ws(d.alternate,d);break;default:qn(s,d,y,S,u)}t=t.sibling}}function Dl(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:Dl(a,n),u&2048&&Ns(n.alternate,n);break;case 24:Dl(a,n),u&2048&&ws(n.alternate,n);break;default:Dl(a,n)}t=t.sibling}}var Ul=8192;function Yn(e,t,a){if(e.subtreeFlags&Ul)for(e=e.child;e!==null;)Gd(e,t,a),e=e.sibling}function Gd(e,t,a){switch(e.tag){case 26:Yn(e,t,a),e.flags&Ul&&e.memoizedState!==null&&Wy(a,Gt,e.memoizedState,e.memoizedProps);break;case 5:Yn(e,t,a);break;case 3:case 4:var n=Gt;Gt=vu(e.stateNode.containerInfo),Yn(e,t,a),Gt=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Ul,Ul=16777216,Yn(e,t,a),Ul=n):Yn(e,t,a));break;default:Yn(e,t,a)}}function Vd(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 kl(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];Ie=n,Qd(n,e)}Vd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kd(e),e=e.sibling}function Kd(e){switch(e.tag){case 0:case 11:case 15:kl(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:kl(e);break;case 12:kl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,iu(e)):kl(e);break;default:kl(e)}}function iu(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];Ie=n,Qd(n,e)}Vd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),iu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,iu(t));break;default:iu(t)}e=e.sibling}}function Qd(e,t){for(;Ie!==null;){var a=Ie;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:Sl(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,Ie=n;else e:for(a=e;Ie!==null;){n=Ie;var u=n.sibling,s=n.return;if(Dd(n),n===a){Ie=null;break e}if(u!==null){u.return=s,Ie=u;break e}Ie=s}}}var dy={getCacheForType:function(e){var t=at(Ge),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return at(Ge).controller.signal}},hy=typeof WeakMap=="function"?WeakMap:Map,be=0,Oe=null,fe=null,he=0,Ee=0,Et=null,za=!1,Gn=!1,js=!1,da=0,ke=0,Na=0,rn=0,Ms=0,Tt=0,Vn=0,Hl=null,ht=null,Ls=!1,uu=0,Xd=0,ru=1/0,su=null,wa=null,Ze=0,ja=null,Kn=null,ha=0,Ds=0,Us=null,Zd=null,Bl=0,ks=null;function Rt(){return(be&2)!==0&&he!==0?he&-he:j.T!==null?Vs():sc()}function $d(){if(Tt===0)if((he&536870912)===0||ge){var e=pi;pi<<=1,(pi&3932160)===0&&(pi=262144),Tt=e}else Tt=536870912;return e=St.current,e!==null&&(e.flags|=32),Tt}function mt(e,t,a){(e===Oe&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Qn(e,0),Ma(e,he,Tt,!1)),ul(e,a),((be&2)===0||e!==Oe)&&(e===Oe&&((be&2)===0&&(rn|=a),ke===4&&Ma(e,he,Tt,!1)),Jt(e))}function Jd(e,t,a){if((be&6)!==0)throw Error(o(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||il(e,t),u=n?py(e,t):Bs(e,t,!0),s=n;do{if(u===0){Gn&&!n&&Ma(e,t,0,!1);break}else{if(a=e.current.alternate,s&&!my(a)){u=Bs(e,t,!1),s=!1;continue}if(u===2){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;u=Hl;var S=y.current.memoizedState.isDehydrated;if(S&&(Qn(y,d).flags|=256),d=Bs(y,d,!1),d!==2){if(js&&!S){y.errorRecoveryDisabledLanes|=s,rn|=s,u=4;break e}s=ht,ht=u,s!==null&&(ht===null?ht=s:ht.push.apply(ht,s))}u=d}if(s=!1,u!==2)continue}}if(u===1){Qn(e,0),Ma(e,t,0,!0);break}e:{switch(n=e,s=u,s){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ma(n,t,Tt,!za);break e;case 2:ht=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=uu+300-gt(),10<u)){if(Ma(n,t,Tt,!za),vi(n,0,!0)!==0)break e;ha=t,n.timeoutHandle=Ch(Fd.bind(null,n,a,ht,su,Ls,t,Tt,rn,Vn,za,s,"Throttled",-0,0),u);break e}Fd(n,a,ht,su,Ls,t,Tt,rn,Vn,za,s,null,-0,0)}}break}while(!0);Jt(e)}function Fd(e,t,a,n,u,s,d,y,S,O,M,k,A,w){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:It},Gd(t,s,k);var $=(s&62914560)===s?uu-gt():(s&4194048)===s?Xd-gt():0;if($=Iy(k,$),$!==null){ha=s,e.cancelPendingCommit=$(lh.bind(null,e,t,s,a,n,u,d,y,S,M,k,null,A,w)),Ma(e,s,d,!O);return}}lh(e,t,s,a,n,u,d,y,S)}function my(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],s=u.getSnapshot;u=u.value;try{if(!vt(s(),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&=~Ms,t&=~rn,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var u=t;0<u;){var s=31-yt(u),d=1<<s;n[s]=-1,u&=~d}a!==0&&ic(e,a,t)}function ou(){return(be&6)===0?(ql(0),!1):!0}function Hs(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,aa=Wa=null,es(e),Dn=null,El=0,e=fe;for(;e!==null;)Od(e.alternate,e),e=e.return;fe=null}}function Qn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ly(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ha=0,Hs(),Oe=e,fe=a=ea(e.current,null),he=t,Ee=0,Et=null,za=!1,Gn=il(e,t),js=!1,Vn=Tt=Ms=rn=Na=ke=0,ht=Hl=null,Ls=!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-yt(n),s=1<<u;t|=e[u],n&=~s}return da=t,Ni(),a}function Wd(e,t){re=null,j.H=Nl,t===Ln||t===Hi?(t=hf(),Ee=3):t===Gr?(t=hf(),Ee=4):Ee=t===ps?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,fe===null&&(ke=1,Ii(e,Mt(t,e.current)))}function Id(){var e=St.current;return e===null?!0:(he&4194048)===he?kt===null:(he&62914560)===he||(he&536870912)!==0?e===kt:!1}function Pd(){var e=j.H;return j.H=Nl,e===null?Nl:e}function eh(){var e=j.A;return j.A=dy,e}function cu(){ke=4,za||(he&4194048)!==he&&St.current!==null||(Gn=!0),(Na&134217727)===0&&(rn&134217727)===0||Oe===null||Ma(Oe,he,Tt,!1)}function Bs(e,t,a){var n=be;be|=2;var u=Pd(),s=eh();(Oe!==e||he!==t)&&(su=null,Qn(e,t)),t=!1;var d=ke;e:do try{if(Ee!==0&&fe!==null){var y=fe,S=Et;switch(Ee){case 8:Hs(),d=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var O=Ee;if(Ee=0,Et=null,Xn(e,y,S,O),a&&Gn){d=0;break e}break;default:O=Ee,Ee=0,Et=null,Xn(e,y,S,O)}}gy(),d=ke;break}catch(M){Wd(e,M)}while(!0);return t&&e.shellSuspendCounter++,aa=Wa=null,be=n,j.H=u,j.A=s,fe===null&&(Oe=null,he=0,Ni()),d}function gy(){for(;fe!==null;)th(fe)}function py(e,t){var a=be;be|=2;var n=Pd(),u=eh();Oe!==e||he!==t?(su=null,ru=gt()+500,Qn(e,t)):Gn=il(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var s=Et;t:switch(Ee){case 1:Ee=0,Et=null,Xn(e,t,s,1);break;case 2:case 9:if(ff(s)){Ee=0,Et=null,ah(t);break}t=function(){Ee!==2&&Ee!==9||Oe!==e||(Ee=7),Jt(e)},s.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:ff(s)?(Ee=0,Et=null,ah(t)):(Ee=0,Et=null,Xn(e,t,s,7));break;case 5:var d=null;switch(fe.tag){case 26:d=fe.memoizedState;case 5:case 27:var y=fe;if(d?Yh(d):y.stateNode.complete){Ee=0,Et=null;var S=y.sibling;if(S!==null)fe=S;else{var O=y.return;O!==null?(fe=O,fu(O)):fe=null}break t}}Ee=0,Et=null,Xn(e,t,s,5);break;case 6:Ee=0,Et=null,Xn(e,t,s,6);break;case 8:Hs(),ke=6;break e;default:throw Error(o(462))}}yy();break}catch(M){Wd(e,M)}while(!0);return aa=Wa=null,j.H=n,j.A=u,be=a,fe!==null?0:(Oe=null,he=0,Ni(),ke)}function yy(){for(;fe!==null&&!qg();)th(fe)}function th(e){var t=_d(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?fu(e):fe=t}function ah(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=bd(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=bd(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:es(t);default:Od(a,t),t=fe=Pc(t,da),t=_d(a,t,da)}e.memoizedProps=e.pendingProps,t===null?fu(e):fe=t}function Xn(e,t,a,n){aa=Wa=null,es(t),Dn=null,El=0;var u=t.return;try{if(iy(e,u,t,a,he)){ke=1,Ii(e,Mt(a,e.current)),fe=null;return}}catch(s){if(u!==null)throw fe=u,s;ke=1,Ii(e,Mt(a,e.current)),fe=null;return}t.flags&32768?(ge||n===1?e=!0:Gn||(he&536870912)!==0?e=!1:(za=e=!0,(n===2||n===9||n===3||n===6)&&(n=St.current,n!==null&&n.tag===13&&(n.flags|=16384))),nh(t,e)):fu(t)}function fu(e){var t=e;do{if((t.flags&32768)!==0){nh(t,za);return}e=t.return;var a=sy(t.alternate,t,da);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);ke===0&&(ke=5)}function nh(e,t){do{var a=oy(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);ke=6,fe=null}function lh(e,t,a,n,u,s,d,y,S){e.cancelPendingCommit=null;do du();while(Ze!==0);if((be&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(s=t.lanes|t.childLanes,s|=Or,Fg(e,a,s,d,y,S),e===Oe&&(fe=Oe=null,he=0),Kn=t,ja=e,ha=a,Ds=s,Us=u,Zd=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,xy(mi,function(){return oh(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=j.T,j.T=null,u=Y.p,Y.p=2,d=be,be|=4;try{cy(e,t,a)}finally{be=d,Y.p=u,j.T=n}}Ze=1,ih(),uh(),rh()}}function ih(){if(Ze===1){Ze=0;var e=ja,t=Kn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=j.T,j.T=null;var n=Y.p;Y.p=2;var u=be;be|=4;try{Bd(t,e);var s=Ws,d=Kc(e.containerInfo),y=s.focusedElem,S=s.selectionRange;if(d!==y&&y&&y.ownerDocument&&Vc(y.ownerDocument.documentElement,y)){if(S!==null&&Er(y)){var O=S.start,M=S.end;if(M===void 0&&(M=O),"selectionStart"in y)y.selectionStart=O,y.selectionEnd=Math.min(M,y.value.length);else{var k=y.ownerDocument||document,A=k&&k.defaultView||window;if(A.getSelection){var w=A.getSelection(),$=y.textContent.length,ee=Math.min(S.start,$),Ce=S.end===void 0?ee:Math.min(S.end,$);!w.extend&&ee>Ce&&(d=Ce,Ce=ee,ee=d);var R=Gc(y,ee),E=Gc(y,Ce);if(R&&E&&(w.rangeCount!==1||w.anchorNode!==R.node||w.anchorOffset!==R.offset||w.focusNode!==E.node||w.focusOffset!==E.offset)){var C=k.createRange();C.setStart(R.node,R.offset),w.removeAllRanges(),ee>Ce?(w.addRange(C),w.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),w.addRange(C))}}}}for(k=[],w=y;w=w.parentNode;)w.nodeType===1&&k.push({element:w,left:w.scrollLeft,top:w.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<k.length;y++){var U=k[y];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Ru=!!Fs,Ws=Fs=null}finally{be=u,Y.p=n,j.T=a}}e.current=t,Ze=2}}function uh(){if(Ze===2){Ze=0;var e=ja,t=Kn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=j.T,j.T=null;var n=Y.p;Y.p=2;var u=be;be|=4;try{Ld(e,t.alternate,t)}finally{be=u,Y.p=n,j.T=a}}Ze=3}}function rh(){if(Ze===4||Ze===3){Ze=0,Yg();var e=ja,t=Kn,a=ha,n=Zd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ze=5:(Ze=0,Kn=ja=null,sh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(wa=null),nr(a),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(ll,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=j.T,u=Y.p,Y.p=2,j.T=null;try{for(var s=e.onRecoverableError,d=0;d<n.length;d++){var y=n[d];s(y.value,{componentStack:y.stack})}}finally{j.T=t,Y.p=u}}(ha&3)!==0&&du(),Jt(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===ks?Bl++:(Bl=0,ks=e):Bl=0,ql(0)}}function sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Sl(t)))}function du(){return ih(),uh(),rh(),oh()}function oh(){if(Ze!==5)return!1;var e=ja,t=Ds;Ds=0;var a=nr(ha),n=j.T,u=Y.p;try{Y.p=32>a?32:a,j.T=null,a=Us,Us=null;var s=ja,d=ha;if(Ze=0,Kn=ja=null,ha=0,(be&6)!==0)throw Error(o(331));var y=be;if(be|=4,Kd(s.current),Yd(s,s.current,d,a),be=y,ql(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(ll,s)}catch{}return!0}finally{Y.p=u,j.T=n,sh(e,t)}}function ch(e,t,a){t=Mt(a,t),t=gs(e.stateNode,t,2),e=_a(e,t,2),e!==null&&(ul(e,2),Jt(e))}function Te(e,t,a){if(e.tag===3)ch(e,e,a);else for(;t!==null;){if(t.tag===3){ch(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(wa===null||!wa.has(n))){e=Mt(a,e),a=fd(2),n=_a(t,a,2),n!==null&&(dd(a,n,t,e),ul(n,2),Jt(n));break}}t=t.return}}function qs(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new hy;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)||(js=!0,u.add(a),e=vy.bind(null,e,t,a),t.then(e,e))}function vy(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Oe===e&&(he&a)===a&&(ke===4||ke===3&&(he&62914560)===he&&300>gt()-uu?(be&2)===0&&Qn(e,0):Ms|=a,Vn===he&&(Vn=0)),Jt(e)}function fh(e,t){t===0&&(t=lc()),e=$a(e,t),e!==null&&(ul(e,t),Jt(e))}function by(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),fh(e,a)}function Sy(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),fh(e,a)}function xy(e,t){return Pu(e,t)}var hu=null,Zn=null,Ys=!1,mu=!1,Gs=!1,La=0;function Jt(e){e!==Zn&&e.next===null&&(Zn===null?hu=Zn=e:Zn=Zn.next=e),mu=!0,Ys||(Ys=!0,Ty())}function ql(e,t){if(!Gs&&mu){Gs=!0;do for(var a=!1,n=hu;n!==null;){if(e!==0){var u=n.pendingLanes;if(u===0)var s=0;else{var d=n.suspendedLanes,y=n.pingedLanes;s=(1<<31-yt(42|e)+1)-1,s&=u&~(d&~y),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(a=!0,gh(n,s))}else s=he,s=vi(n,n===Oe?s:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(s&3)===0||il(n,s)||(a=!0,gh(n,s));n=n.next}while(a);Gs=!1}}function Ey(){dh()}function dh(){mu=Ys=!1;var e=0;La!==0&&My()&&(e=La);for(var t=gt(),a=null,n=hu;n!==null;){var u=n.next,s=hh(n,t);s===0?(n.next=null,a===null?hu=u:a.next=u,u===null&&(Zn=a)):(a=n,(e!==0||(s&3)!==0)&&(mu=!0)),n=u}Ze!==0&&Ze!==5||ql(e),La!==0&&(La=0)}function hh(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,u=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-yt(s),y=1<<d,S=u[d];S===-1?((y&a)===0||(y&n)!==0)&&(u[d]=Jg(y,t)):S<=t&&(e.expiredLanes|=y),s&=~y}if(t=Oe,a=he,a=vi(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&&er(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||il(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&er(n),nr(a)){case 2:case 8:a=ac;break;case 32:a=mi;break;case 268435456:a=nc;break;default:a=mi}return n=mh.bind(null,e),a=Pu(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&er(n),e.callbackPriority=2,e.callbackNode=null,2}function mh(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(du()&&e.callbackNode!==a)return null;var n=he;return n=vi(e,e===Oe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Jd(e,n,t),hh(e,gt()),e.callbackNode!=null&&e.callbackNode===a?mh.bind(null,e):null)}function gh(e,t){if(du())return null;Jd(e,t,!0)}function Ty(){Dy(function(){(be&6)!==0?Pu(tc,Ey):dh()})}function Vs(){if(La===0){var e=jn;e===0&&(e=gi,gi<<=1,(gi&261888)===0&&(gi=256)),La=e}return La}function ph(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ei(""+e)}function yh(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 Ry(e,t,a,n,u){if(t==="submit"&&a&&a.stateNode===u){var s=ph((u[st]||null).action),d=n.submitter;d&&(t=(t=d[st]||null)?ph(t.formAction):d.getAttribute("formAction"),t!==null&&(s=t,d=null));var y=new Ci("action","action",null,n,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(La!==0){var S=d?yh(u,d):new FormData(u);os(a,{pending:!0,data:S,method:u.method,action:s},null,S)}}else typeof s=="function"&&(y.preventDefault(),S=d?yh(u,d):new FormData(u),os(a,{pending:!0,data:S,method:u.method,action:s},s,S))},currentTarget:u}]})}}for(var Ks=0;Ks<Cr.length;Ks++){var Qs=Cr[Ks],_y=Qs.toLowerCase(),Cy=Qs[0].toUpperCase()+Qs.slice(1);Yt(_y,"on"+Cy)}Yt(Zc,"onAnimationEnd"),Yt($c,"onAnimationIteration"),Yt(Jc,"onAnimationStart"),Yt("dblclick","onDoubleClick"),Yt("focusin","onFocus"),Yt("focusout","onBlur"),Yt(Gp,"onTransitionRun"),Yt(Vp,"onTransitionStart"),Yt(Kp,"onTransitionCancel"),Yt(Fc,"onTransitionEnd"),vn("onMouseEnter",["mouseout","mouseover"]),vn("onMouseLeave",["mouseout","mouseover"]),vn("onPointerEnter",["pointerout","pointerover"]),vn("onPointerLeave",["pointerout","pointerover"]),Ka("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ka("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ka("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ka("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ka("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="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(" "),Oy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yl));function vh(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 s=void 0;if(t)for(var d=n.length-1;0<=d;d--){var y=n[d],S=y.instance,O=y.currentTarget;if(y=y.listener,S!==s&&u.isPropagationStopped())break e;s=y,u.currentTarget=O;try{s(u)}catch(M){zi(M)}u.currentTarget=null,s=S}else for(d=0;d<n.length;d++){if(y=n[d],S=y.instance,O=y.currentTarget,y=y.listener,S!==s&&u.isPropagationStopped())break e;s=y,u.currentTarget=O;try{s(u)}catch(M){zi(M)}u.currentTarget=null,s=S}}}}function de(e,t){var a=t[lr];a===void 0&&(a=t[lr]=new Set);var n=e+"__bubble";a.has(n)||(bh(t,e,2,!1),a.add(n))}function Xs(e,t,a){var n=0;t&&(n|=4),bh(a,e,n,t)}var gu="_reactListening"+Math.random().toString(36).slice(2);function Zs(e){if(!e[gu]){e[gu]=!0,fc.forEach(function(a){a!=="selectionchange"&&(Oy.has(a)||Xs(a,!1,e),Xs(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gu]||(t[gu]=!0,Xs("selectionchange",!1,t))}}function bh(e,t,a,n){switch($h(t)){case 2:var u=t0;break;case 8:u=a0;break;default:u=so}a=u.bind(null,t,a,e),u=void 0,!hr||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 $s(e,t,a,n,u){var s=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 y=n.stateNode.containerInfo;if(y===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(;y!==null;){if(d=gn(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){n=s=d;continue e}y=y.parentNode}}n=n.return}Tc(function(){var O=s,M=fr(a),k=[];e:{var A=Wc.get(e);if(A!==void 0){var w=Ci,$=e;switch(e){case"keypress":if(Ri(a)===0)break e;case"keydown":case"keyup":w=Sp;break;case"focusin":$="focus",w=yr;break;case"focusout":$="blur",w=yr;break;case"beforeblur":case"afterblur":w=yr;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":w=Cc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":w=sp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":w=Tp;break;case Zc:case $c:case Jc:w=fp;break;case Fc:w=_p;break;case"scroll":case"scrollend":w=up;break;case"wheel":w=Op;break;case"copy":case"cut":case"paste":w=hp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":w=Ac;break;case"toggle":case"beforetoggle":w=zp}var ee=(t&4)!==0,Ce=!ee&&(e==="scroll"||e==="scrollend"),R=ee?A!==null?A+"Capture":null:A;ee=[];for(var E=O,C;E!==null;){var U=E;if(C=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||C===null||R===null||(U=ol(E,R),U!=null&&ee.push(Gl(E,U,C))),Ce)break;E=E.return}0<ee.length&&(A=new w(A,$,null,a,M),k.push({event:A,listeners:ee}))}}if((t&7)===0){e:{if(A=e==="mouseover"||e==="pointerover",w=e==="mouseout"||e==="pointerout",A&&a!==cr&&($=a.relatedTarget||a.fromElement)&&(gn($)||$[mn]))break e;if((w||A)&&(A=M.window===M?M:(A=M.ownerDocument)?A.defaultView||A.parentWindow:window,w?($=a.relatedTarget||a.toElement,w=O,$=$?gn($):null,$!==null&&(Ce=f($),ee=$.tag,$!==Ce||ee!==5&&ee!==27&&ee!==6)&&($=null)):(w=null,$=O),w!==$)){if(ee=Cc,U="onMouseLeave",R="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Ac,U="onPointerLeave",R="onPointerEnter",E="pointer"),Ce=w==null?A:sl(w),C=$==null?A:sl($),A=new ee(U,E+"leave",w,a,M),A.target=Ce,A.relatedTarget=C,U=null,gn(M)===O&&(ee=new ee(R,E+"enter",$,a,M),ee.target=C,ee.relatedTarget=Ce,U=ee),Ce=U,w&&$)t:{for(ee=Ay,R=w,E=$,C=0,U=R;U;U=ee(U))C++;U=0;for(var I=E;I;I=ee(I))U++;for(;0<C-U;)R=ee(R),C--;for(;0<U-C;)E=ee(E),U--;for(;C--;){if(R===E||E!==null&&R===E.alternate){ee=R;break t}R=ee(R),E=ee(E)}ee=null}else ee=null;w!==null&&Sh(k,A,w,ee,!1),$!==null&&Ce!==null&&Sh(k,Ce,$,ee,!0)}}e:{if(A=O?sl(O):window,w=A.nodeName&&A.nodeName.toLowerCase(),w==="select"||w==="input"&&A.type==="file")var ye=Uc;else if(Lc(A))if(kc)ye=Bp;else{ye=kp;var F=Up}else w=A.nodeName,!w||w.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?O&&or(O.elementType)&&(ye=Uc):ye=Hp;if(ye&&(ye=ye(e,O))){Dc(k,ye,a,M);break e}F&&F(e,A,O),e==="focusout"&&O&&A.type==="number"&&O.memoizedProps.value!=null&&sr(A,"number",A.value)}switch(F=O?sl(O):window,e){case"focusin":(Lc(F)||F.contentEditable==="true")&&(Rn=F,Tr=O,yl=null);break;case"focusout":yl=Tr=Rn=null;break;case"mousedown":Rr=!0;break;case"contextmenu":case"mouseup":case"dragend":Rr=!1,Qc(k,a,M);break;case"selectionchange":if(Yp)break;case"keydown":case"keyup":Qc(k,a,M)}var oe;if(br)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 Tn?jc(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(zc&&a.locale!=="ko"&&(Tn||me!=="onCompositionStart"?me==="onCompositionEnd"&&Tn&&(oe=Rc()):(va=M,mr="value"in va?va.value:va.textContent,Tn=!0)),F=pu(O,me),0<F.length&&(me=new Oc(me,e,null,a,M),k.push({event:me,listeners:F}),oe?me.data=oe:(oe=Mc(a),oe!==null&&(me.data=oe)))),(oe=wp?jp(e,a):Mp(e,a))&&(me=pu(O,"onBeforeInput"),0<me.length&&(F=new Oc("onBeforeInput","beforeinput",null,a,M),k.push({event:F,listeners:me}),F.data=oe)),Ry(k,e,O,a,M)}vh(k,t)})}function Gl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function pu(e,t){for(var a=t+"Capture",n=[];e!==null;){var u=e,s=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||s===null||(u=ol(e,a),u!=null&&n.unshift(Gl(e,u,s)),u=ol(e,t),u!=null&&n.push(Gl(e,u,s))),e.tag===3)return n;e=e.return}return[]}function Ay(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sh(e,t,a,n,u){for(var s=t._reactName,d=[];a!==null&&a!==n;){var y=a,S=y.alternate,O=y.stateNode;if(y=y.tag,S!==null&&S===n)break;y!==5&&y!==26&&y!==27||O===null||(S=O,u?(O=ol(a,s),O!=null&&d.unshift(Gl(a,O,S))):u||(O=ol(a,s),O!=null&&d.push(Gl(a,O,S)))),a=a.return}d.length!==0&&e.push({event:t,listeners:d})}var zy=/\r\n?/g,Ny=/\u0000|\uFFFD/g;function xh(e){return(typeof e=="string"?e:""+e).replace(zy,`
165
+ `).replace(Ny,"")}function Eh(e,t){return t=xh(t),xh(e)===t}function _e(e,t,a,n,u,s){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Sn(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Sn(e,""+n);break;case"className":Si(e,"class",n);break;case"tabIndex":Si(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(e,a,n);break;case"style":xc(e,n,s);break;case"data":if(t!=="object"){Si(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=Ei(""+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 s=="function"&&(a==="formAction"?(t!=="input"&&_e(e,t,"name",u.name,u,null),_e(e,t,"formEncType",u.formEncType,u,null),_e(e,t,"formMethod",u.formMethod,u,null),_e(e,t,"formTarget",u.formTarget,u,null)):(_e(e,t,"encType",u.encType,u,null),_e(e,t,"method",u.method,u,null),_e(e,t,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Ei(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=It);break;case"onScroll":n!=null&&de("scroll",e);break;case"onScrollEnd":n!=null&&de("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=Ei(""+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":de("beforetoggle",e),de("toggle",e),bi(e,"popover",n);break;case"xlinkActuate":Wt(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Wt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Wt(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Wt(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Wt(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Wt(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Wt(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":bi(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=lp.get(a)||a,bi(e,a,n))}}function Js(e,t,a,n,u,s){switch(a){case"style":xc(e,n,s);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"?Sn(e,n):(typeof n=="number"||typeof n=="bigint")&&Sn(e,""+n);break;case"onScroll":n!=null&&de("scroll",e);break;case"onScrollEnd":n!=null&&de("scrollend",e);break;case"onClick":n!=null&&(e.onclick=It);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!dc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),s=e[st]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(t,s,u),typeof n=="function")){typeof s!="function"&&s!==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,""):bi(e,a,n)}}}function lt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var n=!1,u=!1,s;for(s in a)if(a.hasOwnProperty(s)){var d=a[s];if(d!=null)switch(s){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:_e(e,t,s,d,a,null)}}u&&_e(e,t,"srcSet",a.srcSet,a,null),n&&_e(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var y=s=d=u=null,S=null,O=null;for(n in a)if(a.hasOwnProperty(n)){var M=a[n];if(M!=null)switch(n){case"name":u=M;break;case"type":d=M;break;case"checked":S=M;break;case"defaultChecked":O=M;break;case"value":s=M;break;case"defaultValue":y=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,t));break;default:_e(e,t,n,M,a,null)}}yc(e,s,y,S,O,d,u,!1);return;case"select":de("invalid",e),n=d=s=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":s=y;break;case"defaultValue":d=y;break;case"multiple":n=y;default:_e(e,t,u,y,a,null)}t=s,a=d,e.multiple=!!n,t!=null?bn(e,!!n,t,!1):a!=null&&bn(e,!!n,a,!0);return;case"textarea":de("invalid",e),s=u=n=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case"value":n=y;break;case"defaultValue":u=y;break;case"children":s=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:_e(e,t,d,y,a,null)}bc(e,n,u,s);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:_e(e,t,S,n,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(n=0;n<Yl.length;n++)de(Yl[n],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(O in a)if(a.hasOwnProperty(O)&&(n=a[O],n!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:_e(e,t,O,n,a,null)}return;default:if(or(t)){for(M in a)a.hasOwnProperty(M)&&(n=a[M],n!==void 0&&Js(e,t,M,n,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(n=a[y],n!=null&&_e(e,t,y,n,a,null))}function wy(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,s=null,d=null,y=null,S=null,O=null,M=null;for(w in a){var k=a[w];if(a.hasOwnProperty(w)&&k!=null)switch(w){case"checked":break;case"value":break;case"defaultValue":S=k;default:n.hasOwnProperty(w)||_e(e,t,w,null,n,k)}}for(var A in n){var w=n[A];if(k=a[A],n.hasOwnProperty(A)&&(w!=null||k!=null))switch(A){case"type":s=w;break;case"name":u=w;break;case"checked":O=w;break;case"defaultChecked":M=w;break;case"value":d=w;break;case"defaultValue":y=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,t));break;default:w!==k&&_e(e,t,A,w,n,k)}}rr(e,d,y,S,O,M,s,u);return;case"select":w=d=y=A=null;for(s in a)if(S=a[s],a.hasOwnProperty(s)&&S!=null)switch(s){case"value":break;case"multiple":w=S;default:n.hasOwnProperty(s)||_e(e,t,s,null,n,S)}for(u in n)if(s=n[u],S=a[u],n.hasOwnProperty(u)&&(s!=null||S!=null))switch(u){case"value":A=s;break;case"defaultValue":y=s;break;case"multiple":d=s;default:s!==S&&_e(e,t,u,s,n,S)}t=y,a=d,n=w,A!=null?bn(e,!!a,A,!1):!!n!=!!a&&(t!=null?bn(e,!!a,t,!0):bn(e,!!a,a?[]:"",!1));return;case"textarea":w=A=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!n.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:_e(e,t,y,null,n,u)}for(d in n)if(u=n[d],s=a[d],n.hasOwnProperty(d)&&(u!=null||s!=null))switch(d){case"value":A=u;break;case"defaultValue":w=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==s&&_e(e,t,d,u,n,s)}vc(e,A,w);return;case"option":for(var $ in a)if(A=a[$],a.hasOwnProperty($)&&A!=null&&!n.hasOwnProperty($))switch($){case"selected":e.selected=!1;break;default:_e(e,t,$,null,n,A)}for(S in n)if(A=n[S],w=a[S],n.hasOwnProperty(S)&&A!==w&&(A!=null||w!=null))switch(S){case"selected":e.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:_e(e,t,S,A,n,w)}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 ee in a)A=a[ee],a.hasOwnProperty(ee)&&A!=null&&!n.hasOwnProperty(ee)&&_e(e,t,ee,null,n,A);for(O in n)if(A=n[O],w=a[O],n.hasOwnProperty(O)&&A!==w&&(A!=null||w!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(o(137,t));break;default:_e(e,t,O,A,n,w)}return;default:if(or(t)){for(var Ce in a)A=a[Ce],a.hasOwnProperty(Ce)&&A!==void 0&&!n.hasOwnProperty(Ce)&&Js(e,t,Ce,void 0,n,A);for(M in n)A=n[M],w=a[M],!n.hasOwnProperty(M)||A===w||A===void 0&&w===void 0||Js(e,t,M,A,n,w);return}}for(var R in a)A=a[R],a.hasOwnProperty(R)&&A!=null&&!n.hasOwnProperty(R)&&_e(e,t,R,null,n,A);for(k in n)A=n[k],w=a[k],!n.hasOwnProperty(k)||A===w||A==null&&w==null||_e(e,t,k,A,n,w)}function Th(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jy(){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],s=u.transferSize,d=u.initiatorType,y=u.duration;if(s&&y&&Th(d)){for(d=0,y=u.responseEnd,n+=1;n<a.length;n++){var S=a[n],O=S.startTime;if(O>y)break;var M=S.transferSize,k=S.initiatorType;M&&Th(k)&&(S=S.responseEnd,d+=M*(S<y?1:(y-O)/(S-O)))}if(--n,t+=8*(s+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 Fs=null,Ws=null;function yu(e){return e.nodeType===9?e:e.ownerDocument}function Rh(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 _h(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 Is(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 Ps=null;function My(){var e=window.event;return e&&e.type==="popstate"?e===Ps?!1:(Ps=e,!0):(Ps=null,!1)}var Ch=typeof setTimeout=="function"?setTimeout:void 0,Ly=typeof clearTimeout=="function"?clearTimeout:void 0,Oh=typeof Promise=="function"?Promise:void 0,Dy=typeof queueMicrotask=="function"?queueMicrotask:typeof Oh<"u"?function(e){return Oh.resolve(null).then(e).catch(Uy)}:Ch;function Uy(e){setTimeout(function(){throw e})}function Da(e){return e==="head"}function Ah(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),Wn(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Vl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Vl(a);for(var s=a.firstChild;s;){var d=s.nextSibling,y=s.nodeName;s[rl]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=d}}else a==="body"&&Vl(e.ownerDocument.body);a=u}while(a);Wn(t)}function zh(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 eo(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":eo(a),ir(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function ky(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[rl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==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(s=e.getAttribute("src"),(s!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Ht(e.nextSibling),e===null)break}return null}function Hy(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 Nh(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 to(e){return e.data==="$?"||e.data==="$~"}function ao(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function By(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 no=null;function wh(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 jh(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 Mh(e,t,a){switch(t=yu(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 Vl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ir(e)}var Bt=new Map,Lh=new Set;function vu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=Y.d;Y.d={f:qy,r:Yy,D:Gy,C:Vy,L:Ky,m:Qy,X:Zy,S:Xy,M:$y};function qy(){var e=ma.f(),t=ou();return e||t}function Yy(e){var t=pn(e);t!==null&&t.tag===5&&t.type==="form"?Wf(t):ma.r(e)}var $n=typeof document>"u"?null:document;function Dh(e,t,a){var n=$n;if(n&&typeof t=="string"&&t){var u=wt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Lh.has(u)||(Lh.add(u),e={rel:e,crossOrigin:a,href:t},n.querySelector(u)===null&&(t=n.createElement("link"),lt(t,"link",e),We(t),n.head.appendChild(t)))}}function Gy(e){ma.D(e),Dh("dns-prefetch",e,null)}function Vy(e,t){ma.C(e,t),Dh("preconnect",e,t)}function Ky(e,t,a){ma.L(e,t,a);var n=$n;if(n&&e&&t){var u='link[rel="preload"][as="'+wt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+wt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+wt(a.imageSizes)+'"]')):u+='[href="'+wt(e)+'"]';var s=u;switch(t){case"style":s=Jn(e);break;case"script":s=Fn(e)}Bt.has(s)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Bt.set(s,e),n.querySelector(u)!==null||t==="style"&&n.querySelector(Kl(s))||t==="script"&&n.querySelector(Ql(s))||(t=n.createElement("link"),lt(t,"link",e),We(t),n.head.appendChild(t)))}}function Qy(e,t){ma.m(e,t);var a=$n;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+wt(n)+'"][href="'+wt(e)+'"]',s=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Fn(e)}if(!Bt.has(s)&&(e=v({rel:"modulepreload",href:e},t),Bt.set(s,e),a.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ql(s)))return}n=a.createElement("link"),lt(n,"link",e),We(n),a.head.appendChild(n)}}}function Xy(e,t,a){ma.S(e,t,a);var n=$n;if(n&&e){var u=yn(n).hoistableStyles,s=Jn(e);t=t||"default";var d=u.get(s);if(!d){var y={loading:0,preload:null};if(d=n.querySelector(Kl(s)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Bt.get(s))&&lo(e,a);var S=d=n.createElement("link");We(S),lt(S,"link",e),S._p=new Promise(function(O,M){S.onload=O,S.onerror=M}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,bu(d,t,n)}d={type:"stylesheet",instance:d,count:1,state:y},u.set(s,d)}}}function Zy(e,t){ma.X(e,t);var a=$n;if(a&&e){var n=yn(a).hoistableScripts,u=Fn(e),s=n.get(u);s||(s=a.querySelector(Ql(u)),s||(e=v({src:e,async:!0},t),(t=Bt.get(u))&&io(e,t),s=a.createElement("script"),We(s),lt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function $y(e,t){ma.M(e,t);var a=$n;if(a&&e){var n=yn(a).hoistableScripts,u=Fn(e),s=n.get(u);s||(s=a.querySelector(Ql(u)),s||(e=v({src:e,async:!0,type:"module"},t),(t=Bt.get(u))&&io(e,t),s=a.createElement("script"),We(s),lt(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},n.set(u,s))}}function Uh(e,t,a,n){var u=(u=ce.current)?vu(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=Jn(a.href),a=yn(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=Jn(a.href);var s=yn(u).hoistableStyles,d=s.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,d),(s=u.querySelector(Kl(e)))&&!s._p&&(d.instance=s,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),s||Jy(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=Fn(a),a=yn(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 Jn(e){return'href="'+wt(e)+'"'}function Kl(e){return'link[rel="stylesheet"]['+e+"]"}function kh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Jy(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}),lt(t,"link",a),We(t),e.head.appendChild(t))}function Fn(e){return'[src="'+wt(e)+'"]'}function Ql(e){return"script[async]"+e}function Hh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+wt(a.href)+'"]');if(n)return t.instance=n,We(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"),We(n),lt(n,"style",u),bu(n,a.precedence,e),t.instance=n;case"stylesheet":u=Jn(a.href);var s=e.querySelector(Kl(u));if(s)return t.state.loading|=4,t.instance=s,We(s),s;n=kh(a),(u=Bt.get(u))&&lo(n,u),s=(e.ownerDocument||e).createElement("link"),We(s);var d=s;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),lt(s,"link",n),t.state.loading|=4,bu(s,a.precedence,e),t.instance=s;case"script":return s=Fn(a.src),(u=e.querySelector(Ql(s)))?(t.instance=u,We(u),u):(n=a,(u=Bt.get(s))&&(n=v({},a),io(n,u)),e=e.ownerDocument||e,u=e.createElement("script"),We(u),lt(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,bu(n,a.precedence,e));return t.instance}function bu(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,s=u,d=0;d<n.length;d++){var y=n[d];if(y.dataset.precedence===t)s=y;else if(s!==u)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function lo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function io(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Su=null;function Bh(e,t,a){if(Su===null){var n=new Map,u=Su=new Map;u.set(a,n)}else u=Su,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 s=a[u];if(!(s[rl]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var d=s.getAttribute(t)||"";d=e+d;var y=n.get(d);y?y.push(s):n.set(d,[s])}}return n}function qh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Fy(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 Yh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wy(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=Jn(n.href),s=t.querySelector(Kl(u));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=xu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=s,We(s);return}s=t.ownerDocument||t,n=kh(n),(u=Bt.get(u))&&lo(n,u),s=s.createElement("link"),We(s);var d=s;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),lt(s,"link",n),a.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=xu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var uo=0;function Iy(e,t){return e.stylesheets&&e.count===0&&Tu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Tu(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&uo===0&&(uo=62500*jy());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Tu(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>uo?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Eu=null;function Tu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Eu=new Map,t.forEach(Py,e),Eu=null,xu.call(e))}function Py(e,t){if(!(t.state.loading&4)){var a=Eu.get(e);if(a)var n=a.get(null);else{a=new Map,Eu.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<u.length;s++){var d=u[s];(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"),s=a.get(d)||n,s===n&&a.set(null,u),a.set(d,u),this.count++,n=xu.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),s?s.parentNode.insertBefore(u,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Xl={$$typeof:X,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function e0(e,t,a,n,u,s,d,y,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=tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tr(0),this.hiddenUpdates=tr(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Gh(e,t,a,n,u,s,d,y,S,O,M,k){return e=new e0(e,t,a,d,S,O,M,k,y),t=1,s===!0&&(t|=24),s=bt(3,null,null,t),e.current=s,s.stateNode=e,t=Br(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:n,isDehydrated:a,cache:t},Vr(s),e}function Vh(e){return e?(e=On,e):On}function Kh(e,t,a,n,u,s){u=Vh(u),n.context===null?n.context=u:n.pendingContext=u,n=Ra(t),n.payload={element:a},s=s===void 0?null:s,s!==null&&(n.callback=s),a=_a(e,n,t),a!==null&&(mt(a,e,t),Rl(a,e,t))}function Qh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function ro(e,t){Qh(e,t),(e=e.alternate)&&Qh(e,t)}function Xh(e){if(e.tag===13||e.tag===31){var t=$a(e,67108864);t!==null&&mt(t,e,67108864),ro(e,67108864)}}function Zh(e){if(e.tag===13||e.tag===31){var t=Rt();t=ar(t);var a=$a(e,t);a!==null&&mt(a,e,t),ro(e,t)}}var Ru=!0;function t0(e,t,a,n){var u=j.T;j.T=null;var s=Y.p;try{Y.p=2,so(e,t,a,n)}finally{Y.p=s,j.T=u}}function a0(e,t,a,n){var u=j.T;j.T=null;var s=Y.p;try{Y.p=8,so(e,t,a,n)}finally{Y.p=s,j.T=u}}function so(e,t,a,n){if(Ru){var u=oo(n);if(u===null)$s(e,t,n,_u,a),Jh(e,n);else if(l0(u,e,t,a,n))n.stopPropagation();else if(Jh(e,n),t&4&&-1<n0.indexOf(e)){for(;u!==null;){var s=pn(u);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=Va(s.pendingLanes);if(d!==0){var y=s;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-yt(d);y.entanglements[1]|=S,d&=~S}Jt(s),(be&6)===0&&(ru=gt()+500,ql(0))}}break;case 31:case 13:y=$a(s,2),y!==null&&mt(y,s,2),ou(),ro(s,2)}if(s=oo(n),s===null&&$s(e,t,n,_u,a),s===u)break;u=s}u!==null&&n.stopPropagation()}else $s(e,t,n,null,a)}}function oo(e){return e=fr(e),co(e)}var _u=null;function co(e){if(_u=null,e=gn(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 _u=e,null}function $h(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(Gg()){case tc:return 2;case ac:return 8;case mi:case Vg:return 32;case nc:return 268435456;default:return 32}default:return 32}}var fo=!1,Ua=null,ka=null,Ha=null,Zl=new Map,$l=new Map,Ba=[],n0="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 Jh(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":Zl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(t.pointerId)}}function Jl(e,t,a,n,u,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:s,targetContainers:[u]},t!==null&&(t=pn(t),t!==null&&Xh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function l0(e,t,a,n,u){switch(t){case"focusin":return Ua=Jl(Ua,e,t,a,n,u),!0;case"dragenter":return ka=Jl(ka,e,t,a,n,u),!0;case"mouseover":return Ha=Jl(Ha,e,t,a,n,u),!0;case"pointerover":var s=u.pointerId;return Zl.set(s,Jl(Zl.get(s)||null,e,t,a,n,u)),!0;case"gotpointercapture":return s=u.pointerId,$l.set(s,Jl($l.get(s)||null,e,t,a,n,u)),!0}return!1}function Fh(e){var t=gn(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,oc(e.priority,function(){Zh(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,oc(e.priority,function(){Zh(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 Cu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=oo(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);cr=n,a.target.dispatchEvent(n),cr=null}else return t=pn(a),t!==null&&Xh(t),e.blockedOn=a,!1;t.shift()}return!0}function Wh(e,t,a){Cu(e)&&a.delete(t)}function i0(){fo=!1,Ua!==null&&Cu(Ua)&&(Ua=null),ka!==null&&Cu(ka)&&(ka=null),Ha!==null&&Cu(Ha)&&(Ha=null),Zl.forEach(Wh),$l.forEach(Wh)}function Ou(e,t){e.blockedOn===t&&(e.blockedOn=null,fo||(fo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,i0)))}var Au=null;function Ih(e){Au!==e&&(Au=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Au===e&&(Au=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(co(n||a)===null)continue;break}var s=pn(a);s!==null&&(e.splice(t,3),t-=3,os(s,{pending:!0,data:u,method:a.method,action:n},n,u))}}))}function Wn(e){function t(S){return Ou(S,e)}Ua!==null&&Ou(Ua,e),ka!==null&&Ou(ka,e),Ha!==null&&Ou(Ha,e),Zl.forEach(t),$l.forEach(t);for(var a=0;a<Ba.length;a++){var n=Ba[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Ba.length&&(a=Ba[0],a.blockedOn===null);)Fh(a),a.blockedOn===null&&Ba.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var u=a[n],s=a[n+1],d=u[st]||null;if(typeof s=="function")d||Ih(a);else if(d){var y=null;if(s&&s.hasAttribute("formAction")){if(u=s,d=s[st]||null)y=d.formAction;else if(co(u)!==null)continue}else y=d.action;typeof y=="function"?a[n+1]=y:(a.splice(n,3),n-=3),Ih(a)}}}function Ph(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.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 s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.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 ho(e){this._internalRoot=e}zu.prototype.render=ho.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,n=Rt();Kh(a,n,e,t,null,null)},zu.prototype.unmount=ho.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kh(e.current,2,null,e,null,null),ou(),t[mn]=null}};function zu(e){this._internalRoot=e}zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=sc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ba.length&&t!==0&&t<Ba[a].priority;a++);Ba.splice(a,0,e),a===0&&Fh(e)}};var em=l.version;if(em!=="19.2.5")throw Error(o(527,em,"19.2.5"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var u0={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nu.isDisabled&&Nu.supportsFiber)try{ll=Nu.inject(u0),pt=Nu}catch{}}return Wl.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,n="",u=rd,s=sd,d=od;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&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Gh(e,1,!1,null,null,a,n,null,u,s,d,Ph),e[mn]=t.current,Zs(e),new ho(t)},Wl.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var n=!1,u="",s=rd,d=sd,y=od,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=Gh(e,1,!0,t,a??null,n,u,S,s,d,y,Ph),t.context=Vh(null),a=t.current,n=Rt(),n=ar(n),u=Ra(n),u.callback=null,_a(a,u,n),a=n,t.current.lanes=a,ul(t,a),Jt(t),e[mn]=t.current,Zs(e),new zu(t)},Wl.version="19.2.5",Wl}var fm;function lv(){if(fm)return po.exports;fm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),po.exports=nv(),po.exports}var iv=lv();const uv=Zm(iv);/**
166
166
  * react-router v7.14.2
167
167
  *
168
168
  * Copyright (c) Remix Software Inc.
@@ -171,7 +171,7 @@ Error generating stack: `+n.message+`
171
171
  * LICENSE.md file in the root directory of this source tree.
172
172
  *
173
173
  * @license MIT
174
- */var fm="popstate";function dm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function lv(i={}){function l(c,f){let{pathname:h="/",search:g="",hash:p=""}=hn(c.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Ao("",{pathname:h,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(c,f){let h=c.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let p=c.location.href,m=p.indexOf("#");g=m===-1?p:p.slice(0,m)}return g+"#"+(typeof f=="string"?f:li(f))}function o(c,f){Ot(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return uv(l,r,o,i)}function Le(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function Ot(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function iv(){return Math.random().toString(36).substring(2,10)}function hm(i,l){return{usr:i.state,key:i.key,idx:l,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function Ao(i,l,r=null,o,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?hn(l):l,state:r,key:l&&l.key||o||iv(),unstable_mask:c}}function li({pathname:i="/",search:l="",hash:r=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function hn(i){let l={};if(i){let r=i.indexOf("#");r>=0&&(l.hash=i.substring(r),i=i.substring(0,r));let o=i.indexOf("?");o>=0&&(l.search=i.substring(o),i=i.substring(0,o)),i&&(l.pathname=i)}return l}function uv(i,l,r,o={}){let{window:c=document.defaultView,v5Compat:f=!1}=o,h=c.history,g="POP",p=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 B=b(),q=B==null?null:B-m;m=B,p&&p({action:g,location:H.location,delta:q})}function N(B,q){g="PUSH";let X=dm(B)?B:Ao(H.location,B,q);r&&r(X,B),m=b()+1;let Q=hm(X,m),J=H.createHref(X.unstable_mask||X);try{h.pushState(Q,"",J)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;c.location.assign(J)}f&&p&&p({action:g,location:H.location,delta:1})}function L(B,q){g="REPLACE";let X=dm(B)?B:Ao(H.location,B,q);r&&r(X,B),m=b();let Q=hm(X,m),J=H.createHref(X.unstable_mask||X);h.replaceState(Q,"",J),f&&p&&p({action:g,location:H.location,delta:0})}function z(B){return rv(B)}let H={get action(){return g},get location(){return i(c,h)},listen(B){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(fm,v),p=B,()=>{c.removeEventListener(fm,v),p=null}},createHref(B){return l(c,B)},createURL:z,encodeLocation(B){let q=z(B);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:N,replace:L,go(B){return h.go(B)}};return H}function rv(i,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Le(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:li(i);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Im(i,l,r="/"){return sv(i,l,r,!1)}function sv(i,l,r,o){let c=typeof l=="string"?hn(l):l,f=ga(c.pathname||"/",r);if(f==null)return null;let h=Pm(i);ov(h);let g=null;for(let p=0;g==null&&p<h.length;++p){let m=Sv(f);g=vv(h[p],m,o)}return g}function Pm(i,l=[],r=[],o="",c=!1){let f=(h,g,p=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)&&p)return;Le(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=Xt([o,b.relativePath]),N=r.concat(b);h.children&&h.children.length>0&&(Le(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),Pm(h.children,l,N,v,p)),!(h.path==null&&!h.index)&&l.push({path:v,score:pv(v,h.index),routesMeta:N})};return i.forEach((h,g)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,g);else for(let m of eg(h.path))f(h,g,!0,m)}),l}function eg(i){let l=i.split("/");if(l.length===0)return[];let[r,...o]=l,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return c?[f,""]:[f];let h=eg(o.join("/")),g=[];return g.push(...h.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...h),g.map(p=>i.startsWith("/")&&p===""?"/":p)}function ov(i){i.sort((l,r)=>l.score!==r.score?r.score-l.score:yv(l.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var cv=/^:[\w-]+$/,fv=3,dv=2,hv=1,mv=10,gv=-2,mm=i=>i==="*";function pv(i,l){let r=i.split("/"),o=r.length;return r.some(mm)&&(o+=gv),l&&(o+=dv),r.filter(c=>!mm(c)).reduce((c,f)=>c+(cv.test(f)?fv:f===""?hv:mv),o)}function yv(i,l){return i.length===l.length&&i.slice(0,-1).every((o,c)=>o===l[c])?i[i.length-1]-l[l.length-1]:0}function vv(i,l,r=!1){let{routesMeta:o}=i,c={},f="/",h=[];for(let g=0;g<o.length;++g){let p=o[g],m=g===o.length-1,b=f==="/"?l:l.slice(f.length)||"/",v=Du({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},b),N=p.route;if(!v&&m&&r&&!o[o.length-1].route.index&&(v=Du({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!v)return null;Object.assign(c,v.params),h.push({params:c,pathname:Xt([f,v.pathname]),pathnameBase:Rv(Xt([f,v.pathnameBase])),route:N}),v.pathnameBase!=="/"&&(f=Xt([f,v.pathnameBase]))}return h}function Du(i,l){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,o]=bv(i.path,i.caseSensitive,i.end),c=l.match(r);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},N)=>{if(b==="*"){let z=g[N]||"";h=f.slice(0,f.length-z.length).replace(/(.)\/+$/,"$1")}const L=g[N];return v&&!L?m[b]=void 0:m[b]=(L||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:i}}function bv(i,l=!1,r=!0){Ot(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,p,m,b)=>{if(o.push({paramName:g,isOptional:p!=null}),p){let v=b.charAt(m+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),o]}function Sv(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Ot(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function ga(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,o=i.charAt(r);return o&&o!=="/"?null:i.slice(r)||"/"}var xv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Ev(i,l="/"){let{pathname:r,search:o="",hash:c=""}=typeof i=="string"?hn(i):i,f;return r?(r=tg(r),r.startsWith("/")?f=gm(r.substring(1),"/"):f=gm(r,l)):f=l,{pathname:f,search:_v(o),hash:Ov(c)}}function gm(i,l){let r=Uu(l).split("/");return i.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function bo(i,l,r,o){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Tv(i){return i.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function Bo(i){let l=Tv(i);return l.map((r,o)=>o===l.length-1?r.pathname:r.pathnameBase)}function Gu(i,l,r,o=!1){let c;typeof i=="string"?c=hn(i):(c={...i},Le(!c.pathname||!c.pathname.includes("?"),bo("?","pathname","search",c)),Le(!c.pathname||!c.pathname.includes("#"),bo("#","pathname","hash",c)),Le(!c.search||!c.search.includes("#"),bo("#","search","hash",c)));let f=i===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=r;else{let v=l.length-1;if(!o&&h.startsWith("..")){let N=h.split("/");for(;N[0]==="..";)N.shift(),v-=1;c.pathname=N.join("/")}g=v>=0?l[v]:"/"}let p=Ev(c,g),m=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||b)&&(p.pathname+="/"),p}var tg=i=>i.replace(/\/\/+/g,"/"),Xt=i=>tg(i.join("/")),Uu=i=>i.replace(/\/+$/,""),Rv=i=>Uu(i).replace(/^\/*/,"/"),_v=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,Ov=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Cv=class{constructor(i,l,r,o=!1){this.status=i,this.statusText=l||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Av(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function zv(i){let l=i.map(r=>r.route.path).filter(Boolean);return Xt(l)||"/"}var ag=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function ng(i,l){let r=i;if(typeof r!="string"||!xv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,c=!1;if(ag)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),g=ga(h.pathname,l);h.origin===f.origin&&g!=null?r=g+h.search+h.hash:c=!0}catch{Ot(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:c,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var lg=["POST","PUT","PATCH","DELETE"];new Set(lg);var Nv=["GET",...lg];new Set(Nv);var tl=T.createContext(null);tl.displayName="DataRouter";var Vu=T.createContext(null);Vu.displayName="DataRouterState";var ig=T.createContext(!1);function wv(){return T.useContext(ig)}var ug=T.createContext({isTransitioning:!1});ug.displayName="ViewTransition";var jv=T.createContext(new Map);jv.displayName="Fetchers";var Mv=T.createContext(null);Mv.displayName="Await";var At=T.createContext(null);At.displayName="Navigation";var ci=T.createContext(null);ci.displayName="Location";var qt=T.createContext({outlet:null,matches:[],isDataRoute:!1});qt.displayName="Route";var qo=T.createContext(null);qo.displayName="RouteError";var rg="REACT_ROUTER_ERROR",Lv="REDIRECT",Dv="ROUTE_ERROR_RESPONSE";function Uv(i){if(i.startsWith(`${rg}:${Lv}:{`))try{let l=JSON.parse(i.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function kv(i){if(i.startsWith(`${rg}:${Dv}:{`))try{let l=JSON.parse(i.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Cv(l.status,l.statusText,l.data)}catch{}}function Hv(i,{relative:l}={}){Le(al(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=T.useContext(At),{hash:c,pathname:f,search:h}=fi(i,{relative:l}),g=f;return r!=="/"&&(g=f==="/"?r:Xt([r,f])),o.createHref({pathname:g,search:h,hash:c})}function al(){return T.useContext(ci)!=null}function zt(){return Le(al(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ci).location}var sg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function og(i){T.useContext(At).static||T.useLayoutEffect(i)}function Ku(){let{isDataRoute:i}=T.useContext(qt);return i?Pv():Bv()}function Bv(){Le(al(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(tl),{basename:l,navigator:r}=T.useContext(At),{matches:o}=T.useContext(qt),{pathname:c}=zt(),f=JSON.stringify(Bo(o)),h=T.useRef(!1);return og(()=>{h.current=!0}),T.useCallback((p,m={})=>{if(Ot(h.current,sg),!h.current)return;if(typeof p=="number"){r.go(p);return}let b=Gu(p,JSON.parse(f),c,m.relative==="path");i==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Xt([l,b.pathname])),(m.replace?r.replace:r.push)(b,m.state,m)},[l,r,f,c,i])}var qv=T.createContext(null);function Yv(i){let l=T.useContext(qt).outlet;return T.useMemo(()=>l&&T.createElement(qv.Provider,{value:i},l),[l,i])}function cg(){let{matches:i}=T.useContext(qt),l=i[i.length-1];return(l==null?void 0:l.params)??{}}function fi(i,{relative:l}={}){let{matches:r}=T.useContext(qt),{pathname:o}=zt(),c=JSON.stringify(Bo(r));return T.useMemo(()=>Gu(i,JSON.parse(c),o,l==="path"),[i,c,o,l])}function Gv(i,l){return fg(i,l)}function fg(i,l,r){var B;Le(al(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=T.useContext(At),{matches:c}=T.useContext(qt),f=c[c.length-1],h=f?f.params:{},g=f?f.pathname:"/",p=f?f.pathnameBase:"/",m=f&&f.route;{let q=m&&m.path||"";hg(g,!m||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
174
+ */var dm="popstate";function hm(i){return typeof i=="object"&&i!=null&&"pathname"in i&&"search"in i&&"hash"in i&&"state"in i&&"key"in i}function rv(i={}){function l(c,f){let{pathname:h="/",search:g="",hash:p=""}=hn(c.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),zo("",{pathname:h,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(c,f){let h=c.document.querySelector("base"),g="";if(h&&h.getAttribute("href")){let p=c.location.href,m=p.indexOf("#");g=m===-1?p:p.slice(0,m)}return g+"#"+(typeof f=="string"?f:li(f))}function o(c,f){Ct(c.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return ov(l,r,o,i)}function Le(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function Ct(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function sv(){return Math.random().toString(36).substring(2,10)}function mm(i,l){return{usr:i.state,key:i.key,idx:l,masked:i.unstable_mask?{pathname:i.pathname,search:i.search,hash:i.hash}:void 0}}function zo(i,l,r=null,o,c){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?hn(l):l,state:r,key:l&&l.key||o||sv(),unstable_mask:c}}function li({pathname:i="/",search:l="",hash:r=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function hn(i){let l={};if(i){let r=i.indexOf("#");r>=0&&(l.hash=i.substring(r),i=i.substring(0,r));let o=i.indexOf("?");o>=0&&(l.search=i.substring(o),i=i.substring(0,o)),i&&(l.pathname=i)}return l}function ov(i,l,r,o={}){let{window:c=document.defaultView,v5Compat:f=!1}=o,h=c.history,g="POP",p=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 B=b(),q=B==null?null:B-m;m=B,p&&p({action:g,location:H.location,delta:q})}function N(B,q){g="PUSH";let Q=hm(B)?B:zo(H.location,B,q);r&&r(Q,B),m=b()+1;let X=mm(Q,m),J=H.createHref(Q.unstable_mask||Q);try{h.pushState(X,"",J)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;c.location.assign(J)}f&&p&&p({action:g,location:H.location,delta:1})}function L(B,q){g="REPLACE";let Q=hm(B)?B:zo(H.location,B,q);r&&r(Q,B),m=b();let X=mm(Q,m),J=H.createHref(Q.unstable_mask||Q);h.replaceState(X,"",J),f&&p&&p({action:g,location:H.location,delta:0})}function z(B){return cv(B)}let H={get action(){return g},get location(){return i(c,h)},listen(B){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(dm,v),p=B,()=>{c.removeEventListener(dm,v),p=null}},createHref(B){return l(c,B)},createURL:z,encodeLocation(B){let q=z(B);return{pathname:q.pathname,search:q.search,hash:q.hash}},push:N,replace:L,go(B){return h.go(B)}};return H}function cv(i,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Le(r,"No window.location.(origin|href) available to create URL");let o=typeof i=="string"?i:li(i);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function Pm(i,l,r="/"){return fv(i,l,r,!1)}function fv(i,l,r,o){let c=typeof l=="string"?hn(l):l,f=ga(c.pathname||"/",r);if(f==null)return null;let h=eg(i);dv(h);let g=null;for(let p=0;g==null&&p<h.length;++p){let m=Tv(f);g=xv(h[p],m,o)}return g}function eg(i,l=[],r=[],o="",c=!1){let f=(h,g,p=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)&&p)return;Le(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=Qt([o,b.relativePath]),N=r.concat(b);h.children&&h.children.length>0&&(Le(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),eg(h.children,l,N,v,p)),!(h.path==null&&!h.index)&&l.push({path:v,score:bv(v,h.index),routesMeta:N})};return i.forEach((h,g)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,g);else for(let m of tg(h.path))f(h,g,!0,m)}),l}function tg(i){let l=i.split("/");if(l.length===0)return[];let[r,...o]=l,c=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return c?[f,""]:[f];let h=tg(o.join("/")),g=[];return g.push(...h.map(p=>p===""?f:[f,p].join("/"))),c&&g.push(...h),g.map(p=>i.startsWith("/")&&p===""?"/":p)}function dv(i){i.sort((l,r)=>l.score!==r.score?r.score-l.score:Sv(l.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var hv=/^:[\w-]+$/,mv=3,gv=2,pv=1,yv=10,vv=-2,gm=i=>i==="*";function bv(i,l){let r=i.split("/"),o=r.length;return r.some(gm)&&(o+=vv),l&&(o+=gv),r.filter(c=>!gm(c)).reduce((c,f)=>c+(hv.test(f)?mv:f===""?pv:yv),o)}function Sv(i,l){return i.length===l.length&&i.slice(0,-1).every((o,c)=>o===l[c])?i[i.length-1]-l[l.length-1]:0}function xv(i,l,r=!1){let{routesMeta:o}=i,c={},f="/",h=[];for(let g=0;g<o.length;++g){let p=o[g],m=g===o.length-1,b=f==="/"?l:l.slice(f.length)||"/",v=Uu({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},b),N=p.route;if(!v&&m&&r&&!o[o.length-1].route.index&&(v=Uu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!v)return null;Object.assign(c,v.params),h.push({params:c,pathname:Qt([f,v.pathname]),pathnameBase:Ov(Qt([f,v.pathnameBase])),route:N}),v.pathnameBase!=="/"&&(f=Qt([f,v.pathnameBase]))}return h}function Uu(i,l){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[r,o]=Ev(i.path,i.caseSensitive,i.end),c=l.match(r);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},N)=>{if(b==="*"){let z=g[N]||"";h=f.slice(0,f.length-z.length).replace(/(.)\/+$/,"$1")}const L=g[N];return v&&!L?m[b]=void 0:m[b]=(L||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:h,pattern:i}}function Ev(i,l=!1,r=!0){Ct(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let o=[],c="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,g,p,m,b)=>{if(o.push({paramName:g,isOptional:p!=null}),p){let v=b.charAt(m+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(o.push({paramName:"*"}),c+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?c+="\\/*$":i!==""&&i!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),o]}function Tv(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Ct(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function ga(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,o=i.charAt(r);return o&&o!=="/"?null:i.slice(r)||"/"}var Rv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function _v(i,l="/"){let{pathname:r,search:o="",hash:c=""}=typeof i=="string"?hn(i):i,f;return r?(r=ag(r),r.startsWith("/")?f=pm(r.substring(1),"/"):f=pm(r,l)):f=l,{pathname:f,search:Av(o),hash:zv(c)}}function pm(i,l){let r=ku(l).split("/");return i.split("/").forEach(c=>{c===".."?r.length>1&&r.pop():c!=="."&&r.push(c)}),r.length>1?r.join("/"):"/"}function So(i,l,r,o){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(o)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Cv(i){return i.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function qo(i){let l=Cv(i);return l.map((r,o)=>o===l.length-1?r.pathname:r.pathnameBase)}function Vu(i,l,r,o=!1){let c;typeof i=="string"?c=hn(i):(c={...i},Le(!c.pathname||!c.pathname.includes("?"),So("?","pathname","search",c)),Le(!c.pathname||!c.pathname.includes("#"),So("#","pathname","hash",c)),Le(!c.search||!c.search.includes("#"),So("#","search","hash",c)));let f=i===""||c.pathname==="",h=f?"/":c.pathname,g;if(h==null)g=r;else{let v=l.length-1;if(!o&&h.startsWith("..")){let N=h.split("/");for(;N[0]==="..";)N.shift(),v-=1;c.pathname=N.join("/")}g=v>=0?l[v]:"/"}let p=_v(c,g),m=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(m||b)&&(p.pathname+="/"),p}var ag=i=>i.replace(/\/\/+/g,"/"),Qt=i=>ag(i.join("/")),ku=i=>i.replace(/\/+$/,""),Ov=i=>ku(i).replace(/^\/*/,"/"),Av=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,zv=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i,Nv=class{constructor(i,l,r,o=!1){this.status=i,this.statusText=l||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function wv(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}function jv(i){let l=i.map(r=>r.route.path).filter(Boolean);return Qt(l)||"/"}var ng=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function lg(i,l){let r=i;if(typeof r!="string"||!Rv.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,c=!1;if(ng)try{let f=new URL(window.location.href),h=r.startsWith("//")?new URL(f.protocol+r):new URL(r),g=ga(h.pathname,l);h.origin===f.origin&&g!=null?r=g+h.search+h.hash:c=!0}catch{Ct(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:c,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ig=["POST","PUT","PATCH","DELETE"];new Set(ig);var Mv=["GET",...ig];new Set(Mv);var tl=T.createContext(null);tl.displayName="DataRouter";var Ku=T.createContext(null);Ku.displayName="DataRouterState";var ug=T.createContext(!1);function Lv(){return T.useContext(ug)}var rg=T.createContext({isTransitioning:!1});rg.displayName="ViewTransition";var Dv=T.createContext(new Map);Dv.displayName="Fetchers";var Uv=T.createContext(null);Uv.displayName="Await";var At=T.createContext(null);At.displayName="Navigation";var ci=T.createContext(null);ci.displayName="Location";var qt=T.createContext({outlet:null,matches:[],isDataRoute:!1});qt.displayName="Route";var Yo=T.createContext(null);Yo.displayName="RouteError";var sg="REACT_ROUTER_ERROR",kv="REDIRECT",Hv="ROUTE_ERROR_RESPONSE";function Bv(i){if(i.startsWith(`${sg}:${kv}:{`))try{let l=JSON.parse(i.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function qv(i){if(i.startsWith(`${sg}:${Hv}:{`))try{let l=JSON.parse(i.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Nv(l.status,l.statusText,l.data)}catch{}}function Yv(i,{relative:l}={}){Le(al(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=T.useContext(At),{hash:c,pathname:f,search:h}=fi(i,{relative:l}),g=f;return r!=="/"&&(g=f==="/"?r:Qt([r,f])),o.createHref({pathname:g,search:h,hash:c})}function al(){return T.useContext(ci)!=null}function zt(){return Le(al(),"useLocation() may be used only in the context of a <Router> component."),T.useContext(ci).location}var og="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function cg(i){T.useContext(At).static||T.useLayoutEffect(i)}function Qu(){let{isDataRoute:i}=T.useContext(qt);return i?a1():Gv()}function Gv(){Le(al(),"useNavigate() may be used only in the context of a <Router> component.");let i=T.useContext(tl),{basename:l,navigator:r}=T.useContext(At),{matches:o}=T.useContext(qt),{pathname:c}=zt(),f=JSON.stringify(qo(o)),h=T.useRef(!1);return cg(()=>{h.current=!0}),T.useCallback((p,m={})=>{if(Ct(h.current,og),!h.current)return;if(typeof p=="number"){r.go(p);return}let b=Vu(p,JSON.parse(f),c,m.relative==="path");i==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:Qt([l,b.pathname])),(m.replace?r.replace:r.push)(b,m.state,m)},[l,r,f,c,i])}var Vv=T.createContext(null);function Kv(i){let l=T.useContext(qt).outlet;return T.useMemo(()=>l&&T.createElement(Vv.Provider,{value:i},l),[l,i])}function fg(){let{matches:i}=T.useContext(qt),l=i[i.length-1];return(l==null?void 0:l.params)??{}}function fi(i,{relative:l}={}){let{matches:r}=T.useContext(qt),{pathname:o}=zt(),c=JSON.stringify(qo(r));return T.useMemo(()=>Vu(i,JSON.parse(c),o,l==="path"),[i,c,o,l])}function Qv(i,l){return dg(i,l)}function dg(i,l,r){var B;Le(al(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=T.useContext(At),{matches:c}=T.useContext(qt),f=c[c.length-1],h=f?f.params:{},g=f?f.pathname:"/",p=f?f.pathnameBase:"/",m=f&&f.route;{let q=m&&m.path||"";mg(g,!m||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
175
175
 
176
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let b=zt(),v;if(l){let q=typeof l=="string"?hn(l):l;Le(p==="/"||((B=q.pathname)==null?void 0:B.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${q.pathname}" was given in the \`location\` prop.`),v=q}else v=b;let N=v.pathname||"/",L=N;if(p!=="/"){let q=p.replace(/^\//,"").split("/");L="/"+N.replace(/^\//,"").split("/").slice(q.length).join("/")}let z=Im(i,{pathname:L});Ot(m||z!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ot(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${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=Zv(z&&z.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:Xt([p,o.encodeLocation?o.encodeLocation(q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?p:Xt([p,o.encodeLocation?o.encodeLocation(q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),c,r);return l&&H?T.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},H):H}function Vv(){let i=Iv(),l=Av(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),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"}},l),r?T.createElement("pre",{style:c},r):null,h)}var Kv=T.createElement(Vv,null),dg=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){this.props.onError?this.props.onError(i,l):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=kv(i.digest);r&&(i=r)}let l=i!==void 0?T.createElement(qt.Provider,{value:this.props.routeContext},T.createElement(qo.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?T.createElement(Xv,{error:i},l):l}};dg.contextType=ig;var So=new WeakMap;function Xv({children:i,error:l}){let{basename:r}=T.useContext(At);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let o=Uv(l.digest);if(o){let c=So.get(l);if(c)throw c;let f=ng(o.location,r);if(ag&&!So.get(l))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 So.set(l,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return i}function Qv({routeContext:i,match:l,children:r}){let o=T.useContext(tl);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),T.createElement(qt.Provider,{value:i},r)}function Zv(i,l=[],r){let o=r==null?void 0:r.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(l.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let c=i,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);Le(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(r&&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:N,errors:L}=o,z=v.route.loader&&!N.hasOwnProperty(v.route.id)&&(!L||L[v.route.id]===void 0);if(v.route.lazy||z){r.isStatic&&(h=!0),g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}}let p=r==null?void 0:r.onError,m=o&&p?(b,v)=>{var N,L;p(b,{location:o.location,params:((L=(N=o.matches)==null?void 0:N[0])==null?void 0:L.params)??{},unstable_pattern:zv(o.matches),errorInfo:v})}:void 0;return c.reduceRight((b,v,N)=>{let L,z=!1,H=null,B=null;o&&(L=f&&v.route.id?f[v.route.id]:void 0,H=v.route.errorElement||Kv,h&&(g<0&&N===0?(hg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,B=null):g===N&&(z=!0,B=v.route.hydrateFallbackElement||null)));let q=l.concat(c.slice(0,N+1)),X=()=>{let Q;return L?Q=H:z?Q=B:v.route.Component?Q=T.createElement(v.route.Component,null):v.route.element?Q=v.route.element:Q=b,T.createElement(Qv,{match:v,routeContext:{outlet:b,matches:q,isDataRoute:o!=null},children:Q})};return o&&(v.route.ErrorBoundary||v.route.errorElement||N===0)?T.createElement(dg,{location:o.location,revalidation:o.revalidation,component:H,error:L,children:X(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:m}):X()},null)}function Yo(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $v(i){let l=T.useContext(tl);return Le(l,Yo(i)),l}function Jv(i){let l=T.useContext(Vu);return Le(l,Yo(i)),l}function Fv(i){let l=T.useContext(qt);return Le(l,Yo(i)),l}function Go(i){let l=Fv(i),r=l.matches[l.matches.length-1];return Le(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function Wv(){return Go("useRouteId")}function Iv(){var o;let i=T.useContext(qo),l=Jv("useRouteError"),r=Go("useRouteError");return i!==void 0?i:(o=l.errors)==null?void 0:o[r]}function Pv(){let{router:i}=$v("useNavigate"),l=Go("useNavigate"),r=T.useRef(!1);return og(()=>{r.current=!0}),T.useCallback(async(c,f={})=>{Ot(r.current,sg),r.current&&(typeof c=="number"?await i.navigate(c):await i.navigate(c,{fromRouteId:l,...f}))},[i,l])}var pm={};function hg(i,l,r){!l&&!pm[i]&&(pm[i]=!0,Ot(!1,r))}T.memo(e1);function e1({routes:i,future:l,state:r,isStatic:o,onError:c}){return fg(i,void 0,{state:r,isStatic:o,onError:c})}function Ya({to:i,replace:l,state:r,relative:o}){Le(al(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=T.useContext(At);Ot(!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(qt),{pathname:h}=zt(),g=Ku(),p=Gu(i,Bo(f),h,o==="path"),m=JSON.stringify(p);return T.useEffect(()=>{g(JSON.parse(m),{replace:l,state:r,relative:o})},[g,m,o,l,r]),null}function t1(i){return Yv(i.context)}function on(i){Le(!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 a1({basename:i="/",children:l=null,location:r,navigationType:o="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){Le(!al(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:g,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[g,c,f,h]);typeof r=="string"&&(r=hn(r));let{pathname:m="/",search:b="",hash:v="",state:N=null,key:L="default",unstable_mask:z}=r,H=T.useMemo(()=>{let B=ga(m,g);return B==null?null:{location:{pathname:B,search:b,hash:v,state:N,key:L,unstable_mask:z},navigationType:o}},[g,m,b,v,N,L,o,z]);return Ot(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(At.Provider,{value:p},T.createElement(ci.Provider,{children:l,value:H}))}function n1({children:i,location:l}){return Gv(zo(i),l)}function zo(i,l=[]){let r=[];return T.Children.forEach(i,(o,c)=>{if(!T.isValidElement(o))return;let f=[...l,c];if(o.type===T.Fragment){r.push.apply(r,zo(o.props.children,f));return}Le(o.type===on,`[${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>`),Le(!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=zo(o.props.children,f)),r.push(h)}),r}var ju="get",Mu="application/x-www-form-urlencoded";function Xu(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function l1(i){return Xu(i)&&i.tagName.toLowerCase()==="button"}function i1(i){return Xu(i)&&i.tagName.toLowerCase()==="form"}function u1(i){return Xu(i)&&i.tagName.toLowerCase()==="input"}function r1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function s1(i,l){return i.button===0&&(!l||l==="_self")&&!r1(i)}function No(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((l,r)=>{let o=i[r];return l.concat(Array.isArray(o)?o.map(c=>[r,c]):[[r,o]])},[]))}function o1(i,l){let r=No(i);return l&&l.forEach((o,c)=>{r.has(c)||l.getAll(c).forEach(f=>{r.append(c,f)})}),r}var Nu=null;function c1(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var f1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xo(i){return i!=null&&!f1.has(i)?(Ot(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mu}"`),null):i}function d1(i,l){let r,o,c,f,h;if(i1(i)){let g=i.getAttribute("action");o=g?ga(g,l):null,r=i.getAttribute("method")||ju,c=xo(i.getAttribute("enctype"))||Mu,f=new FormData(i)}else if(l1(i)||u1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||g.getAttribute("action");if(o=p?ga(p,l):null,r=i.getAttribute("formmethod")||g.getAttribute("method")||ju,c=xo(i.getAttribute("formenctype"))||xo(g.getAttribute("enctype"))||Mu,f=new FormData(g,i),!c1()){let{name:m,type:b,value:v}=i;if(b==="image"){let N=m?`${m}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else m&&f.append(m,v)}}else{if(Xu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ju,o=null,c=Mu,h=i}return f&&c==="text/plain"&&(h=f,f=void 0),{action:o,method:r.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vo(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function mg(i,l,r,o){let c=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:c.pathname==="/"?c.pathname=`_root.${o}`:l&&ga(c.pathname,l)==="/"?c.pathname=`${Uu(l)}/_root.${o}`:c.pathname=`${Uu(c.pathname)}.${o}`,c}async function h1(i,l){if(i.id in l)return l[i.id];try{let r=await import(i.module);return l[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function m1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function g1(i,l,r){let o=await Promise.all(i.map(async c=>{let f=l.routes[c.route.id];if(f){let h=await h1(f,r);return h.links?h.links():[]}return[]}));return b1(o.flat(1).filter(m1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function ym(i,l,r,o,c,f){let h=(p,m)=>r[m]?p.route.id!==r[m].route.id:!0,g=(p,m)=>{var b;return r[m].pathname!==p.pathname||((b=r[m].route.path)==null?void 0:b.endsWith("*"))&&r[m].params["*"]!==p.params["*"]};return f==="assets"?l.filter((p,m)=>h(p,m)||g(p,m)):f==="data"?l.filter((p,m)=>{var v;let b=o.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(h(p,m)||g(p,m))return!0;if(p.route.shouldRevalidate){let N=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function p1(i,l,{includeHydrateFallback:r}={}){return y1(i.map(o=>{let c=l.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)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function y1(i){return[...new Set(i)]}function v1(i){let l={},r=Object.keys(i).sort();for(let o of r)l[o]=i[o];return l}function b1(i,l){let r=new Set;return new Set(l),i.reduce((o,c)=>{let f=JSON.stringify(v1(c));return r.has(f)||(r.add(f),o.push({key:f,link:c})),o},[])}function Ko(){let i=T.useContext(tl);return Vo(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function S1(){let i=T.useContext(Vu);return Vo(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Xo=T.createContext(void 0);Xo.displayName="FrameworkContext";function Qo(){let i=T.useContext(Xo);return Vo(i,"You must render this element inside a <HydratedRouter> element"),i}function x1(i,l){let r=T.useContext(Xo),[o,c]=T.useState(!1),[f,h]=T.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:b,onTouchStart:v}=l,N=T.useRef(null);T.useEffect(()=>{if(i==="render"&&h(!0),i==="viewport"){let H=q=>{q.forEach(X=>{h(X.isIntersecting)})},B=new IntersectionObserver(H,{threshold:.5});return N.current&&B.observe(N.current),()=>{B.disconnect()}}},[i]),T.useEffect(()=>{if(o){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[o]);let L=()=>{c(!0)},z=()=>{c(!1),h(!1)};return r?i!=="intent"?[f,N,{}]:[f,N,{onFocus:Il(g,L),onBlur:Il(p,z),onMouseEnter:Il(m,L),onMouseLeave:Il(b,z),onTouchStart:Il(v,L)}]:[!1,N,{}]}function Il(i,l){return r=>{i&&i(r),r.defaultPrevented||l(r)}}function E1({page:i,...l}){let r=wv(),{router:o}=Ko(),c=T.useMemo(()=>Im(o.routes,i,o.basename),[o.routes,i,o.basename]);return c?r?T.createElement(R1,{page:i,matches:c,...l}):T.createElement(_1,{page:i,matches:c,...l}):null}function T1(i){let{manifest:l,routeModules:r}=Qo(),[o,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return g1(i,l,r).then(h=>{f||c(h)}),()=>{f=!0}},[i,l,r]),o}function R1({page:i,matches:l,...r}){let o=zt(),{future:c}=Qo(),{basename:f}=Ko(),h=T.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let g=mg(i,f,c.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,m=[];for(let b of l)typeof b.route.shouldRevalidate=="function"?p=!0:m.push(b.route.id);return p&&m.length>0&&g.searchParams.set("_routes",m.join(",")),[g.pathname+g.search]},[f,c.unstable_trailingSlashAwareDataRequests,i,o,l]);return T.createElement(T.Fragment,null,h.map(g=>T.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})))}function _1({page:i,matches:l,...r}){let o=zt(),{future:c,manifest:f,routeModules:h}=Qo(),{basename:g}=Ko(),{loaderData:p,matches:m}=S1(),b=T.useMemo(()=>ym(i,l,m,f,o,"data"),[i,l,m,f,o]),v=T.useMemo(()=>ym(i,l,m,f,o,"assets"),[i,l,m,f,o]),N=T.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,B=!1;if(l.forEach(X=>{var J;let Q=f.routes[X.route.id];!Q||!Q.hasLoader||(!b.some(V=>V.route.id===X.route.id)&&X.route.id in p&&((J=h[X.route.id])!=null&&J.shouldRevalidate)||Q.hasClientLoader?B=!0:H.add(X.route.id))}),H.size===0)return[];let q=mg(i,g,c.unstable_trailingSlashAwareDataRequests,"data");return B&&H.size>0&&q.searchParams.set("_routes",l.filter(X=>H.has(X.route.id)).map(X=>X.route.id).join(",")),[q.pathname+q.search]},[g,c.unstable_trailingSlashAwareDataRequests,p,o,f,b,l,i,h]),L=T.useMemo(()=>p1(v,f),[v,f]),z=T1(v);return T.createElement(T.Fragment,null,N.map(H=>T.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...r})),L.map(H=>T.createElement("link",{key:H,rel:"modulepreload",href:H,...r})),z.map(({key:H,link:B})=>T.createElement("link",{key:H,nonce:r.nonce,...B,crossOrigin:B.crossOrigin??r.crossOrigin})))}function O1(...i){return l=>{i.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var C1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{C1&&(window.__reactRouterVersion="7.14.2")}catch{}function A1({basename:i,children:l,unstable_useTransitions:r,window:o}){let c=T.useRef();c.current==null&&(c.current=lv({window:o,v5Compat:!0}));let f=c.current,[h,g]=T.useState({action:f.action,location:f.location}),p=T.useCallback(m=>{r===!1?g(m):T.startTransition(()=>g(m))},[r]);return T.useLayoutEffect(()=>f.listen(p),[f,p]),T.createElement(a1,{basename:i,children:l,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:r})}var gg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pg=T.forwardRef(function({onClick:l,discover:r="render",prefetch:o="none",relative:c,reloadDocument:f,replace:h,unstable_mask:g,state:p,target:m,to:b,preventScrollReset:v,viewTransition:N,unstable_defaultShouldRevalidate:L,...z},H){let{basename:B,navigator:q,unstable_useTransitions:X}=T.useContext(At),Q=typeof b=="string"&&gg.test(b),J=ng(b,B);b=J.to;let V=Hv(b,{relative:c}),ue=zt(),K=null;if(g){let De=Gu(g,[],ue.unstable_mask?ue.unstable_mask.pathname:"/",!0);B!=="/"&&(De.pathname=De.pathname==="/"?B:Xt([B,De.pathname])),K=q.createHref(De)}let[te,le,se]=x1(o,z),Ae=w1(b,{replace:h,unstable_mask:g,state:p,target:m,preventScrollReset:v,relative:c,viewTransition:N,unstable_defaultShouldRevalidate:L,unstable_useTransitions:X});function Fe(De){l&&l(De),De.defaultPrevented||Ae(De)}let ze=!(J.isExternal||f),je=T.createElement("a",{...z,...se,href:(ze?K:void 0)||J.absoluteURL||V,onClick:ze?Fe:l,ref:O1(H,le),target:m,"data-discover":!Q&&r==="render"?"true":void 0});return te&&!Q?T.createElement(T.Fragment,null,je,T.createElement(E1,{page:V})):je});pg.displayName="Link";var wo=T.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:o="",end:c=!1,style:f,to:h,viewTransition:g,children:p,...m},b){let v=fi(h,{relative:m.relative}),N=zt(),L=T.useContext(Vu),{navigator:z,basename:H}=T.useContext(At),B=L!=null&&U1(v)&&g===!0,q=z.encodeLocation?z.encodeLocation(v).pathname:v.pathname,X=N.pathname,Q=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;r||(X=X.toLowerCase(),Q=Q?Q.toLowerCase():null,q=q.toLowerCase()),Q&&H&&(Q=ga(Q,H)||Q);const J=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let V=X===q||!c&&X.startsWith(q)&&X.charAt(J)==="/",ue=Q!=null&&(Q===q||!c&&Q.startsWith(q)&&Q.charAt(q.length)==="/"),K={isActive:V,isPending:ue,isTransitioning:B},te=V?l:void 0,le;typeof o=="function"?le=o(K):le=[o,V?"active":null,ue?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let se=typeof f=="function"?f(K):f;return T.createElement(pg,{...m,"aria-current":te,className:le,ref:b,style:se,to:h,viewTransition:g},typeof p=="function"?p(K):p)});wo.displayName="NavLink";var z1=T.forwardRef(({discover:i="render",fetcherKey:l,navigate:r,reloadDocument:o,replace:c,state:f,method:h=ju,action:g,onSubmit:p,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:N,...L},z)=>{let{unstable_useTransitions:H}=T.useContext(At),B=L1(),q=D1(g,{relative:m}),X=h.toLowerCase()==="get"?"get":"post",Q=typeof g=="string"&&gg.test(g),J=V=>{if(p&&p(V),V.defaultPrevented)return;V.preventDefault();let ue=V.nativeEvent.submitter,K=(ue==null?void 0:ue.getAttribute("formmethod"))||h,te=()=>B(ue||V.currentTarget,{fetcherKey:l,method:K,navigate:r,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:N});H&&r!==!1?T.startTransition(()=>te()):te()};return T.createElement("form",{ref:z,method:X,action:q,onSubmit:o?p:J,...L,"data-discover":!Q&&i==="render"?"true":void 0})});z1.displayName="Form";function N1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function yg(i){let l=T.useContext(tl);return Le(l,N1(i)),l}function w1(i,{target:l,replace:r,unstable_mask:o,state:c,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let b=Ku(),v=zt(),N=fi(i,{relative:h});return T.useCallback(L=>{if(s1(L,l)){L.preventDefault();let z=r!==void 0?r:li(v)===li(N),H=()=>b(i,{replace:z,unstable_mask:o,state:c,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:p});m?T.startTransition(()=>H()):H()}},[v,b,N,r,o,c,l,i,f,h,g,p,m])}function IS(i){Ot(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 l=T.useRef(No(i)),r=T.useRef(!1),o=zt(),c=T.useMemo(()=>o1(o.search,r.current?null:l.current),[o.search]),f=Ku(),h=T.useCallback((g,p)=>{const m=No(typeof g=="function"?g(new URLSearchParams(c)):g);r.current=!0,f("?"+m,p)},[f,c]);return[c,h]}var j1=0,M1=()=>`__${String(++j1)}__`;function L1(){let{router:i}=yg("useSubmit"),{basename:l}=T.useContext(At),r=Wv(),o=i.fetch,c=i.navigate;return T.useCallback(async(f,h={})=>{let{action:g,method:p,encType:m,formData:b,body:v}=d1(f,l);if(h.navigate===!1){let N=h.fetcherKey||M1();await o(N,r,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||p,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||p,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,c,l,r])}function D1(i,{relative:l}={}){let{basename:r}=T.useContext(At),o=T.useContext(qt);Le(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),f={...fi(i||".",{relative:l})},h=zt();if(i==null){f.search=h.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(b=>b==="")){g.delete("index"),p.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();f.search=b?`?${b}`:""}}return(!i||i===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Xt([r,f.pathname])),li(f)}function U1(i,{relative:l}={}){let r=T.useContext(ug);Le(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=yg("useViewTransitionState"),c=fi(i,{relative:l});if(!r.isTransitioning)return!1;let f=ga(r.currentLocation.pathname,o)||r.currentLocation.pathname,h=ga(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Du(c.pathname,h)!=null||Du(c.pathname,f)!=null}const vm=i=>{let l;const r=new Set,o=(m,b)=>{const v=typeof m=="function"?m(l):m;if(!Object.is(v,l)){const N=l;l=b??(typeof v!="object"||v===null)?v:Object.assign({},l,v),r.forEach(L=>L(l,N))}},c=()=>l,g={setState:o,getState:c,getInitialState:()=>p,subscribe:m=>(r.add(m),()=>r.delete(m))},p=l=i(o,c,g);return g},k1=(i=>i?vm(i):vm),H1=i=>i;function B1(i,l=H1){const r=Pn.useSyncExternalStore(i.subscribe,Pn.useCallback(()=>l(i.getState()),[i,l]),Pn.useCallback(()=>l(i.getInitialState()),[i,l]));return Pn.useDebugValue(r),r}const bm=i=>{const l=k1(i),r=o=>B1(l,o);return Object.assign(r,l),r},Zo=(i=>i?bm(i):bm),Sm="/api/v1";class q1{constructor(){In(this,"token","");In(this,"baseUrl",Sm)}setToken(l){this.token=l}setBaseUrl(l){const r=l.trim();if(!r){this.baseUrl=Sm;return}this.baseUrl=r.endsWith("/api/v1")?r:`${r.replace(/\/+$/,"")}/api/v1`}getToken(){return this.token}getBaseUrl(){return this.baseUrl}headers(){const l={"Content-Type":"application/json"};return this.token&&(l.Authorization=`Bearer ${this.token}`),l}async request(l,r,o,c){let f=this.resolveUrl(r);if(c){const p=new URLSearchParams(c).toString();p&&(f+=`?${p}`)}const h=await fetch(f,{method:l,headers:this.headers(),body:o?JSON.stringify(o):void 0}),g=await h.json();if(!g.ok)throw new Y1(g.error||"Unknown error",h.status);return g.data}get(l,r){return this.request("GET",l,void 0,r)}post(l,r){return this.request("POST",l,r)}patch(l,r){return this.request("PATCH",l,r)}delete(l){return this.request("DELETE",l)}resolveUrl(l){const r=l.replace(/^\/+/,"");return this.baseUrl.startsWith("http://")||this.baseUrl.startsWith("https://")?new URL(r,`${this.baseUrl}/`).toString():`${this.baseUrl}/${r}`.replace(/([^:]\/)\/+/g,"$1")}}class Y1 extends Error{constructor(l,r){super(l),this.status=r,this.name="ApiError"}}const Qe=new q1,Ct=Zo(i=>({token:"",serverUrl:"",isAuthenticated:!1,desktopManaged:!1,managedBy:"none",login:(l,r)=>{Qe.setToken(l),r&&Qe.setBaseUrl(r),localStorage.setItem("cc_token",l),r&&localStorage.setItem("cc_server_url",r),i({token:l,serverUrl:r||"",isAuthenticated:!0,desktopManaged:!1,managedBy:"remote"})},setManagedSession:(l,r,o)=>{Qe.setToken(l),Qe.setBaseUrl(r),i({token:l,serverUrl:r,isAuthenticated:!0,desktopManaged:!0,managedBy:o})},setDesktopSession:(l,r)=>{Ct.getState().setManagedSession(l,r,"electron")},logout:()=>{Ct.getState().desktopManaged||(Qe.setToken(""),Qe.setBaseUrl(""),localStorage.removeItem("cc_token"),localStorage.removeItem("cc_server_url"),i({token:"",serverUrl:"",isAuthenticated:!1,desktopManaged:!1,managedBy:"none"}))},init:()=>{const l=localStorage.getItem("cc_token")||"",r=localStorage.getItem("cc_server_url")||"";l&&(Qe.setToken(l),r&&Qe.setBaseUrl(r),i({token:l,serverUrl:r,isAuthenticated:!0,desktopManaged:!1,managedBy:"remote"}))}})),G1=(i,l,r,o)=>{var f,h,g,p;const c=[r,{code:l,...o||{}}];if((h=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&h.forward)return i.services.logger.forward(c,"warn","react-i18next::",!0);fn(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(g=i==null?void 0:i.services)==null?void 0:g.logger)!=null&&p.warn?i.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},xm={},jo=(i,l,r,o)=>{fn(r)&&xm[r]||(fn(r)&&(xm[r]=new Date),G1(i,l,r,o))},vg=(i,l)=>()=>{if(i.isInitialized)l();else{const r=()=>{setTimeout(()=>{i.off("initialized",r)},0),l()};i.on("initialized",r)}},Mo=(i,l,r)=>{i.loadNamespaces(l,vg(i,r))},Em=(i,l,r,o)=>{if(fn(r)&&(r=[r]),i.options.preload&&i.options.preload.indexOf(l)>-1)return Mo(i,r,o);r.forEach(c=>{i.options.ns.indexOf(c)<0&&i.options.ns.push(c)}),i.loadLanguages(l,vg(i,o))},V1=(i,l,r={})=>!l.languages||!l.languages.length?(jo(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(i,{lng:r.lng,precheck:(o,c)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,i))return!1}}),fn=i=>typeof i=="string",K1=i=>typeof i=="object"&&i!==null,X1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Q1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Z1=i=>Q1[i],$1=i=>i.replace(X1,Z1);let Lo={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:$1};const J1=(i={})=>{Lo={...Lo,...i}},F1=()=>Lo;let bg;const W1=i=>{bg=i},I1=()=>bg,P1={type:"3rdParty",init(i){J1(i.options.react),W1(i)}},eb=T.createContext();class tb{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ab=(i,l)=>{const r=T.useRef();return T.useEffect(()=>{r.current=i},[i,l]),r.current},Sg=(i,l,r,o)=>i.getFixedT(l,r,o),nb=(i,l,r,o)=>T.useCallback(Sg(i,l,r,o),[i,l,r,o]),xg=(i,l={})=>{var J,V,ue,K;const{i18n:r}=l,{i18n:o,defaultNS:c}=T.useContext(eb)||{},f=r||o||I1();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new tb),!f){jo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const te=(se,Ae)=>fn(Ae)?Ae:K1(Ae)&&fn(Ae.defaultValue)?Ae.defaultValue:Array.isArray(se)?se[se.length-1]:se,le=[te,{},!1];return le.t=te,le.i18n={},le.ready=!1,le}(J=f.options.react)!=null&&J.wait&&jo(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h={...F1(),...f.options.react,...l},{useSuspense:g,keyPrefix:p}=h;let m=c||((V=f.options)==null?void 0:V.defaultNS);m=fn(m)?[m]:m||["translation"],(K=(ue=f.reportNamespaces).addUsedNamespaces)==null||K.call(ue,m);const b=(f.isInitialized||f.initializedStoreOnce)&&m.every(te=>V1(te,f,h)),v=nb(f,l.lng||null,h.nsMode==="fallback"?m:m[0],p),N=()=>v,L=()=>Sg(f,l.lng||null,h.nsMode==="fallback"?m:m[0],p),[z,H]=T.useState(N);let B=m.join();l.lng&&(B=`${l.lng}${B}`);const q=ab(B),X=T.useRef(!0);T.useEffect(()=>{const{bindI18n:te,bindI18nStore:le}=h;X.current=!0,!b&&!g&&(l.lng?Em(f,l.lng,m,()=>{X.current&&H(L)}):Mo(f,m,()=>{X.current&&H(L)})),b&&q&&q!==B&&X.current&&H(L);const se=()=>{X.current&&H(L)};return te&&(f==null||f.on(te,se)),le&&(f==null||f.store.on(le,se)),()=>{X.current=!1,f&&te&&(te==null||te.split(" ").forEach(Ae=>f.off(Ae,se))),le&&f&&le.split(" ").forEach(Ae=>f.store.off(Ae,se))}},[f,B]),T.useEffect(()=>{X.current&&b&&H(N)},[f,p,b]);const Q=[z,f,b];if(Q.t=z,Q.i18n=f,Q.ready=b,b||!b&&!g)return Q;throw new Promise(te=>{l.lng?Em(f,l.lng,m,()=>te()):Mo(f,m,()=>te())})};function Eg(i){var l,r,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(l=0;l<c;l++)i[l]&&(r=Eg(i[l]))&&(o&&(o+=" "),o+=r)}else for(r in i)i[r]&&(o&&(o+=" "),o+=r);return o}function lb(){for(var i,l,r=0,o="",c=arguments.length;r<c;r++)(i=arguments[r])&&(l=Eg(i))&&(o&&(o+=" "),o+=l);return o}function He(...i){return lb(i)}function PS(i){return i?new Date(i).toLocaleString():"-"}let ii=typeof window<"u"&&window.desktop?"electron":"local_core";const $o=Zo(i=>({snapshot:null,setSnapshot:l=>i({snapshot:l})}));function dn(){return ii}function Eo(i){ii=i}function ib(){return ii==="electron"}function ub(){return!1}function To(i){$o.getState().setSnapshot(i)}function rb(){return $o.getState().snapshot}function sb(i){return!!(i!=null&&i.knowledge.some(l=>l.enabled!==!1))}function ob(i){return!!(i!=null&&i.schedulers.some(l=>l.enabled!==!1))}function cb(i,l){return!!(i!=null&&i.agents.some(r=>r.agentType===l))}function fb(i){return!!(i!=null&&i.agents.some(l=>l.agentType))}function db(i=rb()){const l=!!i,r=cb(i,"localcore-acp");return{desktopRuntime:l||ii==="electron"||ii==="local_core",desktopChat:r,chatRoute:l?r:!0,desktopWorkspace:l?fb(i):!0,knowledgeModule:l?sb(i):!0,schedulerModule:l?ob(i):!0}}function Jo(){const i=$o(l=>l.snapshot);return db(i)}function Tm(i){return i==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i}function Rm(i){document.documentElement.classList.toggle("dark",i==="dark")}const Fo=Zo(i=>({theme:"dark",resolved:"dark",setTheme:l=>{const r=Tm(l);localStorage.setItem("cc_theme",l),Rm(r),i({theme:l,resolved:r})},init:()=>{const l=localStorage.getItem("cc_theme")||"dark",r=Tm(l);Rm(r),i({theme:l,resolved:r})}})),hb="modulepreload",mb=function(i,l){return new URL(i,l).href},_m={},Pe=function(l,r,o){let c=Promise.resolve();if(r&&r.length>0){let h=function(b){return Promise.all(b.map(v=>Promise.resolve(v).then(N=>({status:"fulfilled",value:N}),N=>({status:"rejected",reason:N}))))};const g=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),m=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));c=h(r.map(b=>{if(b=mb(b,o),b in _m)return;_m[b]=!0;const v=b.endsWith(".css"),N=v?'[rel="stylesheet"]':"";if(!!o)for(let H=g.length-1;H>=0;H--){const B=g[H];if(B.href===b&&(!v||B.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${b}"]${N}`))return;const z=document.createElement("link");if(z.rel=v?"stylesheet":hb,v||(z.as="script"),z.crossOrigin="",z.href=b,m&&z.setAttribute("nonce",m),document.head.appendChild(z),v)return new Promise((H,B)=>{z.addEventListener("load",H),z.addEventListener("error",()=>B(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 l().catch(f)})},gb=T.lazy(()=>Pe(()=>import("./Dashboard-iFlRnd7Y.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),pb=T.lazy(()=>Pe(()=>import("./ThreadChat-YvVsACW3.js"),__vite__mapDeps([9,10,11,5,12,13,14,15,16,17,18,19,20,21,22,8]),import.meta.url)),yb=T.lazy(()=>Pe(()=>import("./Chat-CYtp6m7T.js"),__vite__mapDeps([23,10,11,2,12,13,4,24,14,17,19,20,21]),import.meta.url)),vb=T.lazy(()=>Pe(()=>import("./Workspace-ST7V8u6T.js"),__vite__mapDeps([25,10,11,26,22,13,2,3,5,15,20,27,28]),import.meta.url)),bb=T.lazy(()=>Pe(()=>import("./ProjectList-DIwr2TXg.js"),__vite__mapDeps([29,1,2,3,4,6,30]),import.meta.url)),Sb=T.lazy(()=>Pe(()=>import("./ProjectDetail-D9FY9NWZ.js"),__vite__mapDeps([31,1,10,11,2,3,4,32,30,33,27,13,20,34]),import.meta.url)),xb=T.lazy(()=>Pe(()=>import("./SessionList-UPnWlXXO.js"),__vite__mapDeps([35,1,26,11,22,13,2,4,24,36,18,21]),import.meta.url)),Eb=T.lazy(()=>Pe(()=>import("./SessionChat-Cm9CW8Zx.js"),__vite__mapDeps([37,1,24,12,13,32,18,16,21]),import.meta.url)),Tb=T.lazy(()=>Pe(()=>import("./CronList-BDtB1SuA.js"),__vite__mapDeps([38,1,10,11,26,22,13,2,3,27,34,19,20]),import.meta.url)),Rb=T.lazy(()=>Pe(()=>import("./Config-DppMSPHF.js"),__vite__mapDeps([39,5,1,3,28,33]),import.meta.url)),_b=T.lazy(()=>Pe(()=>import("./Logs-CyxSVOFK.js"),__vite__mapDeps([40,1,26,11,22,13,3,32,36]),import.meta.url)),Ob=T.lazy(()=>Pe(()=>import("./KnowledgeHome-CFeJre6i.js"),__vite__mapDeps([41,10,11,2,19,20,17,27,7]),import.meta.url)),Cb=T.lazy(()=>Pe(()=>import("./KnowledgeDetail-CKPhKPIg.js"),__vite__mapDeps([42,2,32,17,20]),import.meta.url));class Ab{constructor(){In(this,"routes",new Map);In(this,"navItems",new Map)}registerRoute(l){this.routes.set(l.id,l)}registerNavItem(l){this.navItems.set(l.id,l)}listRoutes(){return[...this.routes.values()].sort((l,r)=>l.order-r.order)}listNavItems(){return[...this.navItems.values()].sort((l,r)=>l.order-r.order)}}function Pl(i,l,r="/"){return i?l:_.jsx(Ya,{to:r,replace:!0})}function zb(){const{name:i}=cg();return Ct(r=>r.desktopManaged)?_.jsx(Ya,{to:i?`/workspace?project=${encodeURIComponent(i)}`:"/workspace",replace:!0}):_.jsx(Sb,{})}function Om(){const{project:i,id:l}=cg();if(!Ct(c=>c.desktopManaged))return l&&i?_.jsx(Eb,{}):_.jsx(xb,{});const o=new URLSearchParams;return i&&o.set("project",i),l&&o.set("session",l),_.jsx(Ya,{to:`/chat${o.toString()?`?${o.toString()}`:""}`,replace:!0})}function Nb(i){[{id:"dashboard",index:!0,titleKey:"nav.dashboard",order:10,element:()=>_.jsx(gb,{})},{id:"chat",path:"chat",titleKey:"nav.chat",order:20,element:({features:r})=>Pl(r.chatRoute,r.desktopChat?_.jsx(pb,{}):_.jsx(yb,{}))},{id:"workspace",path:"workspace",titleKey:"nav.workspace",order:30,element:({features:r})=>Pl(r.desktopWorkspace,_.jsx(vb,{}))},{id:"knowledge",path:"knowledge",titleKey:"nav.knowledge",order:40,element:({features:r})=>Pl(r.knowledgeModule,_.jsx(Ob,{}))},{id:"knowledge-detail",path:"knowledge/:knowledgebaseId",titleKey:"nav.knowledge",order:41,element:({features:r})=>Pl(r.knowledgeModule,_.jsx(Cb,{}))},{id:"projects",path:"projects",titleKey:"nav.projects",order:50,element:({desktopManaged:r,features:o})=>r&&o.desktopWorkspace?_.jsx(Ya,{to:"/workspace",replace:!0}):_.jsx(bb,{})},{id:"project-detail",path:"projects/:name",titleKey:"nav.projects",order:51,element:()=>_.jsx(zb,{})},{id:"sessions",path:"sessions",titleKey:"nav.sessions",order:60,element:()=>_.jsx(Om,{})},{id:"session-detail",path:"sessions/:project/:id",titleKey:"nav.sessions",order:61,element:()=>_.jsx(Om,{})},{id:"cron",path:"cron",titleKey:"nav.cron",order:70,element:({features:r})=>Pl(r.schedulerModule,_.jsx(Tb,{}))},{id:"system",path:"system",titleKey:"nav.system",order:80,element:()=>_.jsx(Rb,{})},{id:"system-logs",path:"system/logs",titleKey:"nav.system",order:81,element:()=>_.jsx(_b,{})}].forEach(r=>i.registerRoute(r))}function wb(i){[{id:"dashboard",path:"/",labelKey:"nav.dashboard",icon:z0,order:10,end:!0},{id:"chat",path:"/chat",labelKey:"nav.chat",icon:k0,order:20,visible:({features:r})=>r.chatRoute,resolveLabelKey:({features:r,runtimeProvider:o})=>r.desktopChat?o==="electron"?"nav.chatDesktop":"nav.chat":"nav.chatWeb"},{id:"workspace",path:"/workspace",labelKey:"nav.workspace",icon:Z0,order:30,visible:({features:r})=>r.desktopWorkspace},{id:"knowledge",path:"/knowledge",labelKey:"nav.knowledge",icon:w0,order:40,visible:({features:r})=>r.knowledgeModule},{id:"projects",path:"/projects",labelKey:"nav.projects",icon:_0,order:50,visible:({desktopManaged:r})=>!r},{id:"sessions",path:"/sessions",labelKey:"nav.sessions",icon:D0,order:60,visible:({desktopManaged:r})=>!r},{id:"cron",path:"/cron",labelKey:"nav.cron",icon:T0,order:70,visible:({features:r})=>r.schedulerModule},{id:"system",path:"/system",labelKey:"nav.system",icon:G0,order:80}].forEach(r=>i.registerNavItem(r))}const Qu=new Ab;Nb(Qu);wb(Qu);function Tg({className:i,markClassName:l,showWordmark:r=!1}){const o=T.useId(),c=`${o}-bg`,f=`${o}-stroke`;return _.jsxs("div",{className:He("inline-flex items-center gap-3",i),children:[_.jsxs("svg",{className:He("h-8 w-8 shrink-0",l),viewBox:"0 0 64 64",role:"img","aria-label":"AgentDock",fill:"none",children:[_.jsxs("defs",{children:[_.jsxs("linearGradient",{id:c,x1:"7",y1:"5",x2:"57",y2:"59",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{className:"[stop-color:#FFFFFF] dark:[stop-color:#3A3A3C]"}),_.jsx("stop",{offset:"0.52",className:"[stop-color:#F5F5F7] dark:[stop-color:#2C2C2E]"}),_.jsx("stop",{offset:"1",className:"[stop-color:#E5E5EA] dark:[stop-color:#1C1C1E]"})]}),_.jsxs("linearGradient",{id:f,x1:"18",y1:"16",x2:"47",y2:"48",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{stopColor:"#5AC8FA"}),_.jsx("stop",{offset:"0.44",stopColor:"#0A84FF"}),_.jsx("stop",{offset:"1",stopColor:"#007AFF"})]})]}),_.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"}),_.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"}),_.jsx("path",{d:"M20.8 37.5H34.7",className:"stroke-white dark:stroke-white",strokeWidth:"5.25",strokeLinecap:"round"}),_.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"}),_.jsx("path",{d:"M34 25.5V39.5",className:"stroke-black/70 dark:stroke-black/80",strokeWidth:"3",strokeLinecap:"round",opacity:"0.18"})]}),r&&_.jsx("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:"AgentDock"})]})}var Ro={};const ae=i=>typeof i=="string",ei=()=>{let i,l;const r=new Promise((o,c)=>{i=o,l=c});return r.resolve=i,r.reject=l,r},Cm=i=>i==null?"":""+i,jb=(i,l,r)=>{i.forEach(o=>{l[o]&&(r[o]=l[o])})},Mb=/###/g,Am=i=>i&&i.indexOf("###")>-1?i.replace(Mb,"."):i,zm=i=>!i||ae(i),ti=(i,l,r)=>{const o=ae(l)?l.split("."):l;let c=0;for(;c<o.length-1;){if(zm(i))return{};const f=Am(o[c]);!i[f]&&r&&(i[f]=new r),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++c}return zm(i)?{}:{obj:i,k:Am(o[c])}},Nm=(i,l,r)=>{const{obj:o,k:c}=ti(i,l,Object);if(o!==void 0||l.length===1){o[c]=r;return}let f=l[l.length-1],h=l.slice(0,l.length-1),g=ti(i,h,Object);for(;g.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),g=ti(i,h,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=r},Lb=(i,l,r,o)=>{const{obj:c,k:f}=ti(i,l,Object);c[f]=c[f]||[],c[f].push(r)},ku=(i,l)=>{const{obj:r,k:o}=ti(i,l);if(r&&Object.prototype.hasOwnProperty.call(r,o))return r[o]},Db=(i,l,r)=>{const o=ku(i,r);return o!==void 0?o:ku(l,r)},Rg=(i,l,r)=>{for(const o in l)o!=="__proto__"&&o!=="constructor"&&(o in i?ae(i[o])||i[o]instanceof String||ae(l[o])||l[o]instanceof String?r&&(i[o]=l[o]):Rg(i[o],l[o],r):i[o]=l[o]);return i},sn=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ub={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const kb=i=>ae(i)?i.replace(/[&<>"'\/]/g,l=>Ub[l]):i;class Hb{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const r=this.regExpMap.get(l);if(r!==void 0)return r;const o=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,o),this.regExpQueue.push(l),o}}const Bb=[" ",",","?","!",";"],qb=new Hb(20),Yb=(i,l,r)=>{l=l||"",r=r||"";const o=Bb.filter(h=>l.indexOf(h)<0&&r.indexOf(h)<0);if(o.length===0)return!0;const c=qb.getRegExp(`(${o.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!c.test(i);if(!f){const h=i.indexOf(r);h>0&&!c.test(i.substring(0,h))&&(f=!0)}return f},Do=(i,l,r=".")=>{if(!i)return;if(i[l])return Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;const o=l.split(r);let c=i;for(let f=0;f<o.length;){if(!c||typeof c!="object")return;let h,g="";for(let p=f;p<o.length;++p)if(p!==f&&(g+=r),g+=o[p],h=c[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&p<o.length-1)continue;f+=p-f+1;break}c=h}return c},ui=i=>i==null?void 0:i.replace(/_/g,"-"),Gb={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,l){var r,o;(o=(r=console==null?void 0:console[i])==null?void 0:r.apply)==null||o.call(r,console,l)}};class Hu{constructor(l,r={}){this.init(l,r)}init(l,r={}){this.prefix=r.prefix||"i18next:",this.logger=l||Gb,this.options=r,this.debug=r.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,r,o,c){return c&&!this.debug?null:(ae(l[0])&&(l[0]=`${o}${this.prefix} ${l[0]}`),this.logger[r](l))}create(l){return new Hu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Hu(this.logger,l)}}var Ft=new Hu;class Zu{constructor(){this.observers={}}on(l,r){return l.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const c=this.observers[o].get(r)||0;this.observers[o].set(r,c+1)}),this}off(l,r){if(this.observers[l]){if(!r){delete this.observers[l];return}this.observers[l].delete(r)}}emit(l,...r){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c.apply(c,[l,...r])})}}class wm extends Zu{constructor(l,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const r=this.options.ns.indexOf(l);r>-1&&this.options.ns.splice(r,1)}getResource(l,r,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;l.indexOf(".")>-1?g=l.split("."):(g=[l,r],o&&(Array.isArray(o)?g.push(...o):ae(o)&&f?g.push(...o.split(f)):g.push(o)));const p=ku(this.data,g);return!p&&!r&&!o&&l.indexOf(".")>-1&&(l=g[0],r=g[1],o=g.slice(2).join(".")),p||!h||!ae(o)?p:Do((b=(m=this.data)==null?void 0:m[l])==null?void 0:b[r],o,f)}addResource(l,r,o,c,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[l,r];o&&(g=g.concat(h?o.split(h):o)),l.indexOf(".")>-1&&(g=l.split("."),c=r,r=g[1]),this.addNamespaces(r),Nm(this.data,g,c),f.silent||this.emit("added",l,r,o,c)}addResources(l,r,o,c={silent:!1}){for(const f in o)(ae(o[f])||Array.isArray(o[f]))&&this.addResource(l,r,f,o[f],{silent:!0});c.silent||this.emit("added",l,r,o)}addResourceBundle(l,r,o,c,f,h={silent:!1,skipCopy:!1}){let g=[l,r];l.indexOf(".")>-1&&(g=l.split("."),c=o,o=r,r=g[1]),this.addNamespaces(r);let p=ku(this.data,g)||{};h.skipCopy||(o=JSON.parse(JSON.stringify(o))),c?Rg(p,o,f):p={...p,...o},Nm(this.data,g,p),h.silent||this.emit("added",l,r,o)}removeResourceBundle(l,r){this.hasResourceBundle(l,r)&&delete this.data[l][r],this.removeNamespaces(r),this.emit("removed",l,r)}hasResourceBundle(l,r){return this.getResource(l,r)!==void 0}getResourceBundle(l,r){return r||(r=this.options.defaultNS),this.getResource(l,r)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const r=this.getDataByLanguage(l);return!!(r&&Object.keys(r)||[]).find(c=>r[c]&&Object.keys(r[c]).length>0)}toJSON(){return this.data}}var _g={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,l,r,o,c){return i.forEach(f=>{var h;l=((h=this.processors[f])==null?void 0:h.process(l,r,o,c))??l}),l}};const Og=Symbol("i18next/PATH_KEY");function Vb(){const i=[],l=Object.create(null);let r;return l.get=(o,c)=>{var f;return(f=r==null?void 0:r.revoke)==null||f.call(r),c===Og?i:(i.push(c),r=Proxy.revocable(o,l),r.proxy)},Proxy.revocable(Object.create(null),l).proxy}function el(i,l){const{[Og]:r}=i(Vb()),o=(l==null?void 0:l.keySeparator)??".",c=(l==null?void 0:l.nsSeparator)??":";if(r.length>1&&c){const f=l==null?void 0:l.ns,h=Array.isArray(f)?f:null;if(h&&h.length>1&&h.slice(1).includes(r[0]))return`${r[0]}${c}${r.slice(1).join(o)}`}return r.join(o)}const jm={},_o=i=>!ae(i)&&typeof i!="boolean"&&typeof i!="number";class Bu extends Zu{constructor(l,r={}){super(),jb(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ft.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,r={interpolation:{}}){const o={...r};if(l==null)return!1;const c=this.resolve(l,o);if((c==null?void 0:c.res)===void 0)return!1;const f=_o(c.res);return!(o.returnObjects===!1&&f)}extractFromKey(l,r){let o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const c=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const h=o&&l.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Yb(l,o,c);if(h&&!g){const p=l.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:l,namespaces:ae(f)?[f]:f};const m=l.split(o);(o!==c||o===c&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),l=m.join(c)}return{key:l,namespaces:ae(f)?[f]:f}}translate(l,r,o){let c=typeof r=="object"?{...r}:r;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),l==null)return"";typeof l=="function"&&(l=el(l,{...this.options,...c})),Array.isArray(l)||(l=[String(l)]),l=l.map(ze=>typeof ze=="function"?el(ze,{...this.options,...c}):String(ze));const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:g,namespaces:p}=this.extractFromKey(l[l.length-1],c),m=p[p.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=c.lng||this.language,N=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return N?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 L=this.resolve(l,c);let z=L==null?void 0:L.res;const H=(L==null?void 0:L.usedKey)||g,B=(L==null?void 0:L.exactUsedKey)||g,q=["[object Number]","[object Function]","[object RegExp]"],X=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,Q=!this.i18nFormat||this.i18nFormat.handleAsObject,J=c.count!==void 0&&!ae(c.count),V=Bu.hasDefaultValue(c),ue=J?this.pluralResolver.getSuffix(v,c.count,c):"",K=c.ordinal&&J?this.pluralResolver.getSuffix(v,c.count,{ordinal:!1}):"",te=J&&!c.ordinal&&c.count===0,le=te&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${ue}`]||c[`defaultValue${K}`]||c.defaultValue;let se=z;Q&&!z&&V&&(se=le);const Ae=_o(se),Fe=Object.prototype.toString.apply(se);if(Q&&se&&Ae&&q.indexOf(Fe)<0&&!(ae(X)&&Array.isArray(se))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,se,{...c,ns:p}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(L.res=ze,L.usedParams=this.getUsedParamsDetails(c),L):ze}if(h){const ze=Array.isArray(se),je=ze?[]:{},De=ze?B:H;for(const j in se)if(Object.prototype.hasOwnProperty.call(se,j)){const Y=`${De}${h}${j}`;V&&!z?je[j]=this.translate(Y,{...c,defaultValue:_o(le)?le[j]:void 0,joinArrays:!1,ns:p}):je[j]=this.translate(Y,{...c,joinArrays:!1,ns:p}),je[j]===Y&&(je[j]=se[j])}z=je}}else if(Q&&ae(X)&&Array.isArray(z))z=z.join(X),z&&(z=this.extendTranslation(z,l,c,o));else{let ze=!1,je=!1;!this.isValidLookup(z)&&V&&(ze=!0,z=le),this.isValidLookup(z)||(je=!0,z=g);const j=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&je?void 0:z,Y=V&&le!==z&&this.options.updateMissing;if(je||ze||Y){if(this.logger.log(Y?"updateKey":"missingKey",v,m,g,Y?le:z),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 P=[];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++)P.push(pe[x]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(c.lng||this.language):P.push(c.lng||this.language);const Se=(x,D,G)=>{var ne;const Z=V&&G!==z?G:j;this.options.missingKeyHandler?this.options.missingKeyHandler(x,m,D,Z,Y,c):(ne=this.backendConnector)!=null&&ne.saveMissing&&this.backendConnector.saveMissing(x,m,D,Z,Y,c),this.emit("missingKey",x,m,D,z)};this.options.saveMissing&&(this.options.saveMissingPlurals&&J?P.forEach(x=>{const D=this.pluralResolver.getSuffixes(x,c);te&&c[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(G=>{Se([x],g+G,c[`defaultValue${G}`]||le)})}):Se(P,g,le))}z=this.extendTranslation(z,l,c,L,o),je&&z===g&&this.options.appendNamespaceToMissingKey&&(z=`${m}${b}${g}`),(je||ze)&&this.options.parseMissingKeyHandler&&(z=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${g}`:g,ze?z:void 0,c))}return f?(L.res=z,L.usedParams=this.getUsedParamsDetails(c),L):z}extendTranslation(l,r,o,c,f){var p,m;if((p=this.i18nFormat)!=null&&p.parse)l=this.i18nFormat.parse(l,{...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=ae(l)&&(((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 L=l.match(this.interpolator.nestingRegexp);v=L&&L.length}let N=o.replace&&!ae(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),l=this.interpolator.interpolate(l,N,o.lng||this.language||c.usedLng,o),b){const L=l.match(this.interpolator.nestingRegexp),z=L&&L.length;v<z&&(o.nest=!1)}!o.lng&&c&&c.res&&(o.lng=this.language||c.usedLng),o.nest!==!1&&(l=this.interpolator.nest(l,(...L)=>(f==null?void 0:f[0])===L[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${L[0]} in key: ${r[0]}`),null):this.translate(...L,r),o)),o.interpolation&&this.interpolator.reset()}const h=o.postProcess||this.options.postProcess,g=ae(h)?[h]:h;return l!=null&&(g!=null&&g.length)&&o.applyPostProcessor!==!1&&(l=_g.handle(g,l,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),l}resolve(l,r={}){let o,c,f,h,g;return ae(l)&&(l=[l]),Array.isArray(l)&&(l=l.map(p=>typeof p=="function"?el(p,{...this.options,...r}):p)),l.forEach(p=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(p,r),b=m.key;c=b;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const N=r.count!==void 0&&!ae(r.count),L=N&&!r.ordinal&&r.count===0,z=r.context!==void 0&&(ae(r.context)||typeof r.context=="number")&&r.context!=="",H=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);v.forEach(B=>{var q,X;this.isValidLookup(o)||(g=B,!jm[`${H[0]}-${B}`]&&((q=this.utils)!=null&&q.hasLoadedNamespace)&&!((X=this.utils)!=null&&X.hasLoadedNamespace(g))&&(jm[`${H[0]}-${B}`]=!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(Q=>{var ue;if(this.isValidLookup(o))return;h=Q;const J=[b];if((ue=this.i18nFormat)!=null&&ue.addLookupKeys)this.i18nFormat.addLookupKeys(J,b,Q,B,r);else{let K;N&&(K=this.pluralResolver.getSuffix(Q,r.count,r));const te=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(r.ordinal&&K.indexOf(le)===0&&J.push(b+K.replace(le,this.options.pluralSeparator)),J.push(b+K),L&&J.push(b+te)),z){const se=`${b}${this.options.contextSeparator||"_"}${r.context}`;J.push(se),N&&(r.ordinal&&K.indexOf(le)===0&&J.push(se+K.replace(le,this.options.pluralSeparator)),J.push(se+K),L&&J.push(se+te))}}let V;for(;V=J.pop();)this.isValidLookup(o)||(f=V,o=this.getResource(Q,B,V,r))}))})}),{res:o,usedKey:c,exactUsedKey:f,usedLng:h,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,r,o,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,r,o,c):this.resourceStore.getResource(l,r,o,c)}getUsedParamsDetails(l={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=l.replace&&!ae(l.replace);let c=o?l.replace:l;if(o&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!o){c={...c};for(const f of r)delete c[f]}return c}static hasDefaultValue(l){const r="defaultValue";for(const o in l)if(Object.prototype.hasOwnProperty.call(l,o)&&r===o.substring(0,r.length)&&l[o]!==void 0)return!0;return!1}}class Mm{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ft.create("languageUtils")}getScriptPartFromCode(l){if(l=ui(l),!l||l.indexOf("-")<0)return null;const r=l.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(l){if(l=ui(l),!l||l.indexOf("-")<0)return l;const r=l.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(l){if(ae(l)&&l.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(l)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let r;return l.forEach(o=>{if(r)return;const c=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(c))&&(r=c)}),!r&&this.options.supportedLngs&&l.forEach(o=>{if(r)return;const c=this.getScriptPartFromCode(o);if(this.isSupportedCode(c))return r=c;const f=this.getLanguagePartFromCode(o);if(this.isSupportedCode(f))return r=f;r=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})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(l,r){if(!l)return[];if(typeof l=="function"&&(l=l(r)),ae(l)&&(l=[l]),Array.isArray(l))return l;if(!r)return l.default||[];let o=l[r];return o||(o=l[this.getScriptPartFromCode(r)]),o||(o=l[this.formatLanguageCode(r)]),o||(o=l[this.getLanguagePartFromCode(r)]),o||(o=l.default),o||[]}toResolveHierarchy(l,r){const o=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],l),c=[],f=h=>{h&&(this.isSupportedCode(h)?c.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return ae(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(l))):ae(l)&&f(this.formatLanguageCode(l)),o.forEach(h=>{c.indexOf(h)<0&&f(this.formatLanguageCode(h))}),c}}const Lm={zero:0,one:1,two:2,few:3,many:4,other:5},Dm={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Kb{constructor(l,r={}){this.languageUtils=l,this.options=r,this.logger=Ft.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(l,r={}){const o=ui(l==="dev"?"en":l),c=r.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!"),Dm;if(!l.match(/-|_/))return Dm;const p=this.languageUtils.getLanguagePartFromCode(l);h=this.getRule(p,r)}return this.pluralRulesCache[f]=h,h}needsPlural(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,r,o={}){return this.getSuffixes(l,o).map(c=>`${r}${c}`)}getSuffixes(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),o?o.resolvedOptions().pluralCategories.sort((c,f)=>Lm[c]-Lm[f]).map(c=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,r,o={}){const c=this.getRule(l,o);return c?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c.select(r)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",r,o))}}const Um=(i,l,r,o=".",c=!0)=>{let f=Db(i,l,r);return!f&&c&&ae(r)&&(f=Do(i,r,o),f===void 0&&(f=Do(l,r,o))),f},Oo=i=>i.replace(/\$/g,"$$$$");class km{constructor(l={}){var r;this.logger=Ft.create("interpolator"),this.options=l,this.format=((r=l==null?void 0:l.interpolation)==null?void 0:r.format)||(o=>o),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:r,escapeValue:o,useRawValueToEscape:c,prefix:f,prefixEscaped:h,suffix:g,suffixEscaped:p,formatSeparator:m,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:N,nestingPrefixEscaped:L,nestingSuffix:z,nestingSuffixEscaped:H,nestingOptionsSeparator:B,maxReplaces:q,alwaysFormat:X}=l.interpolation;this.escape=r!==void 0?r:kb,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?sn(f):h||"{{",this.suffix=g?sn(g):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=N?sn(N):L||sn("$t("),this.nestingSuffix=z?sn(z):H||sn(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=q||1e3,this.alwaysFormat=X!==void 0?X:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(r,o)=>(r==null?void 0:r.source)===o?(r.lastIndex=0,r):new RegExp(o,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(l,r,o,c){var L;let f,h,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=z=>{if(z.indexOf(this.formatSeparator)<0){const X=Um(r,p,z,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(X,void 0,o,{...c,...r,interpolationkey:z}):X}const H=z.split(this.formatSeparator),B=H.shift().trim(),q=H.join(this.formatSeparator).trim();return this.format(Um(r,p,B,this.options.keySeparator,this.options.ignoreJSONStructure),q,o,{...c,...r,interpolationkey:B})};this.resetRegExp();const b=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((L=c==null?void 0:c.interpolation)==null?void 0:L.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:z=>Oo(z)},{regex:this.regexp,safeValue:z=>this.escapeValue?Oo(this.escape(z)):Oo(z)}].forEach(z=>{for(g=0;f=z.regex.exec(l);){const H=f[1].trim();if(h=m(H),h===void 0)if(typeof b=="function"){const q=b(l,f,c);h=ae(q)?q:""}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 ${l}`),h="";else!ae(h)&&!this.useRawValueToEscape&&(h=Cm(h));const B=z.safeValue(h);if(l=l.replace(f[0],B),v?(z.regex.lastIndex+=h.length,z.regex.lastIndex-=f[0].length):z.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,r,o={}){let c,f,h;const g=(p,m)=>{const b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;const v=p.split(new RegExp(`${sn(b)}[ ]*{`));let N=`{${v[1]}`;p=v[0],N=this.interpolate(N,h);const L=N.match(/'/g),z=N.match(/"/g);(((L==null?void 0:L.length)??0)%2===0&&!z||((z==null?void 0:z.length)??0)%2!==0)&&(N=N.replace(/'/g,'"'));try{h=JSON.parse(N),m&&(h={...m,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,H),`${p}${b}${N}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,p};for(;c=this.nestingRegexp.exec(l);){let p=[];h={...o},h=h.replace&&!ae(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&&(p=c[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,m)),f=r(g.call(this,c[1].trim(),h),h),f&&c[0]===l&&!ae(f))return f;ae(f)||(f=Cm(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),p.length&&(f=p.reduce((b,v)=>this.format(b,v,o.lng,{...o,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const Xb=i=>{let l=i.toLowerCase().trim();const r={};if(i.indexOf("(")>-1){const o=i.split("(");l=o[0].toLowerCase().trim();const c=o[1].substring(0,o[1].length-1);l==="currency"&&c.indexOf(":")<0?r.currency||(r.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?r.range||(r.range=c.trim()):c.split(";").forEach(h=>{if(h){const[g,...p]=h.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),b=g.trim();r[b]||(r[b]=m),m==="false"&&(r[b]=!1),m==="true"&&(r[b]=!0),isNaN(m)||(r[b]=parseInt(m,10))}})}return{formatName:l,formatOptions:r}},Hm=i=>{const l={};return(r,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=l[h];return g||(g=i(ui(o),c),l[h]=g),g(r)}},Qb=i=>(l,r,o)=>i(ui(r),o)(l);class Zb{constructor(l={}){this.logger=Ft.create("formatter"),this.options=l,this.init(l)}init(l,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const o=r.cacheInBuiltFormats?Hm:Qb;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(l,r){this.formats[l.toLowerCase().trim()]=r}addCached(l,r){this.formats[l.toLowerCase().trim()]=Hm(r)}format(l,r,o,c={}){const f=r.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(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{var v;const{formatName:m,formatOptions:b}=Xb(p);if(this.formats[m]){let N=g;try{const L=((v=c==null?void 0:c.formatParams)==null?void 0:v[c.interpolationkey])||{},z=L.locale||L.lng||c.locale||c.lng||o;N=this.formats[m](g,z,{...b,...c,...L})}catch(L){this.logger.warn(L)}return N}else this.logger.warn(`there was no format function for ${m}`);return g},l)}}const $b=(i,l)=>{i.pending[l]!==void 0&&(delete i.pending[l],i.pendingCount--)};class Jb extends Zu{constructor(l,r,o,c={}){var f,h;super(),this.backend=l,this.store=r,this.services=o,this.languageUtils=o.languageUtils,this.options=c,this.logger=Ft.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(l,r,o,c){const f={},h={},g={},p={};return l.forEach(m=>{let b=!0;r.forEach(v=>{const N=`${m}|${v}`;!o.reload&&this.store.hasResourceBundle(m,v)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?h[N]===void 0&&(h[N]=!0):(this.state[N]=1,b=!1,h[N]===void 0&&(h[N]=!0),f[N]===void 0&&(f[N]=!0),p[v]===void 0&&(p[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(p)}}loaded(l,r,o){const c=l.split("|"),f=c[0],h=c[1];r&&this.emit("failedLoading",f,h,r),!r&&o&&this.store.addResourceBundle(f,h,o,void 0,void 0,{skipCopy:!0}),this.state[l]=r?-1:2,r&&o&&(this.state[l]=0);const g={};this.queue.forEach(p=>{Lb(p.loaded,[f],h),$b(p,l),r&&p.errors.push(r),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{g[m]||(g[m]={});const b=p.loaded[m];b.length&&b.forEach(v=>{g[m][v]===void 0&&(g[m][v]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(l,r,o,c=0,f=this.retryTimeout,h){if(!l.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:r,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,l,r,o,c+1,f*2,h)},f);return}h(m,b)},p=this.backend[o].bind(this.backend);if(p.length===2){try{const m=p(l,r);m&&typeof m.then=="function"?m.then(b=>g(null,b)).catch(g):g(null,m)}catch(m){g(m)}return}return p(l,r,g)}prepareLoading(l,r,o={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ae(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ae(r)&&(r=[r]);const f=this.queueLoad(l,r,o,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(l,r,o){this.prepareLoading(l,r,{},o)}reload(l,r,o){this.prepareLoading(l,r,{reload:!0},o)}loadOne(l,r=""){const o=l.split("|"),c=o[0],f=o[1];this.read(c,f,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${r}loading namespace ${f} for language ${c} failed`,h),!h&&g&&this.logger.log(`${r}loaded namespace ${f} for language ${c}`,g),this.loaded(l,h,g)})}saveMissing(l,r,o,c,f,h={},g=()=>{}){var p,m,b,v,N;if((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${o}" as the namespace "${r}" 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((N=this.backend)!=null&&N.create){const L={...h,isUpdate:f},z=this.backend.create.bind(this.backend);if(z.length<6)try{let H;z.length===5?H=z(l,r,o,c,L):H=z(l,r,o,c),H&&typeof H.then=="function"?H.then(B=>g(null,B)).catch(g):g(null,H)}catch(H){g(H)}else z(l,r,o,c,g,L)}!l||!l[0]||this.store.addResource(l[0],r,o,c)}}}const Co=()=>({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:i=>{let l={};if(typeof i[1]=="object"&&(l=i[1]),ae(i[1])&&(l.defaultValue=i[1]),ae(i[2])&&(l.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const r=i[3]||i[2];Object.keys(r).forEach(o=>{l[o]=r[o]})}return l},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Bm=i=>{var l,r;return ae(i.ns)&&(i.ns=[i.ns]),ae(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ae(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((r=(l=i.supportedLngs)==null?void 0:l.indexOf)==null?void 0:r.call(l,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},wu=()=>{},Fb=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(r=>{typeof i[r]=="function"&&(i[r]=i[r].bind(i))})},Cg="__i18next_supportNoticeShown",Wb=()=>!!(typeof globalThis<"u"&&globalThis[Cg]||typeof process<"u"&&Ro&&Ro.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&Ro),Ib=()=>{typeof globalThis<"u"&&(globalThis[Cg]=!0)},Pb=i=>{var l,r,o,c,f,h,g,p,m,b,v,N,L;return!!(((o=(r=(l=i==null?void 0:i.modules)==null?void 0:l.backend)==null?void 0:r.name)==null?void 0:o.indexOf("Locize"))>0||((g=(h=(f=(c=i==null?void 0:i.modules)==null?void 0:c.backend)==null?void 0:f.constructor)==null?void 0:h.name)==null?void 0:g.indexOf("Locize"))>0||(m=(p=i==null?void 0:i.options)==null?void 0:p.backend)!=null&&m.backends&&i.options.backend.backends.some(z=>{var H,B,q;return((H=z==null?void 0:z.name)==null?void 0:H.indexOf("Locize"))>0||((q=(B=z==null?void 0:z.constructor)==null?void 0:B.name)==null?void 0:q.indexOf("Locize"))>0})||(v=(b=i==null?void 0:i.options)==null?void 0:b.backend)!=null&&v.projectId||(L=(N=i==null?void 0:i.options)==null?void 0:N.backend)!=null&&L.backendOptions&&i.options.backend.backendOptions.some(z=>z==null?void 0:z.projectId))};class ai extends Zu{constructor(l={},r){if(super(),this.options=Bm(l),this.services={},this.logger=Ft,this.modules={external:[]},Fb(this),r&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,r),this;setTimeout(()=>{this.init(l,r)},0)}}init(l={},r){this.isInitializing=!0,typeof l=="function"&&(r=l,l={}),l.defaultNS==null&&l.ns&&(ae(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const o=Co();this.options={...o,...this.options,...Bm(l)},this.options.interpolation={...o.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Pb(this)&&!Wb()&&(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 💙"),Ib());const c=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Ft.init(c(this.modules.logger),this.options):Ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=Zb;const b=new Mm(this.options);this.store=new wm(this.options.resources,this.options);const v=this.services;v.logger=Ft,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new Kb(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 km(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new Jb(c(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(L,...z)=>{this.emit(L,...z)}),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 Bu(this.services,this.options),this.translator.on("*",(L,...z)=>{this.emit(L,...z)}),this.modules.external.forEach(L=>{L.init&&L.init(this)})}if(this.format=this.options.interpolation.format,r||(r=wu),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=ei(),p=()=>{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),r(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?p():setTimeout(p,0),g}loadResources(l,r=wu){var f,h;let o=r;const c=ae(l)?l:this.language;if(typeof l=="function"&&(o=l),!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=[],p=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&g.indexOf(v)<0&&g.push(v)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>p(b)),(h=(f=this.options.preload)==null?void 0:f.forEach)==null||h.call(f,m=>p(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(l,r,o){const c=ei();return typeof l=="function"&&(o=l,l=void 0),typeof r=="function"&&(o=r,r=void 0),l||(l=this.languages),r||(r=this.options.ns),o||(o=wu),this.services.backendConnector.reload(l,r,f=>{c.resolve(),o(f)}),c}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&_g.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let r=0;r<this.languages.length;r++){const o=this.languages[r];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,r){this.isLanguageChangingTo=l;const o=ei();this.emit("languageChanging",l);const c=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,p)=>{p?this.isLanguageChangingTo===l&&(c(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve((...m)=>this.t(...m)),r&&r(g,(...m)=>this.t(...m))},h=g=>{var b,v;!l&&!g&&this.services.languageDetector&&(g=[]);const p=ae(g)?g:g&&g[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(ae(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,N=>{f(N,m)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!l&&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(l),o}getFixedT(l,r,o){const c=(f,h,...g)=>{let p;typeof h!="object"?p=this.options.overloadTranslationOptionHandler([f,h].concat(g)):p={...h},p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||o||c.keyPrefix);const m={...this.options,...p};typeof p.keyPrefix=="function"&&(p.keyPrefix=el(p.keyPrefix,m));const b=this.options.keySeparator||".";let v;return p.keyPrefix&&Array.isArray(f)?v=f.map(N=>(typeof N=="function"&&(N=el(N,m)),`${p.keyPrefix}${b}${N}`)):(typeof f=="function"&&(f=el(f,m)),v=p.keyPrefix?`${p.keyPrefix}${b}${f}`:f),this.t(v,p)};return ae(l)?c.lng=l:c.lngs=l,c.ns=r,c.keyPrefix=o,c}t(...l){var r;return(r=this.translator)==null?void 0:r.translate(...l)}exists(...l){var r;return(r=this.translator)==null?void 0:r.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,r={}){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=r.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,p)=>{const m=this.services.backendConnector.state[`${g}|${p}`];return m===-1||m===0||m===2};if(r.precheck){const g=r.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(o,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(o,l)&&(!c||h(f,l)))}loadNamespaces(l,r){const o=ei();return this.options.ns?(ae(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{o.resolve(),r&&r(c)}),o):(r&&r(),Promise.resolve())}loadLanguages(l,r){const o=ei();ae(l)&&(l=[l]);const c=this.options.preload||[],f=l.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(),r&&r(h)}),o):(r&&r(),Promise.resolve())}dir(l){var c,f;if(l||(l=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!l)return"rtl";try{const h=new Intl.Locale(l);if(h&&h.getTextInfo){const g=h.getTextInfo();if(g&&g.direction)return g.direction}}catch{}const r=["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 Mm(Co());return l.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(o.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},r){const o=new ai(l,r);return o.createInstance=ai.createInstance,o}cloneInstance(l={},r=wu){const o=l.forkResourceStore;o&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ai(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["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((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((b,v)=>(b[v]={...p[m][v]},b),p[m]),p),{});f.store=new wm(g,c),f.services.resourceStore=f.store}if(l.interpolation){const p={...Co().interpolation,...this.options.interpolation,...l.interpolation},m={...c,interpolation:p};f.services.interpolator=new km(m)}return f.translator=new Bu(f.services,c),f.translator.on("*",(g,...p)=>{f.emit(g,...p)}),f.init(c,r),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 $e=ai.createInstance();$e.createInstance;$e.dir;$e.init;$e.loadResources;$e.reloadResources;$e.use;$e.changeLanguage;$e.getFixedT;$e.t;$e.exists;$e.setDefaultNamespace;$e.hasLoadedNamespace;$e.loadNamespaces;$e.loadLanguages;const ni="en",Ag={en:()=>Pe(()=>import("./en-CKhCF6St.js"),[],import.meta.url),zh:()=>Pe(()=>import("./zh-Dz5FLTBV.js"),[],import.meta.url),"zh-TW":()=>Pe(()=>import("./zh-TW-BtRwreY_.js"),[],import.meta.url),ja:()=>Pe(()=>import("./ja-ChF4vbBL.js"),[],import.meta.url),es:()=>Pe(()=>import("./es-C8UBPhxM.js"),[],import.meta.url)},Lu={};function qm(i){return i in Ag}function zg(i){if(qm(i))return i;const l=i.split("-")[0];return qm(l)?l:ni}function eS(){const i=localStorage.getItem("cc_lang");return zg(i||navigator.language||ni)}async function Uo(i){if(Lu[i])return;const l=await Ag[i]();Lu[i]=l.default,$e.isInitialized&&$e.addResourceBundle(i,"translation",Lu[i],!0,!0)}async function tS(){const i=eS();await Promise.all([Uo(ni),i===ni?Promise.resolve():Uo(i)]),$e.isInitialized||await $e.use(P1).init({lng:i,fallbackLng:ni,resources:Object.fromEntries(Object.entries(Lu).map(([l,r])=>[l,{translation:r}])),interpolation:{escapeValue:!1}})}async function Ng(i){const l=zg(i);await Uo(l),await $e.changeLanguage(l),localStorage.setItem("cc_lang",l)}const Ym=[{code:"en",label:"English"},{code:"zh",label:"中文"},{code:"zh-TW",label:"繁體中文"},{code:"ja",label:"日本語"},{code:"es",label:"Español"}],aS=[{label:"Core",ids:["dashboard","chat","workspace","projects","sessions"]},{label:"Knowledge",ids:["knowledge","cron"]},{label:"System",ids:["system"]}];function nS(){var J;const{pathname:i}=zt(),{t:l,i18n:r}=xg(),{theme:o,setTheme:c}=Fo(),f=Ct(V=>V.logout),h=Ct(V=>V.desktopManaged),g=Jo(),p=dn(),[m,b]=T.useState(!1),[v,N]=T.useState(!1),L=V=>{Ng(V),N(!1)},z={light:Wm,dark:Jm,system:$m},H={light:"dark",dark:"system",system:"light"},B=z[o],q=Qu.listNavItems().filter(V=>{var ue;return((ue=V.visible)==null?void 0:ue.call(V,{desktopManaged:h,features:g}))??!0}),X=q.map(V=>{var te;const ue=V.icon,K=((te=V.resolveLabelKey)==null?void 0:te.call(V,{desktopManaged:h,features:g,runtimeProvider:p}))||V.labelKey;return{...V,Icon:ue,labelKey:K}}),Q=i.startsWith("/chat");return _.jsxs(_.Fragment,{children:[_.jsxs("aside",{className:He("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",m?"w-16":"w-56"),children:[_.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"}),_.jsx("div",{className:He("relative flex h-[5.25rem] items-center gap-3 px-4 pt-7 transition-colors"),children:_.jsx(Tg,{showWordmark:!m})}),_.jsx("nav",{className:"relative flex-1 py-3 space-y-4 px-2 overflow-y-auto",children:aS.map(V=>{const ue=q.filter(K=>V.ids.includes(K.id));return ue.length===0?null:_.jsxs("div",{className:"space-y-1",children:[!m&&_.jsx("p",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:V.label}),ue.map(K=>{var se;const te=K.icon,le=((se=K.resolveLabelKey)==null?void 0:se.call(K,{desktopManaged:h,features:g,runtimeProvider:p}))||K.labelKey;return _.jsxs(wo,{to:K.path,end:K.end,className:({isActive:Ae})=>He("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",Ae?"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:[_.jsx(te,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:l(le)})]},K.id)})]},V.label)})}),_.jsxs("div",{className:He("relative border-t p-2 space-y-1","border-black/10 dark:border-white/[0.08]"),children:[!m&&_.jsxs("div",{className:"px-3 pb-1 pt-0.5 text-[11px] font-medium text-muted-foreground/75",children:["AgentDock v","0.1.22"]}),_.jsxs("div",{className:"relative",children:[_.jsxs("button",{type:"button",onClick:()=>N(!v),className:He("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:[_.jsx(C0,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:((J=Ym.find(V=>V.code===r.language))==null?void 0:J.label)||"English"})]}),v&&_.jsx("div",{className:He("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:Ym.map(V=>_.jsx("button",{type:"button",onClick:()=>L(V.code),className:He("w-full text-left px-3 py-2 text-sm transition-colors duration-150",r.language===V.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:V.label},V.code))})]}),_.jsxs("button",{type:"button",onClick:()=>c(H[o]),className:He("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:[_.jsx(B,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:l(`theme.${o}`)})]}),!h&&_.jsxs("button",{type:"button",onClick:f,className:He("flex items-center gap-3 w-full px-3 py-2 rounded-lg text-sm transition-colors duration-200","text-muted-foreground hover:bg-destructive/10 hover:text-destructive","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[_.jsx(M0,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:l("login.logout")})]}),_.jsx("button",{type:"button",onClick:()=>b(!m),className:He("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:m?_.jsx(b0,{size:18}):_.jsx(y0,{size:18})})]})]}),Q?null:_.jsx("nav",{className:He("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:_.jsx("div",{className:"flex items-stretch gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:X.map(({id:V,path:ue,end:K,Icon:te,labelKey:le})=>_.jsxs(wo,{to:ue,end:K,className:({isActive:se})=>He("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",se?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]"),children:[_.jsx(te,{size:18,className:"shrink-0"}),_.jsx("span",{className:"max-w-[4.25rem] truncate",children:l(le)})]},V))})})]})}function lS(){const{pathname:i}=zt(),{desktopChat:l}=Jo(),r=i.startsWith("/chat"),o=i.startsWith("/chat")&&l,c=o&&dn()==="electron";return _.jsxs("div",{className:He("flex h-[100dvh] overflow-hidden","bg-background/60 backdrop-blur-2xl"),children:[_.jsx("div",{className:"fixed left-0 right-0 top-0 z-50 hidden h-8 [-webkit-app-region:drag] md:block","aria-hidden":"true"}),_.jsx(nS,{}),_.jsx("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0 bg-background/45 backdrop-blur-2xl",children:_.jsx("main",{className:He("flex-1 min-h-0",o?"overflow-hidden":"overflow-y-auto",c?"p-0":r?"p-4 pb-4 sm:p-6 sm:pb-6":"p-4 pb-24 sm:p-6 sm:pb-6"),children:_.jsx("div",{className:He(o&&"h-full min-h-0",!c&&"mx-auto w-full max-w-7xl"),children:_.jsx(t1,{})})})})]})}const iS=()=>Qe.get("/status"),e2=i=>Qe.post("/restart",i),t2=()=>Qe.post("/reload"),a2=i=>Qe.get("/logs",i);function uS({children:i,className:l,hover:r}){return _.jsx("div",{className:He("rounded-lg p-5 text-card-foreground transition-colors duration-200 animate-float-in","border border-black/[0.08] bg-white/62 shadow-[0_1px_1px_rgba(0,0,0,0.04)] backdrop-blur-2xl","dark:border-white/[0.07] dark:bg-white/[0.06] dark:shadow-none",r&&"cursor-pointer hover:border-black/[0.12] hover:bg-white/76 hover:shadow-[0_10px_26px_rgba(0,0,0,0.07)] dark:hover:border-white/[0.10] dark:hover:bg-white/[0.09] dark:hover:shadow-none",l),children:i})}function Gm(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function wg(...i){return l=>{let r=!1;const o=i.map(c=>{const f=Gm(c,l);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():Gm(i[c],null)}}}}function n2(...i){return T.useCallback(wg(...i),i)}var rS=Symbol.for("react.lazy"),qu=f0[" use ".trim().toString()];function sS(i){return typeof i=="object"&&i!==null&&"then"in i}function jg(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===rS&&"_payload"in i&&sS(i._payload)}function oS(i){const l=fS(i),r=T.forwardRef((o,c)=>{let{children:f,...h}=o;jg(f)&&typeof qu=="function"&&(f=qu(f._payload));const g=T.Children.toArray(f),p=g.find(hS);if(p){const m=p.props.children,b=g.map(v=>v===p?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:v);return _.jsx(l,{...h,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return _.jsx(l,{...h,ref:c,children:f})});return r.displayName=`${i}.Slot`,r}var cS=oS("Slot");function fS(i){const l=T.forwardRef((r,o)=>{let{children:c,...f}=r;if(jg(c)&&typeof qu=="function"&&(c=qu(c._payload)),T.isValidElement(c)){const h=gS(c),g=mS(f,c.props);return c.type!==T.Fragment&&(g.ref=o?wg(o,h):h),T.cloneElement(c,g)}return T.Children.count(c)>1?T.Children.only(null):null});return l.displayName=`${i}.SlotClone`,l}var dS=Symbol("radix.slottable");function hS(i){return T.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===dS}function mS(i,l){const r={...l};for(const o in l){const c=i[o],f=l[o];/^on[A-Z]/.test(o)?c&&f?r[o]=(...g)=>{const p=f(...g);return c(...g),p}:c&&(r[o]=c):o==="style"?r[o]={...c,...f}:o==="className"&&(r[o]=[c,f].filter(Boolean).join(" "))}return{...i,...r}}function gS(i){var o,c;let l=(o=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?i.ref:(l=(c=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:c.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?i.props.ref:i.props.ref||i.ref)}const pS={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"},yS={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 Yu({variant:i="primary",size:l="md",className:r,children:o,loading:c,asChild:f,disabled:h,type:g="button",...p}){const m=l==="default"?"md":l,b=f?cS:"button";return _.jsxs(b,{...f?{}:{type:g},className:He("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",pS[i],yS[m],r),disabled:h||c,...p,children:[c&&_.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-hidden":!0,children:[_.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),_.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),o]})}function Vm({label:i,className:l,...r}){return _.jsxs("div",{className:"space-y-1.5",children:[i&&_.jsx("label",{className:"block text-sm font-medium text-foreground",children:i}),_.jsx("input",{className:He("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",l),...r})]})}function l2({label:i,className:l,...r}){return _.jsxs("div",{className:"space-y-1.5",children:[i&&_.jsx("label",{className:"block text-sm font-medium text-foreground",children:i}),_.jsx("textarea",{className:He("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm transition-colors resize-none","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",l),...r})]})}const ko="http://127.0.0.1:9831",vS=`${ko}/api/local/v1`;function bS(i){const l=i.trim();return l?l.replace(/\/+$/,""):vS}const ri=bS("/api/local/v1");ri.endsWith("/api/local/v1")&&ri.slice(0,-13);const si=new Set;let _t=null;async function W(i,l,r){const o=await fetch(`${ri}${l}`,{method:i,headers:{"Content-Type":"application/json"},body:r?JSON.stringify(r):void 0}),c=await o.json();if(!o.ok||!c.ok)throw new Error(c.error||`Local AI Core request failed: ${o.status}`);return c.data}function Mg(){if(_t||typeof window>"u")return;_t=new EventSource(`${ri}/events`);const i=l=>{try{const r=JSON.parse(l.data);si.forEach(o=>o(r))}catch{}};["runtime.updated","runtime.detect.started","runtime.detect.completed","runtime.detect.failed","runtime.status.changed","thread.updated","message.created","message.updated","run.updated","scheduler.job.updated","scheduler.run.updated","presence.updated","stream.updated"].forEach(l=>{_t==null||_t.addEventListener(l,i)}),_t.onerror=()=>{_t==null||_t.close(),_t=null,si.size>0&&window.setTimeout(()=>Mg(),1e3)}}function SS(){si.size===0&&_t&&(_t.close(),_t=null)}function Lg(i){return si.add(i),Mg(),()=>{si.delete(i),SS()}}async function i2(){return W("GET","/runtime")}async function u2(){return W("POST","/runtime/service/start")}async function r2(){return W("POST","/runtime/service/stop")}async function s2(){return W("POST","/runtime/service/restart")}async function o2(i){const l=typeof i=="number"?`?limit=${encodeURIComponent(String(i))}`:"";return W("GET",`/runtime/logs${l}`)}async function c2(){return W("GET","/runtime/agent-runtimes")}async function f2(){return W("POST","/runtimes/refresh")}async function d2(){return W("GET","/runtime/config")}async function h2(i){return W("POST","/runtime/config/raw",{raw:i})}async function m2(i){return W("POST","/runtime/config/structured",{config:i})}async function g2(i){return W("POST","/runtime/settings",i)}async function xS(i){return W("GET",`/platforms/${encodeURIComponent(i)}`)}async function ES(i,l){return W("GET",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}`)}async function TS(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/test`)}async function RS(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/enable`)}async function _S(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/disable`)}async function OS(i,l){const r=l?`?workspace_id=${encodeURIComponent(l)}`:"";return W("GET",`/platforms/${encodeURIComponent(i)}/pairings${r}`)}async function CS(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/pairings/approve`,{code:l})}async function AS(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/pairings/reject`,{code:l})}async function zS(i,l){const r=l?`?workspace_id=${encodeURIComponent(l)}`:"";return W("GET",`/platforms/${encodeURIComponent(i)}/users${r}`)}async function p2(){return xS("lark")}async function y2(i){return ES("lark",i)}async function v2(i){return TS("lark",i)}async function b2(i){return RS("lark",i)}async function S2(i){return _S("lark",i)}async function x2(i){return OS("lark",i)}async function E2(i){return CS("lark",i)}async function T2(i){return AS("lark",i)}async function R2(i){return zS("lark",i)}async function _2(i){return W("POST",`/platforms/weixin/${encodeURIComponent(i)}/qrcode`)}async function O2(i,l){return W("GET",`/platforms/weixin/${encodeURIComponent(i)}/qrcode/status?ticket=${encodeURIComponent(l)}`)}async function C2(){return W("GET","/workspaces")}async function A2(i={}){const l=new URLSearchParams;i.workspaceId&&l.set("workspace_id",i.workspaceId),i.runtimeId&&l.set("runtime_id",i.runtimeId),i.status&&l.set("status",Array.isArray(i.status)?i.status.join(","):i.status),i.limit&&l.set("limit",String(i.limit));const r=l.toString()?`?${l.toString()}`:"";return W("GET",`/tasks${r}`)}async function z2(i={}){const l=new URLSearchParams;i.workspaceId&&l.set("workspace_id",i.workspaceId),i.taskId&&l.set("task_id",i.taskId),i.status&&l.set("status",Array.isArray(i.status)?i.status.join(","):i.status),i.limit&&l.set("limit",String(i.limit));const r=l.toString()?`?${l.toString()}`:"";return W("GET",`/approvals${r}`)}async function N2(i={}){const l=new URLSearchParams;i.workspaceId&&l.set("workspace_id",i.workspaceId),i.taskId&&l.set("task_id",i.taskId),i.approvalId&&l.set("approval_id",i.approvalId),i.type&&l.set("type",Array.isArray(i.type)?i.type.join(","):i.type),i.limit&&l.set("limit",String(i.limit));const r=l.toString()?`?${l.toString()}`:"";return W("GET",`/audit-events${r}`)}async function w2(i){return W("GET","/scheduler/jobs")}async function j2(i){return W("POST","/scheduler/jobs",i)}async function M2(i,l){return W("PATCH",`/scheduler/jobs/${encodeURIComponent(i)}`,l)}async function L2(i){return W("DELETE",`/scheduler/jobs/${encodeURIComponent(i)}`)}async function D2(i){return W("POST",`/scheduler/jobs/${encodeURIComponent(i)}/run`)}async function U2(i){return W("GET",`/threads?workspace_id=${encodeURIComponent(i)}`)}async function k2(i,l){return W("POST","/threads",{workspaceId:i,title:l})}async function H2(i){return W("GET",`/threads/${encodeURIComponent(i)}`)}async function B2(i,l){return W("PATCH",`/threads/${encodeURIComponent(i)}`,{title:l})}async function q2(i,l){return W("PATCH",`/threads/${encodeURIComponent(i)}/knowledge-bases`,{knowledgeBaseIds:l})}async function Y2(i){return W("DELETE",`/threads/${encodeURIComponent(i)}`)}async function G2(i,l){return W("POST",`/threads/${encodeURIComponent(i)}/messages`,{content:l})}async function V2(i,l){return W("POST",`/threads/${encodeURIComponent(i)}/actions`,{content:l})}async function K2(i){return W("POST",`/runs/${encodeURIComponent(i)}/interrupt`)}async function X2(){return W("GET","/knowledge/config")}async function Q2(){return W("GET","/knowledge/folders")}async function Z2(i){return W("POST","/knowledge/folders",i)}async function $2(i,l){return W("PATCH",`/knowledge/folders/${encodeURIComponent(i)}`,l)}async function J2(i){return W("DELETE",`/knowledge/folders/${encodeURIComponent(i)}`)}async function F2(){return W("GET","/knowledge/bases")}async function W2(i){return W("POST","/knowledge/bases",i)}async function I2(i){return W("GET",`/knowledge/bases/${encodeURIComponent(i)}`)}async function P2(i,l){return W("PATCH",`/knowledge/bases/${encodeURIComponent(i)}`,l)}async function ex(i){return W("DELETE",`/knowledge/bases/${encodeURIComponent(i)}`)}async function tx(i){return W("GET",`/knowledge/bases/${encodeURIComponent(i)}/files`)}async function ax(i,l){const r=new FormData;r.append("collection",l.collection),r.append("knowledgebase_id",i),l.folder&&r.append("folder",l.folder),l.files.forEach(f=>{r.append("files",f,f.name)});const o=await fetch(`${ri}/knowledge/bases/${encodeURIComponent(i)}/files`,{method:"POST",body:r}),c=await o.json();if(!o.ok||!c.ok)throw new Error(c.error||`Local AI Core upload failed: ${o.status}`);return c.data}async function nx(i,l){return W("DELETE",`/knowledge/bases/${encodeURIComponent(i)}/files/${encodeURIComponent(l)}`)}async function lx(i,l){return W("POST",`/knowledge/bases/${encodeURIComponent(i)}/search`,l)}async function ix(){return W("GET","/capabilities/snapshot")}async function ux(){return W("GET","/plugins/diagnostics")}async function rx(i){return W("POST",`/workspaces/${encodeURIComponent(i)}/streaming-probe`)}function sx(i){return Lg(l=>{l.type==="runtime.updated"&&i(l.runtime)})}function ox(i){return Lg(l=>{l.type==="stream.updated"&&i(l.stream),(l.type==="message.created"||l.type==="message.updated"||l.type==="run.updated")&&"stream"in l&&l.stream&&i(l.stream)})}const NS=[{code:"en",label:"EN"},{code:"zh",label:"中"},{code:"zh-TW",label:"繁"},{code:"ja",label:"日"},{code:"es",label:"ES"}];function wS(){const{t:i,i18n:l}=xg(),r=Ku(),o=Ct(J=>J.login),{theme:c,setTheme:f}=Fo(),[h,g]=T.useState(""),[p,m]=T.useState(""),[b,v]=T.useState(""),[N,L]=T.useState(!1),z=ib(),H=ub(),B=async J=>{if(J.preventDefault(),!(!h.trim()||H)){L(!0),v("");try{p.trim()&&Qe.setBaseUrl(p.trim()),Qe.setToken(h.trim()),await iS(),o(h.trim(),p.trim()),z?window.location.hash="#/":r("/",{replace:!0})}catch{v(i("login.invalidToken")),Qe.setToken(""),Qe.setBaseUrl("")}finally{L(!1)}}},q={light:Wm,dark:Jm,system:$m},X={light:"dark",dark:"system",system:"light"},Q=q[c];return _.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[radial-gradient(circle_at_top,hsl(var(--secondary))_0,hsl(var(--background))_42%,hsl(var(--background))_78%)] p-4",children:[_.jsxs("div",{className:"fixed top-4 right-4 flex items-center gap-2",children:[_.jsx("div",{className:"flex overflow-hidden rounded-md border bg-card/80 backdrop-blur",children:NS.map(J=>_.jsx("button",{onClick:()=>void Ng(J.code),className:He("px-2.5 py-1.5 text-xs font-medium transition-colors",l.language===J.code?"bg-primary/15 text-primary":"text-muted-foreground hover:bg-accent/10 hover:text-foreground"),children:J.label},J.code))}),_.jsx(Yu,{variant:"outline",size:"icon",onClick:()=>f(X[c]),"aria-label":i(`theme.${c}`),children:_.jsx(Q,{size:16})})]}),_.jsx("div",{className:"w-full max-w-md animate-fade-in",children:_.jsxs(uS,{className:"p-8 shadow-2xl shadow-primary/10",children:[_.jsx("div",{className:"flex justify-center mb-6",children:_.jsx(Tg,{markClassName:"h-14 w-14 drop-shadow-[0_14px_28px_rgba(0,122,255,0.22)]"})}),_.jsx("h1",{className:"text-2xl font-bold text-center text-foreground mb-1",children:i("login.title")}),_.jsx("p",{className:"text-sm text-center text-muted-foreground mb-3",children:i("login.subtitle")}),_.jsx("div",{className:"mb-8 rounded-lg border bg-muted px-4 py-3 text-xs text-muted-foreground",children:z?"AgentDock 桌面模式会自动连接到本地托管运行时。":"Browser mode requires a reachable API endpoint. Enter the server URL and access token."}),b&&_.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg border border-destructive/20 bg-destructive/10 px-4 py-3 text-sm text-destructive dark:text-red-200",children:[_.jsx(x0,{size:16}),b]}),_.jsxs("form",{onSubmit:B,className:"space-y-4",children:[_.jsx(Vm,{label:i("login.token"),type:"password",value:h,onChange:J=>g(J.target.value),placeholder:"mgmt-secret-xxx",autoFocus:!0}),_.jsx(Vm,{label:`${i("login.serverUrl")} (${i("common.optional")})`,type:"text",value:p,onChange:J=>m(J.target.value),placeholder:"http://localhost:9820"}),_.jsxs(Yu,{type:"submit",disabled:N||!h.trim()||H,className:"w-full shadow-[0_0_20px_-6px_hsl(var(--primary)/0.55)]",children:[N?_.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[_.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),_.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):_.jsx(J0,{size:16}),i("login.connect")]})]})]})})]})}function jS({children:i}){return Ct(r=>r.isAuthenticated)?_.jsx(_.Fragment,{children:i}):_.jsx(Ya,{to:"/login",replace:!0})}function MS(){return _.jsx("div",{className:"flex min-h-64 items-center justify-center text-sm text-muted-foreground",children:"正在加载…"})}function LS(){const i=Ct(o=>o.isAuthenticated),l=Ct(o=>o.desktopManaged),r=Jo();return _.jsx(T.Suspense,{fallback:_.jsx(MS,{}),children:_.jsxs(n1,{children:[_.jsx(on,{path:"/login",element:i?_.jsx(Ya,{to:"/",replace:!0}):_.jsx(wS,{})}),_.jsxs(on,{element:_.jsx(jS,{children:_.jsx(lS,{})}),children:[Qu.listRoutes().map(o=>o.index?_.jsx(on,{index:!0,element:o.element({desktopManaged:l,features:r})},o.id):_.jsx(on,{path:o.path,element:o.element({desktopManaged:l,features:r})},o.id)),_.jsx(on,{path:"*",element:_.jsx(Ya,{to:"/",replace:!0})})]}),_.jsx(on,{path:"*",element:_.jsx(Ya,{to:i?"/":"/login",replace:!0})})]})})}class DS extends Pn.Component{constructor(){super(...arguments);In(this,"state",{hasError:!1,errorMessage:""})}static getDerivedStateFromError(r){return{hasError:!0,errorMessage:r instanceof Error?r.message:String(r)}}componentDidCatch(r,o){console.error("App render failed",r,o)}render(){return this.state.hasError?_.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:_.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:[_.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"页面渲染失败"}),_.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400 break-words",children:this.state.errorMessage||"Unknown renderer error"}),_.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}}const US="http://127.0.0.1:9831",kS=`${US}/api/local/v1`,cn=HS("/api/local/v1"),oi=new Set;let Kt=null;function HS(i){const l=i.trim();return l?l.replace(/\/+$/,""):kS}async function Wo(i,l,r){const o=await fetch(`${cn}${l}`,{method:i,headers:{"Content-Type":"application/json"},body:void 0}),c=await o.json();if(!o.ok||!c.ok)throw new Error(c.error||`Local AI Core request failed: ${o.status}`);return c.data}async function BS(i=350){var o;const l=new AbortController,r=window.setTimeout(()=>l.abort(),i);try{const c=await fetch(`${cn}/health`,{signal:l.signal}),f=await c.json();return c.ok&&f.ok&&((o=f.data)==null?void 0:o.name)==="local-ai-core"}catch{return!1}finally{window.clearTimeout(r)}}function Dg(){Kt||typeof window>"u"||(Kt=new EventSource(`${cn}/events`),Kt.addEventListener("runtime.updated",i=>{try{const l=JSON.parse(i.data);l.type==="runtime.updated"&&oi.forEach(r=>r(l.runtime))}catch{}}),Kt.onerror=()=>{Kt==null||Kt.close(),Kt=null,oi.size>0&&window.setTimeout(()=>Dg(),1e3)})}function qS(){oi.size===0&&Kt&&(Kt.close(),Kt=null)}async function YS(){return window.desktop?(Eo("electron"),!0):(await BS(),Eo("local_core"),!0)}function GS(){return dn()==="electron"&&window.desktop?window.desktop.getRuntimeStatus():Wo("GET","/runtime")}function Km(){return Wo("GET","/capabilities/snapshot")}function VS(i){if(dn()==="electron"&&window.desktop)return window.desktop.getLogs(i);const l=`?limit=${encodeURIComponent(String(i))}`;return Wo("GET",`/runtime/logs${l}`)}function KS(i){return dn()==="electron"&&window.desktop?window.desktop.onRuntimeEvent(i):(oi.add(i),Dg(),()=>{oi.delete(i),qS()})}const Xm=20,XS=500;function QS(i){return new Promise(l=>window.setTimeout(l,i))}function ZS(){return _.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:_.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:[_.jsx(Fm,{size:16,className:"animate-spin"}),"正在初始化 AgentDock 运行时…"]})})}function $S({message:i,logs:l,onRetry:r}){return _.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:_.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:[_.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:_.jsxs("div",{className:"flex items-start gap-3",children:[_.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:_.jsx(X0,{size:18})}),_.jsxs("div",{children:[_.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"AgentDock 运行时初始化失败"}),_.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400 break-words",children:i})]})]})}),_.jsxs("div",{className:"px-6 py-5 space-y-4",children:[_.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:[_.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:"What we can do next"}),_.jsx("p",{className:"mt-1",children:"请先重试本地运行时初始化。如果仍然失败,请检查下方运行时日志,并确认 Local AI Core 配置文件路径与运行环境是否正确。"})]}),l.length>0&&_.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:[_.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"最近的桌面日志"}),_.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:l.join(`
177
- `)})]}),_.jsxs("div",{className:"flex gap-3",children:[_.jsxs(Yu,{onClick:r,children:[_.jsx(Fm,{size:14})," 重试初始化"]}),_.jsx(Yu,{variant:"secondary",onClick:()=>window.location.reload(),children:"重新加载应用"})]})]})]})})}function JS(){const[i,l]=T.useState({status:"loading"}),[r,o]=T.useState(!1),c=T.useCallback(async()=>{l({status:"loading"});const h=!!await YS();if(o(h),h)try{let g=null;for(let p=0;p<Xm;p+=1)try{await GS(),g=null;break}catch(m){g=m,p<Xm-1&&await QS(XS)}if(g)throw g;To(await Km()),Qe.setBaseUrl(cn),Qe.setToken(""),Ct.getState().setManagedSession("",cn,dn()==="local_core"?"local_core":"electron")}catch(g){let p=[];try{p=await VS(80)}catch{p=[]}l({status:"error",message:g instanceof Error?g.message:String(g),logs:p});return}h||To(null),l({status:"ready"})},[]);return T.useEffect(()=>{c()},[c]),T.useEffect(()=>{if(r)return KS(f=>{Qe.setBaseUrl(cn),Qe.setToken(""),Km().then(h=>To(h)).catch(()=>{}),Ct.getState().setManagedSession("",cn,dn()==="local_core"?"local_core":"electron")})},[r]),i.status==="loading"?_.jsx(ZS,{}):i.status==="error"?_.jsx($S,{message:i.message,logs:i.logs,onRetry:()=>void c()}):_.jsx(A1,{children:_.jsx(LS,{})})}async function FS(){await tS(),Ct.getState().init(),Fo.getState().init(),nv.createRoot(document.getElementById("root")).render(_.jsx(DS,{children:_.jsx(JS,{})}))}FS();export{ix as $,cg as A,Yu as B,uS as C,PS as D,T0 as E,_0 as F,Qm as G,w2 as H,Vm as I,M2 as J,j2 as K,pg as L,D0 as M,L2 as N,D2 as O,Lg as P,e2 as Q,Fm as R,G0 as S,l2 as T,t2 as U,ox as V,Z0 as W,O2 as X,_2 as Y,J0 as Z,ux as _,Jo as a,f2 as a0,c2 as a1,sx as a2,rx as a3,R2 as a4,T2 as a5,E2 as a6,x2 as a7,S2 as a8,b2 as a9,W2 as aA,$2 as aB,J2 as aC,P2 as aD,ex as aE,w0 as aF,P0 as aG,f0 as aH,wg as aI,I2 as aJ,tx as aK,ax as aL,nx as aM,lx as aN,v2 as aa,y2 as ab,p2 as ac,zS as ad,AS as ae,CS as af,OS as ag,_S as ah,RS as ai,TS as aj,ES as ak,xS as al,g2 as am,m2 as an,h2 as ao,d2 as ap,o2 as aq,s2 as ar,r2 as as,u2 as at,i2 as au,a2 as av,n2 as aw,X2 as ax,Q2 as ay,Z2 as az,A2 as b,Je as c,z2 as d,N2 as e,x0 as f,dn as g,U2 as h,H2 as i,_ as j,k2 as k,C2 as l,q2 as m,G2 as n,K2 as o,B2 as p,Y2 as q,T as r,V2 as s,IS as t,xg as u,F2 as v,He as w,b0 as x,Pn as y,Qe as z};
176
+ Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let b=zt(),v;if(l){let q=typeof l=="string"?hn(l):l;Le(p==="/"||((B=q.pathname)==null?void 0:B.startsWith(p)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${q.pathname}" was given in the \`location\` prop.`),v=q}else v=b;let N=v.pathname||"/",L=N;if(p!=="/"){let q=p.replace(/^\//,"").split("/");L="/"+N.replace(/^\//,"").split("/").slice(q.length).join("/")}let z=Pm(i,{pathname:L});Ct(m||z!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ct(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${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=Fv(z&&z.map(q=>Object.assign({},q,{params:Object.assign({},h,q.params),pathname:Qt([p,o.encodeLocation?o.encodeLocation(q.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?p:Qt([p,o.encodeLocation?o.encodeLocation(q.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),c,r);return l&&H?T.createElement(ci.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},H):H}function Xv(){let i=t1(),l=wv(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),r=i instanceof Error?i.stack:null,o="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},h=null;return console.error("Error handled by React Router default ErrorBoundary:",i),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"}},l),r?T.createElement("pre",{style:c},r):null,h)}var Zv=T.createElement(Xv,null),hg=class extends T.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){this.props.onError?this.props.onError(i,l):console.error("React Router caught the following error during render",i)}render(){let i=this.state.error;if(this.context&&typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){const r=qv(i.digest);r&&(i=r)}let l=i!==void 0?T.createElement(qt.Provider,{value:this.props.routeContext},T.createElement(Yo.Provider,{value:i,children:this.props.component})):this.props.children;return this.context?T.createElement($v,{error:i},l):l}};hg.contextType=ug;var xo=new WeakMap;function $v({children:i,error:l}){let{basename:r}=T.useContext(At);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let o=Bv(l.digest);if(o){let c=xo.get(l);if(c)throw c;let f=lg(o.location,r);if(ng&&!xo.get(l))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 xo.set(l,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return i}function Jv({routeContext:i,match:l,children:r}){let o=T.useContext(tl);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),T.createElement(qt.Provider,{value:i},r)}function Fv(i,l=[],r){let o=r==null?void 0:r.state;if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(l.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let c=i,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);Le(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(r&&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:N,errors:L}=o,z=v.route.loader&&!N.hasOwnProperty(v.route.id)&&(!L||L[v.route.id]===void 0);if(v.route.lazy||z){r.isStatic&&(h=!0),g>=0?c=c.slice(0,g+1):c=[c[0]];break}}}}let p=r==null?void 0:r.onError,m=o&&p?(b,v)=>{var N,L;p(b,{location:o.location,params:((L=(N=o.matches)==null?void 0:N[0])==null?void 0:L.params)??{},unstable_pattern:jv(o.matches),errorInfo:v})}:void 0;return c.reduceRight((b,v,N)=>{let L,z=!1,H=null,B=null;o&&(L=f&&v.route.id?f[v.route.id]:void 0,H=v.route.errorElement||Zv,h&&(g<0&&N===0?(mg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),z=!0,B=null):g===N&&(z=!0,B=v.route.hydrateFallbackElement||null)));let q=l.concat(c.slice(0,N+1)),Q=()=>{let X;return L?X=H:z?X=B:v.route.Component?X=T.createElement(v.route.Component,null):v.route.element?X=v.route.element:X=b,T.createElement(Jv,{match:v,routeContext:{outlet:b,matches:q,isDataRoute:o!=null},children:X})};return o&&(v.route.ErrorBoundary||v.route.errorElement||N===0)?T.createElement(hg,{location:o.location,revalidation:o.revalidation,component:H,error:L,children:Q(),routeContext:{outlet:null,matches:q,isDataRoute:!0},onError:m}):Q()},null)}function Go(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wv(i){let l=T.useContext(tl);return Le(l,Go(i)),l}function Iv(i){let l=T.useContext(Ku);return Le(l,Go(i)),l}function Pv(i){let l=T.useContext(qt);return Le(l,Go(i)),l}function Vo(i){let l=Pv(i),r=l.matches[l.matches.length-1];return Le(r.route.id,`${i} can only be used on routes that contain a unique "id"`),r.route.id}function e1(){return Vo("useRouteId")}function t1(){var o;let i=T.useContext(Yo),l=Iv("useRouteError"),r=Vo("useRouteError");return i!==void 0?i:(o=l.errors)==null?void 0:o[r]}function a1(){let{router:i}=Wv("useNavigate"),l=Vo("useNavigate"),r=T.useRef(!1);return cg(()=>{r.current=!0}),T.useCallback(async(c,f={})=>{Ct(r.current,og),r.current&&(typeof c=="number"?await i.navigate(c):await i.navigate(c,{fromRouteId:l,...f}))},[i,l])}var ym={};function mg(i,l,r){!l&&!ym[i]&&(ym[i]=!0,Ct(!1,r))}T.memo(n1);function n1({routes:i,future:l,state:r,isStatic:o,onError:c}){return dg(i,void 0,{state:r,isStatic:o,onError:c})}function Ya({to:i,replace:l,state:r,relative:o}){Le(al(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=T.useContext(At);Ct(!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(qt),{pathname:h}=zt(),g=Qu(),p=Vu(i,qo(f),h,o==="path"),m=JSON.stringify(p);return T.useEffect(()=>{g(JSON.parse(m),{replace:l,state:r,relative:o})},[g,m,o,l,r]),null}function l1(i){return Kv(i.context)}function on(i){Le(!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 i1({basename:i="/",children:l=null,location:r,navigationType:o="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){Le(!al(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let g=i.replace(/^\/*/,"/"),p=T.useMemo(()=>({basename:g,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[g,c,f,h]);typeof r=="string"&&(r=hn(r));let{pathname:m="/",search:b="",hash:v="",state:N=null,key:L="default",unstable_mask:z}=r,H=T.useMemo(()=>{let B=ga(m,g);return B==null?null:{location:{pathname:B,search:b,hash:v,state:N,key:L,unstable_mask:z},navigationType:o}},[g,m,b,v,N,L,o,z]);return Ct(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(At.Provider,{value:p},T.createElement(ci.Provider,{children:l,value:H}))}function u1({children:i,location:l}){return Qv(No(i),l)}function No(i,l=[]){let r=[];return T.Children.forEach(i,(o,c)=>{if(!T.isValidElement(o))return;let f=[...l,c];if(o.type===T.Fragment){r.push.apply(r,No(o.props.children,f));return}Le(o.type===on,`[${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>`),Le(!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=No(o.props.children,f)),r.push(h)}),r}var Mu="get",Lu="application/x-www-form-urlencoded";function Xu(i){return typeof HTMLElement<"u"&&i instanceof HTMLElement}function r1(i){return Xu(i)&&i.tagName.toLowerCase()==="button"}function s1(i){return Xu(i)&&i.tagName.toLowerCase()==="form"}function o1(i){return Xu(i)&&i.tagName.toLowerCase()==="input"}function c1(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function f1(i,l){return i.button===0&&(!l||l==="_self")&&!c1(i)}function wo(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((l,r)=>{let o=i[r];return l.concat(Array.isArray(o)?o.map(c=>[r,c]):[[r,o]])},[]))}function d1(i,l){let r=wo(i);return l&&l.forEach((o,c)=>{r.has(c)||l.getAll(c).forEach(f=>{r.append(c,f)})}),r}var wu=null;function h1(){if(wu===null)try{new FormData(document.createElement("form"),0),wu=!1}catch{wu=!0}return wu}var m1=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Eo(i){return i!=null&&!m1.has(i)?(Ct(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Lu}"`),null):i}function g1(i,l){let r,o,c,f,h;if(s1(i)){let g=i.getAttribute("action");o=g?ga(g,l):null,r=i.getAttribute("method")||Mu,c=Eo(i.getAttribute("enctype"))||Lu,f=new FormData(i)}else if(r1(i)||o1(i)&&(i.type==="submit"||i.type==="image")){let g=i.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=i.getAttribute("formaction")||g.getAttribute("action");if(o=p?ga(p,l):null,r=i.getAttribute("formmethod")||g.getAttribute("method")||Mu,c=Eo(i.getAttribute("formenctype"))||Eo(g.getAttribute("enctype"))||Lu,f=new FormData(g,i),!h1()){let{name:m,type:b,value:v}=i;if(b==="image"){let N=m?`${m}.`:"";f.append(`${N}x`,"0"),f.append(`${N}y`,"0")}else m&&f.append(m,v)}}else{if(Xu(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Mu,o=null,c=Lu,h=i}return f&&c==="text/plain"&&(h=f,f=void 0),{action:o,method:r.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ko(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function gg(i,l,r,o){let c=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${o}`:c.pathname=`${c.pathname}.${o}`:c.pathname==="/"?c.pathname=`_root.${o}`:l&&ga(c.pathname,l)==="/"?c.pathname=`${ku(l)}/_root.${o}`:c.pathname=`${ku(c.pathname)}.${o}`,c}async function p1(i,l){if(i.id in l)return l[i.id];try{let r=await import(i.module);return l[i.id]=r,r}catch(r){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function y1(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function v1(i,l,r){let o=await Promise.all(i.map(async c=>{let f=l.routes[c.route.id];if(f){let h=await p1(f,r);return h.links?h.links():[]}return[]}));return E1(o.flat(1).filter(y1).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function vm(i,l,r,o,c,f){let h=(p,m)=>r[m]?p.route.id!==r[m].route.id:!0,g=(p,m)=>{var b;return r[m].pathname!==p.pathname||((b=r[m].route.path)==null?void 0:b.endsWith("*"))&&r[m].params["*"]!==p.params["*"]};return f==="assets"?l.filter((p,m)=>h(p,m)||g(p,m)):f==="data"?l.filter((p,m)=>{var v;let b=o.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(h(p,m)||g(p,m))return!0;if(p.route.shouldRevalidate){let N=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(i,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function b1(i,l,{includeHydrateFallback:r}={}){return S1(i.map(o=>{let c=l.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)),r&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function S1(i){return[...new Set(i)]}function x1(i){let l={},r=Object.keys(i).sort();for(let o of r)l[o]=i[o];return l}function E1(i,l){let r=new Set;return new Set(l),i.reduce((o,c)=>{let f=JSON.stringify(x1(c));return r.has(f)||(r.add(f),o.push({key:f,link:c})),o},[])}function Qo(){let i=T.useContext(tl);return Ko(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function T1(){let i=T.useContext(Ku);return Ko(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Xo=T.createContext(void 0);Xo.displayName="FrameworkContext";function Zo(){let i=T.useContext(Xo);return Ko(i,"You must render this element inside a <HydratedRouter> element"),i}function R1(i,l){let r=T.useContext(Xo),[o,c]=T.useState(!1),[f,h]=T.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:b,onTouchStart:v}=l,N=T.useRef(null);T.useEffect(()=>{if(i==="render"&&h(!0),i==="viewport"){let H=q=>{q.forEach(Q=>{h(Q.isIntersecting)})},B=new IntersectionObserver(H,{threshold:.5});return N.current&&B.observe(N.current),()=>{B.disconnect()}}},[i]),T.useEffect(()=>{if(o){let H=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(H)}}},[o]);let L=()=>{c(!0)},z=()=>{c(!1),h(!1)};return r?i!=="intent"?[f,N,{}]:[f,N,{onFocus:Il(g,L),onBlur:Il(p,z),onMouseEnter:Il(m,L),onMouseLeave:Il(b,z),onTouchStart:Il(v,L)}]:[!1,N,{}]}function Il(i,l){return r=>{i&&i(r),r.defaultPrevented||l(r)}}function _1({page:i,...l}){let r=Lv(),{router:o}=Qo(),c=T.useMemo(()=>Pm(o.routes,i,o.basename),[o.routes,i,o.basename]);return c?r?T.createElement(O1,{page:i,matches:c,...l}):T.createElement(A1,{page:i,matches:c,...l}):null}function C1(i){let{manifest:l,routeModules:r}=Zo(),[o,c]=T.useState([]);return T.useEffect(()=>{let f=!1;return v1(i,l,r).then(h=>{f||c(h)}),()=>{f=!0}},[i,l,r]),o}function O1({page:i,matches:l,...r}){let o=zt(),{future:c}=Zo(),{basename:f}=Qo(),h=T.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let g=gg(i,f,c.unstable_trailingSlashAwareDataRequests,"rsc"),p=!1,m=[];for(let b of l)typeof b.route.shouldRevalidate=="function"?p=!0:m.push(b.route.id);return p&&m.length>0&&g.searchParams.set("_routes",m.join(",")),[g.pathname+g.search]},[f,c.unstable_trailingSlashAwareDataRequests,i,o,l]);return T.createElement(T.Fragment,null,h.map(g=>T.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})))}function A1({page:i,matches:l,...r}){let o=zt(),{future:c,manifest:f,routeModules:h}=Zo(),{basename:g}=Qo(),{loaderData:p,matches:m}=T1(),b=T.useMemo(()=>vm(i,l,m,f,o,"data"),[i,l,m,f,o]),v=T.useMemo(()=>vm(i,l,m,f,o,"assets"),[i,l,m,f,o]),N=T.useMemo(()=>{if(i===o.pathname+o.search+o.hash)return[];let H=new Set,B=!1;if(l.forEach(Q=>{var J;let X=f.routes[Q.route.id];!X||!X.hasLoader||(!b.some(V=>V.route.id===Q.route.id)&&Q.route.id in p&&((J=h[Q.route.id])!=null&&J.shouldRevalidate)||X.hasClientLoader?B=!0:H.add(Q.route.id))}),H.size===0)return[];let q=gg(i,g,c.unstable_trailingSlashAwareDataRequests,"data");return B&&H.size>0&&q.searchParams.set("_routes",l.filter(Q=>H.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[q.pathname+q.search]},[g,c.unstable_trailingSlashAwareDataRequests,p,o,f,b,l,i,h]),L=T.useMemo(()=>b1(v,f),[v,f]),z=C1(v);return T.createElement(T.Fragment,null,N.map(H=>T.createElement("link",{key:H,rel:"prefetch",as:"fetch",href:H,...r})),L.map(H=>T.createElement("link",{key:H,rel:"modulepreload",href:H,...r})),z.map(({key:H,link:B})=>T.createElement("link",{key:H,nonce:r.nonce,...B,crossOrigin:B.crossOrigin??r.crossOrigin})))}function z1(...i){return l=>{i.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var N1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{N1&&(window.__reactRouterVersion="7.14.2")}catch{}function w1({basename:i,children:l,unstable_useTransitions:r,window:o}){let c=T.useRef();c.current==null&&(c.current=rv({window:o,v5Compat:!0}));let f=c.current,[h,g]=T.useState({action:f.action,location:f.location}),p=T.useCallback(m=>{r===!1?g(m):T.startTransition(()=>g(m))},[r]);return T.useLayoutEffect(()=>f.listen(p),[f,p]),T.createElement(i1,{basename:i,children:l,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:r})}var pg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yg=T.forwardRef(function({onClick:l,discover:r="render",prefetch:o="none",relative:c,reloadDocument:f,replace:h,unstable_mask:g,state:p,target:m,to:b,preventScrollReset:v,viewTransition:N,unstable_defaultShouldRevalidate:L,...z},H){let{basename:B,navigator:q,unstable_useTransitions:Q}=T.useContext(At),X=typeof b=="string"&&pg.test(b),J=lg(b,B);b=J.to;let V=Yv(b,{relative:c}),ue=zt(),K=null;if(g){let De=Vu(g,[],ue.unstable_mask?ue.unstable_mask.pathname:"/",!0);B!=="/"&&(De.pathname=De.pathname==="/"?B:Qt([B,De.pathname])),K=q.createHref(De)}let[te,le,se]=R1(o,z),Ae=L1(b,{replace:h,unstable_mask:g,state:p,target:m,preventScrollReset:v,relative:c,viewTransition:N,unstable_defaultShouldRevalidate:L,unstable_useTransitions:Q});function Fe(De){l&&l(De),De.defaultPrevented||Ae(De)}let ze=!(J.isExternal||f),je=T.createElement("a",{...z,...se,href:(ze?K:void 0)||J.absoluteURL||V,onClick:ze?Fe:l,ref:z1(H,le),target:m,"data-discover":!X&&r==="render"?"true":void 0});return te&&!X?T.createElement(T.Fragment,null,je,T.createElement(_1,{page:V})):je});yg.displayName="Link";var jo=T.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:o="",end:c=!1,style:f,to:h,viewTransition:g,children:p,...m},b){let v=fi(h,{relative:m.relative}),N=zt(),L=T.useContext(Ku),{navigator:z,basename:H}=T.useContext(At),B=L!=null&&B1(v)&&g===!0,q=z.encodeLocation?z.encodeLocation(v).pathname:v.pathname,Q=N.pathname,X=L&&L.navigation&&L.navigation.location?L.navigation.location.pathname:null;r||(Q=Q.toLowerCase(),X=X?X.toLowerCase():null,q=q.toLowerCase()),X&&H&&(X=ga(X,H)||X);const J=q!=="/"&&q.endsWith("/")?q.length-1:q.length;let V=Q===q||!c&&Q.startsWith(q)&&Q.charAt(J)==="/",ue=X!=null&&(X===q||!c&&X.startsWith(q)&&X.charAt(q.length)==="/"),K={isActive:V,isPending:ue,isTransitioning:B},te=V?l:void 0,le;typeof o=="function"?le=o(K):le=[o,V?"active":null,ue?"pending":null,B?"transitioning":null].filter(Boolean).join(" ");let se=typeof f=="function"?f(K):f;return T.createElement(yg,{...m,"aria-current":te,className:le,ref:b,style:se,to:h,viewTransition:g},typeof p=="function"?p(K):p)});jo.displayName="NavLink";var j1=T.forwardRef(({discover:i="render",fetcherKey:l,navigate:r,reloadDocument:o,replace:c,state:f,method:h=Mu,action:g,onSubmit:p,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:N,...L},z)=>{let{unstable_useTransitions:H}=T.useContext(At),B=k1(),q=H1(g,{relative:m}),Q=h.toLowerCase()==="get"?"get":"post",X=typeof g=="string"&&pg.test(g),J=V=>{if(p&&p(V),V.defaultPrevented)return;V.preventDefault();let ue=V.nativeEvent.submitter,K=(ue==null?void 0:ue.getAttribute("formmethod"))||h,te=()=>B(ue||V.currentTarget,{fetcherKey:l,method:K,navigate:r,replace:c,state:f,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:N});H&&r!==!1?T.startTransition(()=>te()):te()};return T.createElement("form",{ref:z,method:Q,action:q,onSubmit:o?p:J,...L,"data-discover":!X&&i==="render"?"true":void 0})});j1.displayName="Form";function M1(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vg(i){let l=T.useContext(tl);return Le(l,M1(i)),l}function L1(i,{target:l,replace:r,unstable_mask:o,state:c,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:p,unstable_useTransitions:m}={}){let b=Qu(),v=zt(),N=fi(i,{relative:h});return T.useCallback(L=>{if(f1(L,l)){L.preventDefault();let z=r!==void 0?r:li(v)===li(N),H=()=>b(i,{replace:z,unstable_mask:o,state:c,preventScrollReset:f,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:p});m?T.startTransition(()=>H()):H()}},[v,b,N,r,o,c,l,i,f,h,g,p,m])}function t2(i){Ct(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 l=T.useRef(wo(i)),r=T.useRef(!1),o=zt(),c=T.useMemo(()=>d1(o.search,r.current?null:l.current),[o.search]),f=Qu(),h=T.useCallback((g,p)=>{const m=wo(typeof g=="function"?g(new URLSearchParams(c)):g);r.current=!0,f("?"+m,p)},[f,c]);return[c,h]}var D1=0,U1=()=>`__${String(++D1)}__`;function k1(){let{router:i}=vg("useSubmit"),{basename:l}=T.useContext(At),r=e1(),o=i.fetch,c=i.navigate;return T.useCallback(async(f,h={})=>{let{action:g,method:p,encType:m,formData:b,body:v}=g1(f,l);if(h.navigate===!1){let N=h.fetcherKey||U1();await o(N,r,h.action||g,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||p,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||p,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:r,flushSync:h.flushSync,viewTransition:h.viewTransition})},[o,c,l,r])}function H1(i,{relative:l}={}){let{basename:r}=T.useContext(At),o=T.useContext(qt);Le(o,"useFormAction must be used inside a RouteContext");let[c]=o.matches.slice(-1),f={...fi(i||".",{relative:l})},h=zt();if(i==null){f.search=h.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(b=>b==="")){g.delete("index"),p.filter(v=>v).forEach(v=>g.append("index",v));let b=g.toString();f.search=b?`?${b}`:""}}return(!i||i===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:Qt([r,f.pathname])),li(f)}function B1(i,{relative:l}={}){let r=T.useContext(rg);Le(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=vg("useViewTransitionState"),c=fi(i,{relative:l});if(!r.isTransitioning)return!1;let f=ga(r.currentLocation.pathname,o)||r.currentLocation.pathname,h=ga(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Uu(c.pathname,h)!=null||Uu(c.pathname,f)!=null}const bm=i=>{let l;const r=new Set,o=(m,b)=>{const v=typeof m=="function"?m(l):m;if(!Object.is(v,l)){const N=l;l=b??(typeof v!="object"||v===null)?v:Object.assign({},l,v),r.forEach(L=>L(l,N))}},c=()=>l,g={setState:o,getState:c,getInitialState:()=>p,subscribe:m=>(r.add(m),()=>r.delete(m))},p=l=i(o,c,g);return g},q1=(i=>i?bm(i):bm),Y1=i=>i;function G1(i,l=Y1){const r=Pn.useSyncExternalStore(i.subscribe,Pn.useCallback(()=>l(i.getState()),[i,l]),Pn.useCallback(()=>l(i.getInitialState()),[i,l]));return Pn.useDebugValue(r),r}const Sm=i=>{const l=q1(i),r=o=>G1(l,o);return Object.assign(r,l),r},$o=(i=>i?Sm(i):Sm),xm="/api/v1";class V1{constructor(){In(this,"token","");In(this,"baseUrl",xm)}setToken(l){this.token=l}setBaseUrl(l){const r=l.trim();if(!r){this.baseUrl=xm;return}this.baseUrl=r.endsWith("/api/v1")?r:`${r.replace(/\/+$/,"")}/api/v1`}getToken(){return this.token}getBaseUrl(){return this.baseUrl}headers(){const l={"Content-Type":"application/json"};return this.token&&(l.Authorization=`Bearer ${this.token}`),l}async request(l,r,o,c){let f=this.resolveUrl(r);if(c){const p=new URLSearchParams(c).toString();p&&(f+=`?${p}`)}const h=await fetch(f,{method:l,headers:this.headers(),body:o?JSON.stringify(o):void 0}),g=await h.json();if(!g.ok)throw new K1(g.error||"Unknown error",h.status);return g.data}get(l,r){return this.request("GET",l,void 0,r)}post(l,r){return this.request("POST",l,r)}patch(l,r){return this.request("PATCH",l,r)}delete(l){return this.request("DELETE",l)}resolveUrl(l){const r=l.replace(/^\/+/,"");return this.baseUrl.startsWith("http://")||this.baseUrl.startsWith("https://")?new URL(r,`${this.baseUrl}/`).toString():`${this.baseUrl}/${r}`.replace(/([^:]\/)\/+/g,"$1")}}class K1 extends Error{constructor(l,r){super(l),this.status=r,this.name="ApiError"}}const Xe=new V1,Ot=$o(i=>({token:"",serverUrl:"",isAuthenticated:!1,desktopManaged:!1,managedBy:"none",login:(l,r)=>{Xe.setToken(l),r&&Xe.setBaseUrl(r),localStorage.setItem("cc_token",l),r&&localStorage.setItem("cc_server_url",r),i({token:l,serverUrl:r||"",isAuthenticated:!0,desktopManaged:!1,managedBy:"remote"})},setManagedSession:(l,r,o)=>{Xe.setToken(l),Xe.setBaseUrl(r),i({token:l,serverUrl:r,isAuthenticated:!0,desktopManaged:!0,managedBy:o})},setDesktopSession:(l,r)=>{Ot.getState().setManagedSession(l,r,"electron")},logout:()=>{Ot.getState().desktopManaged||(Xe.setToken(""),Xe.setBaseUrl(""),localStorage.removeItem("cc_token"),localStorage.removeItem("cc_server_url"),i({token:"",serverUrl:"",isAuthenticated:!1,desktopManaged:!1,managedBy:"none"}))},init:()=>{const l=localStorage.getItem("cc_token")||"",r=localStorage.getItem("cc_server_url")||"";l&&(Xe.setToken(l),r&&Xe.setBaseUrl(r),i({token:l,serverUrl:r,isAuthenticated:!0,desktopManaged:!1,managedBy:"remote"}))}})),Q1=(i,l,r,o)=>{var f,h,g,p;const c=[r,{code:l,...o||{}}];if((h=(f=i==null?void 0:i.services)==null?void 0:f.logger)!=null&&h.forward)return i.services.logger.forward(c,"warn","react-i18next::",!0);fn(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(g=i==null?void 0:i.services)==null?void 0:g.logger)!=null&&p.warn?i.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},Em={},Mo=(i,l,r,o)=>{fn(r)&&Em[r]||(fn(r)&&(Em[r]=new Date),Q1(i,l,r,o))},bg=(i,l)=>()=>{if(i.isInitialized)l();else{const r=()=>{setTimeout(()=>{i.off("initialized",r)},0),l()};i.on("initialized",r)}},Lo=(i,l,r)=>{i.loadNamespaces(l,bg(i,r))},Tm=(i,l,r,o)=>{if(fn(r)&&(r=[r]),i.options.preload&&i.options.preload.indexOf(l)>-1)return Lo(i,r,o);r.forEach(c=>{i.options.ns.indexOf(c)<0&&i.options.ns.push(c)}),i.loadLanguages(l,bg(i,o))},X1=(i,l,r={})=>!l.languages||!l.languages.length?(Mo(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(i,{lng:r.lng,precheck:(o,c)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!c(o.isLanguageChangingTo,i))return!1}}),fn=i=>typeof i=="string",Z1=i=>typeof i=="object"&&i!==null,$1=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,J1={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},F1=i=>J1[i],W1=i=>i.replace($1,F1);let Do={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:W1};const I1=(i={})=>{Do={...Do,...i}},P1=()=>Do;let Sg;const eb=i=>{Sg=i},tb=()=>Sg,ab={type:"3rdParty",init(i){I1(i.options.react),eb(i)}},nb=T.createContext();class lb{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ib=(i,l)=>{const r=T.useRef();return T.useEffect(()=>{r.current=i},[i,l]),r.current},xg=(i,l,r,o)=>i.getFixedT(l,r,o),ub=(i,l,r,o)=>T.useCallback(xg(i,l,r,o),[i,l,r,o]),Eg=(i,l={})=>{var J,V,ue,K;const{i18n:r}=l,{i18n:o,defaultNS:c}=T.useContext(nb)||{},f=r||o||tb();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new lb),!f){Mo(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const te=(se,Ae)=>fn(Ae)?Ae:Z1(Ae)&&fn(Ae.defaultValue)?Ae.defaultValue:Array.isArray(se)?se[se.length-1]:se,le=[te,{},!1];return le.t=te,le.i18n={},le.ready=!1,le}(J=f.options.react)!=null&&J.wait&&Mo(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const h={...P1(),...f.options.react,...l},{useSuspense:g,keyPrefix:p}=h;let m=c||((V=f.options)==null?void 0:V.defaultNS);m=fn(m)?[m]:m||["translation"],(K=(ue=f.reportNamespaces).addUsedNamespaces)==null||K.call(ue,m);const b=(f.isInitialized||f.initializedStoreOnce)&&m.every(te=>X1(te,f,h)),v=ub(f,l.lng||null,h.nsMode==="fallback"?m:m[0],p),N=()=>v,L=()=>xg(f,l.lng||null,h.nsMode==="fallback"?m:m[0],p),[z,H]=T.useState(N);let B=m.join();l.lng&&(B=`${l.lng}${B}`);const q=ib(B),Q=T.useRef(!0);T.useEffect(()=>{const{bindI18n:te,bindI18nStore:le}=h;Q.current=!0,!b&&!g&&(l.lng?Tm(f,l.lng,m,()=>{Q.current&&H(L)}):Lo(f,m,()=>{Q.current&&H(L)})),b&&q&&q!==B&&Q.current&&H(L);const se=()=>{Q.current&&H(L)};return te&&(f==null||f.on(te,se)),le&&(f==null||f.store.on(le,se)),()=>{Q.current=!1,f&&te&&(te==null||te.split(" ").forEach(Ae=>f.off(Ae,se))),le&&f&&le.split(" ").forEach(Ae=>f.store.off(Ae,se))}},[f,B]),T.useEffect(()=>{Q.current&&b&&H(N)},[f,p,b]);const X=[z,f,b];if(X.t=z,X.i18n=f,X.ready=b,b||!b&&!g)return X;throw new Promise(te=>{l.lng?Tm(f,l.lng,m,()=>te()):Lo(f,m,()=>te())})};function Tg(i){var l,r,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var c=i.length;for(l=0;l<c;l++)i[l]&&(r=Tg(i[l]))&&(o&&(o+=" "),o+=r)}else for(r in i)i[r]&&(o&&(o+=" "),o+=r);return o}function rb(){for(var i,l,r=0,o="",c=arguments.length;r<c;r++)(i=arguments[r])&&(l=Tg(i))&&(o&&(o+=" "),o+=l);return o}function He(...i){return rb(i)}function a2(i){return i?new Date(i).toLocaleString():"-"}let ii=typeof window<"u"&&window.desktop?"electron":"local_core";const Jo=$o(i=>({snapshot:null,setSnapshot:l=>i({snapshot:l})}));function dn(){return ii}function To(i){ii=i}function sb(){return ii==="electron"}function ob(){return!1}function Ro(i){Jo.getState().setSnapshot(i)}function cb(){return Jo.getState().snapshot}function fb(i){return!!(i!=null&&i.knowledge.some(l=>l.enabled!==!1))}function db(i){return!!(i!=null&&i.schedulers.some(l=>l.enabled!==!1))}function hb(i,l){return!!(i!=null&&i.agents.some(r=>r.agentType===l))}function mb(i){return!!(i!=null&&i.agents.some(l=>l.agentType))}function gb(i=cb()){const l=!!i,r=hb(i,"localcore-acp");return{desktopRuntime:l||ii==="electron"||ii==="local_core",desktopChat:r,chatRoute:l?r:!0,desktopWorkspace:l?mb(i):!0,knowledgeModule:l?fb(i):!0,schedulerModule:l?db(i):!0}}function Fo(){const i=Jo(l=>l.snapshot);return gb(i)}function Rm(i){return i==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i}function _m(i){document.documentElement.classList.toggle("dark",i==="dark")}const Wo=$o(i=>({theme:"dark",resolved:"dark",setTheme:l=>{const r=Rm(l);localStorage.setItem("cc_theme",l),_m(r),i({theme:l,resolved:r})},init:()=>{const l=localStorage.getItem("cc_theme")||"dark",r=Rm(l);_m(r),i({theme:l,resolved:r})}})),pb="modulepreload",yb=function(i,l){return new URL(i,l).href},Cm={},Pe=function(l,r,o){let c=Promise.resolve();if(r&&r.length>0){let h=function(b){return Promise.all(b.map(v=>Promise.resolve(v).then(N=>({status:"fulfilled",value:N}),N=>({status:"rejected",reason:N}))))};const g=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),m=(p==null?void 0:p.nonce)||(p==null?void 0:p.getAttribute("nonce"));c=h(r.map(b=>{if(b=yb(b,o),b in Cm)return;Cm[b]=!0;const v=b.endsWith(".css"),N=v?'[rel="stylesheet"]':"";if(!!o)for(let H=g.length-1;H>=0;H--){const B=g[H];if(B.href===b&&(!v||B.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${b}"]${N}`))return;const z=document.createElement("link");if(z.rel=v?"stylesheet":pb,v||(z.as="script"),z.crossOrigin="",z.href=b,m&&z.setAttribute("nonce",m),document.head.appendChild(z),v)return new Promise((H,B)=>{z.addEventListener("load",H),z.addEventListener("error",()=>B(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 l().catch(f)})},vb=T.lazy(()=>Pe(()=>import("./Dashboard-DmklXiH1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url)),bb=T.lazy(()=>Pe(()=>import("./ThreadChat-DUgqZSBB.js"),__vite__mapDeps([9,10,11,5,12,13,14,15,16,17,18,19,20,21,22,8]),import.meta.url)),Sb=T.lazy(()=>Pe(()=>import("./Chat-BRxdPzi-.js"),__vite__mapDeps([23,10,11,2,12,13,4,24,14,17,19,20,21]),import.meta.url)),xb=T.lazy(()=>Pe(()=>import("./Workspace-Q4g4rlRT.js"),__vite__mapDeps([25,10,11,26,22,13,2,3,5,15,20,27,28]),import.meta.url)),Eb=T.lazy(()=>Pe(()=>import("./ProjectList-CVkvDIfy.js"),__vite__mapDeps([29,1,2,3,4,6,30]),import.meta.url)),Tb=T.lazy(()=>Pe(()=>import("./ProjectDetail-CcUphxGm.js"),__vite__mapDeps([31,1,10,11,2,3,4,32,30,33,27,13,20,34]),import.meta.url)),Rb=T.lazy(()=>Pe(()=>import("./SessionList-D0E8XbYw.js"),__vite__mapDeps([35,1,26,11,22,13,2,4,24,36,18,21]),import.meta.url)),_b=T.lazy(()=>Pe(()=>import("./SessionChat-CRmGKfBx.js"),__vite__mapDeps([37,1,24,12,13,32,18,16,21]),import.meta.url)),Cb=T.lazy(()=>Pe(()=>import("./CronList-OgHxbti5.js"),__vite__mapDeps([38,1,10,11,26,22,13,2,3,27,34,19,20]),import.meta.url)),Ob=T.lazy(()=>Pe(()=>import("./Config-DqxuxIGg.js"),__vite__mapDeps([39,5,1,3,28,33]),import.meta.url)),Ab=T.lazy(()=>Pe(()=>import("./Logs-Bfc7gBpY.js"),__vite__mapDeps([40,1,26,11,22,13,3,32,36]),import.meta.url)),zb=T.lazy(()=>Pe(()=>import("./KnowledgeHome-CigQ-nSo.js"),__vite__mapDeps([41,10,11,2,19,20,17,27,7]),import.meta.url)),Nb=T.lazy(()=>Pe(()=>import("./KnowledgeDetail-Bj59Hdpo.js"),__vite__mapDeps([42,2,32,17,20]),import.meta.url));class wb{constructor(){In(this,"routes",new Map);In(this,"navItems",new Map)}registerRoute(l){this.routes.set(l.id,l)}registerNavItem(l){this.navItems.set(l.id,l)}listRoutes(){return[...this.routes.values()].sort((l,r)=>l.order-r.order)}listNavItems(){return[...this.navItems.values()].sort((l,r)=>l.order-r.order)}}function Pl(i,l,r="/"){return i?l:_.jsx(Ya,{to:r,replace:!0})}function jb(){const{name:i}=fg();return Ot(r=>r.desktopManaged)?_.jsx(Ya,{to:i?`/workspace?project=${encodeURIComponent(i)}`:"/workspace",replace:!0}):_.jsx(Tb,{})}function Om(){const{project:i,id:l}=fg();if(!Ot(c=>c.desktopManaged))return l&&i?_.jsx(_b,{}):_.jsx(Rb,{});const o=new URLSearchParams;return i&&o.set("project",i),l&&o.set("session",l),_.jsx(Ya,{to:`/chat${o.toString()?`?${o.toString()}`:""}`,replace:!0})}function Mb(i){[{id:"dashboard",index:!0,titleKey:"nav.dashboard",order:10,element:()=>_.jsx(vb,{})},{id:"chat",path:"chat",titleKey:"nav.chat",order:20,element:({features:r})=>Pl(r.chatRoute,r.desktopChat?_.jsx(bb,{}):_.jsx(Sb,{}))},{id:"workspace",path:"workspace",titleKey:"nav.workspace",order:30,element:({features:r})=>Pl(r.desktopWorkspace,_.jsx(xb,{}))},{id:"knowledge",path:"knowledge",titleKey:"nav.knowledge",order:40,element:({features:r})=>Pl(r.knowledgeModule,_.jsx(zb,{}))},{id:"knowledge-detail",path:"knowledge/:knowledgebaseId",titleKey:"nav.knowledge",order:41,element:({features:r})=>Pl(r.knowledgeModule,_.jsx(Nb,{}))},{id:"projects",path:"projects",titleKey:"nav.projects",order:50,element:({desktopManaged:r,features:o})=>r&&o.desktopWorkspace?_.jsx(Ya,{to:"/workspace",replace:!0}):_.jsx(Eb,{})},{id:"project-detail",path:"projects/:name",titleKey:"nav.projects",order:51,element:()=>_.jsx(jb,{})},{id:"sessions",path:"sessions",titleKey:"nav.sessions",order:60,element:()=>_.jsx(Om,{})},{id:"session-detail",path:"sessions/:project/:id",titleKey:"nav.sessions",order:61,element:()=>_.jsx(Om,{})},{id:"cron",path:"cron",titleKey:"nav.cron",order:70,element:({features:r})=>Pl(r.schedulerModule,_.jsx(Cb,{}))},{id:"system",path:"system",titleKey:"nav.system",order:80,element:()=>_.jsx(Ob,{})},{id:"system-logs",path:"system/logs",titleKey:"nav.system",order:81,element:()=>_.jsx(Ab,{})}].forEach(r=>i.registerRoute(r))}function Lb(i){[{id:"dashboard",path:"/",labelKey:"nav.dashboard",icon:j0,order:10,end:!0},{id:"chat",path:"/chat",labelKey:"nav.chat",icon:q0,order:20,visible:({features:r})=>r.chatRoute,resolveLabelKey:({features:r,runtimeProvider:o})=>r.desktopChat?o==="electron"?"nav.chatDesktop":"nav.chat":"nav.chatWeb"},{id:"workspace",path:"/workspace",labelKey:"nav.workspace",icon:F0,order:30,visible:({features:r})=>r.desktopWorkspace},{id:"knowledge",path:"/knowledge",labelKey:"nav.knowledge",icon:L0,order:40,visible:({features:r})=>r.knowledgeModule},{id:"projects",path:"/projects",labelKey:"nav.projects",icon:A0,order:50,visible:({desktopManaged:r})=>!r},{id:"sessions",path:"/sessions",labelKey:"nav.sessions",icon:H0,order:60,visible:({desktopManaged:r})=>!r},{id:"cron",path:"/cron",labelKey:"nav.cron",icon:C0,order:70,visible:({features:r})=>r.schedulerModule},{id:"system",path:"/system",labelKey:"nav.system",icon:Q0,order:80}].forEach(r=>i.registerNavItem(r))}const Zu=new wb;Mb(Zu);Lb(Zu);function Rg({className:i,markClassName:l,showWordmark:r=!1}){const o=T.useId(),c=`${o}-bg`,f=`${o}-stroke`;return _.jsxs("div",{className:He("inline-flex items-center gap-3",i),children:[_.jsxs("svg",{className:He("h-8 w-8 shrink-0",l),viewBox:"0 0 64 64",role:"img","aria-label":"AgentDock",fill:"none",children:[_.jsxs("defs",{children:[_.jsxs("linearGradient",{id:c,x1:"7",y1:"5",x2:"57",y2:"59",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{className:"[stop-color:#FFFFFF] dark:[stop-color:#3A3A3C]"}),_.jsx("stop",{offset:"0.52",className:"[stop-color:#F5F5F7] dark:[stop-color:#2C2C2E]"}),_.jsx("stop",{offset:"1",className:"[stop-color:#E5E5EA] dark:[stop-color:#1C1C1E]"})]}),_.jsxs("linearGradient",{id:f,x1:"18",y1:"16",x2:"47",y2:"48",gradientUnits:"userSpaceOnUse",children:[_.jsx("stop",{stopColor:"#5AC8FA"}),_.jsx("stop",{offset:"0.44",stopColor:"#0A84FF"}),_.jsx("stop",{offset:"1",stopColor:"#007AFF"})]})]}),_.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"}),_.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"}),_.jsx("path",{d:"M20.8 37.5H34.7",className:"stroke-white dark:stroke-white",strokeWidth:"5.25",strokeLinecap:"round"}),_.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"}),_.jsx("path",{d:"M34 25.5V39.5",className:"stroke-black/70 dark:stroke-black/80",strokeWidth:"3",strokeLinecap:"round",opacity:"0.18"})]}),r&&_.jsx("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:"AgentDock"})]})}var _o={};const ae=i=>typeof i=="string",ei=()=>{let i,l;const r=new Promise((o,c)=>{i=o,l=c});return r.resolve=i,r.reject=l,r},Am=i=>i==null?"":""+i,Db=(i,l,r)=>{i.forEach(o=>{l[o]&&(r[o]=l[o])})},Ub=/###/g,zm=i=>i&&i.indexOf("###")>-1?i.replace(Ub,"."):i,Nm=i=>!i||ae(i),ti=(i,l,r)=>{const o=ae(l)?l.split("."):l;let c=0;for(;c<o.length-1;){if(Nm(i))return{};const f=zm(o[c]);!i[f]&&r&&(i[f]=new r),Object.prototype.hasOwnProperty.call(i,f)?i=i[f]:i={},++c}return Nm(i)?{}:{obj:i,k:zm(o[c])}},wm=(i,l,r)=>{const{obj:o,k:c}=ti(i,l,Object);if(o!==void 0||l.length===1){o[c]=r;return}let f=l[l.length-1],h=l.slice(0,l.length-1),g=ti(i,h,Object);for(;g.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),g=ti(i,h,Object),g!=null&&g.obj&&typeof g.obj[`${g.k}.${f}`]<"u"&&(g.obj=void 0);g.obj[`${g.k}.${f}`]=r},kb=(i,l,r,o)=>{const{obj:c,k:f}=ti(i,l,Object);c[f]=c[f]||[],c[f].push(r)},Hu=(i,l)=>{const{obj:r,k:o}=ti(i,l);if(r&&Object.prototype.hasOwnProperty.call(r,o))return r[o]},Hb=(i,l,r)=>{const o=Hu(i,r);return o!==void 0?o:Hu(l,r)},_g=(i,l,r)=>{for(const o in l)o!=="__proto__"&&o!=="constructor"&&(o in i?ae(i[o])||i[o]instanceof String||ae(l[o])||l[o]instanceof String?r&&(i[o]=l[o]):_g(i[o],l[o],r):i[o]=l[o]);return i},sn=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Bb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const qb=i=>ae(i)?i.replace(/[&<>"'\/]/g,l=>Bb[l]):i;class Yb{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const r=this.regExpMap.get(l);if(r!==void 0)return r;const o=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,o),this.regExpQueue.push(l),o}}const Gb=[" ",",","?","!",";"],Vb=new Yb(20),Kb=(i,l,r)=>{l=l||"",r=r||"";const o=Gb.filter(h=>l.indexOf(h)<0&&r.indexOf(h)<0);if(o.length===0)return!0;const c=Vb.getRegExp(`(${o.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!c.test(i);if(!f){const h=i.indexOf(r);h>0&&!c.test(i.substring(0,h))&&(f=!0)}return f},Uo=(i,l,r=".")=>{if(!i)return;if(i[l])return Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;const o=l.split(r);let c=i;for(let f=0;f<o.length;){if(!c||typeof c!="object")return;let h,g="";for(let p=f;p<o.length;++p)if(p!==f&&(g+=r),g+=o[p],h=c[g],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&p<o.length-1)continue;f+=p-f+1;break}c=h}return c},ui=i=>i==null?void 0:i.replace(/_/g,"-"),Qb={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,l){var r,o;(o=(r=console==null?void 0:console[i])==null?void 0:r.apply)==null||o.call(r,console,l)}};class Bu{constructor(l,r={}){this.init(l,r)}init(l,r={}){this.prefix=r.prefix||"i18next:",this.logger=l||Qb,this.options=r,this.debug=r.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,r,o,c){return c&&!this.debug?null:(ae(l[0])&&(l[0]=`${o}${this.prefix} ${l[0]}`),this.logger[r](l))}create(l){return new Bu(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Bu(this.logger,l)}}var Ft=new Bu;class $u{constructor(){this.observers={}}on(l,r){return l.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const c=this.observers[o].get(r)||0;this.observers[o].set(r,c+1)}),this}off(l,r){if(this.observers[l]){if(!r){delete this.observers[l];return}this.observers[l].delete(r)}}emit(l,...r){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c.apply(c,[l,...r])})}}class jm extends $u{constructor(l,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const r=this.options.ns.indexOf(l);r>-1&&this.options.ns.splice(r,1)}getResource(l,r,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;l.indexOf(".")>-1?g=l.split("."):(g=[l,r],o&&(Array.isArray(o)?g.push(...o):ae(o)&&f?g.push(...o.split(f)):g.push(o)));const p=Hu(this.data,g);return!p&&!r&&!o&&l.indexOf(".")>-1&&(l=g[0],r=g[1],o=g.slice(2).join(".")),p||!h||!ae(o)?p:Uo((b=(m=this.data)==null?void 0:m[l])==null?void 0:b[r],o,f)}addResource(l,r,o,c,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let g=[l,r];o&&(g=g.concat(h?o.split(h):o)),l.indexOf(".")>-1&&(g=l.split("."),c=r,r=g[1]),this.addNamespaces(r),wm(this.data,g,c),f.silent||this.emit("added",l,r,o,c)}addResources(l,r,o,c={silent:!1}){for(const f in o)(ae(o[f])||Array.isArray(o[f]))&&this.addResource(l,r,f,o[f],{silent:!0});c.silent||this.emit("added",l,r,o)}addResourceBundle(l,r,o,c,f,h={silent:!1,skipCopy:!1}){let g=[l,r];l.indexOf(".")>-1&&(g=l.split("."),c=o,o=r,r=g[1]),this.addNamespaces(r);let p=Hu(this.data,g)||{};h.skipCopy||(o=JSON.parse(JSON.stringify(o))),c?_g(p,o,f):p={...p,...o},wm(this.data,g,p),h.silent||this.emit("added",l,r,o)}removeResourceBundle(l,r){this.hasResourceBundle(l,r)&&delete this.data[l][r],this.removeNamespaces(r),this.emit("removed",l,r)}hasResourceBundle(l,r){return this.getResource(l,r)!==void 0}getResourceBundle(l,r){return r||(r=this.options.defaultNS),this.getResource(l,r)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const r=this.getDataByLanguage(l);return!!(r&&Object.keys(r)||[]).find(c=>r[c]&&Object.keys(r[c]).length>0)}toJSON(){return this.data}}var Cg={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,l,r,o,c){return i.forEach(f=>{var h;l=((h=this.processors[f])==null?void 0:h.process(l,r,o,c))??l}),l}};const Og=Symbol("i18next/PATH_KEY");function Xb(){const i=[],l=Object.create(null);let r;return l.get=(o,c)=>{var f;return(f=r==null?void 0:r.revoke)==null||f.call(r),c===Og?i:(i.push(c),r=Proxy.revocable(o,l),r.proxy)},Proxy.revocable(Object.create(null),l).proxy}function el(i,l){const{[Og]:r}=i(Xb()),o=(l==null?void 0:l.keySeparator)??".",c=(l==null?void 0:l.nsSeparator)??":";if(r.length>1&&c){const f=l==null?void 0:l.ns,h=Array.isArray(f)?f:null;if(h&&h.length>1&&h.slice(1).includes(r[0]))return`${r[0]}${c}${r.slice(1).join(o)}`}return r.join(o)}const Mm={},Co=i=>!ae(i)&&typeof i!="boolean"&&typeof i!="number";class qu extends $u{constructor(l,r={}){super(),Db(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ft.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,r={interpolation:{}}){const o={...r};if(l==null)return!1;const c=this.resolve(l,o);if((c==null?void 0:c.res)===void 0)return!1;const f=Co(c.res);return!(o.returnObjects===!1&&f)}extractFromKey(l,r){let o=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const c=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const h=o&&l.indexOf(o)>-1,g=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Kb(l,o,c);if(h&&!g){const p=l.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:l,namespaces:ae(f)?[f]:f};const m=l.split(o);(o!==c||o===c&&this.options.ns.indexOf(m[0])>-1)&&(f=m.shift()),l=m.join(c)}return{key:l,namespaces:ae(f)?[f]:f}}translate(l,r,o){let c=typeof r=="object"?{...r}:r;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),l==null)return"";typeof l=="function"&&(l=el(l,{...this.options,...c})),Array.isArray(l)||(l=[String(l)]),l=l.map(ze=>typeof ze=="function"?el(ze,{...this.options,...c}):String(ze));const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:g,namespaces:p}=this.extractFromKey(l[l.length-1],c),m=p[p.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=c.lng||this.language,N=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return N?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 L=this.resolve(l,c);let z=L==null?void 0:L.res;const H=(L==null?void 0:L.usedKey)||g,B=(L==null?void 0:L.exactUsedKey)||g,q=["[object Number]","[object Function]","[object RegExp]"],Q=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,J=c.count!==void 0&&!ae(c.count),V=qu.hasDefaultValue(c),ue=J?this.pluralResolver.getSuffix(v,c.count,c):"",K=c.ordinal&&J?this.pluralResolver.getSuffix(v,c.count,{ordinal:!1}):"",te=J&&!c.ordinal&&c.count===0,le=te&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${ue}`]||c[`defaultValue${K}`]||c.defaultValue;let se=z;X&&!z&&V&&(se=le);const Ae=Co(se),Fe=Object.prototype.toString.apply(se);if(X&&se&&Ae&&q.indexOf(Fe)<0&&!(ae(Q)&&Array.isArray(se))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(H,se,{...c,ns:p}):`key '${g} (${this.language})' returned an object instead of string.`;return f?(L.res=ze,L.usedParams=this.getUsedParamsDetails(c),L):ze}if(h){const ze=Array.isArray(se),je=ze?[]:{},De=ze?B:H;for(const j in se)if(Object.prototype.hasOwnProperty.call(se,j)){const Y=`${De}${h}${j}`;V&&!z?je[j]=this.translate(Y,{...c,defaultValue:Co(le)?le[j]:void 0,joinArrays:!1,ns:p}):je[j]=this.translate(Y,{...c,joinArrays:!1,ns:p}),je[j]===Y&&(je[j]=se[j])}z=je}}else if(X&&ae(Q)&&Array.isArray(z))z=z.join(Q),z&&(z=this.extendTranslation(z,l,c,o));else{let ze=!1,je=!1;!this.isValidLookup(z)&&V&&(ze=!0,z=le),this.isValidLookup(z)||(je=!0,z=g);const j=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&je?void 0:z,Y=V&&le!==z&&this.options.updateMissing;if(je||ze||Y){if(this.logger.log(Y?"updateKey":"missingKey",v,m,g,Y?le:z),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 P=[];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++)P.push(pe[x]);else this.options.saveMissingTo==="all"?P=this.languageUtils.toResolveHierarchy(c.lng||this.language):P.push(c.lng||this.language);const Se=(x,D,G)=>{var ne;const Z=V&&G!==z?G:j;this.options.missingKeyHandler?this.options.missingKeyHandler(x,m,D,Z,Y,c):(ne=this.backendConnector)!=null&&ne.saveMissing&&this.backendConnector.saveMissing(x,m,D,Z,Y,c),this.emit("missingKey",x,m,D,z)};this.options.saveMissing&&(this.options.saveMissingPlurals&&J?P.forEach(x=>{const D=this.pluralResolver.getSuffixes(x,c);te&&c[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(G=>{Se([x],g+G,c[`defaultValue${G}`]||le)})}):Se(P,g,le))}z=this.extendTranslation(z,l,c,L,o),je&&z===g&&this.options.appendNamespaceToMissingKey&&(z=`${m}${b}${g}`),(je||ze)&&this.options.parseMissingKeyHandler&&(z=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${g}`:g,ze?z:void 0,c))}return f?(L.res=z,L.usedParams=this.getUsedParamsDetails(c),L):z}extendTranslation(l,r,o,c,f){var p,m;if((p=this.i18nFormat)!=null&&p.parse)l=this.i18nFormat.parse(l,{...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=ae(l)&&(((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 L=l.match(this.interpolator.nestingRegexp);v=L&&L.length}let N=o.replace&&!ae(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),l=this.interpolator.interpolate(l,N,o.lng||this.language||c.usedLng,o),b){const L=l.match(this.interpolator.nestingRegexp),z=L&&L.length;v<z&&(o.nest=!1)}!o.lng&&c&&c.res&&(o.lng=this.language||c.usedLng),o.nest!==!1&&(l=this.interpolator.nest(l,(...L)=>(f==null?void 0:f[0])===L[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${L[0]} in key: ${r[0]}`),null):this.translate(...L,r),o)),o.interpolation&&this.interpolator.reset()}const h=o.postProcess||this.options.postProcess,g=ae(h)?[h]:h;return l!=null&&(g!=null&&g.length)&&o.applyPostProcessor!==!1&&(l=Cg.handle(g,l,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),l}resolve(l,r={}){let o,c,f,h,g;return ae(l)&&(l=[l]),Array.isArray(l)&&(l=l.map(p=>typeof p=="function"?el(p,{...this.options,...r}):p)),l.forEach(p=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(p,r),b=m.key;c=b;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const N=r.count!==void 0&&!ae(r.count),L=N&&!r.ordinal&&r.count===0,z=r.context!==void 0&&(ae(r.context)||typeof r.context=="number")&&r.context!=="",H=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);v.forEach(B=>{var q,Q;this.isValidLookup(o)||(g=B,!Mm[`${H[0]}-${B}`]&&((q=this.utils)!=null&&q.hasLoadedNamespace)&&!((Q=this.utils)!=null&&Q.hasLoadedNamespace(g))&&(Mm[`${H[0]}-${B}`]=!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(X=>{var ue;if(this.isValidLookup(o))return;h=X;const J=[b];if((ue=this.i18nFormat)!=null&&ue.addLookupKeys)this.i18nFormat.addLookupKeys(J,b,X,B,r);else{let K;N&&(K=this.pluralResolver.getSuffix(X,r.count,r));const te=`${this.options.pluralSeparator}zero`,le=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(N&&(r.ordinal&&K.indexOf(le)===0&&J.push(b+K.replace(le,this.options.pluralSeparator)),J.push(b+K),L&&J.push(b+te)),z){const se=`${b}${this.options.contextSeparator||"_"}${r.context}`;J.push(se),N&&(r.ordinal&&K.indexOf(le)===0&&J.push(se+K.replace(le,this.options.pluralSeparator)),J.push(se+K),L&&J.push(se+te))}}let V;for(;V=J.pop();)this.isValidLookup(o)||(f=V,o=this.getResource(X,B,V,r))}))})}),{res:o,usedKey:c,exactUsedKey:f,usedLng:h,usedNS:g}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,r,o,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,r,o,c):this.resourceStore.getResource(l,r,o,c)}getUsedParamsDetails(l={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=l.replace&&!ae(l.replace);let c=o?l.replace:l;if(o&&typeof l.count<"u"&&(c.count=l.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!o){c={...c};for(const f of r)delete c[f]}return c}static hasDefaultValue(l){const r="defaultValue";for(const o in l)if(Object.prototype.hasOwnProperty.call(l,o)&&r===o.substring(0,r.length)&&l[o]!==void 0)return!0;return!1}}class Lm{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ft.create("languageUtils")}getScriptPartFromCode(l){if(l=ui(l),!l||l.indexOf("-")<0)return null;const r=l.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(l){if(l=ui(l),!l||l.indexOf("-")<0)return l;const r=l.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(l){if(ae(l)&&l.indexOf("-")>-1){let r;try{r=Intl.getCanonicalLocales(l)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let r;return l.forEach(o=>{if(r)return;const c=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(c))&&(r=c)}),!r&&this.options.supportedLngs&&l.forEach(o=>{if(r)return;const c=this.getScriptPartFromCode(o);if(this.isSupportedCode(c))return r=c;const f=this.getLanguagePartFromCode(o);if(this.isSupportedCode(f))return r=f;r=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})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(l,r){if(!l)return[];if(typeof l=="function"&&(l=l(r)),ae(l)&&(l=[l]),Array.isArray(l))return l;if(!r)return l.default||[];let o=l[r];return o||(o=l[this.getScriptPartFromCode(r)]),o||(o=l[this.formatLanguageCode(r)]),o||(o=l[this.getLanguagePartFromCode(r)]),o||(o=l.default),o||[]}toResolveHierarchy(l,r){const o=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],l),c=[],f=h=>{h&&(this.isSupportedCode(h)?c.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return ae(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(l))):ae(l)&&f(this.formatLanguageCode(l)),o.forEach(h=>{c.indexOf(h)<0&&f(this.formatLanguageCode(h))}),c}}const Dm={zero:0,one:1,two:2,few:3,many:4,other:5},Um={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Zb{constructor(l,r={}){this.languageUtils=l,this.options=r,this.logger=Ft.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(l,r={}){const o=ui(l==="dev"?"en":l),c=r.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!"),Um;if(!l.match(/-|_/))return Um;const p=this.languageUtils.getLanguagePartFromCode(l);h=this.getRule(p,r)}return this.pluralRulesCache[f]=h,h}needsPlural(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(l,r,o={}){return this.getSuffixes(l,o).map(c=>`${r}${c}`)}getSuffixes(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),o?o.resolvedOptions().pluralCategories.sort((c,f)=>Dm[c]-Dm[f]).map(c=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(l,r,o={}){const c=this.getRule(l,o);return c?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${c.select(r)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",r,o))}}const km=(i,l,r,o=".",c=!0)=>{let f=Hb(i,l,r);return!f&&c&&ae(r)&&(f=Uo(i,r,o),f===void 0&&(f=Uo(l,r,o))),f},Oo=i=>i.replace(/\$/g,"$$$$");class Hm{constructor(l={}){var r;this.logger=Ft.create("interpolator"),this.options=l,this.format=((r=l==null?void 0:l.interpolation)==null?void 0:r.format)||(o=>o),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:r,escapeValue:o,useRawValueToEscape:c,prefix:f,prefixEscaped:h,suffix:g,suffixEscaped:p,formatSeparator:m,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:N,nestingPrefixEscaped:L,nestingSuffix:z,nestingSuffixEscaped:H,nestingOptionsSeparator:B,maxReplaces:q,alwaysFormat:Q}=l.interpolation;this.escape=r!==void 0?r:qb,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?sn(f):h||"{{",this.suffix=g?sn(g):p||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=N?sn(N):L||sn("$t("),this.nestingSuffix=z?sn(z):H||sn(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=q||1e3,this.alwaysFormat=Q!==void 0?Q:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(r,o)=>(r==null?void 0:r.source)===o?(r.lastIndex=0,r):new RegExp(o,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(l,r,o,c){var L;let f,h,g;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=z=>{if(z.indexOf(this.formatSeparator)<0){const Q=km(r,p,z,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Q,void 0,o,{...c,...r,interpolationkey:z}):Q}const H=z.split(this.formatSeparator),B=H.shift().trim(),q=H.join(this.formatSeparator).trim();return this.format(km(r,p,B,this.options.keySeparator,this.options.ignoreJSONStructure),q,o,{...c,...r,interpolationkey:B})};this.resetRegExp();const b=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((L=c==null?void 0:c.interpolation)==null?void 0:L.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:z=>Oo(z)},{regex:this.regexp,safeValue:z=>this.escapeValue?Oo(this.escape(z)):Oo(z)}].forEach(z=>{for(g=0;f=z.regex.exec(l);){const H=f[1].trim();if(h=m(H),h===void 0)if(typeof b=="function"){const q=b(l,f,c);h=ae(q)?q:""}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 ${l}`),h="";else!ae(h)&&!this.useRawValueToEscape&&(h=Am(h));const B=z.safeValue(h);if(l=l.replace(f[0],B),v?(z.regex.lastIndex+=h.length,z.regex.lastIndex-=f[0].length):z.regex.lastIndex=0,g++,g>=this.maxReplaces)break}}),l}nest(l,r,o={}){let c,f,h;const g=(p,m)=>{const b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;const v=p.split(new RegExp(`${sn(b)}[ ]*{`));let N=`{${v[1]}`;p=v[0],N=this.interpolate(N,h);const L=N.match(/'/g),z=N.match(/"/g);(((L==null?void 0:L.length)??0)%2===0&&!z||((z==null?void 0:z.length)??0)%2!==0)&&(N=N.replace(/'/g,'"'));try{h=JSON.parse(N),m&&(h={...m,...h})}catch(H){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,H),`${p}${b}${N}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,p};for(;c=this.nestingRegexp.exec(l);){let p=[];h={...o},h=h.replace&&!ae(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&&(p=c[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,m)),f=r(g.call(this,c[1].trim(),h),h),f&&c[0]===l&&!ae(f))return f;ae(f)||(f=Am(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${l}`),f=""),p.length&&(f=p.reduce((b,v)=>this.format(b,v,o.lng,{...o,interpolationkey:c[1].trim()}),f.trim())),l=l.replace(c[0],f),this.regexp.lastIndex=0}return l}}const $b=i=>{let l=i.toLowerCase().trim();const r={};if(i.indexOf("(")>-1){const o=i.split("(");l=o[0].toLowerCase().trim();const c=o[1].substring(0,o[1].length-1);l==="currency"&&c.indexOf(":")<0?r.currency||(r.currency=c.trim()):l==="relativetime"&&c.indexOf(":")<0?r.range||(r.range=c.trim()):c.split(";").forEach(h=>{if(h){const[g,...p]=h.split(":"),m=p.join(":").trim().replace(/^'+|'+$/g,""),b=g.trim();r[b]||(r[b]=m),m==="false"&&(r[b]=!1),m==="true"&&(r[b]=!0),isNaN(m)||(r[b]=parseInt(m,10))}})}return{formatName:l,formatOptions:r}},Bm=i=>{const l={};return(r,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=l[h];return g||(g=i(ui(o),c),l[h]=g),g(r)}},Jb=i=>(l,r,o)=>i(ui(r),o)(l);class Fb{constructor(l={}){this.logger=Ft.create("formatter"),this.options=l,this.init(l)}init(l,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const o=r.cacheInBuiltFormats?Bm:Jb;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(l,r){this.formats[l.toLowerCase().trim()]=r}addCached(l,r){this.formats[l.toLowerCase().trim()]=Bm(r)}format(l,r,o,c={}){const f=r.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(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,g)].join(this.formatSeparator)}return f.reduce((g,p)=>{var v;const{formatName:m,formatOptions:b}=$b(p);if(this.formats[m]){let N=g;try{const L=((v=c==null?void 0:c.formatParams)==null?void 0:v[c.interpolationkey])||{},z=L.locale||L.lng||c.locale||c.lng||o;N=this.formats[m](g,z,{...b,...c,...L})}catch(L){this.logger.warn(L)}return N}else this.logger.warn(`there was no format function for ${m}`);return g},l)}}const Wb=(i,l)=>{i.pending[l]!==void 0&&(delete i.pending[l],i.pendingCount--)};class Ib extends $u{constructor(l,r,o,c={}){var f,h;super(),this.backend=l,this.store=r,this.services=o,this.languageUtils=o.languageUtils,this.options=c,this.logger=Ft.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(l,r,o,c){const f={},h={},g={},p={};return l.forEach(m=>{let b=!0;r.forEach(v=>{const N=`${m}|${v}`;!o.reload&&this.store.hasResourceBundle(m,v)?this.state[N]=2:this.state[N]<0||(this.state[N]===1?h[N]===void 0&&(h[N]=!0):(this.state[N]=1,b=!1,h[N]===void 0&&(h[N]=!0),f[N]===void 0&&(f[N]=!0),p[v]===void 0&&(p[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(p)}}loaded(l,r,o){const c=l.split("|"),f=c[0],h=c[1];r&&this.emit("failedLoading",f,h,r),!r&&o&&this.store.addResourceBundle(f,h,o,void 0,void 0,{skipCopy:!0}),this.state[l]=r?-1:2,r&&o&&(this.state[l]=0);const g={};this.queue.forEach(p=>{kb(p.loaded,[f],h),Wb(p,l),r&&p.errors.push(r),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(m=>{g[m]||(g[m]={});const b=p.loaded[m];b.length&&b.forEach(v=>{g[m][v]===void 0&&(g[m][v]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",g),this.queue=this.queue.filter(p=>!p.done)}read(l,r,o,c=0,f=this.retryTimeout,h){if(!l.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:r,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,l,r,o,c+1,f*2,h)},f);return}h(m,b)},p=this.backend[o].bind(this.backend);if(p.length===2){try{const m=p(l,r);m&&typeof m.then=="function"?m.then(b=>g(null,b)).catch(g):g(null,m)}catch(m){g(m)}return}return p(l,r,g)}prepareLoading(l,r,o={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();ae(l)&&(l=this.languageUtils.toResolveHierarchy(l)),ae(r)&&(r=[r]);const f=this.queueLoad(l,r,o,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(l,r,o){this.prepareLoading(l,r,{},o)}reload(l,r,o){this.prepareLoading(l,r,{reload:!0},o)}loadOne(l,r=""){const o=l.split("|"),c=o[0],f=o[1];this.read(c,f,"read",void 0,void 0,(h,g)=>{h&&this.logger.warn(`${r}loading namespace ${f} for language ${c} failed`,h),!h&&g&&this.logger.log(`${r}loaded namespace ${f} for language ${c}`,g),this.loaded(l,h,g)})}saveMissing(l,r,o,c,f,h={},g=()=>{}){var p,m,b,v,N;if((m=(p=this.services)==null?void 0:p.utils)!=null&&m.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(r))){this.logger.warn(`did not save key "${o}" as the namespace "${r}" 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((N=this.backend)!=null&&N.create){const L={...h,isUpdate:f},z=this.backend.create.bind(this.backend);if(z.length<6)try{let H;z.length===5?H=z(l,r,o,c,L):H=z(l,r,o,c),H&&typeof H.then=="function"?H.then(B=>g(null,B)).catch(g):g(null,H)}catch(H){g(H)}else z(l,r,o,c,g,L)}!l||!l[0]||this.store.addResource(l[0],r,o,c)}}}const Ao=()=>({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:i=>{let l={};if(typeof i[1]=="object"&&(l=i[1]),ae(i[1])&&(l.defaultValue=i[1]),ae(i[2])&&(l.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const r=i[3]||i[2];Object.keys(r).forEach(o=>{l[o]=r[o]})}return l},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qm=i=>{var l,r;return ae(i.ns)&&(i.ns=[i.ns]),ae(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),ae(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),((r=(l=i.supportedLngs)==null?void 0:l.indexOf)==null?void 0:r.call(l,"cimode"))<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i},ju=()=>{},Pb=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(r=>{typeof i[r]=="function"&&(i[r]=i[r].bind(i))})},Ag="__i18next_supportNoticeShown",eS=()=>!!(typeof globalThis<"u"&&globalThis[Ag]||typeof process<"u"&&_o&&_o.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&_o),tS=()=>{typeof globalThis<"u"&&(globalThis[Ag]=!0)},aS=i=>{var l,r,o,c,f,h,g,p,m,b,v,N,L;return!!(((o=(r=(l=i==null?void 0:i.modules)==null?void 0:l.backend)==null?void 0:r.name)==null?void 0:o.indexOf("Locize"))>0||((g=(h=(f=(c=i==null?void 0:i.modules)==null?void 0:c.backend)==null?void 0:f.constructor)==null?void 0:h.name)==null?void 0:g.indexOf("Locize"))>0||(m=(p=i==null?void 0:i.options)==null?void 0:p.backend)!=null&&m.backends&&i.options.backend.backends.some(z=>{var H,B,q;return((H=z==null?void 0:z.name)==null?void 0:H.indexOf("Locize"))>0||((q=(B=z==null?void 0:z.constructor)==null?void 0:B.name)==null?void 0:q.indexOf("Locize"))>0})||(v=(b=i==null?void 0:i.options)==null?void 0:b.backend)!=null&&v.projectId||(L=(N=i==null?void 0:i.options)==null?void 0:N.backend)!=null&&L.backendOptions&&i.options.backend.backendOptions.some(z=>z==null?void 0:z.projectId))};class ai extends $u{constructor(l={},r){if(super(),this.options=qm(l),this.services={},this.logger=Ft,this.modules={external:[]},Pb(this),r&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,r),this;setTimeout(()=>{this.init(l,r)},0)}}init(l={},r){this.isInitializing=!0,typeof l=="function"&&(r=l,l={}),l.defaultNS==null&&l.ns&&(ae(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const o=Ao();this.options={...o,...this.options,...qm(l)},this.options.interpolation={...o.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!aS(this)&&!eS()&&(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 💙"),tS());const c=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Ft.init(c(this.modules.logger),this.options):Ft.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=Fb;const b=new Lm(this.options);this.store=new jm(this.options.resources,this.options);const v=this.services;v.logger=Ft,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new Zb(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 Hm(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new Ib(c(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(L,...z)=>{this.emit(L,...z)}),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 qu(this.services,this.options),this.translator.on("*",(L,...z)=>{this.emit(L,...z)}),this.modules.external.forEach(L=>{L.init&&L.init(this)})}if(this.format=this.options.interpolation.format,r||(r=ju),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=ei(),p=()=>{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),r(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?p():setTimeout(p,0),g}loadResources(l,r=ju){var f,h;let o=r;const c=ae(l)?l:this.language;if(typeof l=="function"&&(o=l),!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=[],p=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&g.indexOf(v)<0&&g.push(v)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>p(b)),(h=(f=this.options.preload)==null?void 0:f.forEach)==null||h.call(f,m=>p(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(l,r,o){const c=ei();return typeof l=="function"&&(o=l,l=void 0),typeof r=="function"&&(o=r,r=void 0),l||(l=this.languages),r||(r=this.options.ns),o||(o=ju),this.services.backendConnector.reload(l,r,f=>{c.resolve(),o(f)}),c}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&Cg.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let r=0;r<this.languages.length;r++){const o=this.languages[r];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,r){this.isLanguageChangingTo=l;const o=ei();this.emit("languageChanging",l);const c=g=>{this.language=g,this.languages=this.services.languageUtils.toResolveHierarchy(g),this.resolvedLanguage=void 0,this.setResolvedLanguage(g)},f=(g,p)=>{p?this.isLanguageChangingTo===l&&(c(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,o.resolve((...m)=>this.t(...m)),r&&r(g,(...m)=>this.t(...m))},h=g=>{var b,v;!l&&!g&&this.services.languageDetector&&(g=[]);const p=ae(g)?g:g&&g[0],m=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(ae(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,N=>{f(N,m)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!l&&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(l),o}getFixedT(l,r,o){const c=(f,h,...g)=>{let p;typeof h!="object"?p=this.options.overloadTranslationOptionHandler([f,h].concat(g)):p={...h},p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||o||c.keyPrefix);const m={...this.options,...p};typeof p.keyPrefix=="function"&&(p.keyPrefix=el(p.keyPrefix,m));const b=this.options.keySeparator||".";let v;return p.keyPrefix&&Array.isArray(f)?v=f.map(N=>(typeof N=="function"&&(N=el(N,m)),`${p.keyPrefix}${b}${N}`)):(typeof f=="function"&&(f=el(f,m)),v=p.keyPrefix?`${p.keyPrefix}${b}${f}`:f),this.t(v,p)};return ae(l)?c.lng=l:c.lngs=l,c.ns=r,c.keyPrefix=o,c}t(...l){var r;return(r=this.translator)==null?void 0:r.translate(...l)}exists(...l){var r;return(r=this.translator)==null?void 0:r.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,r={}){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=r.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,p)=>{const m=this.services.backendConnector.state[`${g}|${p}`];return m===-1||m===0||m===2};if(r.precheck){const g=r.precheck(this,h);if(g!==void 0)return g}return!!(this.hasResourceBundle(o,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(o,l)&&(!c||h(f,l)))}loadNamespaces(l,r){const o=ei();return this.options.ns?(ae(l)&&(l=[l]),l.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{o.resolve(),r&&r(c)}),o):(r&&r(),Promise.resolve())}loadLanguages(l,r){const o=ei();ae(l)&&(l=[l]);const c=this.options.preload||[],f=l.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(),r&&r(h)}),o):(r&&r(),Promise.resolve())}dir(l){var c,f;if(l||(l=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!l)return"rtl";try{const h=new Intl.Locale(l);if(h&&h.getTextInfo){const g=h.getTextInfo();if(g&&g.direction)return g.direction}}catch{}const r=["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 Lm(Ao());return l.toLowerCase().indexOf("-latn")>1?"ltr":r.indexOf(o.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},r){const o=new ai(l,r);return o.createInstance=ai.createInstance,o}cloneInstance(l={},r=ju){const o=l.forkResourceStore;o&&delete l.forkResourceStore;const c={...this.options,...l,isClone:!0},f=new ai(c);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["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((p,m)=>(p[m]={...this.store.data[m]},p[m]=Object.keys(p[m]).reduce((b,v)=>(b[v]={...p[m][v]},b),p[m]),p),{});f.store=new jm(g,c),f.services.resourceStore=f.store}if(l.interpolation){const p={...Ao().interpolation,...this.options.interpolation,...l.interpolation},m={...c,interpolation:p};f.services.interpolator=new Hm(m)}return f.translator=new qu(f.services,c),f.translator.on("*",(g,...p)=>{f.emit(g,...p)}),f.init(c,r),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 $e=ai.createInstance();$e.createInstance;$e.dir;$e.init;$e.loadResources;$e.reloadResources;$e.use;$e.changeLanguage;$e.getFixedT;$e.t;$e.exists;$e.setDefaultNamespace;$e.hasLoadedNamespace;$e.loadNamespaces;$e.loadLanguages;const ni="en",zg={en:()=>Pe(()=>import("./en-CKhCF6St.js"),[],import.meta.url),zh:()=>Pe(()=>import("./zh-Dz5FLTBV.js"),[],import.meta.url),"zh-TW":()=>Pe(()=>import("./zh-TW-BtRwreY_.js"),[],import.meta.url),ja:()=>Pe(()=>import("./ja-ChF4vbBL.js"),[],import.meta.url),es:()=>Pe(()=>import("./es-C8UBPhxM.js"),[],import.meta.url)},Du={};function Ym(i){return i in zg}function Ng(i){if(Ym(i))return i;const l=i.split("-")[0];return Ym(l)?l:ni}function nS(){const i=localStorage.getItem("cc_lang");return Ng(i||navigator.language||ni)}async function ko(i){if(Du[i])return;const l=await zg[i]();Du[i]=l.default,$e.isInitialized&&$e.addResourceBundle(i,"translation",Du[i],!0,!0)}async function lS(){const i=nS();await Promise.all([ko(ni),i===ni?Promise.resolve():ko(i)]),$e.isInitialized||await $e.use(ab).init({lng:i,fallbackLng:ni,resources:Object.fromEntries(Object.entries(Du).map(([l,r])=>[l,{translation:r}])),interpolation:{escapeValue:!1}})}async function wg(i){const l=Ng(i);await ko(l),await $e.changeLanguage(l),localStorage.setItem("cc_lang",l)}const Gm=[{code:"en",label:"English"},{code:"zh",label:"中文"},{code:"zh-TW",label:"繁體中文"},{code:"ja",label:"日本語"},{code:"es",label:"Español"}],iS=[{label:"Core",ids:["dashboard","chat","workspace","projects","sessions"]},{label:"Knowledge",ids:["knowledge","cron"]},{label:"System",ids:["system"]}];function uS(){var J;const{pathname:i}=zt(),{t:l,i18n:r}=Eg(),{theme:o,setTheme:c}=Wo(),f=Ot(V=>V.logout),h=Ot(V=>V.desktopManaged),g=Fo(),p=dn(),[m,b]=T.useState(!1),[v,N]=T.useState(!1),L=V=>{wg(V),N(!1)},z={light:Im,dark:Fm,system:Jm},H={light:"dark",dark:"system",system:"light"},B=z[o],q=Zu.listNavItems().filter(V=>{var ue;return((ue=V.visible)==null?void 0:ue.call(V,{desktopManaged:h,features:g}))??!0}),Q=q.map(V=>{var te;const ue=V.icon,K=((te=V.resolveLabelKey)==null?void 0:te.call(V,{desktopManaged:h,features:g,runtimeProvider:p}))||V.labelKey;return{...V,Icon:ue,labelKey:K}}),X=i.startsWith("/chat");return _.jsxs(_.Fragment,{children:[_.jsxs("aside",{className:He("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",m?"w-16":"w-56"),children:[_.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"}),_.jsx("div",{className:He("relative flex h-[5.25rem] items-center gap-3 px-4 pt-7 transition-colors"),children:_.jsx(Rg,{showWordmark:!m})}),_.jsx("nav",{className:"relative flex-1 py-3 space-y-4 px-2 overflow-y-auto",children:iS.map(V=>{const ue=q.filter(K=>V.ids.includes(K.id));return ue.length===0?null:_.jsxs("div",{className:"space-y-1",children:[!m&&_.jsx("p",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:V.label}),ue.map(K=>{var se;const te=K.icon,le=((se=K.resolveLabelKey)==null?void 0:se.call(K,{desktopManaged:h,features:g,runtimeProvider:p}))||K.labelKey;return _.jsxs(jo,{to:K.path,end:K.end,className:({isActive:Ae})=>He("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",Ae?"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:[_.jsx(te,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:l(le)})]},K.id)})]},V.label)})}),_.jsxs("div",{className:He("relative border-t p-2 space-y-1","border-black/10 dark:border-white/[0.08]"),children:[!m&&_.jsxs("div",{className:"px-3 pb-1 pt-0.5 text-[11px] font-medium text-muted-foreground/75",children:["AgentDock v","0.1.24"]}),_.jsxs("div",{className:"relative",children:[_.jsxs("button",{type:"button",onClick:()=>N(!v),className:He("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:[_.jsx(N0,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:((J=Gm.find(V=>V.code===r.language))==null?void 0:J.label)||"English"})]}),v&&_.jsx("div",{className:He("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:Gm.map(V=>_.jsx("button",{type:"button",onClick:()=>L(V.code),className:He("w-full text-left px-3 py-2 text-sm transition-colors duration-150",r.language===V.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:V.label},V.code))})]}),_.jsxs("button",{type:"button",onClick:()=>c(H[o]),className:He("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:[_.jsx(B,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:l(`theme.${o}`)})]}),!h&&_.jsxs("button",{type:"button",onClick:f,className:He("flex items-center gap-3 w-full px-3 py-2 rounded-lg text-sm transition-colors duration-200","text-muted-foreground hover:bg-destructive/10 hover:text-destructive","focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"),children:[_.jsx(U0,{size:18,className:"shrink-0"}),!m&&_.jsx("span",{children:l("login.logout")})]}),_.jsx("button",{type:"button",onClick:()=>b(!m),className:He("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:m?_.jsx(E0,{size:18}):_.jsx(S0,{size:18})})]})]}),X?null:_.jsx("nav",{className:He("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:_.jsx("div",{className:"flex items-stretch gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:Q.map(({id:V,path:ue,end:K,Icon:te,labelKey:le})=>_.jsxs(jo,{to:ue,end:K,className:({isActive:se})=>He("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",se?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]"),children:[_.jsx(te,{size:18,className:"shrink-0"}),_.jsx("span",{className:"max-w-[4.25rem] truncate",children:l(le)})]},V))})})]})}function rS(){const{pathname:i}=zt(),{desktopChat:l}=Fo(),r=i.startsWith("/chat"),o=i.startsWith("/chat")&&l,c=o&&dn()==="electron";return _.jsxs("div",{className:He("flex h-[100dvh] overflow-hidden","bg-background/60 backdrop-blur-2xl"),children:[_.jsx("div",{className:"fixed left-0 right-0 top-0 z-50 hidden h-8 [-webkit-app-region:drag] md:block","aria-hidden":"true"}),_.jsx(uS,{}),_.jsx("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0 bg-background/45 backdrop-blur-2xl",children:_.jsx("main",{className:He("flex-1 min-h-0",o?"overflow-hidden":"overflow-y-auto",c?"p-0":r?"p-4 pb-4 sm:p-6 sm:pb-6":"p-4 pb-24 sm:p-6 sm:pb-6"),children:_.jsx("div",{className:He(o&&"h-full min-h-0",!c&&"mx-auto w-full max-w-7xl"),children:_.jsx(l1,{})})})})]})}const sS=()=>Xe.get("/status"),n2=i=>Xe.post("/restart",i),l2=()=>Xe.post("/reload"),i2=i=>Xe.get("/logs",i);function oS({children:i,className:l,hover:r}){return _.jsx("div",{className:He("rounded-lg p-5 text-card-foreground transition-colors duration-200 animate-float-in","border border-black/[0.08] bg-white/62 shadow-[0_1px_1px_rgba(0,0,0,0.04)] backdrop-blur-2xl","dark:border-white/[0.07] dark:bg-white/[0.06] dark:shadow-none",r&&"cursor-pointer hover:border-black/[0.12] hover:bg-white/76 hover:shadow-[0_10px_26px_rgba(0,0,0,0.07)] dark:hover:border-white/[0.10] dark:hover:bg-white/[0.09] dark:hover:shadow-none",l),children:i})}function Vm(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function jg(...i){return l=>{let r=!1;const o=i.map(c=>{const f=Vm(c,l);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():Vm(i[c],null)}}}}function u2(...i){return T.useCallback(jg(...i),i)}var cS=Symbol.for("react.lazy"),Yu=m0[" use ".trim().toString()];function fS(i){return typeof i=="object"&&i!==null&&"then"in i}function Mg(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===cS&&"_payload"in i&&fS(i._payload)}function dS(i){const l=mS(i),r=T.forwardRef((o,c)=>{let{children:f,...h}=o;Mg(f)&&typeof Yu=="function"&&(f=Yu(f._payload));const g=T.Children.toArray(f),p=g.find(pS);if(p){const m=p.props.children,b=g.map(v=>v===p?T.Children.count(m)>1?T.Children.only(null):T.isValidElement(m)?m.props.children:null:v);return _.jsx(l,{...h,ref:c,children:T.isValidElement(m)?T.cloneElement(m,void 0,b):null})}return _.jsx(l,{...h,ref:c,children:f})});return r.displayName=`${i}.Slot`,r}var hS=dS("Slot");function mS(i){const l=T.forwardRef((r,o)=>{let{children:c,...f}=r;if(Mg(c)&&typeof Yu=="function"&&(c=Yu(c._payload)),T.isValidElement(c)){const h=vS(c),g=yS(f,c.props);return c.type!==T.Fragment&&(g.ref=o?jg(o,h):h),T.cloneElement(c,g)}return T.Children.count(c)>1?T.Children.only(null):null});return l.displayName=`${i}.SlotClone`,l}var gS=Symbol("radix.slottable");function pS(i){return T.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===gS}function yS(i,l){const r={...l};for(const o in l){const c=i[o],f=l[o];/^on[A-Z]/.test(o)?c&&f?r[o]=(...g)=>{const p=f(...g);return c(...g),p}:c&&(r[o]=c):o==="style"?r[o]={...c,...f}:o==="className"&&(r[o]=[c,f].filter(Boolean).join(" "))}return{...i,...r}}function vS(i){var o,c;let l=(o=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?i.ref:(l=(c=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:c.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?i.props.ref:i.props.ref||i.ref)}const bS={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"},SS={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 Gu({variant:i="primary",size:l="md",className:r,children:o,loading:c,asChild:f,disabled:h,type:g="button",...p}){const m=l==="default"?"md":l,b=f?hS:"button";return _.jsxs(b,{...f?{}:{type:g},className:He("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",bS[i],SS[m],r),disabled:h||c,...p,children:[c&&_.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-hidden":!0,children:[_.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),_.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),o]})}function Km({label:i,className:l,...r}){return _.jsxs("div",{className:"space-y-1.5",children:[i&&_.jsx("label",{className:"block text-sm font-medium text-foreground",children:i}),_.jsx("input",{className:He("flex h-9 w-full rounded-md border border-input bg-background px-3 py-1 text-sm shadow-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",l),...r})]})}function r2({label:i,className:l,...r}){return _.jsxs("div",{className:"space-y-1.5",children:[i&&_.jsx("label",{className:"block text-sm font-medium text-foreground",children:i}),_.jsx("textarea",{className:He("flex min-h-20 w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm transition-colors resize-none","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",l),...r})]})}const Ho="http://127.0.0.1:9831",xS=`${Ho}/api/local/v1`;function ES(i){const l=i.trim();return l?l.replace(/\/+$/,""):xS}const ri=ES("/api/local/v1");ri.endsWith("/api/local/v1")&&ri.slice(0,-13);const si=new Set;let _t=null;async function W(i,l,r){const o=await fetch(`${ri}${l}`,{method:i,headers:{"Content-Type":"application/json"},body:r?JSON.stringify(r):void 0}),c=await o.json();if(!o.ok||!c.ok)throw new Error(c.error||`Local AI Core request failed: ${o.status}`);return c.data}function Lg(){if(_t||typeof window>"u")return;_t=new EventSource(`${ri}/events`);const i=l=>{try{const r=JSON.parse(l.data);si.forEach(o=>o(r))}catch{}};["runtime.updated","runtime.detect.started","runtime.detect.completed","runtime.detect.failed","runtime.status.changed","thread.updated","message.created","message.updated","run.updated","scheduler.job.updated","scheduler.run.updated","presence.updated","stream.updated"].forEach(l=>{_t==null||_t.addEventListener(l,i)}),_t.onerror=()=>{_t==null||_t.close(),_t=null,si.size>0&&window.setTimeout(()=>Lg(),1e3)}}function TS(){si.size===0&&_t&&(_t.close(),_t=null)}function Dg(i){return si.add(i),Lg(),()=>{si.delete(i),TS()}}async function s2(){return W("GET","/runtime")}async function o2(){return W("POST","/runtime/service/start")}async function c2(){return W("POST","/runtime/service/stop")}async function f2(){return W("POST","/runtime/service/restart")}async function d2(i){const l=typeof i=="number"?`?limit=${encodeURIComponent(String(i))}`:"";return W("GET",`/runtime/logs${l}`)}async function h2(){return W("GET","/runtime/agent-runtimes")}async function m2(){return W("POST","/runtimes/refresh")}async function g2(){return W("GET","/runtime/config")}async function p2(i){return W("POST","/runtime/config/raw",{raw:i})}async function y2(i){return W("POST","/runtime/config/structured",{config:i})}async function v2(i){return W("POST","/runtime/settings",i)}async function RS(i){return W("GET",`/platforms/${encodeURIComponent(i)}`)}function di(i){return i?`?instance_id=${encodeURIComponent(i)}`:""}async function _S(i,l,r){return W("GET",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}${di(r)}`)}async function CS(i,l,r){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/test${di(r)}`)}async function OS(i,l,r){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/enable${di(r)}`)}async function AS(i,l,r){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/disable${di(r)}`)}async function zS(i,l){const r=l?`?workspace_id=${encodeURIComponent(l)}`:"";return W("GET",`/platforms/${encodeURIComponent(i)}/pairings${r}`)}async function NS(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/pairings/approve`,{code:l})}async function wS(i,l){return W("POST",`/platforms/${encodeURIComponent(i)}/pairings/reject`,{code:l})}async function jS(i,l){const r=l?`?workspace_id=${encodeURIComponent(l)}`:"";return W("GET",`/platforms/${encodeURIComponent(i)}/users${r}`)}async function Ug(i,l,r){return W("POST",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/qrcode${di(r)}`)}async function kg(i,l,r,o){const c=`?ticket=${encodeURIComponent(r)}${o?`&instance_id=${encodeURIComponent(o)}`:""}`;return W("GET",`/platforms/${encodeURIComponent(i)}/${encodeURIComponent(l)}/qrcode/status${c}`)}async function b2(){return RS("lark")}async function S2(i,l){return _S("lark",i,l)}async function x2(i,l){return CS("lark",i,l)}async function E2(i,l){return OS("lark",i,l)}async function T2(i,l){return AS("lark",i,l)}async function R2(i){return zS("lark",i)}async function _2(i){return NS("lark",i)}async function C2(i){return wS("lark",i)}async function O2(i){return jS("lark",i)}async function A2(i,l){return Ug("lark",i,l)}async function z2(i,l,r){return kg("lark",i,l,r)}async function N2(i,l){return Ug("weixin",i,l)}async function w2(i,l,r){return kg("weixin",i,l,r)}async function j2(){return W("GET","/workspaces")}async function M2(i={}){const l=new URLSearchParams;i.workspaceId&&l.set("workspace_id",i.workspaceId),i.runtimeId&&l.set("runtime_id",i.runtimeId),i.status&&l.set("status",Array.isArray(i.status)?i.status.join(","):i.status),i.limit&&l.set("limit",String(i.limit));const r=l.toString()?`?${l.toString()}`:"";return W("GET",`/tasks${r}`)}async function L2(i={}){const l=new URLSearchParams;i.workspaceId&&l.set("workspace_id",i.workspaceId),i.taskId&&l.set("task_id",i.taskId),i.status&&l.set("status",Array.isArray(i.status)?i.status.join(","):i.status),i.limit&&l.set("limit",String(i.limit));const r=l.toString()?`?${l.toString()}`:"";return W("GET",`/approvals${r}`)}async function D2(i={}){const l=new URLSearchParams;i.workspaceId&&l.set("workspace_id",i.workspaceId),i.taskId&&l.set("task_id",i.taskId),i.approvalId&&l.set("approval_id",i.approvalId),i.type&&l.set("type",Array.isArray(i.type)?i.type.join(","):i.type),i.limit&&l.set("limit",String(i.limit));const r=l.toString()?`?${l.toString()}`:"";return W("GET",`/audit-events${r}`)}async function U2(i){return W("GET","/scheduler/jobs")}async function k2(i){return W("POST","/scheduler/jobs",i)}async function H2(i,l){return W("PATCH",`/scheduler/jobs/${encodeURIComponent(i)}`,l)}async function B2(i){return W("DELETE",`/scheduler/jobs/${encodeURIComponent(i)}`)}async function q2(i){return W("POST",`/scheduler/jobs/${encodeURIComponent(i)}/run`)}async function Y2(i){return W("GET",`/threads?workspace_id=${encodeURIComponent(i)}`)}async function G2(i,l){return W("POST","/threads",{workspaceId:i,title:l})}async function V2(i){return W("GET",`/threads/${encodeURIComponent(i)}`)}async function K2(i,l){return W("PATCH",`/threads/${encodeURIComponent(i)}`,{title:l})}async function Q2(i,l){return W("PATCH",`/threads/${encodeURIComponent(i)}/knowledge-bases`,{knowledgeBaseIds:l})}async function X2(i){return W("DELETE",`/threads/${encodeURIComponent(i)}`)}async function Z2(i,l){return W("POST",`/threads/${encodeURIComponent(i)}/messages`,{content:l})}async function $2(i,l){return W("POST",`/threads/${encodeURIComponent(i)}/actions`,{content:l})}async function J2(i){return W("POST",`/runs/${encodeURIComponent(i)}/interrupt`)}async function F2(){return W("GET","/knowledge/config")}async function W2(){return W("GET","/knowledge/folders")}async function I2(i){return W("POST","/knowledge/folders",i)}async function P2(i,l){return W("PATCH",`/knowledge/folders/${encodeURIComponent(i)}`,l)}async function ex(i){return W("DELETE",`/knowledge/folders/${encodeURIComponent(i)}`)}async function tx(){return W("GET","/knowledge/bases")}async function ax(i){return W("POST","/knowledge/bases",i)}async function nx(i){return W("GET",`/knowledge/bases/${encodeURIComponent(i)}`)}async function lx(i,l){return W("PATCH",`/knowledge/bases/${encodeURIComponent(i)}`,l)}async function ix(i){return W("DELETE",`/knowledge/bases/${encodeURIComponent(i)}`)}async function ux(i){return W("GET",`/knowledge/bases/${encodeURIComponent(i)}/files`)}async function rx(i,l){const r=new FormData;r.append("collection",l.collection),r.append("knowledgebase_id",i),l.folder&&r.append("folder",l.folder),l.files.forEach(f=>{r.append("files",f,f.name)});const o=await fetch(`${ri}/knowledge/bases/${encodeURIComponent(i)}/files`,{method:"POST",body:r}),c=await o.json();if(!o.ok||!c.ok)throw new Error(c.error||`Local AI Core upload failed: ${o.status}`);return c.data}async function sx(i,l){return W("DELETE",`/knowledge/bases/${encodeURIComponent(i)}/files/${encodeURIComponent(l)}`)}async function ox(i,l){return W("POST",`/knowledge/bases/${encodeURIComponent(i)}/search`,l)}async function cx(){return W("GET","/capabilities/snapshot")}async function fx(){return W("GET","/plugins/diagnostics")}async function dx(i){return W("POST",`/workspaces/${encodeURIComponent(i)}/streaming-probe`)}function hx(i){return Dg(l=>{l.type==="runtime.updated"&&i(l.runtime)})}function mx(i){return Dg(l=>{l.type==="stream.updated"&&i(l.stream),(l.type==="message.created"||l.type==="message.updated"||l.type==="run.updated")&&"stream"in l&&l.stream&&i(l.stream)})}const MS=[{code:"en",label:"EN"},{code:"zh",label:"中"},{code:"zh-TW",label:"繁"},{code:"ja",label:"日"},{code:"es",label:"ES"}];function LS(){const{t:i,i18n:l}=Eg(),r=Qu(),o=Ot(J=>J.login),{theme:c,setTheme:f}=Wo(),[h,g]=T.useState(""),[p,m]=T.useState(""),[b,v]=T.useState(""),[N,L]=T.useState(!1),z=sb(),H=ob(),B=async J=>{if(J.preventDefault(),!(!h.trim()||H)){L(!0),v("");try{p.trim()&&Xe.setBaseUrl(p.trim()),Xe.setToken(h.trim()),await sS(),o(h.trim(),p.trim()),z?window.location.hash="#/":r("/",{replace:!0})}catch{v(i("login.invalidToken")),Xe.setToken(""),Xe.setBaseUrl("")}finally{L(!1)}}},q={light:Im,dark:Fm,system:Jm},Q={light:"dark",dark:"system",system:"light"},X=q[c];return _.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[radial-gradient(circle_at_top,hsl(var(--secondary))_0,hsl(var(--background))_42%,hsl(var(--background))_78%)] p-4",children:[_.jsxs("div",{className:"fixed top-4 right-4 flex items-center gap-2",children:[_.jsx("div",{className:"flex overflow-hidden rounded-md border bg-card/80 backdrop-blur",children:MS.map(J=>_.jsx("button",{onClick:()=>void wg(J.code),className:He("px-2.5 py-1.5 text-xs font-medium transition-colors",l.language===J.code?"bg-primary/15 text-primary":"text-muted-foreground hover:bg-accent/10 hover:text-foreground"),children:J.label},J.code))}),_.jsx(Gu,{variant:"outline",size:"icon",onClick:()=>f(Q[c]),"aria-label":i(`theme.${c}`),children:_.jsx(X,{size:16})})]}),_.jsx("div",{className:"w-full max-w-md animate-fade-in",children:_.jsxs(oS,{className:"p-8 shadow-2xl shadow-primary/10",children:[_.jsx("div",{className:"flex justify-center mb-6",children:_.jsx(Rg,{markClassName:"h-14 w-14 drop-shadow-[0_14px_28px_rgba(0,122,255,0.22)]"})}),_.jsx("h1",{className:"text-2xl font-bold text-center text-foreground mb-1",children:i("login.title")}),_.jsx("p",{className:"text-sm text-center text-muted-foreground mb-3",children:i("login.subtitle")}),_.jsx("div",{className:"mb-8 rounded-lg border bg-muted px-4 py-3 text-xs text-muted-foreground",children:z?"AgentDock 桌面模式会自动连接到本地托管运行时。":"Browser mode requires a reachable API endpoint. Enter the server URL and access token."}),b&&_.jsxs("div",{className:"mb-4 flex items-center gap-2 rounded-lg border border-destructive/20 bg-destructive/10 px-4 py-3 text-sm text-destructive dark:text-red-200",children:[_.jsx(R0,{size:16}),b]}),_.jsxs("form",{onSubmit:B,className:"space-y-4",children:[_.jsx(Km,{label:i("login.token"),type:"password",value:h,onChange:J=>g(J.target.value),placeholder:"mgmt-secret-xxx",autoFocus:!0}),_.jsx(Km,{label:`${i("login.serverUrl")} (${i("common.optional")})`,type:"text",value:p,onChange:J=>m(J.target.value),placeholder:"http://localhost:9820"}),_.jsxs(Gu,{type:"submit",disabled:N||!h.trim()||H,className:"w-full shadow-[0_0_20px_-6px_hsl(var(--primary)/0.55)]",children:[N?_.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[_.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),_.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):_.jsx(I0,{size:16}),i("login.connect")]})]})]})})]})}function DS({children:i}){return Ot(r=>r.isAuthenticated)?_.jsx(_.Fragment,{children:i}):_.jsx(Ya,{to:"/login",replace:!0})}function US(){return _.jsx("div",{className:"flex min-h-64 items-center justify-center text-sm text-muted-foreground",children:"正在加载…"})}function kS(){const i=Ot(o=>o.isAuthenticated),l=Ot(o=>o.desktopManaged),r=Fo();return _.jsx(T.Suspense,{fallback:_.jsx(US,{}),children:_.jsxs(u1,{children:[_.jsx(on,{path:"/login",element:i?_.jsx(Ya,{to:"/",replace:!0}):_.jsx(LS,{})}),_.jsxs(on,{element:_.jsx(DS,{children:_.jsx(rS,{})}),children:[Zu.listRoutes().map(o=>o.index?_.jsx(on,{index:!0,element:o.element({desktopManaged:l,features:r})},o.id):_.jsx(on,{path:o.path,element:o.element({desktopManaged:l,features:r})},o.id)),_.jsx(on,{path:"*",element:_.jsx(Ya,{to:"/",replace:!0})})]}),_.jsx(on,{path:"*",element:_.jsx(Ya,{to:i?"/":"/login",replace:!0})})]})})}class HS extends Pn.Component{constructor(){super(...arguments);In(this,"state",{hasError:!1,errorMessage:""})}static getDerivedStateFromError(r){return{hasError:!0,errorMessage:r instanceof Error?r.message:String(r)}}componentDidCatch(r,o){console.error("App render failed",r,o)}render(){return this.state.hasError?_.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:_.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:[_.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"页面渲染失败"}),_.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400 break-words",children:this.state.errorMessage||"Unknown renderer error"}),_.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}}const BS="http://127.0.0.1:9831",qS=`${BS}/api/local/v1`,cn=YS("/api/local/v1"),oi=new Set;let Kt=null;function YS(i){const l=i.trim();return l?l.replace(/\/+$/,""):qS}async function Io(i,l,r){const o=await fetch(`${cn}${l}`,{method:i,headers:{"Content-Type":"application/json"},body:void 0}),c=await o.json();if(!o.ok||!c.ok)throw new Error(c.error||`Local AI Core request failed: ${o.status}`);return c.data}async function GS(i=350){var o;const l=new AbortController,r=window.setTimeout(()=>l.abort(),i);try{const c=await fetch(`${cn}/health`,{signal:l.signal}),f=await c.json();return c.ok&&f.ok&&((o=f.data)==null?void 0:o.name)==="local-ai-core"}catch{return!1}finally{window.clearTimeout(r)}}function Hg(){Kt||typeof window>"u"||(Kt=new EventSource(`${cn}/events`),Kt.addEventListener("runtime.updated",i=>{try{const l=JSON.parse(i.data);l.type==="runtime.updated"&&oi.forEach(r=>r(l.runtime))}catch{}}),Kt.onerror=()=>{Kt==null||Kt.close(),Kt=null,oi.size>0&&window.setTimeout(()=>Hg(),1e3)})}function VS(){oi.size===0&&Kt&&(Kt.close(),Kt=null)}async function KS(){return window.desktop?(To("electron"),!0):(await GS(),To("local_core"),!0)}function QS(){return dn()==="electron"&&window.desktop?window.desktop.getRuntimeStatus():Io("GET","/runtime")}function Qm(){return Io("GET","/capabilities/snapshot")}function XS(i){if(dn()==="electron"&&window.desktop)return window.desktop.getLogs(i);const l=`?limit=${encodeURIComponent(String(i))}`;return Io("GET",`/runtime/logs${l}`)}function ZS(i){return dn()==="electron"&&window.desktop?window.desktop.onRuntimeEvent(i):(oi.add(i),Hg(),()=>{oi.delete(i),VS()})}const Xm=20,$S=500;function JS(i){return new Promise(l=>window.setTimeout(l,i))}function FS(){return _.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:_.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:[_.jsx(Wm,{size:16,className:"animate-spin"}),"正在初始化 AgentDock 运行时…"]})})}function WS({message:i,logs:l,onRetry:r}){return _.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:_.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:[_.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:_.jsxs("div",{className:"flex items-start gap-3",children:[_.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:_.jsx($0,{size:18})}),_.jsxs("div",{children:[_.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"AgentDock 运行时初始化失败"}),_.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400 break-words",children:i})]})]})}),_.jsxs("div",{className:"px-6 py-5 space-y-4",children:[_.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:[_.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:"What we can do next"}),_.jsx("p",{className:"mt-1",children:"请先重试本地运行时初始化。如果仍然失败,请检查下方运行时日志,并确认 Local AI Core 配置文件路径与运行环境是否正确。"})]}),l.length>0&&_.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:[_.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"最近的桌面日志"}),_.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:l.join(`
177
+ `)})]}),_.jsxs("div",{className:"flex gap-3",children:[_.jsxs(Gu,{onClick:r,children:[_.jsx(Wm,{size:14})," 重试初始化"]}),_.jsx(Gu,{variant:"secondary",onClick:()=>window.location.reload(),children:"重新加载应用"})]})]})]})})}function IS(){const[i,l]=T.useState({status:"loading"}),[r,o]=T.useState(!1),c=T.useCallback(async()=>{l({status:"loading"});const h=!!await KS();if(o(h),h)try{let g=null;for(let p=0;p<Xm;p+=1)try{await QS(),g=null;break}catch(m){g=m,p<Xm-1&&await JS($S)}if(g)throw g;Ro(await Qm()),Xe.setBaseUrl(cn),Xe.setToken(""),Ot.getState().setManagedSession("",cn,dn()==="local_core"?"local_core":"electron")}catch(g){let p=[];try{p=await XS(80)}catch{p=[]}l({status:"error",message:g instanceof Error?g.message:String(g),logs:p});return}h||Ro(null),l({status:"ready"})},[]);return T.useEffect(()=>{c()},[c]),T.useEffect(()=>{if(r)return ZS(f=>{Xe.setBaseUrl(cn),Xe.setToken(""),Qm().then(h=>Ro(h)).catch(()=>{}),Ot.getState().setManagedSession("",cn,dn()==="local_core"?"local_core":"electron")})},[r]),i.status==="loading"?_.jsx(FS,{}):i.status==="error"?_.jsx(WS,{message:i.message,logs:i.logs,onRetry:()=>void c()}):_.jsx(w1,{children:_.jsx(kS,{})})}async function PS(){await lS(),Ot.getState().init(),Wo.getState().init(),uv.createRoot(document.getElementById("root")).render(_.jsx(HS,{children:_.jsx(IS,{})}))}PS();export{R2 as $,fg as A,Gu as B,oS as C,a2 as D,C0 as E,A0 as F,Zm as G,U2 as H,Km as I,H2 as J,k2 as K,yg as L,H0 as M,B2 as N,q2 as O,Dg as P,n2 as Q,Wm as R,Q0 as S,r2 as T,l2 as U,mx as V,F0 as W,O2 as X,C2 as Y,I0 as Z,_2 as _,Fo as a,T2 as a0,E2 as a1,x2 as a2,S2 as a3,b2 as a4,z2 as a5,A2 as a6,w2 as a7,N2 as a8,kg as a9,u2 as aA,F2 as aB,W2 as aC,I2 as aD,ax as aE,P2 as aF,ex as aG,lx as aH,ix as aI,L0 as aJ,av as aK,m0 as aL,jg as aM,nx as aN,ux as aO,rx as aP,sx as aQ,ox as aR,Ug as aa,jS as ab,wS as ac,NS as ad,zS as ae,AS as af,OS as ag,CS as ah,_S as ai,RS as aj,fx as ak,cx as al,m2 as am,h2 as an,hx as ao,dx as ap,v2 as aq,y2 as ar,p2 as as,g2 as at,d2 as au,f2 as av,c2 as aw,o2 as ax,s2 as ay,i2 as az,M2 as b,Je as c,L2 as d,D2 as e,R0 as f,dn as g,Y2 as h,V2 as i,_ as j,G2 as k,j2 as l,Q2 as m,Z2 as n,J2 as o,K2 as p,X2 as q,T as r,$2 as s,t2 as t,Eg as u,tx as v,He as w,E0 as x,Pn as y,Xe as z};