@kafca/agentdock 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/renderer/assets/{Badge-O6YyBOXO.js → Badge-DXt7cKFc.js} +1 -1
- package/dist/renderer/assets/{Chat-Bb42Xu99.js → Chat-KI72IiDR.js} +2 -2
- package/dist/renderer/assets/{ChatMarkdown-CKIl8nVw.js → ChatMarkdown-BJUbKIWx.js} +3 -3
- package/dist/renderer/assets/Config-Cy7Bghwk.js +16 -0
- package/dist/renderer/assets/CronList-CDLl1ZzX.js +1 -0
- package/dist/renderer/assets/{Dashboard-DIxtJDEV.js → Dashboard-GInRzjlA.js} +2 -2
- package/dist/renderer/assets/{EmptyState-Ce5baC0x.js → EmptyState-Blxa5wT6.js} +1 -1
- package/dist/renderer/assets/{KnowledgeDetail-DKjqGzjI.js → KnowledgeDetail-DG5ACw7Z.js} +2 -2
- package/dist/renderer/assets/{KnowledgeHome-CsYBKv3L.js → KnowledgeHome-Co82W8Gm.js} +3 -3
- package/dist/renderer/assets/Logs-CX-AZ4l9.js +1 -0
- package/dist/renderer/assets/{Modal-JbmTZbCL.js → Modal-BfZUw-Vc.js} +3 -3
- package/dist/renderer/assets/{Page-854R0NMM.js → Page-Bj33TMID.js} +1 -1
- package/dist/renderer/assets/ProjectDetail-Br1_6OXA.js +11 -0
- package/dist/renderer/assets/{ProjectList-mJJeoUcP.js → ProjectList-DtfMApqf.js} +1 -1
- package/dist/renderer/assets/Select-zyP8Fyv-.js +11 -0
- package/dist/renderer/assets/SessionChat-DaU2m8t8.js +1 -0
- package/dist/renderer/assets/SessionList-C5Qm9meA.js +1 -0
- package/dist/renderer/assets/ThreadChat-mXwKVnjn.js +23 -0
- package/dist/renderer/assets/{Workspace-B_sQxTj-.js → Workspace-D33Uehab.js} +2 -2
- package/dist/renderer/assets/{arrow-left-mguKZKTu.js → arrow-left-CHaLGNIO.js} +1 -1
- package/dist/renderer/assets/{book-open-3Awj2zba.js → book-open-ErTuahLF.js} +1 -1
- package/dist/renderer/assets/check-DdHpkvai.js +6 -0
- package/dist/renderer/assets/{circle-BWSc4-qr.js → circle-jGjPqcBV.js} +1 -1
- package/dist/renderer/assets/desktop-DTOHffl0.js +1 -0
- package/dist/renderer/assets/en-CKhCF6St.js +1 -0
- package/dist/renderer/assets/es-C8UBPhxM.js +1 -0
- package/dist/renderer/assets/{funnel-DE2QCcoy.js → funnel-SfDR1vLQ.js} +1 -1
- package/dist/renderer/assets/{heart-B6xi7jGt.js → heart-uLLDdrUQ.js} +1 -1
- package/dist/renderer/assets/index-CTOb2Qbz.js +41 -0
- package/dist/renderer/assets/index-CVrF_DwQ.css +11 -0
- package/dist/renderer/assets/index-DbqC4-hV.js +177 -0
- package/dist/renderer/assets/ja-ChF4vbBL.js +1 -0
- package/dist/renderer/assets/{pencil-BD6oAfUg.js → pencil-CmkSVcVi.js} +1 -1
- package/dist/renderer/assets/{play-C9Ue_X4n.js → play-D4sbHoXa.js} +1 -1
- package/dist/renderer/assets/{plug-CIaRVhae.js → plug-CTnt9Fqi.js} +1 -1
- package/dist/renderer/assets/{plus-BWHFEPZn.js → plus-C88o4pqU.js} +1 -1
- package/dist/renderer/assets/projects-CxhcfuFo.js +1 -0
- package/dist/renderer/assets/{save-DsSaJ2pw.js → save-D8aBjpdR.js} +1 -1
- package/dist/renderer/assets/{search-Ci4i20HH.js → search-CR2u_AT7.js} +1 -1
- package/dist/renderer/assets/{server-07G4ybtv.js → server-DD_yCA3I.js} +1 -1
- package/dist/renderer/assets/{session-utils-D9njomRn.js → session-utils-DzI7rMtW.js} +1 -1
- package/dist/renderer/assets/{sessions-C4c2fLQB.js → sessions-qYxQCCGN.js} +1 -1
- package/dist/renderer/assets/{shield-check-DjJz3hYk.js → shield-check-Du9pUUbm.js} +1 -1
- package/dist/renderer/assets/{trash-2-C5_ZLIsu.js → trash-2-DwMqg4qR.js} +1 -1
- package/dist/renderer/assets/{user-DHBITt1w.js → user-cFDevW5m.js} +1 -1
- package/dist/renderer/assets/{wifi-off-DuwKaMRJ.js → wifi-off-opRy17vp.js} +1 -1
- package/dist/renderer/assets/zh-Dz5FLTBV.js +1 -0
- package/dist/renderer/assets/zh-TW-BtRwreY_.js +1 -0
- package/dist/renderer/index.html +2 -2
- package/dist-electron/electron/local-core-refactor.test.js +150 -0
- package/dist-electron/services/local-ai-core/src/acp/local-core-acp-backend.js +3 -0
- package/dist-electron/services/local-ai-core/src/acp/local-core-acp-turn-coordinator.js +42 -5
- package/dist-electron/services/local-ai-core/src/acp/workspace-acp-permissions.js +19 -1
- package/dist-electron/src/pages/Threads/thread-chat-model.js +3 -3
- package/dist-electron/src/pages/Threads/thread-chat-permission.js +4 -0
- package/dist-electron/src/pages/Threads/thread-chat-permission.test.js +35 -0
- package/package.json +1 -1
- package/dist/renderer/assets/Config-U1HHZNv-.js +0 -16
- package/dist/renderer/assets/CronList-Qfok-TFN.js +0 -1
- package/dist/renderer/assets/Logs-BV93l6f2.js +0 -1
- package/dist/renderer/assets/ProjectDetail-Ct7yASjV.js +0 -11
- package/dist/renderer/assets/SessionChat-CClPXCjv.js +0 -1
- package/dist/renderer/assets/SessionList-Cxilghws.js +0 -1
- package/dist/renderer/assets/ThreadChat-BUFr0IbT.js +0 -23
- package/dist/renderer/assets/index-B2JL40NF.js +0 -232
- package/dist/renderer/assets/index-CJZeKEpW.css +0 -11
- package/dist/renderer/assets/projects-DCdaAlgs.js +0 -1
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dashboard-DIxtJDEV.js","./Badge-O6YyBOXO.js","./EmptyState-Ce5baC0x.js","./Page-854R0NMM.js","./projects-DCdaAlgs.js","./server-07G4ybtv.js","./book-open-3Awj2zba.js","./shield-check-DjJz3hYk.js","./ThreadChat-BUFr0IbT.js","./Modal-JbmTZbCL.js","./ChatMarkdown-CKIl8nVw.js","./session-utils-D9njomRn.js","./desktop-D4Z7M9RM.js","./wifi-off-DuwKaMRJ.js","./search-Ci4i20HH.js","./circle-BWSc4-qr.js","./pencil-BD6oAfUg.js","./trash-2-C5_ZLIsu.js","./user-DHBITt1w.js","./Chat-Bb42Xu99.js","./sessions-C4c2fLQB.js","./Workspace-B_sQxTj-.js","./plus-BWHFEPZn.js","./save-DsSaJ2pw.js","./ProjectList-mJJeoUcP.js","./heart-B6xi7jGt.js","./ProjectDetail-Ct7yASjV.js","./arrow-left-mguKZKTu.js","./plug-CIaRVhae.js","./play-C9Ue_X4n.js","./SessionList-Cxilghws.js","./funnel-DE2QCcoy.js","./SessionChat-CClPXCjv.js","./CronList-Qfok-TFN.js","./Config-U1HHZNv-.js","./Logs-BV93l6f2.js","./KnowledgeHome-CsYBKv3L.js","./KnowledgeDetail-DKjqGzjI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var $S=Object.defineProperty;var GS=(a,l,r)=>l in a?$S(a,l,{enumerable:!0,configurable:!0,writable:!0,value:r}):a[l]=r;var Ll=(a,l,r)=>GS(a,typeof l!="symbol"?l+"":l,r);function YS(a,l){for(var r=0;r<l.length;r++){const o=l[r];if(typeof o!="string"&&!Array.isArray(o)){for(const u in o)if(u!=="default"&&!(u in a)){const f=Object.getOwnPropertyDescriptor(o,u);f&&Object.defineProperty(a,u,f.get?f:{enumerable:!0,get:()=>o[u]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function mf(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var wc={exports:{}},Hi={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Vp;function qS(){if(Vp)return Hi;Vp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function r(o,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:a,type:o,key:d,ref:u!==void 0?u:null,props:f}}return Hi.Fragment=l,Hi.jsx=r,Hi.jsxs=r,Hi}var $p;function KS(){return $p||($p=1,wc.exports=qS()),wc.exports}var C=KS(),Cc={exports:{}},ge={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Gp;function PS(){if(Gp)return ge;Gp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),E=Symbol.iterator;function R(O){return O===null||typeof O!="object"?null:(O=E&&O[E]||O["@@iterator"],typeof O=="function"?O:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,T={};function N(O,Y,Z){this.props=O,this.context=Y,this.refs=T,this.updater=Z||w}N.prototype.isReactComponent={},N.prototype.setState=function(O,Y){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Y,"setState")},N.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function j(){}j.prototype=N.prototype;function _(O,Y,Z){this.props=O,this.context=Y,this.refs=T,this.updater=Z||w}var k=_.prototype=new j;k.constructor=_,x(k,N.prototype),k.isPureReactComponent=!0;var G=Array.isArray;function X(){}var V={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function W(O,Y,Z){var I=Z.ref;return{$$typeof:a,type:O,key:Y,ref:I!==void 0?I:null,props:Z}}function ee(O,Y){return W(O.type,Y,O.props)}function re(O){return typeof O=="object"&&O!==null&&O.$$typeof===a}function fe(O){var Y={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(Z){return Y[Z]})}var se=/\/+/g;function le(O,Y){return typeof O=="object"&&O!==null&&O.key!=null?fe(""+O.key):Y.toString(36)}function de(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(X,X):(O.status="pending",O.then(function(Y){O.status==="pending"&&(O.status="fulfilled",O.value=Y)},function(Y){O.status==="pending"&&(O.status="rejected",O.reason=Y)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function L(O,Y,Z,I,ue){var pe=typeof O;(pe==="undefined"||pe==="boolean")&&(O=null);var J=!1;if(O===null)J=!0;else switch(pe){case"bigint":case"string":case"number":J=!0;break;case"object":switch(O.$$typeof){case a:case l:J=!0;break;case y:return J=O._init,L(J(O._payload),Y,Z,I,ue)}}if(J)return ue=ue(O),J=I===""?"."+le(O,0):I,G(ue)?(Z="",J!=null&&(Z=J.replace(se,"$&/")+"/"),L(ue,Y,Z,"",function(Ae){return Ae})):ue!=null&&(re(ue)&&(ue=ee(ue,Z+(ue.key==null||O&&O.key===ue.key?"":(""+ue.key).replace(se,"$&/")+"/")+J)),Y.push(ue)),1;J=0;var ye=I===""?".":I+":";if(G(O))for(var Se=0;Se<O.length;Se++)I=O[Se],pe=ye+le(I,Se),J+=L(I,Y,Z,pe,ue);else if(Se=R(O),typeof Se=="function")for(O=Se.call(O),Se=0;!(I=O.next()).done;)I=I.value,pe=ye+le(I,Se++),J+=L(I,Y,Z,pe,ue);else if(pe==="object"){if(typeof O.then=="function")return L(de(O),Y,Z,I,ue);throw Y=String(O),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return J}function K(O,Y,Z){if(O==null)return O;var I=[],ue=0;return L(O,I,"","",function(pe){return Y.call(Z,pe,ue++)}),I}function Q(O){if(O._status===-1){var Y=O._result;Y=Y(),Y.then(function(Z){(O._status===0||O._status===-1)&&(O._status=1,O._result=Z)},function(Z){(O._status===0||O._status===-1)&&(O._status=2,O._result=Z)}),O._status===-1&&(O._status=0,O._result=Y)}if(O._status===1)return O._result.default;throw O._result}var ae=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},me={map:K,forEach:function(O,Y,Z){K(O,function(){Y.apply(this,arguments)},Z)},count:function(O){var Y=0;return K(O,function(){Y++}),Y},toArray:function(O){return K(O,function(Y){return Y})||[]},only:function(O){if(!re(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return ge.Activity=v,ge.Children=me,ge.Component=N,ge.Fragment=r,ge.Profiler=u,ge.PureComponent=_,ge.StrictMode=o,ge.Suspense=m,ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ge.__COMPILER_RUNTIME={__proto__:null,c:function(O){return V.H.useMemoCache(O)}},ge.cache=function(O){return function(){return O.apply(null,arguments)}},ge.cacheSignal=function(){return null},ge.cloneElement=function(O,Y,Z){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var I=x({},O.props),ue=O.key;if(Y!=null)for(pe in Y.key!==void 0&&(ue=""+Y.key),Y)!F.call(Y,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&Y.ref===void 0||(I[pe]=Y[pe]);var pe=arguments.length-2;if(pe===1)I.children=Z;else if(1<pe){for(var J=Array(pe),ye=0;ye<pe;ye++)J[ye]=arguments[ye+2];I.children=J}return W(O.type,ue,I)},ge.createContext=function(O){return O={$$typeof:d,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},ge.createElement=function(O,Y,Z){var I,ue={},pe=null;if(Y!=null)for(I in Y.key!==void 0&&(pe=""+Y.key),Y)F.call(Y,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ue[I]=Y[I]);var J=arguments.length-2;if(J===1)ue.children=Z;else if(1<J){for(var ye=Array(J),Se=0;Se<J;Se++)ye[Se]=arguments[Se+2];ue.children=ye}if(O&&O.defaultProps)for(I in J=O.defaultProps,J)ue[I]===void 0&&(ue[I]=J[I]);return W(O,pe,ue)},ge.createRef=function(){return{current:null}},ge.forwardRef=function(O){return{$$typeof:h,render:O}},ge.isValidElement=re,ge.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:Q}},ge.memo=function(O,Y){return{$$typeof:p,type:O,compare:Y===void 0?null:Y}},ge.startTransition=function(O){var Y=V.T,Z={};V.T=Z;try{var I=O(),ue=V.S;ue!==null&&ue(Z,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(X,ae)}catch(pe){ae(pe)}finally{Y!==null&&Z.types!==null&&(Y.types=Z.types),V.T=Y}},ge.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ge.use=function(O){return V.H.use(O)},ge.useActionState=function(O,Y,Z){return V.H.useActionState(O,Y,Z)},ge.useCallback=function(O,Y){return V.H.useCallback(O,Y)},ge.useContext=function(O){return V.H.useContext(O)},ge.useDebugValue=function(){},ge.useDeferredValue=function(O,Y){return V.H.useDeferredValue(O,Y)},ge.useEffect=function(O,Y){return V.H.useEffect(O,Y)},ge.useEffectEvent=function(O){return V.H.useEffectEvent(O)},ge.useId=function(){return V.H.useId()},ge.useImperativeHandle=function(O,Y,Z){return V.H.useImperativeHandle(O,Y,Z)},ge.useInsertionEffect=function(O,Y){return V.H.useInsertionEffect(O,Y)},ge.useLayoutEffect=function(O,Y){return V.H.useLayoutEffect(O,Y)},ge.useMemo=function(O,Y){return V.H.useMemo(O,Y)},ge.useOptimistic=function(O,Y){return V.H.useOptimistic(O,Y)},ge.useReducer=function(O,Y,Z){return V.H.useReducer(O,Y,Z)},ge.useRef=function(O){return V.H.useRef(O)},ge.useState=function(O){return V.H.useState(O)},ge.useSyncExternalStore=function(O,Y,Z){return V.H.useSyncExternalStore(O,Y,Z)},ge.useTransition=function(){return V.H.useTransition()},ge.version="19.2.5",ge}var Yp;function pf(){return Yp||(Yp=1,Cc.exports=PS()),Cc.exports}var b=pf();const kt=mf(b),gf=YS({__proto__:null,default:kt},[b]);/**
|
|
19
|
-
* @license lucide-react v0.487.0 - ISC
|
|
20
|
-
*
|
|
21
|
-
* This source code is licensed under the ISC license.
|
|
22
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/const XS=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),QS=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,r,o)=>o?o.toUpperCase():r.toLowerCase()),qp=a=>{const l=QS(a);return l.charAt(0).toUpperCase()+l.slice(1)},ov=(...a)=>a.filter((l,r,o)=>!!l&&l.trim()!==""&&o.indexOf(l)===r).join(" ").trim();/**
|
|
24
|
-
* @license lucide-react v0.487.0 - ISC
|
|
25
|
-
*
|
|
26
|
-
* This source code is licensed under the ISC license.
|
|
27
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var ZS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
29
|
-
* @license lucide-react v0.487.0 - ISC
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the ISC license.
|
|
32
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/const FS=b.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:u="",children:f,iconNode:d,...h},m)=>b.createElement("svg",{ref:m,...ZS,width:l,height:l,stroke:a,strokeWidth:o?Number(r)*24/Number(l):r,className:ov("lucide",u),...h},[...d.map(([p,y])=>b.createElement(p,y)),...Array.isArray(f)?f:[f]]));/**
|
|
34
|
-
* @license lucide-react v0.487.0 - ISC
|
|
35
|
-
*
|
|
36
|
-
* This source code is licensed under the ISC license.
|
|
37
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/const Pe=(a,l)=>{const r=b.forwardRef(({className:o,...u},f)=>b.createElement(FS,{ref:f,iconNode:l,className:ov(`lucide-${XS(qp(a))}`,`lucide-${a}`,o),...u}));return r.displayName=qp(a),r};/**
|
|
39
|
-
* @license lucide-react v0.487.0 - ISC
|
|
40
|
-
*
|
|
41
|
-
* This source code is licensed under the ISC license.
|
|
42
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
43
|
-
*/const JS=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],IS=Pe("check",JS);/**
|
|
44
|
-
* @license lucide-react v0.487.0 - ISC
|
|
45
|
-
*
|
|
46
|
-
* This source code is licensed under the ISC license.
|
|
47
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/const WS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Kp=Pe("chevron-down",WS);/**
|
|
49
|
-
* @license lucide-react v0.487.0 - ISC
|
|
50
|
-
*
|
|
51
|
-
* This source code is licensed under the ISC license.
|
|
52
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
53
|
-
*/const e1=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],t1=Pe("chevron-left",e1);/**
|
|
54
|
-
* @license lucide-react v0.487.0 - ISC
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the ISC license.
|
|
57
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/const n1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],a1=Pe("chevron-right",n1);/**
|
|
59
|
-
* @license lucide-react v0.487.0 - ISC
|
|
60
|
-
*
|
|
61
|
-
* This source code is licensed under the ISC license.
|
|
62
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
63
|
-
*/const l1=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],i1=Pe("chevron-up",l1);/**
|
|
64
|
-
* @license lucide-react v0.487.0 - ISC
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the ISC license.
|
|
67
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/const r1=[["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"}]],o1=Pe("circle-alert",r1);/**
|
|
69
|
-
* @license lucide-react v0.487.0 - ISC
|
|
70
|
-
*
|
|
71
|
-
* This source code is licensed under the ISC license.
|
|
72
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const s1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],u1=Pe("clock",s1);/**
|
|
74
|
-
* @license lucide-react v0.487.0 - ISC
|
|
75
|
-
*
|
|
76
|
-
* This source code is licensed under the ISC license.
|
|
77
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const c1=[["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"}]],f1=Pe("folder-kanban",c1);/**
|
|
79
|
-
* @license lucide-react v0.487.0 - ISC
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the ISC license.
|
|
82
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const d1=[["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"}]],h1=Pe("languages",d1);/**
|
|
84
|
-
* @license lucide-react v0.487.0 - ISC
|
|
85
|
-
*
|
|
86
|
-
* This source code is licensed under the ISC license.
|
|
87
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const m1=[["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"}]],p1=Pe("layout-dashboard",m1);/**
|
|
89
|
-
* @license lucide-react v0.487.0 - ISC
|
|
90
|
-
*
|
|
91
|
-
* This source code is licensed under the ISC license.
|
|
92
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const g1=[["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"}]],v1=Pe("library",g1);/**
|
|
94
|
-
* @license lucide-react v0.487.0 - ISC
|
|
95
|
-
*
|
|
96
|
-
* This source code is licensed under the ISC license.
|
|
97
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const y1=[["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"}]],b1=Pe("log-out",y1);/**
|
|
99
|
-
* @license lucide-react v0.487.0 - ISC
|
|
100
|
-
*
|
|
101
|
-
* This source code is licensed under the ISC license.
|
|
102
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const S1=[["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"}]],x1=Pe("message-square",S1);/**
|
|
104
|
-
* @license lucide-react v0.487.0 - ISC
|
|
105
|
-
*
|
|
106
|
-
* This source code is licensed under the ISC license.
|
|
107
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const E1=[["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"}]],w1=Pe("messages-square",E1);/**
|
|
109
|
-
* @license lucide-react v0.487.0 - ISC
|
|
110
|
-
*
|
|
111
|
-
* This source code is licensed under the ISC license.
|
|
112
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const C1=[["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"}]],sv=Pe("monitor",C1);/**
|
|
114
|
-
* @license lucide-react v0.487.0 - ISC
|
|
115
|
-
*
|
|
116
|
-
* This source code is licensed under the ISC license.
|
|
117
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const R1=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],uv=Pe("moon",R1);/**
|
|
119
|
-
* @license lucide-react v0.487.0 - ISC
|
|
120
|
-
*
|
|
121
|
-
* This source code is licensed under the ISC license.
|
|
122
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const T1=[["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"}]],cv=Pe("refresh-cw",T1);/**
|
|
124
|
-
* @license lucide-react v0.487.0 - ISC
|
|
125
|
-
*
|
|
126
|
-
* This source code is licensed under the ISC license.
|
|
127
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const A1=[["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"}]],O1=Pe("settings",A1);/**
|
|
129
|
-
* @license lucide-react v0.487.0 - ISC
|
|
130
|
-
*
|
|
131
|
-
* This source code is licensed under the ISC license.
|
|
132
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const _1=[["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"}]],fv=Pe("sun",_1);/**
|
|
134
|
-
* @license lucide-react v0.487.0 - ISC
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the ISC license.
|
|
137
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const N1=[["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"}]],D1=Pe("triangle-alert",N1);/**
|
|
139
|
-
* @license lucide-react v0.487.0 - ISC
|
|
140
|
-
*
|
|
141
|
-
* This source code is licensed under the ISC license.
|
|
142
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const j1=[["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"}]],M1=Pe("wrench",j1);/**
|
|
144
|
-
* @license lucide-react v0.487.0 - ISC
|
|
145
|
-
*
|
|
146
|
-
* This source code is licensed under the ISC license.
|
|
147
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const L1=[["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"}]],z1=Pe("zap",L1);var Rc={exports:{}},Vi={},Tc={exports:{}},Ac={};/**
|
|
149
|
-
* @license React
|
|
150
|
-
* scheduler.production.js
|
|
151
|
-
*
|
|
152
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
153
|
-
*
|
|
154
|
-
* This source code is licensed under the MIT license found in the
|
|
155
|
-
* LICENSE file in the root directory of this source tree.
|
|
156
|
-
*/var Pp;function k1(){return Pp||(Pp=1,(function(a){function l(L,K){var Q=L.length;L.push(K);e:for(;0<Q;){var ae=Q-1>>>1,me=L[ae];if(0<u(me,K))L[ae]=K,L[Q]=me,Q=ae;else break e}}function r(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var K=L[0],Q=L.pop();if(Q!==K){L[0]=Q;e:for(var ae=0,me=L.length,O=me>>>1;ae<O;){var Y=2*(ae+1)-1,Z=L[Y],I=Y+1,ue=L[I];if(0>u(Z,Q))I<me&&0>u(ue,Z)?(L[ae]=ue,L[I]=Q,ae=I):(L[ae]=Z,L[Y]=Q,ae=Y);else if(I<me&&0>u(ue,Q))L[ae]=ue,L[I]=Q,ae=I;else break e}}return K}function u(L,K){var Q=L.sortIndex-K.sortIndex;return Q!==0?Q:L.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();a.unstable_now=function(){return d.now()-h}}var m=[],p=[],y=1,v=null,E=3,R=!1,w=!1,x=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var K=r(p);K!==null;){if(K.callback===null)o(p);else if(K.startTime<=L)o(p),K.sortIndex=K.expirationTime,l(m,K);else break;K=r(p)}}function G(L){if(x=!1,k(L),!w)if(r(m)!==null)w=!0,X||(X=!0,fe());else{var K=r(p);K!==null&&de(G,K.startTime-L)}}var X=!1,V=-1,F=5,W=-1;function ee(){return T?!0:!(a.unstable_now()-W<F)}function re(){if(T=!1,X){var L=a.unstable_now();W=L;var K=!0;try{e:{w=!1,x&&(x=!1,j(V),V=-1),R=!0;var Q=E;try{t:{for(k(L),v=r(m);v!==null&&!(v.expirationTime>L&&ee());){var ae=v.callback;if(typeof ae=="function"){v.callback=null,E=v.priorityLevel;var me=ae(v.expirationTime<=L);if(L=a.unstable_now(),typeof me=="function"){v.callback=me,k(L),K=!0;break t}v===r(m)&&o(m),k(L)}else o(m);v=r(m)}if(v!==null)K=!0;else{var O=r(p);O!==null&&de(G,O.startTime-L),K=!1}}break e}finally{v=null,E=Q,R=!1}K=void 0}}finally{K?fe():X=!1}}}var fe;if(typeof _=="function")fe=function(){_(re)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,le=se.port2;se.port1.onmessage=re,fe=function(){le.postMessage(null)}}else fe=function(){N(re,0)};function de(L,K){V=N(function(){L(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(L){L.callback=null},a.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<L?Math.floor(1e3/L):5},a.unstable_getCurrentPriorityLevel=function(){return E},a.unstable_next=function(L){switch(E){case 1:case 2:case 3:var K=3;break;default:K=E}var Q=E;E=K;try{return L()}finally{E=Q}},a.unstable_requestPaint=function(){T=!0},a.unstable_runWithPriority=function(L,K){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var Q=E;E=L;try{return K()}finally{E=Q}},a.unstable_scheduleCallback=function(L,K,Q){var ae=a.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ae+Q:ae):Q=ae,L){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=Q+me,L={id:y++,callback:K,priorityLevel:L,startTime:Q,expirationTime:me,sortIndex:-1},Q>ae?(L.sortIndex=Q,l(p,L),r(m)===null&&L===r(p)&&(x?(j(V),V=-1):x=!0,de(G,Q-ae))):(L.sortIndex=me,l(m,L),w||R||(w=!0,X||(X=!0,fe()))),L},a.unstable_shouldYield=ee,a.unstable_wrapCallback=function(L){var K=E;return function(){var Q=E;E=K;try{return L.apply(this,arguments)}finally{E=Q}}}})(Ac)),Ac}var Xp;function U1(){return Xp||(Xp=1,Tc.exports=k1()),Tc.exports}var Oc={exports:{}},ht={};/**
|
|
157
|
-
* @license React
|
|
158
|
-
* react-dom.production.js
|
|
159
|
-
*
|
|
160
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the MIT license found in the
|
|
163
|
-
* LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/var Qp;function B1(){if(Qp)return ht;Qp=1;var a=pf();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" 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},u=Symbol.for("react.portal");function f(m,p,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:m,containerInfo:p,implementation:y}}var d=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ht.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return f(m,p,null,y)},ht.flushSync=function(m){var p=d.T,y=o.p;try{if(d.T=null,o.p=2,m)return m()}finally{d.T=p,o.p=y,o.d.f()}},ht.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,o.d.C(m,p))},ht.prefetchDNS=function(m){typeof m=="string"&&o.d.D(m)},ht.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin),E=typeof p.integrity=="string"?p.integrity:void 0,R=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?o.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:E,fetchPriority:R}):y==="script"&&o.d.X(m,{crossOrigin:v,integrity:E,fetchPriority:R,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ht.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=h(p.as,p.crossOrigin);o.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&o.d.M(m)},ht.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,v=h(y,p.crossOrigin);o.d.L(m,y,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ht.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=h(p.as,p.crossOrigin);o.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else o.d.m(m)},ht.requestFormReset=function(m){o.d.r(m)},ht.unstable_batchedUpdates=function(m,p){return m(p)},ht.useFormState=function(m,p,y){return d.H.useFormState(m,p,y)},ht.useFormStatus=function(){return d.H.useHostTransitionStatus()},ht.version="19.2.5",ht}var Zp;function dv(){if(Zp)return Oc.exports;Zp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Oc.exports=B1(),Oc.exports}/**
|
|
165
|
-
* @license React
|
|
166
|
-
* react-dom-client.production.js
|
|
167
|
-
*
|
|
168
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
169
|
-
*
|
|
170
|
-
* This source code is licensed under the MIT license found in the
|
|
171
|
-
* LICENSE file in the root directory of this source tree.
|
|
172
|
-
*/var Fp;function H1(){if(Fp)return Vi;Fp=1;var a=U1(),l=pf(),r=dv();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(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 h(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 m(e){if(f(e)!==e)throw Error(o(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,i=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(i=s.return,i!==null){n=i;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return m(s),e;if(c===i)return m(s),t;c=c.sibling}throw Error(o(188))}if(n.return!==i.return)n=s,i=c;else{for(var g=!1,S=s.child;S;){if(S===n){g=!0,n=s,i=c;break}if(S===i){g=!0,i=s,n=c;break}S=S.sibling}if(!g){for(S=c.child;S;){if(S===n){g=!0,n=c,i=s;break}if(S===i){g=!0,i=c,n=s;break}S=S.sibling}if(!g)throw Error(o(189))}}if(n.alternate!==i)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,E=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),_=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case x:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case G:return"Suspense";case X:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case _:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var de=Array.isArray,L=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ae=[],me=-1;function O(e){return{current:e}}function Y(e){0>me||(e.current=ae[me],ae[me]=null,me--)}function Z(e,t){me++,ae[me]=e.current,e.current=t}var I=O(null),ue=O(null),pe=O(null),J=O(null);function ye(e,t){switch(Z(pe,t),Z(ue,e),Z(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=cp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(I),Z(I,e)}function Se(){Y(I),Y(ue),Y(pe)}function Ae(e){e.memoizedState!==null&&Z(J,e);var t=I.current,n=cp(t,e.type);t!==n&&(Z(ue,e),Z(I,n))}function Te(e){ue.current===e&&(Y(I),Y(ue)),J.current===e&&(Y(J),zi._currentValue=Q)}var Oe,dt;function at(e){if(Oe===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Oe=t&&t[1]||"",dt=-1<n.stack.indexOf(`
|
|
173
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
174
|
-
`+Oe+e+dt}var bn=!1;function Sn(e,t){if(!e||bn)return"";bn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(H){var B=H}Reflect.construct(e,[],P)}else{try{P.call()}catch(H){B=H}e.call(P.prototype)}}else{try{throw Error()}catch(H){B=H}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(H){if(H&&B&&typeof H.stack=="string")return[H.stack,B.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),g=c[0],S=c[1];if(g&&S){var A=g.split(`
|
|
175
|
-
`),U=S.split(`
|
|
176
|
-
`);for(s=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(i===A.length||s===U.length)for(i=A.length-1,s=U.length-1;1<=i&&0<=s&&A[i]!==U[s];)s--;for(;1<=i&&0<=s;i--,s--)if(A[i]!==U[s]){if(i!==1||s!==1)do if(i--,s--,0>s||A[i]!==U[s]){var $=`
|
|
177
|
-
`+A[i].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=i&&0<=s);break}}}finally{bn=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?at(n):""}function Ea(e,t){switch(e.tag){case 26:case 27:case 5:return at(e.type);case 16:return at("Lazy");case 13:return e.child!==t&&t!==null?at("Suspense Fallback"):at("Suspense");case 19:return at("SuspenseList");case 0:case 15:return Sn(e.type,!1);case 11:return Sn(e.type.render,!1);case 1:return Sn(e.type,!0);case 31:return at("Activity");default:return""}}function ar(e){try{var t="",n=null;do t+=Ea(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
178
|
-
Error generating stack: `+i.message+`
|
|
179
|
-
`+i.stack}}var Yn=Object.prototype.hasOwnProperty,us=a.unstable_scheduleCallback,cs=a.unstable_cancelCallback,b0=a.unstable_shouldYield,S0=a.unstable_requestPaint,Rt=a.unstable_now,x0=a.unstable_getCurrentPriorityLevel,$f=a.unstable_ImmediatePriority,Gf=a.unstable_UserBlockingPriority,lr=a.unstable_NormalPriority,E0=a.unstable_LowPriority,Yf=a.unstable_IdlePriority,w0=a.log,C0=a.unstable_setDisableYieldValue,Xl=null,Tt=null;function qn(e){if(typeof w0=="function"&&C0(e),Tt&&typeof Tt.setStrictMode=="function")try{Tt.setStrictMode(Xl,e)}catch{}}var At=Math.clz32?Math.clz32:A0,R0=Math.log,T0=Math.LN2;function A0(e){return e>>>=0,e===0?32:31-(R0(e)/T0|0)|0}var ir=256,rr=262144,or=4194304;function wa(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 sr(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var s=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var S=i&134217727;return S!==0?(i=S&~c,i!==0?s=wa(i):(g&=S,g!==0?s=wa(g):n||(n=S&~e,n!==0&&(s=wa(n))))):(S=i&~c,S!==0?s=wa(S):g!==0?s=wa(g):n||(n=i&~e,n!==0&&(s=wa(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function Ql(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function O0(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 qf(){var e=or;return or<<=1,(or&62914560)===0&&(or=4194304),e}function fs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _0(e,t,n,i,s,c){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var S=e.entanglements,A=e.expirationTimes,U=e.hiddenUpdates;for(n=g&~n;0<n;){var $=31-At(n),P=1<<$;S[$]=0,A[$]=-1;var B=U[$];if(B!==null)for(U[$]=null,$=0;$<B.length;$++){var H=B[$];H!==null&&(H.lane&=-536870913)}n&=~P}i!==0&&Kf(e,i,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function Kf(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-At(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Pf(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-At(n),s=1<<i;s&t|e[i]&t&&(e[i]|=t),n&=~s}}function Xf(e,t){var n=t&-t;return n=(n&42)!==0?1:ds(n),(n&(e.suspendedLanes|t))!==0?0:n}function ds(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 hs(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qf(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Mp(e.type))}function Zf(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Kn=Math.random().toString(36).slice(2),rt="__reactFiber$"+Kn,vt="__reactProps$"+Kn,Fa="__reactContainer$"+Kn,ms="__reactEvents$"+Kn,N0="__reactListeners$"+Kn,D0="__reactHandles$"+Kn,Ff="__reactResources$"+Kn,Fl="__reactMarker$"+Kn;function ps(e){delete e[rt],delete e[vt],delete e[ms],delete e[N0],delete e[D0]}function Ja(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fa]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vp(e);e!==null;){if(n=e[rt])return n;e=vp(e)}return t}e=n,n=e.parentNode}return null}function Ia(e){if(e=e[rt]||e[Fa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Jl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Wa(e){var t=e[Ff];return t||(t=e[Ff]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Fl]=!0}var Jf=new Set,If={};function Ca(e,t){el(e,t),el(e+"Capture",t)}function el(e,t){for(If[e]=t,e=0;e<t.length;e++)Jf.add(t[e])}var j0=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]*$"),Wf={},ed={};function M0(e){return Yn.call(ed,e)?!0:Yn.call(Wf,e)?!1:j0.test(e)?ed[e]=!0:(Wf[e]=!0,!1)}function ur(e,t,n){if(M0(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function cr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function xn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function td(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function L0(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var s=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){n=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(g){n=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gs(e){if(!e._valueTracker){var t=td(e)?"checked":"value";e._valueTracker=L0(e,t,""+e[t])}}function nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=td(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function fr(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 z0=/[\n"\\]/g;function qt(e){return e.replace(z0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vs(e,t,n,i,s,c,g,S){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?ys(e,g,Yt(t)):n!=null?ys(e,g,Yt(n)):i!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+Yt(S):e.removeAttribute("name")}function ad(e,t,n,i,s,c,g,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){gs(e);return}n=n!=null?""+Yt(n):"",t=t!=null?""+Yt(t):n,S||t===e.value||(e.value=t),e.defaultValue=t}i=i??s,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=S?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),gs(e)}function ys(e,t,n){t==="number"&&fr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function tl(e,t,n,i){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Yt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,i&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function ld(e,t,n){if(t!=null&&(t=""+Yt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Yt(n):""}function id(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(o(92));if(de(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Yt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),gs(e)}function nl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var k0=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 rd(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||k0.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function od(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var s in t)i=t[s],t.hasOwnProperty(s)&&n[s]!==i&&rd(e,s,i)}else for(var c in t)t.hasOwnProperty(c)&&rd(e,c,t[c])}function bs(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 U0=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"]]),B0=/^[\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 dr(e){return B0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var Ss=null;function xs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var al=null,ll=null;function sd(e){var t=Ia(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(vs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+qt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var s=i[vt]||null;if(!s)throw Error(o(90));vs(i,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&nd(i)}break e;case"textarea":ld(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&tl(e,!!n.multiple,t,!1)}}}var Es=!1;function ud(e,t,n){if(Es)return e(t,n);Es=!0;try{var i=e(t);return i}finally{if(Es=!1,(al!==null||ll!==null)&&(Wr(),al&&(t=al,e=ll,ll=al=null,sd(t),e)))for(t=0;t<e.length;t++)sd(e[t])}}function Il(e,t){var n=e.stateNode;if(n===null)return null;var i=n[vt]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ws=!1;if(wn)try{var Wl={};Object.defineProperty(Wl,"passive",{get:function(){ws=!0}}),window.addEventListener("test",Wl,Wl),window.removeEventListener("test",Wl,Wl)}catch{ws=!1}var Pn=null,Cs=null,hr=null;function cd(){if(hr)return hr;var e,t=Cs,n=t.length,i,s="value"in Pn?Pn.value:Pn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var g=n-e;for(i=1;i<=g&&t[n-i]===s[c-i];i++);return hr=s.slice(e,1<i?1-i:void 0)}function mr(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 pr(){return!0}function fd(){return!1}function yt(e){function t(n,i,s,c,g){this._reactName=n,this._targetInst=s,this.type=i,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(n=e[S],this[S]=n?n(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?pr:fd,this.isPropagationStopped=fd,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pr)},persist:function(){},isPersistent:pr}),t}var Ra={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gr=yt(Ra),ei=v({},Ra,{view:0,detail:0}),H0=yt(ei),Rs,Ts,ti,vr=v({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Os,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!==ti&&(ti&&e.type==="mousemove"?(Rs=e.screenX-ti.screenX,Ts=e.screenY-ti.screenY):Ts=Rs=0,ti=e),Rs)},movementY:function(e){return"movementY"in e?e.movementY:Ts}}),dd=yt(vr),V0=v({},vr,{dataTransfer:0}),$0=yt(V0),G0=v({},ei,{relatedTarget:0}),As=yt(G0),Y0=v({},Ra,{animationName:0,elapsedTime:0,pseudoElement:0}),q0=yt(Y0),K0=v({},Ra,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P0=yt(K0),X0=v({},Ra,{data:0}),hd=yt(X0),Q0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z0={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"},F0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F0[e])?!!t[e]:!1}function Os(){return J0}var I0=v({},ei,{key:function(e){if(e.key){var t=Q0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=mr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Os,charCode:function(e){return e.type==="keypress"?mr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?mr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),W0=yt(I0),eb=v({},vr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),md=yt(eb),tb=v({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Os}),nb=yt(tb),ab=v({},Ra,{propertyName:0,elapsedTime:0,pseudoElement:0}),lb=yt(ab),ib=v({},vr,{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}),rb=yt(ib),ob=v({},Ra,{newState:0,oldState:0}),sb=yt(ob),ub=[9,13,27,32],_s=wn&&"CompositionEvent"in window,ni=null;wn&&"documentMode"in document&&(ni=document.documentMode);var cb=wn&&"TextEvent"in window&&!ni,pd=wn&&(!_s||ni&&8<ni&&11>=ni),gd=" ",vd=!1;function yd(e,t){switch(e){case"keyup":return ub.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var il=!1;function fb(e,t){switch(e){case"compositionend":return bd(t);case"keypress":return t.which!==32?null:(vd=!0,gd);case"textInput":return e=t.data,e===gd&&vd?null:e;default:return null}}function db(e,t){if(il)return e==="compositionend"||!_s&&yd(e,t)?(e=cd(),hr=Cs=Pn=null,il=!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 pd&&t.locale!=="ko"?null:t.data;default:return null}}var hb={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 Sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hb[e.type]:t==="textarea"}function xd(e,t,n,i){al?ll?ll.push(i):ll=[i]:al=i,t=ro(t,"onChange"),0<t.length&&(n=new gr("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ai=null,li=null;function mb(e){ap(e,0)}function yr(e){var t=Jl(e);if(nd(t))return e}function Ed(e,t){if(e==="change")return t}var wd=!1;if(wn){var Ns;if(wn){var Ds="oninput"in document;if(!Ds){var Cd=document.createElement("div");Cd.setAttribute("oninput","return;"),Ds=typeof Cd.oninput=="function"}Ns=Ds}else Ns=!1;wd=Ns&&(!document.documentMode||9<document.documentMode)}function Rd(){ai&&(ai.detachEvent("onpropertychange",Td),li=ai=null)}function Td(e){if(e.propertyName==="value"&&yr(li)){var t=[];xd(t,li,e,xs(e)),ud(mb,t)}}function pb(e,t,n){e==="focusin"?(Rd(),ai=t,li=n,ai.attachEvent("onpropertychange",Td)):e==="focusout"&&Rd()}function gb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yr(li)}function vb(e,t){if(e==="click")return yr(t)}function yb(e,t){if(e==="input"||e==="change")return yr(t)}function bb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:bb;function ii(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var s=n[i];if(!Yn.call(t,s)||!Ot(e[s],t[s]))return!1}return!0}function Ad(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Od(e,t){var n=Ad(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ad(n)}}function _d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fr(e.document)}return t}function js(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 Sb=wn&&"documentMode"in document&&11>=document.documentMode,rl=null,Ms=null,ri=null,Ls=!1;function Dd(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ls||rl==null||rl!==fr(i)||(i=rl,"selectionStart"in i&&js(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ri&&ii(ri,i)||(ri=i,i=ro(Ms,"onSelect"),0<i.length&&(t=new gr("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=rl)))}function Ta(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ol={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},zs={},jd={};wn&&(jd=document.createElement("div").style,"AnimationEvent"in window||(delete ol.animationend.animation,delete ol.animationiteration.animation,delete ol.animationstart.animation),"TransitionEvent"in window||delete ol.transitionend.transition);function Aa(e){if(zs[e])return zs[e];if(!ol[e])return e;var t=ol[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in jd)return zs[e]=t[n];return e}var Md=Aa("animationend"),Ld=Aa("animationiteration"),zd=Aa("animationstart"),xb=Aa("transitionrun"),Eb=Aa("transitionstart"),wb=Aa("transitioncancel"),kd=Aa("transitionend"),Ud=new Map,ks="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(" ");ks.push("scrollEnd");function tn(e,t){Ud.set(e,t),Ca(t,[e])}var br=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)},Kt=[],sl=0,Us=0;function Sr(){for(var e=sl,t=Us=sl=0;t<e;){var n=Kt[t];Kt[t++]=null;var i=Kt[t];Kt[t++]=null;var s=Kt[t];Kt[t++]=null;var c=Kt[t];if(Kt[t++]=null,i!==null&&s!==null){var g=i.pending;g===null?s.next=s:(s.next=g.next,g.next=s),i.pending=s}c!==0&&Bd(n,s,c)}}function xr(e,t,n,i){Kt[sl++]=e,Kt[sl++]=t,Kt[sl++]=n,Kt[sl++]=i,Us|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Bs(e,t,n,i){return xr(e,t,n,i),Er(e)}function Oa(e,t){return xr(e,null,null,t),Er(e)}function Bd(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-At(n),e=c.hiddenUpdates,i=e[s],i===null?e[s]=[t]:i.push(t),t.lane=n|536870912),c):null}function Er(e){if(50<Oi)throw Oi=0,Xu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ul={};function Cb(e,t,n,i){this.tag=e,this.key=n,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new Cb(e,t,n,i)}function Hs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cn(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Hd(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wr(e,t,n,i,s,c){var g=0;if(i=e,typeof e=="function")Hs(e)&&(g=1);else if(typeof e=="string")g=_S(e,n,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case W:return e=_t(31,n,t,s),e.elementType=W,e.lanes=c,e;case x:return _a(n.children,s,c,t);case T:g=8,s|=24;break;case N:return e=_t(12,n,t,s|2),e.elementType=N,e.lanes=c,e;case G:return e=_t(13,n,t,s),e.elementType=G,e.lanes=c,e;case X:return e=_t(19,n,t,s),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _:g=10;break e;case j:g=9;break e;case k:g=11;break e;case V:g=14;break e;case F:g=16,i=null;break e}g=29,n=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=_t(g,n,t,s),t.elementType=e,t.type=i,t.lanes=c,t}function _a(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function Vs(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Vd(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function $s(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $d=new WeakMap;function Pt(e,t){if(typeof e=="object"&&e!==null){var n=$d.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ar(t)},$d.set(e,t),t)}return{value:e,source:t,stack:ar(t)}}var cl=[],fl=0,Cr=null,oi=0,Xt=[],Qt=0,Xn=null,un=1,cn="";function Rn(e,t){cl[fl++]=oi,cl[fl++]=Cr,Cr=e,oi=t}function Gd(e,t,n){Xt[Qt++]=un,Xt[Qt++]=cn,Xt[Qt++]=Xn,Xn=e;var i=un;e=cn;var s=32-At(i)-1;i&=~(1<<s),n+=1;var c=32-At(t)+s;if(30<c){var g=s-s%5;c=(i&(1<<g)-1).toString(32),i>>=g,s-=g,un=1<<32-At(t)+s|n<<s|i,cn=c+e}else un=1<<c|n<<s|i,cn=e}function Gs(e){e.return!==null&&(Rn(e,1),Gd(e,1,0))}function Ys(e){for(;e===Cr;)Cr=cl[--fl],cl[fl]=null,oi=cl[--fl],cl[fl]=null;for(;e===Xn;)Xn=Xt[--Qt],Xt[Qt]=null,cn=Xt[--Qt],Xt[Qt]=null,un=Xt[--Qt],Xt[Qt]=null}function Yd(e,t){Xt[Qt++]=un,Xt[Qt++]=cn,Xt[Qt++]=Xn,un=t.id,cn=t.overflow,Xn=e}var ot=null,He=null,Re=!1,Qn=null,Zt=!1,qs=Error(o(519));function Zn(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw si(Pt(t,e)),qs}function qd(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[rt]=e,t[vt]=i,n){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(n=0;n<Ni.length;n++)Ee(Ni[n],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),ad(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),id(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||op(t.textContent,n)?(i.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),i.onScroll!=null&&Ee("scroll",t),i.onScrollEnd!=null&&Ee("scrollend",t),i.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||Zn(e,!0)}function Kd(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:ot=ot.return}}function dl(e){if(e!==ot)return!1;if(!Re)return Kd(e),Re=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||sc(e.type,e.memoizedProps)),n=!n),n&&He&&Zn(e),Kd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));He=gp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));He=gp(e)}else t===27?(t=He,ua(e.type)?(e=hc,hc=null,He=e):He=t):He=ot?Jt(e.stateNode.nextSibling):null;return!0}function Na(){He=ot=null,Re=!1}function Ks(){var e=Qn;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Qn=null),e}function si(e){Qn===null?Qn=[e]:Qn.push(e)}var Ps=O(null),Da=null,Tn=null;function Fn(e,t,n){Z(Ps,t._currentValue),t._currentValue=n}function An(e){e._currentValue=Ps.current,Y(Ps)}function Xs(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Qs(e,t,n,i){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var g=s.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=s;for(var A=0;A<t.length;A++)if(S.context===t[A]){c.lanes|=n,S=c.alternate,S!==null&&(S.lanes|=n),Xs(c.return,n,e),i||(g=null);break e}c=S.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(o(341));g.lanes|=n,c=g.alternate,c!==null&&(c.lanes|=n),Xs(g,n,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function hl(e,t,n,i){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var S=s.type;Ot(s.pendingProps.value,g.value)||(e!==null?e.push(S):e=[S])}}else if(s===J.current){if(g=s.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}s=s.return}e!==null&&Qs(t,e,n,i),t.flags|=262144}function Rr(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ja(e){Da=e,Tn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Pd(Da,e)}function Tr(e,t){return Da===null&&ja(e),Pd(e,t)}function Pd(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Tn===null){if(e===null)throw Error(o(308));Tn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Tn=Tn.next=t;return n}var Rb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Tb=a.unstable_scheduleCallback,Ab=a.unstable_NormalPriority,Fe={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zs(){return{controller:new Rb,data:new Map,refCount:0}}function ui(e){e.refCount--,e.refCount===0&&Tb(Ab,function(){e.controller.abort()})}var ci=null,Fs=0,ml=0,pl=null;function Ob(e,t){if(ci===null){var n=ci=[];Fs=0,ml=Wu(),pl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fs++,t.then(Xd,Xd),t}function Xd(){if(--Fs===0&&ci!==null){pl!==null&&(pl.status="fulfilled");var e=ci;ci=null,ml=0,pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _b(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(i.status="rejected",i.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),i}var Qd=L.S;L.S=function(e,t){Dm=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ob(e,t),Qd!==null&&Qd(e,t)};var Ma=O(null);function Js(){var e=Ma.current;return e!==null?e:Be.pooledCache}function Ar(e,t){t===null?Z(Ma,Ma.current):Z(Ma,t.pool)}function Zd(){var e=Js();return e===null?null:{parent:Fe._currentValue,pool:e}}var gl=Error(o(460)),Is=Error(o(474)),Or=Error(o(542)),_r={then:function(){}};function Fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Jd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=Be,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=i}},function(i){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wd(e),e}throw za=t,gl}}function La(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(za=n,gl):n}}var za=null;function Id(){if(za===null)throw Error(o(459));var e=za;return za=null,e}function Wd(e){if(e===gl||e===Or)throw Error(o(483))}var vl=null,fi=0;function Nr(e){var t=fi;return fi+=1,vl===null&&(vl=[]),Jd(vl,e,t)}function di(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Dr(e,t){throw t.$$typeof===E?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function eh(e){function t(M,D){if(e){var z=M.deletions;z===null?(M.deletions=[D],M.flags|=16):z.push(D)}}function n(M,D){if(!e)return null;for(;D!==null;)t(M,D),D=D.sibling;return null}function i(M){for(var D=new Map;M!==null;)M.key!==null?D.set(M.key,M):D.set(M.index,M),M=M.sibling;return D}function s(M,D){return M=Cn(M,D),M.index=0,M.sibling=null,M}function c(M,D,z){return M.index=z,e?(z=M.alternate,z!==null?(z=z.index,z<D?(M.flags|=67108866,D):z):(M.flags|=67108866,D)):(M.flags|=1048576,D)}function g(M){return e&&M.alternate===null&&(M.flags|=67108866),M}function S(M,D,z,q){return D===null||D.tag!==6?(D=Vs(z,M.mode,q),D.return=M,D):(D=s(D,z),D.return=M,D)}function A(M,D,z,q){var oe=z.type;return oe===x?$(M,D,z.props.children,q,z.key):D!==null&&(D.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===F&&La(oe)===D.type)?(D=s(D,z.props),di(D,z),D.return=M,D):(D=wr(z.type,z.key,z.props,null,M.mode,q),di(D,z),D.return=M,D)}function U(M,D,z,q){return D===null||D.tag!==4||D.stateNode.containerInfo!==z.containerInfo||D.stateNode.implementation!==z.implementation?(D=$s(z,M.mode,q),D.return=M,D):(D=s(D,z.children||[]),D.return=M,D)}function $(M,D,z,q,oe){return D===null||D.tag!==7?(D=_a(z,M.mode,q,oe),D.return=M,D):(D=s(D,z),D.return=M,D)}function P(M,D,z){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Vs(""+D,M.mode,z),D.return=M,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case R:return z=wr(D.type,D.key,D.props,null,M.mode,z),di(z,D),z.return=M,z;case w:return D=$s(D,M.mode,z),D.return=M,D;case F:return D=La(D),P(M,D,z)}if(de(D)||fe(D))return D=_a(D,M.mode,z,null),D.return=M,D;if(typeof D.then=="function")return P(M,Nr(D),z);if(D.$$typeof===_)return P(M,Tr(M,D),z);Dr(M,D)}return null}function B(M,D,z,q){var oe=D!==null?D.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return oe!==null?null:S(M,D,""+z,q);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case R:return z.key===oe?A(M,D,z,q):null;case w:return z.key===oe?U(M,D,z,q):null;case F:return z=La(z),B(M,D,z,q)}if(de(z)||fe(z))return oe!==null?null:$(M,D,z,q,null);if(typeof z.then=="function")return B(M,D,Nr(z),q);if(z.$$typeof===_)return B(M,D,Tr(M,z),q);Dr(M,z)}return null}function H(M,D,z,q,oe){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return M=M.get(z)||null,S(D,M,""+q,oe);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case R:return M=M.get(q.key===null?z:q.key)||null,A(D,M,q,oe);case w:return M=M.get(q.key===null?z:q.key)||null,U(D,M,q,oe);case F:return q=La(q),H(M,D,z,q,oe)}if(de(q)||fe(q))return M=M.get(z)||null,$(D,M,q,oe,null);if(typeof q.then=="function")return H(M,D,z,Nr(q),oe);if(q.$$typeof===_)return H(M,D,z,Tr(D,q),oe);Dr(D,q)}return null}function te(M,D,z,q){for(var oe=null,_e=null,ne=D,be=D=0,Ce=null;ne!==null&&be<z.length;be++){ne.index>be?(Ce=ne,ne=null):Ce=ne.sibling;var Ne=B(M,ne,z[be],q);if(Ne===null){ne===null&&(ne=Ce);break}e&&ne&&Ne.alternate===null&&t(M,ne),D=c(Ne,D,be),_e===null?oe=Ne:_e.sibling=Ne,_e=Ne,ne=Ce}if(be===z.length)return n(M,ne),Re&&Rn(M,be),oe;if(ne===null){for(;be<z.length;be++)ne=P(M,z[be],q),ne!==null&&(D=c(ne,D,be),_e===null?oe=ne:_e.sibling=ne,_e=ne);return Re&&Rn(M,be),oe}for(ne=i(ne);be<z.length;be++)Ce=H(ne,M,be,z[be],q),Ce!==null&&(e&&Ce.alternate!==null&&ne.delete(Ce.key===null?be:Ce.key),D=c(Ce,D,be),_e===null?oe=Ce:_e.sibling=Ce,_e=Ce);return e&&ne.forEach(function(ma){return t(M,ma)}),Re&&Rn(M,be),oe}function ce(M,D,z,q){if(z==null)throw Error(o(151));for(var oe=null,_e=null,ne=D,be=D=0,Ce=null,Ne=z.next();ne!==null&&!Ne.done;be++,Ne=z.next()){ne.index>be?(Ce=ne,ne=null):Ce=ne.sibling;var ma=B(M,ne,Ne.value,q);if(ma===null){ne===null&&(ne=Ce);break}e&&ne&&ma.alternate===null&&t(M,ne),D=c(ma,D,be),_e===null?oe=ma:_e.sibling=ma,_e=ma,ne=Ce}if(Ne.done)return n(M,ne),Re&&Rn(M,be),oe;if(ne===null){for(;!Ne.done;be++,Ne=z.next())Ne=P(M,Ne.value,q),Ne!==null&&(D=c(Ne,D,be),_e===null?oe=Ne:_e.sibling=Ne,_e=Ne);return Re&&Rn(M,be),oe}for(ne=i(ne);!Ne.done;be++,Ne=z.next())Ne=H(ne,M,be,Ne.value,q),Ne!==null&&(e&&Ne.alternate!==null&&ne.delete(Ne.key===null?be:Ne.key),D=c(Ne,D,be),_e===null?oe=Ne:_e.sibling=Ne,_e=Ne);return e&&ne.forEach(function(VS){return t(M,VS)}),Re&&Rn(M,be),oe}function Ue(M,D,z,q){if(typeof z=="object"&&z!==null&&z.type===x&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case R:e:{for(var oe=z.key;D!==null;){if(D.key===oe){if(oe=z.type,oe===x){if(D.tag===7){n(M,D.sibling),q=s(D,z.props.children),q.return=M,M=q;break e}}else if(D.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===F&&La(oe)===D.type){n(M,D.sibling),q=s(D,z.props),di(q,z),q.return=M,M=q;break e}n(M,D);break}else t(M,D);D=D.sibling}z.type===x?(q=_a(z.props.children,M.mode,q,z.key),q.return=M,M=q):(q=wr(z.type,z.key,z.props,null,M.mode,q),di(q,z),q.return=M,M=q)}return g(M);case w:e:{for(oe=z.key;D!==null;){if(D.key===oe)if(D.tag===4&&D.stateNode.containerInfo===z.containerInfo&&D.stateNode.implementation===z.implementation){n(M,D.sibling),q=s(D,z.children||[]),q.return=M,M=q;break e}else{n(M,D);break}else t(M,D);D=D.sibling}q=$s(z,M.mode,q),q.return=M,M=q}return g(M);case F:return z=La(z),Ue(M,D,z,q)}if(de(z))return te(M,D,z,q);if(fe(z)){if(oe=fe(z),typeof oe!="function")throw Error(o(150));return z=oe.call(z),ce(M,D,z,q)}if(typeof z.then=="function")return Ue(M,D,Nr(z),q);if(z.$$typeof===_)return Ue(M,D,Tr(M,z),q);Dr(M,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,D!==null&&D.tag===6?(n(M,D.sibling),q=s(D,z),q.return=M,M=q):(n(M,D),q=Vs(z,M.mode,q),q.return=M,M=q),g(M)):n(M,D)}return function(M,D,z,q){try{fi=0;var oe=Ue(M,D,z,q);return vl=null,oe}catch(ne){if(ne===gl||ne===Or)throw ne;var _e=_t(29,ne,null,M.mode);return _e.lanes=q,_e.return=M,_e}finally{}}}var ka=eh(!0),th=eh(!1),Jn=!1;function Ws(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eu(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 In(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(je&2)!==0){var s=i.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),i.pending=t,t=Er(e),Bd(e,null,n),t}return xr(e,i,t,n),Er(e)}function hi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Pf(e,n)}}function tu(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=g:c=c.next=g,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:i.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var nu=!1;function mi(){if(nu){var e=pl;if(e!==null)throw e}}function pi(e,t,n,i){nu=!1;var s=e.updateQueue;Jn=!1;var c=s.firstBaseUpdate,g=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var A=S,U=A.next;A.next=null,g===null?c=U:g.next=U,g=A;var $=e.alternate;$!==null&&($=$.updateQueue,S=$.lastBaseUpdate,S!==g&&(S===null?$.firstBaseUpdate=U:S.next=U,$.lastBaseUpdate=A))}if(c!==null){var P=s.baseState;g=0,$=U=A=null,S=c;do{var B=S.lane&-536870913,H=B!==S.lane;if(H?(we&B)===B:(i&B)===B){B!==0&&B===ml&&(nu=!0),$!==null&&($=$.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var te=e,ce=S;B=t;var Ue=n;switch(ce.tag){case 1:if(te=ce.payload,typeof te=="function"){P=te.call(Ue,P,B);break e}P=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=ce.payload,B=typeof te=="function"?te.call(Ue,P,B):te,B==null)break e;P=v({},P,B);break e;case 2:Jn=!0}}B=S.callback,B!==null&&(e.flags|=64,H&&(e.flags|=8192),H=s.callbacks,H===null?s.callbacks=[B]:H.push(B))}else H={lane:B,tag:S.tag,payload:S.payload,callback:S.callback,next:null},$===null?(U=$=H,A=P):$=$.next=H,g|=B;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;H=S,S=H.next,H.next=null,s.lastBaseUpdate=H,s.shared.pending=null}}while(!0);$===null&&(A=P),s.baseState=A,s.firstBaseUpdate=U,s.lastBaseUpdate=$,c===null&&(s.shared.lanes=0),la|=g,e.lanes=g,e.memoizedState=P}}function nh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function ah(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)nh(n[e],t)}var yl=O(null),jr=O(0);function lh(e,t){e=kn,Z(jr,e),Z(yl,t),kn=e|t.baseLanes}function au(){Z(jr,kn),Z(yl,yl.current)}function lu(){kn=jr.current,Y(yl),Y(jr)}var Nt=O(null),Ft=null;function ea(e){var t=e.alternate;Z(Xe,Xe.current&1),Z(Nt,e),Ft===null&&(t===null||yl.current!==null||t.memoizedState!==null)&&(Ft=e)}function iu(e){Z(Xe,Xe.current),Z(Nt,e),Ft===null&&(Ft=e)}function ih(e){e.tag===22?(Z(Xe,Xe.current),Z(Nt,e),Ft===null&&(Ft=e)):ta()}function ta(){Z(Xe,Xe.current),Z(Nt,Nt.current)}function Dt(e){Y(Nt),Ft===e&&(Ft=null),Y(Xe)}var Xe=O(0);function Mr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fc(n)||dc(n)))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 On=0,ve=null,ze=null,Je=null,Lr=!1,bl=!1,Ua=!1,zr=0,gi=0,Sl=null,Nb=0;function qe(){throw Error(o(321))}function ru(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function ou(e,t,n,i,s,c){return On=c,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Gh:Eu,Ua=!1,c=n(i,s),Ua=!1,bl&&(c=oh(t,n,i,s)),rh(e),c}function rh(e){L.H=bi;var t=ze!==null&&ze.next!==null;if(On=0,Je=ze=ve=null,Lr=!1,gi=0,Sl=null,t)throw Error(o(300));e===null||Ie||(e=e.dependencies,e!==null&&Rr(e)&&(Ie=!0))}function oh(e,t,n,i){ve=e;var s=0;do{if(bl&&(Sl=null),gi=0,bl=!1,25<=s)throw Error(o(301));if(s+=1,Je=ze=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Yh,c=t(n,i)}while(bl);return c}function Db(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?vi(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ve.flags|=1024),t}function su(){var e=zr!==0;return zr=0,e}function uu(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cu(e){if(Lr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lr=!1}On=0,Je=ze=ve=null,bl=!1,gi=zr=0,Sl=null}function pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ve.memoizedState=Je=e:Je=Je.next=e,Je}function Qe(){if(ze===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Je===null?ve.memoizedState:Je.next;if(t!==null)Je=t,ze=e;else{if(e===null)throw ve.alternate===null?Error(o(467)):Error(o(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Je===null?ve.memoizedState=Je=e:Je=Je.next=e}return Je}function kr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(e){var t=gi;return gi+=1,Sl===null&&(Sl=[]),e=Jd(Sl,e,t),t=ve,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Gh:Eu),e}function Ur(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vi(e);if(e.$$typeof===_)return st(e)}throw Error(o(438,String(e)))}function fu(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ve.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=kr(),ve.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=ee;return t.index++,n}function _n(e,t){return typeof t=="function"?t(e):t}function Br(e){var t=Qe();return du(t,ze,e)}function du(e,t,n){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=n;var s=e.baseQueue,c=i.pending;if(c!==null){if(s!==null){var g=s.next;s.next=c.next,c.next=g}t.baseQueue=s=c,i.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var S=g=null,A=null,U=t,$=!1;do{var P=U.lane&-536870913;if(P!==U.lane?(we&P)===P:(On&P)===P){var B=U.revertLane;if(B===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),P===ml&&($=!0);else if((On&B)===B){U=U.next,B===ml&&($=!0);continue}else P={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(S=A=P,g=c):A=A.next=P,ve.lanes|=B,la|=B;P=U.action,Ua&&n(c,P),c=U.hasEagerState?U.eagerState:n(c,P)}else B={lane:P,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},A===null?(S=A=B,g=c):A=A.next=B,ve.lanes|=P,la|=P;U=U.next}while(U!==null&&U!==t);if(A===null?g=c:A.next=S,!Ot(c,e.memoizedState)&&(Ie=!0,$&&(n=pl,n!==null)))throw n;e.memoizedState=c,e.baseState=g,e.baseQueue=A,i.lastRenderedState=c}return s===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function hu(e){var t=Qe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var i=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var g=s=s.next;do c=e(c,g.action),g=g.next;while(g!==s);Ot(c,t.memoizedState)||(Ie=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function sh(e,t,n){var i=ve,s=Qe(),c=Re;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=t();var g=!Ot((ze||s).memoizedState,n);if(g&&(s.memoizedState=n,Ie=!0),s=s.queue,gu(fh.bind(null,i,s,e),[e]),s.getSnapshot!==t||g||Je!==null&&Je.memoizedState.tag&1){if(i.flags|=2048,xl(9,{destroy:void 0},ch.bind(null,i,s,n,t),null),Be===null)throw Error(o(349));c||(On&127)!==0||uh(i,t,n)}return n}function uh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=kr(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ch(e,t,n,i){t.value=n,t.getSnapshot=i,dh(t)&&hh(e)}function fh(e,t,n){return n(function(){dh(t)&&hh(e)})}function dh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function hh(e){var t=Oa(e,2);t!==null&&wt(t,e,2)}function mu(e){var t=pt();if(typeof e=="function"){var n=e;if(e=n(),Ua){qn(!0);try{n()}finally{qn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:e},t}function mh(e,t,n,i){return e.baseState=n,du(e,ze,typeof i=="function"?i:_n)}function jb(e,t,n,i,s){if($r(e))throw Error(o(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};L.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,ph(t,c)):(c.next=n.next,t.pending=n.next=c)}}function ph(e,t){var n=t.action,i=t.payload,s=e.state;if(t.isTransition){var c=L.T,g={};L.T=g;try{var S=n(s,i),A=L.S;A!==null&&A(g,S),gh(e,t,S)}catch(U){pu(e,t,U)}finally{c!==null&&g.types!==null&&(c.types=g.types),L.T=c}}else try{c=n(s,i),gh(e,t,c)}catch(U){pu(e,t,U)}}function gh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){vh(e,t,i)},function(i){return pu(e,t,i)}):vh(e,t,n)}function vh(e,t,n){t.status="fulfilled",t.value=n,yh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ph(e,n)))}function pu(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,yh(t),t=t.next;while(t!==i)}e.action=null}function yh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bh(e,t){return t}function Sh(e,t){if(Re){var n=Be.formState;if(n!==null){e:{var i=ve;if(Re){if(He){t:{for(var s=He,c=Zt;s.nodeType!==8;){if(!c){s=null;break t}if(s=Jt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){He=Jt(s.nextSibling),i=s.data==="F!";break e}}Zn(i)}i=!1}i&&(t=n[0])}}return n=pt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:t},n.queue=i,n=Hh.bind(null,ve,i),i.dispatch=n,i=mu(!1),c=xu.bind(null,ve,!1,i.queue),i=pt(),s={state:t,dispatch:null,action:e,pending:null},i.queue=s,n=jb.bind(null,ve,s,c,n),s.dispatch=n,i.memoizedState=e,[t,n,!1]}function xh(e){var t=Qe();return Eh(t,ze,e)}function Eh(e,t,n){if(t=du(e,t,bh)[0],e=Br(_n)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=vi(t)}catch(g){throw g===gl?Or:g}else i=t;t=Qe();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,xl(9,{destroy:void 0},Mb.bind(null,s,n),null)),[i,c,e]}function Mb(e,t){e.action=t}function wh(e){var t=Qe(),n=ze;if(n!==null)return Eh(t,n,e);Qe(),t=t.memoizedState,n=Qe();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function xl(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ve.updateQueue,t===null&&(t=kr(),ve.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Ch(){return Qe().memoizedState}function Hr(e,t,n,i){var s=pt();ve.flags|=e,s.memoizedState=xl(1|t,{destroy:void 0},n,i===void 0?null:i)}function Vr(e,t,n,i){var s=Qe();i=i===void 0?null:i;var c=s.memoizedState.inst;ze!==null&&i!==null&&ru(i,ze.memoizedState.deps)?s.memoizedState=xl(t,c,n,i):(ve.flags|=e,s.memoizedState=xl(1|t,c,n,i))}function Rh(e,t){Hr(8390656,8,e,t)}function gu(e,t){Vr(2048,8,e,t)}function Lb(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=kr(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Th(e){var t=Qe().memoizedState;return Lb({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Ah(e,t){return Vr(4,2,e,t)}function Oh(e,t){return Vr(4,4,e,t)}function _h(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nh(e,t,n){n=n!=null?n.concat([e]):null,Vr(4,4,_h.bind(null,t,e),n)}function vu(){}function Dh(e,t){var n=Qe();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&ru(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function jh(e,t){var n=Qe();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&ru(t,i[1]))return i[0];if(i=e(),Ua){qn(!0);try{e()}finally{qn(!1)}}return n.memoizedState=[i,t],i}function yu(e,t,n){return n===void 0||(On&1073741824)!==0&&(we&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Mm(),ve.lanes|=e,la|=e,n)}function Mh(e,t,n,i){return Ot(n,t)?n:yl.current!==null?(e=yu(e,n,i),Ot(e,t)||(Ie=!0),e):(On&42)===0||(On&1073741824)!==0&&(we&261930)===0?(Ie=!0,e.memoizedState=n):(e=Mm(),ve.lanes|=e,la|=e,t)}function Lh(e,t,n,i,s){var c=K.p;K.p=c!==0&&8>c?c:8;var g=L.T,S={};L.T=S,xu(e,!1,t,n);try{var A=s(),U=L.S;if(U!==null&&U(S,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=_b(A,i);yi(e,t,$,Lt(e))}else yi(e,t,i,Lt(e))}catch(P){yi(e,t,{then:function(){},status:"rejected",reason:P},Lt())}finally{K.p=c,g!==null&&S.types!==null&&(g.types=S.types),L.T=g}}function zb(){}function bu(e,t,n,i){if(e.tag!==5)throw Error(o(476));var s=zh(e).queue;Lh(e,s,t,Q,n===null?zb:function(){return kh(e),n(i)})}function zh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:Q},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kh(e){var t=zh(e);t.next===null&&(t=e.alternate.memoizedState),yi(e,t.next.queue,{},Lt())}function Su(){return st(zi)}function Uh(){return Qe().memoizedState}function Bh(){return Qe().memoizedState}function kb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Lt();e=In(n);var i=Wn(t,e,n);i!==null&&(wt(i,t,n),hi(i,t,n)),t={cache:Zs()},e.payload=t;return}t=t.return}}function Ub(e,t,n){var i=Lt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},$r(e)?Vh(t,n):(n=Bs(e,t,n,i),n!==null&&(wt(n,e,i),$h(n,t,i)))}function Hh(e,t,n){var i=Lt();yi(e,t,n,i)}function yi(e,t,n,i){var s={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if($r(e))Vh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,S=c(g,n);if(s.hasEagerState=!0,s.eagerState=S,Ot(S,g))return xr(e,t,s,0),Be===null&&Sr(),!1}catch{}finally{}if(n=Bs(e,t,s,i),n!==null)return wt(n,e,i),$h(n,t,i),!0}return!1}function xu(e,t,n,i){if(i={lane:2,revertLane:Wu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},$r(e)){if(t)throw Error(o(479))}else t=Bs(e,n,i,2),t!==null&&wt(t,e,2)}function $r(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function Vh(e,t){bl=Lr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function $h(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Pf(e,n)}}var bi={readContext:st,use:Ur,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};bi.useEffectEvent=qe;var Gh={readContext:st,use:Ur,useCallback:function(e,t){return pt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Rh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Hr(4194308,4,_h.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hr(4194308,4,e,t)},useInsertionEffect:function(e,t){Hr(4,2,e,t)},useMemo:function(e,t){var n=pt();t=t===void 0?null:t;var i=e();if(Ua){qn(!0);try{e()}finally{qn(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=pt();if(n!==void 0){var s=n(t);if(Ua){qn(!0);try{n(t)}finally{qn(!1)}}}else s=t;return i.memoizedState=i.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},i.queue=e,e=e.dispatch=Ub.bind(null,ve,e),[i.memoizedState,e]},useRef:function(e){var t=pt();return e={current:e},t.memoizedState=e},useState:function(e){e=mu(e);var t=e.queue,n=Hh.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vu,useDeferredValue:function(e,t){var n=pt();return yu(n,e,t)},useTransition:function(){var e=mu(!1);return e=Lh.bind(null,ve,e.queue,!0,!1),pt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ve,s=pt();if(Re){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Be===null)throw Error(o(349));(we&127)!==0||uh(i,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Rh(fh.bind(null,i,c,e),[e]),i.flags|=2048,xl(9,{destroy:void 0},ch.bind(null,i,c,n,t),null),n},useId:function(){var e=pt(),t=Be.identifierPrefix;if(Re){var n=cn,i=un;n=(i&~(1<<32-At(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=zr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Nb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Su,useFormState:Sh,useActionState:Sh,useOptimistic:function(e){var t=pt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xu.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:fu,useCacheRefresh:function(){return pt().memoizedState=kb.bind(null,ve)},useEffectEvent:function(e){var t=pt(),n={impl:e};return t.memoizedState=n,function(){if((je&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Eu={readContext:st,use:Ur,useCallback:Dh,useContext:st,useEffect:gu,useImperativeHandle:Nh,useInsertionEffect:Ah,useLayoutEffect:Oh,useMemo:jh,useReducer:Br,useRef:Ch,useState:function(){return Br(_n)},useDebugValue:vu,useDeferredValue:function(e,t){var n=Qe();return Mh(n,ze.memoizedState,e,t)},useTransition:function(){var e=Br(_n)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:Su,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var n=Qe();return mh(n,ze,e,t)},useMemoCache:fu,useCacheRefresh:Bh};Eu.useEffectEvent=Th;var Yh={readContext:st,use:Ur,useCallback:Dh,useContext:st,useEffect:gu,useImperativeHandle:Nh,useInsertionEffect:Ah,useLayoutEffect:Oh,useMemo:jh,useReducer:hu,useRef:Ch,useState:function(){return hu(_n)},useDebugValue:vu,useDeferredValue:function(e,t){var n=Qe();return ze===null?yu(n,e,t):Mh(n,ze.memoizedState,e,t)},useTransition:function(){var e=hu(_n)[0],t=Qe().memoizedState;return[typeof e=="boolean"?e:vi(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:Su,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var n=Qe();return ze!==null?mh(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fu,useCacheRefresh:Bh};Yh.useEffectEvent=Th;function wu(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Cu={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Lt(),s=In(i);s.payload=t,n!=null&&(s.callback=n),t=Wn(e,s,i),t!==null&&(wt(t,e,i),hi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Lt(),s=In(i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Wn(e,s,i),t!==null&&(wt(t,e,i),hi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Lt(),i=In(n);i.tag=2,t!=null&&(i.callback=t),t=Wn(e,i,n),t!==null&&(wt(t,e,n),hi(t,e,n))}};function qh(e,t,n,i,s,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,g):t.prototype&&t.prototype.isPureReactComponent?!ii(n,i)||!ii(s,c):!0}function Kh(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&Cu.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Ph(e){br(e)}function Xh(e){console.error(e)}function Qh(e){br(e)}function Gr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Zh(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ru(e,t,n){return n=In(n),n.tag=3,n.payload={element:null},n.callback=function(){Gr(e,t)},n}function Fh(e){return e=In(e),e.tag=3,e}function Jh(e,t,n,i){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=i.value;e.payload=function(){return s(c)},e.callback=function(){Zh(t,n,i)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Zh(t,n,i),typeof s!="function"&&(ia===null?ia=new Set([this]):ia.add(this));var S=i.stack;this.componentDidCatch(i.value,{componentStack:S!==null?S:""})})}function Bb(e,t,n,i,s){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&hl(t,n,s,!0),n=Nt.current,n!==null){switch(n.tag){case 31:case 13:return Ft===null?eo():n.alternate===null&&Ke===0&&(Ke=3),n.flags&=-257,n.flags|=65536,n.lanes=s,i===_r?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Fu(e,i,s)),!1;case 22:return n.flags|=65536,i===_r?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Fu(e,i,s)),!1}throw Error(o(435,n.tag))}return Fu(e,i,s),eo(),!1}if(Re)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,i!==qs&&(e=Error(o(422),{cause:i}),si(Pt(e,n)))):(i!==qs&&(t=Error(o(423),{cause:i}),si(Pt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,i=Pt(i,n),s=Ru(e.stateNode,i,s),tu(e,s),Ke!==4&&(Ke=2)),!1;var c=Error(o(520),{cause:i});if(c=Pt(c,n),Ai===null?Ai=[c]:Ai.push(c),Ke!==4&&(Ke=2),t===null)return!0;i=Pt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Ru(n.stateNode,i,e),tu(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ia===null||!ia.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Fh(s),Jh(s,e,n,i),tu(n,s),!1}n=n.return}while(n!==null);return!1}var Tu=Error(o(461)),Ie=!1;function ut(e,t,n,i){t.child=e===null?th(t,null,n,i):ka(t,e.child,n,i)}function Ih(e,t,n,i,s){n=n.render;var c=t.ref;if("ref"in i){var g={};for(var S in i)S!=="ref"&&(g[S]=i[S])}else g=i;return ja(t),i=ou(e,t,n,g,c,s),S=su(),e!==null&&!Ie?(uu(e,t,s),Nn(e,t,s)):(Re&&S&&Gs(t),t.flags|=1,ut(e,t,i,s),t.child)}function Wh(e,t,n,i,s){if(e===null){var c=n.type;return typeof c=="function"&&!Hs(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,em(e,t,c,i,s)):(e=wr(n.type,null,i,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Lu(e,s)){var g=c.memoizedProps;if(n=n.compare,n=n!==null?n:ii,n(g,i)&&e.ref===t.ref)return Nn(e,t,s)}return t.flags|=1,e=Cn(c,i),e.ref=t.ref,e.return=t,t.child=e}function em(e,t,n,i,s){if(e!==null){var c=e.memoizedProps;if(ii(c,i)&&e.ref===t.ref)if(Ie=!1,t.pendingProps=i=c,Lu(e,s))(e.flags&131072)!==0&&(Ie=!0);else return t.lanes=e.lanes,Nn(e,t,s)}return Au(e,t,n,i,s)}function tm(e,t,n,i){var s=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,s=0;i!==null;)s=s|i.lanes|i.childLanes,i=i.sibling;i=s&~c}else i=0,t.child=null;return nm(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ar(t,c!==null?c.cachePool:null),c!==null?lh(t,c):au(),ih(t);else return i=t.lanes=536870912,nm(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(Ar(t,c.cachePool),lh(t,c),ta(),t.memoizedState=null):(e!==null&&Ar(t,null),au(),ta());return ut(e,t,s,n),t.child}function Si(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function nm(e,t,n,i,s){var c=Js();return c=c===null?null:{parent:Fe._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Ar(t,null),au(),ih(t),e!==null&&hl(e,t,i,!0),t.childLanes=s,null}function Yr(e,t){return t=Kr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function am(e,t,n){return ka(t,e.child,null,n),e=Yr(t,t.pendingProps),e.flags|=2,Dt(t),t.memoizedState=null,e}function Hb(e,t,n){var i=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(i.mode==="hidden")return e=Yr(t,i),t.lanes=536870912,Si(null,e);if(iu(t),(e=He)?(e=pp(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:un,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=Vd(e),n.return=t,t.child=n,ot=t,He=null)):e=null,e===null)throw Zn(t);return t.lanes=536870912,null}return Yr(t,i)}var c=e.memoizedState;if(c!==null){var g=c.dehydrated;if(iu(t),s)if(t.flags&256)t.flags&=-257,t=am(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Ie||hl(e,t,n,!1),s=(n&e.childLanes)!==0,Ie||s){if(i=Be,i!==null&&(g=Xf(i,n),g!==0&&g!==c.retryLane))throw c.retryLane=g,Oa(e,g),wt(i,e,g),Tu;eo(),t=am(e,t,n)}else e=c.treeContext,He=Jt(g.nextSibling),ot=t,Re=!0,Qn=null,Zt=!1,e!==null&&Yd(t,e),t=Yr(t,i),t.flags|=4096;return t}return e=Cn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qr(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Au(e,t,n,i,s){return ja(t),n=ou(e,t,n,i,void 0,s),i=su(),e!==null&&!Ie?(uu(e,t,s),Nn(e,t,s)):(Re&&i&&Gs(t),t.flags|=1,ut(e,t,n,s),t.child)}function lm(e,t,n,i,s,c){return ja(t),t.updateQueue=null,n=oh(t,i,n,s),rh(e),i=su(),e!==null&&!Ie?(uu(e,t,c),Nn(e,t,c)):(Re&&i&&Gs(t),t.flags|=1,ut(e,t,n,c),t.child)}function im(e,t,n,i,s){if(ja(t),t.stateNode===null){var c=ul,g=n.contextType;typeof g=="object"&&g!==null&&(c=st(g)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Cu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Ws(t),g=n.contextType,c.context=typeof g=="object"&&g!==null?st(g):ul,c.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(wu(t,n,g,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&Cu.enqueueReplaceState(c,c.state,null),pi(t,i,c,s),mi(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,A=Ba(n,S);c.props=A;var U=c.context,$=n.contextType;g=ul,typeof $=="object"&&$!==null&&(g=st($));var P=n.getDerivedStateFromProps;$=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,$||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||U!==g)&&Kh(t,c,i,g),Jn=!1;var B=t.memoizedState;c.state=B,pi(t,i,c,s),mi(),U=t.memoizedState,S||B!==U||Jn?(typeof P=="function"&&(wu(t,n,P,i),U=t.memoizedState),(A=Jn||qh(t,n,A,i,B,U,g))?($||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=U),c.props=i,c.state=U,c.context=g,i=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,eu(e,t),g=t.memoizedProps,$=Ba(n,g),c.props=$,P=t.pendingProps,B=c.context,U=n.contextType,A=ul,typeof U=="object"&&U!==null&&(A=st(U)),S=n.getDerivedStateFromProps,(U=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==P||B!==A)&&Kh(t,c,i,A),Jn=!1,B=t.memoizedState,c.state=B,pi(t,i,c,s),mi();var H=t.memoizedState;g!==P||B!==H||Jn||e!==null&&e.dependencies!==null&&Rr(e.dependencies)?(typeof S=="function"&&(wu(t,n,S,i),H=t.memoizedState),($=Jn||qh(t,n,$,i,B,H,A)||e!==null&&e.dependencies!==null&&Rr(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,H,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,H,A)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=H),c.props=i,c.state=H,c.context=A,i=$):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&B===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,qr(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=ka(t,e.child,null,s),t.child=ka(t,null,n,s)):ut(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Nn(e,t,s),e}function rm(e,t,n,i){return Na(),t.flags|=256,ut(e,t,n,i),t.child}var Ou={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _u(e){return{baseLanes:e,cachePool:Zd()}}function Nu(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Mt),e}function om(e,t,n){var i=t.pendingProps,s=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(s?ea(t):ta(),(e=He)?(e=pp(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xn!==null?{id:un,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},n=Vd(e),n.return=t,t.child=n,ot=t,He=null)):e=null,e===null)throw Zn(t);return dc(e)?t.lanes=32:t.lanes=536870912,null}var S=i.children;return i=i.fallback,s?(ta(),s=t.mode,S=Kr({mode:"hidden",children:S},s),i=_a(i,s,n,null),S.return=t,i.return=t,S.sibling=i,t.child=S,i=t.child,i.memoizedState=_u(n),i.childLanes=Nu(e,g,n),t.memoizedState=Ou,Si(null,i)):(ea(t),Du(t,S))}var A=e.memoizedState;if(A!==null&&(S=A.dehydrated,S!==null)){if(c)t.flags&256?(ea(t),t.flags&=-257,t=ju(e,t,n)):t.memoizedState!==null?(ta(),t.child=e.child,t.flags|=128,t=null):(ta(),S=i.fallback,s=t.mode,i=Kr({mode:"visible",children:i.children},s),S=_a(S,s,n,null),S.flags|=2,i.return=t,S.return=t,i.sibling=S,t.child=i,ka(t,e.child,null,n),i=t.child,i.memoizedState=_u(n),i.childLanes=Nu(e,g,n),t.memoizedState=Ou,t=Si(null,i));else if(ea(t),dc(S)){if(g=S.nextSibling&&S.nextSibling.dataset,g)var U=g.dgst;g=U,i=Error(o(419)),i.stack="",i.digest=g,si({value:i,source:null,stack:null}),t=ju(e,t,n)}else if(Ie||hl(e,t,n,!1),g=(n&e.childLanes)!==0,Ie||g){if(g=Be,g!==null&&(i=Xf(g,n),i!==0&&i!==A.retryLane))throw A.retryLane=i,Oa(e,i),wt(g,e,i),Tu;fc(S)||eo(),t=ju(e,t,n)}else fc(S)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,He=Jt(S.nextSibling),ot=t,Re=!0,Qn=null,Zt=!1,e!==null&&Yd(t,e),t=Du(t,i.children),t.flags|=4096);return t}return s?(ta(),S=i.fallback,s=t.mode,A=e.child,U=A.sibling,i=Cn(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,U!==null?S=Cn(U,S):(S=_a(S,s,n,null),S.flags|=2),S.return=t,i.return=t,i.sibling=S,t.child=i,Si(null,i),i=t.child,S=e.child.memoizedState,S===null?S=_u(n):(s=S.cachePool,s!==null?(A=Fe._currentValue,s=s.parent!==A?{parent:A,pool:A}:s):s=Zd(),S={baseLanes:S.baseLanes|n,cachePool:s}),i.memoizedState=S,i.childLanes=Nu(e,g,n),t.memoizedState=Ou,Si(e.child,i)):(ea(t),n=e.child,e=n.sibling,n=Cn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function Du(e,t){return t=Kr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Kr(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function ju(e,t,n){return ka(t,e.child,null,n),e=Du(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sm(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Xs(e.return,t,n)}function Mu(e,t,n,i,s,c){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:s,treeForkCount:c}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=n,g.tailMode=s,g.treeForkCount=c)}function um(e,t,n){var i=t.pendingProps,s=i.revealOrder,c=i.tail;i=i.children;var g=Xe.current,S=(g&2)!==0;if(S?(g=g&1|2,t.flags|=128):g&=1,Z(Xe,g),ut(e,t,i,n),i=Re?oi:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sm(e,n,t);else if(e.tag===19)sm(e,n,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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Mr(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Mu(t,!1,s,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Mr(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Mu(t,!0,n,null,c,i);break;case"together":Mu(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function Nn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),la|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(hl(e,t,n,!1),(n&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,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Lu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rr(e)))}function Vb(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),Fn(t,Fe,e.memoizedState.cache),Na();break;case 27:case 5:Ae(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:Fn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,iu(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ea(t),t.flags|=128,null):(n&t.child.childLanes)!==0?om(e,t,n):(ea(t),e=Nn(e,t,n),e!==null?e.sibling:null);ea(t);break;case 19:var s=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(hl(e,t,n,!1),i=(n&t.childLanes)!==0),s){if(i)return um(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Xe,Xe.current),i)break;return null;case 22:return t.lanes=0,tm(e,t,n,t.pendingProps);case 24:Fn(t,Fe,e.memoizedState.cache)}return Nn(e,t,n)}function cm(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ie=!0;else{if(!Lu(e,n)&&(t.flags&128)===0)return Ie=!1,Vb(e,t,n);Ie=(e.flags&131072)!==0}else Ie=!1,Re&&(t.flags&1048576)!==0&&Gd(t,oi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=La(t.elementType),t.type=e,typeof e=="function")Hs(e)?(i=Ba(e,i),t.tag=1,t=im(null,t,e,i,n)):(t.tag=0,t=Au(null,t,e,i,n));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=Ih(null,t,e,i,n);break e}else if(s===V){t.tag=14,t=Wh(null,t,e,i,n);break e}}throw t=le(e)||e,Error(o(306,t,""))}}return t;case 0:return Au(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,s=Ba(i,t.pendingProps),im(e,t,i,s,n);case 3:e:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var c=t.memoizedState;s=c.element,eu(e,t),pi(t,i,null,n);var g=t.memoizedState;if(i=g.cache,Fn(t,Fe,i),i!==c.cache&&Qs(t,[Fe],n,!0),mi(),i=g.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=rm(e,t,i,n);break e}else if(i!==s){s=Pt(Error(o(424)),t),si(s),t=rm(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Jt(e.firstChild),ot=t,Re=!0,Qn=null,Zt=!0,n=th(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Na(),i===s){t=Nn(e,t,n);break e}ut(e,t,i,n)}t=t.child}return t;case 26:return qr(e,t),e===null?(n=xp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Re||(n=t.type,e=t.pendingProps,i=oo(pe.current).createElement(n),i[rt]=t,i[vt]=e,ct(i,n,e),lt(i),t.stateNode=i):t.memoizedState=xp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ae(t),e===null&&Re&&(i=t.stateNode=yp(t.type,t.pendingProps,pe.current),ot=t,Zt=!0,s=He,ua(t.type)?(hc=s,He=Jt(i.firstChild)):He=s),ut(e,t,t.pendingProps.children,n),qr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((s=i=He)&&(i=gS(i,t.type,t.pendingProps,Zt),i!==null?(t.stateNode=i,ot=t,He=Jt(i.firstChild),Zt=!1,s=!0):s=!1),s||Zn(t)),Ae(t),s=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,i=c.children,sc(s,c)?i=null:g!==null&&sc(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=ou(e,t,Db,null,null,n),zi._currentValue=s),qr(e,t),ut(e,t,i,n),t.child;case 6:return e===null&&Re&&((e=n=He)&&(n=vS(n,t.pendingProps,Zt),n!==null?(t.stateNode=n,ot=t,He=null,e=!0):e=!1),e||Zn(t)),null;case 13:return om(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ka(t,null,i,n):ut(e,t,i,n),t.child;case 11:return Ih(e,t,t.type,t.pendingProps,n);case 7:return ut(e,t,t.pendingProps,n),t.child;case 8:return ut(e,t,t.pendingProps.children,n),t.child;case 12:return ut(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Fn(t,t.type,i.value),ut(e,t,i.children,n),t.child;case 9:return s=t.type._context,i=t.pendingProps.children,ja(t),s=st(s),i=i(s),t.flags|=1,ut(e,t,i,n),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,n);case 15:return em(e,t,t.type,t.pendingProps,n);case 19:return um(e,t,n);case 31:return Hb(e,t,n);case 22:return tm(e,t,n,t.pendingProps);case 24:return ja(t),i=st(Fe),e===null?(s=Js(),s===null&&(s=Be,c=Zs(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:i,cache:s},Ws(t),Fn(t,Fe,s)):((e.lanes&n)!==0&&(eu(e,t),pi(t,null,null,n),mi()),s=e.memoizedState,c=t.memoizedState,s.parent!==i?(s={parent:i,cache:i},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Fn(t,Fe,i)):(i=c.cache,Fn(t,Fe,i),i!==s.cache&&Qs(t,[Fe],n,!0))),ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Dn(e){e.flags|=4}function zu(e,t,n,i,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Um())e.flags|=8192;else throw za=_r,Is}else e.flags&=-16777217}function fm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tp(t))if(Um())e.flags|=8192;else throw za=_r,Is}function Pr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qf():536870912,e.lanes|=t,Rl|=t)}function xi(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags&65011712,i|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,i|=s.subtreeFlags,i|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function $b(e,t,n){var i=t.pendingProps;switch(Ys(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(t),null;case 1:return Ve(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),An(Fe),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(dl(t)?Dn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ks())),Ve(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Dn(t),c!==null?(Ve(t),fm(t,c)):(Ve(t),zu(t,s,null,i,n))):c?c!==e.memoizedState?(Dn(t),Ve(t),fm(t,c)):(Ve(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Dn(t),Ve(t),zu(t,s,e,i,n)),null;case 27:if(Te(t),n=pe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Dn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Ve(t),null}e=I.current,dl(t)?qd(t):(e=yp(s,i,n),t.stateNode=e,Dn(t))}return Ve(t),null;case 5:if(Te(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Dn(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return Ve(t),null}if(c=I.current,dl(t))qd(t);else{var g=oo(pe.current);switch(c){case 1:c=g.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=g.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=g.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=g.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?g.createElement(s,{is:i.is}):g.createElement(s)}}c[rt]=t,c[vt]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)c.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=c;e:switch(ct(c,s,i),s){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Dn(t)}}return Ve(t),zu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Dn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=pe.current,dl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,s=ot,s!==null)switch(s.tag){case 27:case 5:i=s.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||op(e.nodeValue,n)),e||Zn(t,!0)}else e=oo(e).createTextNode(i),e[rt]=t,t.stateNode=e}return Ve(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=dl(t),n!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[rt]=t}else Na(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),e=!1}else n=Ks(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Dt(t),t):(Dt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ve(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=dl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(o(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[rt]=t}else Na(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ve(t),s=!1}else s=Ks(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Dt(t),t):(Dt(t),null)}return Dt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,s=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(s=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==s&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pr(t,t.updateQueue),Ve(t),null);case 4:return Se(),e===null&&ac(t.stateNode.containerInfo),Ve(t),null;case 10:return An(t.type),Ve(t),null;case 19:if(Y(Xe),i=t.memoizedState,i===null)return Ve(t),null;if(s=(t.flags&128)!==0,c=i.rendering,c===null)if(s)xi(i,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Mr(e),c!==null){for(t.flags|=128,xi(i,!1),e=c.updateQueue,t.updateQueue=e,Pr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Hd(n,e),n=n.sibling;return Z(Xe,Xe.current&1|2),Re&&Rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Rt()>Jr&&(t.flags|=128,s=!0,xi(i,!1),t.lanes=4194304)}else{if(!s)if(e=Mr(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Pr(t,e),xi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Re)return Ve(t),null}else 2*Rt()-i.renderingStartTime>Jr&&n!==536870912&&(t.flags|=128,s=!0,xi(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Rt(),e.sibling=null,n=Xe.current,Z(Xe,s?n&1|2:n&1),Re&&Rn(t,i.treeForkCount),e):(Ve(t),null);case 22:case 23:return Dt(t),lu(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ve(t),t.subtreeFlags&6&&(t.flags|=8192)):Ve(t),n=t.updateQueue,n!==null&&Pr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Y(Ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),An(Fe),Ve(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Gb(e,t){switch(Ys(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return An(Fe),Se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Te(t),null;case 31:if(t.memoizedState!==null){if(Dt(t),t.alternate===null)throw Error(o(340));Na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Dt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Na()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Xe),null;case 4:return Se(),null;case 10:return An(t.type),null;case 22:case 23:return Dt(t),lu(),e!==null&&Y(Ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return An(Fe),null;case 25:return null;default:return null}}function dm(e,t){switch(Ys(t),t.tag){case 3:An(Fe),Se();break;case 26:case 27:case 5:Te(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Dt(t);break;case 13:Dt(t);break;case 19:Y(Xe);break;case 10:An(t.type);break;case 22:case 23:Dt(t),lu(),e!==null&&Y(Ma);break;case 24:An(Fe)}}function Ei(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var s=i.next;n=s;do{if((n.tag&e)===e){i=void 0;var c=n.create,g=n.inst;i=c(),g.destroy=i}n=n.next}while(n!==s)}}catch(S){Le(t,t.return,S)}}function na(e,t,n){try{var i=t.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var c=s.next;i=c;do{if((i.tag&e)===e){var g=i.inst,S=g.destroy;if(S!==void 0){g.destroy=void 0,s=t;var A=n,U=S;try{U()}catch($){Le(s,A,$)}}}i=i.next}while(i!==c)}}catch($){Le(t,t.return,$)}}function hm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ah(t,n)}catch(i){Le(e,e.return,i)}}}function mm(e,t,n){n.props=Ba(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Le(e,t,i)}}function wi(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(s){Le(e,t,s)}}function fn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(s){Le(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Le(e,t,s)}else n.current=null}function pm(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(s){Le(e,e.return,s)}}function ku(e,t,n){try{var i=e.stateNode;cS(i,e.type,n,t),i[vt]=t}catch(s){Le(e,e.return,s)}}function gm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ua(e.type)||e.tag===4}function Uu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gm(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&&ua(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 Bu(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En));else if(i!==4&&(i===27&&ua(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Bu(e,t,n),e=e.sibling;e!==null;)Bu(e,t,n),e=e.sibling}function Xr(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&ua(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xr(e,t,n),e=e.sibling;e!==null;)Xr(e,t,n),e=e.sibling}function vm(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ct(t,i,n),t[rt]=e,t[vt]=n}catch(c){Le(e,e.return,c)}}var jn=!1,We=!1,Hu=!1,ym=typeof WeakSet=="function"?WeakSet:Set,it=null;function Yb(e,t){if(e=e.containerInfo,rc=po,e=Nd(e),js(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var s=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var g=0,S=-1,A=-1,U=0,$=0,P=e,B=null;t:for(;;){for(var H;P!==n||s!==0&&P.nodeType!==3||(S=g+s),P!==c||i!==0&&P.nodeType!==3||(A=g+i),P.nodeType===3&&(g+=P.nodeValue.length),(H=P.firstChild)!==null;)B=P,P=H;for(;;){if(P===e)break t;if(B===n&&++U===s&&(S=g),B===c&&++$===i&&(A=g),(H=P.nextSibling)!==null)break;P=B,B=P.parentNode}P=H}n=S===-1||A===-1?null:{start:S,end:A}}else n=null}n=n||{start:0,end:0}}else n=null;for(oc={focusedElem:e,selectionRange:n},po=!1,it=t;it!==null;)if(t=it,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,it=e;else for(;it!==null;){switch(t=it,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var te=Ba(n.type,s);e=i.getSnapshotBeforeUpdate(te,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Le(n,n.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)cc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":cc(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,it=e;break}it=t.return}}function bm(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Ln(e,n),i&4&&Ei(5,n);break;case 1:if(Ln(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Le(n,n.return,g)}else{var s=Ba(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Le(n,n.return,g)}}i&64&&hm(n),i&512&&wi(n,n.return);break;case 3:if(Ln(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ah(e,t)}catch(g){Le(n,n.return,g)}}break;case 27:t===null&&i&4&&vm(n);case 26:case 5:Ln(e,n),t===null&&i&4&&pm(n),i&512&&wi(n,n.return);break;case 12:Ln(e,n);break;case 31:Ln(e,n),i&4&&Em(e,n);break;case 13:Ln(e,n),i&4&&wm(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ib.bind(null,n),yS(e,n))));break;case 22:if(i=n.memoizedState!==null||jn,!i){t=t!==null&&t.memoizedState!==null||We,s=jn;var c=We;jn=i,(We=t)&&!c?zn(e,n,(n.subtreeFlags&8772)!==0):Ln(e,n),jn=s,We=c}break;case 30:break;default:Ln(e,n)}}function Sm(e){var t=e.alternate;t!==null&&(e.alternate=null,Sm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ps(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 $e=null,bt=!1;function Mn(e,t,n){for(n=n.child;n!==null;)xm(e,t,n),n=n.sibling}function xm(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(Xl,n)}catch{}switch(n.tag){case 26:We||fn(n,t),Mn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:We||fn(n,t);var i=$e,s=bt;ua(n.type)&&($e=n.stateNode,bt=!1),Mn(e,t,n),ji(n.stateNode),$e=i,bt=s;break;case 5:We||fn(n,t);case 6:if(i=$e,s=bt,$e=null,Mn(e,t,n),$e=i,bt=s,$e!==null)if(bt)try{($e.nodeType===9?$e.body:$e.nodeName==="HTML"?$e.ownerDocument.body:$e).removeChild(n.stateNode)}catch(c){Le(n,t,c)}else try{$e.removeChild(n.stateNode)}catch(c){Le(n,t,c)}break;case 18:$e!==null&&(bt?(e=$e,hp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ml(e)):hp($e,n.stateNode));break;case 4:i=$e,s=bt,$e=n.stateNode.containerInfo,bt=!0,Mn(e,t,n),$e=i,bt=s;break;case 0:case 11:case 14:case 15:na(2,n,t),We||na(4,n,t),Mn(e,t,n);break;case 1:We||(fn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&mm(n,t,i)),Mn(e,t,n);break;case 21:Mn(e,t,n);break;case 22:We=(i=We)||n.memoizedState!==null,Mn(e,t,n),We=i;break;default:Mn(e,t,n)}}function Em(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ml(e)}catch(n){Le(t,t.return,n)}}}function wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ml(e)}catch(n){Le(t,t.return,n)}}function qb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ym),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ym),t;default:throw Error(o(435,e.tag))}}function Qr(e,t){var n=qb(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var s=Wb.bind(null,e,i);i.then(s,s)}})}function St(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var s=n[i],c=e,g=t,S=g;e:for(;S!==null;){switch(S.tag){case 27:if(ua(S.type)){$e=S.stateNode,bt=!1;break e}break;case 5:$e=S.stateNode,bt=!1;break e;case 3:case 4:$e=S.stateNode.containerInfo,bt=!0;break e}S=S.return}if($e===null)throw Error(o(160));xm(c,g,s),$e=null,bt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cm(t,e),t=t.sibling}var nn=null;function Cm(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:St(t,e),xt(e),i&4&&(na(3,e,e.return),Ei(3,e),na(5,e,e.return));break;case 1:St(t,e),xt(e),i&512&&(We||n===null||fn(n,n.return)),i&64&&jn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var s=nn;if(St(t,e),xt(e),i&512&&(We||n===null||fn(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(i){case"title":c=s.getElementsByTagName("title")[0],(!c||c[Fl]||c[rt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(i),s.head.insertBefore(c,s.querySelector("head > title"))),ct(c,i,n),c[rt]=e,lt(c),i=c;break e;case"link":var g=Cp("link","href",s).get(i+(n.href||""));if(g){for(var S=0;S<g.length;S++)if(c=g[S],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(S,1);break t}}c=s.createElement(i),ct(c,i,n),s.head.appendChild(c);break;case"meta":if(g=Cp("meta","content",s).get(i+(n.content||""))){for(S=0;S<g.length;S++)if(c=g[S],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(S,1);break t}}c=s.createElement(i),ct(c,i,n),s.head.appendChild(c);break;default:throw Error(o(468,i))}c[rt]=e,lt(c),i=c}e.stateNode=i}else Rp(s,e.type,e.stateNode);else e.stateNode=wp(s,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?Rp(s,e.type,e.stateNode):wp(s,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ku(e,e.memoizedProps,n.memoizedProps)}break;case 27:St(t,e),xt(e),i&512&&(We||n===null||fn(n,n.return)),n!==null&&i&4&&ku(e,e.memoizedProps,n.memoizedProps);break;case 5:if(St(t,e),xt(e),i&512&&(We||n===null||fn(n,n.return)),e.flags&32){s=e.stateNode;try{nl(s,"")}catch(te){Le(e,e.return,te)}}i&4&&e.stateNode!=null&&(s=e.memoizedProps,ku(e,s,n!==null?n.memoizedProps:s)),i&1024&&(Hu=!0);break;case 6:if(St(t,e),xt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(te){Le(e,e.return,te)}}break;case 3:if(co=null,s=nn,nn=so(t.containerInfo),St(t,e),nn=s,xt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ml(t.containerInfo)}catch(te){Le(e,e.return,te)}Hu&&(Hu=!1,Rm(e));break;case 4:i=nn,nn=so(e.stateNode.containerInfo),St(t,e),xt(e),nn=i;break;case 12:St(t,e),xt(e);break;case 31:St(t,e),xt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qr(e,i)));break;case 13:St(t,e),xt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Fr=Rt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qr(e,i)));break;case 22:s=e.memoizedState!==null;var A=n!==null&&n.memoizedState!==null,U=jn,$=We;if(jn=U||s,We=$||A,St(t,e),We=$,jn=U,xt(e),i&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||A||jn||We||Ha(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){A=n=t;try{if(c=A.stateNode,s)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{S=A.stateNode;var P=A.memoizedProps.style,B=P!=null&&P.hasOwnProperty("display")?P.display:null;S.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(te){Le(A,A.return,te)}}}else if(t.tag===6){if(n===null){A=t;try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(te){Le(A,A.return,te)}}}else if(t.tag===18){if(n===null){A=t;try{var H=A.stateNode;s?mp(H,!0):mp(A.stateNode,!1)}catch(te){Le(A,A.return,te)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Qr(e,n))));break;case 19:St(t,e),xt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Qr(e,i)));break;case 30:break;case 21:break;default:St(t,e),xt(e)}}function xt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(gm(i)){n=i;break}i=i.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,c=Uu(e);Xr(e,c,s);break;case 5:var g=n.stateNode;n.flags&32&&(nl(g,""),n.flags&=-33);var S=Uu(e);Xr(e,S,g);break;case 3:case 4:var A=n.stateNode.containerInfo,U=Uu(e);Bu(e,U,A);break;default:throw Error(o(161))}}catch($){Le(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Rm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Rm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ln(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bm(e,t.alternate,t),t=t.sibling}function Ha(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:na(4,t,t.return),Ha(t);break;case 1:fn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&mm(t,t.return,n),Ha(t);break;case 27:ji(t.stateNode);case 26:case 5:fn(t,t.return),Ha(t);break;case 22:t.memoizedState===null&&Ha(t);break;case 30:Ha(t);break;default:Ha(t)}e=e.sibling}}function zn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,s=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:zn(s,c,n),Ei(4,c);break;case 1:if(zn(s,c,n),i=c,s=i.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Le(i,i.return,U)}if(i=c,s=i.updateQueue,s!==null){var S=i.stateNode;try{var A=s.shared.hiddenCallbacks;if(A!==null)for(s.shared.hiddenCallbacks=null,s=0;s<A.length;s++)nh(A[s],S)}catch(U){Le(i,i.return,U)}}n&&g&64&&hm(c),wi(c,c.return);break;case 27:vm(c);case 26:case 5:zn(s,c,n),n&&i===null&&g&4&&pm(c),wi(c,c.return);break;case 12:zn(s,c,n);break;case 31:zn(s,c,n),n&&g&4&&Em(s,c);break;case 13:zn(s,c,n),n&&g&4&&wm(s,c);break;case 22:c.memoizedState===null&&zn(s,c,n),wi(c,c.return);break;case 30:break;default:zn(s,c,n)}t=t.sibling}}function Vu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ui(n))}function $u(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ui(e))}function an(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tm(e,t,n,i),t=t.sibling}function Tm(e,t,n,i){var s=t.flags;switch(t.tag){case 0:case 11:case 15:an(e,t,n,i),s&2048&&Ei(9,t);break;case 1:an(e,t,n,i);break;case 3:an(e,t,n,i),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ui(e)));break;case 12:if(s&2048){an(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,S=c.onPostCommit;typeof S=="function"&&S(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Le(t,t.return,A)}}else an(e,t,n,i);break;case 31:an(e,t,n,i);break;case 13:an(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?an(e,t,n,i):Ci(e,t):c._visibility&2?an(e,t,n,i):(c._visibility|=2,El(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Vu(g,t);break;case 24:an(e,t,n,i),s&2048&&$u(t.alternate,t);break;default:an(e,t,n,i)}}function El(e,t,n,i,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,g=t,S=n,A=i,U=g.flags;switch(g.tag){case 0:case 11:case 15:El(c,g,S,A,s),Ei(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?El(c,g,S,A,s):Ci(c,g):($._visibility|=2,El(c,g,S,A,s)),s&&U&2048&&Vu(g.alternate,g);break;case 24:El(c,g,S,A,s),s&&U&2048&&$u(g.alternate,g);break;default:El(c,g,S,A,s)}t=t.sibling}}function Ci(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,s=i.flags;switch(i.tag){case 22:Ci(n,i),s&2048&&Vu(i.alternate,i);break;case 24:Ci(n,i),s&2048&&$u(i.alternate,i);break;default:Ci(n,i)}t=t.sibling}}var Ri=8192;function wl(e,t,n){if(e.subtreeFlags&Ri)for(e=e.child;e!==null;)Am(e,t,n),e=e.sibling}function Am(e,t,n){switch(e.tag){case 26:wl(e,t,n),e.flags&Ri&&e.memoizedState!==null&&NS(n,nn,e.memoizedState,e.memoizedProps);break;case 5:wl(e,t,n);break;case 3:case 4:var i=nn;nn=so(e.stateNode.containerInfo),wl(e,t,n),nn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ri,Ri=16777216,wl(e,t,n),Ri=i):wl(e,t,n));break;default:wl(e,t,n)}}function Om(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 Ti(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,Nm(i,e)}Om(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_m(e),e=e.sibling}function _m(e){switch(e.tag){case 0:case 11:case 15:Ti(e),e.flags&2048&&na(9,e,e.return);break;case 3:Ti(e);break;case 12:Ti(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zr(e)):Ti(e);break;default:Ti(e)}}function Zr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,Nm(i,e)}Om(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:na(8,t,t.return),Zr(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zr(t));break;default:Zr(t)}e=e.sibling}}function Nm(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:na(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ui(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,it=i;else e:for(n=e;it!==null;){i=it;var s=i.sibling,c=i.return;if(Sm(i),i===n){it=null;break e}if(s!==null){s.return=c,it=s;break e}it=c}}}var Kb={getCacheForType:function(e){var t=st(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return st(Fe).controller.signal}},Pb=typeof WeakMap=="function"?WeakMap:Map,je=0,Be=null,xe=null,we=0,Me=0,jt=null,aa=!1,Cl=!1,Gu=!1,kn=0,Ke=0,la=0,Va=0,Yu=0,Mt=0,Rl=0,Ai=null,Et=null,qu=!1,Fr=0,Dm=0,Jr=1/0,Ir=null,ia=null,nt=0,ra=null,Tl=null,Un=0,Ku=0,Pu=null,jm=null,Oi=0,Xu=null;function Lt(){return(je&2)!==0&&we!==0?we&-we:L.T!==null?Wu():Qf()}function Mm(){if(Mt===0)if((we&536870912)===0||Re){var e=rr;rr<<=1,(rr&3932160)===0&&(rr=262144),Mt=e}else Mt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),Mt}function wt(e,t,n){(e===Be&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(Al(e,0),oa(e,we,Mt,!1)),Zl(e,n),((je&2)===0||e!==Be)&&(e===Be&&((je&2)===0&&(Va|=n),Ke===4&&oa(e,we,Mt,!1)),dn(e))}function Lm(e,t,n){if((je&6)!==0)throw Error(o(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ql(e,t),s=i?Zb(e,t):Zu(e,t,!0),c=i;do{if(s===0){Cl&&!i&&oa(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Xb(n)){s=Zu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var S=e;s=Ai;var A=S.current.memoizedState.isDehydrated;if(A&&(Al(S,g).flags|=256),g=Zu(S,g,!1),g!==2){if(Gu&&!A){S.errorRecoveryDisabledLanes|=c,Va|=c,s=4;break e}c=Et,Et=s,c!==null&&(Et===null?Et=c:Et.push.apply(Et,c))}s=g}if(c=!1,s!==2)continue}}if(s===1){Al(e,0),oa(e,t,0,!0);break}e:{switch(i=e,c=s,c){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:oa(i,t,Mt,!aa);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(s=Fr+300-Rt(),10<s)){if(oa(i,t,Mt,!aa),sr(i,0,!0)!==0)break e;Un=t,i.timeoutHandle=fp(zm.bind(null,i,n,Et,Ir,qu,t,Mt,Va,Rl,aa,c,"Throttled",-0,0),s);break e}zm(i,n,Et,Ir,qu,t,Mt,Va,Rl,aa,c,null,-0,0)}}break}while(!0);dn(e)}function zm(e,t,n,i,s,c,g,S,A,U,$,P,B,H){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},Am(t,c,P);var te=(c&62914560)===c?Fr-Rt():(c&4194048)===c?Dm-Rt():0;if(te=DS(P,te),te!==null){Un=c,e.cancelPendingCommit=te(Ym.bind(null,e,t,c,n,i,s,g,S,A,$,P,null,B,H)),oa(e,c,g,!U);return}}Ym(e,t,c,n,i,s,g,S,A)}function Xb(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var s=n[i],c=s.getSnapshot;s=s.value;try{if(!Ot(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 oa(e,t,n,i){t&=~Yu,t&=~Va,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var s=t;0<s;){var c=31-At(s),g=1<<c;i[c]=-1,s&=~g}n!==0&&Kf(e,n,t)}function Wr(){return(je&6)===0?(_i(0),!1):!0}function Qu(){if(xe!==null){if(Me===0)var e=xe.return;else e=xe,Tn=Da=null,cu(e),vl=null,fi=0,e=xe;for(;e!==null;)dm(e.alternate,e),e=e.return;xe=null}}function Al(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,hS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Un=0,Qu(),Be=e,xe=n=Cn(e.current,null),we=t,Me=0,jt=null,aa=!1,Cl=Ql(e,t),Gu=!1,Rl=Mt=Yu=Va=la=Ke=0,Et=Ai=null,qu=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var s=31-At(i),c=1<<s;t|=e[s],i&=~c}return kn=t,Sr(),n}function km(e,t){ve=null,L.H=bi,t===gl||t===Or?(t=Id(),Me=3):t===Is?(t=Id(),Me=4):Me=t===Tu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,xe===null&&(Ke=1,Gr(e,Pt(t,e.current)))}function Um(){var e=Nt.current;return e===null?!0:(we&4194048)===we?Ft===null:(we&62914560)===we||(we&536870912)!==0?e===Ft:!1}function Bm(){var e=L.H;return L.H=bi,e===null?bi:e}function Hm(){var e=L.A;return L.A=Kb,e}function eo(){Ke=4,aa||(we&4194048)!==we&&Nt.current!==null||(Cl=!0),(la&134217727)===0&&(Va&134217727)===0||Be===null||oa(Be,we,Mt,!1)}function Zu(e,t,n){var i=je;je|=2;var s=Bm(),c=Hm();(Be!==e||we!==t)&&(Ir=null,Al(e,t)),t=!1;var g=Ke;e:do try{if(Me!==0&&xe!==null){var S=xe,A=jt;switch(Me){case 8:Qu(),g=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var U=Me;if(Me=0,jt=null,Ol(e,S,A,U),n&&Cl){g=0;break e}break;default:U=Me,Me=0,jt=null,Ol(e,S,A,U)}}Qb(),g=Ke;break}catch($){km(e,$)}while(!0);return t&&e.shellSuspendCounter++,Tn=Da=null,je=i,L.H=s,L.A=c,xe===null&&(Be=null,we=0,Sr()),g}function Qb(){for(;xe!==null;)Vm(xe)}function Zb(e,t){var n=je;je|=2;var i=Bm(),s=Hm();Be!==e||we!==t?(Ir=null,Jr=Rt()+500,Al(e,t)):Cl=Ql(e,t);e:do try{if(Me!==0&&xe!==null){t=xe;var c=jt;t:switch(Me){case 1:Me=0,jt=null,Ol(e,t,c,1);break;case 2:case 9:if(Fd(c)){Me=0,jt=null,$m(t);break}t=function(){Me!==2&&Me!==9||Be!==e||(Me=7),dn(e)},c.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:Fd(c)?(Me=0,jt=null,$m(t)):(Me=0,jt=null,Ol(e,t,c,7));break;case 5:var g=null;switch(xe.tag){case 26:g=xe.memoizedState;case 5:case 27:var S=xe;if(g?Tp(g):S.stateNode.complete){Me=0,jt=null;var A=S.sibling;if(A!==null)xe=A;else{var U=S.return;U!==null?(xe=U,to(U)):xe=null}break t}}Me=0,jt=null,Ol(e,t,c,5);break;case 6:Me=0,jt=null,Ol(e,t,c,6);break;case 8:Qu(),Ke=6;break e;default:throw Error(o(462))}}Fb();break}catch($){km(e,$)}while(!0);return Tn=Da=null,L.H=i,L.A=s,je=n,xe!==null?0:(Be=null,we=0,Sr(),Ke)}function Fb(){for(;xe!==null&&!b0();)Vm(xe)}function Vm(e){var t=cm(e.alternate,e,kn);e.memoizedProps=e.pendingProps,t===null?to(e):xe=t}function $m(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lm(n,t,t.pendingProps,t.type,void 0,we);break;case 11:t=lm(n,t,t.pendingProps,t.type.render,t.ref,we);break;case 5:cu(t);default:dm(n,t),t=xe=Hd(t,kn),t=cm(n,t,kn)}e.memoizedProps=e.pendingProps,t===null?to(e):xe=t}function Ol(e,t,n,i){Tn=Da=null,cu(t),vl=null,fi=0;var s=t.return;try{if(Bb(e,s,t,n,we)){Ke=1,Gr(e,Pt(n,e.current)),xe=null;return}}catch(c){if(s!==null)throw xe=s,c;Ke=1,Gr(e,Pt(n,e.current)),xe=null;return}t.flags&32768?(Re||i===1?e=!0:Cl||(we&536870912)!==0?e=!1:(aa=e=!0,(i===2||i===9||i===3||i===6)&&(i=Nt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Gm(t,e)):to(t)}function to(e){var t=e;do{if((t.flags&32768)!==0){Gm(t,aa);return}e=t.return;var n=$b(t.alternate,t,kn);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);Ke===0&&(Ke=5)}function Gm(e,t){do{var n=Gb(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);Ke=6,xe=null}function Ym(e,t,n,i,s,c,g,S,A){e.cancelPendingCommit=null;do no();while(nt!==0);if((je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(c=t.lanes|t.childLanes,c|=Us,_0(e,n,c,g,S,A),e===Be&&(xe=Be=null,we=0),Tl=t,ra=e,Un=n,Ku=c,Pu=s,jm=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,eS(lr,function(){return Qm(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=L.T,L.T=null,s=K.p,K.p=2,g=je,je|=4;try{Yb(e,t,n)}finally{je=g,K.p=s,L.T=i}}nt=1,qm(),Km(),Pm()}}function qm(){if(nt===1){nt=0;var e=ra,t=Tl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var i=K.p;K.p=2;var s=je;je|=4;try{Cm(t,e);var c=oc,g=Nd(e.containerInfo),S=c.focusedElem,A=c.selectionRange;if(g!==S&&S&&S.ownerDocument&&_d(S.ownerDocument.documentElement,S)){if(A!==null&&js(S)){var U=A.start,$=A.end;if($===void 0&&($=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min($,S.value.length);else{var P=S.ownerDocument||document,B=P&&P.defaultView||window;if(B.getSelection){var H=B.getSelection(),te=S.textContent.length,ce=Math.min(A.start,te),Ue=A.end===void 0?ce:Math.min(A.end,te);!H.extend&&ce>Ue&&(g=Ue,Ue=ce,ce=g);var M=Od(S,ce),D=Od(S,Ue);if(M&&D&&(H.rangeCount!==1||H.anchorNode!==M.node||H.anchorOffset!==M.offset||H.focusNode!==D.node||H.focusOffset!==D.offset)){var z=P.createRange();z.setStart(M.node,M.offset),H.removeAllRanges(),ce>Ue?(H.addRange(z),H.extend(D.node,D.offset)):(z.setEnd(D.node,D.offset),H.addRange(z))}}}}for(P=[],H=S;H=H.parentNode;)H.nodeType===1&&P.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<P.length;S++){var q=P[S];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}po=!!rc,oc=rc=null}finally{je=s,K.p=i,L.T=n}}e.current=t,nt=2}}function Km(){if(nt===2){nt=0;var e=ra,t=Tl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var i=K.p;K.p=2;var s=je;je|=4;try{bm(e,t.alternate,t)}finally{je=s,K.p=i,L.T=n}}nt=3}}function Pm(){if(nt===4||nt===3){nt=0,S0();var e=ra,t=Tl,n=Un,i=jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?nt=5:(nt=0,Tl=ra=null,Xm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ia=null),hs(n),t=t.stateNode,Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(Xl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=L.T,s=K.p,K.p=2,L.T=null;try{for(var c=e.onRecoverableError,g=0;g<i.length;g++){var S=i[g];c(S.value,{componentStack:S.stack})}}finally{L.T=t,K.p=s}}(Un&3)!==0&&no(),dn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===Xu?Oi++:(Oi=0,Xu=e):Oi=0,_i(0)}}function Xm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ui(t)))}function no(){return qm(),Km(),Pm(),Qm()}function Qm(){if(nt!==5)return!1;var e=ra,t=Ku;Ku=0;var n=hs(Un),i=L.T,s=K.p;try{K.p=32>n?32:n,L.T=null,n=Pu,Pu=null;var c=ra,g=Un;if(nt=0,Tl=ra=null,Un=0,(je&6)!==0)throw Error(o(331));var S=je;if(je|=4,_m(c.current),Tm(c,c.current,g,n),je=S,_i(0,!1),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(Xl,c)}catch{}return!0}finally{K.p=s,L.T=i,Xm(e,t)}}function Zm(e,t,n){t=Pt(n,t),t=Ru(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Zl(e,2),dn(e))}function Le(e,t,n){if(e.tag===3)Zm(e,e,n);else for(;t!==null;){if(t.tag===3){Zm(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ia===null||!ia.has(i))){e=Pt(n,e),n=Fh(2),i=Wn(t,n,2),i!==null&&(Jh(n,i,t,e),Zl(i,2),dn(i));break}}t=t.return}}function Fu(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Pb;var s=new Set;i.set(t,s)}else s=i.get(t),s===void 0&&(s=new Set,i.set(t,s));s.has(n)||(Gu=!0,s.add(n),e=Jb.bind(null,e,t,n),t.then(e,e))}function Jb(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Be===e&&(we&n)===n&&(Ke===4||Ke===3&&(we&62914560)===we&&300>Rt()-Fr?(je&2)===0&&Al(e,0):Yu|=n,Rl===we&&(Rl=0)),dn(e)}function Fm(e,t){t===0&&(t=qf()),e=Oa(e,t),e!==null&&(Zl(e,t),dn(e))}function Ib(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Fm(e,n)}function Wb(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Fm(e,n)}function eS(e,t){return us(e,t)}var ao=null,_l=null,Ju=!1,lo=!1,Iu=!1,sa=0;function dn(e){e!==_l&&e.next===null&&(_l===null?ao=_l=e:_l=_l.next=e),lo=!0,Ju||(Ju=!0,nS())}function _i(e,t){if(!Iu&&lo){Iu=!0;do for(var n=!1,i=ao;i!==null;){if(e!==0){var s=i.pendingLanes;if(s===0)var c=0;else{var g=i.suspendedLanes,S=i.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=s&~(g&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,ep(i,c))}else c=we,c=sr(i,i===Be?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Ql(i,c)||(n=!0,ep(i,c));i=i.next}while(n);Iu=!1}}function tS(){Jm()}function Jm(){lo=Ju=!1;var e=0;sa!==0&&dS()&&(e=sa);for(var t=Rt(),n=null,i=ao;i!==null;){var s=i.next,c=Im(i,t);c===0?(i.next=null,n===null?ao=s:n.next=s,s===null&&(_l=n)):(n=i,(e!==0||(c&3)!==0)&&(lo=!0)),i=s}nt!==0&&nt!==5||_i(e),sa!==0&&(sa=0)}function Im(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-At(c),S=1<<g,A=s[g];A===-1?((S&n)===0||(S&i)!==0)&&(s[g]=O0(S,t)):A<=t&&(e.expiredLanes|=S),c&=~S}if(t=Be,n=we,n=sr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&cs(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ql(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&cs(i),hs(n)){case 2:case 8:n=Gf;break;case 32:n=lr;break;case 268435456:n=Yf;break;default:n=lr}return i=Wm.bind(null,e),n=us(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&cs(i),e.callbackPriority=2,e.callbackNode=null,2}function Wm(e,t){if(nt!==0&&nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(no()&&e.callbackNode!==n)return null;var i=we;return i=sr(e,e===Be?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Lm(e,i,t),Im(e,Rt()),e.callbackNode!=null&&e.callbackNode===n?Wm.bind(null,e):null)}function ep(e,t){if(no())return null;Lm(e,t,!0)}function nS(){mS(function(){(je&6)!==0?us($f,tS):Jm()})}function Wu(){if(sa===0){var e=ml;e===0&&(e=ir,ir<<=1,(ir&261888)===0&&(ir=256)),sa=e}return sa}function tp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:dr(""+e)}function np(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function aS(e,t,n,i,s){if(t==="submit"&&n&&n.stateNode===s){var c=tp((s[vt]||null).action),g=i.submitter;g&&(t=(t=g[vt]||null)?tp(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var S=new gr("action","action",null,i,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(sa!==0){var A=g?np(s,g):new FormData(s);bu(n,{pending:!0,data:A,method:s.method,action:c},null,A)}}else typeof c=="function"&&(S.preventDefault(),A=g?np(s,g):new FormData(s),bu(n,{pending:!0,data:A,method:s.method,action:c},c,A))},currentTarget:s}]})}}for(var ec=0;ec<ks.length;ec++){var tc=ks[ec],lS=tc.toLowerCase(),iS=tc[0].toUpperCase()+tc.slice(1);tn(lS,"on"+iS)}tn(Md,"onAnimationEnd"),tn(Ld,"onAnimationIteration"),tn(zd,"onAnimationStart"),tn("dblclick","onDoubleClick"),tn("focusin","onFocus"),tn("focusout","onBlur"),tn(xb,"onTransitionRun"),tn(Eb,"onTransitionStart"),tn(wb,"onTransitionCancel"),tn(kd,"onTransitionEnd"),el("onMouseEnter",["mouseout","mouseover"]),el("onMouseLeave",["mouseout","mouseover"]),el("onPointerEnter",["pointerout","pointerover"]),el("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ni="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(" "),rS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ni));function ap(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],s=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var g=i.length-1;0<=g;g--){var S=i[g],A=S.instance,U=S.currentTarget;if(S=S.listener,A!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch($){br($)}s.currentTarget=null,c=A}else for(g=0;g<i.length;g++){if(S=i[g],A=S.instance,U=S.currentTarget,S=S.listener,A!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch($){br($)}s.currentTarget=null,c=A}}}}function Ee(e,t){var n=t[ms];n===void 0&&(n=t[ms]=new Set);var i=e+"__bubble";n.has(i)||(lp(t,e,2,!1),n.add(i))}function nc(e,t,n){var i=0;t&&(i|=4),lp(n,e,i,t)}var io="_reactListening"+Math.random().toString(36).slice(2);function ac(e){if(!e[io]){e[io]=!0,Jf.forEach(function(n){n!=="selectionchange"&&(rS.has(n)||nc(n,!1,e),nc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[io]||(t[io]=!0,nc("selectionchange",!1,t))}}function lp(e,t,n,i){switch(Mp(t)){case 2:var s=LS;break;case 8:s=zS;break;default:s=yc}n=s.bind(null,t,n,e),s=void 0,!ws||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),i?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function lc(e,t,n,i,s){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var S=i.stateNode.containerInfo;if(S===s)break;if(g===4)for(g=i.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;S!==null;){if(g=Ja(S),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){i=c=g;continue e}S=S.parentNode}}i=i.return}ud(function(){var U=c,$=xs(n),P=[];e:{var B=Ud.get(e);if(B!==void 0){var H=gr,te=e;switch(e){case"keypress":if(mr(n)===0)break e;case"keydown":case"keyup":H=W0;break;case"focusin":te="focus",H=As;break;case"focusout":te="blur",H=As;break;case"beforeblur":case"afterblur":H=As;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=dd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=$0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=nb;break;case Md:case Ld:case zd:H=q0;break;case kd:H=lb;break;case"scroll":case"scrollend":H=H0;break;case"wheel":H=rb;break;case"copy":case"cut":case"paste":H=P0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=md;break;case"toggle":case"beforetoggle":H=sb}var ce=(t&4)!==0,Ue=!ce&&(e==="scroll"||e==="scrollend"),M=ce?B!==null?B+"Capture":null:B;ce=[];for(var D=U,z;D!==null;){var q=D;if(z=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||z===null||M===null||(q=Il(D,M),q!=null&&ce.push(Di(D,q,z))),Ue)break;D=D.return}0<ce.length&&(B=new H(B,te,null,n,$),P.push({event:B,listeners:ce}))}}if((t&7)===0){e:{if(B=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",B&&n!==Ss&&(te=n.relatedTarget||n.fromElement)&&(Ja(te)||te[Fa]))break e;if((H||B)&&(B=$.window===$?$:(B=$.ownerDocument)?B.defaultView||B.parentWindow:window,H?(te=n.relatedTarget||n.toElement,H=U,te=te?Ja(te):null,te!==null&&(Ue=f(te),ce=te.tag,te!==Ue||ce!==5&&ce!==27&&ce!==6)&&(te=null)):(H=null,te=U),H!==te)){if(ce=dd,q="onMouseLeave",M="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(ce=md,q="onPointerLeave",M="onPointerEnter",D="pointer"),Ue=H==null?B:Jl(H),z=te==null?B:Jl(te),B=new ce(q,D+"leave",H,n,$),B.target=Ue,B.relatedTarget=z,q=null,Ja($)===U&&(ce=new ce(M,D+"enter",te,n,$),ce.target=z,ce.relatedTarget=Ue,q=ce),Ue=q,H&&te)t:{for(ce=oS,M=H,D=te,z=0,q=M;q;q=ce(q))z++;q=0;for(var oe=D;oe;oe=ce(oe))q++;for(;0<z-q;)M=ce(M),z--;for(;0<q-z;)D=ce(D),q--;for(;z--;){if(M===D||D!==null&&M===D.alternate){ce=M;break t}M=ce(M),D=ce(D)}ce=null}else ce=null;H!==null&&ip(P,B,H,ce,!1),te!==null&&Ue!==null&&ip(P,Ue,te,ce,!0)}}e:{if(B=U?Jl(U):window,H=B.nodeName&&B.nodeName.toLowerCase(),H==="select"||H==="input"&&B.type==="file")var _e=Ed;else if(Sd(B))if(wd)_e=yb;else{_e=gb;var ne=pb}else H=B.nodeName,!H||H.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?U&&bs(U.elementType)&&(_e=Ed):_e=vb;if(_e&&(_e=_e(e,U))){xd(P,_e,n,$);break e}ne&&ne(e,B,U),e==="focusout"&&U&&B.type==="number"&&U.memoizedProps.value!=null&&ys(B,"number",B.value)}switch(ne=U?Jl(U):window,e){case"focusin":(Sd(ne)||ne.contentEditable==="true")&&(rl=ne,Ms=U,ri=null);break;case"focusout":ri=Ms=rl=null;break;case"mousedown":Ls=!0;break;case"contextmenu":case"mouseup":case"dragend":Ls=!1,Dd(P,n,$);break;case"selectionchange":if(Sb)break;case"keydown":case"keyup":Dd(P,n,$)}var be;if(_s)e:{switch(e){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else il?yd(e,n)&&(Ce="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ce="onCompositionStart");Ce&&(pd&&n.locale!=="ko"&&(il||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&il&&(be=cd()):(Pn=$,Cs="value"in Pn?Pn.value:Pn.textContent,il=!0)),ne=ro(U,Ce),0<ne.length&&(Ce=new hd(Ce,e,null,n,$),P.push({event:Ce,listeners:ne}),be?Ce.data=be:(be=bd(n),be!==null&&(Ce.data=be)))),(be=cb?fb(e,n):db(e,n))&&(Ce=ro(U,"onBeforeInput"),0<Ce.length&&(ne=new hd("onBeforeInput","beforeinput",null,n,$),P.push({event:ne,listeners:Ce}),ne.data=be)),aS(P,e,U,n,$)}ap(P,t)})}function Di(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ro(e,t){for(var n=t+"Capture",i=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Il(e,n),s!=null&&i.unshift(Di(e,s,c)),s=Il(e,t),s!=null&&i.push(Di(e,s,c))),e.tag===3)return i;e=e.return}return[]}function oS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ip(e,t,n,i,s){for(var c=t._reactName,g=[];n!==null&&n!==i;){var S=n,A=S.alternate,U=S.stateNode;if(S=S.tag,A!==null&&A===i)break;S!==5&&S!==26&&S!==27||U===null||(A=U,s?(U=Il(n,c),U!=null&&g.unshift(Di(n,U,A))):s||(U=Il(n,c),U!=null&&g.push(Di(n,U,A)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var sS=/\r\n?/g,uS=/\u0000|\uFFFD/g;function rp(e){return(typeof e=="string"?e:""+e).replace(sS,`
|
|
180
|
-
`).replace(uS,"")}function op(e,t){return t=rp(t),rp(e)===t}function ke(e,t,n,i,s,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||nl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&nl(e,""+i);break;case"className":cr(e,"class",i);break;case"tabIndex":cr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":cr(e,n,i);break;case"style":od(e,i,c);break;case"data":if(t!=="object"){cr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=dr(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",s.name,s,null),ke(e,t,"formEncType",s.formEncType,s,null),ke(e,t,"formMethod",s.formMethod,s,null),ke(e,t,"formTarget",s.formTarget,s,null)):(ke(e,t,"encType",s.encType,s,null),ke(e,t,"method",s.method,s,null),ke(e,t,"target",s.target,s,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=dr(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=En);break;case"onScroll":i!=null&&Ee("scroll",e);break;case"onScrollEnd":i!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=dr(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),ur(e,"popover",i);break;case"xlinkActuate":xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":xn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":xn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":xn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":xn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ur(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=U0.get(n)||n,ur(e,n,i))}}function ic(e,t,n,i,s,c){switch(n){case"style":od(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(n=i.__html,n!=null){if(s.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof i=="string"?nl(e,i):(typeof i=="number"||typeof i=="bigint")&&nl(e,""+i);break;case"onScroll":i!=null&&Ee("scroll",e);break;case"onScrollEnd":i!=null&&Ee("scrollend",e);break;case"onClick":i!=null&&(e.onclick=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!If.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[vt]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,s);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):ur(e,n,i)}}}function ct(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var i=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var g=n[c];if(g!=null)switch(c){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ke(e,t,c,g,n,null)}}s&&ke(e,t,"srcSet",n.srcSet,n,null),i&&ke(e,t,"src",n.src,n,null);return;case"input":Ee("invalid",e);var S=c=g=s=null,A=null,U=null;for(i in n)if(n.hasOwnProperty(i)){var $=n[i];if($!=null)switch(i){case"name":s=$;break;case"type":g=$;break;case"checked":A=$;break;case"defaultChecked":U=$;break;case"value":c=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,t));break;default:ke(e,t,i,$,n,null)}}ad(e,c,S,A,U,g,s,!1);return;case"select":Ee("invalid",e),i=g=c=null;for(s in n)if(n.hasOwnProperty(s)&&(S=n[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":g=S;break;case"multiple":i=S;default:ke(e,t,s,S,n,null)}t=c,n=g,e.multiple=!!i,t!=null?tl(e,!!i,t,!1):n!=null&&tl(e,!!i,n,!0);return;case"textarea":Ee("invalid",e),c=s=i=null;for(g in n)if(n.hasOwnProperty(g)&&(S=n[g],S!=null))switch(g){case"value":i=S;break;case"defaultValue":s=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(o(91));break;default:ke(e,t,g,S,n,null)}id(e,i,s,c);return;case"option":for(A in n)if(n.hasOwnProperty(A)&&(i=n[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:ke(e,t,A,i,n,null)}return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(i=0;i<Ni.length;i++)Ee(Ni[i],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("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(U in n)if(n.hasOwnProperty(U)&&(i=n[U],i!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ke(e,t,U,i,n,null)}return;default:if(bs(t)){for($ in n)n.hasOwnProperty($)&&(i=n[$],i!==void 0&&ic(e,t,$,i,n,void 0));return}}for(S in n)n.hasOwnProperty(S)&&(i=n[S],i!=null&&ke(e,t,S,i,n,null))}function cS(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,g=null,S=null,A=null,U=null,$=null;for(H in n){var P=n[H];if(n.hasOwnProperty(H)&&P!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":A=P;default:i.hasOwnProperty(H)||ke(e,t,H,null,i,P)}}for(var B in i){var H=i[B];if(P=n[B],i.hasOwnProperty(B)&&(H!=null||P!=null))switch(B){case"type":c=H;break;case"name":s=H;break;case"checked":U=H;break;case"defaultChecked":$=H;break;case"value":g=H;break;case"defaultValue":S=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:H!==P&&ke(e,t,B,H,i,P)}}vs(e,g,S,A,U,$,c,s);return;case"select":H=g=S=B=null;for(c in n)if(A=n[c],n.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":H=A;default:i.hasOwnProperty(c)||ke(e,t,c,null,i,A)}for(s in i)if(c=i[s],A=n[s],i.hasOwnProperty(s)&&(c!=null||A!=null))switch(s){case"value":B=c;break;case"defaultValue":S=c;break;case"multiple":g=c;default:c!==A&&ke(e,t,s,c,i,A)}t=S,n=g,i=H,B!=null?tl(e,!!n,B,!1):!!i!=!!n&&(t!=null?tl(e,!!n,t,!0):tl(e,!!n,n?[]:"",!1));return;case"textarea":H=B=null;for(S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:ke(e,t,S,null,i,s)}for(g in i)if(s=i[g],c=n[g],i.hasOwnProperty(g)&&(s!=null||c!=null))switch(g){case"value":B=s;break;case"defaultValue":H=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==c&&ke(e,t,g,s,i,c)}ld(e,B,H);return;case"option":for(var te in n)if(B=n[te],n.hasOwnProperty(te)&&B!=null&&!i.hasOwnProperty(te))switch(te){case"selected":e.selected=!1;break;default:ke(e,t,te,null,i,B)}for(A in i)if(B=i[A],H=n[A],i.hasOwnProperty(A)&&B!==H&&(B!=null||H!=null))switch(A){case"selected":e.selected=B&&typeof B!="function"&&typeof B!="symbol";break;default:ke(e,t,A,B,i,H)}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 ce in n)B=n[ce],n.hasOwnProperty(ce)&&B!=null&&!i.hasOwnProperty(ce)&&ke(e,t,ce,null,i,B);for(U in i)if(B=i[U],H=n[U],i.hasOwnProperty(U)&&B!==H&&(B!=null||H!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,t));break;default:ke(e,t,U,B,i,H)}return;default:if(bs(t)){for(var Ue in n)B=n[Ue],n.hasOwnProperty(Ue)&&B!==void 0&&!i.hasOwnProperty(Ue)&&ic(e,t,Ue,void 0,i,B);for($ in i)B=i[$],H=n[$],!i.hasOwnProperty($)||B===H||B===void 0&&H===void 0||ic(e,t,$,B,i,H);return}}for(var M in n)B=n[M],n.hasOwnProperty(M)&&B!=null&&!i.hasOwnProperty(M)&&ke(e,t,M,null,i,B);for(P in i)B=i[P],H=n[P],!i.hasOwnProperty(P)||B===H||B==null&&H==null||ke(e,t,P,B,i,H)}function sp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var s=n[i],c=s.transferSize,g=s.initiatorType,S=s.duration;if(c&&S&&sp(g)){for(g=0,S=s.responseEnd,i+=1;i<n.length;i++){var A=n[i],U=A.startTime;if(U>S)break;var $=A.transferSize,P=A.initiatorType;$&&sp(P)&&(A=A.responseEnd,g+=$*(A<S?1:(S-U)/(A-U)))}if(--i,t+=8*(c+g)/(s.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 rc=null,oc=null;function oo(e){return e.nodeType===9?e:e.ownerDocument}function up(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 cp(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 sc(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 uc=null;function dS(){var e=window.event;return e&&e.type==="popstate"?e===uc?!1:(uc=e,!0):(uc=null,!1)}var fp=typeof setTimeout=="function"?setTimeout:void 0,hS=typeof clearTimeout=="function"?clearTimeout:void 0,dp=typeof Promise=="function"?Promise:void 0,mS=typeof queueMicrotask=="function"?queueMicrotask:typeof dp<"u"?function(e){return dp.resolve(null).then(e).catch(pS)}:fp;function pS(e){setTimeout(function(){throw e})}function ua(e){return e==="head"}function hp(e,t){var n=t,i=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(s),Ml(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")ji(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ji(n);for(var c=n.firstChild;c;){var g=c.nextSibling,S=c.nodeName;c[Fl]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=g}}else n==="body"&&ji(e.ownerDocument.body);n=s}while(n);Ml(t)}function mp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function cc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cc(n),ps(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function gS(e,t,n,i){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Fl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function vS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Jt(e.nextSibling),e===null))return null;return e}function pp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Jt(e.nextSibling),e===null))return null;return e}function fc(e){return e.data==="$?"||e.data==="$~"}function dc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Jt(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 hc=null;function gp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Jt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function vp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function yp(e,t,n){switch(t=oo(n),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 ji(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ps(e)}var It=new Map,bp=new Set;function so(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Bn=K.d;K.d={f:bS,r:SS,D:xS,C:ES,L:wS,m:CS,X:TS,S:RS,M:AS};function bS(){var e=Bn.f(),t=Wr();return e||t}function SS(e){var t=Ia(e);t!==null&&t.tag===5&&t.type==="form"?kh(t):Bn.r(e)}var Nl=typeof document>"u"?null:document;function Sp(e,t,n){var i=Nl;if(i&&typeof t=="string"&&t){var s=qt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),bp.has(s)||(bp.add(s),e={rel:e,crossOrigin:n,href:t},i.querySelector(s)===null&&(t=i.createElement("link"),ct(t,"link",e),lt(t),i.head.appendChild(t)))}}function xS(e){Bn.D(e),Sp("dns-prefetch",e,null)}function ES(e,t){Bn.C(e,t),Sp("preconnect",e,t)}function wS(e,t,n){Bn.L(e,t,n);var i=Nl;if(i&&e&&t){var s='link[rel="preload"][as="'+qt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+qt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+qt(n.imageSizes)+'"]')):s+='[href="'+qt(e)+'"]';var c=s;switch(t){case"style":c=Dl(e);break;case"script":c=jl(e)}It.has(c)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),It.set(c,e),i.querySelector(s)!==null||t==="style"&&i.querySelector(Mi(c))||t==="script"&&i.querySelector(Li(c))||(t=i.createElement("link"),ct(t,"link",e),lt(t),i.head.appendChild(t)))}}function CS(e,t){Bn.m(e,t);var n=Nl;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+qt(i)+'"][href="'+qt(e)+'"]',c=s;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=jl(e)}if(!It.has(c)&&(e=v({rel:"modulepreload",href:e},t),It.set(c,e),n.querySelector(s)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Li(c)))return}i=n.createElement("link"),ct(i,"link",e),lt(i),n.head.appendChild(i)}}}function RS(e,t,n){Bn.S(e,t,n);var i=Nl;if(i&&e){var s=Wa(i).hoistableStyles,c=Dl(e);t=t||"default";var g=s.get(c);if(!g){var S={loading:0,preload:null};if(g=i.querySelector(Mi(c)))S.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=It.get(c))&&mc(e,n);var A=g=i.createElement("link");lt(A),ct(A,"link",e),A._p=new Promise(function(U,$){A.onload=U,A.onerror=$}),A.addEventListener("load",function(){S.loading|=1}),A.addEventListener("error",function(){S.loading|=2}),S.loading|=4,uo(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:S},s.set(c,g)}}}function TS(e,t){Bn.X(e,t);var n=Nl;if(n&&e){var i=Wa(n).hoistableScripts,s=jl(e),c=i.get(s);c||(c=n.querySelector(Li(s)),c||(e=v({src:e,async:!0},t),(t=It.get(s))&&pc(e,t),c=n.createElement("script"),lt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}function AS(e,t){Bn.M(e,t);var n=Nl;if(n&&e){var i=Wa(n).hoistableScripts,s=jl(e),c=i.get(s);c||(c=n.querySelector(Li(s)),c||(e=v({src:e,async:!0,type:"module"},t),(t=It.get(s))&&pc(e,t),c=n.createElement("script"),lt(c),ct(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(s,c))}}function xp(e,t,n,i){var s=(s=pe.current)?so(s):null;if(!s)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Dl(n.href),n=Wa(s).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Dl(n.href);var c=Wa(s).hoistableStyles,g=c.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=s.querySelector(Mi(e)))&&!c._p&&(g.instance=c,g.state.loading=5),It.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},It.set(e,n),c||OS(s,e,n,g.state))),t&&i===null)throw Error(o(528,""));return g}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=jl(n),n=Wa(s).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Dl(e){return'href="'+qt(e)+'"'}function Mi(e){return'link[rel="stylesheet"]['+e+"]"}function Ep(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function OS(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),ct(t,"link",n),lt(t),e.head.appendChild(t))}function jl(e){return'[src="'+qt(e)+'"]'}function Li(e){return"script[async]"+e}function wp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+qt(n.href)+'"]');if(i)return t.instance=i,lt(i),i;var s=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),lt(i),ct(i,"style",s),uo(i,n.precedence,e),t.instance=i;case"stylesheet":s=Dl(n.href);var c=e.querySelector(Mi(s));if(c)return t.state.loading|=4,t.instance=c,lt(c),c;i=Ep(n),(s=It.get(s))&&mc(i,s),c=(e.ownerDocument||e).createElement("link"),lt(c);var g=c;return g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),ct(c,"link",i),t.state.loading|=4,uo(c,n.precedence,e),t.instance=c;case"script":return c=jl(n.src),(s=e.querySelector(Li(c)))?(t.instance=s,lt(s),s):(i=n,(s=It.get(c))&&(i=v({},n),pc(i,s)),e=e.ownerDocument||e,s=e.createElement("script"),lt(s),ct(s,"link",i),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,uo(i,n.precedence,e));return t.instance}function uo(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=i.length?i[i.length-1]:null,c=s,g=0;g<i.length;g++){var S=i[g];if(S.dataset.precedence===t)c=S;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function pc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var co=null;function Cp(e,t,n){if(co===null){var i=new Map,s=co=new Map;s.set(n,i)}else s=co,i=s.get(n),i||(i=new Map,s.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[Fl]||c[rt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var S=i.get(g);S?S.push(c):i.set(g,[c])}}return i}function Rp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function _S(e,t,n){if(n===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 Tp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function NS(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Dl(i.href),c=t.querySelector(Mi(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=fo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,lt(c);return}c=t.ownerDocument||t,i=Ep(i),(s=It.get(s))&&mc(i,s),c=c.createElement("link"),lt(c);var g=c;g._p=new Promise(function(S,A){g.onload=S,g.onerror=A}),ct(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=fo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var gc=0;function DS(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&gc===0&&(gc=62500*fS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>gc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(s)}}:null}function fo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ho=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ho=new Map,t.forEach(jS,e),ho=null,fo.call(e))}function jS(e,t){if(!(t.state.loading&4)){var n=ho.get(e);if(n)var i=n.get(null);else{n=new Map,ho.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var g=s[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),i=g)}i&&n.set(null,i)}s=t.instance,g=s.getAttribute("data-precedence"),c=n.get(g)||i,c===i&&n.set(null,s),n.set(g,s),this.count++,i=fo.bind(this),s.addEventListener("load",i),s.addEventListener("error",i),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var zi={$$typeof:_,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function MS(e,t,n,i,s,c,g,S,A){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=fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fs(0),this.hiddenUpdates=fs(null),this.identifierPrefix=i,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function Ap(e,t,n,i,s,c,g,S,A,U,$,P){return e=new MS(e,t,n,g,A,U,$,P,S),t=1,c===!0&&(t|=24),c=_t(3,null,null,t),e.current=c,c.stateNode=e,t=Zs(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Ws(c),e}function Op(e){return e?(e=ul,e):ul}function _p(e,t,n,i,s,c){s=Op(s),i.context===null?i.context=s:i.pendingContext=s,i=In(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=Wn(e,i,t),n!==null&&(wt(n,e,t),hi(n,e,t))}function Np(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vc(e,t){Np(e,t),(e=e.alternate)&&Np(e,t)}function Dp(e){if(e.tag===13||e.tag===31){var t=Oa(e,67108864);t!==null&&wt(t,e,67108864),vc(e,67108864)}}function jp(e){if(e.tag===13||e.tag===31){var t=Lt();t=ds(t);var n=Oa(e,t);n!==null&&wt(n,e,t),vc(e,t)}}var po=!0;function LS(e,t,n,i){var s=L.T;L.T=null;var c=K.p;try{K.p=2,yc(e,t,n,i)}finally{K.p=c,L.T=s}}function zS(e,t,n,i){var s=L.T;L.T=null;var c=K.p;try{K.p=8,yc(e,t,n,i)}finally{K.p=c,L.T=s}}function yc(e,t,n,i){if(po){var s=bc(i);if(s===null)lc(e,t,i,go,n),Lp(e,i);else if(US(s,e,t,n,i))i.stopPropagation();else if(Lp(e,i),t&4&&-1<kS.indexOf(e)){for(;s!==null;){var c=Ia(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=wa(c.pendingLanes);if(g!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;g;){var A=1<<31-At(g);S.entanglements[1]|=A,g&=~A}dn(c),(je&6)===0&&(Jr=Rt()+500,_i(0))}}break;case 31:case 13:S=Oa(c,2),S!==null&&wt(S,c,2),Wr(),vc(c,2)}if(c=bc(i),c===null&&lc(e,t,i,go,n),c===s)break;s=c}s!==null&&i.stopPropagation()}else lc(e,t,i,null,n)}}function bc(e){return e=xs(e),Sc(e)}var go=null;function Sc(e){if(go=null,e=Ja(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=h(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return go=e,null}function Mp(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(x0()){case $f:return 2;case Gf:return 8;case lr:case E0:return 32;case Yf:return 268435456;default:return 32}default:return 32}}var xc=!1,ca=null,fa=null,da=null,ki=new Map,Ui=new Map,ha=[],kS="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 Lp(e,t){switch(e){case"focusin":case"focusout":ca=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":ki.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ui.delete(t.pointerId)}}function Bi(e,t,n,i,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Ia(t),t!==null&&Dp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function US(e,t,n,i,s){switch(t){case"focusin":return ca=Bi(ca,e,t,n,i,s),!0;case"dragenter":return fa=Bi(fa,e,t,n,i,s),!0;case"mouseover":return da=Bi(da,e,t,n,i,s),!0;case"pointerover":var c=s.pointerId;return ki.set(c,Bi(ki.get(c)||null,e,t,n,i,s)),!0;case"gotpointercapture":return c=s.pointerId,Ui.set(c,Bi(Ui.get(c)||null,e,t,n,i,s)),!0}return!1}function zp(e){var t=Ja(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Zf(e.priority,function(){jp(n)});return}}else if(t===31){if(t=h(n),t!==null){e.blockedOn=t,Zf(e.priority,function(){jp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function vo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bc(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);Ss=i,n.target.dispatchEvent(i),Ss=null}else return t=Ia(n),t!==null&&Dp(t),e.blockedOn=n,!1;t.shift()}return!0}function kp(e,t,n){vo(e)&&n.delete(t)}function BS(){xc=!1,ca!==null&&vo(ca)&&(ca=null),fa!==null&&vo(fa)&&(fa=null),da!==null&&vo(da)&&(da=null),ki.forEach(kp),Ui.forEach(kp)}function yo(e,t){e.blockedOn===t&&(e.blockedOn=null,xc||(xc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,BS)))}var bo=null;function Up(e){bo!==e&&(bo=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){bo===e&&(bo=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],s=e[t+2];if(typeof i!="function"){if(Sc(i||n)===null)continue;break}var c=Ia(n);c!==null&&(e.splice(t,3),t-=3,bu(c,{pending:!0,data:s,method:n.method,action:i},i,s))}}))}function Ml(e){function t(A){return yo(A,e)}ca!==null&&yo(ca,e),fa!==null&&yo(fa,e),da!==null&&yo(da,e),ki.forEach(t),Ui.forEach(t);for(var n=0;n<ha.length;n++){var i=ha[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<ha.length&&(n=ha[0],n.blockedOn===null);)zp(n),n.blockedOn===null&&ha.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var s=n[i],c=n[i+1],g=s[vt]||null;if(typeof c=="function")g||Up(n);else if(g){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,g=c[vt]||null)S=g.formAction;else if(Sc(s)!==null)continue}else S=g.action;typeof S=="function"?n[i+1]=S:(n.splice(i,3),i-=3),Up(n)}}}function Bp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(g){return s=g})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Ec(e){this._internalRoot=e}So.prototype.render=Ec.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,i=Lt();_p(n,i,e,t,null,null)},So.prototype.unmount=Ec.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_p(e.current,2,null,e,null,null),Wr(),t[Fa]=null}};function So(e){this._internalRoot=e}So.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qf();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ha.length&&t!==0&&t<ha[n].priority;n++);ha.splice(n,0,e),n===0&&zp(e)}};var Hp=l.version;if(Hp!=="19.2.5")throw Error(o(527,Hp,"19.2.5"));K.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=p(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var HS={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xo.isDisabled&&xo.supportsFiber)try{Xl=xo.inject(HS),Tt=xo}catch{}}return Vi.createRoot=function(e,t){if(!u(e))throw Error(o(299));var n=!1,i="",s=Ph,c=Xh,g=Qh;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=Ap(e,1,!1,null,null,n,i,null,s,c,g,Bp),e[Fa]=t.current,ac(e),new Ec(t)},Vi.hydrateRoot=function(e,t,n){if(!u(e))throw Error(o(299));var i=!1,s="",c=Ph,g=Xh,S=Qh,A=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(S=n.onRecoverableError),n.formState!==void 0&&(A=n.formState)),t=Ap(e,1,!0,t,n??null,i,s,A,c,g,S,Bp),t.context=Op(null),n=t.current,i=Lt(),i=ds(i),s=In(i),s.callback=null,Wn(n,s,i),n=i,t.current.lanes=n,Zl(t,n),dn(t),e[Fa]=t.current,ac(e),new So(t)},Vi.version="19.2.5",Vi}var Jp;function V1(){if(Jp)return Rc.exports;Jp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),Rc.exports=H1(),Rc.exports}var $1=V1();const G1=mf($1);/**
|
|
181
|
-
* react-router v7.14.2
|
|
182
|
-
*
|
|
183
|
-
* Copyright (c) Remix Software Inc.
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the MIT license found in the
|
|
186
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
187
|
-
*
|
|
188
|
-
* @license MIT
|
|
189
|
-
*/var Ip="popstate";function Wp(a){return typeof a=="object"&&a!=null&&"pathname"in a&&"search"in a&&"hash"in a&&"state"in a&&"key"in a}function Y1(a={}){function l(u,f){let{pathname:d="/",search:h="",hash:m=""}=Za(u.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),Qc("",{pathname:d,search:h,hash:m},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function r(u,f){let d=u.document.querySelector("base"),h="";if(d&&d.getAttribute("href")){let m=u.location.href,p=m.indexOf("#");h=p===-1?m:m.slice(0,p)}return h+"#"+(typeof f=="string"?f:Xi(f))}function o(u,f){Ht(u.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return K1(l,r,o,a)}function Ye(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function Ht(a,l){if(!a){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function q1(){return Math.random().toString(36).substring(2,10)}function eg(a,l){return{usr:a.state,key:a.key,idx:l,masked:a.unstable_mask?{pathname:a.pathname,search:a.search,hash:a.hash}:void 0}}function Qc(a,l,r=null,o,u){return{pathname:typeof a=="string"?a:a.pathname,search:"",hash:"",...typeof l=="string"?Za(l):l,state:r,key:l&&l.key||o||q1(),unstable_mask:u}}function Xi({pathname:a="/",search:l="",hash:r=""}){return l&&l!=="?"&&(a+=l.charAt(0)==="?"?l:"?"+l),r&&r!=="#"&&(a+=r.charAt(0)==="#"?r:"#"+r),a}function Za(a){let l={};if(a){let r=a.indexOf("#");r>=0&&(l.hash=a.substring(r),a=a.substring(0,r));let o=a.indexOf("?");o>=0&&(l.search=a.substring(o),a=a.substring(0,o)),a&&(l.pathname=a)}return l}function K1(a,l,r,o={}){let{window:u=document.defaultView,v5Compat:f=!1}=o,d=u.history,h="POP",m=null,p=y();p==null&&(p=0,d.replaceState({...d.state,idx:p},""));function y(){return(d.state||{idx:null}).idx}function v(){h="POP";let T=y(),N=T==null?null:T-p;p=T,m&&m({action:h,location:x.location,delta:N})}function E(T,N){h="PUSH";let j=Wp(T)?T:Qc(x.location,T,N);r&&r(j,T),p=y()+1;let _=eg(j,p),k=x.createHref(j.unstable_mask||j);try{d.pushState(_,"",k)}catch(G){if(G instanceof DOMException&&G.name==="DataCloneError")throw G;u.location.assign(k)}f&&m&&m({action:h,location:x.location,delta:1})}function R(T,N){h="REPLACE";let j=Wp(T)?T:Qc(x.location,T,N);r&&r(j,T),p=y();let _=eg(j,p),k=x.createHref(j.unstable_mask||j);d.replaceState(_,"",k),f&&m&&m({action:h,location:x.location,delta:0})}function w(T){return P1(T)}let x={get action(){return h},get location(){return a(u,d)},listen(T){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(Ip,v),m=T,()=>{u.removeEventListener(Ip,v),m=null}},createHref(T){return l(u,T)},createURL:w,encodeLocation(T){let N=w(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:E,replace:R,go(T){return d.go(T)}};return x}function P1(a,l=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ye(r,"No window.location.(origin|href) available to create URL");let o=typeof a=="string"?a:Xi(a);return o=o.replace(/ $/,"%20"),!l&&o.startsWith("//")&&(o=r+o),new URL(o,r)}function hv(a,l,r="/"){return X1(a,l,r,!1)}function X1(a,l,r,o){let u=typeof l=="string"?Za(l):l,f=Hn(u.pathname||"/",r);if(f==null)return null;let d=mv(a);Q1(d);let h=null;for(let m=0;h==null&&m<d.length;++m){let p=ix(f);h=ax(d[m],p,o)}return h}function mv(a,l=[],r=[],o="",u=!1){let f=(d,h,m=u,p)=>{let y={relativePath:p===void 0?d.path||"":p,caseSensitive:d.caseSensitive===!0,childrenIndex:h,route:d};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(o)&&m)return;Ye(y.relativePath.startsWith(o),`Absolute route path "${y.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(o.length)}let v=rn([o,y.relativePath]),E=r.concat(y);d.children&&d.children.length>0&&(Ye(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),mv(d.children,l,E,v,m)),!(d.path==null&&!d.index)&&l.push({path:v,score:tx(v,d.index),routesMeta:E})};return a.forEach((d,h)=>{var m;if(d.path===""||!((m=d.path)!=null&&m.includes("?")))f(d,h);else for(let p of pv(d.path))f(d,h,!0,p)}),l}function pv(a){let l=a.split("/");if(l.length===0)return[];let[r,...o]=l,u=r.endsWith("?"),f=r.replace(/\?$/,"");if(o.length===0)return u?[f,""]:[f];let d=pv(o.join("/")),h=[];return h.push(...d.map(m=>m===""?f:[f,m].join("/"))),u&&h.push(...d),h.map(m=>a.startsWith("/")&&m===""?"/":m)}function Q1(a){a.sort((l,r)=>l.score!==r.score?r.score-l.score:nx(l.routesMeta.map(o=>o.childrenIndex),r.routesMeta.map(o=>o.childrenIndex)))}var Z1=/^:[\w-]+$/,F1=3,J1=2,I1=1,W1=10,ex=-2,tg=a=>a==="*";function tx(a,l){let r=a.split("/"),o=r.length;return r.some(tg)&&(o+=ex),l&&(o+=J1),r.filter(u=>!tg(u)).reduce((u,f)=>u+(Z1.test(f)?F1:f===""?I1:W1),o)}function nx(a,l){return a.length===l.length&&a.slice(0,-1).every((o,u)=>o===l[u])?a[a.length-1]-l[l.length-1]:0}function ax(a,l,r=!1){let{routesMeta:o}=a,u={},f="/",d=[];for(let h=0;h<o.length;++h){let m=o[h],p=h===o.length-1,y=f==="/"?l:l.slice(f.length)||"/",v=Lo({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},y),E=m.route;if(!v&&p&&r&&!o[o.length-1].route.index&&(v=Lo({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},y)),!v)return null;Object.assign(u,v.params),d.push({params:u,pathname:rn([f,v.pathname]),pathnameBase:ux(rn([f,v.pathnameBase])),route:E}),v.pathnameBase!=="/"&&(f=rn([f,v.pathnameBase]))}return d}function Lo(a,l){typeof a=="string"&&(a={path:a,caseSensitive:!1,end:!0});let[r,o]=lx(a.path,a.caseSensitive,a.end),u=l.match(r);if(!u)return null;let f=u[0],d=f.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:o.reduce((p,{paramName:y,isOptional:v},E)=>{if(y==="*"){let w=h[E]||"";d=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const R=h[E];return v&&!R?p[y]=void 0:p[y]=(R||"").replace(/%2F/g,"/"),p},{}),pathname:f,pathnameBase:d,pattern:a}}function lx(a,l=!1,r=!0){Ht(a==="*"||!a.endsWith("*")||a.endsWith("/*"),`Route path "${a}" will be treated as if it were "${a.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${a.replace(/\*$/,"/*")}".`);let o=[],u="^"+a.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,m,p,y)=>{if(o.push({paramName:h,isOptional:m!=null}),m){let v=y.charAt(p+d.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return a.endsWith("*")?(o.push({paramName:"*"}),u+=a==="*"||a==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?u+="\\/*$":a!==""&&a!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),o]}function ix(a){try{return a.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Ht(!1,`The URL path "${a}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),a}}function Hn(a,l){if(l==="/")return a;if(!a.toLowerCase().startsWith(l.toLowerCase()))return null;let r=l.endsWith("/")?l.length-1:l.length,o=a.charAt(r);return o&&o!=="/"?null:a.slice(r)||"/"}var rx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ox(a,l="/"){let{pathname:r,search:o="",hash:u=""}=typeof a=="string"?Za(a):a,f;return r?(r=gv(r),r.startsWith("/")?f=ng(r.substring(1),"/"):f=ng(r,l)):f=l,{pathname:f,search:cx(o),hash:fx(u)}}function ng(a,l){let r=zo(l).split("/");return a.split("/").forEach(u=>{u===".."?r.length>1&&r.pop():u!=="."&&r.push(u)}),r.length>1?r.join("/"):"/"}function _c(a,l,r,o){return`Cannot include a '${a}' 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 sx(a){return a.filter((l,r)=>r===0||l.route.path&&l.route.path.length>0)}function vf(a){let l=sx(a);return l.map((r,o)=>o===l.length-1?r.pathname:r.pathnameBase)}function Qo(a,l,r,o=!1){let u;typeof a=="string"?u=Za(a):(u={...a},Ye(!u.pathname||!u.pathname.includes("?"),_c("?","pathname","search",u)),Ye(!u.pathname||!u.pathname.includes("#"),_c("#","pathname","hash",u)),Ye(!u.search||!u.search.includes("#"),_c("#","search","hash",u)));let f=a===""||u.pathname==="",d=f?"/":u.pathname,h;if(d==null)h=r;else{let v=l.length-1;if(!o&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),v-=1;u.pathname=E.join("/")}h=v>=0?l[v]:"/"}let m=ox(u,h),p=d&&d!=="/"&&d.endsWith("/"),y=(f||d===".")&&r.endsWith("/");return!m.pathname.endsWith("/")&&(p||y)&&(m.pathname+="/"),m}var gv=a=>a.replace(/\/\/+/g,"/"),rn=a=>gv(a.join("/")),zo=a=>a.replace(/\/+$/,""),ux=a=>zo(a).replace(/^\/*/,"/"),cx=a=>!a||a==="?"?"":a.startsWith("?")?a:"?"+a,fx=a=>!a||a==="#"?"":a.startsWith("#")?a:"#"+a,dx=class{constructor(a,l,r,o=!1){this.status=a,this.statusText=l||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function hx(a){return a!=null&&typeof a.status=="number"&&typeof a.statusText=="string"&&typeof a.internal=="boolean"&&"data"in a}function mx(a){let l=a.map(r=>r.route.path).filter(Boolean);return rn(l)||"/"}var vv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function yv(a,l){let r=a;if(typeof r!="string"||!rx.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let o=r,u=!1;if(vv)try{let f=new URL(window.location.href),d=r.startsWith("//")?new URL(f.protocol+r):new URL(r),h=Hn(d.pathname,l);d.origin===f.origin&&h!=null?r=h+d.search+d.hash:u=!0}catch{Ht(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:o,isExternal:u,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var bv=["POST","PUT","PATCH","DELETE"];new Set(bv);var px=["GET",...bv];new Set(px);var Gl=b.createContext(null);Gl.displayName="DataRouter";var Zo=b.createContext(null);Zo.displayName="DataRouterState";var Sv=b.createContext(!1);function gx(){return b.useContext(Sv)}var xv=b.createContext({isTransitioning:!1});xv.displayName="ViewTransition";var vx=b.createContext(new Map);vx.displayName="Fetchers";var yx=b.createContext(null);yx.displayName="Await";var $t=b.createContext(null);$t.displayName="Navigation";var Wi=b.createContext(null);Wi.displayName="Location";var Wt=b.createContext({outlet:null,matches:[],isDataRoute:!1});Wt.displayName="Route";var yf=b.createContext(null);yf.displayName="RouteError";var Ev="REACT_ROUTER_ERROR",bx="REDIRECT",Sx="ROUTE_ERROR_RESPONSE";function xx(a){if(a.startsWith(`${Ev}:${bx}:{`))try{let l=JSON.parse(a.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 Ex(a){if(a.startsWith(`${Ev}:${Sx}:{`))try{let l=JSON.parse(a.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new dx(l.status,l.statusText,l.data)}catch{}}function wx(a,{relative:l}={}){Ye(Yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:o}=b.useContext($t),{hash:u,pathname:f,search:d}=er(a,{relative:l}),h=f;return r!=="/"&&(h=f==="/"?r:rn([r,f])),o.createHref({pathname:h,search:d,hash:u})}function Yl(){return b.useContext(Wi)!=null}function en(){return Ye(Yl(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Wi).location}var wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cv(a){b.useContext($t).static||b.useLayoutEffect(a)}function Fo(){let{isDataRoute:a}=b.useContext(Wt);return a?Bx():Cx()}function Cx(){Ye(Yl(),"useNavigate() may be used only in the context of a <Router> component.");let a=b.useContext(Gl),{basename:l,navigator:r}=b.useContext($t),{matches:o}=b.useContext(Wt),{pathname:u}=en(),f=JSON.stringify(vf(o)),d=b.useRef(!1);return Cv(()=>{d.current=!0}),b.useCallback((m,p={})=>{if(Ht(d.current,wv),!d.current)return;if(typeof m=="number"){r.go(m);return}let y=Qo(m,JSON.parse(f),u,p.relative==="path");a==null&&l!=="/"&&(y.pathname=y.pathname==="/"?l:rn([l,y.pathname])),(p.replace?r.replace:r.push)(y,p.state,p)},[l,r,f,u,a])}var Rx=b.createContext(null);function Tx(a){let l=b.useContext(Wt).outlet;return b.useMemo(()=>l&&b.createElement(Rx.Provider,{value:a},l),[l,a])}function Rv(){let{matches:a}=b.useContext(Wt),l=a[a.length-1];return(l==null?void 0:l.params)??{}}function er(a,{relative:l}={}){let{matches:r}=b.useContext(Wt),{pathname:o}=en(),u=JSON.stringify(vf(r));return b.useMemo(()=>Qo(a,JSON.parse(u),o,l==="path"),[a,u,o,l])}function Ax(a,l){return Tv(a,l)}function Tv(a,l,r){var T;Ye(Yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext($t),{matches:u}=b.useContext(Wt),f=u[u.length-1],d=f?f.params:{},h=f?f.pathname:"/",m=f?f.pathnameBase:"/",p=f&&f.route;{let N=p&&p.path||"";Ov(h,!p||N.endsWith("*")||N.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${N}">) 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.
|
|
190
|
-
|
|
191
|
-
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let y=en(),v;if(l){let N=typeof l=="string"?Za(l):l;Ye(m==="/"||((T=N.pathname)==null?void 0:T.startsWith(m)),`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 "${m}" but pathname "${N.pathname}" was given in the \`location\` prop.`),v=N}else v=y;let E=v.pathname||"/",R=E;if(m!=="/"){let N=m.replace(/^\//,"").split("/");R="/"+E.replace(/^\//,"").split("/").slice(N.length).join("/")}let w=hv(a,{pathname:R});Ht(p||w!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Ht(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.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 x=jx(w&&w.map(N=>Object.assign({},N,{params:Object.assign({},d,N.params),pathname:rn([m,o.encodeLocation?o.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?m:rn([m,o.encodeLocation?o.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),u,r);return l&&x?b.createElement(Wi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},x):x}function Ox(){let a=Ux(),l=hx(a)?`${a.status} ${a.statusText}`:a instanceof Error?a.message:JSON.stringify(a),r=a instanceof Error?a.stack:null,o="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:o},f={padding:"2px 4px",backgroundColor:o},d=null;return console.error("Error handled by React Router default ErrorBoundary:",a),d=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:f},"ErrorBoundary")," or"," ",b.createElement("code",{style:f},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},l),r?b.createElement("pre",{style:u},r):null,d)}var _x=b.createElement(Ox,null),Av=class extends b.Component{constructor(a){super(a),this.state={location:a.location,revalidation:a.revalidation,error:a.error}}static getDerivedStateFromError(a){return{error:a}}static getDerivedStateFromProps(a,l){return l.location!==a.location||l.revalidation!=="idle"&&a.revalidation==="idle"?{error:a.error,location:a.location,revalidation:a.revalidation}:{error:a.error!==void 0?a.error:l.error,location:l.location,revalidation:a.revalidation||l.revalidation}}componentDidCatch(a,l){this.props.onError?this.props.onError(a,l):console.error("React Router caught the following error during render",a)}render(){let a=this.state.error;if(this.context&&typeof a=="object"&&a&&"digest"in a&&typeof a.digest=="string"){const r=Ex(a.digest);r&&(a=r)}let l=a!==void 0?b.createElement(Wt.Provider,{value:this.props.routeContext},b.createElement(yf.Provider,{value:a,children:this.props.component})):this.props.children;return this.context?b.createElement(Nx,{error:a},l):l}};Av.contextType=Sv;var Nc=new WeakMap;function Nx({children:a,error:l}){let{basename:r}=b.useContext($t);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let o=xx(l.digest);if(o){let u=Nc.get(l);if(u)throw u;let f=yv(o.location,r);if(vv&&!Nc.get(l))if(f.isExternal||o.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:o.replace}));throw Nc.set(l,d),d}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return a}function Dx({routeContext:a,match:l,children:r}){let o=b.useContext(Gl);return o&&o.static&&o.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=l.route.id),b.createElement(Wt.Provider,{value:a},r)}function jx(a,l=[],r){let o=r==null?void 0:r.state;if(a==null){if(!o)return null;if(o.errors)a=o.matches;else if(l.length===0&&!o.initialized&&o.matches.length>0)a=o.matches;else return null}let u=a,f=o==null?void 0:o.errors;if(f!=null){let y=u.findIndex(v=>v.route.id&&(f==null?void 0:f[v.route.id])!==void 0);Ye(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),u=u.slice(0,Math.min(u.length,y+1))}let d=!1,h=-1;if(r&&o){d=o.renderFallback;for(let y=0;y<u.length;y++){let v=u[y];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=y),v.route.id){let{loaderData:E,errors:R}=o,w=v.route.loader&&!E.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||w){r.isStatic&&(d=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let m=r==null?void 0:r.onError,p=o&&m?(y,v)=>{var E,R;m(y,{location:o.location,params:((R=(E=o.matches)==null?void 0:E[0])==null?void 0:R.params)??{},unstable_pattern:mx(o.matches),errorInfo:v})}:void 0;return u.reduceRight((y,v,E)=>{let R,w=!1,x=null,T=null;o&&(R=f&&v.route.id?f[v.route.id]:void 0,x=v.route.errorElement||_x,d&&(h<0&&E===0?(Ov("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,T=null):h===E&&(w=!0,T=v.route.hydrateFallbackElement||null)));let N=l.concat(u.slice(0,E+1)),j=()=>{let _;return R?_=x:w?_=T:v.route.Component?_=b.createElement(v.route.Component,null):v.route.element?_=v.route.element:_=y,b.createElement(Dx,{match:v,routeContext:{outlet:y,matches:N,isDataRoute:o!=null},children:_})};return o&&(v.route.ErrorBoundary||v.route.errorElement||E===0)?b.createElement(Av,{location:o.location,revalidation:o.revalidation,component:x,error:R,children:j(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:p}):j()},null)}function bf(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mx(a){let l=b.useContext(Gl);return Ye(l,bf(a)),l}function Lx(a){let l=b.useContext(Zo);return Ye(l,bf(a)),l}function zx(a){let l=b.useContext(Wt);return Ye(l,bf(a)),l}function Sf(a){let l=zx(a),r=l.matches[l.matches.length-1];return Ye(r.route.id,`${a} can only be used on routes that contain a unique "id"`),r.route.id}function kx(){return Sf("useRouteId")}function Ux(){var o;let a=b.useContext(yf),l=Lx("useRouteError"),r=Sf("useRouteError");return a!==void 0?a:(o=l.errors)==null?void 0:o[r]}function Bx(){let{router:a}=Mx("useNavigate"),l=Sf("useNavigate"),r=b.useRef(!1);return Cv(()=>{r.current=!0}),b.useCallback(async(u,f={})=>{Ht(r.current,wv),r.current&&(typeof u=="number"?await a.navigate(u):await a.navigate(u,{fromRouteId:l,...f}))},[a,l])}var ag={};function Ov(a,l,r){!l&&!ag[a]&&(ag[a]=!0,Ht(!1,r))}b.memo(Hx);function Hx({routes:a,future:l,state:r,isStatic:o,onError:u}){return Tv(a,void 0,{state:r,isStatic:o,onError:u})}function va({to:a,replace:l,state:r,relative:o}){Ye(Yl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=b.useContext($t);Ht(!u,"<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}=b.useContext(Wt),{pathname:d}=en(),h=Fo(),m=Qo(a,vf(f),d,o==="path"),p=JSON.stringify(m);return b.useEffect(()=>{h(JSON.parse(p),{replace:l,state:r,relative:o})},[h,p,o,l,r]),null}function Vx(a){return Tx(a.context)}function Ya(a){Ye(!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 $x({basename:a="/",children:l=null,location:r,navigationType:o="POP",navigator:u,static:f=!1,unstable_useTransitions:d}){Ye(!Yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=a.replace(/^\/*/,"/"),m=b.useMemo(()=>({basename:h,navigator:u,static:f,unstable_useTransitions:d,future:{}}),[h,u,f,d]);typeof r=="string"&&(r=Za(r));let{pathname:p="/",search:y="",hash:v="",state:E=null,key:R="default",unstable_mask:w}=r,x=b.useMemo(()=>{let T=Hn(p,h);return T==null?null:{location:{pathname:T,search:y,hash:v,state:E,key:R,unstable_mask:w},navigationType:o}},[h,p,y,v,E,R,o,w]);return Ht(x!=null,`<Router basename="${h}"> is not able to match the URL "${p}${y}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:b.createElement($t.Provider,{value:m},b.createElement(Wi.Provider,{children:l,value:x}))}function Gx({children:a,location:l}){return Ax(Zc(a),l)}function Zc(a,l=[]){let r=[];return b.Children.forEach(a,(o,u)=>{if(!b.isValidElement(o))return;let f=[...l,u];if(o.type===b.Fragment){r.push.apply(r,Zc(o.props.children,f));return}Ye(o.type===Ya,`[${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>`),Ye(!o.props.index||!o.props.children,"An index route cannot have child routes.");let d={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&&(d.children=Zc(o.props.children,f)),r.push(d)}),r}var _o="get",No="application/x-www-form-urlencoded";function Jo(a){return typeof HTMLElement<"u"&&a instanceof HTMLElement}function Yx(a){return Jo(a)&&a.tagName.toLowerCase()==="button"}function qx(a){return Jo(a)&&a.tagName.toLowerCase()==="form"}function Kx(a){return Jo(a)&&a.tagName.toLowerCase()==="input"}function Px(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}function Xx(a,l){return a.button===0&&(!l||l==="_self")&&!Px(a)}function Fc(a=""){return new URLSearchParams(typeof a=="string"||Array.isArray(a)||a instanceof URLSearchParams?a:Object.keys(a).reduce((l,r)=>{let o=a[r];return l.concat(Array.isArray(o)?o.map(u=>[r,u]):[[r,o]])},[]))}function Qx(a,l){let r=Fc(a);return l&&l.forEach((o,u)=>{r.has(u)||l.getAll(u).forEach(f=>{r.append(u,f)})}),r}var Eo=null;function Zx(){if(Eo===null)try{new FormData(document.createElement("form"),0),Eo=!1}catch{Eo=!0}return Eo}var Fx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Dc(a){return a!=null&&!Fx.has(a)?(Ht(!1,`"${a}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${No}"`),null):a}function Jx(a,l){let r,o,u,f,d;if(qx(a)){let h=a.getAttribute("action");o=h?Hn(h,l):null,r=a.getAttribute("method")||_o,u=Dc(a.getAttribute("enctype"))||No,f=new FormData(a)}else if(Yx(a)||Kx(a)&&(a.type==="submit"||a.type==="image")){let h=a.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=a.getAttribute("formaction")||h.getAttribute("action");if(o=m?Hn(m,l):null,r=a.getAttribute("formmethod")||h.getAttribute("method")||_o,u=Dc(a.getAttribute("formenctype"))||Dc(h.getAttribute("enctype"))||No,f=new FormData(h,a),!Zx()){let{name:p,type:y,value:v}=a;if(y==="image"){let E=p?`${p}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else p&&f.append(p,v)}}else{if(Jo(a))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=_o,o=null,u=No,d=a}return f&&u==="text/plain"&&(d=f,f=void 0),{action:o,method:r.toLowerCase(),encType:u,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xf(a,l){if(a===!1||a===null||typeof a>"u")throw new Error(l)}function _v(a,l,r,o){let u=typeof a=="string"?new URL(a,typeof window>"u"?"server://singlefetch/":window.location.origin):a;return r?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${o}`:u.pathname=`${u.pathname}.${o}`:u.pathname==="/"?u.pathname=`_root.${o}`:l&&Hn(u.pathname,l)==="/"?u.pathname=`${zo(l)}/_root.${o}`:u.pathname=`${zo(u.pathname)}.${o}`,u}async function Ix(a,l){if(a.id in l)return l[a.id];try{let r=await import(a.module);return l[a.id]=r,r}catch(r){return console.error(`Error loading route module \`${a.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Wx(a){return a==null?!1:a.href==null?a.rel==="preload"&&typeof a.imageSrcSet=="string"&&typeof a.imageSizes=="string":typeof a.rel=="string"&&typeof a.href=="string"}async function eE(a,l,r){let o=await Promise.all(a.map(async u=>{let f=l.routes[u.route.id];if(f){let d=await Ix(f,r);return d.links?d.links():[]}return[]}));return lE(o.flat(1).filter(Wx).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function lg(a,l,r,o,u,f){let d=(m,p)=>r[p]?m.route.id!==r[p].route.id:!0,h=(m,p)=>{var y;return r[p].pathname!==m.pathname||((y=r[p].route.path)==null?void 0:y.endsWith("*"))&&r[p].params["*"]!==m.params["*"]};return f==="assets"?l.filter((m,p)=>d(m,p)||h(m,p)):f==="data"?l.filter((m,p)=>{var v;let y=o.routes[m.route.id];if(!y||!y.hasLoader)return!1;if(d(m,p)||h(m,p))return!0;if(m.route.shouldRevalidate){let E=m.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(a,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function tE(a,l,{includeHydrateFallback:r}={}){return nE(a.map(o=>{let u=l.routes[o.route.id];if(!u)return[];let f=[u.module];return u.clientActionModule&&(f=f.concat(u.clientActionModule)),u.clientLoaderModule&&(f=f.concat(u.clientLoaderModule)),r&&u.hydrateFallbackModule&&(f=f.concat(u.hydrateFallbackModule)),u.imports&&(f=f.concat(u.imports)),f}).flat(1))}function nE(a){return[...new Set(a)]}function aE(a){let l={},r=Object.keys(a).sort();for(let o of r)l[o]=a[o];return l}function lE(a,l){let r=new Set;return new Set(l),a.reduce((o,u)=>{let f=JSON.stringify(aE(u));return r.has(f)||(r.add(f),o.push({key:f,link:u})),o},[])}function Ef(){let a=b.useContext(Gl);return xf(a,"You must render this element inside a <DataRouterContext.Provider> element"),a}function iE(){let a=b.useContext(Zo);return xf(a,"You must render this element inside a <DataRouterStateContext.Provider> element"),a}var wf=b.createContext(void 0);wf.displayName="FrameworkContext";function Cf(){let a=b.useContext(wf);return xf(a,"You must render this element inside a <HydratedRouter> element"),a}function rE(a,l){let r=b.useContext(wf),[o,u]=b.useState(!1),[f,d]=b.useState(!1),{onFocus:h,onBlur:m,onMouseEnter:p,onMouseLeave:y,onTouchStart:v}=l,E=b.useRef(null);b.useEffect(()=>{if(a==="render"&&d(!0),a==="viewport"){let x=N=>{N.forEach(j=>{d(j.isIntersecting)})},T=new IntersectionObserver(x,{threshold:.5});return E.current&&T.observe(E.current),()=>{T.disconnect()}}},[a]),b.useEffect(()=>{if(o){let x=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(x)}}},[o]);let R=()=>{u(!0)},w=()=>{u(!1),d(!1)};return r?a!=="intent"?[f,E,{}]:[f,E,{onFocus:$i(h,R),onBlur:$i(m,w),onMouseEnter:$i(p,R),onMouseLeave:$i(y,w),onTouchStart:$i(v,R)}]:[!1,E,{}]}function $i(a,l){return r=>{a&&a(r),r.defaultPrevented||l(r)}}function oE({page:a,...l}){let r=gx(),{router:o}=Ef(),u=b.useMemo(()=>hv(o.routes,a,o.basename),[o.routes,a,o.basename]);return u?r?b.createElement(uE,{page:a,matches:u,...l}):b.createElement(cE,{page:a,matches:u,...l}):null}function sE(a){let{manifest:l,routeModules:r}=Cf(),[o,u]=b.useState([]);return b.useEffect(()=>{let f=!1;return eE(a,l,r).then(d=>{f||u(d)}),()=>{f=!0}},[a,l,r]),o}function uE({page:a,matches:l,...r}){let o=en(),{future:u}=Cf(),{basename:f}=Ef(),d=b.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let h=_v(a,f,u.unstable_trailingSlashAwareDataRequests,"rsc"),m=!1,p=[];for(let y of l)typeof y.route.shouldRevalidate=="function"?m=!0:p.push(y.route.id);return m&&p.length>0&&h.searchParams.set("_routes",p.join(",")),[h.pathname+h.search]},[f,u.unstable_trailingSlashAwareDataRequests,a,o,l]);return b.createElement(b.Fragment,null,d.map(h=>b.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...r})))}function cE({page:a,matches:l,...r}){let o=en(),{future:u,manifest:f,routeModules:d}=Cf(),{basename:h}=Ef(),{loaderData:m,matches:p}=iE(),y=b.useMemo(()=>lg(a,l,p,f,o,"data"),[a,l,p,f,o]),v=b.useMemo(()=>lg(a,l,p,f,o,"assets"),[a,l,p,f,o]),E=b.useMemo(()=>{if(a===o.pathname+o.search+o.hash)return[];let x=new Set,T=!1;if(l.forEach(j=>{var k;let _=f.routes[j.route.id];!_||!_.hasLoader||(!y.some(G=>G.route.id===j.route.id)&&j.route.id in m&&((k=d[j.route.id])!=null&&k.shouldRevalidate)||_.hasClientLoader?T=!0:x.add(j.route.id))}),x.size===0)return[];let N=_v(a,h,u.unstable_trailingSlashAwareDataRequests,"data");return T&&x.size>0&&N.searchParams.set("_routes",l.filter(j=>x.has(j.route.id)).map(j=>j.route.id).join(",")),[N.pathname+N.search]},[h,u.unstable_trailingSlashAwareDataRequests,m,o,f,y,l,a,d]),R=b.useMemo(()=>tE(v,f),[v,f]),w=sE(v);return b.createElement(b.Fragment,null,E.map(x=>b.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...r})),R.map(x=>b.createElement("link",{key:x,rel:"modulepreload",href:x,...r})),w.map(({key:x,link:T})=>b.createElement("link",{key:x,nonce:r.nonce,...T,crossOrigin:T.crossOrigin??r.crossOrigin})))}function fE(...a){return l=>{a.forEach(r=>{typeof r=="function"?r(l):r!=null&&(r.current=l)})}}var dE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dE&&(window.__reactRouterVersion="7.14.2")}catch{}function hE({basename:a,children:l,unstable_useTransitions:r,window:o}){let u=b.useRef();u.current==null&&(u.current=Y1({window:o,v5Compat:!0}));let f=u.current,[d,h]=b.useState({action:f.action,location:f.location}),m=b.useCallback(p=>{r===!1?h(p):b.startTransition(()=>h(p))},[r]);return b.useLayoutEffect(()=>f.listen(m),[f,m]),b.createElement($x,{basename:a,children:l,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:r})}var Nv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Dv=b.forwardRef(function({onClick:l,discover:r="render",prefetch:o="none",relative:u,reloadDocument:f,replace:d,unstable_mask:h,state:m,target:p,to:y,preventScrollReset:v,viewTransition:E,unstable_defaultShouldRevalidate:R,...w},x){let{basename:T,navigator:N,unstable_useTransitions:j}=b.useContext($t),_=typeof y=="string"&&Nv.test(y),k=yv(y,T);y=k.to;let G=wx(y,{relative:u}),X=en(),V=null;if(h){let de=Qo(h,[],X.unstable_mask?X.unstable_mask.pathname:"/",!0);T!=="/"&&(de.pathname=de.pathname==="/"?T:rn([T,de.pathname])),V=N.createHref(de)}let[F,W,ee]=rE(o,w),re=gE(y,{replace:d,unstable_mask:h,state:m,target:p,preventScrollReset:v,relative:u,viewTransition:E,unstable_defaultShouldRevalidate:R,unstable_useTransitions:j});function fe(de){l&&l(de),de.defaultPrevented||re(de)}let se=!(k.isExternal||f),le=b.createElement("a",{...w,...ee,href:(se?V:void 0)||k.absoluteURL||G,onClick:se?fe:l,ref:fE(x,W),target:p,"data-discover":!_&&r==="render"?"true":void 0});return F&&!_?b.createElement(b.Fragment,null,le,b.createElement(oE,{page:G})):le});Dv.displayName="Link";var Jc=b.forwardRef(function({"aria-current":l="page",caseSensitive:r=!1,className:o="",end:u=!1,style:f,to:d,viewTransition:h,children:m,...p},y){let v=er(d,{relative:p.relative}),E=en(),R=b.useContext(Zo),{navigator:w,basename:x}=b.useContext($t),T=R!=null&&xE(v)&&h===!0,N=w.encodeLocation?w.encodeLocation(v).pathname:v.pathname,j=E.pathname,_=R&&R.navigation&&R.navigation.location?R.navigation.location.pathname:null;r||(j=j.toLowerCase(),_=_?_.toLowerCase():null,N=N.toLowerCase()),_&&x&&(_=Hn(_,x)||_);const k=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let G=j===N||!u&&j.startsWith(N)&&j.charAt(k)==="/",X=_!=null&&(_===N||!u&&_.startsWith(N)&&_.charAt(N.length)==="/"),V={isActive:G,isPending:X,isTransitioning:T},F=G?l:void 0,W;typeof o=="function"?W=o(V):W=[o,G?"active":null,X?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let ee=typeof f=="function"?f(V):f;return b.createElement(Dv,{...p,"aria-current":F,className:W,ref:y,style:ee,to:d,viewTransition:h},typeof m=="function"?m(V):m)});Jc.displayName="NavLink";var mE=b.forwardRef(({discover:a="render",fetcherKey:l,navigate:r,reloadDocument:o,replace:u,state:f,method:d=_o,action:h,onSubmit:m,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:E,...R},w)=>{let{unstable_useTransitions:x}=b.useContext($t),T=bE(),N=SE(h,{relative:p}),j=d.toLowerCase()==="get"?"get":"post",_=typeof h=="string"&&Nv.test(h),k=G=>{if(m&&m(G),G.defaultPrevented)return;G.preventDefault();let X=G.nativeEvent.submitter,V=(X==null?void 0:X.getAttribute("formmethod"))||d,F=()=>T(X||G.currentTarget,{fetcherKey:l,method:V,navigate:r,replace:u,state:f,relative:p,preventScrollReset:y,viewTransition:v,unstable_defaultShouldRevalidate:E});x&&r!==!1?b.startTransition(()=>F()):F()};return b.createElement("form",{ref:w,method:j,action:N,onSubmit:o?m:k,...R,"data-discover":!_&&a==="render"?"true":void 0})});mE.displayName="Form";function pE(a){return`${a} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jv(a){let l=b.useContext(Gl);return Ye(l,pE(a)),l}function gE(a,{target:l,replace:r,unstable_mask:o,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p}={}){let y=Fo(),v=en(),E=er(a,{relative:d});return b.useCallback(R=>{if(Xx(R,l)){R.preventDefault();let w=r!==void 0?r:Xi(v)===Xi(E),x=()=>y(a,{replace:w,unstable_mask:o,state:u,preventScrollReset:f,relative:d,viewTransition:h,unstable_defaultShouldRevalidate:m});p?b.startTransition(()=>x()):x()}},[v,y,E,r,o,u,l,a,f,d,h,m,p])}function CO(a){Ht(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=b.useRef(Fc(a)),r=b.useRef(!1),o=en(),u=b.useMemo(()=>Qx(o.search,r.current?null:l.current),[o.search]),f=Fo(),d=b.useCallback((h,m)=>{const p=Fc(typeof h=="function"?h(new URLSearchParams(u)):h);r.current=!0,f("?"+p,m)},[f,u]);return[u,d]}var vE=0,yE=()=>`__${String(++vE)}__`;function bE(){let{router:a}=jv("useSubmit"),{basename:l}=b.useContext($t),r=kx(),o=a.fetch,u=a.navigate;return b.useCallback(async(f,d={})=>{let{action:h,method:m,encType:p,formData:y,body:v}=Jx(f,l);if(d.navigate===!1){let E=d.fetcherKey||yE();await o(E,r,d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:y,body:v,formMethod:d.method||m,formEncType:d.encType||p,flushSync:d.flushSync})}else await u(d.action||h,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:y,body:v,formMethod:d.method||m,formEncType:d.encType||p,replace:d.replace,state:d.state,fromRouteId:r,flushSync:d.flushSync,viewTransition:d.viewTransition})},[o,u,l,r])}function SE(a,{relative:l}={}){let{basename:r}=b.useContext($t),o=b.useContext(Wt);Ye(o,"useFormAction must be used inside a RouteContext");let[u]=o.matches.slice(-1),f={...er(a||".",{relative:l})},d=en();if(a==null){f.search=d.search;let h=new URLSearchParams(f.search),m=h.getAll("index");if(m.some(y=>y==="")){h.delete("index"),m.filter(v=>v).forEach(v=>h.append("index",v));let y=h.toString();f.search=y?`?${y}`:""}}return(!a||a===".")&&u.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(f.pathname=f.pathname==="/"?r:rn([r,f.pathname])),Xi(f)}function xE(a,{relative:l}={}){let r=b.useContext(xv);Ye(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=jv("useViewTransitionState"),u=er(a,{relative:l});if(!r.isTransitioning)return!1;let f=Hn(r.currentLocation.pathname,o)||r.currentLocation.pathname,d=Hn(r.nextLocation.pathname,o)||r.nextLocation.pathname;return Lo(u.pathname,d)!=null||Lo(u.pathname,f)!=null}var tr=dv();const EE=mf(tr),ig=a=>{let l;const r=new Set,o=(p,y)=>{const v=typeof p=="function"?p(l):p;if(!Object.is(v,l)){const E=l;l=y??(typeof v!="object"||v===null)?v:Object.assign({},l,v),r.forEach(R=>R(l,E))}},u=()=>l,h={setState:o,getState:u,getInitialState:()=>m,subscribe:p=>(r.add(p),()=>r.delete(p))},m=l=a(o,u,h);return h},wE=(a=>a?ig(a):ig),CE=a=>a;function RE(a,l=CE){const r=kt.useSyncExternalStore(a.subscribe,kt.useCallback(()=>l(a.getState()),[a,l]),kt.useCallback(()=>l(a.getInitialState()),[a,l]));return kt.useDebugValue(r),r}const rg=a=>{const l=wE(a),r=o=>RE(l,o);return Object.assign(r,l),r},Rf=(a=>a?rg(a):rg),og="/api/v1";class TE{constructor(){Ll(this,"token","");Ll(this,"baseUrl",og)}setToken(l){this.token=l}setBaseUrl(l){const r=l.trim();if(!r){this.baseUrl=og;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,u){let f=this.resolveUrl(r);if(u){const m=new URLSearchParams(u).toString();m&&(f+=`?${m}`)}const d=await fetch(f,{method:l,headers:this.headers(),body:o?JSON.stringify(o):void 0}),h=await d.json();if(!h.ok)throw new AE(h.error||"Unknown error",d.status);return h.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 AE extends Error{constructor(l,r){super(l),this.status=r,this.name="ApiError"}}const et=new TE,Vt=Rf(a=>({token:"",serverUrl:"",isAuthenticated:!1,desktopManaged:!1,managedBy:"none",login:(l,r)=>{et.setToken(l),r&&et.setBaseUrl(r),localStorage.setItem("cc_token",l),r&&localStorage.setItem("cc_server_url",r),a({token:l,serverUrl:r||"",isAuthenticated:!0,desktopManaged:!1,managedBy:"remote"})},setManagedSession:(l,r,o)=>{et.setToken(l),et.setBaseUrl(r),a({token:l,serverUrl:r,isAuthenticated:!0,desktopManaged:!0,managedBy:o})},setDesktopSession:(l,r)=>{Vt.getState().setManagedSession(l,r,"electron")},logout:()=>{Vt.getState().desktopManaged||(et.setToken(""),et.setBaseUrl(""),localStorage.removeItem("cc_token"),localStorage.removeItem("cc_server_url"),a({token:"",serverUrl:"",isAuthenticated:!1,desktopManaged:!1,managedBy:"none"}))},init:()=>{const l=localStorage.getItem("cc_token")||"",r=localStorage.getItem("cc_server_url")||"";l&&(et.setToken(l),r&&et.setBaseUrl(r),a({token:l,serverUrl:r,isAuthenticated:!0,desktopManaged:!1,managedBy:"remote"}))}})),OE=(a,l,r,o)=>{var f,d,h,m;const u=[r,{code:l,...o||{}}];if((d=(f=a==null?void 0:a.services)==null?void 0:f.logger)!=null&&d.forward)return a.services.logger.forward(u,"warn","react-i18next::",!0);qa(u[0])&&(u[0]=`react-i18next:: ${u[0]}`),(m=(h=a==null?void 0:a.services)==null?void 0:h.logger)!=null&&m.warn?a.services.logger.warn(...u):console!=null&&console.warn&&console.warn(...u)},sg={},Ic=(a,l,r,o)=>{qa(r)&&sg[r]||(qa(r)&&(sg[r]=new Date),OE(a,l,r,o))},Mv=(a,l)=>()=>{if(a.isInitialized)l();else{const r=()=>{setTimeout(()=>{a.off("initialized",r)},0),l()};a.on("initialized",r)}},Wc=(a,l,r)=>{a.loadNamespaces(l,Mv(a,r))},ug=(a,l,r,o)=>{if(qa(r)&&(r=[r]),a.options.preload&&a.options.preload.indexOf(l)>-1)return Wc(a,r,o);r.forEach(u=>{a.options.ns.indexOf(u)<0&&a.options.ns.push(u)}),a.loadLanguages(l,Mv(a,o))},_E=(a,l,r={})=>!l.languages||!l.languages.length?(Ic(l,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:l.languages}),!0):l.hasLoadedNamespace(a,{lng:r.lng,precheck:(o,u)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!u(o.isLanguageChangingTo,a))return!1}}),qa=a=>typeof a=="string",NE=a=>typeof a=="object"&&a!==null,DE=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,jE={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ME=a=>jE[a],LE=a=>a.replace(DE,ME);let ef={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:LE};const zE=(a={})=>{ef={...ef,...a}},kE=()=>ef;let Lv;const UE=a=>{Lv=a},BE=()=>Lv,HE={type:"3rdParty",init(a){zE(a.options.react),UE(a)}},VE=b.createContext();class $E{constructor(){this.usedNamespaces={}}addUsedNamespaces(l){l.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const GE=(a,l)=>{const r=b.useRef();return b.useEffect(()=>{r.current=a},[a,l]),r.current},zv=(a,l,r,o)=>a.getFixedT(l,r,o),YE=(a,l,r,o)=>b.useCallback(zv(a,l,r,o),[a,l,r,o]),kv=(a,l={})=>{var k,G,X,V;const{i18n:r}=l,{i18n:o,defaultNS:u}=b.useContext(VE)||{},f=r||o||BE();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new $E),!f){Ic(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const F=(ee,re)=>qa(re)?re:NE(re)&&qa(re.defaultValue)?re.defaultValue:Array.isArray(ee)?ee[ee.length-1]:ee,W=[F,{},!1];return W.t=F,W.i18n={},W.ready=!1,W}(k=f.options.react)!=null&&k.wait&&Ic(f,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...kE(),...f.options.react,...l},{useSuspense:h,keyPrefix:m}=d;let p=u||((G=f.options)==null?void 0:G.defaultNS);p=qa(p)?[p]:p||["translation"],(V=(X=f.reportNamespaces).addUsedNamespaces)==null||V.call(X,p);const y=(f.isInitialized||f.initializedStoreOnce)&&p.every(F=>_E(F,f,d)),v=YE(f,l.lng||null,d.nsMode==="fallback"?p:p[0],m),E=()=>v,R=()=>zv(f,l.lng||null,d.nsMode==="fallback"?p:p[0],m),[w,x]=b.useState(E);let T=p.join();l.lng&&(T=`${l.lng}${T}`);const N=GE(T),j=b.useRef(!0);b.useEffect(()=>{const{bindI18n:F,bindI18nStore:W}=d;j.current=!0,!y&&!h&&(l.lng?ug(f,l.lng,p,()=>{j.current&&x(R)}):Wc(f,p,()=>{j.current&&x(R)})),y&&N&&N!==T&&j.current&&x(R);const ee=()=>{j.current&&x(R)};return F&&(f==null||f.on(F,ee)),W&&(f==null||f.store.on(W,ee)),()=>{j.current=!1,f&&F&&(F==null||F.split(" ").forEach(re=>f.off(re,ee))),W&&f&&W.split(" ").forEach(re=>f.store.off(re,ee))}},[f,T]),b.useEffect(()=>{j.current&&y&&x(E)},[f,m,y]);const _=[w,f,y];if(_.t=w,_.i18n=f,_.ready=y,y||!y&&!h)return _;throw new Promise(F=>{l.lng?ug(f,l.lng,p,()=>F()):Wc(f,p,()=>F())})};function Uv(a){var l,r,o="";if(typeof a=="string"||typeof a=="number")o+=a;else if(typeof a=="object")if(Array.isArray(a)){var u=a.length;for(l=0;l<u;l++)a[l]&&(r=Uv(a[l]))&&(o&&(o+=" "),o+=r)}else for(r in a)a[r]&&(o&&(o+=" "),o+=r);return o}function qE(){for(var a,l,r=0,o="",u=arguments.length;r<u;r++)(a=arguments[r])&&(l=Uv(a))&&(o&&(o+=" "),o+=l);return o}function Ge(...a){return qE(a)}function RO(a){return a?new Date(a).toLocaleString():"-"}let Qi=typeof window<"u"&&window.desktop?"electron":"local_core";const Tf=Rf(a=>({snapshot:null,setSnapshot:l=>a({snapshot:l})}));function Zi(){return Qi}function jc(a){Qi=a}function KE(){return Qi==="electron"}function PE(){return!1}function Mc(a){Tf.getState().setSnapshot(a)}function XE(){return Tf.getState().snapshot}function QE(a){return!!(a!=null&&a.knowledge.some(l=>l.enabled!==!1))}function ZE(a){return!!(a!=null&&a.schedulers.some(l=>l.enabled!==!1))}function FE(a,l){return!!(a!=null&&a.agents.some(r=>r.agentType===l))}function JE(a){return!!(a!=null&&a.agents.some(l=>l.agentType))}function IE(a=XE()){const l=!!a,r=FE(a,"localcore-acp");return{desktopRuntime:l||Qi==="electron"||Qi==="local_core",desktopChat:r,chatRoute:l?r:!0,desktopWorkspace:l?JE(a):!0,knowledgeModule:l?QE(a):!0,schedulerModule:l?ZE(a):!0}}function Af(){const a=Tf(l=>l.snapshot);return IE(a)}function cg(a){return a==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a}function fg(a){document.documentElement.classList.toggle("dark",a==="dark")}const Of=Rf(a=>({theme:"dark",resolved:"dark",setTheme:l=>{const r=cg(l);localStorage.setItem("cc_theme",l),fg(r),a({theme:l,resolved:r})},init:()=>{const l=localStorage.getItem("cc_theme")||"dark",r=cg(l);fg(r),a({theme:l,resolved:r})}})),WE="modulepreload",e2=function(a,l){return new URL(a,l).href},dg={},Gt=function(l,r,o){let u=Promise.resolve();if(r&&r.length>0){let d=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};const h=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),p=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=d(r.map(y=>{if(y=e2(y,o),y in dg)return;dg[y]=!0;const v=y.endsWith(".css"),E=v?'[rel="stylesheet"]':"";if(!!o)for(let x=h.length-1;x>=0;x--){const T=h[x];if(T.href===y&&(!v||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${y}"]${E}`))return;const w=document.createElement("link");if(w.rel=v?"stylesheet":WE,v||(w.as="script"),w.crossOrigin="",w.href=y,p&&w.setAttribute("nonce",p),document.head.appendChild(w),v)return new Promise((x,T)=>{w.addEventListener("load",x),w.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return u.then(d=>{for(const h of d||[])h.status==="rejected"&&f(h.reason);return l().catch(f)})},t2=b.lazy(()=>Gt(()=>import("./Dashboard-DIxtJDEV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)),n2=b.lazy(()=>Gt(()=>import("./ThreadChat-BUFr0IbT.js"),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,7]),import.meta.url)),a2=b.lazy(()=>Gt(()=>import("./Chat-Bb42Xu99.js"),__vite__mapDeps([19,9,2,10,4,20,11,14,16,17,18]),import.meta.url)),l2=b.lazy(()=>Gt(()=>import("./Workspace-B_sQxTj-.js"),__vite__mapDeps([21,9,2,3,12,17,22,23]),import.meta.url)),i2=b.lazy(()=>Gt(()=>import("./ProjectList-mJJeoUcP.js"),__vite__mapDeps([24,1,2,3,4,5,25]),import.meta.url)),r2=b.lazy(()=>Gt(()=>import("./ProjectDetail-Ct7yASjV.js"),__vite__mapDeps([26,1,9,2,3,4,27,25,28,22,17,29]),import.meta.url)),o2=b.lazy(()=>Gt(()=>import("./SessionList-Cxilghws.js"),__vite__mapDeps([30,1,2,4,20,31,15,18]),import.meta.url)),s2=b.lazy(()=>Gt(()=>import("./SessionChat-CClPXCjv.js"),__vite__mapDeps([32,1,20,10,27,15,13,18]),import.meta.url)),u2=b.lazy(()=>Gt(()=>import("./CronList-Qfok-TFN.js"),__vite__mapDeps([33,1,9,2,3,22,29,16,17]),import.meta.url)),c2=b.lazy(()=>Gt(()=>import("./Config-U1HHZNv-.js"),__vite__mapDeps([34,1,3,23,28]),import.meta.url)),f2=b.lazy(()=>Gt(()=>import("./Logs-BV93l6f2.js"),__vite__mapDeps([35,1,3,27,31]),import.meta.url)),d2=b.lazy(()=>Gt(()=>import("./KnowledgeHome-CsYBKv3L.js"),__vite__mapDeps([36,9,2,16,17,14,22,6]),import.meta.url)),h2=b.lazy(()=>Gt(()=>import("./KnowledgeDetail-DKjqGzjI.js"),__vite__mapDeps([37,2,27,14,17]),import.meta.url));class m2{constructor(){Ll(this,"routes",new Map);Ll(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 Gi(a,l,r="/"){return a?l:C.jsx(va,{to:r,replace:!0})}function p2(){const{name:a}=Rv();return Vt(r=>r.desktopManaged)?C.jsx(va,{to:a?`/workspace?project=${encodeURIComponent(a)}`:"/workspace",replace:!0}):C.jsx(r2,{})}function hg(){const{project:a,id:l}=Rv();if(!Vt(u=>u.desktopManaged))return l&&a?C.jsx(s2,{}):C.jsx(o2,{});const o=new URLSearchParams;return a&&o.set("project",a),l&&o.set("session",l),C.jsx(va,{to:`/chat${o.toString()?`?${o.toString()}`:""}`,replace:!0})}function g2(a){[{id:"dashboard",index:!0,titleKey:"nav.dashboard",order:10,element:()=>C.jsx(t2,{})},{id:"chat",path:"chat",titleKey:"nav.chat",order:20,element:({features:r})=>Gi(r.chatRoute,r.desktopChat?C.jsx(n2,{}):C.jsx(a2,{}))},{id:"workspace",path:"workspace",titleKey:"nav.workspace",order:30,element:({features:r})=>Gi(r.desktopWorkspace,C.jsx(l2,{}))},{id:"knowledge",path:"knowledge",titleKey:"nav.knowledge",order:40,element:({features:r})=>Gi(r.knowledgeModule,C.jsx(d2,{}))},{id:"knowledge-detail",path:"knowledge/:knowledgebaseId",titleKey:"nav.knowledge",order:41,element:({features:r})=>Gi(r.knowledgeModule,C.jsx(h2,{}))},{id:"projects",path:"projects",titleKey:"nav.projects",order:50,element:({desktopManaged:r,features:o})=>r&&o.desktopWorkspace?C.jsx(va,{to:"/workspace",replace:!0}):C.jsx(i2,{})},{id:"project-detail",path:"projects/:name",titleKey:"nav.projects",order:51,element:()=>C.jsx(p2,{})},{id:"sessions",path:"sessions",titleKey:"nav.sessions",order:60,element:()=>C.jsx(hg,{})},{id:"session-detail",path:"sessions/:project/:id",titleKey:"nav.sessions",order:61,element:()=>C.jsx(hg,{})},{id:"cron",path:"cron",titleKey:"nav.cron",order:70,element:({features:r})=>Gi(r.schedulerModule,C.jsx(u2,{}))},{id:"system",path:"system",titleKey:"nav.system",order:80,element:()=>C.jsx(c2,{})},{id:"system-logs",path:"system/logs",titleKey:"nav.system",order:81,element:()=>C.jsx(f2,{})}].forEach(r=>a.registerRoute(r))}function v2(a){[{id:"dashboard",path:"/",labelKey:"nav.dashboard",icon:p1,order:10,end:!0},{id:"chat",path:"/chat",labelKey:"nav.chat",icon:w1,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:M1,order:30,visible:({features:r})=>r.desktopWorkspace},{id:"knowledge",path:"/knowledge",labelKey:"nav.knowledge",icon:v1,order:40,visible:({features:r})=>r.knowledgeModule},{id:"projects",path:"/projects",labelKey:"nav.projects",icon:f1,order:50,visible:({desktopManaged:r})=>!r},{id:"sessions",path:"/sessions",labelKey:"nav.sessions",icon:x1,order:60,visible:({desktopManaged:r})=>!r},{id:"cron",path:"/cron",labelKey:"nav.cron",icon:u1,order:70,visible:({features:r})=>r.schedulerModule},{id:"system",path:"/system",labelKey:"nav.system",icon:O1,order:80}].forEach(r=>a.registerNavItem(r))}const Io=new m2;g2(Io);v2(Io);function Bv({className:a,markClassName:l,showWordmark:r=!1}){const o=b.useId(),u=`${o}-bg`,f=`${o}-stroke`;return C.jsxs("div",{className:Ge("inline-flex items-center gap-3",a),children:[C.jsxs("svg",{className:Ge("h-8 w-8 shrink-0",l),viewBox:"0 0 64 64",role:"img","aria-label":"AgentDock",fill:"none",children:[C.jsxs("defs",{children:[C.jsxs("linearGradient",{id:u,x1:"7",y1:"5",x2:"57",y2:"59",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{className:"[stop-color:#FFFFFF] dark:[stop-color:#3A3A3C]"}),C.jsx("stop",{offset:"0.52",className:"[stop-color:#F5F5F7] dark:[stop-color:#2C2C2E]"}),C.jsx("stop",{offset:"1",className:"[stop-color:#E5E5EA] dark:[stop-color:#1C1C1E]"})]}),C.jsxs("linearGradient",{id:f,x1:"18",y1:"16",x2:"47",y2:"48",gradientUnits:"userSpaceOnUse",children:[C.jsx("stop",{stopColor:"#5AC8FA"}),C.jsx("stop",{offset:"0.44",stopColor:"#0A84FF"}),C.jsx("stop",{offset:"1",stopColor:"#007AFF"})]})]}),C.jsx("rect",{x:"4",y:"4",width:"56",height:"56",rx:"16",fill:`url(#${u})`,className:"stroke-black/10 dark:stroke-white/10",strokeWidth:"1.5"}),C.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"}),C.jsx("path",{d:"M20.8 37.5H34.7",className:"stroke-white dark:stroke-white",strokeWidth:"5.25",strokeLinecap:"round"}),C.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"}),C.jsx("path",{d:"M34 25.5V39.5",className:"stroke-black/70 dark:stroke-black/80",strokeWidth:"3",strokeLinecap:"round",opacity:"0.18"})]}),r&&C.jsx("span",{className:"text-sm font-semibold tracking-tight text-foreground",children:"AgentDock"})]})}const mg=[{code:"en",label:"English"},{code:"zh",label:"中文"},{code:"zh-TW",label:"繁體中文"},{code:"ja",label:"日本語"},{code:"es",label:"Español"}],y2=[{label:"Core",ids:["dashboard","chat","workspace","projects","sessions"]},{label:"Knowledge",ids:["knowledge","cron"]},{label:"System",ids:["system"]}];function b2(){var j;const{t:a,i18n:l}=kv(),{theme:r,setTheme:o}=Of(),u=Vt(_=>_.logout),f=Vt(_=>_.desktopManaged),d=Af(),h=Zi(),[m,p]=b.useState(!1),[y,v]=b.useState(!1),E=_=>{l.changeLanguage(_),localStorage.setItem("cc_lang",_),v(!1)},R={light:fv,dark:uv,system:sv},w={light:"dark",dark:"system",system:"light"},x=R[r],T=Io.listNavItems().filter(_=>{var k;return((k=_.visible)==null?void 0:k.call(_,{desktopManaged:f,features:d}))??!0}),N=T.map(_=>{var X;const k=_.icon,G=((X=_.resolveLabelKey)==null?void 0:X.call(_,{desktopManaged:f,features:d,runtimeProvider:h}))||_.labelKey;return{..._,Icon:k,labelKey:G}});return C.jsxs(C.Fragment,{children:[C.jsxs("aside",{className:Ge("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:[C.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"}),C.jsx("div",{className:Ge("relative flex h-[5.25rem] items-center gap-3 px-4 pt-7 transition-colors"),children:C.jsx(Bv,{showWordmark:!m})}),C.jsx("nav",{className:"relative flex-1 py-3 space-y-4 px-2 overflow-y-auto",children:y2.map(_=>{const k=T.filter(G=>_.ids.includes(G.id));return k.length===0?null:C.jsxs("div",{className:"space-y-1",children:[!m&&C.jsx("p",{className:"px-3 pb-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/80",children:_.label}),k.map(G=>{var F;const X=G.icon,V=((F=G.resolveLabelKey)==null?void 0:F.call(G,{desktopManaged:f,features:d,runtimeProvider:h}))||G.labelKey;return C.jsxs(Jc,{to:G.path,end:G.end,className:({isActive:W})=>Ge("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",W?"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:[C.jsx(X,{size:18,className:"shrink-0"}),!m&&C.jsx("span",{children:a(V)})]},G.id)})]},_.label)})}),C.jsxs("div",{className:Ge("relative border-t p-2 space-y-1","border-black/10 dark:border-white/[0.08]"),children:[!m&&C.jsxs("div",{className:"px-3 pb-1 pt-0.5 text-[11px] font-medium text-muted-foreground/75",children:["AgentDock v","0.1.16"]}),C.jsxs("div",{className:"relative",children:[C.jsxs("button",{type:"button",onClick:()=>v(!y),className:Ge("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:[C.jsx(h1,{size:18,className:"shrink-0"}),!m&&C.jsx("span",{children:((j=mg.find(_=>_.code===l.language))==null?void 0:j.label)||"English"})]}),y&&C.jsx("div",{className:Ge("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:mg.map(_=>C.jsx("button",{type:"button",onClick:()=>E(_.code),className:Ge("w-full text-left px-3 py-2 text-sm transition-colors duration-150",l.language===_.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:_.label},_.code))})]}),C.jsxs("button",{type:"button",onClick:()=>o(w[r]),className:Ge("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:[C.jsx(x,{size:18,className:"shrink-0"}),!m&&C.jsx("span",{children:a(`theme.${r}`)})]}),!f&&C.jsxs("button",{type:"button",onClick:u,className:Ge("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:[C.jsx(b1,{size:18,className:"shrink-0"}),!m&&C.jsx("span",{children:a("login.logout")})]}),C.jsx("button",{type:"button",onClick:()=>p(!m),className:Ge("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?C.jsx(a1,{size:18}):C.jsx(t1,{size:18})})]})]}),C.jsx("nav",{className:Ge("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:C.jsx("div",{className:"flex items-stretch gap-1 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:N.map(({id:_,path:k,end:G,Icon:X,labelKey:V})=>C.jsxs(Jc,{to:k,end:G,className:({isActive:F})=>Ge("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",F?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-black/[0.05] hover:text-foreground dark:hover:bg-white/[0.07]"),children:[C.jsx(X,{size:18,className:"shrink-0"}),C.jsx("span",{className:"max-w-[4.25rem] truncate",children:a(V)})]},_))})})]})}function S2(){const{pathname:a}=en(),{desktopChat:l}=Af(),r=a.startsWith("/chat")&&l,o=r&&Zi()==="electron";return C.jsxs("div",{className:Ge("flex h-[100dvh] overflow-hidden","bg-background/60 backdrop-blur-2xl"),children:[C.jsx("div",{className:"fixed left-0 right-0 top-0 z-50 hidden h-8 [-webkit-app-region:drag] md:block","aria-hidden":"true"}),C.jsx(b2,{}),C.jsx("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0 bg-background/45 backdrop-blur-2xl",children:C.jsx("main",{className:Ge("flex-1 min-h-0",r?"overflow-hidden":"overflow-y-auto",o?"p-0":"p-4 pb-24 sm:p-6 sm:pb-6"),children:C.jsx("div",{className:Ge(r&&"h-full min-h-0",!o&&"mx-auto w-full max-w-7xl"),children:C.jsx(Vx,{})})})})]})}const x2=()=>et.get("/status"),TO=a=>et.post("/restart",a),AO=()=>et.post("/reload"),OO=a=>et.get("/logs",a);function E2({children:a,className:l,hover:r}){return C.jsx("div",{className:Ge("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:a})}function pg(a,l){if(typeof a=="function")return a(l);a!=null&&(a.current=l)}function _f(...a){return l=>{let r=!1;const o=a.map(u=>{const f=pg(u,l);return!r&&typeof f=="function"&&(r=!0),f});if(r)return()=>{for(let u=0;u<o.length;u++){const f=o[u];typeof f=="function"?f():pg(a[u],null)}}}}function ft(...a){return b.useCallback(_f(...a),a)}var w2=Symbol.for("react.lazy"),ko=gf[" use ".trim().toString()];function C2(a){return typeof a=="object"&&a!==null&&"then"in a}function Hv(a){return a!=null&&typeof a=="object"&&"$$typeof"in a&&a.$$typeof===w2&&"_payload"in a&&C2(a._payload)}function R2(a){const l=A2(a),r=b.forwardRef((o,u)=>{let{children:f,...d}=o;Hv(f)&&typeof ko=="function"&&(f=ko(f._payload));const h=b.Children.toArray(f),m=h.find(_2);if(m){const p=m.props.children,y=h.map(v=>v===m?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:v);return C.jsx(l,{...d,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,y):null})}return C.jsx(l,{...d,ref:u,children:f})});return r.displayName=`${a}.Slot`,r}var T2=R2("Slot");function A2(a){const l=b.forwardRef((r,o)=>{let{children:u,...f}=r;if(Hv(u)&&typeof ko=="function"&&(u=ko(u._payload)),b.isValidElement(u)){const d=D2(u),h=N2(f,u.props);return u.type!==b.Fragment&&(h.ref=o?_f(o,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return l.displayName=`${a}.SlotClone`,l}var O2=Symbol("radix.slottable");function _2(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===O2}function N2(a,l){const r={...l};for(const o in l){const u=a[o],f=l[o];/^on[A-Z]/.test(o)?u&&f?r[o]=(...h)=>{const m=f(...h);return u(...h),m}:u&&(r[o]=u):o==="style"?r[o]={...u,...f}:o==="className"&&(r[o]=[u,f].filter(Boolean).join(" "))}return{...a,...r}}function D2(a){var o,u;let l=(o=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?a.ref:(l=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?a.props.ref:a.props.ref||a.ref)}const j2={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"},M2={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 Uo({variant:a="primary",size:l="md",className:r,children:o,loading:u,asChild:f,disabled:d,type:h="button",...m}){const p=l==="default"?"md":l,y=f?T2:"button";return C.jsxs(y,{...f?{}:{type:h},className:Ge("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",j2[a],M2[p],r),disabled:d||u,...m,children:[u&&C.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24","aria-hidden":!0,children:[C.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),C.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),o]})}function tt(a,l,{checkForDefaultPrevented:r=!0}={}){return function(u){if(a==null||a(u),r===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function _O(a,l){const r=b.createContext(l),o=f=>{const{children:d,...h}=f,m=b.useMemo(()=>h,Object.values(h));return C.jsx(r.Provider,{value:m,children:d})};o.displayName=a+"Provider";function u(f){const d=b.useContext(r);if(d)return d;if(l!==void 0)return l;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[o,u]}function Nf(a,l=[]){let r=[];function o(f,d){const h=b.createContext(d),m=r.length;r=[...r,d];const p=v=>{var N;const{scope:E,children:R,...w}=v,x=((N=E==null?void 0:E[a])==null?void 0:N[m])||h,T=b.useMemo(()=>w,Object.values(w));return C.jsx(x.Provider,{value:T,children:R})};p.displayName=f+"Provider";function y(v,E){var x;const R=((x=E==null?void 0:E[a])==null?void 0:x[m])||h,w=b.useContext(R);if(w)return w;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${f}\``)}return[p,y]}const u=()=>{const f=r.map(d=>b.createContext(d));return function(h){const m=(h==null?void 0:h[a])||f;return b.useMemo(()=>({[`__scope${a}`]:{...h,[a]:m}}),[h,m])}};return u.scopeName=a,[o,L2(u,...l)]}function L2(...a){const l=a[0];if(a.length===1)return l;const r=()=>{const o=a.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(f){const d=o.reduce((h,{useScope:m,scopeName:p})=>{const v=m(f)[`__scope${p}`];return{...h,...v}},{});return b.useMemo(()=>({[`__scope${l.scopeName}`]:d}),[d])}};return r.scopeName=l.scopeName,r}var Ct=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},z2=gf[" useId ".trim().toString()]||(()=>{}),k2=0;function Df(a){const[l,r]=b.useState(z2());return Ct(()=>{r(o=>o??String(k2++))},[a]),a||(l?`radix-${l}`:"")}var U2=gf[" useInsertionEffect ".trim().toString()]||Ct;function gg({prop:a,defaultProp:l,onChange:r=()=>{},caller:o}){const[u,f,d]=B2({defaultProp:l,onChange:r}),h=a!==void 0,m=h?a:u;{const y=b.useRef(a!==void 0);b.useEffect(()=>{const v=y.current;v!==h&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,o])}const p=b.useCallback(y=>{var v;if(h){const E=H2(y)?y(a):y;E!==a&&((v=d.current)==null||v.call(d,E))}else f(y)},[h,a,f,d]);return[m,p]}function B2({defaultProp:a,onChange:l}){const[r,o]=b.useState(a),u=b.useRef(r),f=b.useRef(l);return U2(()=>{f.current=l},[l]),b.useEffect(()=>{var d;u.current!==r&&((d=f.current)==null||d.call(f,r),u.current=r)},[r,u]),[r,o,f]}function H2(a){return typeof a=="function"}function Bo(a){const l=V2(a),r=b.forwardRef((o,u)=>{const{children:f,...d}=o,h=b.Children.toArray(f),m=h.find(G2);if(m){const p=m.props.children,y=h.map(v=>v===m?b.Children.count(p)>1?b.Children.only(null):b.isValidElement(p)?p.props.children:null:v);return C.jsx(l,{...d,ref:u,children:b.isValidElement(p)?b.cloneElement(p,void 0,y):null})}return C.jsx(l,{...d,ref:u,children:f})});return r.displayName=`${a}.Slot`,r}function V2(a){const l=b.forwardRef((r,o)=>{const{children:u,...f}=r;if(b.isValidElement(u)){const d=q2(u),h=Y2(f,u.props);return u.type!==b.Fragment&&(h.ref=o?_f(o,d):d),b.cloneElement(u,h)}return b.Children.count(u)>1?b.Children.only(null):null});return l.displayName=`${a}.SlotClone`,l}var $2=Symbol("radix.slottable");function G2(a){return b.isValidElement(a)&&typeof a.type=="function"&&"__radixId"in a.type&&a.type.__radixId===$2}function Y2(a,l){const r={...l};for(const o in l){const u=a[o],f=l[o];/^on[A-Z]/.test(o)?u&&f?r[o]=(...h)=>{const m=f(...h);return u(...h),m}:u&&(r[o]=u):o==="style"?r[o]={...u,...f}:o==="className"&&(r[o]=[u,f].filter(Boolean).join(" "))}return{...a,...r}}function q2(a){var o,u;let l=(o=Object.getOwnPropertyDescriptor(a.props,"ref"))==null?void 0:o.get,r=l&&"isReactWarning"in l&&l.isReactWarning;return r?a.ref:(l=(u=Object.getOwnPropertyDescriptor(a,"ref"))==null?void 0:u.get,r=l&&"isReactWarning"in l&&l.isReactWarning,r?a.props.ref:a.props.ref||a.ref)}var K2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ze=K2.reduce((a,l)=>{const r=Bo(`Primitive.${l}`),o=b.forwardRef((u,f)=>{const{asChild:d,...h}=u,m=d?r:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),C.jsx(m,{...h,ref:f})});return o.displayName=`Primitive.${l}`,{...a,[l]:o}},{});function P2(a,l){a&&tr.flushSync(()=>a.dispatchEvent(l))}function Ka(a){const l=b.useRef(a);return b.useEffect(()=>{l.current=a}),b.useMemo(()=>(...r)=>{var o;return(o=l.current)==null?void 0:o.call(l,...r)},[])}function X2(a,l=globalThis==null?void 0:globalThis.document){const r=Ka(a);b.useEffect(()=>{const o=u=>{u.key==="Escape"&&r(u)};return l.addEventListener("keydown",o,{capture:!0}),()=>l.removeEventListener("keydown",o,{capture:!0})},[r,l])}var Q2="DismissableLayer",tf="dismissableLayer.update",Z2="dismissableLayer.pointerDownOutside",F2="dismissableLayer.focusOutside",vg,Vv=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$v=b.forwardRef((a,l)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,...m}=a,p=b.useContext(Vv),[y,v]=b.useState(null),E=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=b.useState({}),w=ft(l,V=>v(V)),x=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),N=x.indexOf(T),j=y?x.indexOf(y):-1,_=p.layersWithOutsidePointerEventsDisabled.size>0,k=j>=N,G=W2(V=>{const F=V.target,W=[...p.branches].some(ee=>ee.contains(F));!k||W||(u==null||u(V),d==null||d(V),V.defaultPrevented||h==null||h())},E),X=ew(V=>{const F=V.target;[...p.branches].some(ee=>ee.contains(F))||(f==null||f(V),d==null||d(V),V.defaultPrevented||h==null||h())},E);return X2(V=>{j===p.layers.size-1&&(o==null||o(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},E),b.useEffect(()=>{if(y)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(vg=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(y)),p.layers.add(y),yg(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(E.body.style.pointerEvents=vg)}},[y,E,r,p]),b.useEffect(()=>()=>{y&&(p.layers.delete(y),p.layersWithOutsidePointerEventsDisabled.delete(y),yg())},[y,p]),b.useEffect(()=>{const V=()=>R({});return document.addEventListener(tf,V),()=>document.removeEventListener(tf,V)},[]),C.jsx(Ze.div,{...m,ref:w,style:{pointerEvents:_?k?"auto":"none":void 0,...a.style},onFocusCapture:tt(a.onFocusCapture,X.onFocusCapture),onBlurCapture:tt(a.onBlurCapture,X.onBlurCapture),onPointerDownCapture:tt(a.onPointerDownCapture,G.onPointerDownCapture)})});$v.displayName=Q2;var J2="DismissableLayerBranch",I2=b.forwardRef((a,l)=>{const r=b.useContext(Vv),o=b.useRef(null),u=ft(l,o);return b.useEffect(()=>{const f=o.current;if(f)return r.branches.add(f),()=>{r.branches.delete(f)}},[r.branches]),C.jsx(Ze.div,{...a,ref:u})});I2.displayName=J2;function W2(a,l=globalThis==null?void 0:globalThis.document){const r=Ka(a),o=b.useRef(!1),u=b.useRef(()=>{});return b.useEffect(()=>{const f=h=>{if(h.target&&!o.current){let m=function(){Gv(Z2,r,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=m,l.addEventListener("click",u.current,{once:!0})):m()}else l.removeEventListener("click",u.current);o.current=!1},d=window.setTimeout(()=>{l.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(d),l.removeEventListener("pointerdown",f),l.removeEventListener("click",u.current)}},[l,r]),{onPointerDownCapture:()=>o.current=!0}}function ew(a,l=globalThis==null?void 0:globalThis.document){const r=Ka(a),o=b.useRef(!1);return b.useEffect(()=>{const u=f=>{f.target&&!o.current&&Gv(F2,r,{originalEvent:f},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function yg(){const a=new CustomEvent(tf);document.dispatchEvent(a)}function Gv(a,l,r,{discrete:o}){const u=r.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:r});l&&u.addEventListener(a,l,{once:!0}),o?P2(u,f):u.dispatchEvent(f)}var Lc="focusScope.autoFocusOnMount",zc="focusScope.autoFocusOnUnmount",bg={bubbles:!1,cancelable:!0},tw="FocusScope",Yv=b.forwardRef((a,l)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:u,onUnmountAutoFocus:f,...d}=a,[h,m]=b.useState(null),p=Ka(u),y=Ka(f),v=b.useRef(null),E=ft(l,x=>m(x)),R=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(o){let x=function(_){if(R.paused||!h)return;const k=_.target;h.contains(k)?v.current=k:pa(v.current,{select:!0})},T=function(_){if(R.paused||!h)return;const k=_.relatedTarget;k!==null&&(h.contains(k)||pa(v.current,{select:!0}))},N=function(_){if(document.activeElement===document.body)for(const G of _)G.removedNodes.length>0&&pa(h)};document.addEventListener("focusin",x),document.addEventListener("focusout",T);const j=new MutationObserver(N);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",T),j.disconnect()}}},[o,h,R.paused]),b.useEffect(()=>{if(h){xg.add(R);const x=document.activeElement;if(!h.contains(x)){const N=new CustomEvent(Lc,bg);h.addEventListener(Lc,p),h.dispatchEvent(N),N.defaultPrevented||(nw(ow(qv(h)),{select:!0}),document.activeElement===x&&pa(h))}return()=>{h.removeEventListener(Lc,p),setTimeout(()=>{const N=new CustomEvent(zc,bg);h.addEventListener(zc,y),h.dispatchEvent(N),N.defaultPrevented||pa(x??document.body,{select:!0}),h.removeEventListener(zc,y),xg.remove(R)},0)}}},[h,p,y,R]);const w=b.useCallback(x=>{if(!r&&!o||R.paused)return;const T=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,N=document.activeElement;if(T&&N){const j=x.currentTarget,[_,k]=aw(j);_&&k?!x.shiftKey&&N===k?(x.preventDefault(),r&&pa(_,{select:!0})):x.shiftKey&&N===_&&(x.preventDefault(),r&&pa(k,{select:!0})):N===j&&x.preventDefault()}},[r,o,R.paused]);return C.jsx(Ze.div,{tabIndex:-1,...d,ref:E,onKeyDown:w})});Yv.displayName=tw;function nw(a,{select:l=!1}={}){const r=document.activeElement;for(const o of a)if(pa(o,{select:l}),document.activeElement!==r)return}function aw(a){const l=qv(a),r=Sg(l,a),o=Sg(l.reverse(),a);return[r,o]}function qv(a){const l=[],r=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const u=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||u?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)l.push(r.currentNode);return l}function Sg(a,l){for(const r of a)if(!lw(r,{upTo:l}))return r}function lw(a,{upTo:l}){if(getComputedStyle(a).visibility==="hidden")return!0;for(;a;){if(l!==void 0&&a===l)return!1;if(getComputedStyle(a).display==="none")return!0;a=a.parentElement}return!1}function iw(a){return a instanceof HTMLInputElement&&"select"in a}function pa(a,{select:l=!1}={}){if(a&&a.focus){const r=document.activeElement;a.focus({preventScroll:!0}),a!==r&&iw(a)&&l&&a.select()}}var xg=rw();function rw(){let a=[];return{add(l){const r=a[0];l!==r&&(r==null||r.pause()),a=Eg(a,l),a.unshift(l)},remove(l){var r;a=Eg(a,l),(r=a[0])==null||r.resume()}}}function Eg(a,l){const r=[...a],o=r.indexOf(l);return o!==-1&&r.splice(o,1),r}function ow(a){return a.filter(l=>l.tagName!=="A")}var sw="Portal",Kv=b.forwardRef((a,l)=>{var h;const{container:r,...o}=a,[u,f]=b.useState(!1);Ct(()=>f(!0),[]);const d=r||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?EE.createPortal(C.jsx(Ze.div,{...o,ref:l}),d):null});Kv.displayName=sw;var kc=0;function uw(){b.useEffect(()=>{const a=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",a[0]??wg()),document.body.insertAdjacentElement("beforeend",a[1]??wg()),kc++,()=>{kc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),kc--}},[])}function wg(){const a=document.createElement("span");return a.setAttribute("data-radix-focus-guard",""),a.tabIndex=0,a.style.outline="none",a.style.opacity="0",a.style.position="fixed",a.style.pointerEvents="none",a}var hn=function(){return hn=Object.assign||function(l){for(var r,o=1,u=arguments.length;o<u;o++){r=arguments[o];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(l[f]=r[f])}return l},hn.apply(this,arguments)};function Pv(a,l){var r={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&l.indexOf(o)<0&&(r[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(a);u<o.length;u++)l.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(a,o[u])&&(r[o[u]]=a[o[u]]);return r}function cw(a,l,r){if(r||arguments.length===2)for(var o=0,u=l.length,f;o<u;o++)(f||!(o in l))&&(f||(f=Array.prototype.slice.call(l,0,o)),f[o]=l[o]);return a.concat(f||Array.prototype.slice.call(l))}var Do="right-scroll-bar-position",jo="width-before-scroll-bar",fw="with-scroll-bars-hidden",dw="--removed-body-scroll-bar-size";function Uc(a,l){return typeof a=="function"?a(l):a&&(a.current=l),a}function hw(a,l){var r=b.useState(function(){return{value:a,callback:l,facade:{get current(){return r.value},set current(o){var u=r.value;u!==o&&(r.value=o,r.callback(o,u))}}}})[0];return r.callback=l,r.facade}var mw=typeof window<"u"?b.useLayoutEffect:b.useEffect,Cg=new WeakMap;function pw(a,l){var r=hw(null,function(o){return a.forEach(function(u){return Uc(u,o)})});return mw(function(){var o=Cg.get(r);if(o){var u=new Set(o),f=new Set(a),d=r.current;u.forEach(function(h){f.has(h)||Uc(h,null)}),f.forEach(function(h){u.has(h)||Uc(h,d)})}Cg.set(r,a)},[a]),r}function gw(a){return a}function vw(a,l){l===void 0&&(l=gw);var r=[],o=!1,u={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:a},useMedium:function(f){var d=l(f,o);return r.push(d),function(){r=r.filter(function(h){return h!==d})}},assignSyncMedium:function(f){for(o=!0;r.length;){var d=r;r=[],d.forEach(f)}r={push:function(h){return f(h)},filter:function(){return r}}},assignMedium:function(f){o=!0;var d=[];if(r.length){var h=r;r=[],h.forEach(f),d=r}var m=function(){var y=d;d=[],y.forEach(f)},p=function(){return Promise.resolve().then(m)};p(),r={push:function(y){d.push(y),p()},filter:function(y){return d=d.filter(y),r}}}};return u}function yw(a){a===void 0&&(a={});var l=vw(null);return l.options=hn({async:!0,ssr:!1},a),l}var Xv=function(a){var l=a.sideCar,r=Pv(a,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=l.read();if(!o)throw new Error("Sidecar medium not found");return b.createElement(o,hn({},r))};Xv.isSideCarExport=!0;function bw(a,l){return a.useMedium(l),Xv}var Qv=yw(),Bc=function(){},Wo=b.forwardRef(function(a,l){var r=b.useRef(null),o=b.useState({onScrollCapture:Bc,onWheelCapture:Bc,onTouchMoveCapture:Bc}),u=o[0],f=o[1],d=a.forwardProps,h=a.children,m=a.className,p=a.removeScrollBar,y=a.enabled,v=a.shards,E=a.sideCar,R=a.noRelative,w=a.noIsolation,x=a.inert,T=a.allowPinchZoom,N=a.as,j=N===void 0?"div":N,_=a.gapMode,k=Pv(a,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),G=E,X=pw([r,l]),V=hn(hn({},k),u);return b.createElement(b.Fragment,null,y&&b.createElement(G,{sideCar:Qv,removeScrollBar:p,shards:v,noRelative:R,noIsolation:w,inert:x,setCallbacks:f,allowPinchZoom:!!T,lockRef:r,gapMode:_}),d?b.cloneElement(b.Children.only(h),hn(hn({},V),{ref:X})):b.createElement(j,hn({},V,{className:m,ref:X}),h))});Wo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wo.classNames={fullWidth:jo,zeroRight:Do};var Sw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function xw(){if(!document)return null;var a=document.createElement("style");a.type="text/css";var l=Sw();return l&&a.setAttribute("nonce",l),a}function Ew(a,l){a.styleSheet?a.styleSheet.cssText=l:a.appendChild(document.createTextNode(l))}function ww(a){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(a)}var Cw=function(){var a=0,l=null;return{add:function(r){a==0&&(l=xw())&&(Ew(l,r),ww(l)),a++},remove:function(){a--,!a&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},Rw=function(){var a=Cw();return function(l,r){b.useEffect(function(){return a.add(l),function(){a.remove()}},[l&&r])}},Zv=function(){var a=Rw(),l=function(r){var o=r.styles,u=r.dynamic;return a(o,u),null};return l},Tw={left:0,top:0,right:0,gap:0},Hc=function(a){return parseInt(a||"",10)||0},Aw=function(a){var l=window.getComputedStyle(document.body),r=l[a==="padding"?"paddingLeft":"marginLeft"],o=l[a==="padding"?"paddingTop":"marginTop"],u=l[a==="padding"?"paddingRight":"marginRight"];return[Hc(r),Hc(o),Hc(u)]},Ow=function(a){if(a===void 0&&(a="margin"),typeof window>"u")return Tw;var l=Aw(a),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,o-r+l[2]-l[0])}},_w=Zv(),Bl="data-scroll-locked",Nw=function(a,l,r,o){var u=a.left,f=a.top,d=a.right,h=a.gap;return r===void 0&&(r="margin"),`
|
|
192
|
-
.`.concat(fw,` {
|
|
193
|
-
overflow: hidden `).concat(o,`;
|
|
194
|
-
padding-right: `).concat(h,"px ").concat(o,`;
|
|
195
|
-
}
|
|
196
|
-
body[`).concat(Bl,`] {
|
|
197
|
-
overflow: hidden `).concat(o,`;
|
|
198
|
-
overscroll-behavior: contain;
|
|
199
|
-
`).concat([l&&"position: relative ".concat(o,";"),r==="margin"&&`
|
|
200
|
-
padding-left: `.concat(u,`px;
|
|
201
|
-
padding-top: `).concat(f,`px;
|
|
202
|
-
padding-right: `).concat(d,`px;
|
|
203
|
-
margin-left:0;
|
|
204
|
-
margin-top:0;
|
|
205
|
-
margin-right: `).concat(h,"px ").concat(o,`;
|
|
206
|
-
`),r==="padding"&&"padding-right: ".concat(h,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.`).concat(Do,` {
|
|
210
|
-
right: `).concat(h,"px ").concat(o,`;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.`).concat(jo,` {
|
|
214
|
-
margin-right: `).concat(h,"px ").concat(o,`;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.`).concat(Do," .").concat(Do,` {
|
|
218
|
-
right: 0 `).concat(o,`;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.`).concat(jo," .").concat(jo,` {
|
|
222
|
-
margin-right: 0 `).concat(o,`;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
body[`).concat(Bl,`] {
|
|
226
|
-
`).concat(dw,": ").concat(h,`px;
|
|
227
|
-
}
|
|
228
|
-
`)},Rg=function(){var a=parseInt(document.body.getAttribute(Bl)||"0",10);return isFinite(a)?a:0},Dw=function(){b.useEffect(function(){return document.body.setAttribute(Bl,(Rg()+1).toString()),function(){var a=Rg()-1;a<=0?document.body.removeAttribute(Bl):document.body.setAttribute(Bl,a.toString())}},[])},jw=function(a){var l=a.noRelative,r=a.noImportant,o=a.gapMode,u=o===void 0?"margin":o;Dw();var f=b.useMemo(function(){return Ow(u)},[u]);return b.createElement(_w,{styles:Nw(f,!l,u,r?"":"!important")})},nf=!1;if(typeof window<"u")try{var wo=Object.defineProperty({},"passive",{get:function(){return nf=!0,!0}});window.addEventListener("test",wo,wo),window.removeEventListener("test",wo,wo)}catch{nf=!1}var zl=nf?{passive:!1}:!1,Mw=function(a){return a.tagName==="TEXTAREA"},Fv=function(a,l){if(!(a instanceof Element))return!1;var r=window.getComputedStyle(a);return r[l]!=="hidden"&&!(r.overflowY===r.overflowX&&!Mw(a)&&r[l]==="visible")},Lw=function(a){return Fv(a,"overflowY")},zw=function(a){return Fv(a,"overflowX")},Tg=function(a,l){var r=l.ownerDocument,o=l;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var u=Jv(a,o);if(u){var f=Iv(a,o),d=f[1],h=f[2];if(d>h)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},kw=function(a){var l=a.scrollTop,r=a.scrollHeight,o=a.clientHeight;return[l,r,o]},Uw=function(a){var l=a.scrollLeft,r=a.scrollWidth,o=a.clientWidth;return[l,r,o]},Jv=function(a,l){return a==="v"?Lw(l):zw(l)},Iv=function(a,l){return a==="v"?kw(l):Uw(l)},Bw=function(a,l){return a==="h"&&l==="rtl"?-1:1},Hw=function(a,l,r,o,u){var f=Bw(a,window.getComputedStyle(l).direction),d=f*o,h=r.target,m=l.contains(h),p=!1,y=d>0,v=0,E=0;do{if(!h)break;var R=Iv(a,h),w=R[0],x=R[1],T=R[2],N=x-T-f*w;(w||N)&&Jv(a,h)&&(v+=N,E+=w);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!m&&h!==document.body||m&&(l.contains(h)||l===h));return(y&&Math.abs(v)<1||!y&&Math.abs(E)<1)&&(p=!0),p},Co=function(a){return"changedTouches"in a?[a.changedTouches[0].clientX,a.changedTouches[0].clientY]:[0,0]},Ag=function(a){return[a.deltaX,a.deltaY]},Og=function(a){return a&&"current"in a?a.current:a},Vw=function(a,l){return a[0]===l[0]&&a[1]===l[1]},$w=function(a){return`
|
|
229
|
-
.block-interactivity-`.concat(a,` {pointer-events: none;}
|
|
230
|
-
.allow-interactivity-`).concat(a,` {pointer-events: all;}
|
|
231
|
-
`)},Gw=0,kl=[];function Yw(a){var l=b.useRef([]),r=b.useRef([0,0]),o=b.useRef(),u=b.useState(Gw++)[0],f=b.useState(Zv)[0],d=b.useRef(a);b.useEffect(function(){d.current=a},[a]),b.useEffect(function(){if(a.inert){document.body.classList.add("block-interactivity-".concat(u));var x=cw([a.lockRef.current],(a.shards||[]).map(Og),!0).filter(Boolean);return x.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),x.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[a.inert,a.lockRef.current,a.shards]);var h=b.useCallback(function(x,T){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!d.current.allowPinchZoom;var N=Co(x),j=r.current,_="deltaX"in x?x.deltaX:j[0]-N[0],k="deltaY"in x?x.deltaY:j[1]-N[1],G,X=x.target,V=Math.abs(_)>Math.abs(k)?"h":"v";if("touches"in x&&V==="h"&&X.type==="range")return!1;var F=window.getSelection(),W=F&&F.anchorNode,ee=W?W===X||W.contains(X):!1;if(ee)return!1;var re=Tg(V,X);if(!re)return!0;if(re?G=V:(G=V==="v"?"h":"v",re=Tg(V,X)),!re)return!1;if(!o.current&&"changedTouches"in x&&(_||k)&&(o.current=G),!G)return!0;var fe=o.current||G;return Hw(fe,T,x,fe==="h"?_:k)},[]),m=b.useCallback(function(x){var T=x;if(!(!kl.length||kl[kl.length-1]!==f)){var N="deltaY"in T?Ag(T):Co(T),j=l.current.filter(function(G){return G.name===T.type&&(G.target===T.target||T.target===G.shadowParent)&&Vw(G.delta,N)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var _=(d.current.shards||[]).map(Og).filter(Boolean).filter(function(G){return G.contains(T.target)}),k=_.length>0?h(T,_[0]):!d.current.noIsolation;k&&T.cancelable&&T.preventDefault()}}},[]),p=b.useCallback(function(x,T,N,j){var _={name:x,delta:T,target:N,should:j,shadowParent:qw(N)};l.current.push(_),setTimeout(function(){l.current=l.current.filter(function(k){return k!==_})},1)},[]),y=b.useCallback(function(x){r.current=Co(x),o.current=void 0},[]),v=b.useCallback(function(x){p(x.type,Ag(x),x.target,h(x,a.lockRef.current))},[]),E=b.useCallback(function(x){p(x.type,Co(x),x.target,h(x,a.lockRef.current))},[]);b.useEffect(function(){return kl.push(f),a.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:E}),document.addEventListener("wheel",m,zl),document.addEventListener("touchmove",m,zl),document.addEventListener("touchstart",y,zl),function(){kl=kl.filter(function(x){return x!==f}),document.removeEventListener("wheel",m,zl),document.removeEventListener("touchmove",m,zl),document.removeEventListener("touchstart",y,zl)}},[]);var R=a.removeScrollBar,w=a.inert;return b.createElement(b.Fragment,null,w?b.createElement(f,{styles:$w(u)}):null,R?b.createElement(jw,{noRelative:a.noRelative,gapMode:a.gapMode}):null)}function qw(a){for(var l=null;a!==null;)a instanceof ShadowRoot&&(l=a.host,a=a.host),a=a.parentNode;return l}const Kw=bw(Qv,Yw);var Wv=b.forwardRef(function(a,l){return b.createElement(Wo,hn({},a,{ref:l,sideCar:Kw}))});Wv.classNames=Wo.classNames;var Pw=function(a){if(typeof document>"u")return null;var l=Array.isArray(a)?a[0]:a;return l.ownerDocument.body},Ul=new WeakMap,Ro=new WeakMap,To={},Vc=0,ey=function(a){return a&&(a.host||ey(a.parentNode))},Xw=function(a,l){return l.map(function(r){if(a.contains(r))return r;var o=ey(r);return o&&a.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",a,". Doing nothing"),null)}).filter(function(r){return!!r})},Qw=function(a,l,r,o){var u=Xw(l,Array.isArray(a)?a:[a]);To[r]||(To[r]=new WeakMap);var f=To[r],d=[],h=new Set,m=new Set(u),p=function(v){!v||h.has(v)||(h.add(v),p(v.parentNode))};u.forEach(p);var y=function(v){!v||m.has(v)||Array.prototype.forEach.call(v.children,function(E){if(h.has(E))y(E);else try{var R=E.getAttribute(o),w=R!==null&&R!=="false",x=(Ul.get(E)||0)+1,T=(f.get(E)||0)+1;Ul.set(E,x),f.set(E,T),d.push(E),x===1&&w&&Ro.set(E,!0),T===1&&E.setAttribute(r,"true"),w||E.setAttribute(o,"true")}catch(N){console.error("aria-hidden: cannot operate on ",E,N)}})};return y(l),h.clear(),Vc++,function(){d.forEach(function(v){var E=Ul.get(v)-1,R=f.get(v)-1;Ul.set(v,E),f.set(v,R),E||(Ro.has(v)||v.removeAttribute(o),Ro.delete(v)),R||v.removeAttribute(r)}),Vc--,Vc||(Ul=new WeakMap,Ul=new WeakMap,Ro=new WeakMap,To={})}},Zw=function(a,l,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(a)?a:[a]),u=Pw(a);return u?(o.push.apply(o,Array.from(u.querySelectorAll("[aria-live], script"))),Qw(o,u,r,"aria-hidden")):function(){return null}};function _g(a,[l,r]){return Math.min(r,Math.max(l,a))}function Fw(a){const l=a+"CollectionProvider",[r,o]=Nf(l),[u,f]=r(l,{collectionRef:{current:null},itemMap:new Map}),d=x=>{const{scope:T,children:N}=x,j=kt.useRef(null),_=kt.useRef(new Map).current;return C.jsx(u,{scope:T,itemMap:_,collectionRef:j,children:N})};d.displayName=l;const h=a+"CollectionSlot",m=Bo(h),p=kt.forwardRef((x,T)=>{const{scope:N,children:j}=x,_=f(h,N),k=ft(T,_.collectionRef);return C.jsx(m,{ref:k,children:j})});p.displayName=h;const y=a+"CollectionItemSlot",v="data-radix-collection-item",E=Bo(y),R=kt.forwardRef((x,T)=>{const{scope:N,children:j,..._}=x,k=kt.useRef(null),G=ft(T,k),X=f(y,N);return kt.useEffect(()=>(X.itemMap.set(k,{ref:k,..._}),()=>void X.itemMap.delete(k))),C.jsx(E,{[v]:"",ref:G,children:j})});R.displayName=y;function w(x){const T=f(a+"CollectionConsumer",x);return kt.useCallback(()=>{const j=T.collectionRef.current;if(!j)return[];const _=Array.from(j.querySelectorAll(`[${v}]`));return Array.from(T.itemMap.values()).sort((X,V)=>_.indexOf(X.ref.current)-_.indexOf(V.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:p,ItemSlot:R},w,o]}var Jw=b.createContext(void 0);function Iw(a){const l=b.useContext(Jw);return a||l||"ltr"}const Ww=["top","right","bottom","left"],ya=Math.min,Ut=Math.max,Ho=Math.round,Ao=Math.floor,vn=a=>({x:a,y:a}),eC={left:"right",right:"left",bottom:"top",top:"bottom"};function af(a,l,r){return Ut(a,ya(l,r))}function Vn(a,l){return typeof a=="function"?a(l):a}function $n(a){return a.split("-")[0]}function ql(a){return a.split("-")[1]}function jf(a){return a==="x"?"y":"x"}function Mf(a){return a==="y"?"height":"width"}function mn(a){const l=a[0];return l==="t"||l==="b"?"y":"x"}function Lf(a){return jf(mn(a))}function tC(a,l,r){r===void 0&&(r=!1);const o=ql(a),u=Lf(a),f=Mf(u);let d=u==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return l.reference[f]>l.floating[f]&&(d=Vo(d)),[d,Vo(d)]}function nC(a){const l=Vo(a);return[lf(a),l,lf(l)]}function lf(a){return a.includes("start")?a.replace("start","end"):a.replace("end","start")}const Ng=["left","right"],Dg=["right","left"],aC=["top","bottom"],lC=["bottom","top"];function iC(a,l,r){switch(a){case"top":case"bottom":return r?l?Dg:Ng:l?Ng:Dg;case"left":case"right":return l?aC:lC;default:return[]}}function rC(a,l,r,o){const u=ql(a);let f=iC($n(a),r==="start",o);return u&&(f=f.map(d=>d+"-"+u),l&&(f=f.concat(f.map(lf)))),f}function Vo(a){const l=$n(a);return eC[l]+a.slice(l.length)}function oC(a){return{top:0,right:0,bottom:0,left:0,...a}}function ty(a){return typeof a!="number"?oC(a):{top:a,right:a,bottom:a,left:a}}function $o(a){const{x:l,y:r,width:o,height:u}=a;return{width:o,height:u,top:r,left:l,right:l+o,bottom:r+u,x:l,y:r}}function jg(a,l,r){let{reference:o,floating:u}=a;const f=mn(l),d=Lf(l),h=Mf(d),m=$n(l),p=f==="y",y=o.x+o.width/2-u.width/2,v=o.y+o.height/2-u.height/2,E=o[h]/2-u[h]/2;let R;switch(m){case"top":R={x:y,y:o.y-u.height};break;case"bottom":R={x:y,y:o.y+o.height};break;case"right":R={x:o.x+o.width,y:v};break;case"left":R={x:o.x-u.width,y:v};break;default:R={x:o.x,y:o.y}}switch(ql(l)){case"start":R[d]-=E*(r&&p?-1:1);break;case"end":R[d]+=E*(r&&p?-1:1);break}return R}async function sC(a,l){var r;l===void 0&&(l={});const{x:o,y:u,platform:f,rects:d,elements:h,strategy:m}=a,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:E=!1,padding:R=0}=Vn(l,a),w=ty(R),T=h[E?v==="floating"?"reference":"floating":v],N=$o(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(T)))==null||r?T:T.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:p,rootBoundary:y,strategy:m})),j=v==="floating"?{x:o,y:u,width:d.floating.width,height:d.floating.height}:d.reference,_=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),k=await(f.isElement==null?void 0:f.isElement(_))?await(f.getScale==null?void 0:f.getScale(_))||{x:1,y:1}:{x:1,y:1},G=$o(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:_,strategy:m}):j);return{top:(N.top-G.top+w.top)/k.y,bottom:(G.bottom-N.bottom+w.bottom)/k.y,left:(N.left-G.left+w.left)/k.x,right:(G.right-N.right+w.right)/k.x}}const uC=50,cC=async(a,l,r)=>{const{placement:o="bottom",strategy:u="absolute",middleware:f=[],platform:d}=r,h=d.detectOverflow?d:{...d,detectOverflow:sC},m=await(d.isRTL==null?void 0:d.isRTL(l));let p=await d.getElementRects({reference:a,floating:l,strategy:u}),{x:y,y:v}=jg(p,o,m),E=o,R=0;const w={};for(let x=0;x<f.length;x++){const T=f[x];if(!T)continue;const{name:N,fn:j}=T,{x:_,y:k,data:G,reset:X}=await j({x:y,y:v,initialPlacement:o,placement:E,strategy:u,middlewareData:w,rects:p,platform:h,elements:{reference:a,floating:l}});y=_??y,v=k??v,w[N]={...w[N],...G},X&&R<uC&&(R++,typeof X=="object"&&(X.placement&&(E=X.placement),X.rects&&(p=X.rects===!0?await d.getElementRects({reference:a,floating:l,strategy:u}):X.rects),{x:y,y:v}=jg(p,E,m)),x=-1)}return{x:y,y:v,placement:E,strategy:u,middlewareData:w}},fC=a=>({name:"arrow",options:a,async fn(l){const{x:r,y:o,placement:u,rects:f,platform:d,elements:h,middlewareData:m}=l,{element:p,padding:y=0}=Vn(a,l)||{};if(p==null)return{};const v=ty(y),E={x:r,y:o},R=Lf(u),w=Mf(R),x=await d.getDimensions(p),T=R==="y",N=T?"top":"left",j=T?"bottom":"right",_=T?"clientHeight":"clientWidth",k=f.reference[w]+f.reference[R]-E[R]-f.floating[w],G=E[R]-f.reference[R],X=await(d.getOffsetParent==null?void 0:d.getOffsetParent(p));let V=X?X[_]:0;(!V||!await(d.isElement==null?void 0:d.isElement(X)))&&(V=h.floating[_]||f.floating[w]);const F=k/2-G/2,W=V/2-x[w]/2-1,ee=ya(v[N],W),re=ya(v[j],W),fe=ee,se=V-x[w]-re,le=V/2-x[w]/2+F,de=af(fe,le,se),L=!m.arrow&&ql(u)!=null&&le!==de&&f.reference[w]/2-(le<fe?ee:re)-x[w]/2<0,K=L?le<fe?le-fe:le-se:0;return{[R]:E[R]+K,data:{[R]:de,centerOffset:le-de-K,...L&&{alignmentOffset:K}},reset:L}}}),dC=function(a){return a===void 0&&(a={}),{name:"flip",options:a,async fn(l){var r,o;const{placement:u,middlewareData:f,rects:d,initialPlacement:h,platform:m,elements:p}=l,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:E,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...T}=Vn(a,l);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const N=$n(u),j=mn(h),_=$n(h)===h,k=await(m.isRTL==null?void 0:m.isRTL(p.floating)),G=E||(_||!x?[Vo(h)]:nC(h)),X=w!=="none";!E&&X&&G.push(...rC(h,x,w,k));const V=[h,...G],F=await m.detectOverflow(l,T),W=[];let ee=((o=f.flip)==null?void 0:o.overflows)||[];if(y&&W.push(F[N]),v){const le=tC(u,d,k);W.push(F[le[0]],F[le[1]])}if(ee=[...ee,{placement:u,overflows:W}],!W.every(le=>le<=0)){var re,fe;const le=(((re=f.flip)==null?void 0:re.index)||0)+1,de=V[le];if(de&&(!(v==="alignment"?j!==mn(de):!1)||ee.every(Q=>mn(Q.placement)===j?Q.overflows[0]>0:!0)))return{data:{index:le,overflows:ee},reset:{placement:de}};let L=(fe=ee.filter(K=>K.overflows[0]<=0).sort((K,Q)=>K.overflows[1]-Q.overflows[1])[0])==null?void 0:fe.placement;if(!L)switch(R){case"bestFit":{var se;const K=(se=ee.filter(Q=>{if(X){const ae=mn(Q.placement);return ae===j||ae==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(ae=>ae>0).reduce((ae,me)=>ae+me,0)]).sort((Q,ae)=>Q[1]-ae[1])[0])==null?void 0:se[0];K&&(L=K);break}case"initialPlacement":L=h;break}if(u!==L)return{reset:{placement:L}}}return{}}}};function Mg(a,l){return{top:a.top-l.height,right:a.right-l.width,bottom:a.bottom-l.height,left:a.left-l.width}}function Lg(a){return Ww.some(l=>a[l]>=0)}const hC=function(a){return a===void 0&&(a={}),{name:"hide",options:a,async fn(l){const{rects:r,platform:o}=l,{strategy:u="referenceHidden",...f}=Vn(a,l);switch(u){case"referenceHidden":{const d=await o.detectOverflow(l,{...f,elementContext:"reference"}),h=Mg(d,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Lg(h)}}}case"escaped":{const d=await o.detectOverflow(l,{...f,altBoundary:!0}),h=Mg(d,r.floating);return{data:{escapedOffsets:h,escaped:Lg(h)}}}default:return{}}}}},ny=new Set(["left","top"]);async function mC(a,l){const{placement:r,platform:o,elements:u}=a,f=await(o.isRTL==null?void 0:o.isRTL(u.floating)),d=$n(r),h=ql(r),m=mn(r)==="y",p=ny.has(d)?-1:1,y=f&&m?-1:1,v=Vn(l,a);let{mainAxis:E,crossAxis:R,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return h&&typeof w=="number"&&(R=h==="end"?w*-1:w),m?{x:R*y,y:E*p}:{x:E*p,y:R*y}}const pC=function(a){return a===void 0&&(a=0),{name:"offset",options:a,async fn(l){var r,o;const{x:u,y:f,placement:d,middlewareData:h}=l,m=await mC(l,a);return d===((r=h.offset)==null?void 0:r.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:u+m.x,y:f+m.y,data:{...m,placement:d}}}}},gC=function(a){return a===void 0&&(a={}),{name:"shift",options:a,async fn(l){const{x:r,y:o,placement:u,platform:f}=l,{mainAxis:d=!0,crossAxis:h=!1,limiter:m={fn:N=>{let{x:j,y:_}=N;return{x:j,y:_}}},...p}=Vn(a,l),y={x:r,y:o},v=await f.detectOverflow(l,p),E=mn($n(u)),R=jf(E);let w=y[R],x=y[E];if(d){const N=R==="y"?"top":"left",j=R==="y"?"bottom":"right",_=w+v[N],k=w-v[j];w=af(_,w,k)}if(h){const N=E==="y"?"top":"left",j=E==="y"?"bottom":"right",_=x+v[N],k=x-v[j];x=af(_,x,k)}const T=m.fn({...l,[R]:w,[E]:x});return{...T,data:{x:T.x-r,y:T.y-o,enabled:{[R]:d,[E]:h}}}}}},vC=function(a){return a===void 0&&(a={}),{options:a,fn(l){const{x:r,y:o,placement:u,rects:f,middlewareData:d}=l,{offset:h=0,mainAxis:m=!0,crossAxis:p=!0}=Vn(a,l),y={x:r,y:o},v=mn(u),E=jf(v);let R=y[E],w=y[v];const x=Vn(h,l),T=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(m){const _=E==="y"?"height":"width",k=f.reference[E]-f.floating[_]+T.mainAxis,G=f.reference[E]+f.reference[_]-T.mainAxis;R<k?R=k:R>G&&(R=G)}if(p){var N,j;const _=E==="y"?"width":"height",k=ny.has($n(u)),G=f.reference[v]-f.floating[_]+(k&&((N=d.offset)==null?void 0:N[v])||0)+(k?0:T.crossAxis),X=f.reference[v]+f.reference[_]+(k?0:((j=d.offset)==null?void 0:j[v])||0)-(k?T.crossAxis:0);w<G?w=G:w>X&&(w=X)}return{[E]:R,[v]:w}}}},yC=function(a){return a===void 0&&(a={}),{name:"size",options:a,async fn(l){var r,o;const{placement:u,rects:f,platform:d,elements:h}=l,{apply:m=()=>{},...p}=Vn(a,l),y=await d.detectOverflow(l,p),v=$n(u),E=ql(u),R=mn(u)==="y",{width:w,height:x}=f.floating;let T,N;v==="top"||v==="bottom"?(T=v,N=E===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(N=v,T=E==="end"?"top":"bottom");const j=x-y.top-y.bottom,_=w-y.left-y.right,k=ya(x-y[T],j),G=ya(w-y[N],_),X=!l.middlewareData.shift;let V=k,F=G;if((r=l.middlewareData.shift)!=null&&r.enabled.x&&(F=_),(o=l.middlewareData.shift)!=null&&o.enabled.y&&(V=j),X&&!E){const ee=Ut(y.left,0),re=Ut(y.right,0),fe=Ut(y.top,0),se=Ut(y.bottom,0);R?F=w-2*(ee!==0||re!==0?ee+re:Ut(y.left,y.right)):V=x-2*(fe!==0||se!==0?fe+se:Ut(y.top,y.bottom))}await m({...l,availableWidth:F,availableHeight:V});const W=await d.getDimensions(h.floating);return w!==W.width||x!==W.height?{reset:{rects:!0}}:{}}}};function es(){return typeof window<"u"}function Kl(a){return ay(a)?(a.nodeName||"").toLowerCase():"#document"}function Bt(a){var l;return(a==null||(l=a.ownerDocument)==null?void 0:l.defaultView)||window}function yn(a){var l;return(l=(ay(a)?a.ownerDocument:a.document)||window.document)==null?void 0:l.documentElement}function ay(a){return es()?a instanceof Node||a instanceof Bt(a).Node:!1}function on(a){return es()?a instanceof Element||a instanceof Bt(a).Element:!1}function Gn(a){return es()?a instanceof HTMLElement||a instanceof Bt(a).HTMLElement:!1}function zg(a){return!es()||typeof ShadowRoot>"u"?!1:a instanceof ShadowRoot||a instanceof Bt(a).ShadowRoot}function nr(a){const{overflow:l,overflowX:r,overflowY:o,display:u}=sn(a);return/auto|scroll|overlay|hidden|clip/.test(l+o+r)&&u!=="inline"&&u!=="contents"}function bC(a){return/^(table|td|th)$/.test(Kl(a))}function ts(a){try{if(a.matches(":popover-open"))return!0}catch{}try{return a.matches(":modal")}catch{return!1}}const SC=/transform|translate|scale|rotate|perspective|filter/,xC=/paint|layout|strict|content/,$a=a=>!!a&&a!=="none";let $c;function zf(a){const l=on(a)?sn(a):a;return $a(l.transform)||$a(l.translate)||$a(l.scale)||$a(l.rotate)||$a(l.perspective)||!kf()&&($a(l.backdropFilter)||$a(l.filter))||SC.test(l.willChange||"")||xC.test(l.contain||"")}function EC(a){let l=ba(a);for(;Gn(l)&&!$l(l);){if(zf(l))return l;if(ts(l))return null;l=ba(l)}return null}function kf(){return $c==null&&($c=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),$c}function $l(a){return/^(html|body|#document)$/.test(Kl(a))}function sn(a){return Bt(a).getComputedStyle(a)}function ns(a){return on(a)?{scrollLeft:a.scrollLeft,scrollTop:a.scrollTop}:{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function ba(a){if(Kl(a)==="html")return a;const l=a.assignedSlot||a.parentNode||zg(a)&&a.host||yn(a);return zg(l)?l.host:l}function ly(a){const l=ba(a);return $l(l)?a.ownerDocument?a.ownerDocument.body:a.body:Gn(l)&&nr(l)?l:ly(l)}function Fi(a,l,r){var o;l===void 0&&(l=[]),r===void 0&&(r=!0);const u=ly(a),f=u===((o=a.ownerDocument)==null?void 0:o.body),d=Bt(u);if(f){const h=rf(d);return l.concat(d,d.visualViewport||[],nr(u)?u:[],h&&r?Fi(h):[])}else return l.concat(u,Fi(u,[],r))}function rf(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function iy(a){const l=sn(a);let r=parseFloat(l.width)||0,o=parseFloat(l.height)||0;const u=Gn(a),f=u?a.offsetWidth:r,d=u?a.offsetHeight:o,h=Ho(r)!==f||Ho(o)!==d;return h&&(r=f,o=d),{width:r,height:o,$:h}}function Uf(a){return on(a)?a:a.contextElement}function Hl(a){const l=Uf(a);if(!Gn(l))return vn(1);const r=l.getBoundingClientRect(),{width:o,height:u,$:f}=iy(l);let d=(f?Ho(r.width):r.width)/o,h=(f?Ho(r.height):r.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const wC=vn(0);function ry(a){const l=Bt(a);return!kf()||!l.visualViewport?wC:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function CC(a,l,r){return l===void 0&&(l=!1),!r||l&&r!==Bt(a)?!1:l}function Pa(a,l,r,o){l===void 0&&(l=!1),r===void 0&&(r=!1);const u=a.getBoundingClientRect(),f=Uf(a);let d=vn(1);l&&(o?on(o)&&(d=Hl(o)):d=Hl(a));const h=CC(f,r,o)?ry(f):vn(0);let m=(u.left+h.x)/d.x,p=(u.top+h.y)/d.y,y=u.width/d.x,v=u.height/d.y;if(f){const E=Bt(f),R=o&&on(o)?Bt(o):o;let w=E,x=rf(w);for(;x&&o&&R!==w;){const T=Hl(x),N=x.getBoundingClientRect(),j=sn(x),_=N.left+(x.clientLeft+parseFloat(j.paddingLeft))*T.x,k=N.top+(x.clientTop+parseFloat(j.paddingTop))*T.y;m*=T.x,p*=T.y,y*=T.x,v*=T.y,m+=_,p+=k,w=Bt(x),x=rf(w)}}return $o({width:y,height:v,x:m,y:p})}function as(a,l){const r=ns(a).scrollLeft;return l?l.left+r:Pa(yn(a)).left+r}function oy(a,l){const r=a.getBoundingClientRect(),o=r.left+l.scrollLeft-as(a,r),u=r.top+l.scrollTop;return{x:o,y:u}}function RC(a){let{elements:l,rect:r,offsetParent:o,strategy:u}=a;const f=u==="fixed",d=yn(o),h=l?ts(l.floating):!1;if(o===d||h&&f)return r;let m={scrollLeft:0,scrollTop:0},p=vn(1);const y=vn(0),v=Gn(o);if((v||!v&&!f)&&((Kl(o)!=="body"||nr(d))&&(m=ns(o)),v)){const R=Pa(o);p=Hl(o),y.x=R.x+o.clientLeft,y.y=R.y+o.clientTop}const E=d&&!v&&!f?oy(d,m):vn(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-m.scrollLeft*p.x+y.x+E.x,y:r.y*p.y-m.scrollTop*p.y+y.y+E.y}}function TC(a){return Array.from(a.getClientRects())}function AC(a){const l=yn(a),r=ns(a),o=a.ownerDocument.body,u=Ut(l.scrollWidth,l.clientWidth,o.scrollWidth,o.clientWidth),f=Ut(l.scrollHeight,l.clientHeight,o.scrollHeight,o.clientHeight);let d=-r.scrollLeft+as(a);const h=-r.scrollTop;return sn(o).direction==="rtl"&&(d+=Ut(l.clientWidth,o.clientWidth)-u),{width:u,height:f,x:d,y:h}}const kg=25;function OC(a,l){const r=Bt(a),o=yn(a),u=r.visualViewport;let f=o.clientWidth,d=o.clientHeight,h=0,m=0;if(u){f=u.width,d=u.height;const y=kf();(!y||y&&l==="fixed")&&(h=u.offsetLeft,m=u.offsetTop)}const p=as(o);if(p<=0){const y=o.ownerDocument,v=y.body,E=getComputedStyle(v),R=y.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,w=Math.abs(o.clientWidth-v.clientWidth-R);w<=kg&&(f-=w)}else p<=kg&&(f+=p);return{width:f,height:d,x:h,y:m}}function _C(a,l){const r=Pa(a,!0,l==="fixed"),o=r.top+a.clientTop,u=r.left+a.clientLeft,f=Gn(a)?Hl(a):vn(1),d=a.clientWidth*f.x,h=a.clientHeight*f.y,m=u*f.x,p=o*f.y;return{width:d,height:h,x:m,y:p}}function Ug(a,l,r){let o;if(l==="viewport")o=OC(a,r);else if(l==="document")o=AC(yn(a));else if(on(l))o=_C(l,r);else{const u=ry(a);o={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return $o(o)}function sy(a,l){const r=ba(a);return r===l||!on(r)||$l(r)?!1:sn(r).position==="fixed"||sy(r,l)}function NC(a,l){const r=l.get(a);if(r)return r;let o=Fi(a,[],!1).filter(h=>on(h)&&Kl(h)!=="body"),u=null;const f=sn(a).position==="fixed";let d=f?ba(a):a;for(;on(d)&&!$l(d);){const h=sn(d),m=zf(d);!m&&h.position==="fixed"&&(u=null),(f?!m&&!u:!m&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||nr(d)&&!m&&sy(a,d))?o=o.filter(y=>y!==d):u=h,d=ba(d)}return l.set(a,o),o}function DC(a){let{element:l,boundary:r,rootBoundary:o,strategy:u}=a;const d=[...r==="clippingAncestors"?ts(l)?[]:NC(l,this._c):[].concat(r),o],h=Ug(l,d[0],u);let m=h.top,p=h.right,y=h.bottom,v=h.left;for(let E=1;E<d.length;E++){const R=Ug(l,d[E],u);m=Ut(R.top,m),p=ya(R.right,p),y=ya(R.bottom,y),v=Ut(R.left,v)}return{width:p-v,height:y-m,x:v,y:m}}function jC(a){const{width:l,height:r}=iy(a);return{width:l,height:r}}function MC(a,l,r){const o=Gn(l),u=yn(l),f=r==="fixed",d=Pa(a,!0,f,l);let h={scrollLeft:0,scrollTop:0};const m=vn(0);function p(){m.x=as(u)}if(o||!o&&!f)if((Kl(l)!=="body"||nr(u))&&(h=ns(l)),o){const R=Pa(l,!0,f,l);m.x=R.x+l.clientLeft,m.y=R.y+l.clientTop}else u&&p();f&&!o&&u&&p();const y=u&&!o&&!f?oy(u,h):vn(0),v=d.left+h.scrollLeft-m.x-y.x,E=d.top+h.scrollTop-m.y-y.y;return{x:v,y:E,width:d.width,height:d.height}}function Gc(a){return sn(a).position==="static"}function Bg(a,l){if(!Gn(a)||sn(a).position==="fixed")return null;if(l)return l(a);let r=a.offsetParent;return yn(a)===r&&(r=r.ownerDocument.body),r}function uy(a,l){const r=Bt(a);if(ts(a))return r;if(!Gn(a)){let u=ba(a);for(;u&&!$l(u);){if(on(u)&&!Gc(u))return u;u=ba(u)}return r}let o=Bg(a,l);for(;o&&bC(o)&&Gc(o);)o=Bg(o,l);return o&&$l(o)&&Gc(o)&&!zf(o)?r:o||EC(a)||r}const LC=async function(a){const l=this.getOffsetParent||uy,r=this.getDimensions,o=await r(a.floating);return{reference:MC(a.reference,await l(a.floating),a.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function zC(a){return sn(a).direction==="rtl"}const kC={convertOffsetParentRelativeRectToViewportRelativeRect:RC,getDocumentElement:yn,getClippingRect:DC,getOffsetParent:uy,getElementRects:LC,getClientRects:TC,getDimensions:jC,getScale:Hl,isElement:on,isRTL:zC};function cy(a,l){return a.x===l.x&&a.y===l.y&&a.width===l.width&&a.height===l.height}function UC(a,l){let r=null,o;const u=yn(a);function f(){var h;clearTimeout(o),(h=r)==null||h.disconnect(),r=null}function d(h,m){h===void 0&&(h=!1),m===void 0&&(m=1),f();const p=a.getBoundingClientRect(),{left:y,top:v,width:E,height:R}=p;if(h||l(),!E||!R)return;const w=Ao(v),x=Ao(u.clientWidth-(y+E)),T=Ao(u.clientHeight-(v+R)),N=Ao(y),_={rootMargin:-w+"px "+-x+"px "+-T+"px "+-N+"px",threshold:Ut(0,ya(1,m))||1};let k=!0;function G(X){const V=X[0].intersectionRatio;if(V!==m){if(!k)return d();V?d(!1,V):o=setTimeout(()=>{d(!1,1e-7)},1e3)}V===1&&!cy(p,a.getBoundingClientRect())&&d(),k=!1}try{r=new IntersectionObserver(G,{..._,root:u.ownerDocument})}catch{r=new IntersectionObserver(G,_)}r.observe(a)}return d(!0),f}function BC(a,l,r,o){o===void 0&&(o={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:m=!1}=o,p=Uf(a),y=u||f?[...p?Fi(p):[],...l?Fi(l):[]]:[];y.forEach(N=>{u&&N.addEventListener("scroll",r,{passive:!0}),f&&N.addEventListener("resize",r)});const v=p&&h?UC(p,r):null;let E=-1,R=null;d&&(R=new ResizeObserver(N=>{let[j]=N;j&&j.target===p&&R&&l&&(R.unobserve(l),cancelAnimationFrame(E),E=requestAnimationFrame(()=>{var _;(_=R)==null||_.observe(l)})),r()}),p&&!m&&R.observe(p),l&&R.observe(l));let w,x=m?Pa(a):null;m&&T();function T(){const N=Pa(a);x&&!cy(x,N)&&r(),x=N,w=requestAnimationFrame(T)}return r(),()=>{var N;y.forEach(j=>{u&&j.removeEventListener("scroll",r),f&&j.removeEventListener("resize",r)}),v==null||v(),(N=R)==null||N.disconnect(),R=null,m&&cancelAnimationFrame(w)}}const HC=pC,VC=gC,$C=dC,GC=yC,YC=hC,Hg=fC,qC=vC,KC=(a,l,r)=>{const o=new Map,u={platform:kC,...r},f={...u.platform,_c:o};return cC(a,l,{...u,platform:f})};var PC=typeof document<"u",XC=function(){},Mo=PC?b.useLayoutEffect:XC;function Go(a,l){if(a===l)return!0;if(typeof a!=typeof l)return!1;if(typeof a=="function"&&a.toString()===l.toString())return!0;let r,o,u;if(a&&l&&typeof a=="object"){if(Array.isArray(a)){if(r=a.length,r!==l.length)return!1;for(o=r;o--!==0;)if(!Go(a[o],l[o]))return!1;return!0}if(u=Object.keys(a),r=u.length,r!==Object.keys(l).length)return!1;for(o=r;o--!==0;)if(!{}.hasOwnProperty.call(l,u[o]))return!1;for(o=r;o--!==0;){const f=u[o];if(!(f==="_owner"&&a.$$typeof)&&!Go(a[f],l[f]))return!1}return!0}return a!==a&&l!==l}function fy(a){return typeof window>"u"?1:(a.ownerDocument.defaultView||window).devicePixelRatio||1}function Vg(a,l){const r=fy(a);return Math.round(l*r)/r}function Yc(a){const l=b.useRef(a);return Mo(()=>{l.current=a}),l}function QC(a){a===void 0&&(a={});const{placement:l="bottom",strategy:r="absolute",middleware:o=[],platform:u,elements:{reference:f,floating:d}={},transform:h=!0,whileElementsMounted:m,open:p}=a,[y,v]=b.useState({x:0,y:0,strategy:r,placement:l,middlewareData:{},isPositioned:!1}),[E,R]=b.useState(o);Go(E,o)||R(o);const[w,x]=b.useState(null),[T,N]=b.useState(null),j=b.useCallback(Q=>{Q!==X.current&&(X.current=Q,x(Q))},[]),_=b.useCallback(Q=>{Q!==V.current&&(V.current=Q,N(Q))},[]),k=f||w,G=d||T,X=b.useRef(null),V=b.useRef(null),F=b.useRef(y),W=m!=null,ee=Yc(m),re=Yc(u),fe=Yc(p),se=b.useCallback(()=>{if(!X.current||!V.current)return;const Q={placement:l,strategy:r,middleware:E};re.current&&(Q.platform=re.current),KC(X.current,V.current,Q).then(ae=>{const me={...ae,isPositioned:fe.current!==!1};le.current&&!Go(F.current,me)&&(F.current=me,tr.flushSync(()=>{v(me)}))})},[E,l,r,re,fe]);Mo(()=>{p===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,v(Q=>({...Q,isPositioned:!1})))},[p]);const le=b.useRef(!1);Mo(()=>(le.current=!0,()=>{le.current=!1}),[]),Mo(()=>{if(k&&(X.current=k),G&&(V.current=G),k&&G){if(ee.current)return ee.current(k,G,se);se()}},[k,G,se,ee,W]);const de=b.useMemo(()=>({reference:X,floating:V,setReference:j,setFloating:_}),[j,_]),L=b.useMemo(()=>({reference:k,floating:G}),[k,G]),K=b.useMemo(()=>{const Q={position:r,left:0,top:0};if(!L.floating)return Q;const ae=Vg(L.floating,y.x),me=Vg(L.floating,y.y);return h?{...Q,transform:"translate("+ae+"px, "+me+"px)",...fy(L.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:me}},[r,h,L.floating,y.x,y.y]);return b.useMemo(()=>({...y,update:se,refs:de,elements:L,floatingStyles:K}),[y,se,de,L,K])}const ZC=a=>{function l(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:a,fn(r){const{element:o,padding:u}=typeof a=="function"?a(r):a;return o&&l(o)?o.current!=null?Hg({element:o.current,padding:u}).fn(r):{}:o?Hg({element:o,padding:u}).fn(r):{}}}},FC=(a,l)=>{const r=HC(a);return{name:r.name,fn:r.fn,options:[a,l]}},JC=(a,l)=>{const r=VC(a);return{name:r.name,fn:r.fn,options:[a,l]}},IC=(a,l)=>({fn:qC(a).fn,options:[a,l]}),WC=(a,l)=>{const r=$C(a);return{name:r.name,fn:r.fn,options:[a,l]}},eR=(a,l)=>{const r=GC(a);return{name:r.name,fn:r.fn,options:[a,l]}},tR=(a,l)=>{const r=YC(a);return{name:r.name,fn:r.fn,options:[a,l]}},nR=(a,l)=>{const r=ZC(a);return{name:r.name,fn:r.fn,options:[a,l]}};var aR="Arrow",dy=b.forwardRef((a,l)=>{const{children:r,width:o=10,height:u=5,...f}=a;return C.jsx(Ze.svg,{...f,ref:l,width:o,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?r:C.jsx("polygon",{points:"0,0 30,0 15,10"})})});dy.displayName=aR;var lR=dy;function iR(a){const[l,r]=b.useState(void 0);return Ct(()=>{if(a){r({width:a.offsetWidth,height:a.offsetHeight});const o=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const f=u[0];let d,h;if("borderBoxSize"in f){const m=f.borderBoxSize,p=Array.isArray(m)?m[0]:m;d=p.inlineSize,h=p.blockSize}else d=a.offsetWidth,h=a.offsetHeight;r({width:d,height:h})});return o.observe(a,{box:"border-box"}),()=>o.unobserve(a)}else r(void 0)},[a]),l}var Bf="Popper",[hy,my]=Nf(Bf),[rR,py]=hy(Bf),gy=a=>{const{__scopePopper:l,children:r}=a,[o,u]=b.useState(null);return C.jsx(rR,{scope:l,anchor:o,onAnchorChange:u,children:r})};gy.displayName=Bf;var vy="PopperAnchor",yy=b.forwardRef((a,l)=>{const{__scopePopper:r,virtualRef:o,...u}=a,f=py(vy,r),d=b.useRef(null),h=ft(l,d),m=b.useRef(null);return b.useEffect(()=>{const p=m.current;m.current=(o==null?void 0:o.current)||d.current,p!==m.current&&f.onAnchorChange(m.current)}),o?null:C.jsx(Ze.div,{...u,ref:h})});yy.displayName=vy;var Hf="PopperContent",[oR,sR]=hy(Hf),by=b.forwardRef((a,l)=>{var J,ye,Se,Ae,Te,Oe;const{__scopePopper:r,side:o="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:m=!0,collisionBoundary:p=[],collisionPadding:y=0,sticky:v="partial",hideWhenDetached:E=!1,updatePositionStrategy:R="optimized",onPlaced:w,...x}=a,T=py(Hf,r),[N,j]=b.useState(null),_=ft(l,dt=>j(dt)),[k,G]=b.useState(null),X=iR(k),V=(X==null?void 0:X.width)??0,F=(X==null?void 0:X.height)??0,W=o+(f!=="center"?"-"+f:""),ee=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},re=Array.isArray(p)?p:[p],fe=re.length>0,se={padding:ee,boundary:re.filter(cR),altBoundary:fe},{refs:le,floatingStyles:de,placement:L,isPositioned:K,middlewareData:Q}=QC({strategy:"fixed",placement:W,whileElementsMounted:(...dt)=>BC(...dt,{animationFrame:R==="always"}),elements:{reference:T.anchor},middleware:[FC({mainAxis:u+F,alignmentAxis:d}),m&&JC({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?IC():void 0,...se}),m&&WC({...se}),eR({...se,apply:({elements:dt,rects:at,availableWidth:bn,availableHeight:Sn})=>{const{width:Ea,height:ar}=at.reference,Yn=dt.floating.style;Yn.setProperty("--radix-popper-available-width",`${bn}px`),Yn.setProperty("--radix-popper-available-height",`${Sn}px`),Yn.setProperty("--radix-popper-anchor-width",`${Ea}px`),Yn.setProperty("--radix-popper-anchor-height",`${ar}px`)}}),k&&nR({element:k,padding:h}),fR({arrowWidth:V,arrowHeight:F}),E&&tR({strategy:"referenceHidden",...se})]}),[ae,me]=Ey(L),O=Ka(w);Ct(()=>{K&&(O==null||O())},[K,O]);const Y=(J=Q.arrow)==null?void 0:J.x,Z=(ye=Q.arrow)==null?void 0:ye.y,I=((Se=Q.arrow)==null?void 0:Se.centerOffset)!==0,[ue,pe]=b.useState();return Ct(()=>{N&&pe(window.getComputedStyle(N).zIndex)},[N]),C.jsx("div",{ref:le.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:K?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(Ae=Q.transformOrigin)==null?void 0:Ae.x,(Te=Q.transformOrigin)==null?void 0:Te.y].join(" "),...((Oe=Q.hide)==null?void 0:Oe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:C.jsx(oR,{scope:r,placedSide:ae,onArrowChange:G,arrowX:Y,arrowY:Z,shouldHideArrow:I,children:C.jsx(Ze.div,{"data-side":ae,"data-align":me,...x,ref:_,style:{...x.style,animation:K?void 0:"none"}})})})});by.displayName=Hf;var Sy="PopperArrow",uR={top:"bottom",right:"left",bottom:"top",left:"right"},xy=b.forwardRef(function(l,r){const{__scopePopper:o,...u}=l,f=sR(Sy,o),d=uR[f.placedSide];return C.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:C.jsx(lR,{...u,ref:r,style:{...u.style,display:"block"}})})});xy.displayName=Sy;function cR(a){return a!==null}var fR=a=>({name:"transformOrigin",options:a,fn(l){var T,N,j;const{placement:r,rects:o,middlewareData:u}=l,d=((T=u.arrow)==null?void 0:T.centerOffset)!==0,h=d?0:a.arrowWidth,m=d?0:a.arrowHeight,[p,y]=Ey(r),v={start:"0%",center:"50%",end:"100%"}[y],E=(((N=u.arrow)==null?void 0:N.x)??0)+h/2,R=(((j=u.arrow)==null?void 0:j.y)??0)+m/2;let w="",x="";return p==="bottom"?(w=d?v:`${E}px`,x=`${-m}px`):p==="top"?(w=d?v:`${E}px`,x=`${o.floating.height+m}px`):p==="right"?(w=`${-m}px`,x=d?v:`${R}px`):p==="left"&&(w=`${o.floating.width+m}px`,x=d?v:`${R}px`),{data:{x:w,y:x}}}});function Ey(a){const[l,r="center"]=a.split("-");return[l,r]}var dR=gy,hR=yy,mR=by,pR=xy;function gR(a){const l=b.useRef({value:a,previous:a});return b.useMemo(()=>(l.current.value!==a&&(l.current.previous=l.current.value,l.current.value=a),l.current.previous),[a])}var wy=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),vR="VisuallyHidden",yR=b.forwardRef((a,l)=>C.jsx(Ze.span,{...a,ref:l,style:{...wy,...a.style}}));yR.displayName=vR;var bR=[" ","Enter","ArrowUp","ArrowDown"],SR=[" ","Enter"],Xa="Select",[ls,is,xR]=Fw(Xa),[Pl]=Nf(Xa,[xR,my]),rs=my(),[ER,Sa]=Pl(Xa),[wR,CR]=Pl(Xa),Cy=a=>{const{__scopeSelect:l,children:r,open:o,defaultOpen:u,onOpenChange:f,value:d,defaultValue:h,onValueChange:m,dir:p,name:y,autoComplete:v,disabled:E,required:R,form:w}=a,x=rs(l),[T,N]=b.useState(null),[j,_]=b.useState(null),[k,G]=b.useState(!1),X=Iw(p),[V,F]=gg({prop:o,defaultProp:u??!1,onChange:f,caller:Xa}),[W,ee]=gg({prop:d,defaultProp:h,onChange:m,caller:Xa}),re=b.useRef(null),fe=T?w||!!T.closest("form"):!0,[se,le]=b.useState(new Set),de=Array.from(se).map(L=>L.props.value).join(";");return C.jsx(dR,{...x,children:C.jsxs(ER,{required:R,scope:l,trigger:T,onTriggerChange:N,valueNode:j,onValueNodeChange:_,valueNodeHasChildren:k,onValueNodeHasChildrenChange:G,contentId:Df(),value:W,onValueChange:ee,open:V,onOpenChange:F,dir:X,triggerPointerDownPosRef:re,disabled:E,children:[C.jsx(ls.Provider,{scope:l,children:C.jsx(wR,{scope:a.__scopeSelect,onNativeOptionAdd:b.useCallback(L=>{le(K=>new Set(K).add(L))},[]),onNativeOptionRemove:b.useCallback(L=>{le(K=>{const Q=new Set(K);return Q.delete(L),Q})},[]),children:r})}),fe?C.jsxs(Py,{"aria-hidden":!0,required:R,tabIndex:-1,name:y,autoComplete:v,value:W,onChange:L=>ee(L.target.value),disabled:E,form:w,children:[W===void 0?C.jsx("option",{value:""}):null,Array.from(se)]},de):null]})})};Cy.displayName=Xa;var Ry="SelectTrigger",Ty=b.forwardRef((a,l)=>{const{__scopeSelect:r,disabled:o=!1,...u}=a,f=rs(r),d=Sa(Ry,r),h=d.disabled||o,m=ft(l,d.onTriggerChange),p=is(r),y=b.useRef("touch"),[v,E,R]=Qy(x=>{const T=p().filter(_=>!_.disabled),N=T.find(_=>_.value===d.value),j=Zy(T,x,N);j!==void 0&&d.onValueChange(j.value)}),w=x=>{h||(d.onOpenChange(!0),R()),x&&(d.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return C.jsx(hR,{asChild:!0,...f,children:C.jsx(Ze.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Xy(d.value)?"":void 0,...u,ref:m,onClick:tt(u.onClick,x=>{x.currentTarget.focus(),y.current!=="mouse"&&w(x)}),onPointerDown:tt(u.onPointerDown,x=>{y.current=x.pointerType;const T=x.target;T.hasPointerCapture(x.pointerId)&&T.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(w(x),x.preventDefault())}),onKeyDown:tt(u.onKeyDown,x=>{const T=v.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&E(x.key),!(T&&x.key===" ")&&bR.includes(x.key)&&(w(),x.preventDefault())})})})});Ty.displayName=Ry;var Ay="SelectValue",Oy=b.forwardRef((a,l)=>{const{__scopeSelect:r,className:o,style:u,children:f,placeholder:d="",...h}=a,m=Sa(Ay,r),{onValueNodeHasChildrenChange:p}=m,y=f!==void 0,v=ft(l,m.onValueNodeChange);return Ct(()=>{p(y)},[p,y]),C.jsx(Ze.span,{...h,ref:v,style:{pointerEvents:"none"},children:Xy(m.value)?C.jsx(C.Fragment,{children:d}):f})});Oy.displayName=Ay;var RR="SelectIcon",_y=b.forwardRef((a,l)=>{const{__scopeSelect:r,children:o,...u}=a;return C.jsx(Ze.span,{"aria-hidden":!0,...u,ref:l,children:o||"▼"})});_y.displayName=RR;var TR="SelectPortal",Ny=a=>C.jsx(Kv,{asChild:!0,...a});Ny.displayName=TR;var Qa="SelectContent",Dy=b.forwardRef((a,l)=>{const r=Sa(Qa,a.__scopeSelect),[o,u]=b.useState();if(Ct(()=>{u(new DocumentFragment)},[]),!r.open){const f=o;return f?tr.createPortal(C.jsx(jy,{scope:a.__scopeSelect,children:C.jsx(ls.Slot,{scope:a.__scopeSelect,children:C.jsx("div",{children:a.children})})}),f):null}return C.jsx(My,{...a,ref:l})});Dy.displayName=Qa;var ln=10,[jy,xa]=Pl(Qa),AR="SelectContentImpl",OR=Bo("SelectContent.RemoveScroll"),My=b.forwardRef((a,l)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:f,onPointerDownOutside:d,side:h,sideOffset:m,align:p,alignOffset:y,arrowPadding:v,collisionBoundary:E,collisionPadding:R,sticky:w,hideWhenDetached:x,avoidCollisions:T,...N}=a,j=Sa(Qa,r),[_,k]=b.useState(null),[G,X]=b.useState(null),V=ft(l,J=>k(J)),[F,W]=b.useState(null),[ee,re]=b.useState(null),fe=is(r),[se,le]=b.useState(!1),de=b.useRef(!1);b.useEffect(()=>{if(_)return Zw(_)},[_]),uw();const L=b.useCallback(J=>{const[ye,...Se]=fe().map(Oe=>Oe.ref.current),[Ae]=Se.slice(-1),Te=document.activeElement;for(const Oe of J)if(Oe===Te||(Oe==null||Oe.scrollIntoView({block:"nearest"}),Oe===ye&&G&&(G.scrollTop=0),Oe===Ae&&G&&(G.scrollTop=G.scrollHeight),Oe==null||Oe.focus(),document.activeElement!==Te))return},[fe,G]),K=b.useCallback(()=>L([F,_]),[L,F,_]);b.useEffect(()=>{se&&K()},[se,K]);const{onOpenChange:Q,triggerPointerDownPosRef:ae}=j;b.useEffect(()=>{if(_){let J={x:0,y:0};const ye=Ae=>{var Te,Oe;J={x:Math.abs(Math.round(Ae.pageX)-(((Te=ae.current)==null?void 0:Te.x)??0)),y:Math.abs(Math.round(Ae.pageY)-(((Oe=ae.current)==null?void 0:Oe.y)??0))}},Se=Ae=>{J.x<=10&&J.y<=10?Ae.preventDefault():_.contains(Ae.target)||Q(!1),document.removeEventListener("pointermove",ye),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",Se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",Se,{capture:!0})}}},[_,Q,ae]),b.useEffect(()=>{const J=()=>Q(!1);return window.addEventListener("blur",J),window.addEventListener("resize",J),()=>{window.removeEventListener("blur",J),window.removeEventListener("resize",J)}},[Q]);const[me,O]=Qy(J=>{const ye=fe().filter(Te=>!Te.disabled),Se=ye.find(Te=>Te.ref.current===document.activeElement),Ae=Zy(ye,J,Se);Ae&&setTimeout(()=>Ae.ref.current.focus())}),Y=b.useCallback((J,ye,Se)=>{const Ae=!de.current&&!Se;(j.value!==void 0&&j.value===ye||Ae)&&(W(J),Ae&&(de.current=!0))},[j.value]),Z=b.useCallback(()=>_==null?void 0:_.focus(),[_]),I=b.useCallback((J,ye,Se)=>{const Ae=!de.current&&!Se;(j.value!==void 0&&j.value===ye||Ae)&&re(J)},[j.value]),ue=o==="popper"?of:Ly,pe=ue===of?{side:h,sideOffset:m,align:p,alignOffset:y,arrowPadding:v,collisionBoundary:E,collisionPadding:R,sticky:w,hideWhenDetached:x,avoidCollisions:T}:{};return C.jsx(jy,{scope:r,content:_,viewport:G,onViewportChange:X,itemRefCallback:Y,selectedItem:F,onItemLeave:Z,itemTextRefCallback:I,focusSelectedItem:K,selectedItemText:ee,position:o,isPositioned:se,searchRef:me,children:C.jsx(Wv,{as:OR,allowPinchZoom:!0,children:C.jsx(Yv,{asChild:!0,trapped:j.open,onMountAutoFocus:J=>{J.preventDefault()},onUnmountAutoFocus:tt(u,J=>{var ye;(ye=j.trigger)==null||ye.focus({preventScroll:!0}),J.preventDefault()}),children:C.jsx($v,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:f,onPointerDownOutside:d,onFocusOutside:J=>J.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:C.jsx(ue,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:J=>J.preventDefault(),...N,...pe,onPlaced:()=>le(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:tt(N.onKeyDown,J=>{const ye=J.ctrlKey||J.altKey||J.metaKey;if(J.key==="Tab"&&J.preventDefault(),!ye&&J.key.length===1&&O(J.key),["ArrowUp","ArrowDown","Home","End"].includes(J.key)){let Ae=fe().filter(Te=>!Te.disabled).map(Te=>Te.ref.current);if(["ArrowUp","End"].includes(J.key)&&(Ae=Ae.slice().reverse()),["ArrowUp","ArrowDown"].includes(J.key)){const Te=J.target,Oe=Ae.indexOf(Te);Ae=Ae.slice(Oe+1)}setTimeout(()=>L(Ae)),J.preventDefault()}})})})})})})});My.displayName=AR;var _R="SelectItemAlignedPosition",Ly=b.forwardRef((a,l)=>{const{__scopeSelect:r,onPlaced:o,...u}=a,f=Sa(Qa,r),d=xa(Qa,r),[h,m]=b.useState(null),[p,y]=b.useState(null),v=ft(l,V=>y(V)),E=is(r),R=b.useRef(!1),w=b.useRef(!0),{viewport:x,selectedItem:T,selectedItemText:N,focusSelectedItem:j}=d,_=b.useCallback(()=>{if(f.trigger&&f.valueNode&&h&&p&&x&&T&&N){const V=f.trigger.getBoundingClientRect(),F=p.getBoundingClientRect(),W=f.valueNode.getBoundingClientRect(),ee=N.getBoundingClientRect();if(f.dir!=="rtl"){const Te=ee.left-F.left,Oe=W.left-Te,dt=V.left-Oe,at=V.width+dt,bn=Math.max(at,F.width),Sn=window.innerWidth-ln,Ea=_g(Oe,[ln,Math.max(ln,Sn-bn)]);h.style.minWidth=at+"px",h.style.left=Ea+"px"}else{const Te=F.right-ee.right,Oe=window.innerWidth-W.right-Te,dt=window.innerWidth-V.right-Oe,at=V.width+dt,bn=Math.max(at,F.width),Sn=window.innerWidth-ln,Ea=_g(Oe,[ln,Math.max(ln,Sn-bn)]);h.style.minWidth=at+"px",h.style.right=Ea+"px"}const re=E(),fe=window.innerHeight-ln*2,se=x.scrollHeight,le=window.getComputedStyle(p),de=parseInt(le.borderTopWidth,10),L=parseInt(le.paddingTop,10),K=parseInt(le.borderBottomWidth,10),Q=parseInt(le.paddingBottom,10),ae=de+L+se+Q+K,me=Math.min(T.offsetHeight*5,ae),O=window.getComputedStyle(x),Y=parseInt(O.paddingTop,10),Z=parseInt(O.paddingBottom,10),I=V.top+V.height/2-ln,ue=fe-I,pe=T.offsetHeight/2,J=T.offsetTop+pe,ye=de+L+J,Se=ae-ye;if(ye<=I){const Te=re.length>0&&T===re[re.length-1].ref.current;h.style.bottom="0px";const Oe=p.clientHeight-x.offsetTop-x.offsetHeight,dt=Math.max(ue,pe+(Te?Z:0)+Oe+K),at=ye+dt;h.style.height=at+"px"}else{const Te=re.length>0&&T===re[0].ref.current;h.style.top="0px";const dt=Math.max(I,de+x.offsetTop+(Te?Y:0)+pe)+Se;h.style.height=dt+"px",x.scrollTop=ye-I+x.offsetTop}h.style.margin=`${ln}px 0`,h.style.minHeight=me+"px",h.style.maxHeight=fe+"px",o==null||o(),requestAnimationFrame(()=>R.current=!0)}},[E,f.trigger,f.valueNode,h,p,x,T,N,f.dir,o]);Ct(()=>_(),[_]);const[k,G]=b.useState();Ct(()=>{p&&G(window.getComputedStyle(p).zIndex)},[p]);const X=b.useCallback(V=>{V&&w.current===!0&&(_(),j==null||j(),w.current=!1)},[_,j]);return C.jsx(DR,{scope:r,contentWrapper:h,shouldExpandOnScrollRef:R,onScrollButtonChange:X,children:C.jsx("div",{ref:m,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:C.jsx(Ze.div,{...u,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Ly.displayName=_R;var NR="SelectPopperPosition",of=b.forwardRef((a,l)=>{const{__scopeSelect:r,align:o="start",collisionPadding:u=ln,...f}=a,d=rs(r);return C.jsx(mR,{...d,...f,ref:l,align:o,collisionPadding:u,style:{boxSizing:"border-box",...f.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});of.displayName=NR;var[DR,Vf]=Pl(Qa,{}),sf="SelectViewport",zy=b.forwardRef((a,l)=>{const{__scopeSelect:r,nonce:o,...u}=a,f=xa(sf,r),d=Vf(sf,r),h=ft(l,f.onViewportChange),m=b.useRef(0);return C.jsxs(C.Fragment,{children:[C.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),C.jsx(ls.Slot,{scope:r,children:C.jsx(Ze.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:tt(u.onScroll,p=>{const y=p.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:E}=d;if(E!=null&&E.current&&v){const R=Math.abs(m.current-y.scrollTop);if(R>0){const w=window.innerHeight-ln*2,x=parseFloat(v.style.minHeight),T=parseFloat(v.style.height),N=Math.max(x,T);if(N<w){const j=N+R,_=Math.min(w,j),k=j-_;v.style.height=_+"px",v.style.bottom==="0px"&&(y.scrollTop=k>0?k:0,v.style.justifyContent="flex-end")}}}m.current=y.scrollTop})})})]})});zy.displayName=sf;var ky="SelectGroup",[jR,MR]=Pl(ky),LR=b.forwardRef((a,l)=>{const{__scopeSelect:r,...o}=a,u=Df();return C.jsx(jR,{scope:r,id:u,children:C.jsx(Ze.div,{role:"group","aria-labelledby":u,...o,ref:l})})});LR.displayName=ky;var Uy="SelectLabel",zR=b.forwardRef((a,l)=>{const{__scopeSelect:r,...o}=a,u=MR(Uy,r);return C.jsx(Ze.div,{id:u.id,...o,ref:l})});zR.displayName=Uy;var Yo="SelectItem",[kR,By]=Pl(Yo),Hy=b.forwardRef((a,l)=>{const{__scopeSelect:r,value:o,disabled:u=!1,textValue:f,...d}=a,h=Sa(Yo,r),m=xa(Yo,r),p=h.value===o,[y,v]=b.useState(f??""),[E,R]=b.useState(!1),w=ft(l,j=>{var _;return(_=m.itemRefCallback)==null?void 0:_.call(m,j,o,u)}),x=Df(),T=b.useRef("touch"),N=()=>{u||(h.onValueChange(o),h.onOpenChange(!1))};if(o==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return C.jsx(kR,{scope:r,value:o,disabled:u,textId:x,isSelected:p,onItemTextChange:b.useCallback(j=>{v(_=>_||((j==null?void 0:j.textContent)??"").trim())},[]),children:C.jsx(ls.ItemSlot,{scope:r,value:o,disabled:u,textValue:y,children:C.jsx(Ze.div,{role:"option","aria-labelledby":x,"data-highlighted":E?"":void 0,"aria-selected":p&&E,"data-state":p?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...d,ref:w,onFocus:tt(d.onFocus,()=>R(!0)),onBlur:tt(d.onBlur,()=>R(!1)),onClick:tt(d.onClick,()=>{T.current!=="mouse"&&N()}),onPointerUp:tt(d.onPointerUp,()=>{T.current==="mouse"&&N()}),onPointerDown:tt(d.onPointerDown,j=>{T.current=j.pointerType}),onPointerMove:tt(d.onPointerMove,j=>{var _;T.current=j.pointerType,u?(_=m.onItemLeave)==null||_.call(m):T.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:tt(d.onPointerLeave,j=>{var _;j.currentTarget===document.activeElement&&((_=m.onItemLeave)==null||_.call(m))}),onKeyDown:tt(d.onKeyDown,j=>{var k;((k=m.searchRef)==null?void 0:k.current)!==""&&j.key===" "||(SR.includes(j.key)&&N(),j.key===" "&&j.preventDefault())})})})})});Hy.displayName=Yo;var qi="SelectItemText",Vy=b.forwardRef((a,l)=>{const{__scopeSelect:r,className:o,style:u,...f}=a,d=Sa(qi,r),h=xa(qi,r),m=By(qi,r),p=CR(qi,r),[y,v]=b.useState(null),E=ft(l,N=>v(N),m.onItemTextChange,N=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,N,m.value,m.disabled)}),R=y==null?void 0:y.textContent,w=b.useMemo(()=>C.jsx("option",{value:m.value,disabled:m.disabled,children:R},m.value),[m.disabled,m.value,R]),{onNativeOptionAdd:x,onNativeOptionRemove:T}=p;return Ct(()=>(x(w),()=>T(w)),[x,T,w]),C.jsxs(C.Fragment,{children:[C.jsx(Ze.span,{id:m.textId,...f,ref:E}),m.isSelected&&d.valueNode&&!d.valueNodeHasChildren?tr.createPortal(f.children,d.valueNode):null]})});Vy.displayName=qi;var $y="SelectItemIndicator",Gy=b.forwardRef((a,l)=>{const{__scopeSelect:r,...o}=a;return By($y,r).isSelected?C.jsx(Ze.span,{"aria-hidden":!0,...o,ref:l}):null});Gy.displayName=$y;var uf="SelectScrollUpButton",Yy=b.forwardRef((a,l)=>{const r=xa(uf,a.__scopeSelect),o=Vf(uf,a.__scopeSelect),[u,f]=b.useState(!1),d=ft(l,o.onScrollButtonChange);return Ct(()=>{if(r.viewport&&r.isPositioned){let h=function(){const p=m.scrollTop>0;f(p)};const m=r.viewport;return h(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),u?C.jsx(Ky,{...a,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:m}=r;h&&m&&(h.scrollTop=h.scrollTop-m.offsetHeight)}}):null});Yy.displayName=uf;var cf="SelectScrollDownButton",qy=b.forwardRef((a,l)=>{const r=xa(cf,a.__scopeSelect),o=Vf(cf,a.__scopeSelect),[u,f]=b.useState(!1),d=ft(l,o.onScrollButtonChange);return Ct(()=>{if(r.viewport&&r.isPositioned){let h=function(){const p=m.scrollHeight-m.clientHeight,y=Math.ceil(m.scrollTop)<p;f(y)};const m=r.viewport;return h(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),u?C.jsx(Ky,{...a,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:m}=r;h&&m&&(h.scrollTop=h.scrollTop+m.offsetHeight)}}):null});qy.displayName=cf;var Ky=b.forwardRef((a,l)=>{const{__scopeSelect:r,onAutoScroll:o,...u}=a,f=xa("SelectScrollButton",r),d=b.useRef(null),h=is(r),m=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>m(),[m]),Ct(()=>{var y;const p=h().find(v=>v.ref.current===document.activeElement);(y=p==null?void 0:p.ref.current)==null||y.scrollIntoView({block:"nearest"})},[h]),C.jsx(Ze.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:tt(u.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(o,50))}),onPointerMove:tt(u.onPointerMove,()=>{var p;(p=f.onItemLeave)==null||p.call(f),d.current===null&&(d.current=window.setInterval(o,50))}),onPointerLeave:tt(u.onPointerLeave,()=>{m()})})}),UR="SelectSeparator",BR=b.forwardRef((a,l)=>{const{__scopeSelect:r,...o}=a;return C.jsx(Ze.div,{"aria-hidden":!0,...o,ref:l})});BR.displayName=UR;var ff="SelectArrow",HR=b.forwardRef((a,l)=>{const{__scopeSelect:r,...o}=a,u=rs(r),f=Sa(ff,r),d=xa(ff,r);return f.open&&d.position==="popper"?C.jsx(pR,{...u,...o,ref:l}):null});HR.displayName=ff;var VR="SelectBubbleInput",Py=b.forwardRef(({__scopeSelect:a,value:l,...r},o)=>{const u=b.useRef(null),f=ft(o,u),d=gR(l);return b.useEffect(()=>{const h=u.current;if(!h)return;const m=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(m,"value").set;if(d!==l&&y){const v=new Event("change",{bubbles:!0});y.call(h,l),h.dispatchEvent(v)}},[d,l]),C.jsx(Ze.select,{...r,style:{...wy,...r.style},ref:f,defaultValue:l})});Py.displayName=VR;function Xy(a){return a===""||a===void 0}function Qy(a){const l=Ka(a),r=b.useRef(""),o=b.useRef(0),u=b.useCallback(d=>{const h=r.current+d;l(h),(function m(p){r.current=p,window.clearTimeout(o.current),p!==""&&(o.current=window.setTimeout(()=>m(""),1e3))})(h)},[l]),f=b.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,u,f]}function Zy(a,l,r){const u=l.length>1&&Array.from(l).every(p=>p===l[0])?l[0]:l,f=r?a.indexOf(r):-1;let d=$R(a,Math.max(f,0));u.length===1&&(d=d.filter(p=>p!==r));const m=d.find(p=>p.textValue.toLowerCase().startsWith(u.toLowerCase()));return m!==r?m:void 0}function $R(a,l){return a.map((r,o)=>a[(l+o)%a.length])}var GR=Cy,YR=Ty,qR=Oy,KR=_y,PR=Ny,XR=Dy,QR=zy,ZR=Hy,FR=Vy,JR=Gy,IR=Yy,WR=qy;function $g({label:a,className:l,...r}){return C.jsxs("div",{className:"space-y-1.5",children:[a&&C.jsx("label",{className:"block text-sm font-medium text-foreground",children:a}),C.jsx("input",{className:Ge("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 NO({label:a,className:l,...r}){return C.jsxs("div",{className:"space-y-1.5",children:[a&&C.jsx("label",{className:"block text-sm font-medium text-foreground",children:a}),C.jsx("textarea",{className:Ge("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 Fy="__radix_empty_value__";function Gg(a){return typeof a=="string"||typeof a=="number"?String(a):b.Children.toArray(a).map(l=>typeof l=="string"||typeof l=="number"?String(l):"").join("")}function eT(a){return b.Children.toArray(a).flatMap(l=>{if(!b.isValidElement(l))return[];const r=l;if(r.type!=="option")return[];const o=r.props.value??Gg(r.props.children);return[{value:String(o),label:Gg(r.props.children),disabled:r.props.disabled}]})}function Yg(a){return a===""||a===void 0||a===null?Fy:String(a)}function qg(a){return a===Fy?"":a}function DO({label:a,className:l,children:r,...o}){var p;const u=eT(r),f=Yg(o.value??o.defaultValue??""),d=u.find(y=>y.value===qg(f)),h=(p=u.find(y=>y.value===""))==null?void 0:p.label,m=y=>{var E;const v=qg(y);(E=o.onChange)==null||E.call(o,{target:{value:v},currentTarget:{value:v}})};return C.jsxs("div",{className:"space-y-1.5",children:[a&&C.jsx("label",{className:"block text-sm font-medium text-foreground",children:a}),C.jsxs(GR,{value:f,onValueChange:m,disabled:o.disabled,name:o.name,children:[C.jsxs(YR,{id:o.id,className:Ge("flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm shadow-sm transition-colors","placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",l),children:[C.jsx(qR,{placeholder:h,children:d==null?void 0:d.label}),C.jsx(KR,{asChild:!0,children:C.jsx(Kp,{className:"h-4 w-4 opacity-50"})})]}),C.jsx(PR,{children:C.jsxs(XR,{className:"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md animate-fade-in",children:[C.jsx(IR,{className:"flex cursor-default items-center justify-center py-1",children:C.jsx(i1,{className:"h-4 w-4"})}),C.jsx(QR,{className:"p-1",children:u.map(y=>C.jsxs(ZR,{value:Yg(y.value),disabled:y.disabled,className:Ge("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none","focus:bg-accent/10 focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50"),children:[C.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:C.jsx(JR,{children:C.jsx(IS,{className:"h-4 w-4"})})}),C.jsx(FR,{children:y.label})]},`${y.value}-${y.label}`))}),C.jsx(WR,{className:"flex cursor-default items-center justify-center py-1",children:C.jsx(Kp,{className:"h-4 w-4"})})]})})]})]})}const df="http://127.0.0.1:9831",tT=`${df}/api/local/v1`;function nT(a){const l=a.trim();return l?l.replace(/\/+$/,""):tT}const pn=nT("/api/local/v1");pn.endsWith("/api/local/v1")&&pn.slice(0,-13);const Ji=new Set;let zt=null;async function ie(a,l,r){const o=await fetch(`${pn}${l}`,{method:a,headers:{"Content-Type":"application/json"},body:r?JSON.stringify(r):void 0}),u=await o.json();if(!o.ok||!u.ok)throw new Error(u.error||`Local AI Core request failed: ${o.status}`);return u.data}function Jy(){if(zt||typeof window>"u")return;zt=new EventSource(`${pn}/events`);const a=l=>{try{const r=JSON.parse(l.data);Ji.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=>{zt==null||zt.addEventListener(l,a)}),zt.onerror=()=>{zt==null||zt.close(),zt=null,Ji.size>0&&window.setTimeout(()=>Jy(),1e3)}}function aT(){Ji.size===0&&zt&&(zt.close(),zt=null)}async function lT(a=350){var o;const l=new AbortController,r=window.setTimeout(()=>l.abort(),a);try{const u=await fetch(`${pn}/health`,{signal:l.signal}),f=await u.json();return u.ok&&f.ok&&((o=f.data)==null?void 0:o.name)==="local-ai-core"}catch{return!1}finally{window.clearTimeout(r)}}function os(a){return Ji.add(a),Jy(),()=>{Ji.delete(a),aT()}}async function iT(){return ie("GET","/runtime")}async function rT(){return ie("POST","/runtime/service/start")}async function oT(){return ie("POST","/runtime/service/stop")}async function sT(){return ie("POST","/runtime/service/restart")}async function uT(a){const l=typeof a=="number"?`?limit=${encodeURIComponent(String(a))}`:"";return ie("GET",`/runtime/logs${l}`)}async function Iy(){return ie("GET","/runtime/agent-runtimes")}async function Wy(){return ie("POST","/runtimes/refresh")}async function cT(){return ie("GET","/runtime/config")}async function fT(a){return ie("POST","/runtime/config/raw",{raw:a})}async function dT(a){return ie("POST","/runtime/config/structured",{config:a})}async function hT(a){return ie("POST","/runtime/settings",a)}async function e0(a){return ie("GET",`/platforms/${encodeURIComponent(a)}`)}async function t0(a,l){return ie("GET",`/platforms/${encodeURIComponent(a)}/${encodeURIComponent(l)}`)}async function n0(a,l){return ie("POST",`/platforms/${encodeURIComponent(a)}/${encodeURIComponent(l)}/test`)}async function a0(a,l){return ie("POST",`/platforms/${encodeURIComponent(a)}/${encodeURIComponent(l)}/enable`)}async function l0(a,l){return ie("POST",`/platforms/${encodeURIComponent(a)}/${encodeURIComponent(l)}/disable`)}async function i0(a,l){const r=l?`?workspace_id=${encodeURIComponent(l)}`:"";return ie("GET",`/platforms/${encodeURIComponent(a)}/pairings${r}`)}async function r0(a,l){return ie("POST",`/platforms/${encodeURIComponent(a)}/pairings/approve`,{code:l})}async function o0(a,l){return ie("POST",`/platforms/${encodeURIComponent(a)}/pairings/reject`,{code:l})}async function s0(a,l){const r=l?`?workspace_id=${encodeURIComponent(l)}`:"";return ie("GET",`/platforms/${encodeURIComponent(a)}/users${r}`)}async function mT(){return e0("lark")}async function pT(a){return t0("lark",a)}async function gT(a){return n0("lark",a)}async function vT(a){return a0("lark",a)}async function yT(a){return l0("lark",a)}async function bT(a){return i0("lark",a)}async function ST(a){return r0("lark",a)}async function xT(a){return o0("lark",a)}async function ET(a){return s0("lark",a)}async function u0(a){return ie("POST",`/platforms/weixin/${encodeURIComponent(a)}/qrcode`)}async function c0(a,l){return ie("GET",`/platforms/weixin/${encodeURIComponent(a)}/qrcode/status?ticket=${encodeURIComponent(l)}`)}async function jO(){return ie("GET","/workspaces")}async function MO(a={}){const l=new URLSearchParams;a.workspaceId&&l.set("workspace_id",a.workspaceId),a.runtimeId&&l.set("runtime_id",a.runtimeId),a.status&&l.set("status",Array.isArray(a.status)?a.status.join(","):a.status),a.limit&&l.set("limit",String(a.limit));const r=l.toString()?`?${l.toString()}`:"";return ie("GET",`/tasks${r}`)}async function LO(a={}){const l=new URLSearchParams;a.workspaceId&&l.set("workspace_id",a.workspaceId),a.taskId&&l.set("task_id",a.taskId),a.status&&l.set("status",Array.isArray(a.status)?a.status.join(","):a.status),a.limit&&l.set("limit",String(a.limit));const r=l.toString()?`?${l.toString()}`:"";return ie("GET",`/approvals${r}`)}async function zO(a={}){const l=new URLSearchParams;a.workspaceId&&l.set("workspace_id",a.workspaceId),a.taskId&&l.set("task_id",a.taskId),a.approvalId&&l.set("approval_id",a.approvalId),a.type&&l.set("type",Array.isArray(a.type)?a.type.join(","):a.type),a.limit&&l.set("limit",String(a.limit));const r=l.toString()?`?${l.toString()}`:"";return ie("GET",`/audit-events${r}`)}async function kO(a){return ie("GET","/scheduler/jobs")}async function UO(a){return ie("POST","/scheduler/jobs",a)}async function BO(a,l){return ie("PATCH",`/scheduler/jobs/${encodeURIComponent(a)}`,l)}async function HO(a){return ie("DELETE",`/scheduler/jobs/${encodeURIComponent(a)}`)}async function VO(a){return ie("POST",`/scheduler/jobs/${encodeURIComponent(a)}/run`)}async function $O(a){return ie("GET",`/threads?workspace_id=${encodeURIComponent(a)}`)}async function GO(a,l){return ie("POST","/threads",{workspaceId:a,title:l})}async function wT(a){return ie("GET",`/threads/${encodeURIComponent(a)}`)}async function YO(a,l){return ie("PATCH",`/threads/${encodeURIComponent(a)}`,{title:l})}async function Kg(a,l){return ie("PATCH",`/threads/${encodeURIComponent(a)}/knowledge-bases`,{knowledgeBaseIds:l})}async function qO(a){return ie("DELETE",`/threads/${encodeURIComponent(a)}`)}async function KO(a,l){return ie("POST",`/threads/${encodeURIComponent(a)}/messages`,{content:l})}async function PO(a,l){return ie("POST",`/threads/${encodeURIComponent(a)}/actions`,{content:l})}async function XO(a){return ie("POST",`/runs/${encodeURIComponent(a)}/interrupt`)}async function QO(){return ie("GET","/knowledge/config")}async function ZO(){return ie("GET","/knowledge/folders")}async function FO(a){return ie("POST","/knowledge/folders",a)}async function JO(a,l){return ie("PATCH",`/knowledge/folders/${encodeURIComponent(a)}`,l)}async function IO(a){return ie("DELETE",`/knowledge/folders/${encodeURIComponent(a)}`)}async function WO(){return ie("GET","/knowledge/bases")}async function e_(a){return ie("POST","/knowledge/bases",a)}async function t_(a){return ie("GET",`/knowledge/bases/${encodeURIComponent(a)}`)}async function n_(a,l){return ie("PATCH",`/knowledge/bases/${encodeURIComponent(a)}`,l)}async function a_(a){return ie("DELETE",`/knowledge/bases/${encodeURIComponent(a)}`)}async function l_(a){return ie("GET",`/knowledge/bases/${encodeURIComponent(a)}/files`)}async function i_(a,l){const r=new FormData;r.append("collection",l.collection),r.append("knowledgebase_id",a),l.folder&&r.append("folder",l.folder),l.files.forEach(f=>{r.append("files",f,f.name)});const o=await fetch(`${pn}/knowledge/bases/${encodeURIComponent(a)}/files`,{method:"POST",body:r}),u=await o.json();if(!o.ok||!u.ok)throw new Error(u.error||`Local AI Core upload failed: ${o.status}`);return u.data}async function r_(a,l){return ie("DELETE",`/knowledge/bases/${encodeURIComponent(a)}/files/${encodeURIComponent(l)}`)}async function o_(a,l){return ie("POST",`/knowledge/bases/${encodeURIComponent(a)}/search`,l)}async function f0(){return ie("GET","/capabilities/snapshot")}async function d0(){return ie("GET","/plugins/diagnostics")}async function CT(a){return ie("POST",`/workspaces/${encodeURIComponent(a)}/streaming-probe`)}function RT(a){return os(l=>{l.type==="runtime.updated"&&a(l.runtime)})}function h0(a){return os(l=>{l.type==="stream.updated"&&a(l.stream),(l.type==="message.created"||l.type==="message.updated"||l.type==="run.updated")&&"stream"in l&&l.stream&&a(l.stream)})}function De(){if(!window.desktop)throw new Error("Desktop APIs are unavailable in the browser build");return window.desktop}const m0={getRuntimeStatus:()=>De().getRuntimeStatus(),startService:()=>De().startService(),stopService:()=>De().stopService(),restartService:()=>De().restartService(),getLogs:a=>De().getLogs(a),listInstalledAgentRuntimes:()=>Iy().then(a=>a.runtimes),refreshInstalledAgentRuntimes:()=>Wy().then(a=>a.runtimes),readConfigFile:()=>De().readConfigFile(),saveRawConfigFile:a=>De().saveRawConfigFile(a),saveStructuredConfigFile:a=>De().saveStructuredConfigFile(a),getThreadKnowledgeBases:(a,l)=>De().getThreadKnowledgeBases(a,l),updateThreadKnowledgeBases:(a,l,r)=>De().updateThreadKnowledgeBases(a,l,r),deleteThreadKnowledgeBases:(a,l)=>De().deleteThreadKnowledgeBases(a,l),saveSettings:a=>De().saveSettings(a),getCapabilitySnapshot:()=>f0(),getPluginDiagnostics:()=>d0(),listChannelGateways:a=>De().listChannelGateways(a),getChannelGatewayStatus:(a,l)=>De().getChannelGatewayStatus(a,l),testChannelConnection:(a,l)=>De().testChannelConnection(a,l),enableChannelGateway:(a,l)=>De().enableChannelGateway(a,l),disableChannelGateway:(a,l)=>De().disableChannelGateway(a,l),listChannelPendingPairings:(a,l)=>De().listChannelPendingPairings(a,l),approveChannelPairing:(a,l)=>De().approveChannelPairing(a,l),rejectChannelPairing:(a,l)=>De().rejectChannelPairing(a,l),listChannelAuthorizedUsers:(a,l)=>De().listChannelAuthorizedUsers(a,l),getWeixinQrCode:a=>u0(a),checkWeixinQrCodeStatus:(a,l)=>c0(a,l),listLarkGateways:()=>De().listLarkGateways(),getLarkGatewayStatus:a=>De().getLarkGatewayStatus(a),testLarkConnection:a=>De().testLarkConnection(a),enableLarkGateway:a=>De().enableLarkGateway(a),disableLarkGateway:a=>De().disableLarkGateway(a),listLarkPendingPairings:a=>De().listLarkPendingPairings(a),approveLarkPairing:a=>De().approveLarkPairing(a),rejectLarkPairing:a=>De().rejectLarkPairing(a),listLarkAuthorizedUsers:a=>De().listLarkAuthorizedUsers(a),probeWorkspaceStreaming:a=>De().probeWorkspaceStreaming(a),onRuntimeEvent:a=>De().onRuntimeEvent(a),onRuntimeDetectionEvent:a=>os(l=>{(l.type.startsWith("runtime.detect.")||l.type==="runtime.status.changed")&&a(l)}),onBridgeEvent:a=>h0(a)},qo={getRuntimeStatus:()=>iT(),startService:()=>rT(),stopService:()=>oT(),restartService:()=>sT(),getLogs:a=>uT(a),listInstalledAgentRuntimes:()=>Iy().then(a=>a.runtimes),refreshInstalledAgentRuntimes:()=>Wy().then(a=>a.runtimes),readConfigFile:()=>cT(),saveRawConfigFile:a=>fT(a),saveStructuredConfigFile:a=>dT(a),getThreadKnowledgeBases:(a,l)=>wT(l).then(r=>r.selectedKnowledgeBaseIds||[]),updateThreadKnowledgeBases:(a,l,r)=>Kg(l,r).then(o=>o.knowledgeBaseIds),deleteThreadKnowledgeBases:(a,l)=>Kg(l,[]).then(()=>({deleted:!0})),saveSettings:a=>hT(a),getCapabilitySnapshot:()=>f0(),getPluginDiagnostics:()=>d0(),listChannelGateways:a=>e0(a).then(l=>l.gateways),getChannelGatewayStatus:(a,l)=>t0(a,l),testChannelConnection:(a,l)=>n0(a,l),enableChannelGateway:(a,l)=>a0(a,l),disableChannelGateway:(a,l)=>l0(a,l),listChannelPendingPairings:(a,l)=>i0(a,l).then(r=>r.pairings),approveChannelPairing:(a,l)=>r0(a,l),rejectChannelPairing:(a,l)=>o0(a,l),listChannelAuthorizedUsers:(a,l)=>s0(a,l).then(r=>r.users),getWeixinQrCode:a=>u0(a),checkWeixinQrCodeStatus:(a,l)=>c0(a,l),listLarkGateways:()=>mT().then(a=>a.gateways),getLarkGatewayStatus:a=>pT(a),testLarkConnection:a=>gT(a),enableLarkGateway:a=>vT(a),disableLarkGateway:a=>yT(a),listLarkPendingPairings:a=>bT(a).then(l=>l.pairings),approveLarkPairing:a=>ST(a),rejectLarkPairing:a=>xT(a),listLarkAuthorizedUsers:a=>ET(a).then(l=>l.users),probeWorkspaceStreaming:a=>CT(a),onRuntimeEvent:a=>RT(a),onRuntimeDetectionEvent:a=>os(l=>{(l.type.startsWith("runtime.detect.")||l.type==="runtime.status.changed")&&a(l)}),onBridgeEvent:a=>h0(a)};let ga=null;function TT(a){return a==="electron"&&window.desktop?m0:qo}async function AT(){return window.desktop?(jc("electron"),ga=m0,ga):(await lT(),jc("local_core"),ga=qo,ga)}function mt(){const a=ga||TT(Zi());if(!a)throw new Error("Managed desktop APIs are unavailable in this build");return ga=a,a}async function OT(){return AT()}const _T=()=>mt().getRuntimeStatus(),s_=()=>mt().startService(),NT=a=>mt().getLogs(a),u_=()=>mt().listInstalledAgentRuntimes(),c_=()=>mt().refreshInstalledAgentRuntimes(),f_=()=>mt().readConfigFile(),d_=a=>mt().saveStructuredConfigFile(a),h_=(a,l,r)=>mt().updateThreadKnowledgeBases(a,l,r),m_=a=>mt().saveSettings(a),Pg=()=>mt().getCapabilitySnapshot(),p_=()=>mt().getPluginDiagnostics(),g_=a=>mt().getWeixinQrCode(a),v_=(a,l)=>mt().checkWeixinQrCodeStatus(a,l),DT=a=>mt().onRuntimeEvent(a),y_=a=>mt().onRuntimeDetectionEvent(a),b_=a=>mt().onBridgeEvent(a),jT=[{code:"en",label:"EN"},{code:"zh",label:"中"},{code:"zh-TW",label:"繁"},{code:"ja",label:"日"},{code:"es",label:"ES"}];function MT(){const{t:a,i18n:l}=kv(),r=Fo(),o=Vt(k=>k.login),{theme:u,setTheme:f}=Of(),[d,h]=b.useState(""),[m,p]=b.useState(""),[y,v]=b.useState(""),[E,R]=b.useState(!1),w=KE(),x=PE(),T=async k=>{if(k.preventDefault(),!(!d.trim()||x)){R(!0),v("");try{m.trim()&&et.setBaseUrl(m.trim()),et.setToken(d.trim()),await x2(),o(d.trim(),m.trim()),w?window.location.hash="#/":r("/",{replace:!0})}catch{v(a("login.invalidToken")),et.setToken(""),et.setBaseUrl("")}finally{R(!1)}}},N={light:fv,dark:uv,system:sv},j={light:"dark",dark:"system",system:"light"},_=N[u];return C.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:[C.jsxs("div",{className:"fixed top-4 right-4 flex items-center gap-2",children:[C.jsx("div",{className:"flex overflow-hidden rounded-md border bg-card/80 backdrop-blur",children:jT.map(k=>C.jsx("button",{onClick:()=>{l.changeLanguage(k.code),localStorage.setItem("cc_lang",k.code)},className:Ge("px-2.5 py-1.5 text-xs font-medium transition-colors",l.language===k.code?"bg-primary/15 text-primary":"text-muted-foreground hover:bg-accent/10 hover:text-foreground"),children:k.label},k.code))}),C.jsx(Uo,{variant:"outline",size:"icon",onClick:()=>f(j[u]),"aria-label":a(`theme.${u}`),children:C.jsx(_,{size:16})})]}),C.jsx("div",{className:"w-full max-w-md animate-fade-in",children:C.jsxs(E2,{className:"p-8 shadow-2xl shadow-primary/10",children:[C.jsx("div",{className:"flex justify-center mb-6",children:C.jsx(Bv,{markClassName:"h-14 w-14 drop-shadow-[0_14px_28px_rgba(0,122,255,0.22)]"})}),C.jsx("h1",{className:"text-2xl font-bold text-center text-foreground mb-1",children:a("login.title")}),C.jsx("p",{className:"text-sm text-center text-muted-foreground mb-3",children:a("login.subtitle")}),C.jsx("div",{className:"mb-8 rounded-lg border bg-muted px-4 py-3 text-xs text-muted-foreground",children:w?"AgentDock 桌面模式会自动连接到本地托管运行时。":"Browser mode requires a reachable API endpoint. Enter the server URL and access token."}),y&&C.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:[C.jsx(o1,{size:16}),y]}),C.jsxs("form",{onSubmit:T,className:"space-y-4",children:[C.jsx($g,{label:a("login.token"),type:"password",value:d,onChange:k=>h(k.target.value),placeholder:"mgmt-secret-xxx",autoFocus:!0}),C.jsx($g,{label:`${a("login.serverUrl")} (${a("common.optional")})`,type:"text",value:m,onChange:k=>p(k.target.value),placeholder:"http://localhost:9820"}),C.jsxs(Uo,{type:"submit",disabled:E||!d.trim()||x,className:"w-full shadow-[0_0_20px_-6px_hsl(var(--primary)/0.55)]",children:[E?C.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[C.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),C.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):C.jsx(z1,{size:16}),a("login.connect")]})]})]})})]})}function LT({children:a}){return Vt(r=>r.isAuthenticated)?C.jsx(C.Fragment,{children:a}):C.jsx(va,{to:"/login",replace:!0})}function zT(){return C.jsx("div",{className:"flex min-h-64 items-center justify-center text-sm text-muted-foreground",children:"正在加载…"})}function kT(){const a=Vt(o=>o.isAuthenticated),l=Vt(o=>o.desktopManaged),r=Af();return C.jsx(b.Suspense,{fallback:C.jsx(zT,{}),children:C.jsxs(Gx,{children:[C.jsx(Ya,{path:"/login",element:a?C.jsx(va,{to:"/",replace:!0}):C.jsx(MT,{})}),C.jsxs(Ya,{element:C.jsx(LT,{children:C.jsx(S2,{})}),children:[Io.listRoutes().map(o=>o.index?C.jsx(Ya,{index:!0,element:o.element({desktopManaged:l,features:r})},o.id):C.jsx(Ya,{path:o.path,element:o.element({desktopManaged:l,features:r})},o.id)),C.jsx(Ya,{path:"*",element:C.jsx(va,{to:"/",replace:!0})})]}),C.jsx(Ya,{path:"*",element:C.jsx(va,{to:a?"/":"/login",replace:!0})})]})})}class UT extends kt.Component{constructor(){super(...arguments);Ll(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?C.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:C.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:[C.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"页面渲染失败"}),C.jsx("p",{className:"mt-2 text-sm text-red-600 dark:text-red-400 break-words",children:this.state.errorMessage||"Unknown renderer error"}),C.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}}var qc={};const he=a=>typeof a=="string",Yi=()=>{let a,l;const r=new Promise((o,u)=>{a=o,l=u});return r.resolve=a,r.reject=l,r},Xg=a=>a==null?"":""+a,BT=(a,l,r)=>{a.forEach(o=>{l[o]&&(r[o]=l[o])})},HT=/###/g,Qg=a=>a&&a.indexOf("###")>-1?a.replace(HT,"."):a,Zg=a=>!a||he(a),Ki=(a,l,r)=>{const o=he(l)?l.split("."):l;let u=0;for(;u<o.length-1;){if(Zg(a))return{};const f=Qg(o[u]);!a[f]&&r&&(a[f]=new r),Object.prototype.hasOwnProperty.call(a,f)?a=a[f]:a={},++u}return Zg(a)?{}:{obj:a,k:Qg(o[u])}},Fg=(a,l,r)=>{const{obj:o,k:u}=Ki(a,l,Object);if(o!==void 0||l.length===1){o[u]=r;return}let f=l[l.length-1],d=l.slice(0,l.length-1),h=Ki(a,d,Object);for(;h.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),h=Ki(a,d,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${f}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${f}`]=r},VT=(a,l,r,o)=>{const{obj:u,k:f}=Ki(a,l,Object);u[f]=u[f]||[],u[f].push(r)},Ko=(a,l)=>{const{obj:r,k:o}=Ki(a,l);if(r&&Object.prototype.hasOwnProperty.call(r,o))return r[o]},$T=(a,l,r)=>{const o=Ko(a,r);return o!==void 0?o:Ko(l,r)},p0=(a,l,r)=>{for(const o in l)o!=="__proto__"&&o!=="constructor"&&(o in a?he(a[o])||a[o]instanceof String||he(l[o])||l[o]instanceof String?r&&(a[o]=l[o]):p0(a[o],l[o],r):a[o]=l[o]);return a},Ga=a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var GT={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const YT=a=>he(a)?a.replace(/[&<>"'\/]/g,l=>GT[l]):a;class qT{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 KT=[" ",",","?","!",";"],PT=new qT(20),XT=(a,l,r)=>{l=l||"",r=r||"";const o=KT.filter(d=>l.indexOf(d)<0&&r.indexOf(d)<0);if(o.length===0)return!0;const u=PT.getRegExp(`(${o.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!u.test(a);if(!f){const d=a.indexOf(r);d>0&&!u.test(a.substring(0,d))&&(f=!0)}return f},hf=(a,l,r=".")=>{if(!a)return;if(a[l])return Object.prototype.hasOwnProperty.call(a,l)?a[l]:void 0;const o=l.split(r);let u=a;for(let f=0;f<o.length;){if(!u||typeof u!="object")return;let d,h="";for(let m=f;m<o.length;++m)if(m!==f&&(h+=r),h+=o[m],d=u[h],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&m<o.length-1)continue;f+=m-f+1;break}u=d}return u},Ii=a=>a==null?void 0:a.replace(/_/g,"-"),QT={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,l){var r,o;(o=(r=console==null?void 0:console[a])==null?void 0:r.apply)==null||o.call(r,console,l)}};class Po{constructor(l,r={}){this.init(l,r)}init(l,r={}){this.prefix=r.prefix||"i18next:",this.logger=l||QT,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,u){return u&&!this.debug?null:(he(l[0])&&(l[0]=`${o}${this.prefix} ${l[0]}`),this.logger[r](l))}create(l){return new Po(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new Po(this.logger,l)}}var gn=new Po;class ss{constructor(){this.observers={}}on(l,r){return l.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const u=this.observers[o].get(r)||0;this.observers[o].set(r,u+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(([u,f])=>{for(let d=0;d<f;d++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,f])=>{for(let d=0;d<f;d++)u.apply(u,[l,...r])})}}class Jg extends ss{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,u={}){var p,y;const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,d=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;l.indexOf(".")>-1?h=l.split("."):(h=[l,r],o&&(Array.isArray(o)?h.push(...o):he(o)&&f?h.push(...o.split(f)):h.push(o)));const m=Ko(this.data,h);return!m&&!r&&!o&&l.indexOf(".")>-1&&(l=h[0],r=h[1],o=h.slice(2).join(".")),m||!d||!he(o)?m:hf((y=(p=this.data)==null?void 0:p[l])==null?void 0:y[r],o,f)}addResource(l,r,o,u,f={silent:!1}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let h=[l,r];o&&(h=h.concat(d?o.split(d):o)),l.indexOf(".")>-1&&(h=l.split("."),u=r,r=h[1]),this.addNamespaces(r),Fg(this.data,h,u),f.silent||this.emit("added",l,r,o,u)}addResources(l,r,o,u={silent:!1}){for(const f in o)(he(o[f])||Array.isArray(o[f]))&&this.addResource(l,r,f,o[f],{silent:!0});u.silent||this.emit("added",l,r,o)}addResourceBundle(l,r,o,u,f,d={silent:!1,skipCopy:!1}){let h=[l,r];l.indexOf(".")>-1&&(h=l.split("."),u=o,o=r,r=h[1]),this.addNamespaces(r);let m=Ko(this.data,h)||{};d.skipCopy||(o=JSON.parse(JSON.stringify(o))),u?p0(m,o,f):m={...m,...o},Fg(this.data,h,m),d.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(u=>r[u]&&Object.keys(r[u]).length>0)}toJSON(){return this.data}}var g0={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,l,r,o,u){return a.forEach(f=>{var d;l=((d=this.processors[f])==null?void 0:d.process(l,r,o,u))??l}),l}};const v0=Symbol("i18next/PATH_KEY");function ZT(){const a=[],l=Object.create(null);let r;return l.get=(o,u)=>{var f;return(f=r==null?void 0:r.revoke)==null||f.call(r),u===v0?a:(a.push(u),r=Proxy.revocable(o,l),r.proxy)},Proxy.revocable(Object.create(null),l).proxy}function Vl(a,l){const{[v0]:r}=a(ZT()),o=(l==null?void 0:l.keySeparator)??".",u=(l==null?void 0:l.nsSeparator)??":";if(r.length>1&&u){const f=l==null?void 0:l.ns,d=Array.isArray(f)?f:null;if(d&&d.length>1&&d.slice(1).includes(r[0]))return`${r[0]}${u}${r.slice(1).join(o)}`}return r.join(o)}const Ig={},Kc=a=>!he(a)&&typeof a!="boolean"&&typeof a!="number";class Xo extends ss{constructor(l,r={}){super(),BT(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gn.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,r={interpolation:{}}){const o={...r};if(l==null)return!1;const u=this.resolve(l,o);if((u==null?void 0:u.res)===void 0)return!1;const f=Kc(u.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 u=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const d=o&&l.indexOf(o)>-1,h=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!XT(l,o,u);if(d&&!h){const m=l.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:l,namespaces:he(f)?[f]:f};const p=l.split(o);(o!==u||o===u&&this.options.ns.indexOf(p[0])>-1)&&(f=p.shift()),l=p.join(u)}return{key:l,namespaces:he(f)?[f]:f}}translate(l,r,o){let u=typeof r=="object"?{...r}:r;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),l==null)return"";typeof l=="function"&&(l=Vl(l,{...this.options,...u})),Array.isArray(l)||(l=[String(l)]),l=l.map(se=>typeof se=="function"?Vl(se,{...this.options,...u}):String(se));const f=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:h,namespaces:m}=this.extractFromKey(l[l.length-1],u),p=m[m.length-1];let y=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const v=u.lng||this.language,E=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return E?f?{res:`${p}${y}${h}`,usedKey:h,exactUsedKey:h,usedLng:v,usedNS:p,usedParams:this.getUsedParamsDetails(u)}:`${p}${y}${h}`:f?{res:h,usedKey:h,exactUsedKey:h,usedLng:v,usedNS:p,usedParams:this.getUsedParamsDetails(u)}:h;const R=this.resolve(l,u);let w=R==null?void 0:R.res;const x=(R==null?void 0:R.usedKey)||h,T=(R==null?void 0:R.exactUsedKey)||h,N=["[object Number]","[object Function]","[object RegExp]"],j=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,k=u.count!==void 0&&!he(u.count),G=Xo.hasDefaultValue(u),X=k?this.pluralResolver.getSuffix(v,u.count,u):"",V=u.ordinal&&k?this.pluralResolver.getSuffix(v,u.count,{ordinal:!1}):"",F=k&&!u.ordinal&&u.count===0,W=F&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${X}`]||u[`defaultValue${V}`]||u.defaultValue;let ee=w;_&&!w&&G&&(ee=W);const re=Kc(ee),fe=Object.prototype.toString.apply(ee);if(_&&ee&&re&&N.indexOf(fe)<0&&!(he(j)&&Array.isArray(ee))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const se=this.options.returnedObjectHandler?this.options.returnedObjectHandler(x,ee,{...u,ns:m}):`key '${h} (${this.language})' returned an object instead of string.`;return f?(R.res=se,R.usedParams=this.getUsedParamsDetails(u),R):se}if(d){const se=Array.isArray(ee),le=se?[]:{},de=se?T:x;for(const L in ee)if(Object.prototype.hasOwnProperty.call(ee,L)){const K=`${de}${d}${L}`;G&&!w?le[L]=this.translate(K,{...u,defaultValue:Kc(W)?W[L]:void 0,joinArrays:!1,ns:m}):le[L]=this.translate(K,{...u,joinArrays:!1,ns:m}),le[L]===K&&(le[L]=ee[L])}w=le}}else if(_&&he(j)&&Array.isArray(w))w=w.join(j),w&&(w=this.extendTranslation(w,l,u,o));else{let se=!1,le=!1;!this.isValidLookup(w)&&G&&(se=!0,w=W),this.isValidLookup(w)||(le=!0,w=h);const L=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&le?void 0:w,K=G&&W!==w&&this.options.updateMissing;if(le||se||K){if(this.logger.log(K?"updateKey":"missingKey",v,p,h,K?W:w),d){const O=this.resolve(h,{...u,keySeparator:!1});O&&O.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 Q=[];const ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ae&&ae[0])for(let O=0;O<ae.length;O++)Q.push(ae[O]);else this.options.saveMissingTo==="all"?Q=this.languageUtils.toResolveHierarchy(u.lng||this.language):Q.push(u.lng||this.language);const me=(O,Y,Z)=>{var ue;const I=G&&Z!==w?Z:L;this.options.missingKeyHandler?this.options.missingKeyHandler(O,p,Y,I,K,u):(ue=this.backendConnector)!=null&&ue.saveMissing&&this.backendConnector.saveMissing(O,p,Y,I,K,u),this.emit("missingKey",O,p,Y,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?Q.forEach(O=>{const Y=this.pluralResolver.getSuffixes(O,u);F&&u[`defaultValue${this.options.pluralSeparator}zero`]&&Y.indexOf(`${this.options.pluralSeparator}zero`)<0&&Y.push(`${this.options.pluralSeparator}zero`),Y.forEach(Z=>{me([O],h+Z,u[`defaultValue${Z}`]||W)})}):me(Q,h,W))}w=this.extendTranslation(w,l,u,R,o),le&&w===h&&this.options.appendNamespaceToMissingKey&&(w=`${p}${y}${h}`),(le||se)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${y}${h}`:h,se?w:void 0,u))}return f?(R.res=w,R.usedParams=this.getUsedParamsDetails(u),R):w}extendTranslation(l,r,o,u,f){var m,p;if((m=this.i18nFormat)!=null&&m.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const y=he(l)&&(((p=o==null?void 0:o.interpolation)==null?void 0:p.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(y){const R=l.match(this.interpolator.nestingRegexp);v=R&&R.length}let E=o.replace&&!he(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),l=this.interpolator.interpolate(l,E,o.lng||this.language||u.usedLng,o),y){const R=l.match(this.interpolator.nestingRegexp),w=R&&R.length;v<w&&(o.nest=!1)}!o.lng&&u&&u.res&&(o.lng=this.language||u.usedLng),o.nest!==!1&&(l=this.interpolator.nest(l,(...R)=>(f==null?void 0:f[0])===R[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${R[0]} in key: ${r[0]}`),null):this.translate(...R,r),o)),o.interpolation&&this.interpolator.reset()}const d=o.postProcess||this.options.postProcess,h=he(d)?[d]:d;return l!=null&&(h!=null&&h.length)&&o.applyPostProcessor!==!1&&(l=g0.handle(h,l,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),l}resolve(l,r={}){let o,u,f,d,h;return he(l)&&(l=[l]),Array.isArray(l)&&(l=l.map(m=>typeof m=="function"?Vl(m,{...this.options,...r}):m)),l.forEach(m=>{if(this.isValidLookup(o))return;const p=this.extractFromKey(m,r),y=p.key;u=y;let v=p.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const E=r.count!==void 0&&!he(r.count),R=E&&!r.ordinal&&r.count===0,w=r.context!==void 0&&(he(r.context)||typeof r.context=="number")&&r.context!=="",x=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);v.forEach(T=>{var N,j;this.isValidLookup(o)||(h=T,!Ig[`${x[0]}-${T}`]&&((N=this.utils)!=null&&N.hasLoadedNamespace)&&!((j=this.utils)!=null&&j.hasLoadedNamespace(h))&&(Ig[`${x[0]}-${T}`]=!0,this.logger.warn(`key "${u}" for languages "${x.join(", ")}" won't get resolved as namespace "${h}" 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!!!")),x.forEach(_=>{var X;if(this.isValidLookup(o))return;d=_;const k=[y];if((X=this.i18nFormat)!=null&&X.addLookupKeys)this.i18nFormat.addLookupKeys(k,y,_,T,r);else{let V;E&&(V=this.pluralResolver.getSuffix(_,r.count,r));const F=`${this.options.pluralSeparator}zero`,W=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(r.ordinal&&V.indexOf(W)===0&&k.push(y+V.replace(W,this.options.pluralSeparator)),k.push(y+V),R&&k.push(y+F)),w){const ee=`${y}${this.options.contextSeparator||"_"}${r.context}`;k.push(ee),E&&(r.ordinal&&V.indexOf(W)===0&&k.push(ee+V.replace(W,this.options.pluralSeparator)),k.push(ee+V),R&&k.push(ee+F))}}let G;for(;G=k.pop();)this.isValidLookup(o)||(f=G,o=this.getResource(_,T,G,r))}))})}),{res:o,usedKey:u,exactUsedKey:f,usedLng:d,usedNS:h}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,r,o,u={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(l,r,o,u):this.resourceStore.getResource(l,r,o,u)}getUsedParamsDetails(l={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=l.replace&&!he(l.replace);let u=o?l.replace:l;if(o&&typeof l.count<"u"&&(u.count=l.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!o){u={...u};for(const f of r)delete u[f]}return u}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 Wg{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gn.create("languageUtils")}getScriptPartFromCode(l){if(l=Ii(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=Ii(l),!l||l.indexOf("-")<0)return l;const r=l.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(l){if(he(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 u=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(u))&&(r=u)}),!r&&this.options.supportedLngs&&l.forEach(o=>{if(r)return;const u=this.getScriptPartFromCode(o);if(this.isSupportedCode(u))return r=u;const f=this.getLanguagePartFromCode(o);if(this.isSupportedCode(f))return r=f;r=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&(d.indexOf("-")>0&&f.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===f||d.indexOf(f)===0&&f.length>1))return d})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(l,r){if(!l)return[];if(typeof l=="function"&&(l=l(r)),he(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),u=[],f=d=>{d&&(this.isSupportedCode(d)?u.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return he(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))):he(l)&&f(this.formatLanguageCode(l)),o.forEach(d=>{u.indexOf(d)<0&&f(this.formatLanguageCode(d))}),u}}const ev={zero:0,one:1,two:2,few:3,many:4,other:5},tv={select:a=>a===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class FT{constructor(l,r={}){this.languageUtils=l,this.options=r,this.logger=gn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(l,r={}){const o=Ii(l==="dev"?"en":l),u=r.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:o,type:u});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(o,{type:u})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),tv;if(!l.match(/-|_/))return tv;const m=this.languageUtils.getLanguagePartFromCode(l);d=this.getRule(m,r)}return this.pluralRulesCache[f]=d,d}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(u=>`${r}${u}`)}getSuffixes(l,r={}){let o=this.getRule(l,r);return o||(o=this.getRule("dev",r)),o?o.resolvedOptions().pluralCategories.sort((u,f)=>ev[u]-ev[f]).map(u=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(l,r,o={}){const u=this.getRule(l,o);return u?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${u.select(r)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",r,o))}}const nv=(a,l,r,o=".",u=!0)=>{let f=$T(a,l,r);return!f&&u&&he(r)&&(f=hf(a,r,o),f===void 0&&(f=hf(l,r,o))),f},Pc=a=>a.replace(/\$/g,"$$$$");class av{constructor(l={}){var r;this.logger=gn.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:u,prefix:f,prefixEscaped:d,suffix:h,suffixEscaped:m,formatSeparator:p,unescapeSuffix:y,unescapePrefix:v,nestingPrefix:E,nestingPrefixEscaped:R,nestingSuffix:w,nestingSuffixEscaped:x,nestingOptionsSeparator:T,maxReplaces:N,alwaysFormat:j}=l.interpolation;this.escape=r!==void 0?r:YT,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=f?Ga(f):d||"{{",this.suffix=h?Ga(h):m||"}}",this.formatSeparator=p||",",this.unescapePrefix=y?"":v||"-",this.unescapeSuffix=this.unescapePrefix?"":y||"",this.nestingPrefix=E?Ga(E):R||Ga("$t("),this.nestingSuffix=w?Ga(w):x||Ga(")"),this.nestingOptionsSeparator=T||",",this.maxReplaces=N||1e3,this.alwaysFormat=j!==void 0?j:!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,u){var R;let f,d,h;const m=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=w=>{if(w.indexOf(this.formatSeparator)<0){const j=nv(r,m,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,o,{...u,...r,interpolationkey:w}):j}const x=w.split(this.formatSeparator),T=x.shift().trim(),N=x.join(this.formatSeparator).trim();return this.format(nv(r,m,T,this.options.keySeparator,this.options.ignoreJSONStructure),N,o,{...u,...r,interpolationkey:T})};this.resetRegExp();const y=(u==null?void 0:u.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((R=u==null?void 0:u.interpolation)==null?void 0:R.skipOnVariables)!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>Pc(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?Pc(this.escape(w)):Pc(w)}].forEach(w=>{for(h=0;f=w.regex.exec(l);){const x=f[1].trim();if(d=p(x),d===void 0)if(typeof y=="function"){const N=y(l,f,u);d=he(N)?N:""}else if(u&&Object.prototype.hasOwnProperty.call(u,x))d="";else if(v){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${x} for interpolating ${l}`),d="";else!he(d)&&!this.useRawValueToEscape&&(d=Xg(d));const T=w.safeValue(d);if(l=l.replace(f[0],T),v?(w.regex.lastIndex+=d.length,w.regex.lastIndex-=f[0].length):w.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),l}nest(l,r,o={}){let u,f,d;const h=(m,p)=>{const y=this.nestingOptionsSeparator;if(m.indexOf(y)<0)return m;const v=m.split(new RegExp(`${Ga(y)}[ ]*{`));let E=`{${v[1]}`;m=v[0],E=this.interpolate(E,d);const R=E.match(/'/g),w=E.match(/"/g);(((R==null?void 0:R.length)??0)%2===0&&!w||((w==null?void 0:w.length)??0)%2!==0)&&(E=E.replace(/'/g,'"'));try{d=JSON.parse(E),p&&(d={...p,...d})}catch(x){return this.logger.warn(`failed parsing options string in nesting for key ${m}`,x),`${m}${y}${E}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,m};for(;u=this.nestingRegexp.exec(l);){let m=[];d={...o},d=d.replace&&!he(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const p=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(p!==-1&&(m=u[1].slice(p).split(this.formatSeparator).map(y=>y.trim()).filter(Boolean),u[1]=u[1].slice(0,p)),f=r(h.call(this,u[1].trim(),d),d),f&&u[0]===l&&!he(f))return f;he(f)||(f=Xg(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${l}`),f=""),m.length&&(f=m.reduce((y,v)=>this.format(y,v,o.lng,{...o,interpolationkey:u[1].trim()}),f.trim())),l=l.replace(u[0],f),this.regexp.lastIndex=0}return l}}const JT=a=>{let l=a.toLowerCase().trim();const r={};if(a.indexOf("(")>-1){const o=a.split("(");l=o[0].toLowerCase().trim();const u=o[1].substring(0,o[1].length-1);l==="currency"&&u.indexOf(":")<0?r.currency||(r.currency=u.trim()):l==="relativetime"&&u.indexOf(":")<0?r.range||(r.range=u.trim()):u.split(";").forEach(d=>{if(d){const[h,...m]=d.split(":"),p=m.join(":").trim().replace(/^'+|'+$/g,""),y=h.trim();r[y]||(r[y]=p),p==="false"&&(r[y]=!1),p==="true"&&(r[y]=!0),isNaN(p)||(r[y]=parseInt(p,10))}})}return{formatName:l,formatOptions:r}},lv=a=>{const l={};return(r,o,u)=>{let f=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(f={...f,[u.interpolationkey]:void 0});const d=o+JSON.stringify(f);let h=l[d];return h||(h=a(Ii(o),u),l[d]=h),h(r)}},IT=a=>(l,r,o)=>a(Ii(r),o)(l);class WT{constructor(l={}){this.logger=gn.create("formatter"),this.options=l,this.init(l)}init(l,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const o=r.cacheInBuiltFormats?lv:IT;this.formats={number:o((u,f)=>{const d=new Intl.NumberFormat(u,{...f});return h=>d.format(h)}),currency:o((u,f)=>{const d=new Intl.NumberFormat(u,{...f,style:"currency"});return h=>d.format(h)}),datetime:o((u,f)=>{const d=new Intl.DateTimeFormat(u,{...f});return h=>d.format(h)}),relativetime:o((u,f)=>{const d=new Intl.RelativeTimeFormat(u,{...f});return h=>d.format(h,f.range||"day")}),list:o((u,f)=>{const d=new Intl.ListFormat(u,{...f});return h=>d.format(h)})}}add(l,r){this.formats[l.toLowerCase().trim()]=r}addCached(l,r){this.formats[l.toLowerCase().trim()]=lv(r)}format(l,r,o,u={}){const f=r.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(h=>h.indexOf(")")>-1)){const h=f.findIndex(m=>m.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,h)].join(this.formatSeparator)}return f.reduce((h,m)=>{var v;const{formatName:p,formatOptions:y}=JT(m);if(this.formats[p]){let E=h;try{const R=((v=u==null?void 0:u.formatParams)==null?void 0:v[u.interpolationkey])||{},w=R.locale||R.lng||u.locale||u.lng||o;E=this.formats[p](h,w,{...y,...u,...R})}catch(R){this.logger.warn(R)}return E}else this.logger.warn(`there was no format function for ${p}`);return h},l)}}const eA=(a,l)=>{a.pending[l]!==void 0&&(delete a.pending[l],a.pendingCount--)};class tA extends ss{constructor(l,r,o,u={}){var f,d;super(),this.backend=l,this.store=r,this.services=o,this.languageUtils=o.languageUtils,this.options=u,this.logger=gn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],(d=(f=this.backend)==null?void 0:f.init)==null||d.call(f,o,u.backend,u)}queueLoad(l,r,o,u){const f={},d={},h={},m={};return l.forEach(p=>{let y=!0;r.forEach(v=>{const E=`${p}|${v}`;!o.reload&&this.store.hasResourceBundle(p,v)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?d[E]===void 0&&(d[E]=!0):(this.state[E]=1,y=!1,d[E]===void 0&&(d[E]=!0),f[E]===void 0&&(f[E]=!0),m[v]===void 0&&(m[v]=!0)))}),y||(h[p]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(m)}}loaded(l,r,o){const u=l.split("|"),f=u[0],d=u[1];r&&this.emit("failedLoading",f,d,r),!r&&o&&this.store.addResourceBundle(f,d,o,void 0,void 0,{skipCopy:!0}),this.state[l]=r?-1:2,r&&o&&(this.state[l]=0);const h={};this.queue.forEach(m=>{VT(m.loaded,[f],d),eA(m,l),r&&m.errors.push(r),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(p=>{h[p]||(h[p]={});const y=m.loaded[p];y.length&&y.forEach(v=>{h[p][v]===void 0&&(h[p][v]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(m=>!m.done)}read(l,r,o,u=0,f=this.retryTimeout,d){if(!l.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:r,fcName:o,tried:u,wait:f,callback:d});return}this.readingCalls++;const h=(p,y)=>{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(p&&y&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,l,r,o,u+1,f*2,d)},f);return}d(p,y)},m=this.backend[o].bind(this.backend);if(m.length===2){try{const p=m(l,r);p&&typeof p.then=="function"?p.then(y=>h(null,y)).catch(h):h(null,p)}catch(p){h(p)}return}return m(l,r,h)}prepareLoading(l,r,o={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();he(l)&&(l=this.languageUtils.toResolveHierarchy(l)),he(r)&&(r=[r]);const f=this.queueLoad(l,r,o,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}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("|"),u=o[0],f=o[1];this.read(u,f,"read",void 0,void 0,(d,h)=>{d&&this.logger.warn(`${r}loading namespace ${f} for language ${u} failed`,d),!d&&h&&this.logger.log(`${r}loaded namespace ${f} for language ${u}`,h),this.loaded(l,d,h)})}saveMissing(l,r,o,u,f,d={},h=()=>{}){var m,p,y,v,E;if((p=(m=this.services)==null?void 0:m.utils)!=null&&p.hasLoadedNamespace&&!((v=(y=this.services)==null?void 0:y.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((E=this.backend)!=null&&E.create){const R={...d,isUpdate:f},w=this.backend.create.bind(this.backend);if(w.length<6)try{let x;w.length===5?x=w(l,r,o,u,R):x=w(l,r,o,u),x&&typeof x.then=="function"?x.then(T=>h(null,T)).catch(h):h(null,x)}catch(x){h(x)}else w(l,r,o,u,h,R)}!l||!l[0]||this.store.addResource(l[0],r,o,u)}}}const Xc=()=>({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:a=>{let l={};if(typeof a[1]=="object"&&(l=a[1]),he(a[1])&&(l.defaultValue=a[1]),he(a[2])&&(l.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){const r=a[3]||a[2];Object.keys(r).forEach(o=>{l[o]=r[o]})}return l},interpolation:{escapeValue:!0,format:a=>a,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),iv=a=>{var l,r;return he(a.ns)&&(a.ns=[a.ns]),he(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),he(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),((r=(l=a.supportedLngs)==null?void 0:l.indexOf)==null?void 0:r.call(l,"cimode"))<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a},Oo=()=>{},nA=a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(r=>{typeof a[r]=="function"&&(a[r]=a[r].bind(a))})},y0="__i18next_supportNoticeShown",aA=()=>!!(typeof globalThis<"u"&&globalThis[y0]||typeof process<"u"&&qc&&qc.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&qc),lA=()=>{typeof globalThis<"u"&&(globalThis[y0]=!0)},iA=a=>{var l,r,o,u,f,d,h,m,p,y,v,E,R;return!!(((o=(r=(l=a==null?void 0:a.modules)==null?void 0:l.backend)==null?void 0:r.name)==null?void 0:o.indexOf("Locize"))>0||((h=(d=(f=(u=a==null?void 0:a.modules)==null?void 0:u.backend)==null?void 0:f.constructor)==null?void 0:d.name)==null?void 0:h.indexOf("Locize"))>0||(p=(m=a==null?void 0:a.options)==null?void 0:m.backend)!=null&&p.backends&&a.options.backend.backends.some(w=>{var x,T,N;return((x=w==null?void 0:w.name)==null?void 0:x.indexOf("Locize"))>0||((N=(T=w==null?void 0:w.constructor)==null?void 0:T.name)==null?void 0:N.indexOf("Locize"))>0})||(v=(y=a==null?void 0:a.options)==null?void 0:y.backend)!=null&&v.projectId||(R=(E=a==null?void 0:a.options)==null?void 0:E.backend)!=null&&R.backendOptions&&a.options.backend.backendOptions.some(w=>w==null?void 0:w.projectId))};class Pi extends ss{constructor(l={},r){if(super(),this.options=iv(l),this.services={},this.logger=gn,this.modules={external:[]},nA(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&&(he(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const o=Xc();this.options={...o,...this.options,...iv(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&&!iA(this)&&!aA()&&(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 💙"),lA());const u=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?gn.init(u(this.modules.logger),this.options):gn.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=WT;const y=new Wg(this.options);this.store=new Jg(this.options.resources,this.options);const v=this.services;v.logger=gn,v.resourceStore=this.store,v.languageUtils=y,v.pluralResolver=new FT(y,{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"),p&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(v.formatter=u(p),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new av(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new tA(u(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(R,...w)=>{this.emit(R,...w)}),this.modules.languageDetector&&(v.languageDetector=u(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=u(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Xo(this.services,this.options),this.translator.on("*",(R,...w)=>{this.emit(R,...w)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Oo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...y)=>this.store[p](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...y)=>(this.store[p](...y),this)});const h=Yi(),m=()=>{const p=(y,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),h.resolve(v),r(y,v)};if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?m():setTimeout(m,0),h}loadResources(l,r=Oo){var f,d;let o=r;const u=he(l)?l:this.language;if(typeof l=="function"&&(o=l),!this.options.resources||this.options.partialBundledLanguages){if((u==null?void 0:u.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const h=[],m=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(v=>{v!=="cimode"&&h.indexOf(v)<0&&h.push(v)})};u?m(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>m(y)),(d=(f=this.options.preload)==null?void 0:f.forEach)==null||d.call(f,p=>m(p)),this.services.backendConnector.load(h,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(p)})}else o(null)}reloadResources(l,r,o){const u=Yi();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=Oo),this.services.backendConnector.reload(l,r,f=>{u.resolve(),o(f)}),u}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"&&g0.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=Yi();this.emit("languageChanging",l);const u=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},f=(h,m)=>{m?this.isLanguageChangingTo===l&&(u(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,o.resolve((...p)=>this.t(...p)),r&&r(h,(...p)=>this.t(...p))},d=h=>{var y,v;!l&&!h&&this.services.languageDetector&&(h=[]);const m=he(h)?h:h&&h[0],p=this.store.hasLanguageSomeTranslations(m)?m:this.services.languageUtils.getBestMatchFromCodes(he(h)?[h]:h);p&&(this.language||u(p),this.translator.language||this.translator.changeLanguage(p),(v=(y=this.services.languageDetector)==null?void 0:y.cacheUserLanguage)==null||v.call(y,p)),this.loadResources(p,E=>{f(E,p)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(l),o}getFixedT(l,r,o){const u=(f,d,...h)=>{let m;typeof d!="object"?m=this.options.overloadTranslationOptionHandler([f,d].concat(h)):m={...d},m.lng=m.lng||u.lng,m.lngs=m.lngs||u.lngs,m.ns=m.ns||u.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||o||u.keyPrefix);const p={...this.options,...m};typeof m.keyPrefix=="function"&&(m.keyPrefix=Vl(m.keyPrefix,p));const y=this.options.keySeparator||".";let v;return m.keyPrefix&&Array.isArray(f)?v=f.map(E=>(typeof E=="function"&&(E=Vl(E,p)),`${m.keyPrefix}${y}${E}`)):(typeof f=="function"&&(f=Vl(f,p)),v=m.keyPrefix?`${m.keyPrefix}${y}${f}`:f),this.t(v,m)};return he(l)?u.lng=l:u.lngs=l,u.ns=r,u.keyPrefix=o,u}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],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const d=(h,m)=>{const p=this.services.backendConnector.state[`${h}|${m}`];return p===-1||p===0||p===2};if(r.precheck){const h=r.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(o,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(o,l)&&(!u||d(f,l)))}loadNamespaces(l,r){const o=Yi();return this.options.ns?(he(l)&&(l=[l]),l.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{o.resolve(),r&&r(u)}),o):(r&&r(),Promise.resolve())}loadLanguages(l,r){const o=Yi();he(l)&&(l=[l]);const u=this.options.preload||[],f=l.filter(d=>u.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=u.concat(f),this.loadResources(d=>{o.resolve(),r&&r(d)}),o):(r&&r(),Promise.resolve())}dir(l){var u,f;if(l||(l=this.resolvedLanguage||(((u=this.languages)==null?void 0:u.length)>0?this.languages[0]:this.language)),!l)return"rtl";try{const d=new Intl.Locale(l);if(d&&d.getTextInfo){const h=d.getTextInfo();if(h&&h.direction)return h.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 Wg(Xc());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 Pi(l,r);return o.createInstance=Pi.createInstance,o}cloneInstance(l={},r=Oo){const o=l.forkResourceStore;o&&delete l.forkResourceStore;const u={...this.options,...l,isClone:!0},f=new Pi(u);if((l.debug!==void 0||l.prefix!==void 0)&&(f.logger=f.logger.clone(l)),["store","services","language"].forEach(h=>{f[h]=this[h]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},o){const h=Object.keys(this.store.data).reduce((m,p)=>(m[p]={...this.store.data[p]},m[p]=Object.keys(m[p]).reduce((y,v)=>(y[v]={...m[p][v]},y),m[p]),m),{});f.store=new Jg(h,u),f.services.resourceStore=f.store}if(l.interpolation){const m={...Xc().interpolation,...this.options.interpolation,...l.interpolation},p={...u,interpolation:m};f.services.interpolator=new av(p)}return f.translator=new Xo(f.services,u),f.translator.on("*",(h,...m)=>{f.emit(h,...m)}),f.init(u,r),f.translator.options=u,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 gt=Pi.createInstance();gt.createInstance;gt.dir;gt.init;gt.loadResources;gt.reloadResources;gt.use;gt.changeLanguage;gt.getFixedT;gt.t;gt.exists;gt.setDefaultNamespace;gt.hasLoadedNamespace;gt.loadNamespaces;gt.loadLanguages;const rA={dashboard:"Dashboard",chat:"Chat",chatDesktop:"Desktop Chat",chatWeb:"Chat",workspace:"Workspace",knowledge:"Knowledge",projects:"Projects",sessions:"Sessions",cron:"Cron",bridge:"Bridge",system:"System"},oA={title:"Dashboard",version:"Version",uptime:"Uptime",platforms:"Platforms",projects:"Projects",bridgeAdapters:"Bridge adapters",noData:"No data available"},sA={title:"Projects",name:"Name",agent:"Agent",platforms:"Platforms",sessions:"Sessions",heartbeat:"Heartbeat",settings:"Settings",quiet:"Quiet mode",language:"Language",adminFrom:"Admin from",disabledCommands:"Disabled commands",save:"Save",detail:"Details",noProjects:"No projects configured",tabs:{overview:"Overview",providers:"Providers",heartbeat:"Heartbeat",settings:"Settings"}},uA={title:"Sessions",id:"ID",sessionKey:"Session key",name:"Name",platform:"Platform",active:"Active",createdAt:"Created at",history:"History",send:"Send",messageInput:"Message",delete:"Delete",noSessions:"No sessions",noMessages:"No messages yet",notLiveHint:"This chat target is offline right now, so replies are temporarily unavailable. When new activity arrives, sending will become available again.",offline:"offline",justNow:"just now",allProjects:"All projects",chat:"Chat",enterSession:"Open session",newChat:"New chat",selectProject:"Select a project",projectRequired:"Choose a project before starting a chat.",noAvailableChatTarget:"There is no conversation ready to chat in this project yet. Open an available session from the sessions view first.",noReadyChats:"There are no chat-ready sessions right now. Use the Sessions page to review history.",emptyProject:"This project does not have any sessions yet.",emptySelection:"Pick a project and start a new chat to begin.",activeChat:"Active chat",sendHint:"Messages will be sent to the selected project.",waitingForReply:"Waiting for the assistant reply…",preparingChat:"Preparing the chat…",pollTimeout:"The assistant did not finish responding before the refresh timeout.",createFailed:"Failed to create a new chat session.",loadFailed:"Failed to load the selected session.",sendFailed:"Failed to send the message.",sessionUnavailable:"This chat target is offline right now, so replies are temporarily unavailable. Try again after new activity arrives.",deleteConfirmTitle:"Delete session",deleteConfirmBody:"This removes the saved conversation history for the selected session.",renameTitle:"Rename session",renamePlaceholder:"Session name",loadSession:"Open",historyTitle:"Conversation history",availableNow:"Ready to chat",waitingActivation:"Waiting to become available"},cA={title:"Providers",name:"Name",model:"Model",baseUrl:"Base URL",active:"Active",add:"Add provider",remove:"Remove",activate:"Activate",setModel:"Set model",models:"Models"},fA={title:"Scheduled jobs",expression:"Cron expression",prompt:"Prompt",exec:"Execute",description:"Description",enabled:"Enabled",silent:"Silent",lastRun:"Last run",lastError:"Last error",add:"Add job",delete:"Delete",noJobs:"No scheduled jobs",workDir:"Working directory",sessionKey:"Session key",project:"Project"},dA={title:"Heartbeat",status:"Status",interval:"Interval",paused:"Paused",running:"Running",pause:"Pause",resume:"Resume",trigger:"Run now",setInterval:"Set interval",runCount:"Run count",errorCount:"Error count",skippedBusy:"Skipped (busy)",lastRun:"Last run"},hA={title:"Bridge",platform:"Platform",capabilities:"Capabilities",connectedAt:"Connected at",noAdapters:"No bridge adapters"},mA={title:"System",config:"Configuration",logs:"Logs",restart:"Restart",reload:"Reload config",restartConfirm:"Restart the service? Active sessions may be interrupted.",reloadConfirm:"Reload configuration from disk?",level:"Log level",limit:"Line limit"},pA={title:"AgentDock",subtitle:"Connect to your AgentDock instance",token:"API token",serverUrl:"Server URL",connect:"Connect",invalidToken:"Invalid or expired token",logout:"Log out"},gA={loading:"Loading…",error:"Error",success:"Success",confirm:"Confirm",cancel:"Cancel",save:"Save",delete:"Delete",back:"Back",refresh:"Refresh",search:"Search",noData:"No data",actions:"Actions",viewAll:"View all",optional:"optional",confirmDelete:"Are you sure you want to delete this?"},vA={light:"Light",dark:"Dark",system:"System"},yA={nav:rA,dashboard:oA,projects:sA,sessions:uA,providers:cA,cron:fA,heartbeat:dA,bridge:hA,system:mA,login:pA,common:gA,theme:vA},bA={dashboard:"概览",chat:"聊天",chatDesktop:"桌面聊天",chatWeb:"聊天",workspace:"工作区",knowledge:"知识库",projects:"项目",sessions:"会话",cron:"定时任务",bridge:"桥接",system:"系统"},SA={title:"概览",version:"版本",uptime:"运行时间",platforms:"平台",projects:"项目",bridgeAdapters:"桥接适配器",noData:"暂无数据"},xA={title:"项目",name:"名称",agent:"智能体",platforms:"平台",sessions:"会话",heartbeat:"心跳",settings:"设置",quiet:"静默模式",language:"语言",adminFrom:"管理来源",disabledCommands:"已禁用命令",save:"保存",detail:"详情",noProjects:"尚未配置项目",tabs:{overview:"概览",providers:"服务商",heartbeat:"心跳",settings:"设置"}},EA={title:"会话",id:"编号",sessionKey:"会话键",name:"名称",platform:"平台",active:"活跃",createdAt:"创建时间",history:"历史",send:"发送",messageInput:"消息",delete:"删除",noSessions:"暂无会话",noMessages:"暂无消息",notLiveHint:"当前聊天对象现在不在线,暂时不能继续回复。等有新消息进来后,这里会自动恢复可发送。",offline:"离线",justNow:"刚刚",allProjects:"全部项目",chat:"对话",enterSession:"进入会话",newChat:"新建聊天",selectProject:"选择项目",projectRequired:"开始聊天前请先选择一个项目。",noAvailableChatTarget:"当前项目还没有可直接聊天的会话,请先从会话列表打开一个可用会话。",noReadyChats:"当前没有可立即聊天的会话,请到“会话”页查看历史记录。",emptyProject:"这个项目下还没有任何会话。",emptySelection:"选择一个项目,然后开始新的聊天。",activeChat:"当前聊天",sendHint:"消息会发送到当前选中的项目。",waitingForReply:"正在等待助手回复…",preparingChat:"正在准备聊天…",pollTimeout:"刷新超时前未收到完整回复。",createFailed:"创建新聊天会话失败。",loadFailed:"加载所选会话失败。",sendFailed:"发送消息失败。",sessionUnavailable:"当前聊天对象现在不在线,暂时不能继续回复。等有新消息进来后再试。",deleteConfirmTitle:"删除会话",deleteConfirmBody:"这会移除该会话保存的历史对话。",renameTitle:"重命名会话",renamePlaceholder:"会话名称",loadSession:"打开",historyTitle:"历史会话",availableNow:"可发送消息",waitingActivation:"等待激活"},wA={title:"模型提供方",name:"名称",model:"模型",baseUrl:"基础 URL",active:"当前使用",add:"添加提供方",remove:"移除",activate:"启用",setModel:"设置模型",models:"可用模型"},CA={title:"定时任务",expression:"Cron 表达式",prompt:"提示词",exec:"执行",description:"描述",enabled:"已启用",silent:"静默",lastRun:"上次运行",lastError:"上次错误",add:"添加任务",delete:"删除",noJobs:"暂无定时任务",workDir:"工作目录",sessionKey:"会话键",project:"项目"},RA={title:"心跳",status:"状态",interval:"间隔",paused:"已暂停",running:"运行中",pause:"暂停",resume:"恢复",trigger:"立即执行",setInterval:"设置间隔",runCount:"执行次数",errorCount:"错误次数",skippedBusy:"跳过(忙碌)",lastRun:"上次运行"},TA={title:"桥接",platform:"平台",capabilities:"能力",connectedAt:"连接时间",noAdapters:"暂无桥接适配器"},AA={title:"系统",config:"配置",logs:"日志",restart:"重启",reload:"重载配置",restartConfirm:"确定要重启服务吗?进行中的会话可能会中断。",reloadConfirm:"从磁盘重新加载配置?",level:"日志级别",limit:"行数限制"},OA={title:"AgentDock",subtitle:"连接到您的 AgentDock 实例",token:"API 令牌",serverUrl:"服务器地址",connect:"连接",invalidToken:"令牌无效或已过期",logout:"退出登录"},_A={loading:"加载中…",error:"错误",success:"成功",confirm:"确认",cancel:"取消",save:"保存",delete:"删除",back:"返回",refresh:"刷新",search:"搜索",noData:"无数据",actions:"操作",viewAll:"查看全部",optional:"可选",confirmDelete:"确定要删除吗?"},NA={light:"浅色",dark:"深色",system:"跟随系统"},DA={nav:bA,dashboard:SA,projects:xA,sessions:EA,providers:wA,cron:CA,heartbeat:RA,bridge:TA,system:AA,login:OA,common:_A,theme:NA},jA={dashboard:"總覽",chat:"聊天",chatDesktop:"桌面聊天",chatWeb:"聊天",workspace:"工作區",knowledge:"知識庫",projects:"專案",sessions:"工作階段",cron:"排程工作",bridge:"橋接",system:"系統"},MA={title:"總覽",version:"版本",uptime:"運作時間",platforms:"平台",projects:"專案",bridgeAdapters:"橋接介接器",noData:"尚無資料"},LA={title:"專案",name:"名稱",agent:"智慧代理",platforms:"平台",sessions:"工作階段",heartbeat:"心跳",settings:"設定",quiet:"靜音模式",language:"語言",adminFrom:"管理來源",disabledCommands:"已停用指令",save:"儲存",detail:"詳細資料",noProjects:"尚未設定專案",tabs:{overview:"總覽",providers:"供應商",heartbeat:"心跳",settings:"設定"}},zA={title:"工作階段",id:"編號",sessionKey:"工作階段金鑰",name:"名稱",platform:"平台",active:"使用中",createdAt:"建立時間",history:"歷程",send:"傳送",messageInput:"訊息",delete:"刪除",noSessions:"尚無工作階段",noMessages:"暫無訊息",notLiveHint:"目前這個聊天對象不在線上,暫時無法繼續回覆。等有新訊息進來後,這裡會自動恢復可傳送。",offline:"離線",justNow:"剛剛",allProjects:"全部專案",chat:"對話",enterSession:"進入工作階段",newChat:"新增聊天",selectProject:"選擇專案",projectRequired:"開始聊天前請先選擇一個專案。",noAvailableChatTarget:"這個專案目前還沒有可直接聊天的對話,請先從工作階段頁面開啟一個可用對話。",noReadyChats:"目前沒有可立即聊天的對話,請到「工作階段」頁面查看歷史記錄。",emptyProject:"這個專案下還沒有任何工作階段。",emptySelection:"選擇一個專案,然後開始新的聊天。",activeChat:"目前聊天",sendHint:"訊息會傳送到目前選取的專案。",waitingForReply:"正在等待助手回覆…",preparingChat:"正在準備聊天…",pollTimeout:"在重新整理逾時前尚未收到完整回覆。",createFailed:"建立新聊天工作階段失敗。",loadFailed:"載入所選工作階段失敗。",sendFailed:"傳送訊息失敗。",sessionUnavailable:"目前這個聊天對象不在線上,暫時無法繼續回覆。等有新訊息進來後再試一次。",deleteConfirmTitle:"刪除工作階段",deleteConfirmBody:"這會移除該工作階段儲存的歷史對話。",renameTitle:"重新命名工作階段",renamePlaceholder:"工作階段名稱",loadSession:"開啟",historyTitle:"歷史工作階段",availableNow:"可傳送訊息",waitingActivation:"等待啟用"},kA={title:"模型供應商",name:"名稱",model:"模型",baseUrl:"基礎 URL",active:"使用中",add:"新增供應商",remove:"移除",activate:"啟用",setModel:"設定模型",models:"可用模型"},UA={title:"排程工作",expression:"Cron 運算式",prompt:"提示詞",exec:"執行",description:"說明",enabled:"已啟用",silent:"靜音",lastRun:"上次執行",lastError:"上次錯誤",add:"新增工作",delete:"刪除",noJobs:"尚無排程工作",workDir:"工作目錄",sessionKey:"工作階段金鑰",project:"專案"},BA={title:"心跳",status:"狀態",interval:"間隔",paused:"已暫停",running:"執行中",pause:"暫停",resume:"繼續",trigger:"立即執行",setInterval:"設定間隔",runCount:"執行次數",errorCount:"錯誤次數",skippedBusy:"略過(忙碌)",lastRun:"上次執行"},HA={title:"橋接",platform:"平台",capabilities:"能力",connectedAt:"連線時間",noAdapters:"尚無橋接介接器"},VA={title:"系統",config:"設定",logs:"記錄",restart:"重新啟動",reload:"重新載入設定",restartConfirm:"確定要重新啟動服務嗎?進行中的工作階段可能會中斷。",reloadConfirm:"從磁碟重新載入設定?",level:"記錄層級",limit:"筆數上限"},$A={title:"AgentDock",subtitle:"連線至您的 AgentDock 執行個體",token:"API 權杖",serverUrl:"伺服器位址",connect:"連線",invalidToken:"權杖無效或已過期",logout:"登出"},GA={loading:"載入中…",error:"錯誤",success:"成功",confirm:"確認",cancel:"取消",save:"儲存",delete:"刪除",back:"返回",refresh:"重新整理",search:"搜尋",noData:"無資料",actions:"操作",viewAll:"檢視全部",optional:"選填",confirmDelete:"確定要刪除嗎?"},YA={light:"淺色",dark:"深色",system:"跟隨系統"},qA={nav:jA,dashboard:MA,projects:LA,sessions:zA,providers:kA,cron:UA,heartbeat:BA,bridge:HA,system:VA,login:$A,common:GA,theme:YA},KA={dashboard:"ダッシュボード",chat:"チャット",chatDesktop:"デスクトップチャット",chatWeb:"チャット",workspace:"ワークスペース",knowledge:"ナレッジ",projects:"プロジェクト",sessions:"セッション",cron:"Cron",bridge:"ブリッジ",system:"システム"},PA={title:"ダッシュボード",version:"バージョン",uptime:"稼働時間",platforms:"プラットフォーム",projects:"プロジェクト",bridgeAdapters:"ブリッジアダプター",noData:"データがありません"},XA={title:"プロジェクト",name:"名前",agent:"エージェント",platforms:"プラットフォーム",sessions:"セッション",heartbeat:"ハートビート",settings:"設定",quiet:"サイレントモード",language:"言語",adminFrom:"管理元",disabledCommands:"無効化したコマンド",save:"保存",detail:"詳細",noProjects:"プロジェクトが設定されていません",tabs:{overview:"概要",providers:"プロバイダー",heartbeat:"ハートビート",settings:"設定"}},QA={title:"セッション",id:"ID",sessionKey:"セッションキー",name:"名前",platform:"プラットフォーム",active:"アクティブ",createdAt:"作成日時",history:"履歴",send:"送信",messageInput:"メッセージ",delete:"削除",noSessions:"セッションがありません",noMessages:"メッセージはまだありません",notLiveHint:"この相手は現在オフラインのため、今は返信できません。新しいアクティビティが届くと送信可能に戻ります。",offline:"オフライン",justNow:"たった今",allProjects:"すべてのプロジェクト",chat:"チャット",enterSession:"セッションを開く",newChat:"新しいチャット",selectProject:"プロジェクトを選択",projectRequired:"チャットを開始する前にプロジェクトを選択してください。",noAvailableChatTarget:"このプロジェクトにはまだすぐ使える会話がありません。先にセッション一覧から利用可能な会話を開いてください。",noReadyChats:"すぐに使える会話はありません。履歴はセッション一覧で確認してください。",emptyProject:"このプロジェクトにはまだセッションがありません。",emptySelection:"プロジェクトを選び、新しいチャットを開始してください。",activeChat:"現在のチャット",sendHint:"メッセージは選択中のプロジェクトに送信されます。",waitingForReply:"アシスタントの返信を待っています…",preparingChat:"チャットを準備しています…",pollTimeout:"更新のタイムアウト前に応答が完了しませんでした。",createFailed:"新しいチャットセッションの作成に失敗しました。",loadFailed:"選択したセッションの読み込みに失敗しました。",sendFailed:"メッセージの送信に失敗しました。",sessionUnavailable:"この相手は現在オフラインのため、今は返信できません。新しいアクティビティが届いてから再試行してください。",deleteConfirmTitle:"セッションを削除",deleteConfirmBody:"選択したセッションの保存済み会話履歴を削除します。",renameTitle:"セッション名を変更",renamePlaceholder:"セッション名",loadSession:"開く",historyTitle:"会話履歴",availableNow:"送信可能",waitingActivation:"利用可能になるのを待機中"},ZA={title:"プロバイダー",name:"名前",model:"モデル",baseUrl:"ベース URL",active:"有効",add:"プロバイダーを追加",remove:"削除",activate:"有効化",setModel:"モデルを設定",models:"利用可能なモデル"},FA={title:"スケジュールジョブ",expression:"Cron 式",prompt:"プロンプト",exec:"実行",description:"説明",enabled:"有効",silent:"サイレント",lastRun:"最終実行",lastError:"最後のエラー",add:"ジョブを追加",delete:"削除",noJobs:"スケジュールジョブがありません",workDir:"作業ディレクトリ",sessionKey:"セッションキー",project:"プロジェクト"},JA={title:"ハートビート",status:"状態",interval:"間隔",paused:"一時停止",running:"実行中",pause:"一時停止",resume:"再開",trigger:"今すぐ実行",setInterval:"間隔を設定",runCount:"実行回数",errorCount:"エラー回数",skippedBusy:"スキップ(ビジー)",lastRun:"最終実行"},IA={title:"ブリッジ",platform:"プラットフォーム",capabilities:"機能",connectedAt:"接続日時",noAdapters:"ブリッジアダプターがありません"},WA={title:"システム",config:"設定",logs:"ログ",restart:"再起動",reload:"設定の再読み込み",restartConfirm:"サービスを再起動しますか?アクティブなセッションが中断される場合があります。",reloadConfirm:"ディスクから設定を再読み込みしますか?",level:"ログレベル",limit:"行数の上限"},eO={title:"AgentDock",subtitle:"AgentDock インスタンスに接続",token:"API トークン",serverUrl:"サーバー URL",connect:"接続",invalidToken:"トークンが無効または期限切れです",logout:"ログアウト"},tO={loading:"読み込み中…",error:"エラー",success:"成功",confirm:"確認",cancel:"キャンセル",save:"保存",delete:"削除",back:"戻る",refresh:"更新",search:"検索",noData:"データなし",actions:"操作",viewAll:"すべて表示",optional:"任意",confirmDelete:"本当に削除しますか?"},nO={light:"ライト",dark:"ダーク",system:"システムに合わせる"},aO={nav:KA,dashboard:PA,projects:XA,sessions:QA,providers:ZA,cron:FA,heartbeat:JA,bridge:IA,system:WA,login:eO,common:tO,theme:nO},lO={dashboard:"Panel",chat:"Chat",chatDesktop:"Chat de escritorio",chatWeb:"Chat",workspace:"Espacio de trabajo",knowledge:"Conocimiento",projects:"Proyectos",sessions:"Sesiones",cron:"Cron",bridge:"Puente",system:"Sistema"},iO={title:"Panel",version:"Versión",uptime:"Tiempo activo",platforms:"Plataformas",projects:"Proyectos",bridgeAdapters:"Adaptadores de puente",noData:"No hay datos disponibles"},rO={title:"Proyectos",name:"Nombre",agent:"Agente",platforms:"Plataformas",sessions:"Sesiones",heartbeat:"Latido",settings:"Ajustes",quiet:"Modo silencioso",language:"Idioma",adminFrom:"Administración desde",disabledCommands:"Comandos deshabilitados",save:"Guardar",detail:"Detalles",noProjects:"No hay proyectos configurados",tabs:{overview:"Resumen",providers:"Proveedores",heartbeat:"Latido",settings:"Ajustes"}},oO={title:"Sesiones",id:"ID",sessionKey:"Clave de sesión",name:"Nombre",platform:"Plataforma",active:"Activa",createdAt:"Creada el",history:"Historial",send:"Enviar",messageInput:"Mensaje",delete:"Eliminar",noSessions:"No hay sesiones",noMessages:"Sin mensajes aún",notLiveHint:"Este destino de chat está desconectado en este momento, por lo que las respuestas están temporalmente deshabilitadas. Cuando llegue nueva actividad, el envío volverá a estar disponible.",offline:"sin conexión",justNow:"ahora",allProjects:"Todos los proyectos",chat:"Chat",enterSession:"Abrir sesión",newChat:"Nuevo chat",selectProject:"Seleccionar proyecto",projectRequired:"Elija un proyecto antes de iniciar un chat.",noAvailableChatTarget:"Este proyecto todavía no tiene una conversación lista para chatear. Abra primero una sesión disponible desde la vista de sesiones.",noReadyChats:"No hay sesiones listas para chatear en este momento. Use la página de sesiones para revisar el historial.",emptyProject:"Este proyecto todavía no tiene sesiones.",emptySelection:"Seleccione un proyecto y empiece un chat nuevo.",activeChat:"Chat activo",sendHint:"Los mensajes se enviarán al proyecto seleccionado.",waitingForReply:"Esperando la respuesta del asistente…",preparingChat:"Preparando el chat…",pollTimeout:"El asistente no terminó de responder antes del tiempo límite.",createFailed:"No se pudo crear una nueva sesión de chat.",loadFailed:"No se pudo cargar la sesión seleccionada.",sendFailed:"No se pudo enviar el mensaje.",sessionUnavailable:"Este destino de chat está desconectado en este momento, por lo que las respuestas están temporalmente deshabilitadas. Inténtelo de nuevo cuando llegue nueva actividad.",deleteConfirmTitle:"Eliminar sesión",deleteConfirmBody:"Esto elimina el historial guardado de la conversación de la sesión seleccionada.",renameTitle:"Renombrar sesión",renamePlaceholder:"Nombre de la sesión",loadSession:"Abrir",historyTitle:"Historial de conversación",availableNow:"Disponible para chatear",waitingActivation:"Esperando disponibilidad"},sO={title:"Proveedores",name:"Nombre",model:"Modelo",baseUrl:"URL base",active:"Activo",add:"Añadir proveedor",remove:"Quitar",activate:"Activar",setModel:"Establecer modelo",models:"Modelos disponibles"},uO={title:"Tareas programadas",expression:"Expresión cron",prompt:"Indicación",exec:"Ejecutar",description:"Descripción",enabled:"Habilitada",silent:"Silenciosa",lastRun:"Última ejecución",lastError:"Último error",add:"Añadir tarea",delete:"Eliminar",noJobs:"No hay tareas programadas",workDir:"Directorio de trabajo",sessionKey:"Clave de sesión",project:"Proyecto"},cO={title:"Latido",status:"Estado",interval:"Intervalo",paused:"En pausa",running:"En ejecución",pause:"Pausar",resume:"Reanudar",trigger:"Ejecutar ahora",setInterval:"Establecer intervalo",runCount:"Ejecuciones",errorCount:"Errores",skippedBusy:"Omitida (ocupado)",lastRun:"Última ejecución"},fO={title:"Puente",platform:"Plataforma",capabilities:"Capacidades",connectedAt:"Conectada el",noAdapters:"No hay adaptadores de puente"},dO={title:"Sistema",config:"Configuración",logs:"Registros",restart:"Reiniciar",reload:"Recargar configuración",restartConfirm:"¿Reiniciar el servicio? Las sesiones activas pueden interrumpirse.",reloadConfirm:"¿Recargar la configuración desde el disco?",level:"Nivel de registro",limit:"Límite de líneas"},hO={title:"AgentDock",subtitle:"Conéctese a su instancia de AgentDock",token:"Token de API",serverUrl:"URL del servidor",connect:"Conectar",invalidToken:"Token no válido o caducado",logout:"Cerrar sesión"},mO={loading:"Cargando…",error:"Error",success:"Correcto",confirm:"Confirmar",cancel:"Cancelar",save:"Guardar",delete:"Eliminar",back:"Volver",refresh:"Actualizar",search:"Buscar",noData:"Sin datos",actions:"Acciones",viewAll:"Ver todo",optional:"opcional",confirmDelete:"¿Seguro que desea eliminar esto?"},pO={light:"Claro",dark:"Oscuro",system:"Sistema"},gO={nav:lO,dashboard:iO,projects:rO,sessions:oO,providers:sO,cron:uO,heartbeat:cO,bridge:fO,system:dO,login:hO,common:mO,theme:pO},vO=localStorage.getItem("cc_lang")||navigator.language.split("-")[0]||"en";gt.use(HE).init({resources:{en:{translation:yA},zh:{translation:DA},"zh-TW":{translation:qA},ja:{translation:aO},es:{translation:gO}},lng:vO,fallbackLng:"en",interpolation:{escapeValue:!1}});Vt.getState().init();Of.getState().init();const rv=20,yO=500;function bO(a){return new Promise(l=>window.setTimeout(l,a))}function SO(){return C.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:C.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:[C.jsx(cv,{size:16,className:"animate-spin"}),"正在初始化 AgentDock 运行时…"]})})}function xO({message:a,logs:l,onRetry:r}){return C.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white dark:bg-gray-950 p-6",children:C.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:[C.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:C.jsxs("div",{className:"flex items-start gap-3",children:[C.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:C.jsx(D1,{size:18})}),C.jsxs("div",{children:[C.jsx("h1",{className:"text-lg font-semibold text-red-700 dark:text-red-300",children:"AgentDock 运行时初始化失败"}),C.jsx("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400 break-words",children:a})]})]})}),C.jsxs("div",{className:"px-6 py-5 space-y-4",children:[C.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:[C.jsx("p",{className:"font-medium text-gray-900 dark:text-white",children:"What we can do next"}),C.jsx("p",{className:"mt-1",children:"请先重试本地运行时初始化。如果仍然失败,请检查下方运行时日志,并确认 Local AI Core 配置文件路径与运行环境是否正确。"})]}),l.length>0&&C.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:[C.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:"最近的桌面日志"}),C.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(`
|
|
232
|
-
`)})]}),C.jsxs("div",{className:"flex gap-3",children:[C.jsxs(Uo,{onClick:r,children:[C.jsx(cv,{size:14})," 重试初始化"]}),C.jsx(Uo,{variant:"secondary",onClick:()=>window.location.reload(),children:"重新加载应用"})]})]})]})})}function EO(){const[a,l]=b.useState({status:"loading"}),[r,o]=b.useState(!1),u=b.useCallback(async()=>{l({status:"loading"});const d=!!await OT();if(o(d),d)try{let h=null;for(let m=0;m<rv;m+=1)try{await _T(),h=null;break}catch(p){h=p,m<rv-1&&await bO(yO)}if(h)throw h;Mc(await Pg()),et.setBaseUrl(pn),et.setToken(""),Vt.getState().setManagedSession("",pn,Zi()==="local_core"?"local_core":"electron")}catch(h){let m=[];try{m=await NT(80)}catch{m=[]}l({status:"error",message:h instanceof Error?h.message:String(h),logs:m});return}d||Mc(null),l({status:"ready"})},[]);return b.useEffect(()=>{u()},[u]),b.useEffect(()=>{if(r)return DT(f=>{et.setBaseUrl(pn),et.setToken(""),Pg().then(d=>Mc(d)).catch(()=>{}),Vt.getState().setManagedSession("",pn,Zi()==="local_core"?"local_core":"electron")})},[r]),a.status==="loading"?C.jsx(SO,{}):a.status==="error"?C.jsx(xO,{message:a.message,logs:a.logs,onRetry:()=>void u()}):C.jsx(hE,{children:C.jsx(kT,{})})}G1.createRoot(document.getElementById("root")).render(C.jsx(UT,{children:C.jsx(EO,{})}));export{mf as $,CO as A,Uo as B,E2 as C,WO as D,h_ as E,f1 as F,s_ as G,Ge as H,$g as I,IS as J,kt as K,Dv as L,x1 as M,f_ as N,DO as O,d_ as P,g_ as Q,cv as R,O1 as S,NO as T,v_ as U,et as V,M1 as W,Rv as X,RO as Y,z1 as Z,u1 as _,Af as a,kO as a0,BO as a1,UO as a2,HO as a3,VO as a4,os as a5,p_ as a6,TO as a7,AO as a8,m_ as a9,t_ as aA,l_ as aB,i_ as aC,r_ as aD,o_ as aE,OO as aa,QO as ab,ZO as ac,FO as ad,e_ as ae,JO as af,IO as ag,n_ as ah,a_ as ai,a1 as aj,v1 as ak,ft as al,Ct as am,gg as an,Df as ao,Kv as ap,Ze as aq,tt as ar,Wv as as,Zw as at,Nf as au,Bo as av,uw as aw,Yv as ax,$v as ay,_O as az,u_ as b,Pe as c,MO as d,LO as e,zO as f,c_ as g,y_ as h,o1 as i,C as j,Zi as k,jO as l,_T as m,$O as n,DT as o,wT as p,b_ as q,b as r,GO as s,Kg as t,kv as u,PO as v,KO as w,XO as x,YO as y,qO as z};
|