specweave 1.0.261 → 1.0.262
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/.claude-plugin/README.md +0 -2
- package/CLAUDE.md +27 -27
- package/bin/specweave.js +14 -85
- package/dist/dashboard/assets/index-Cv1XUAKk.css +1 -0
- package/dist/dashboard/assets/index-DHOztQSu.js +11 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/src/adapters/README.md +1 -1
- package/dist/src/adapters/agents-md-generator.js +1 -1
- package/dist/src/adapters/agents-md-generator.js.map +1 -1
- package/dist/src/adapters/claude/README.md +8 -8
- package/dist/src/adapters/claude/adapter.js +2 -2
- package/dist/src/adapters/claude-md-generator.js +2 -2
- package/dist/src/adapters/claude-md-generator.js.map +1 -1
- package/dist/src/adapters/cursor/README.md +7 -7
- package/dist/src/adapters/generic/README.md +2 -2
- package/dist/src/cli/commands/create-increment.d.ts +1 -1
- package/dist/src/cli/commands/create-increment.js +1 -1
- package/dist/src/cli/commands/update.d.ts.map +1 -1
- package/dist/src/cli/commands/update.js +64 -1
- package/dist/src/cli/commands/update.js.map +1 -1
- package/dist/src/cli/helpers/init/api-docs-config.js +7 -7
- package/dist/src/cli/helpers/init/api-docs-config.js.map +1 -1
- package/dist/src/core/config/types.d.ts +18 -0
- package/dist/src/core/config/types.d.ts.map +1 -1
- package/dist/src/core/config/types.js +4 -0
- package/dist/src/core/config/types.js.map +1 -1
- package/dist/src/core/external-tools/external-items-display.d.ts.map +1 -1
- package/dist/src/core/external-tools/external-items-display.js +1 -11
- package/dist/src/core/external-tools/external-items-display.js.map +1 -1
- package/dist/src/core/increment/increment-archiver.js +1 -1
- package/dist/src/core/increment/increment-archiver.js.map +1 -1
- package/dist/src/core/increment/metadata-manager.js +2 -2
- package/dist/src/core/increment/metadata-manager.js.map +1 -1
- package/dist/src/core/increment/template-creator.d.ts +1 -1
- package/dist/src/core/increment/template-creator.js +4 -4
- package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts +2 -2
- package/dist/src/core/lazy-loading/llm-plugin-detector.d.ts.map +1 -1
- package/dist/src/core/lazy-loading/llm-plugin-detector.js +15 -5
- package/dist/src/core/lazy-loading/llm-plugin-detector.js.map +1 -1
- package/dist/src/core/living-docs/feature-consistency-validator.js +1 -1
- package/dist/src/core/living-docs/feature-consistency-validator.js.map +1 -1
- package/dist/src/core/living-docs/scaffolding/scaffold.js +3 -3
- package/dist/src/core/notifications/command-integration.d.ts.map +1 -1
- package/dist/src/core/notifications/command-integration.js +0 -1
- package/dist/src/core/notifications/command-integration.js.map +1 -1
- package/dist/src/core/reflection/reflect-handler.js +2 -2
- package/dist/src/core/reflection/reflect-handler.js.map +1 -1
- package/dist/src/core/validators/ac-presence-validator.d.ts +1 -1
- package/dist/src/core/validators/ac-presence-validator.js +3 -3
- package/dist/src/core/validators/ac-presence-validator.js.map +1 -1
- package/dist/src/dashboard/server/command-runner.d.ts.map +1 -1
- package/dist/src/dashboard/server/command-runner.js +2 -2
- package/dist/src/dashboard/server/command-runner.js.map +1 -1
- package/dist/src/dashboard/server/dashboard-server.d.ts.map +1 -1
- package/dist/src/dashboard/server/dashboard-server.js +20 -9
- package/dist/src/dashboard/server/dashboard-server.js.map +1 -1
- package/dist/src/utils/agents-md-compiler.js +1 -1
- package/dist/src/utils/agents-md-compiler.js.map +1 -1
- package/dist/src/utils/find-project-root.d.ts +5 -4
- package/dist/src/utils/find-project-root.d.ts.map +1 -1
- package/dist/src/utils/find-project-root.js +8 -10
- package/dist/src/utils/find-project-root.js.map +1 -1
- package/dist/src/utils/generate-skills-index.js +3 -3
- package/dist/src/utils/notification-constants.js +1 -1
- package/dist/src/utils/notification-constants.js.map +1 -1
- package/package.json +1 -1
- package/plugins/FINAL-AUDIT-RECOMMENDATIONS.md +3 -3
- package/plugins/specweave/PLUGIN.md +0 -22
- package/plugins/specweave/commands/analytics.md +1 -1
- package/plugins/specweave/commands/discrepancies.md +0 -1
- package/plugins/specweave/commands/living-docs.md +0 -1
- package/plugins/specweave/commands/reconcile.md +1 -1
- package/plugins/specweave/hooks/hooks.json +10 -0
- package/plugins/specweave/hooks/pre-compact.sh +39 -0
- package/plugins/specweave/hooks/stop-sync.sh +23 -1
- package/plugins/specweave/hooks/universal/fail-fast-wrapper.sh +4 -0
- package/plugins/specweave/hooks/user-prompt-submit.sh +193 -59
- package/plugins/specweave/hooks/v2/dispatchers/session-start.sh +7 -0
- package/plugins/specweave/hooks/v2/guards/spec-template-enforcement-guard.sh +1 -1
- package/plugins/specweave/hooks/v2/handlers/ac-sync-dispatcher.sh +25 -6
- package/plugins/specweave/hooks/v2/handlers/universal-auto-create-dispatcher.sh +21 -3
- package/plugins/specweave/hooks/v2/lib/check-provider-enabled.sh +52 -0
- package/plugins/specweave/lib/vendor/core/increment/metadata-manager.js +2 -2
- package/plugins/specweave/lib/vendor/core/increment/metadata-manager.js.map +1 -1
- package/plugins/specweave/skills/do/SKILL.md +1 -1
- package/plugins/specweave/skills/done/SKILL.md +1 -1
- package/plugins/specweave/skills/framework/SKILL.md +4 -4
- package/plugins/specweave/skills/increment/SKILL.md +192 -25
- package/plugins/specweave/skills/next/SKILL.md +36 -630
- package/plugins/specweave/skills/pm/phases/00-deep-interview.md +2 -2
- package/plugins/specweave/skills/progress-sync/SKILL.md +7 -25
- package/plugins/specweave/skills/spec-generator/SKILL.md +44 -626
- package/plugins/specweave/skills/tdd-green/SKILL.md +10 -798
- package/plugins/specweave/skills/tdd-red/SKILL.md +8 -136
- package/plugins/specweave/skills/tdd-refactor/SKILL.md +15 -147
- package/plugins/specweave-github/hooks/github-auto-create-handler.sh +23 -5
- package/src/templates/AGENTS.md.template +11 -11
- package/src/templates/CLAUDE.md.template +1 -1
- package/dist/dashboard/assets/index-CDl14O5G.css +0 -1
- package/dist/dashboard/assets/index-CmqBqnWd.js +0 -11
- package/plugins/specweave/commands/api-docs.md +0 -672
- package/plugins/specweave/commands/check-hooks.md +0 -241
- package/plugins/specweave/commands/embed-acs.md +0 -445
- package/plugins/specweave/commands/external.md +0 -145
- package/plugins/specweave/commands/import-docs.md +0 -212
- package/plugins/specweave/commands/migrate-config.md +0 -104
- package/plugins/specweave/commands/notifications.md +0 -94
- package/plugins/specweave/commands/plugin-validator.md +0 -429
- package/plugins/specweave/commands/revert-wip-limit.md +0 -82
- package/plugins/specweave/commands/sync-acs.md +0 -342
- package/plugins/specweave/commands/sync-specs.md +0 -339
- package/plugins/specweave/commands/sync-tasks.md +0 -255
- package/plugins/specweave/commands/update-scope.md +0 -351
- package/plugins/specweave/commands/validate-features.md +0 -207
- package/plugins/specweave/skills/archive-increments/SKILL.md +0 -209
- package/plugins/specweave/skills/code-review/SKILL.md +0 -598
- package/plugins/specweave/skills/increment-planner/SKILL.md +0 -238
- package/plugins/specweave/skills/increment-work-router/SKILL.md +0 -562
- package/plugins/specweave/skills/multi-project-spec-mapper/SKILL.md +0 -423
- package/plugins/specweave/skills/pm-closure-validation/SKILL.md +0 -542
- package/plugins/specweave/skills/smart-reopen-detector/SKILL.md +0 -245
- package/plugins/specweave/skills/tdd-orchestrator/SKILL.md +0 -228
- package/plugins/specweave/skills/umbrella-repo-detector/SKILL.md +0 -301
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))u(d);new MutationObserver(d=>{for(const h of d)if(h.type==="childList")for(const g of h.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&u(g)}).observe(document,{childList:!0,subtree:!0});function c(d){const h={};return d.integrity&&(h.integrity=d.integrity),d.referrerPolicy&&(h.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?h.credentials="include":d.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function u(d){if(d.ep)return;d.ep=!0;const h=c(d);fetch(d.href,h)}})();var Yu={exports:{}},qn={};var d0;function Ox(){if(d0)return qn;d0=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function c(u,d,h){var g=null;if(h!==void 0&&(g=""+h),d.key!==void 0&&(g=""+d.key),"key"in d){h={};for(var b in d)b!=="key"&&(h[b]=d[b])}else h=d;return d=h.ref,{$$typeof:r,type:u,key:g,ref:d!==void 0?d:null,props:h}}return qn.Fragment=o,qn.jsx=c,qn.jsxs=c,qn}var m0;function Dx(){return m0||(m0=1,Yu.exports=Ox()),Yu.exports}var n=Dx(),Gu={exports:{}},ae={};var h0;function wx(){if(h0)return ae;h0=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),g=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),z=Symbol.iterator;function B(S){return S===null||typeof S!="object"?null:(S=z&&S[z]||S["@@iterator"],typeof S=="function"?S:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,C={};function G(S,Y,k){this.props=S,this.context=Y,this.refs=C,this.updater=k||X}G.prototype.isReactComponent={},G.prototype.setState=function(S,Y){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,Y,"setState")},G.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function H(){}H.prototype=G.prototype;function V(S,Y,k){this.props=S,this.context=Y,this.refs=C,this.updater=k||X}var re=V.prototype=new H;re.constructor=V,O(re,G.prototype),re.isPureReactComponent=!0;var te=Array.isArray;function $(){}var U={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function Q(S,Y,k){var J=k.ref;return{$$typeof:r,type:S,key:Y,ref:J!==void 0?J:null,props:k}}function Ae(S,Y){return Q(S.type,Y,S.props)}function ke(S){return typeof S=="object"&&S!==null&&S.$$typeof===r}function Qe(S){var Y={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(k){return Y[k]})}var Xt=/\/+/g;function Qt(S,Y){return typeof S=="object"&&S!==null&&S.key!=null?Qe(""+S.key):Y.toString(36)}function Ot(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then($,$):(S.status="pending",S.then(function(Y){S.status==="pending"&&(S.status="fulfilled",S.value=Y)},function(Y){S.status==="pending"&&(S.status="rejected",S.reason=Y)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function w(S,Y,k,J,ne){var ue=typeof S;(ue==="undefined"||ue==="boolean")&&(S=null);var pe=!1;if(S===null)pe=!0;else switch(ue){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(S.$$typeof){case r:case o:pe=!0;break;case j:return pe=S._init,w(pe(S._payload),Y,k,J,ne)}}if(pe)return ne=ne(S),pe=J===""?"."+Qt(S,0):J,te(ne)?(k="",pe!=null&&(k=pe.replace(Xt,"$&/")+"/"),w(ne,Y,k,"",function(Zl){return Zl})):ne!=null&&(ke(ne)&&(ne=Ae(ne,k+(ne.key==null||S&&S.key===ne.key?"":(""+ne.key).replace(Xt,"$&/")+"/")+pe)),Y.push(ne)),1;pe=0;var Ie=J===""?".":J+":";if(te(S))for(var we=0;we<S.length;we++)J=S[we],ue=Ie+Qt(J,we),pe+=w(J,Y,k,ue,ne);else if(we=B(S),typeof we=="function")for(S=we.call(S),we=0;!(J=S.next()).done;)J=J.value,ue=Ie+Qt(J,we++),pe+=w(J,Y,k,ue,ne);else if(ue==="object"){if(typeof S.then=="function")return w(Ot(S),Y,k,J,ne);throw Y=String(S),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Z(S,Y,k){if(S==null)return S;var J=[],ne=0;return w(S,J,"","",function(ue){return Y.call(k,ue,ne++)}),J}function ee(S){if(S._status===-1){var Y=S._result;Y=Y(),Y.then(function(k){(S._status===0||S._status===-1)&&(S._status=1,S._result=k)},function(k){(S._status===0||S._status===-1)&&(S._status=2,S._result=k)}),S._status===-1&&(S._status=0,S._result=Y)}if(S._status===1)return S._result.default;throw S._result}var je=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},Te={map:Z,forEach:function(S,Y,k){Z(S,function(){Y.apply(this,arguments)},k)},count:function(S){var Y=0;return Z(S,function(){Y++}),Y},toArray:function(S){return Z(S,function(Y){return Y})||[]},only:function(S){if(!ke(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=y,ae.Children=Te,ae.Component=G,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=V,ae.StrictMode=u,ae.Suspense=p,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return U.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,Y,k){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var J=O({},S.props),ne=S.key;if(Y!=null)for(ue in Y.key!==void 0&&(ne=""+Y.key),Y)!F.call(Y,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Y.ref===void 0||(J[ue]=Y[ue]);var ue=arguments.length-2;if(ue===1)J.children=k;else if(1<ue){for(var pe=Array(ue),Ie=0;Ie<ue;Ie++)pe[Ie]=arguments[Ie+2];J.children=pe}return Q(S.type,ne,J)},ae.createContext=function(S){return S={$$typeof:g,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:h,_context:S},S},ae.createElement=function(S,Y,k){var J,ne={},ue=null;if(Y!=null)for(J in Y.key!==void 0&&(ue=""+Y.key),Y)F.call(Y,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ne[J]=Y[J]);var pe=arguments.length-2;if(pe===1)ne.children=k;else if(1<pe){for(var Ie=Array(pe),we=0;we<pe;we++)Ie[we]=arguments[we+2];ne.children=Ie}if(S&&S.defaultProps)for(J in pe=S.defaultProps,pe)ne[J]===void 0&&(ne[J]=pe[J]);return Q(S,ue,ne)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:b,render:S}},ae.isValidElement=ke,ae.lazy=function(S){return{$$typeof:j,_payload:{_status:-1,_result:S},_init:ee}},ae.memo=function(S,Y){return{$$typeof:x,type:S,compare:Y===void 0?null:Y}},ae.startTransition=function(S){var Y=U.T,k={};U.T=k;try{var J=S(),ne=U.S;ne!==null&&ne(k,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then($,je)}catch(ue){je(ue)}finally{Y!==null&&k.types!==null&&(Y.types=k.types),U.T=Y}},ae.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},ae.use=function(S){return U.H.use(S)},ae.useActionState=function(S,Y,k){return U.H.useActionState(S,Y,k)},ae.useCallback=function(S,Y){return U.H.useCallback(S,Y)},ae.useContext=function(S){return U.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,Y){return U.H.useDeferredValue(S,Y)},ae.useEffect=function(S,Y){return U.H.useEffect(S,Y)},ae.useEffectEvent=function(S){return U.H.useEffectEvent(S)},ae.useId=function(){return U.H.useId()},ae.useImperativeHandle=function(S,Y,k){return U.H.useImperativeHandle(S,Y,k)},ae.useInsertionEffect=function(S,Y){return U.H.useInsertionEffect(S,Y)},ae.useLayoutEffect=function(S,Y){return U.H.useLayoutEffect(S,Y)},ae.useMemo=function(S,Y){return U.H.useMemo(S,Y)},ae.useOptimistic=function(S,Y){return U.H.useOptimistic(S,Y)},ae.useReducer=function(S,Y,k){return U.H.useReducer(S,Y,k)},ae.useRef=function(S){return U.H.useRef(S)},ae.useState=function(S){return U.H.useState(S)},ae.useSyncExternalStore=function(S,Y,k){return U.H.useSyncExternalStore(S,Y,k)},ae.useTransition=function(){return U.H.useTransition()},ae.version="19.2.4",ae}var x0;function ec(){return x0||(x0=1,Gu.exports=wx()),Gu.exports}var E=ec(),Xu={exports:{}},Yn={},Qu={exports:{}},Vu={};var g0;function Ux(){return g0||(g0=1,(function(r){function o(w,Z){var ee=w.length;w.push(Z);e:for(;0<ee;){var je=ee-1>>>1,Te=w[je];if(0<d(Te,Z))w[je]=Z,w[ee]=Te,ee=je;else break e}}function c(w){return w.length===0?null:w[0]}function u(w){if(w.length===0)return null;var Z=w[0],ee=w.pop();if(ee!==Z){w[0]=ee;e:for(var je=0,Te=w.length,S=Te>>>1;je<S;){var Y=2*(je+1)-1,k=w[Y],J=Y+1,ne=w[J];if(0>d(k,ee))J<Te&&0>d(ne,k)?(w[je]=ne,w[J]=ee,je=J):(w[je]=k,w[Y]=ee,je=Y);else if(J<Te&&0>d(ne,ee))w[je]=ne,w[J]=ee,je=J;else break e}}return Z}function d(w,Z){var ee=w.sortIndex-Z.sortIndex;return ee!==0?ee:w.id-Z.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;r.unstable_now=function(){return h.now()}}else{var g=Date,b=g.now();r.unstable_now=function(){return g.now()-b}}var p=[],x=[],j=1,y=null,z=3,B=!1,X=!1,O=!1,C=!1,G=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function re(w){for(var Z=c(x);Z!==null;){if(Z.callback===null)u(x);else if(Z.startTime<=w)u(x),Z.sortIndex=Z.expirationTime,o(p,Z);else break;Z=c(x)}}function te(w){if(O=!1,re(w),!X)if(c(p)!==null)X=!0,$||($=!0,Qe());else{var Z=c(x);Z!==null&&Ot(te,Z.startTime-w)}}var $=!1,U=-1,F=5,Q=-1;function Ae(){return C?!0:!(r.unstable_now()-Q<F)}function ke(){if(C=!1,$){var w=r.unstable_now();Q=w;var Z=!0;try{e:{X=!1,O&&(O=!1,H(U),U=-1),B=!0;var ee=z;try{t:{for(re(w),y=c(p);y!==null&&!(y.expirationTime>w&&Ae());){var je=y.callback;if(typeof je=="function"){y.callback=null,z=y.priorityLevel;var Te=je(y.expirationTime<=w);if(w=r.unstable_now(),typeof Te=="function"){y.callback=Te,re(w),Z=!0;break t}y===c(p)&&u(p),re(w)}else u(p);y=c(p)}if(y!==null)Z=!0;else{var S=c(x);S!==null&&Ot(te,S.startTime-w),Z=!1}}break e}finally{y=null,z=ee,B=!1}Z=void 0}}finally{Z?Qe():$=!1}}}var Qe;if(typeof V=="function")Qe=function(){V(ke)};else if(typeof MessageChannel<"u"){var Xt=new MessageChannel,Qt=Xt.port2;Xt.port1.onmessage=ke,Qe=function(){Qt.postMessage(null)}}else Qe=function(){G(ke,0)};function Ot(w,Z){U=G(function(){w(r.unstable_now())},Z)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(w){w.callback=null},r.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<w?Math.floor(1e3/w):5},r.unstable_getCurrentPriorityLevel=function(){return z},r.unstable_next=function(w){switch(z){case 1:case 2:case 3:var Z=3;break;default:Z=z}var ee=z;z=Z;try{return w()}finally{z=ee}},r.unstable_requestPaint=function(){C=!0},r.unstable_runWithPriority=function(w,Z){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var ee=z;z=w;try{return Z()}finally{z=ee}},r.unstable_scheduleCallback=function(w,Z,ee){var je=r.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?je+ee:je):ee=je,w){case 1:var Te=-1;break;case 2:Te=250;break;case 5:Te=1073741823;break;case 4:Te=1e4;break;default:Te=5e3}return Te=ee+Te,w={id:j++,callback:Z,priorityLevel:w,startTime:ee,expirationTime:Te,sortIndex:-1},ee>je?(w.sortIndex=ee,o(x,w),c(p)===null&&w===c(x)&&(O?(H(U),U=-1):O=!0,Ot(te,ee-je))):(w.sortIndex=Te,o(p,w),X||B||(X=!0,$||($=!0,Qe()))),w},r.unstable_shouldYield=Ae,r.unstable_wrapCallback=function(w){var Z=z;return function(){var ee=z;z=Z;try{return w.apply(this,arguments)}finally{z=ee}}}})(Vu)),Vu}var y0;function Lx(){return y0||(y0=1,Qu.exports=Ux()),Qu.exports}var Zu={exports:{}},Pe={};var p0;function Hx(){if(p0)return Pe;p0=1;var r=ec();function o(p){var x="https://react.dev/errors/"+p;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var j=2;j<arguments.length;j++)x+="&args[]="+encodeURIComponent(arguments[j])}return"Minified React error #"+p+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var u={d:{f:c,r:function(){throw Error(o(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function h(p,x,j){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:y==null?null:""+y,children:p,containerInfo:x,implementation:j}}var g=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(p,x){if(p==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Pe.createPortal=function(p,x){var j=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(o(299));return h(p,x,null,j)},Pe.flushSync=function(p){var x=g.T,j=u.p;try{if(g.T=null,u.p=2,p)return p()}finally{g.T=x,u.p=j,u.d.f()}},Pe.preconnect=function(p,x){typeof p=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,u.d.C(p,x))},Pe.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},Pe.preinit=function(p,x){if(typeof p=="string"&&x&&typeof x.as=="string"){var j=x.as,y=b(j,x.crossOrigin),z=typeof x.integrity=="string"?x.integrity:void 0,B=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;j==="style"?u.d.S(p,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:y,integrity:z,fetchPriority:B}):j==="script"&&u.d.X(p,{crossOrigin:y,integrity:z,fetchPriority:B,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Pe.preinitModule=function(p,x){if(typeof p=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var j=b(x.as,x.crossOrigin);u.d.M(p,{crossOrigin:j,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&u.d.M(p)},Pe.preload=function(p,x){if(typeof p=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var j=x.as,y=b(j,x.crossOrigin);u.d.L(p,j,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Pe.preloadModule=function(p,x){if(typeof p=="string")if(x){var j=b(x.as,x.crossOrigin);u.d.m(p,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:j,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else u.d.m(p)},Pe.requestFormReset=function(p){u.d.r(p)},Pe.unstable_batchedUpdates=function(p,x){return p(x)},Pe.useFormState=function(p,x,j){return g.H.useFormState(p,x,j)},Pe.useFormStatus=function(){return g.H.useHostTransitionStatus()},Pe.version="19.2.4",Pe}var v0;function Bx(){if(v0)return Zu.exports;v0=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),Zu.exports=Hx(),Zu.exports}var b0;function qx(){if(b0)return Yn;b0=1;var r=Lx(),o=ec(),c=Bx();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function g(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 b(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(u(188))}function x(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,l=t;;){var s=a.return;if(s===null)break;var i=s.alternate;if(i===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===a)return p(s),e;if(i===l)return p(s),t;i=i.sibling}throw Error(u(188))}if(a.return!==l.return)a=s,l=i;else{for(var f=!1,m=s.child;m;){if(m===a){f=!0,a=s,l=i;break}if(m===l){f=!0,l=s,a=i;break}m=m.sibling}if(!f){for(m=i.child;m;){if(m===a){f=!0,a=i,l=s;break}if(m===l){f=!0,l=i,a=s;break}m=m.sibling}if(!f)throw Error(u(189))}}if(a.alternate!==l)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function j(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=j(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,z=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),V=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var Xt=Symbol.for("react.client.reference");function Qt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Xt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case G:return"Profiler";case C:return"StrictMode";case te:return"Suspense";case $:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case V:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case re:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U:return t=e.displayName||null,t!==null?t:Qt(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return Qt(e(t))}catch{}}return null}var Ot=Array.isArray,w=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},je=[],Te=-1;function S(e){return{current:e}}function Y(e){0>Te||(e.current=je[Te],je[Te]=null,Te--)}function k(e,t){Te++,je[Te]=e.current,e.current=t}var J=S(null),ne=S(null),ue=S(null),pe=S(null);function Ie(e,t){switch(k(ue,t),k(ne,e),k(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Ld(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(J),k(J,e)}function we(){Y(J),Y(ne),Y(ue)}function Zl(e){e.memoizedState!==null&&k(pe,e);var t=J.current,a=Ld(t,e.type);t!==a&&(k(ne,e),k(J,a))}function $n(e){ne.current===e&&(Y(J),Y(ne)),pe.current===e&&(Y(pe),Un._currentValue=ee)}var Ni,cc;function Ha(e){if(Ni===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ni=t&&t[1]||"",cc=-1<a.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ni+e+cc}var Si=!1;function Ei(e,t){if(!e||Si)return"";Si=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(_){var R=_}Reflect.construct(e,[],q)}else{try{q.call()}catch(_){R=_}e.call(q.prototype)}}else{try{throw Error()}catch(_){R=_}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(_){if(_&&R&&typeof _.stack=="string")return[_.stack,R.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),f=i[0],m=i[1];if(f&&m){var v=f.split(`
|
|
4
|
+
`),M=m.split(`
|
|
5
|
+
`);for(s=l=0;l<v.length&&!v[l].includes("DetermineComponentFrameRoot");)l++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(l===v.length||s===M.length)for(l=v.length-1,s=M.length-1;1<=l&&0<=s&&v[l]!==M[s];)s--;for(;1<=l&&0<=s;l--,s--)if(v[l]!==M[s]){if(l!==1||s!==1)do if(l--,s--,0>s||v[l]!==M[s]){var D=`
|
|
6
|
+
`+v[l].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),D}while(1<=l&&0<=s);break}}}finally{Si=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ha(a):""}function cm(e,t){switch(e.tag){case 26:case 27:case 5:return Ha(e.type);case 16:return Ha("Lazy");case 13:return e.child!==t&&t!==null?Ha("Suspense Fallback"):Ha("Suspense");case 19:return Ha("SuspenseList");case 0:case 15:return Ei(e.type,!1);case 11:return Ei(e.type.render,!1);case 1:return Ei(e.type,!0);case 31:return Ha("Activity");default:return""}}function oc(e){try{var t="",a=null;do t+=cm(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var Ti=Object.prototype.hasOwnProperty,Ci=r.unstable_scheduleCallback,Ai=r.unstable_cancelCallback,om=r.unstable_shouldYield,fm=r.unstable_requestPaint,ct=r.unstable_now,dm=r.unstable_getCurrentPriorityLevel,fc=r.unstable_ImmediatePriority,dc=r.unstable_UserBlockingPriority,Kn=r.unstable_NormalPriority,mm=r.unstable_LowPriority,mc=r.unstable_IdlePriority,hm=r.log,xm=r.unstable_setDisableYieldValue,kl=null,ot=null;function oa(e){if(typeof hm=="function"&&xm(e),ot&&typeof ot.setStrictMode=="function")try{ot.setStrictMode(kl,e)}catch{}}var ft=Math.clz32?Math.clz32:pm,gm=Math.log,ym=Math.LN2;function pm(e){return e>>>=0,e===0?32:31-(gm(e)/ym|0)|0}var Jn=256,Wn=262144,Fn=4194304;function Ba(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 Pn(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var s=0,i=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var m=l&134217727;return m!==0?(l=m&~i,l!==0?s=Ba(l):(f&=m,f!==0?s=Ba(f):a||(a=m&~e,a!==0&&(s=Ba(a))))):(m=l&~i,m!==0?s=Ba(m):f!==0?s=Ba(f):a||(a=l&~e,a!==0&&(s=Ba(a)))),s===0?0:t!==0&&t!==s&&(t&i)===0&&(i=s&-s,a=t&-t,i>=a||i===32&&(a&4194048)!==0)?t:s}function $l(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function vm(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 hc(){var e=Fn;return Fn<<=1,(Fn&62914560)===0&&(Fn=4194304),e}function Mi(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function bm(e,t,a,l,s,i){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var m=e.entanglements,v=e.expirationTimes,M=e.hiddenUpdates;for(a=f&~a;0<a;){var D=31-ft(a),q=1<<D;m[D]=0,v[D]=-1;var R=M[D];if(R!==null)for(M[D]=null,D=0;D<R.length;D++){var _=R[D];_!==null&&(_.lane&=-536870913)}a&=~q}l!==0&&xc(e,l,0),i!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=i&~(f&~t))}function xc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ft(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function gc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-ft(a),s=1<<l;s&t|e[l]&t&&(e[l]|=t),a&=~s}}function yc(e,t){var a=t&-t;return a=(a&42)!==0?1:zi(a),(a&(e.suspendedLanes|t))!==0?0:a}function zi(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 Ri(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function pc(){var e=Z.p;return e!==0?e:(e=window.event,e===void 0?32:s0(e.type))}function vc(e,t){var a=Z.p;try{return Z.p=e,t()}finally{Z.p=a}}var fa=Math.random().toString(36).slice(2),$e="__reactFiber$"+fa,at="__reactProps$"+fa,ll="__reactContainer$"+fa,_i="__reactEvents$"+fa,jm="__reactListeners$"+fa,Nm="__reactHandles$"+fa,bc="__reactResources$"+fa,Jl="__reactMarker$"+fa;function Oi(e){delete e[$e],delete e[at],delete e[_i],delete e[jm],delete e[Nm]}function nl(e){var t=e[$e];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ll]||a[$e]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Qd(e);e!==null;){if(a=e[$e])return a;e=Qd(e)}return t}e=a,a=e.parentNode}return null}function sl(e){if(e=e[$e]||e[ll]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function il(e){var t=e[bc];return t||(t=e[bc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ve(e){e[Jl]=!0}var jc=new Set,Nc={};function qa(e,t){rl(e,t),rl(e+"Capture",t)}function rl(e,t){for(Nc[e]=t,e=0;e<t.length;e++)jc.add(t[e])}var Sm=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]*$"),Sc={},Ec={};function Em(e){return Ti.call(Ec,e)?!0:Ti.call(Sc,e)?!1:Sm.test(e)?Ec[e]=!0:(Sc[e]=!0,!1)}function In(e,t,a){if(Em(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function es(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Vt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function jt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Tc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tm(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,i=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){a=""+f,i.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Di(e){if(!e._valueTracker){var t=Tc(e)?"checked":"value";e._valueTracker=Tm(e,t,""+e[t])}}function Cc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Tc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ts(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 Cm=/[\n"\\]/g;function Nt(e){return e.replace(Cm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function wi(e,t,a,l,s,i,f,m){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+jt(t)):e.value!==""+jt(t)&&(e.value=""+jt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Ui(e,f,jt(t)):a!=null?Ui(e,f,jt(a)):l!=null&&e.removeAttribute("value"),s==null&&i!=null&&(e.defaultChecked=!!i),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.name=""+jt(m):e.removeAttribute("name")}function Ac(e,t,a,l,s,i,f,m){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||a!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Di(e);return}a=a!=null?""+jt(a):"",t=t!=null?""+jt(t):a,m||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=m?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Di(e)}function Ui(e,t,a){t==="number"&&ts(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ul(e,t,a,l){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&l&&(e[a].defaultSelected=!0)}else{for(a=""+jt(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Mc(e,t,a){if(t!=null&&(t=""+jt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+jt(a):""}function zc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(u(92));if(Ot(l)){if(1<l.length)throw Error(u(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=jt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Di(e)}function cl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Am=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 Rc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||Am.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function _c(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&Rc(e,s,l)}else for(var i in t)t.hasOwnProperty(i)&&Rc(e,i,t[i])}function Li(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 Mm=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"]]),zm=/^[\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 as(e){return zm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var Hi=null;function Bi(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ol=null,fl=null;function Oc(e){var t=sl(e);if(t&&(e=t.stateNode)){var a=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(wi(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Nt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var s=l[at]||null;if(!s)throw Error(u(90));wi(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Cc(l)}break e;case"textarea":Mc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ul(e,!!a.multiple,t,!1)}}}var qi=!1;function Dc(e,t,a){if(qi)return e(t,a);qi=!0;try{var l=e(t);return l}finally{if(qi=!1,(ol!==null||fl!==null)&&(Qs(),ol&&(t=ol,e=fl,fl=ol=null,Oc(t),e)))for(t=0;t<e.length;t++)Oc(e[t])}}function Fl(e,t){var a=e.stateNode;if(a===null)return null;var l=a[at]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yi=!1;if(kt)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){Yi=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{Yi=!1}var da=null,Gi=null,ls=null;function wc(){if(ls)return ls;var e,t=Gi,a=t.length,l,s="value"in da?da.value:da.textContent,i=s.length;for(e=0;e<a&&t[e]===s[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===s[i-l];l++);return ls=s.slice(e,1<l?1-l:void 0)}function ns(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 ss(){return!0}function Uc(){return!1}function lt(e){function t(a,l,s,i,f){this._reactName=a,this._targetInst=s,this.type=l,this.nativeEvent=i,this.target=f,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(a=e[m],this[m]=a?a(i):i[m]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ss:Uc,this.isPropagationStopped=Uc,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ss)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ss)},persist:function(){},isPersistent:ss}),t}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},is=lt(Ya),Il=y({},Ya,{view:0,detail:0}),Rm=lt(Il),Xi,Qi,en,rs=y({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zi,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!==en&&(en&&e.type==="mousemove"?(Xi=e.screenX-en.screenX,Qi=e.screenY-en.screenY):Qi=Xi=0,en=e),Xi)},movementY:function(e){return"movementY"in e?e.movementY:Qi}}),Lc=lt(rs),_m=y({},rs,{dataTransfer:0}),Om=lt(_m),Dm=y({},Il,{relatedTarget:0}),Vi=lt(Dm),wm=y({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),Um=lt(wm),Lm=y({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hm=lt(Lm),Bm=y({},Ya,{data:0}),Hc=lt(Bm),qm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ym={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"},Gm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gm[e])?!!t[e]:!1}function Zi(){return Xm}var Qm=y({},Il,{key:function(e){if(e.key){var t=qm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ns(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ym[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zi,charCode:function(e){return e.type==="keypress"?ns(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ns(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vm=lt(Qm),Zm=y({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bc=lt(Zm),km=y({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zi}),$m=lt(km),Km=y({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jm=lt(Km),Wm=y({},rs,{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}),Fm=lt(Wm),Pm=y({},Ya,{newState:0,oldState:0}),Im=lt(Pm),eh=[9,13,27,32],ki=kt&&"CompositionEvent"in window,tn=null;kt&&"documentMode"in document&&(tn=document.documentMode);var th=kt&&"TextEvent"in window&&!tn,qc=kt&&(!ki||tn&&8<tn&&11>=tn),Yc=" ",Gc=!1;function Xc(e,t){switch(e){case"keyup":return eh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var dl=!1;function ah(e,t){switch(e){case"compositionend":return Qc(t);case"keypress":return t.which!==32?null:(Gc=!0,Yc);case"textInput":return e=t.data,e===Yc&&Gc?null:e;default:return null}}function lh(e,t){if(dl)return e==="compositionend"||!ki&&Xc(e,t)?(e=wc(),ls=Gi=da=null,dl=!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 qc&&t.locale!=="ko"?null:t.data;default:return null}}var nh={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 Vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nh[e.type]:t==="textarea"}function Zc(e,t,a,l){ol?fl?fl.push(l):fl=[l]:ol=l,t=Ws(t,"onChange"),0<t.length&&(a=new is("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var an=null,ln=null;function sh(e){zd(e,0)}function us(e){var t=Wl(e);if(Cc(t))return e}function kc(e,t){if(e==="change")return t}var $c=!1;if(kt){var $i;if(kt){var Ki="oninput"in document;if(!Ki){var Kc=document.createElement("div");Kc.setAttribute("oninput","return;"),Ki=typeof Kc.oninput=="function"}$i=Ki}else $i=!1;$c=$i&&(!document.documentMode||9<document.documentMode)}function Jc(){an&&(an.detachEvent("onpropertychange",Wc),ln=an=null)}function Wc(e){if(e.propertyName==="value"&&us(ln)){var t=[];Zc(t,ln,e,Bi(e)),Dc(sh,t)}}function ih(e,t,a){e==="focusin"?(Jc(),an=t,ln=a,an.attachEvent("onpropertychange",Wc)):e==="focusout"&&Jc()}function rh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return us(ln)}function uh(e,t){if(e==="click")return us(t)}function ch(e,t){if(e==="input"||e==="change")return us(t)}function oh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:oh;function nn(e,t){if(dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];if(!Ti.call(t,s)||!dt(e[s],t[s]))return!1}return!0}function Fc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Pc(e,t){var a=Fc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Fc(a)}}function Ic(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ic(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function eo(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ts(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ts(e.document)}return t}function Ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var fh=kt&&"documentMode"in document&&11>=document.documentMode,ml=null,Wi=null,sn=null,Fi=!1;function to(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Fi||ml==null||ml!==ts(l)||(l=ml,"selectionStart"in l&&Ji(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),sn&&nn(sn,l)||(sn=l,l=Ws(Wi,"onSelect"),0<l.length&&(t=new is("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=ml)))}function Ga(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var hl={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionrun:Ga("Transition","TransitionRun"),transitionstart:Ga("Transition","TransitionStart"),transitioncancel:Ga("Transition","TransitionCancel"),transitionend:Ga("Transition","TransitionEnd")},Pi={},ao={};kt&&(ao=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function Xa(e){if(Pi[e])return Pi[e];if(!hl[e])return e;var t=hl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in ao)return Pi[e]=t[a];return e}var lo=Xa("animationend"),no=Xa("animationiteration"),so=Xa("animationstart"),dh=Xa("transitionrun"),mh=Xa("transitionstart"),hh=Xa("transitioncancel"),io=Xa("transitionend"),ro=new Map,Ii="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(" ");Ii.push("scrollEnd");function Dt(e,t){ro.set(e,t),qa(t,[e])}var cs=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)},St=[],xl=0,er=0;function os(){for(var e=xl,t=er=xl=0;t<e;){var a=St[t];St[t++]=null;var l=St[t];St[t++]=null;var s=St[t];St[t++]=null;var i=St[t];if(St[t++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}i!==0&&uo(a,s,i)}}function fs(e,t,a,l){St[xl++]=e,St[xl++]=t,St[xl++]=a,St[xl++]=l,er|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function tr(e,t,a,l){return fs(e,t,a,l),ds(e)}function Qa(e,t){return fs(e,null,null,t),ds(e)}function uo(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,i=e.return;i!==null;)i.childLanes|=a,l=i.alternate,l!==null&&(l.childLanes|=a),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(s=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,s&&t!==null&&(s=31-ft(a),e=i.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=a|536870912),i):null}function ds(e){if(50<Mn)throw Mn=0,ou=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var gl={};function xh(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,a,l){return new xh(e,t,a,l)}function ar(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $t(e,t){var a=e.alternate;return a===null?(a=mt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function co(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ms(e,t,a,l,s,i){var f=0;if(l=e,typeof e=="function")ar(e)&&(f=1);else if(typeof e=="string")f=bx(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=mt(31,a,t,s),e.elementType=Q,e.lanes=i,e;case O:return Va(a.children,s,i,t);case C:f=8,s|=24;break;case G:return e=mt(12,a,t,s|2),e.elementType=G,e.lanes=i,e;case te:return e=mt(13,a,t,s),e.elementType=te,e.lanes=i,e;case $:return e=mt(19,a,t,s),e.elementType=$,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:f=10;break e;case H:f=9;break e;case re:f=11;break e;case U:f=14;break e;case F:f=16,l=null;break e}f=29,a=Error(u(130,e===null?"null":typeof e,"")),l=null}return t=mt(f,a,t,s),t.elementType=e,t.type=l,t.lanes=i,t}function Va(e,t,a,l){return e=mt(7,e,l,t),e.lanes=a,e}function lr(e,t,a){return e=mt(6,e,null,t),e.lanes=a,e}function oo(e){var t=mt(18,null,null,0);return t.stateNode=e,t}function nr(e,t,a){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var fo=new WeakMap;function Et(e,t){if(typeof e=="object"&&e!==null){var a=fo.get(e);return a!==void 0?a:(t={value:e,source:t,stack:oc(t)},fo.set(e,t),t)}return{value:e,source:t,stack:oc(t)}}var yl=[],pl=0,hs=null,rn=0,Tt=[],Ct=0,ma=null,Ht=1,Bt="";function Kt(e,t){yl[pl++]=rn,yl[pl++]=hs,hs=e,rn=t}function mo(e,t,a){Tt[Ct++]=Ht,Tt[Ct++]=Bt,Tt[Ct++]=ma,ma=e;var l=Ht;e=Bt;var s=32-ft(l)-1;l&=~(1<<s),a+=1;var i=32-ft(t)+s;if(30<i){var f=s-s%5;i=(l&(1<<f)-1).toString(32),l>>=f,s-=f,Ht=1<<32-ft(t)+s|a<<s|l,Bt=i+e}else Ht=1<<i|a<<s|l,Bt=e}function sr(e){e.return!==null&&(Kt(e,1),mo(e,1,0))}function ir(e){for(;e===hs;)hs=yl[--pl],yl[pl]=null,rn=yl[--pl],yl[pl]=null;for(;e===ma;)ma=Tt[--Ct],Tt[Ct]=null,Bt=Tt[--Ct],Tt[Ct]=null,Ht=Tt[--Ct],Tt[Ct]=null}function ho(e,t){Tt[Ct++]=Ht,Tt[Ct++]=Bt,Tt[Ct++]=ma,Ht=t.id,Bt=t.overflow,ma=e}var Ke=null,Me=null,me=!1,ha=null,At=!1,rr=Error(u(519));function xa(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw un(Et(t,e)),rr}function xo(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[$e]=e,t[at]=l,a){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(a=0;a<Rn.length;a++)oe(Rn[a],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),Ac(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),zc(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Dd(t.textContent,a)?(l.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),l.onScroll!=null&&oe("scroll",t),l.onScrollEnd!=null&&oe("scrollend",t),l.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||xa(e,!0)}function go(e){for(Ke=e.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:At=!1;return;case 27:case 3:At=!0;return;default:Ke=Ke.return}}function vl(e){if(e!==Ke)return!1;if(!me)return go(e),me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Tu(e.type,e.memoizedProps)),a=!a),a&&Me&&xa(e),go(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Me=Xd(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));Me=Xd(e)}else t===27?(t=Me,za(e.type)?(e=Ru,Ru=null,Me=e):Me=t):Me=Ke?zt(e.stateNode.nextSibling):null;return!0}function Za(){Me=Ke=null,me=!1}function ur(){var e=ha;return e!==null&&(rt===null?rt=e:rt.push.apply(rt,e),ha=null),e}function un(e){ha===null?ha=[e]:ha.push(e)}var cr=S(null),ka=null,Jt=null;function ga(e,t,a){k(cr,t._currentValue),t._currentValue=a}function Wt(e){e._currentValue=cr.current,Y(cr)}function or(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function fr(e,t,a,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var i=s.dependencies;if(i!==null){var f=s.child;i=i.firstContext;e:for(;i!==null;){var m=i;i=s;for(var v=0;v<t.length;v++)if(m.context===t[v]){i.lanes|=a,m=i.alternate,m!==null&&(m.lanes|=a),or(i.return,a,e),l||(f=null);break e}i=m.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(u(341));f.lanes|=a,i=f.alternate,i!==null&&(i.lanes|=a),or(f,a,e),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===e){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function bl(e,t,a,l){e=null;for(var s=t,i=!1;s!==null;){if(!i){if((s.flags&524288)!==0)i=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(u(387));if(f=f.memoizedProps,f!==null){var m=s.type;dt(s.pendingProps.value,f.value)||(e!==null?e.push(m):e=[m])}}else if(s===pe.current){if(f=s.alternate,f===null)throw Error(u(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Un):e=[Un])}s=s.return}e!==null&&fr(t,e,a,l),t.flags|=262144}function xs(e){for(e=e.firstContext;e!==null;){if(!dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $a(e){ka=e,Jt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Je(e){return yo(ka,e)}function gs(e,t){return ka===null&&$a(e),yo(e,t)}function yo(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Jt===null){if(e===null)throw Error(u(308));Jt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Jt=Jt.next=t;return a}var gh=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},yh=r.unstable_scheduleCallback,ph=r.unstable_NormalPriority,He={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dr(){return{controller:new gh,data:new Map,refCount:0}}function cn(e){e.refCount--,e.refCount===0&&yh(ph,function(){e.controller.abort()})}var on=null,mr=0,jl=0,Nl=null;function vh(e,t){if(on===null){var a=on=[];mr=0,jl=gu(),Nl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return mr++,t.then(po,po),t}function po(){if(--mr===0&&on!==null){Nl!==null&&(Nl.status="fulfilled");var e=on;on=null,jl=0,Nl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function bh(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var vo=w.S;w.S=function(e,t){ld=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&vh(e,t),vo!==null&&vo(e,t)};var Ka=S(null);function hr(){var e=Ka.current;return e!==null?e:Ce.pooledCache}function ys(e,t){t===null?k(Ka,Ka.current):k(Ka,t.pool)}function bo(){var e=hr();return e===null?null:{parent:He._currentValue,pool:e}}var Sl=Error(u(460)),xr=Error(u(474)),ps=Error(u(542)),vs={then:function(){}};function jo(e){return e=e.status,e==="fulfilled"||e==="rejected"}function No(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Zt,Zt),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eo(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Ce,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Eo(e),e}throw Wa=t,Sl}}function Ja(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Wa=a,Sl):a}}var Wa=null;function So(){if(Wa===null)throw Error(u(459));var e=Wa;return Wa=null,e}function Eo(e){if(e===Sl||e===ps)throw Error(u(483))}var El=null,fn=0;function bs(e){var t=fn;return fn+=1,El===null&&(El=[]),No(El,e,t)}function dn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function js(e,t){throw t.$$typeof===z?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function To(e){function t(T,N){if(e){var A=T.deletions;A===null?(T.deletions=[N],T.flags|=16):A.push(N)}}function a(T,N){if(!e)return null;for(;N!==null;)t(T,N),N=N.sibling;return null}function l(T){for(var N=new Map;T!==null;)T.key!==null?N.set(T.key,T):N.set(T.index,T),T=T.sibling;return N}function s(T,N){return T=$t(T,N),T.index=0,T.sibling=null,T}function i(T,N,A){return T.index=A,e?(A=T.alternate,A!==null?(A=A.index,A<N?(T.flags|=67108866,N):A):(T.flags|=67108866,N)):(T.flags|=1048576,N)}function f(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,N,A,L){return N===null||N.tag!==6?(N=lr(A,T.mode,L),N.return=T,N):(N=s(N,A),N.return=T,N)}function v(T,N,A,L){var P=A.type;return P===O?D(T,N,A.props.children,L,A.key):N!==null&&(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===F&&Ja(P)===N.type)?(N=s(N,A.props),dn(N,A),N.return=T,N):(N=ms(A.type,A.key,A.props,null,T.mode,L),dn(N,A),N.return=T,N)}function M(T,N,A,L){return N===null||N.tag!==4||N.stateNode.containerInfo!==A.containerInfo||N.stateNode.implementation!==A.implementation?(N=nr(A,T.mode,L),N.return=T,N):(N=s(N,A.children||[]),N.return=T,N)}function D(T,N,A,L,P){return N===null||N.tag!==7?(N=Va(A,T.mode,L,P),N.return=T,N):(N=s(N,A),N.return=T,N)}function q(T,N,A){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=lr(""+N,T.mode,A),N.return=T,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case B:return A=ms(N.type,N.key,N.props,null,T.mode,A),dn(A,N),A.return=T,A;case X:return N=nr(N,T.mode,A),N.return=T,N;case F:return N=Ja(N),q(T,N,A)}if(Ot(N)||Qe(N))return N=Va(N,T.mode,A,null),N.return=T,N;if(typeof N.then=="function")return q(T,bs(N),A);if(N.$$typeof===V)return q(T,gs(T,N),A);js(T,N)}return null}function R(T,N,A,L){var P=N!==null?N.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return P!==null?null:m(T,N,""+A,L);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case B:return A.key===P?v(T,N,A,L):null;case X:return A.key===P?M(T,N,A,L):null;case F:return A=Ja(A),R(T,N,A,L)}if(Ot(A)||Qe(A))return P!==null?null:D(T,N,A,L,null);if(typeof A.then=="function")return R(T,N,bs(A),L);if(A.$$typeof===V)return R(T,N,gs(T,A),L);js(T,A)}return null}function _(T,N,A,L,P){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return T=T.get(A)||null,m(N,T,""+L,P);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case B:return T=T.get(L.key===null?A:L.key)||null,v(N,T,L,P);case X:return T=T.get(L.key===null?A:L.key)||null,M(N,T,L,P);case F:return L=Ja(L),_(T,N,A,L,P)}if(Ot(L)||Qe(L))return T=T.get(A)||null,D(N,T,L,P,null);if(typeof L.then=="function")return _(T,N,A,bs(L),P);if(L.$$typeof===V)return _(T,N,A,gs(N,L),P);js(N,L)}return null}function K(T,N,A,L){for(var P=null,xe=null,W=N,ie=N=0,de=null;W!==null&&ie<A.length;ie++){W.index>ie?(de=W,W=null):de=W.sibling;var ge=R(T,W,A[ie],L);if(ge===null){W===null&&(W=de);break}e&&W&&ge.alternate===null&&t(T,W),N=i(ge,N,ie),xe===null?P=ge:xe.sibling=ge,xe=ge,W=de}if(ie===A.length)return a(T,W),me&&Kt(T,ie),P;if(W===null){for(;ie<A.length;ie++)W=q(T,A[ie],L),W!==null&&(N=i(W,N,ie),xe===null?P=W:xe.sibling=W,xe=W);return me&&Kt(T,ie),P}for(W=l(W);ie<A.length;ie++)de=_(W,T,ie,A[ie],L),de!==null&&(e&&de.alternate!==null&&W.delete(de.key===null?ie:de.key),N=i(de,N,ie),xe===null?P=de:xe.sibling=de,xe=de);return e&&W.forEach(function(wa){return t(T,wa)}),me&&Kt(T,ie),P}function I(T,N,A,L){if(A==null)throw Error(u(151));for(var P=null,xe=null,W=N,ie=N=0,de=null,ge=A.next();W!==null&&!ge.done;ie++,ge=A.next()){W.index>ie?(de=W,W=null):de=W.sibling;var wa=R(T,W,ge.value,L);if(wa===null){W===null&&(W=de);break}e&&W&&wa.alternate===null&&t(T,W),N=i(wa,N,ie),xe===null?P=wa:xe.sibling=wa,xe=wa,W=de}if(ge.done)return a(T,W),me&&Kt(T,ie),P;if(W===null){for(;!ge.done;ie++,ge=A.next())ge=q(T,ge.value,L),ge!==null&&(N=i(ge,N,ie),xe===null?P=ge:xe.sibling=ge,xe=ge);return me&&Kt(T,ie),P}for(W=l(W);!ge.done;ie++,ge=A.next())ge=_(W,T,ie,ge.value,L),ge!==null&&(e&&ge.alternate!==null&&W.delete(ge.key===null?ie:ge.key),N=i(ge,N,ie),xe===null?P=ge:xe.sibling=ge,xe=ge);return e&&W.forEach(function(_x){return t(T,_x)}),me&&Kt(T,ie),P}function Ee(T,N,A,L){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case B:e:{for(var P=A.key;N!==null;){if(N.key===P){if(P=A.type,P===O){if(N.tag===7){a(T,N.sibling),L=s(N,A.props.children),L.return=T,T=L;break e}}else if(N.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===F&&Ja(P)===N.type){a(T,N.sibling),L=s(N,A.props),dn(L,A),L.return=T,T=L;break e}a(T,N);break}else t(T,N);N=N.sibling}A.type===O?(L=Va(A.props.children,T.mode,L,A.key),L.return=T,T=L):(L=ms(A.type,A.key,A.props,null,T.mode,L),dn(L,A),L.return=T,T=L)}return f(T);case X:e:{for(P=A.key;N!==null;){if(N.key===P)if(N.tag===4&&N.stateNode.containerInfo===A.containerInfo&&N.stateNode.implementation===A.implementation){a(T,N.sibling),L=s(N,A.children||[]),L.return=T,T=L;break e}else{a(T,N);break}else t(T,N);N=N.sibling}L=nr(A,T.mode,L),L.return=T,T=L}return f(T);case F:return A=Ja(A),Ee(T,N,A,L)}if(Ot(A))return K(T,N,A,L);if(Qe(A)){if(P=Qe(A),typeof P!="function")throw Error(u(150));return A=P.call(A),I(T,N,A,L)}if(typeof A.then=="function")return Ee(T,N,bs(A),L);if(A.$$typeof===V)return Ee(T,N,gs(T,A),L);js(T,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,N!==null&&N.tag===6?(a(T,N.sibling),L=s(N,A),L.return=T,T=L):(a(T,N),L=lr(A,T.mode,L),L.return=T,T=L),f(T)):a(T,N)}return function(T,N,A,L){try{fn=0;var P=Ee(T,N,A,L);return El=null,P}catch(W){if(W===Sl||W===ps)throw W;var xe=mt(29,W,null,T.mode);return xe.lanes=L,xe.return=T,xe}}}var Fa=To(!0),Co=To(!1),ya=!1;function gr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yr(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 pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function va(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ye&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=ds(e),uo(e,null,a),t}return fs(e,l,t,a),ds(e)}function mn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,gc(e,a)}}function pr(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var s=null,i=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};i===null?s=i=f:i=i.next=f,a=a.next}while(a!==null);i===null?s=i=t:i=i.next=t}else s=i=t;a={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var vr=!1;function hn(){if(vr){var e=Nl;if(e!==null)throw e}}function xn(e,t,a,l){vr=!1;var s=e.updateQueue;ya=!1;var i=s.firstBaseUpdate,f=s.lastBaseUpdate,m=s.shared.pending;if(m!==null){s.shared.pending=null;var v=m,M=v.next;v.next=null,f===null?i=M:f.next=M,f=v;var D=e.alternate;D!==null&&(D=D.updateQueue,m=D.lastBaseUpdate,m!==f&&(m===null?D.firstBaseUpdate=M:m.next=M,D.lastBaseUpdate=v))}if(i!==null){var q=s.baseState;f=0,D=M=v=null,m=i;do{var R=m.lane&-536870913,_=R!==m.lane;if(_?(fe&R)===R:(l&R)===R){R!==0&&R===jl&&(vr=!0),D!==null&&(D=D.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});e:{var K=e,I=m;R=t;var Ee=a;switch(I.tag){case 1:if(K=I.payload,typeof K=="function"){q=K.call(Ee,q,R);break e}q=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=I.payload,R=typeof K=="function"?K.call(Ee,q,R):K,R==null)break e;q=y({},q,R);break e;case 2:ya=!0}}R=m.callback,R!==null&&(e.flags|=64,_&&(e.flags|=8192),_=s.callbacks,_===null?s.callbacks=[R]:_.push(R))}else _={lane:R,tag:m.tag,payload:m.payload,callback:m.callback,next:null},D===null?(M=D=_,v=q):D=D.next=_,f|=R;if(m=m.next,m===null){if(m=s.shared.pending,m===null)break;_=m,m=_.next,_.next=null,s.lastBaseUpdate=_,s.shared.pending=null}}while(!0);D===null&&(v=q),s.baseState=v,s.firstBaseUpdate=M,s.lastBaseUpdate=D,i===null&&(s.shared.lanes=0),Ea|=f,e.lanes=f,e.memoizedState=q}}function Ao(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Mo(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ao(a[e],t)}var Tl=S(null),Ns=S(0);function zo(e,t){e=sa,k(Ns,e),k(Tl,t),sa=e|t.baseLanes}function br(){k(Ns,sa),k(Tl,Tl.current)}function jr(){sa=Ns.current,Y(Tl),Y(Ns)}var ht=S(null),Mt=null;function ba(e){var t=e.alternate;k(Ue,Ue.current&1),k(ht,e),Mt===null&&(t===null||Tl.current!==null||t.memoizedState!==null)&&(Mt=e)}function Nr(e){k(Ue,Ue.current),k(ht,e),Mt===null&&(Mt=e)}function Ro(e){e.tag===22?(k(Ue,Ue.current),k(ht,e),Mt===null&&(Mt=e)):ja()}function ja(){k(Ue,Ue.current),k(ht,ht.current)}function xt(e){Y(ht),Mt===e&&(Mt=null),Y(Ue)}var Ue=S(0);function Ss(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Mu(a)||zu(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ft=0,se=null,Ne=null,Be=null,Es=!1,Cl=!1,Pa=!1,Ts=0,gn=0,Al=null,jh=0;function Oe(){throw Error(u(321))}function Sr(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!dt(e[a],t[a]))return!1;return!0}function Er(e,t,a,l,s,i){return Ft=i,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,w.H=e===null||e.memoizedState===null?hf:qr,Pa=!1,i=a(l,s),Pa=!1,Cl&&(i=Oo(t,a,l,s)),_o(e),i}function _o(e){w.H=vn;var t=Ne!==null&&Ne.next!==null;if(Ft=0,Be=Ne=se=null,Es=!1,gn=0,Al=null,t)throw Error(u(300));e===null||qe||(e=e.dependencies,e!==null&&xs(e)&&(qe=!0))}function Oo(e,t,a,l){se=e;var s=0;do{if(Cl&&(Al=null),gn=0,Cl=!1,25<=s)throw Error(u(301));if(s+=1,Be=Ne=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}w.H=xf,i=t(a,l)}while(Cl);return i}function Nh(){var e=w.H,t=e.useState()[0];return t=typeof t.then=="function"?yn(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(se.flags|=1024),t}function Tr(){var e=Ts!==0;return Ts=0,e}function Cr(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Ar(e){if(Es){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Es=!1}Ft=0,Be=Ne=se=null,Cl=!1,gn=Ts=0,Al=null}function et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?se.memoizedState=Be=e:Be=Be.next=e,Be}function Le(){if(Ne===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Be===null?se.memoizedState:Be.next;if(t!==null)Be=t,Ne=e;else{if(e===null)throw se.alternate===null?Error(u(467)):Error(u(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Be===null?se.memoizedState=Be=e:Be=Be.next=e}return Be}function Cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yn(e){var t=gn;return gn+=1,Al===null&&(Al=[]),e=No(Al,e,t),t=se,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,w.H=t===null||t.memoizedState===null?hf:qr),e}function As(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yn(e);if(e.$$typeof===V)return Je(e)}throw Error(u(438,String(e)))}function Mr(e){var t=null,a=se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=se.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Cs(),se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=Ae;return t.index++,a}function Pt(e,t){return typeof t=="function"?t(e):t}function Ms(e){var t=Le();return zr(t,Ne,e)}function zr(e,t,a){var l=e.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=a;var s=e.baseQueue,i=l.pending;if(i!==null){if(s!==null){var f=s.next;s.next=i.next,i.next=f}t.baseQueue=s=i,l.pending=null}if(i=e.baseState,s===null)e.memoizedState=i;else{t=s.next;var m=f=null,v=null,M=t,D=!1;do{var q=M.lane&-536870913;if(q!==M.lane?(fe&q)===q:(Ft&q)===q){var R=M.revertLane;if(R===0)v!==null&&(v=v.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),q===jl&&(D=!0);else if((Ft&R)===R){M=M.next,R===jl&&(D=!0);continue}else q={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},v===null?(m=v=q,f=i):v=v.next=q,se.lanes|=R,Ea|=R;q=M.action,Pa&&a(i,q),i=M.hasEagerState?M.eagerState:a(i,q)}else R={lane:q,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},v===null?(m=v=R,f=i):v=v.next=R,se.lanes|=q,Ea|=q;M=M.next}while(M!==null&&M!==t);if(v===null?f=i:v.next=m,!dt(i,e.memoizedState)&&(qe=!0,D&&(a=Nl,a!==null)))throw a;e.memoizedState=i,e.baseState=f,e.baseQueue=v,l.lastRenderedState=i}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Rr(e){var t=Le(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var l=a.dispatch,s=a.pending,i=t.memoizedState;if(s!==null){a.pending=null;var f=s=s.next;do i=e(i,f.action),f=f.next;while(f!==s);dt(i,t.memoizedState)||(qe=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),a.lastRenderedState=i}return[i,l]}function Do(e,t,a){var l=se,s=Le(),i=me;if(i){if(a===void 0)throw Error(u(407));a=a()}else a=t();var f=!dt((Ne||s).memoizedState,a);if(f&&(s.memoizedState=a,qe=!0),s=s.queue,Dr(Lo.bind(null,l,s,e),[e]),s.getSnapshot!==t||f||Be!==null&&Be.memoizedState.tag&1){if(l.flags|=2048,Ml(9,{destroy:void 0},Uo.bind(null,l,s,a,t),null),Ce===null)throw Error(u(349));i||(Ft&127)!==0||wo(l,t,a)}return a}function wo(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=se.updateQueue,t===null?(t=Cs(),se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Uo(e,t,a,l){t.value=a,t.getSnapshot=l,Ho(t)&&Bo(e)}function Lo(e,t,a){return a(function(){Ho(t)&&Bo(e)})}function Ho(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!dt(e,a)}catch{return!0}}function Bo(e){var t=Qa(e,2);t!==null&&ut(t,e,2)}function _r(e){var t=et();if(typeof e=="function"){var a=e;if(e=a(),Pa){oa(!0);try{a()}finally{oa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:e},t}function qo(e,t,a,l){return e.baseState=a,zr(e,Ne,typeof l=="function"?l:Pt)}function Sh(e,t,a,l,s){if(_s(e))throw Error(u(485));if(e=t.action,e!==null){var i={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){i.listeners.push(f)}};w.T!==null?a(!0):i.isTransition=!1,l(i),a=t.pending,a===null?(i.next=t.pending=i,Yo(t,i)):(i.next=a.next,t.pending=a.next=i)}}function Yo(e,t){var a=t.action,l=t.payload,s=e.state;if(t.isTransition){var i=w.T,f={};w.T=f;try{var m=a(s,l),v=w.S;v!==null&&v(f,m),Go(e,t,m)}catch(M){Or(e,t,M)}finally{i!==null&&f.types!==null&&(i.types=f.types),w.T=i}}else try{i=a(s,l),Go(e,t,i)}catch(M){Or(e,t,M)}}function Go(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Xo(e,t,l)},function(l){return Or(e,t,l)}):Xo(e,t,a)}function Xo(e,t,a){t.status="fulfilled",t.value=a,Qo(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Yo(e,a)))}function Or(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Qo(t),t=t.next;while(t!==l)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Vo(e,t){return t}function Zo(e,t){if(me){var a=Ce.formState;if(a!==null){e:{var l=se;if(me){if(Me){t:{for(var s=Me,i=At;s.nodeType!==8;){if(!i){s=null;break t}if(s=zt(s.nextSibling),s===null){s=null;break t}}i=s.data,s=i==="F!"||i==="F"?s:null}if(s){Me=zt(s.nextSibling),l=s.data==="F!";break e}}xa(l)}l=!1}l&&(t=a[0])}}return a=et(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:t},a.queue=l,a=ff.bind(null,se,l),l.dispatch=a,l=_r(!1),i=Br.bind(null,se,!1,l.queue),l=et(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=Sh.bind(null,se,s,i,a),s.dispatch=a,l.memoizedState=e,[t,a,!1]}function ko(e){var t=Le();return $o(t,Ne,e)}function $o(e,t,a){if(t=zr(e,t,Vo)[0],e=Ms(Pt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=yn(t)}catch(f){throw f===Sl?ps:f}else l=t;t=Le();var s=t.queue,i=s.dispatch;return a!==t.memoizedState&&(se.flags|=2048,Ml(9,{destroy:void 0},Eh.bind(null,s,a),null)),[l,i,e]}function Eh(e,t){e.action=t}function Ko(e){var t=Le(),a=Ne;if(a!==null)return $o(t,a,e);Le(),t=t.memoizedState,a=Le();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Ml(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=se.updateQueue,t===null&&(t=Cs(),se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Jo(){return Le().memoizedState}function zs(e,t,a,l){var s=et();se.flags|=e,s.memoizedState=Ml(1|t,{destroy:void 0},a,l===void 0?null:l)}function Rs(e,t,a,l){var s=Le();l=l===void 0?null:l;var i=s.memoizedState.inst;Ne!==null&&l!==null&&Sr(l,Ne.memoizedState.deps)?s.memoizedState=Ml(t,i,a,l):(se.flags|=e,s.memoizedState=Ml(1|t,i,a,l))}function Wo(e,t){zs(8390656,8,e,t)}function Dr(e,t){Rs(2048,8,e,t)}function Th(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Cs(),se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Fo(e){var t=Le().memoizedState;return Th({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function Po(e,t){return Rs(4,2,e,t)}function Io(e,t){return Rs(4,4,e,t)}function ef(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tf(e,t,a){a=a!=null?a.concat([e]):null,Rs(4,4,ef.bind(null,t,e),a)}function wr(){}function af(e,t){var a=Le();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Sr(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function lf(e,t){var a=Le();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Sr(t,l[1]))return l[0];if(l=e(),Pa){oa(!0);try{e()}finally{oa(!1)}}return a.memoizedState=[l,t],l}function Ur(e,t,a){return a===void 0||(Ft&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=sd(),se.lanes|=e,Ea|=e,a)}function nf(e,t,a,l){return dt(a,t)?a:Tl.current!==null?(e=Ur(e,a,l),dt(e,t)||(qe=!0),e):(Ft&42)===0||(Ft&1073741824)!==0&&(fe&261930)===0?(qe=!0,e.memoizedState=a):(e=sd(),se.lanes|=e,Ea|=e,t)}function sf(e,t,a,l,s){var i=Z.p;Z.p=i!==0&&8>i?i:8;var f=w.T,m={};w.T=m,Br(e,!1,t,a);try{var v=s(),M=w.S;if(M!==null&&M(m,v),v!==null&&typeof v=="object"&&typeof v.then=="function"){var D=bh(v,l);pn(e,t,D,pt(e))}else pn(e,t,l,pt(e))}catch(q){pn(e,t,{then:function(){},status:"rejected",reason:q},pt())}finally{Z.p=i,f!==null&&m.types!==null&&(f.types=m.types),w.T=f}}function Ch(){}function Lr(e,t,a,l){if(e.tag!==5)throw Error(u(476));var s=rf(e).queue;sf(e,s,t,ee,a===null?Ch:function(){return uf(e),a(l)})}function rf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:ee},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function uf(e){var t=rf(e);t.next===null&&(t=e.alternate.memoizedState),pn(e,t.next.queue,{},pt())}function Hr(){return Je(Un)}function cf(){return Le().memoizedState}function of(){return Le().memoizedState}function Ah(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=pt();e=pa(a);var l=va(t,e,a);l!==null&&(ut(l,t,a),mn(l,t,a)),t={cache:dr()},e.payload=t;return}t=t.return}}function Mh(e,t,a){var l=pt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_s(e)?df(t,a):(a=tr(e,t,a,l),a!==null&&(ut(a,e,l),mf(a,t,l)))}function ff(e,t,a){var l=pt();pn(e,t,a,l)}function pn(e,t,a,l){var s={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_s(e))df(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var f=t.lastRenderedState,m=i(f,a);if(s.hasEagerState=!0,s.eagerState=m,dt(m,f))return fs(e,t,s,0),Ce===null&&os(),!1}catch{}if(a=tr(e,t,s,l),a!==null)return ut(a,e,l),mf(a,t,l),!0}return!1}function Br(e,t,a,l){if(l={lane:2,revertLane:gu(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},_s(e)){if(t)throw Error(u(479))}else t=tr(e,a,l,2),t!==null&&ut(t,e,2)}function _s(e){var t=e.alternate;return e===se||t!==null&&t===se}function df(e,t){Cl=Es=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function mf(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,gc(e,a)}}var vn={readContext:Je,use:As,useCallback:Oe,useContext:Oe,useEffect:Oe,useImperativeHandle:Oe,useLayoutEffect:Oe,useInsertionEffect:Oe,useMemo:Oe,useReducer:Oe,useRef:Oe,useState:Oe,useDebugValue:Oe,useDeferredValue:Oe,useTransition:Oe,useSyncExternalStore:Oe,useId:Oe,useHostTransitionStatus:Oe,useFormState:Oe,useActionState:Oe,useOptimistic:Oe,useMemoCache:Oe,useCacheRefresh:Oe};vn.useEffectEvent=Oe;var hf={readContext:Je,use:As,useCallback:function(e,t){return et().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:Wo,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,zs(4194308,4,ef.bind(null,t,e),a)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){zs(4,2,e,t)},useMemo:function(e,t){var a=et();t=t===void 0?null:t;var l=e();if(Pa){oa(!0);try{e()}finally{oa(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=et();if(a!==void 0){var s=a(t);if(Pa){oa(!0);try{a(t)}finally{oa(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=Mh.bind(null,se,e),[l.memoizedState,e]},useRef:function(e){var t=et();return e={current:e},t.memoizedState=e},useState:function(e){e=_r(e);var t=e.queue,a=ff.bind(null,se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:wr,useDeferredValue:function(e,t){var a=et();return Ur(a,e,t)},useTransition:function(){var e=_r(!1);return e=sf.bind(null,se,e.queue,!0,!1),et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=se,s=et();if(me){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Ce===null)throw Error(u(349));(fe&127)!==0||wo(l,t,a)}s.memoizedState=a;var i={value:a,getSnapshot:t};return s.queue=i,Wo(Lo.bind(null,l,i,e),[e]),l.flags|=2048,Ml(9,{destroy:void 0},Uo.bind(null,l,i,a,t),null),a},useId:function(){var e=et(),t=Ce.identifierPrefix;if(me){var a=Bt,l=Ht;a=(l&~(1<<32-ft(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ts++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=jh++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Hr,useFormState:Zo,useActionState:Zo,useOptimistic:function(e){var t=et();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Br.bind(null,se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Mr,useCacheRefresh:function(){return et().memoizedState=Ah.bind(null,se)},useEffectEvent:function(e){var t=et(),a={impl:e};return t.memoizedState=a,function(){if((ye&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},qr={readContext:Je,use:As,useCallback:af,useContext:Je,useEffect:Dr,useImperativeHandle:tf,useInsertionEffect:Po,useLayoutEffect:Io,useMemo:lf,useReducer:Ms,useRef:Jo,useState:function(){return Ms(Pt)},useDebugValue:wr,useDeferredValue:function(e,t){var a=Le();return nf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Ms(Pt)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:yn(e),t]},useSyncExternalStore:Do,useId:cf,useHostTransitionStatus:Hr,useFormState:ko,useActionState:ko,useOptimistic:function(e,t){var a=Le();return qo(a,Ne,e,t)},useMemoCache:Mr,useCacheRefresh:of};qr.useEffectEvent=Fo;var xf={readContext:Je,use:As,useCallback:af,useContext:Je,useEffect:Dr,useImperativeHandle:tf,useInsertionEffect:Po,useLayoutEffect:Io,useMemo:lf,useReducer:Rr,useRef:Jo,useState:function(){return Rr(Pt)},useDebugValue:wr,useDeferredValue:function(e,t){var a=Le();return Ne===null?Ur(a,e,t):nf(a,Ne.memoizedState,e,t)},useTransition:function(){var e=Rr(Pt)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:yn(e),t]},useSyncExternalStore:Do,useId:cf,useHostTransitionStatus:Hr,useFormState:Ko,useActionState:Ko,useOptimistic:function(e,t){var a=Le();return Ne!==null?qo(a,Ne,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Mr,useCacheRefresh:of};xf.useEffectEvent=Fo;function Yr(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:y({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Gr={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=pt(),s=pa(l);s.payload=t,a!=null&&(s.callback=a),t=va(e,s,l),t!==null&&(ut(t,e,l),mn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=pt(),s=pa(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=va(e,s,l),t!==null&&(ut(t,e,l),mn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=pt(),l=pa(a);l.tag=2,t!=null&&(l.callback=t),t=va(e,l,a),t!==null&&(ut(t,e,a),mn(t,e,a))}};function gf(e,t,a,l,s,i,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,i,f):t.prototype&&t.prototype.isPureReactComponent?!nn(a,l)||!nn(s,i):!0}function yf(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Gr.enqueueReplaceState(t,t.state,null)}function Ia(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=y({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function pf(e){cs(e)}function vf(e){console.error(e)}function bf(e){cs(e)}function Os(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function jf(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Xr(e,t,a){return a=pa(a),a.tag=3,a.payload={element:null},a.callback=function(){Os(e,t)},a}function Nf(e){return e=pa(e),e.tag=3,e}function Sf(e,t,a,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var i=l.value;e.payload=function(){return s(i)},e.callback=function(){jf(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){jf(t,a,l),typeof s!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var m=l.stack;this.componentDidCatch(l.value,{componentStack:m!==null?m:""})})}function zh(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&bl(t,a,s,!0),a=ht.current,a!==null){switch(a.tag){case 31:case 13:return Mt===null?Vs():a.alternate===null&&De===0&&(De=3),a.flags&=-257,a.flags|=65536,a.lanes=s,l===vs?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),mu(e,l,s)),!1;case 22:return a.flags|=65536,l===vs?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),mu(e,l,s)),!1}throw Error(u(435,a.tag))}return mu(e,l,s),Vs(),!1}if(me)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==rr&&(e=Error(u(422),{cause:l}),un(Et(e,a)))):(l!==rr&&(t=Error(u(423),{cause:l}),un(Et(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Et(l,a),s=Xr(e.stateNode,l,s),pr(e,s),De!==4&&(De=2)),!1;var i=Error(u(520),{cause:l});if(i=Et(i,a),An===null?An=[i]:An.push(i),De!==4&&(De=2),t===null)return!0;l=Et(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Xr(a.stateNode,l,e),pr(a,e),!1;case 1:if(t=a.type,i=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ta===null||!Ta.has(i))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Nf(s),Sf(s,e,a,l),pr(a,s),!1}a=a.return}while(a!==null);return!1}var Qr=Error(u(461)),qe=!1;function We(e,t,a,l){t.child=e===null?Co(t,null,a,l):Fa(t,e.child,a,l)}function Ef(e,t,a,l,s){a=a.render;var i=t.ref;if("ref"in l){var f={};for(var m in l)m!=="ref"&&(f[m]=l[m])}else f=l;return $a(t),l=Er(e,t,a,f,i,s),m=Tr(),e!==null&&!qe?(Cr(e,t,s),It(e,t,s)):(me&&m&&sr(t),t.flags|=1,We(e,t,l,s),t.child)}function Tf(e,t,a,l,s){if(e===null){var i=a.type;return typeof i=="function"&&!ar(i)&&i.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=i,Cf(e,t,i,l,s)):(e=ms(a.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Fr(e,s)){var f=i.memoizedProps;if(a=a.compare,a=a!==null?a:nn,a(f,l)&&e.ref===t.ref)return It(e,t,s)}return t.flags|=1,e=$t(i,l),e.ref=t.ref,e.return=t,t.child=e}function Cf(e,t,a,l,s){if(e!==null){var i=e.memoizedProps;if(nn(i,l)&&e.ref===t.ref)if(qe=!1,t.pendingProps=l=i,Fr(e,s))(e.flags&131072)!==0&&(qe=!0);else return t.lanes=e.lanes,It(e,t,s)}return Vr(e,t,a,l,s)}function Af(e,t,a,l){var s=l.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~i}else l=0,t.child=null;return Mf(e,t,i,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ys(t,i!==null?i.cachePool:null),i!==null?zo(t,i):br(),Ro(t);else return l=t.lanes=536870912,Mf(e,t,i!==null?i.baseLanes|a:a,a,l)}else i!==null?(ys(t,i.cachePool),zo(t,i),ja(),t.memoizedState=null):(e!==null&&ys(t,null),br(),ja());return We(e,t,s,a),t.child}function bn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mf(e,t,a,l,s){var i=hr();return i=i===null?null:{parent:He._currentValue,pool:i},t.memoizedState={baseLanes:a,cachePool:i},e!==null&&ys(t,null),br(),Ro(t),e!==null&&bl(e,t,l,!0),t.childLanes=s,null}function Ds(e,t){return t=Us({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function zf(e,t,a){return Fa(t,e.child,null,a),e=Ds(t,t.pendingProps),e.flags|=2,xt(t),t.memoizedState=null,e}function Rh(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(l.mode==="hidden")return e=Ds(t,l),t.lanes=536870912,bn(null,e);if(Nr(t),(e=Me)?(e=Gd(e,At),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ma!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},a=oo(e),a.return=t,t.child=a,Ke=t,Me=null)):e=null,e===null)throw xa(t);return t.lanes=536870912,null}return Ds(t,l)}var i=e.memoizedState;if(i!==null){var f=i.dehydrated;if(Nr(t),s)if(t.flags&256)t.flags&=-257,t=zf(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(qe||bl(e,t,a,!1),s=(a&e.childLanes)!==0,qe||s){if(l=Ce,l!==null&&(f=yc(l,a),f!==0&&f!==i.retryLane))throw i.retryLane=f,Qa(e,f),ut(l,e,f),Qr;Vs(),t=zf(e,t,a)}else e=i.treeContext,Me=zt(f.nextSibling),Ke=t,me=!0,ha=null,At=!1,e!==null&&ho(t,e),t=Ds(t,l),t.flags|=4096;return t}return e=$t(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ws(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Vr(e,t,a,l,s){return $a(t),a=Er(e,t,a,l,void 0,s),l=Tr(),e!==null&&!qe?(Cr(e,t,s),It(e,t,s)):(me&&l&&sr(t),t.flags|=1,We(e,t,a,s),t.child)}function Rf(e,t,a,l,s,i){return $a(t),t.updateQueue=null,a=Oo(t,l,a,s),_o(e),l=Tr(),e!==null&&!qe?(Cr(e,t,i),It(e,t,i)):(me&&l&&sr(t),t.flags|=1,We(e,t,a,i),t.child)}function _f(e,t,a,l,s){if($a(t),t.stateNode===null){var i=gl,f=a.contextType;typeof f=="object"&&f!==null&&(i=Je(f)),i=new a(l,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Gr,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=l,i.state=t.memoizedState,i.refs={},gr(t),f=a.contextType,i.context=typeof f=="object"&&f!==null?Je(f):gl,i.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(Yr(t,a,f,l),i.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(f=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),f!==i.state&&Gr.enqueueReplaceState(i,i.state,null),xn(t,l,i,s),hn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){i=t.stateNode;var m=t.memoizedProps,v=Ia(a,m);i.props=v;var M=i.context,D=a.contextType;f=gl,typeof D=="object"&&D!==null&&(f=Je(D));var q=a.getDerivedStateFromProps;D=typeof q=="function"||typeof i.getSnapshotBeforeUpdate=="function",m=t.pendingProps!==m,D||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(m||M!==f)&&yf(t,i,l,f),ya=!1;var R=t.memoizedState;i.state=R,xn(t,l,i,s),hn(),M=t.memoizedState,m||R!==M||ya?(typeof q=="function"&&(Yr(t,a,q,l),M=t.memoizedState),(v=ya||gf(t,a,v,l,R,M,f))?(D||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),i.props=l,i.state=M,i.context=f,l=v):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{i=t.stateNode,yr(e,t),f=t.memoizedProps,D=Ia(a,f),i.props=D,q=t.pendingProps,R=i.context,M=a.contextType,v=gl,typeof M=="object"&&M!==null&&(v=Je(M)),m=a.getDerivedStateFromProps,(M=typeof m=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f!==q||R!==v)&&yf(t,i,l,v),ya=!1,R=t.memoizedState,i.state=R,xn(t,l,i,s),hn();var _=t.memoizedState;f!==q||R!==_||ya||e!==null&&e.dependencies!==null&&xs(e.dependencies)?(typeof m=="function"&&(Yr(t,a,m,l),_=t.memoizedState),(D=ya||gf(t,a,D,l,R,_,v)||e!==null&&e.dependencies!==null&&xs(e.dependencies))?(M||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,_,v),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,_,v)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=_),i.props=l,i.state=_,i.context=v,l=D):(typeof i.componentDidUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&R===e.memoizedState||(t.flags|=1024),l=!1)}return i=l,ws(e,t),l=(t.flags&128)!==0,i||l?(i=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&l?(t.child=Fa(t,e.child,null,s),t.child=Fa(t,null,a,s)):We(e,t,a,s),t.memoizedState=i.state,e=t.child):e=It(e,t,s),e}function Of(e,t,a,l){return Za(),t.flags|=256,We(e,t,a,l),t.child}var Zr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function kr(e){return{baseLanes:e,cachePool:bo()}}function $r(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=yt),e}function Df(e,t,a){var l=t.pendingProps,s=!1,i=(t.flags&128)!==0,f;if((f=i)||(f=e!==null&&e.memoizedState===null?!1:(Ue.current&2)!==0),f&&(s=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(s?ba(t):ja(),(e=Me)?(e=Gd(e,At),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ma!==null?{id:Ht,overflow:Bt}:null,retryLane:536870912,hydrationErrors:null},a=oo(e),a.return=t,t.child=a,Ke=t,Me=null)):e=null,e===null)throw xa(t);return zu(e)?t.lanes=32:t.lanes=536870912,null}var m=l.children;return l=l.fallback,s?(ja(),s=t.mode,m=Us({mode:"hidden",children:m},s),l=Va(l,s,a,null),m.return=t,l.return=t,m.sibling=l,t.child=m,l=t.child,l.memoizedState=kr(a),l.childLanes=$r(e,f,a),t.memoizedState=Zr,bn(null,l)):(ba(t),Kr(t,m))}var v=e.memoizedState;if(v!==null&&(m=v.dehydrated,m!==null)){if(i)t.flags&256?(ba(t),t.flags&=-257,t=Jr(e,t,a)):t.memoizedState!==null?(ja(),t.child=e.child,t.flags|=128,t=null):(ja(),m=l.fallback,s=t.mode,l=Us({mode:"visible",children:l.children},s),m=Va(m,s,a,null),m.flags|=2,l.return=t,m.return=t,l.sibling=m,t.child=l,Fa(t,e.child,null,a),l=t.child,l.memoizedState=kr(a),l.childLanes=$r(e,f,a),t.memoizedState=Zr,t=bn(null,l));else if(ba(t),zu(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var M=f.dgst;f=M,l=Error(u(419)),l.stack="",l.digest=f,un({value:l,source:null,stack:null}),t=Jr(e,t,a)}else if(qe||bl(e,t,a,!1),f=(a&e.childLanes)!==0,qe||f){if(f=Ce,f!==null&&(l=yc(f,a),l!==0&&l!==v.retryLane))throw v.retryLane=l,Qa(e,l),ut(f,e,l),Qr;Mu(m)||Vs(),t=Jr(e,t,a)}else Mu(m)?(t.flags|=192,t.child=e.child,t=null):(e=v.treeContext,Me=zt(m.nextSibling),Ke=t,me=!0,ha=null,At=!1,e!==null&&ho(t,e),t=Kr(t,l.children),t.flags|=4096);return t}return s?(ja(),m=l.fallback,s=t.mode,v=e.child,M=v.sibling,l=$t(v,{mode:"hidden",children:l.children}),l.subtreeFlags=v.subtreeFlags&65011712,M!==null?m=$t(M,m):(m=Va(m,s,a,null),m.flags|=2),m.return=t,l.return=t,l.sibling=m,t.child=l,bn(null,l),l=t.child,m=e.child.memoizedState,m===null?m=kr(a):(s=m.cachePool,s!==null?(v=He._currentValue,s=s.parent!==v?{parent:v,pool:v}:s):s=bo(),m={baseLanes:m.baseLanes|a,cachePool:s}),l.memoizedState=m,l.childLanes=$r(e,f,a),t.memoizedState=Zr,bn(e.child,l)):(ba(t),a=e.child,e=a.sibling,a=$t(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function Kr(e,t){return t=Us({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Us(e,t){return e=mt(22,e,null,t),e.lanes=0,e}function Jr(e,t,a){return Fa(t,e.child,null,a),e=Kr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wf(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),or(e.return,t,a)}function Wr(e,t,a,l,s,i){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:i}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=s,f.treeForkCount=i)}function Uf(e,t,a){var l=t.pendingProps,s=l.revealOrder,i=l.tail;l=l.children;var f=Ue.current,m=(f&2)!==0;if(m?(f=f&1|2,t.flags|=128):f&=1,k(Ue,f),We(e,t,l,a),l=me?rn:0,!m&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wf(e,a,t);else if(e.tag===19)wf(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Ss(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Wr(t,!1,s,a,i,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ss(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Wr(t,!0,a,null,i,l);break;case"together":Wr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function It(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ea|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(bl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=$t(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=$t(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Fr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&xs(e)))}function _h(e,t,a){switch(t.tag){case 3:Ie(t,t.stateNode.containerInfo),ga(t,He,e.memoizedState.cache),Za();break;case 27:case 5:Zl(t);break;case 4:Ie(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Df(e,t,a):(ba(t),e=It(e,t,a),e!==null?e.sibling:null);ba(t);break;case 19:var s=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(bl(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)return Uf(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),k(Ue,Ue.current),l)break;return null;case 22:return t.lanes=0,Af(e,t,a,t.pendingProps);case 24:ga(t,He,e.memoizedState.cache)}return It(e,t,a)}function Lf(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)qe=!0;else{if(!Fr(e,a)&&(t.flags&128)===0)return qe=!1,_h(e,t,a);qe=(e.flags&131072)!==0}else qe=!1,me&&(t.flags&1048576)!==0&&mo(t,rn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ja(t.elementType),t.type=e,typeof e=="function")ar(e)?(l=Ia(e,l),t.tag=1,t=_f(null,t,e,l,a)):(t.tag=0,t=Vr(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===re){t.tag=11,t=Ef(null,t,e,l,a);break e}else if(s===U){t.tag=14,t=Tf(null,t,e,l,a);break e}}throw t=Qt(e)||e,Error(u(306,t,""))}}return t;case 0:return Vr(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,s=Ia(l,t.pendingProps),_f(e,t,l,s,a);case 3:e:{if(Ie(t,t.stateNode.containerInfo),e===null)throw Error(u(387));l=t.pendingProps;var i=t.memoizedState;s=i.element,yr(e,t),xn(t,l,null,a);var f=t.memoizedState;if(l=f.cache,ga(t,He,l),l!==i.cache&&fr(t,[He],a,!0),hn(),l=f.element,i.isDehydrated)if(i={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Of(e,t,l,a);break e}else if(l!==s){s=Et(Error(u(424)),t),un(s),t=Of(e,t,l,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Me=zt(e.firstChild),Ke=t,me=!0,ha=null,At=!0,a=Co(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Za(),l===s){t=It(e,t,a);break e}We(e,t,l,a)}t=t.child}return t;case 26:return ws(e,t),e===null?(a=$d(t.type,null,t.pendingProps,null))?t.memoizedState=a:me||(a=t.type,e=t.pendingProps,l=Fs(ue.current).createElement(a),l[$e]=t,l[at]=e,Fe(l,a,e),Ve(l),t.stateNode=l):t.memoizedState=$d(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Zl(t),e===null&&me&&(l=t.stateNode=Vd(t.type,t.pendingProps,ue.current),Ke=t,At=!0,s=Me,za(t.type)?(Ru=s,Me=zt(l.firstChild)):Me=s),We(e,t,t.pendingProps.children,a),ws(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((s=l=Me)&&(l=rx(l,t.type,t.pendingProps,At),l!==null?(t.stateNode=l,Ke=t,Me=zt(l.firstChild),At=!1,s=!0):s=!1),s||xa(t)),Zl(t),s=t.type,i=t.pendingProps,f=e!==null?e.memoizedProps:null,l=i.children,Tu(s,i)?l=null:f!==null&&Tu(s,f)&&(t.flags|=32),t.memoizedState!==null&&(s=Er(e,t,Nh,null,null,a),Un._currentValue=s),ws(e,t),We(e,t,l,a),t.child;case 6:return e===null&&me&&((e=a=Me)&&(a=ux(a,t.pendingProps,At),a!==null?(t.stateNode=a,Ke=t,Me=null,e=!0):e=!1),e||xa(t)),null;case 13:return Df(e,t,a);case 4:return Ie(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Fa(t,null,l,a):We(e,t,l,a),t.child;case 11:return Ef(e,t,t.type,t.pendingProps,a);case 7:return We(e,t,t.pendingProps,a),t.child;case 8:return We(e,t,t.pendingProps.children,a),t.child;case 12:return We(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,ga(t,t.type,l.value),We(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,$a(t),s=Je(s),l=l(s),t.flags|=1,We(e,t,l,a),t.child;case 14:return Tf(e,t,t.type,t.pendingProps,a);case 15:return Cf(e,t,t.type,t.pendingProps,a);case 19:return Uf(e,t,a);case 31:return Rh(e,t,a);case 22:return Af(e,t,a,t.pendingProps);case 24:return $a(t),l=Je(He),e===null?(s=hr(),s===null&&(s=Ce,i=dr(),s.pooledCache=i,i.refCount++,i!==null&&(s.pooledCacheLanes|=a),s=i),t.memoizedState={parent:l,cache:s},gr(t),ga(t,He,s)):((e.lanes&a)!==0&&(yr(e,t),xn(t,null,null,a),hn()),s=e.memoizedState,i=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),ga(t,He,l)):(l=i.cache,ga(t,He,l),l!==s.cache&&fr(t,[He],a,!0))),We(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function ea(e){e.flags|=4}function Pr(e,t,a,l,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(cd())e.flags|=8192;else throw Wa=vs,xr}else e.flags&=-16777217}function Hf(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Pd(t))if(cd())e.flags|=8192;else throw Wa=vs,xr}function Ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?hc():536870912,e.lanes|=t,Ol|=t)}function jn(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Oh(e,t,a){var l=t.pendingProps;switch(ir(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(He),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(vl(t)?ea(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ur())),ze(t),null;case 26:var s=t.type,i=t.memoizedState;return e===null?(ea(t),i!==null?(ze(t),Hf(t,i)):(ze(t),Pr(t,s,null,l,a))):i?i!==e.memoizedState?(ea(t),ze(t),Hf(t,i)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ea(t),ze(t),Pr(t,s,e,l,a)),null;case 27:if($n(t),a=ue.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ea(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return ze(t),null}e=J.current,vl(t)?xo(t):(e=Vd(s,l,a),t.stateNode=e,ea(t))}return ze(t),null;case 5:if($n(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ea(t);else{if(!l){if(t.stateNode===null)throw Error(u(166));return ze(t),null}if(i=J.current,vl(t))xo(t);else{var f=Fs(ue.current);switch(i){case 1:i=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:i=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":i=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":i=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":i=f.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?i.multiple=!0:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}i[$e]=t,i[at]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)i.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=i;e:switch(Fe(i,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ea(t)}}return ze(t),Pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ea(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,vl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=Ke,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[$e]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Dd(e.nodeValue,a)),e||xa(t,!0)}else e=Fs(e).createTextNode(l),e[$e]=t,t.stateNode=e}return ze(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=vl(t),a!==null){if(e===null){if(!l)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[$e]=t}else Za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else a=ur(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(xt(t),t):(xt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return ze(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=vl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(u(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(u(317));s[$e]=t}else Za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),s=!1}else s=ur(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(xt(t),t):(xt(t),null)}return xt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==s&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Ls(t,t.updateQueue),ze(t),null);case 4:return we(),e===null&&bu(t.stateNode.containerInfo),ze(t),null;case 10:return Wt(t.type),ze(t),null;case 19:if(Y(Ue),l=t.memoizedState,l===null)return ze(t),null;if(s=(t.flags&128)!==0,i=l.rendering,i===null)if(s)jn(l,!1);else{if(De!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ss(e),i!==null){for(t.flags|=128,jn(l,!1),e=i.updateQueue,t.updateQueue=e,Ls(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)co(a,e),a=a.sibling;return k(Ue,Ue.current&1|2),me&&Kt(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ct()>Gs&&(t.flags|=128,s=!0,jn(l,!1),t.lanes=4194304)}else{if(!s)if(e=Ss(i),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Ls(t,e),jn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!me)return ze(t),null}else 2*ct()-l.renderingStartTime>Gs&&a!==536870912&&(t.flags|=128,s=!0,jn(l,!1),t.lanes=4194304);l.isBackwards?(i.sibling=t.child,t.child=i):(e=l.last,e!==null?e.sibling=i:t.child=i,l.last=i)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ct(),e.sibling=null,a=Ue.current,k(Ue,s?a&1|2:a&1),me&&Kt(t,l.treeForkCount),e):(ze(t),null);case 22:case 23:return xt(t),jr(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),a=t.updateQueue,a!==null&&Ls(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Y(Ka),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(He),ze(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Dh(e,t){switch(ir(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(He),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return $n(t),null;case 31:if(t.memoizedState!==null){if(xt(t),t.alternate===null)throw Error(u(340));Za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));Za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ue),null;case 4:return we(),null;case 10:return Wt(t.type),null;case 22:case 23:return xt(t),jr(),e!==null&&Y(Ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(He),null;case 25:return null;default:return null}}function Bf(e,t){switch(ir(t),t.tag){case 3:Wt(He),we();break;case 26:case 27:case 5:$n(t);break;case 4:we();break;case 31:t.memoizedState!==null&&xt(t);break;case 13:xt(t);break;case 19:Y(Ue);break;case 10:Wt(t.type);break;case 22:case 23:xt(t),jr(),e!==null&&Y(Ka);break;case 24:Wt(He)}}function Nn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var i=a.create,f=a.inst;l=i(),f.destroy=l}a=a.next}while(a!==s)}}catch(m){be(t,t.return,m)}}function Na(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var i=s.next;l=i;do{if((l.tag&e)===e){var f=l.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,s=t;var v=a,M=m;try{M()}catch(D){be(s,v,D)}}}l=l.next}while(l!==i)}}catch(D){be(t,t.return,D)}}function qf(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Mo(t,a)}catch(l){be(e,e.return,l)}}}function Yf(e,t,a){a.props=Ia(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){be(e,t,l)}}function Sn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){be(e,t,s)}}function qt(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(s){be(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){be(e,t,s)}else a.current=null}function Gf(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){be(e,e.return,s)}}function Ir(e,t,a){try{var l=e.stateNode;tx(l,e.type,a,t),l[at]=t}catch(s){be(e,e.return,s)}}function Xf(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Xf(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&&za(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 tu(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Zt));else if(l!==4&&(l===27&&za(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(tu(e,t,a),e=e.sibling;e!==null;)tu(e,t,a),e=e.sibling}function Hs(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&za(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hs(e,t,a),e=e.sibling;e!==null;)Hs(e,t,a),e=e.sibling}function Qf(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Fe(t,l,a),t[$e]=e,t[at]=a}catch(i){be(e,e.return,i)}}var ta=!1,Ye=!1,au=!1,Vf=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function wh(e,t){if(e=e.containerInfo,Su=ni,e=eo(e),Ji(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{a.nodeType,i.nodeType}catch{a=null;break e}var f=0,m=-1,v=-1,M=0,D=0,q=e,R=null;t:for(;;){for(var _;q!==a||s!==0&&q.nodeType!==3||(m=f+s),q!==i||l!==0&&q.nodeType!==3||(v=f+l),q.nodeType===3&&(f+=q.nodeValue.length),(_=q.firstChild)!==null;)R=q,q=_;for(;;){if(q===e)break t;if(R===a&&++M===s&&(m=f),R===i&&++D===l&&(v=f),(_=q.nextSibling)!==null)break;q=R,R=q.parentNode}q=_}a=m===-1||v===-1?null:{start:m,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Eu={focusedElem:e,selectionRange:a},ni=!1,Ze=t;Ze!==null;)if(t=Ze,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ze=e;else for(;Ze!==null;){switch(t=Ze,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,a=t,s=i.memoizedProps,i=i.memoizedState,l=a.stateNode;try{var K=Ia(a.type,s);e=l.getSnapshotBeforeUpdate(K,i),l.__reactInternalSnapshotBeforeUpdate=e}catch(I){be(a,a.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Au(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Au(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(u(163))}if(e=t.sibling,e!==null){e.return=t.return,Ze=e;break}Ze=t.return}}function Zf(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:la(e,a),l&4&&Nn(5,a);break;case 1:if(la(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){be(a,a.return,f)}else{var s=Ia(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){be(a,a.return,f)}}l&64&&qf(a),l&512&&Sn(a,a.return);break;case 3:if(la(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Mo(e,t)}catch(f){be(a,a.return,f)}}break;case 27:t===null&&l&4&&Qf(a);case 26:case 5:la(e,a),t===null&&l&4&&Gf(a),l&512&&Sn(a,a.return);break;case 12:la(e,a);break;case 31:la(e,a),l&4&&Kf(e,a);break;case 13:la(e,a),l&4&&Jf(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Qh.bind(null,a),cx(e,a))));break;case 22:if(l=a.memoizedState!==null||ta,!l){t=t!==null&&t.memoizedState!==null||Ye,s=ta;var i=Ye;ta=l,(Ye=t)&&!i?na(e,a,(a.subtreeFlags&8772)!==0):la(e,a),ta=s,Ye=i}break;case 30:break;default:la(e,a)}}function kf(e){var t=e.alternate;t!==null&&(e.alternate=null,kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Oi(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 Re=null,nt=!1;function aa(e,t,a){for(a=a.child;a!==null;)$f(e,t,a),a=a.sibling}function $f(e,t,a){if(ot&&typeof ot.onCommitFiberUnmount=="function")try{ot.onCommitFiberUnmount(kl,a)}catch{}switch(a.tag){case 26:Ye||qt(a,t),aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ye||qt(a,t);var l=Re,s=nt;za(a.type)&&(Re=a.stateNode,nt=!1),aa(e,t,a),On(a.stateNode),Re=l,nt=s;break;case 5:Ye||qt(a,t);case 6:if(l=Re,s=nt,Re=null,aa(e,t,a),Re=l,nt=s,Re!==null)if(nt)try{(Re.nodeType===9?Re.body:Re.nodeName==="HTML"?Re.ownerDocument.body:Re).removeChild(a.stateNode)}catch(i){be(a,t,i)}else try{Re.removeChild(a.stateNode)}catch(i){be(a,t,i)}break;case 18:Re!==null&&(nt?(e=Re,qd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Yl(e)):qd(Re,a.stateNode));break;case 4:l=Re,s=nt,Re=a.stateNode.containerInfo,nt=!0,aa(e,t,a),Re=l,nt=s;break;case 0:case 11:case 14:case 15:Na(2,a,t),Ye||Na(4,a,t),aa(e,t,a);break;case 1:Ye||(qt(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Yf(a,t,l)),aa(e,t,a);break;case 21:aa(e,t,a);break;case 22:Ye=(l=Ye)||a.memoizedState!==null,aa(e,t,a),Ye=l;break;default:aa(e,t,a)}}function Kf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Yl(e)}catch(a){be(t,t.return,a)}}}function Jf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Yl(e)}catch(a){be(t,t.return,a)}}function Uh(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Vf),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Vf),t;default:throw Error(u(435,e.tag))}}function Bs(e,t){var a=Uh(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=Vh.bind(null,e,l);l.then(s,s)}})}function st(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],i=e,f=t,m=f;e:for(;m!==null;){switch(m.tag){case 27:if(za(m.type)){Re=m.stateNode,nt=!1;break e}break;case 5:Re=m.stateNode,nt=!1;break e;case 3:case 4:Re=m.stateNode.containerInfo,nt=!0;break e}m=m.return}if(Re===null)throw Error(u(160));$f(i,f,s),Re=null,nt=!1,i=s.alternate,i!==null&&(i.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Wf(t,e),t=t.sibling}var wt=null;function Wf(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:st(t,e),it(e),l&4&&(Na(3,e,e.return),Nn(3,e),Na(5,e,e.return));break;case 1:st(t,e),it(e),l&512&&(Ye||a===null||qt(a,a.return)),l&64&&ta&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=wt;if(st(t,e),it(e),l&512&&(Ye||a===null||qt(a,a.return)),l&4){var i=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":i=s.getElementsByTagName("title")[0],(!i||i[Jl]||i[$e]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=s.createElement(l),s.head.insertBefore(i,s.querySelector("head > title"))),Fe(i,l,a),i[$e]=e,Ve(i),l=i;break e;case"link":var f=Wd("link","href",s).get(l+(a.href||""));if(f){for(var m=0;m<f.length;m++)if(i=f[m],i.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&i.getAttribute("rel")===(a.rel==null?null:a.rel)&&i.getAttribute("title")===(a.title==null?null:a.title)&&i.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(m,1);break t}}i=s.createElement(l),Fe(i,l,a),s.head.appendChild(i);break;case"meta":if(f=Wd("meta","content",s).get(l+(a.content||""))){for(m=0;m<f.length;m++)if(i=f[m],i.getAttribute("content")===(a.content==null?null:""+a.content)&&i.getAttribute("name")===(a.name==null?null:a.name)&&i.getAttribute("property")===(a.property==null?null:a.property)&&i.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&i.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(m,1);break t}}i=s.createElement(l),Fe(i,l,a),s.head.appendChild(i);break;default:throw Error(u(468,l))}i[$e]=e,Ve(i),l=i}e.stateNode=l}else Fd(s,e.type,e.stateNode);else e.stateNode=Jd(s,l,e.memoizedProps);else i!==l?(i===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):i.count--,l===null?Fd(s,e.type,e.stateNode):Jd(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ir(e,e.memoizedProps,a.memoizedProps)}break;case 27:st(t,e),it(e),l&512&&(Ye||a===null||qt(a,a.return)),a!==null&&l&4&&Ir(e,e.memoizedProps,a.memoizedProps);break;case 5:if(st(t,e),it(e),l&512&&(Ye||a===null||qt(a,a.return)),e.flags&32){s=e.stateNode;try{cl(s,"")}catch(K){be(e,e.return,K)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Ir(e,s,a!==null?a.memoizedProps:s)),l&1024&&(au=!0);break;case 6:if(st(t,e),it(e),l&4){if(e.stateNode===null)throw Error(u(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(K){be(e,e.return,K)}}break;case 3:if(ei=null,s=wt,wt=Ps(t.containerInfo),st(t,e),wt=s,it(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{Yl(t.containerInfo)}catch(K){be(e,e.return,K)}au&&(au=!1,Ff(e));break;case 4:l=wt,wt=Ps(e.stateNode.containerInfo),st(t,e),it(e),wt=l;break;case 12:st(t,e),it(e);break;case 31:st(t,e),it(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bs(e,l)));break;case 13:st(t,e),it(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ys=ct()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bs(e,l)));break;case 22:s=e.memoizedState!==null;var v=a!==null&&a.memoizedState!==null,M=ta,D=Ye;if(ta=M||s,Ye=D||v,st(t,e),Ye=D,ta=M,it(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||v||ta||Ye||el(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){v=a=t;try{if(i=v.stateNode,s)f=i.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=v.stateNode;var q=v.memoizedProps.style,R=q!=null&&q.hasOwnProperty("display")?q.display:null;m.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(K){be(v,v.return,K)}}}else if(t.tag===6){if(a===null){v=t;try{v.stateNode.nodeValue=s?"":v.memoizedProps}catch(K){be(v,v.return,K)}}}else if(t.tag===18){if(a===null){v=t;try{var _=v.stateNode;s?Yd(_,!0):Yd(v.stateNode,!1)}catch(K){be(v,v.return,K)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Bs(e,a))));break;case 19:st(t,e),it(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Bs(e,l)));break;case 30:break;case 21:break;default:st(t,e),it(e)}}function it(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Xf(l)){a=l;break}l=l.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var s=a.stateNode,i=eu(e);Hs(e,i,s);break;case 5:var f=a.stateNode;a.flags&32&&(cl(f,""),a.flags&=-33);var m=eu(e);Hs(e,m,f);break;case 3:case 4:var v=a.stateNode.containerInfo,M=eu(e);tu(e,M,v);break;default:throw Error(u(161))}}catch(D){be(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Ff(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Ff(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function la(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zf(e,t.alternate,t),t=t.sibling}function el(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),el(t);break;case 1:qt(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Yf(t,t.return,a),el(t);break;case 27:On(t.stateNode);case 26:case 5:qt(t,t.return),el(t);break;case 22:t.memoizedState===null&&el(t);break;case 30:el(t);break;default:el(t)}e=e.sibling}}function na(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,i=t,f=i.flags;switch(i.tag){case 0:case 11:case 15:na(s,i,a),Nn(4,i);break;case 1:if(na(s,i,a),l=i,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){be(l,l.return,M)}if(l=i,s=l.updateQueue,s!==null){var m=l.stateNode;try{var v=s.shared.hiddenCallbacks;if(v!==null)for(s.shared.hiddenCallbacks=null,s=0;s<v.length;s++)Ao(v[s],m)}catch(M){be(l,l.return,M)}}a&&f&64&&qf(i),Sn(i,i.return);break;case 27:Qf(i);case 26:case 5:na(s,i,a),a&&l===null&&f&4&&Gf(i),Sn(i,i.return);break;case 12:na(s,i,a);break;case 31:na(s,i,a),a&&f&4&&Kf(s,i);break;case 13:na(s,i,a),a&&f&4&&Jf(s,i);break;case 22:i.memoizedState===null&&na(s,i,a),Sn(i,i.return);break;case 30:break;default:na(s,i,a)}t=t.sibling}}function lu(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&cn(a))}function nu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cn(e))}function Ut(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Pf(e,t,a,l),t=t.sibling}function Pf(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Ut(e,t,a,l),s&2048&&Nn(9,t);break;case 1:Ut(e,t,a,l);break;case 3:Ut(e,t,a,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&cn(e)));break;case 12:if(s&2048){Ut(e,t,a,l),e=t.stateNode;try{var i=t.memoizedProps,f=i.id,m=i.onPostCommit;typeof m=="function"&&m(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(v){be(t,t.return,v)}}else Ut(e,t,a,l);break;case 31:Ut(e,t,a,l);break;case 13:Ut(e,t,a,l);break;case 23:break;case 22:i=t.stateNode,f=t.alternate,t.memoizedState!==null?i._visibility&2?Ut(e,t,a,l):En(e,t):i._visibility&2?Ut(e,t,a,l):(i._visibility|=2,zl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&lu(f,t);break;case 24:Ut(e,t,a,l),s&2048&&nu(t.alternate,t);break;default:Ut(e,t,a,l)}}function zl(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,f=t,m=a,v=l,M=f.flags;switch(f.tag){case 0:case 11:case 15:zl(i,f,m,v,s),Nn(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?zl(i,f,m,v,s):En(i,f):(D._visibility|=2,zl(i,f,m,v,s)),s&&M&2048&&lu(f.alternate,f);break;case 24:zl(i,f,m,v,s),s&&M&2048&&nu(f.alternate,f);break;default:zl(i,f,m,v,s)}t=t.sibling}}function En(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,s=l.flags;switch(l.tag){case 22:En(a,l),s&2048&&lu(l.alternate,l);break;case 24:En(a,l),s&2048&&nu(l.alternate,l);break;default:En(a,l)}t=t.sibling}}var Tn=8192;function Rl(e,t,a){if(e.subtreeFlags&Tn)for(e=e.child;e!==null;)If(e,t,a),e=e.sibling}function If(e,t,a){switch(e.tag){case 26:Rl(e,t,a),e.flags&Tn&&e.memoizedState!==null&&jx(a,wt,e.memoizedState,e.memoizedProps);break;case 5:Rl(e,t,a);break;case 3:case 4:var l=wt;wt=Ps(e.stateNode.containerInfo),Rl(e,t,a),wt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=Tn,Tn=16777216,Rl(e,t,a),Tn=l):Rl(e,t,a));break;default:Rl(e,t,a)}}function ed(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 Cn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ze=l,ad(l,e)}ed(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)td(e),e=e.sibling}function td(e){switch(e.tag){case 0:case 11:case 15:Cn(e),e.flags&2048&&Na(9,e,e.return);break;case 3:Cn(e);break;case 12:Cn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qs(e)):Cn(e);break;default:Cn(e)}}function qs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Ze=l,ad(l,e)}ed(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Na(8,t,t.return),qs(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,qs(t));break;default:qs(t)}e=e.sibling}}function ad(e,t){for(;Ze!==null;){var a=Ze;switch(a.tag){case 0:case 11:case 15:Na(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:cn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Ze=l;else e:for(a=e;Ze!==null;){l=Ze;var s=l.sibling,i=l.return;if(kf(l),l===a){Ze=null;break e}if(s!==null){s.return=i,Ze=s;break e}Ze=i}}}var Lh={getCacheForType:function(e){var t=Je(He),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Je(He).controller.signal}},Hh=typeof WeakMap=="function"?WeakMap:Map,ye=0,Ce=null,ce=null,fe=0,ve=0,gt=null,Sa=!1,_l=!1,su=!1,sa=0,De=0,Ea=0,tl=0,iu=0,yt=0,Ol=0,An=null,rt=null,ru=!1,Ys=0,ld=0,Gs=1/0,Xs=null,Ta=null,Xe=0,Ca=null,Dl=null,ia=0,uu=0,cu=null,nd=null,Mn=0,ou=null;function pt(){return(ye&2)!==0&&fe!==0?fe&-fe:w.T!==null?gu():pc()}function sd(){if(yt===0)if((fe&536870912)===0||me){var e=Wn;Wn<<=1,(Wn&3932160)===0&&(Wn=262144),yt=e}else yt=536870912;return e=ht.current,e!==null&&(e.flags|=32),yt}function ut(e,t,a){(e===Ce&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(wl(e,0),Aa(e,fe,yt,!1)),Kl(e,a),((ye&2)===0||e!==Ce)&&(e===Ce&&((ye&2)===0&&(tl|=a),De===4&&Aa(e,fe,yt,!1)),Yt(e))}function id(e,t,a){if((ye&6)!==0)throw Error(u(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||$l(e,t),s=l?Yh(e,t):du(e,t,!0),i=l;do{if(s===0){_l&&!l&&Aa(e,t,0,!1);break}else{if(a=e.current.alternate,i&&!Bh(a)){s=du(e,t,!1),i=!1;continue}if(s===2){if(i=t,e.errorRecoveryDisabledLanes&i)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var m=e;s=An;var v=m.current.memoizedState.isDehydrated;if(v&&(wl(m,f).flags|=256),f=du(m,f,!1),f!==2){if(su&&!v){m.errorRecoveryDisabledLanes|=i,tl|=i,s=4;break e}i=rt,rt=s,i!==null&&(rt===null?rt=i:rt.push.apply(rt,i))}s=f}if(i=!1,s!==2)continue}}if(s===1){wl(e,0),Aa(e,t,0,!0);break}e:{switch(l=e,i=s,i){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Aa(l,t,yt,!Sa);break e;case 2:rt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(s=Ys+300-ct(),10<s)){if(Aa(l,t,yt,!Sa),Pn(l,0,!0)!==0)break e;ia=t,l.timeoutHandle=Hd(rd.bind(null,l,a,rt,Xs,ru,t,yt,tl,Ol,Sa,i,"Throttled",-0,0),s);break e}rd(l,a,rt,Xs,ru,t,yt,tl,Ol,Sa,i,null,-0,0)}}break}while(!0);Yt(e)}function rd(e,t,a,l,s,i,f,m,v,M,D,q,R,_){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},If(t,i,q);var K=(i&62914560)===i?Ys-ct():(i&4194048)===i?ld-ct():0;if(K=Nx(q,K),K!==null){ia=i,e.cancelPendingCommit=K(xd.bind(null,e,t,i,a,l,s,f,m,v,D,q,null,R,_)),Aa(e,i,f,!M);return}}xd(e,t,i,a,l,s,f,m,v)}function Bh(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var s=a[l],i=s.getSnapshot;s=s.value;try{if(!dt(i(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Aa(e,t,a,l){t&=~iu,t&=~tl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var i=31-ft(s),f=1<<i;l[i]=-1,s&=~f}a!==0&&xc(e,a,t)}function Qs(){return(ye&6)===0?(zn(0),!1):!0}function fu(){if(ce!==null){if(ve===0)var e=ce.return;else e=ce,Jt=ka=null,Ar(e),El=null,fn=0,e=ce;for(;e!==null;)Bf(e.alternate,e),e=e.return;ce=null}}function wl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,nx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ia=0,fu(),Ce=e,ce=a=$t(e.current,null),fe=t,ve=0,gt=null,Sa=!1,_l=$l(e,t),su=!1,Ol=yt=iu=tl=Ea=De=0,rt=An=null,ru=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-ft(l),i=1<<s;t|=e[s],l&=~i}return sa=t,os(),a}function ud(e,t){se=null,w.H=vn,t===Sl||t===ps?(t=So(),ve=3):t===xr?(t=So(),ve=4):ve=t===Qr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gt=t,ce===null&&(De=1,Os(e,Et(t,e.current)))}function cd(){var e=ht.current;return e===null?!0:(fe&4194048)===fe?Mt===null:(fe&62914560)===fe||(fe&536870912)!==0?e===Mt:!1}function od(){var e=w.H;return w.H=vn,e===null?vn:e}function fd(){var e=w.A;return w.A=Lh,e}function Vs(){De=4,Sa||(fe&4194048)!==fe&&ht.current!==null||(_l=!0),(Ea&134217727)===0&&(tl&134217727)===0||Ce===null||Aa(Ce,fe,yt,!1)}function du(e,t,a){var l=ye;ye|=2;var s=od(),i=fd();(Ce!==e||fe!==t)&&(Xs=null,wl(e,t)),t=!1;var f=De;e:do try{if(ve!==0&&ce!==null){var m=ce,v=gt;switch(ve){case 8:fu(),f=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var M=ve;if(ve=0,gt=null,Ul(e,m,v,M),a&&_l){f=0;break e}break;default:M=ve,ve=0,gt=null,Ul(e,m,v,M)}}qh(),f=De;break}catch(D){ud(e,D)}while(!0);return t&&e.shellSuspendCounter++,Jt=ka=null,ye=l,w.H=s,w.A=i,ce===null&&(Ce=null,fe=0,os()),f}function qh(){for(;ce!==null;)dd(ce)}function Yh(e,t){var a=ye;ye|=2;var l=od(),s=fd();Ce!==e||fe!==t?(Xs=null,Gs=ct()+500,wl(e,t)):_l=$l(e,t);e:do try{if(ve!==0&&ce!==null){t=ce;var i=gt;t:switch(ve){case 1:ve=0,gt=null,Ul(e,t,i,1);break;case 2:case 9:if(jo(i)){ve=0,gt=null,md(t);break}t=function(){ve!==2&&ve!==9||Ce!==e||(ve=7),Yt(e)},i.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:jo(i)?(ve=0,gt=null,md(t)):(ve=0,gt=null,Ul(e,t,i,7));break;case 5:var f=null;switch(ce.tag){case 26:f=ce.memoizedState;case 5:case 27:var m=ce;if(f?Pd(f):m.stateNode.complete){ve=0,gt=null;var v=m.sibling;if(v!==null)ce=v;else{var M=m.return;M!==null?(ce=M,Zs(M)):ce=null}break t}}ve=0,gt=null,Ul(e,t,i,5);break;case 6:ve=0,gt=null,Ul(e,t,i,6);break;case 8:fu(),De=6;break e;default:throw Error(u(462))}}Gh();break}catch(D){ud(e,D)}while(!0);return Jt=ka=null,w.H=l,w.A=s,ye=a,ce!==null?0:(Ce=null,fe=0,os(),De)}function Gh(){for(;ce!==null&&!om();)dd(ce)}function dd(e){var t=Lf(e.alternate,e,sa);e.memoizedProps=e.pendingProps,t===null?Zs(e):ce=t}function md(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Rf(a,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=Rf(a,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:Ar(t);default:Bf(a,t),t=ce=co(t,sa),t=Lf(a,t,sa)}e.memoizedProps=e.pendingProps,t===null?Zs(e):ce=t}function Ul(e,t,a,l){Jt=ka=null,Ar(t),El=null,fn=0;var s=t.return;try{if(zh(e,s,t,a,fe)){De=1,Os(e,Et(a,e.current)),ce=null;return}}catch(i){if(s!==null)throw ce=s,i;De=1,Os(e,Et(a,e.current)),ce=null;return}t.flags&32768?(me||l===1?e=!0:_l||(fe&536870912)!==0?e=!1:(Sa=e=!0,(l===2||l===9||l===3||l===6)&&(l=ht.current,l!==null&&l.tag===13&&(l.flags|=16384))),hd(t,e)):Zs(t)}function Zs(e){var t=e;do{if((t.flags&32768)!==0){hd(t,Sa);return}e=t.return;var a=Oh(t.alternate,t,sa);if(a!==null){ce=a;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);De===0&&(De=5)}function hd(e,t){do{var a=Dh(e.alternate,e);if(a!==null){a.flags&=32767,ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=a}while(e!==null);De=6,ce=null}function xd(e,t,a,l,s,i,f,m,v){e.cancelPendingCommit=null;do ks();while(Xe!==0);if((ye&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(i=t.lanes|t.childLanes,i|=er,bm(e,a,i,f,m,v),e===Ce&&(ce=Ce=null,fe=0),Dl=t,Ca=e,ia=a,uu=i,cu=s,nd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Zh(Kn,function(){return bd(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=w.T,w.T=null,s=Z.p,Z.p=2,f=ye,ye|=4;try{wh(e,t,a)}finally{ye=f,Z.p=s,w.T=l}}Xe=1,gd(),yd(),pd()}}function gd(){if(Xe===1){Xe=0;var e=Ca,t=Dl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=w.T,w.T=null;var l=Z.p;Z.p=2;var s=ye;ye|=4;try{Wf(t,e);var i=Eu,f=eo(e.containerInfo),m=i.focusedElem,v=i.selectionRange;if(f!==m&&m&&m.ownerDocument&&Ic(m.ownerDocument.documentElement,m)){if(v!==null&&Ji(m)){var M=v.start,D=v.end;if(D===void 0&&(D=M),"selectionStart"in m)m.selectionStart=M,m.selectionEnd=Math.min(D,m.value.length);else{var q=m.ownerDocument||document,R=q&&q.defaultView||window;if(R.getSelection){var _=R.getSelection(),K=m.textContent.length,I=Math.min(v.start,K),Ee=v.end===void 0?I:Math.min(v.end,K);!_.extend&&I>Ee&&(f=Ee,Ee=I,I=f);var T=Pc(m,I),N=Pc(m,Ee);if(T&&N&&(_.rangeCount!==1||_.anchorNode!==T.node||_.anchorOffset!==T.offset||_.focusNode!==N.node||_.focusOffset!==N.offset)){var A=q.createRange();A.setStart(T.node,T.offset),_.removeAllRanges(),I>Ee?(_.addRange(A),_.extend(N.node,N.offset)):(A.setEnd(N.node,N.offset),_.addRange(A))}}}}for(q=[],_=m;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<q.length;m++){var L=q[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}ni=!!Su,Eu=Su=null}finally{ye=s,Z.p=l,w.T=a}}e.current=t,Xe=2}}function yd(){if(Xe===2){Xe=0;var e=Ca,t=Dl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=w.T,w.T=null;var l=Z.p;Z.p=2;var s=ye;ye|=4;try{Zf(e,t.alternate,t)}finally{ye=s,Z.p=l,w.T=a}}Xe=3}}function pd(){if(Xe===4||Xe===3){Xe=0,fm();var e=Ca,t=Dl,a=ia,l=nd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Xe=5:(Xe=0,Dl=Ca=null,vd(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ta=null),Ri(a),t=t.stateNode,ot&&typeof ot.onCommitFiberRoot=="function")try{ot.onCommitFiberRoot(kl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=w.T,s=Z.p,Z.p=2,w.T=null;try{for(var i=e.onRecoverableError,f=0;f<l.length;f++){var m=l[f];i(m.value,{componentStack:m.stack})}}finally{w.T=t,Z.p=s}}(ia&3)!==0&&ks(),Yt(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===ou?Mn++:(Mn=0,ou=e):Mn=0,zn(0)}}function vd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,cn(t)))}function ks(){return gd(),yd(),pd(),bd()}function bd(){if(Xe!==5)return!1;var e=Ca,t=uu;uu=0;var a=Ri(ia),l=w.T,s=Z.p;try{Z.p=32>a?32:a,w.T=null,a=cu,cu=null;var i=Ca,f=ia;if(Xe=0,Dl=Ca=null,ia=0,(ye&6)!==0)throw Error(u(331));var m=ye;if(ye|=4,td(i.current),Pf(i,i.current,f,a),ye=m,zn(0,!1),ot&&typeof ot.onPostCommitFiberRoot=="function")try{ot.onPostCommitFiberRoot(kl,i)}catch{}return!0}finally{Z.p=s,w.T=l,vd(e,t)}}function jd(e,t,a){t=Et(a,t),t=Xr(e.stateNode,t,2),e=va(e,t,2),e!==null&&(Kl(e,2),Yt(e))}function be(e,t,a){if(e.tag===3)jd(e,e,a);else for(;t!==null;){if(t.tag===3){jd(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ta===null||!Ta.has(l))){e=Et(a,e),a=Nf(2),l=va(t,a,2),l!==null&&(Sf(a,l,t,e),Kl(l,2),Yt(l));break}}t=t.return}}function mu(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Hh;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(su=!0,s.add(a),e=Xh.bind(null,e,t,a),t.then(e,e))}function Xh(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ce===e&&(fe&a)===a&&(De===4||De===3&&(fe&62914560)===fe&&300>ct()-Ys?(ye&2)===0&&wl(e,0):iu|=a,Ol===fe&&(Ol=0)),Yt(e)}function Nd(e,t){t===0&&(t=hc()),e=Qa(e,t),e!==null&&(Kl(e,t),Yt(e))}function Qh(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Nd(e,a)}function Vh(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(u(314))}l!==null&&l.delete(t),Nd(e,a)}function Zh(e,t){return Ci(e,t)}var $s=null,Ll=null,hu=!1,Ks=!1,xu=!1,Ma=0;function Yt(e){e!==Ll&&e.next===null&&(Ll===null?$s=Ll=e:Ll=Ll.next=e),Ks=!0,hu||(hu=!0,$h())}function zn(e,t){if(!xu&&Ks){xu=!0;do for(var a=!1,l=$s;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var i=0;else{var f=l.suspendedLanes,m=l.pingedLanes;i=(1<<31-ft(42|e)+1)-1,i&=s&~(f&~m),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(a=!0,Cd(l,i))}else i=fe,i=Pn(l,l===Ce?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||$l(l,i)||(a=!0,Cd(l,i));l=l.next}while(a);xu=!1}}function kh(){Sd()}function Sd(){Ks=hu=!1;var e=0;Ma!==0&&lx()&&(e=Ma);for(var t=ct(),a=null,l=$s;l!==null;){var s=l.next,i=Ed(l,t);i===0?(l.next=null,a===null?$s=s:a.next=s,s===null&&(Ll=a)):(a=l,(e!==0||(i&3)!==0)&&(Ks=!0)),l=s}Xe!==0&&Xe!==5||zn(e),Ma!==0&&(Ma=0)}function Ed(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var f=31-ft(i),m=1<<f,v=s[f];v===-1?((m&a)===0||(m&l)!==0)&&(s[f]=vm(m,t)):v<=t&&(e.expiredLanes|=m),i&=~m}if(t=Ce,a=fe,a=Pn(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Ai(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||$l(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Ai(l),Ri(a)){case 2:case 8:a=dc;break;case 32:a=Kn;break;case 268435456:a=mc;break;default:a=Kn}return l=Td.bind(null,e),a=Ci(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Ai(l),e.callbackPriority=2,e.callbackNode=null,2}function Td(e,t){if(Xe!==0&&Xe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ks()&&e.callbackNode!==a)return null;var l=fe;return l=Pn(e,e===Ce?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(id(e,l,t),Ed(e,ct()),e.callbackNode!=null&&e.callbackNode===a?Td.bind(null,e):null)}function Cd(e,t){if(ks())return null;id(e,t,!0)}function $h(){sx(function(){(ye&6)!==0?Ci(fc,kh):Sd()})}function gu(){if(Ma===0){var e=jl;e===0&&(e=Jn,Jn<<=1,(Jn&261888)===0&&(Jn=256)),Ma=e}return Ma}function Ad(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:as(""+e)}function Md(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Kh(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var i=Ad((s[at]||null).action),f=l.submitter;f&&(t=(t=f[at]||null)?Ad(t.formAction):f.getAttribute("formAction"),t!==null&&(i=t,f=null));var m=new is("action","action",null,l,s);e.push({event:m,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ma!==0){var v=f?Md(s,f):new FormData(s);Lr(a,{pending:!0,data:v,method:s.method,action:i},null,v)}}else typeof i=="function"&&(m.preventDefault(),v=f?Md(s,f):new FormData(s),Lr(a,{pending:!0,data:v,method:s.method,action:i},i,v))},currentTarget:s}]})}}for(var yu=0;yu<Ii.length;yu++){var pu=Ii[yu],Jh=pu.toLowerCase(),Wh=pu[0].toUpperCase()+pu.slice(1);Dt(Jh,"on"+Wh)}Dt(lo,"onAnimationEnd"),Dt(no,"onAnimationIteration"),Dt(so,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(dh,"onTransitionRun"),Dt(mh,"onTransitionStart"),Dt(hh,"onTransitionCancel"),Dt(io,"onTransitionEnd"),rl("onMouseEnter",["mouseout","mouseover"]),rl("onMouseLeave",["mouseout","mouseover"]),rl("onPointerEnter",["pointerout","pointerover"]),rl("onPointerLeave",["pointerout","pointerover"]),qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qa("onBeforeInput",["compositionend","keypress","textInput","paste"]),qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="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(" "),Fh=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rn));function zd(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],s=l.event;l=l.listeners;e:{var i=void 0;if(t)for(var f=l.length-1;0<=f;f--){var m=l[f],v=m.instance,M=m.currentTarget;if(m=m.listener,v!==i&&s.isPropagationStopped())break e;i=m,s.currentTarget=M;try{i(s)}catch(D){cs(D)}s.currentTarget=null,i=v}else for(f=0;f<l.length;f++){if(m=l[f],v=m.instance,M=m.currentTarget,m=m.listener,v!==i&&s.isPropagationStopped())break e;i=m,s.currentTarget=M;try{i(s)}catch(D){cs(D)}s.currentTarget=null,i=v}}}}function oe(e,t){var a=t[_i];a===void 0&&(a=t[_i]=new Set);var l=e+"__bubble";a.has(l)||(Rd(t,e,2,!1),a.add(l))}function vu(e,t,a){var l=0;t&&(l|=4),Rd(a,e,l,t)}var Js="_reactListening"+Math.random().toString(36).slice(2);function bu(e){if(!e[Js]){e[Js]=!0,jc.forEach(function(a){a!=="selectionchange"&&(Fh.has(a)||vu(a,!1,e),vu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Js]||(t[Js]=!0,vu("selectionchange",!1,t))}}function Rd(e,t,a,l){switch(s0(t)){case 2:var s=Tx;break;case 8:s=Cx;break;default:s=Uu}a=s.bind(null,t,a,e),s=void 0,!Yi||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function ju(e,t,a,l,s){var i=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var m=l.stateNode.containerInfo;if(m===s)break;if(f===4)for(f=l.return;f!==null;){var v=f.tag;if((v===3||v===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;m!==null;){if(f=nl(m),f===null)return;if(v=f.tag,v===5||v===6||v===26||v===27){l=i=f;continue e}m=m.parentNode}}l=l.return}Dc(function(){var M=i,D=Bi(a),q=[];e:{var R=ro.get(e);if(R!==void 0){var _=is,K=e;switch(e){case"keypress":if(ns(a)===0)break e;case"keydown":case"keyup":_=Vm;break;case"focusin":K="focus",_=Vi;break;case"focusout":K="blur",_=Vi;break;case"beforeblur":case"afterblur":_=Vi;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=Lc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Om;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=$m;break;case lo:case no:case so:_=Um;break;case io:_=Jm;break;case"scroll":case"scrollend":_=Rm;break;case"wheel":_=Fm;break;case"copy":case"cut":case"paste":_=Hm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=Bc;break;case"toggle":case"beforetoggle":_=Im}var I=(t&4)!==0,Ee=!I&&(e==="scroll"||e==="scrollend"),T=I?R!==null?R+"Capture":null:R;I=[];for(var N=M,A;N!==null;){var L=N;if(A=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||A===null||T===null||(L=Fl(N,T),L!=null&&I.push(_n(N,L,A))),Ee)break;N=N.return}0<I.length&&(R=new _(R,K,null,a,D),q.push({event:R,listeners:I}))}}if((t&7)===0){e:{if(R=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",R&&a!==Hi&&(K=a.relatedTarget||a.fromElement)&&(nl(K)||K[ll]))break e;if((_||R)&&(R=D.window===D?D:(R=D.ownerDocument)?R.defaultView||R.parentWindow:window,_?(K=a.relatedTarget||a.toElement,_=M,K=K?nl(K):null,K!==null&&(Ee=h(K),I=K.tag,K!==Ee||I!==5&&I!==27&&I!==6)&&(K=null)):(_=null,K=M),_!==K)){if(I=Lc,L="onMouseLeave",T="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(I=Bc,L="onPointerLeave",T="onPointerEnter",N="pointer"),Ee=_==null?R:Wl(_),A=K==null?R:Wl(K),R=new I(L,N+"leave",_,a,D),R.target=Ee,R.relatedTarget=A,L=null,nl(D)===M&&(I=new I(T,N+"enter",K,a,D),I.target=A,I.relatedTarget=Ee,L=I),Ee=L,_&&K)t:{for(I=Ph,T=_,N=K,A=0,L=T;L;L=I(L))A++;L=0;for(var P=N;P;P=I(P))L++;for(;0<A-L;)T=I(T),A--;for(;0<L-A;)N=I(N),L--;for(;A--;){if(T===N||N!==null&&T===N.alternate){I=T;break t}T=I(T),N=I(N)}I=null}else I=null;_!==null&&_d(q,R,_,I,!1),K!==null&&Ee!==null&&_d(q,Ee,K,I,!0)}}e:{if(R=M?Wl(M):window,_=R.nodeName&&R.nodeName.toLowerCase(),_==="select"||_==="input"&&R.type==="file")var xe=kc;else if(Vc(R))if($c)xe=ch;else{xe=rh;var W=ih}else _=R.nodeName,!_||_.toLowerCase()!=="input"||R.type!=="checkbox"&&R.type!=="radio"?M&&Li(M.elementType)&&(xe=kc):xe=uh;if(xe&&(xe=xe(e,M))){Zc(q,xe,a,D);break e}W&&W(e,R,M),e==="focusout"&&M&&R.type==="number"&&M.memoizedProps.value!=null&&Ui(R,"number",R.value)}switch(W=M?Wl(M):window,e){case"focusin":(Vc(W)||W.contentEditable==="true")&&(ml=W,Wi=M,sn=null);break;case"focusout":sn=Wi=ml=null;break;case"mousedown":Fi=!0;break;case"contextmenu":case"mouseup":case"dragend":Fi=!1,to(q,a,D);break;case"selectionchange":if(fh)break;case"keydown":case"keyup":to(q,a,D)}var ie;if(ki)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else dl?Xc(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(qc&&a.locale!=="ko"&&(dl||de!=="onCompositionStart"?de==="onCompositionEnd"&&dl&&(ie=wc()):(da=D,Gi="value"in da?da.value:da.textContent,dl=!0)),W=Ws(M,de),0<W.length&&(de=new Hc(de,e,null,a,D),q.push({event:de,listeners:W}),ie?de.data=ie:(ie=Qc(a),ie!==null&&(de.data=ie)))),(ie=th?ah(e,a):lh(e,a))&&(de=Ws(M,"onBeforeInput"),0<de.length&&(W=new Hc("onBeforeInput","beforeinput",null,a,D),q.push({event:W,listeners:de}),W.data=ie)),Kh(q,e,M,a,D)}zd(q,t)})}function _n(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ws(e,t){for(var a=t+"Capture",l=[];e!==null;){var s=e,i=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||i===null||(s=Fl(e,a),s!=null&&l.unshift(_n(e,s,i)),s=Fl(e,t),s!=null&&l.push(_n(e,s,i))),e.tag===3)return l;e=e.return}return[]}function Ph(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _d(e,t,a,l,s){for(var i=t._reactName,f=[];a!==null&&a!==l;){var m=a,v=m.alternate,M=m.stateNode;if(m=m.tag,v!==null&&v===l)break;m!==5&&m!==26&&m!==27||M===null||(v=M,s?(M=Fl(a,i),M!=null&&f.unshift(_n(a,M,v))):s||(M=Fl(a,i),M!=null&&f.push(_n(a,M,v)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Ih=/\r\n?/g,ex=/\u0000|\uFFFD/g;function Od(e){return(typeof e=="string"?e:""+e).replace(Ih,`
|
|
9
|
+
`).replace(ex,"")}function Dd(e,t){return t=Od(t),Od(e)===t}function Se(e,t,a,l,s,i){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||cl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&cl(e,""+l);break;case"className":es(e,"class",l);break;case"tabIndex":es(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":es(e,a,l);break;case"style":_c(e,l,i);break;case"data":if(t!=="object"){es(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=as(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(a==="formAction"?(t!=="input"&&Se(e,t,"name",s.name,s,null),Se(e,t,"formEncType",s.formEncType,s,null),Se(e,t,"formMethod",s.formMethod,s,null),Se(e,t,"formTarget",s.formTarget,s,null)):(Se(e,t,"encType",s.encType,s,null),Se(e,t,"method",s.method,s,null),Se(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=as(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Zt);break;case"onScroll":l!=null&&oe("scroll",e);break;case"onScrollEnd":l!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=as(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":oe("beforetoggle",e),oe("toggle",e),In(e,"popover",l);break;case"xlinkActuate":Vt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Vt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Vt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Vt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Vt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Vt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Vt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":In(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Mm.get(a)||a,In(e,a,l))}}function Nu(e,t,a,l,s,i){switch(a){case"style":_c(e,l,i);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(u(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof l=="string"?cl(e,l):(typeof l=="number"||typeof l=="bigint")&&cl(e,""+l);break;case"onScroll":l!=null&&oe("scroll",e);break;case"onScrollEnd":l!=null&&oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),i=e[at]||null,i=i!=null?i[a]:null,typeof i=="function"&&e.removeEventListener(t,i,s),typeof l=="function")){typeof i!="function"&&i!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):In(e,a,l)}}}function Fe(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var l=!1,s=!1,i;for(i in a)if(a.hasOwnProperty(i)){var f=a[i];if(f!=null)switch(i){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Se(e,t,i,f,a,null)}}s&&Se(e,t,"srcSet",a.srcSet,a,null),l&&Se(e,t,"src",a.src,a,null);return;case"input":oe("invalid",e);var m=i=f=s=null,v=null,M=null;for(l in a)if(a.hasOwnProperty(l)){var D=a[l];if(D!=null)switch(l){case"name":s=D;break;case"type":f=D;break;case"checked":v=D;break;case"defaultChecked":M=D;break;case"value":i=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(u(137,t));break;default:Se(e,t,l,D,a,null)}}Ac(e,i,m,v,M,f,s,!1);return;case"select":oe("invalid",e),l=f=i=null;for(s in a)if(a.hasOwnProperty(s)&&(m=a[s],m!=null))switch(s){case"value":i=m;break;case"defaultValue":f=m;break;case"multiple":l=m;default:Se(e,t,s,m,a,null)}t=i,a=f,e.multiple=!!l,t!=null?ul(e,!!l,t,!1):a!=null&&ul(e,!!l,a,!0);return;case"textarea":oe("invalid",e),i=s=l=null;for(f in a)if(a.hasOwnProperty(f)&&(m=a[f],m!=null))switch(f){case"value":l=m;break;case"defaultValue":s=m;break;case"children":i=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(u(91));break;default:Se(e,t,f,m,a,null)}zc(e,l,s,i);return;case"option":for(v in a)a.hasOwnProperty(v)&&(l=a[v],l!=null)&&(v==="selected"?e.selected=l&&typeof l!="function"&&typeof l!="symbol":Se(e,t,v,l,a,null));return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(l=0;l<Rn.length;l++)oe(Rn[l],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(l=a[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Se(e,t,M,l,a,null)}return;default:if(Li(t)){for(D in a)a.hasOwnProperty(D)&&(l=a[D],l!==void 0&&Nu(e,t,D,l,a,void 0));return}}for(m in a)a.hasOwnProperty(m)&&(l=a[m],l!=null&&Se(e,t,m,l,a,null))}function tx(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,i=null,f=null,m=null,v=null,M=null,D=null;for(_ in a){var q=a[_];if(a.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":v=q;default:l.hasOwnProperty(_)||Se(e,t,_,null,l,q)}}for(var R in l){var _=l[R];if(q=a[R],l.hasOwnProperty(R)&&(_!=null||q!=null))switch(R){case"type":i=_;break;case"name":s=_;break;case"checked":M=_;break;case"defaultChecked":D=_;break;case"value":f=_;break;case"defaultValue":m=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(u(137,t));break;default:_!==q&&Se(e,t,R,_,l,q)}}wi(e,f,m,v,M,D,i,s);return;case"select":_=f=m=R=null;for(i in a)if(v=a[i],a.hasOwnProperty(i)&&v!=null)switch(i){case"value":break;case"multiple":_=v;default:l.hasOwnProperty(i)||Se(e,t,i,null,l,v)}for(s in l)if(i=l[s],v=a[s],l.hasOwnProperty(s)&&(i!=null||v!=null))switch(s){case"value":R=i;break;case"defaultValue":m=i;break;case"multiple":f=i;default:i!==v&&Se(e,t,s,i,l,v)}t=m,a=f,l=_,R!=null?ul(e,!!a,R,!1):!!l!=!!a&&(t!=null?ul(e,!!a,t,!0):ul(e,!!a,a?[]:"",!1));return;case"textarea":_=R=null;for(m in a)if(s=a[m],a.hasOwnProperty(m)&&s!=null&&!l.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Se(e,t,m,null,l,s)}for(f in l)if(s=l[f],i=a[f],l.hasOwnProperty(f)&&(s!=null||i!=null))switch(f){case"value":R=s;break;case"defaultValue":_=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(u(91));break;default:s!==i&&Se(e,t,f,s,l,i)}Mc(e,R,_);return;case"option":for(var K in a)R=a[K],a.hasOwnProperty(K)&&R!=null&&!l.hasOwnProperty(K)&&(K==="selected"?e.selected=!1:Se(e,t,K,null,l,R));for(v in l)R=l[v],_=a[v],l.hasOwnProperty(v)&&R!==_&&(R!=null||_!=null)&&(v==="selected"?e.selected=R&&typeof R!="function"&&typeof R!="symbol":Se(e,t,v,R,l,_));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 I in a)R=a[I],a.hasOwnProperty(I)&&R!=null&&!l.hasOwnProperty(I)&&Se(e,t,I,null,l,R);for(M in l)if(R=l[M],_=a[M],l.hasOwnProperty(M)&&R!==_&&(R!=null||_!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(u(137,t));break;default:Se(e,t,M,R,l,_)}return;default:if(Li(t)){for(var Ee in a)R=a[Ee],a.hasOwnProperty(Ee)&&R!==void 0&&!l.hasOwnProperty(Ee)&&Nu(e,t,Ee,void 0,l,R);for(D in l)R=l[D],_=a[D],!l.hasOwnProperty(D)||R===_||R===void 0&&_===void 0||Nu(e,t,D,R,l,_);return}}for(var T in a)R=a[T],a.hasOwnProperty(T)&&R!=null&&!l.hasOwnProperty(T)&&Se(e,t,T,null,l,R);for(q in l)R=l[q],_=a[q],!l.hasOwnProperty(q)||R===_||R==null&&_==null||Se(e,t,q,R,l,_)}function wd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ax(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],i=s.transferSize,f=s.initiatorType,m=s.duration;if(i&&m&&wd(f)){for(f=0,m=s.responseEnd,l+=1;l<a.length;l++){var v=a[l],M=v.startTime;if(M>m)break;var D=v.transferSize,q=v.initiatorType;D&&wd(q)&&(v=v.responseEnd,f+=D*(v<m?1:(m-M)/(v-M)))}if(--l,t+=8*(i+f)/(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 Su=null,Eu=null;function Fs(e){return e.nodeType===9?e:e.ownerDocument}function Ud(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 Ld(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 Tu(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 Cu=null;function lx(){var e=window.event;return e&&e.type==="popstate"?e===Cu?!1:(Cu=e,!0):(Cu=null,!1)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,nx=typeof clearTimeout=="function"?clearTimeout:void 0,Bd=typeof Promise=="function"?Promise:void 0,sx=typeof queueMicrotask=="function"?queueMicrotask:typeof Bd<"u"?function(e){return Bd.resolve(null).then(e).catch(ix)}:Hd;function ix(e){setTimeout(function(){throw e})}function za(e){return e==="head"}function qd(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),Yl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")On(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,On(a);for(var i=a.firstChild;i;){var f=i.nextSibling,m=i.nodeName;i[Jl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&i.rel.toLowerCase()==="stylesheet"||a.removeChild(i),i=f}}else a==="body"&&On(e.ownerDocument.body);a=s}while(a);Yl(t)}function Yd(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Au(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Au(a),Oi(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function rx(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Jl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==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(i=e.getAttribute("src"),(i!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=zt(e.nextSibling),e===null)break}return null}function ux(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=zt(e.nextSibling),e===null))return null;return e}function Gd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zt(e.nextSibling),e===null))return null;return e}function Mu(e){return e.data==="$?"||e.data==="$~"}function zu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function cx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function zt(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 Ru=null;function Xd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return zt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Qd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Vd(e,t,a){switch(t=Fs(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function On(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Oi(e)}var Rt=new Map,Zd=new Set;function Ps(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ra=Z.d;Z.d={f:ox,r:fx,D:dx,C:mx,L:hx,m:xx,X:yx,S:gx,M:px};function ox(){var e=ra.f(),t=Qs();return e||t}function fx(e){var t=sl(e);t!==null&&t.tag===5&&t.type==="form"?uf(t):ra.r(e)}var Hl=typeof document>"u"?null:document;function kd(e,t,a){var l=Hl;if(l&&typeof t=="string"&&t){var s=Nt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Zd.has(s)||(Zd.add(s),e={rel:e,crossOrigin:a,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),Fe(t,"link",e),Ve(t),l.head.appendChild(t)))}}function dx(e){ra.D(e),kd("dns-prefetch",e,null)}function mx(e,t){ra.C(e,t),kd("preconnect",e,t)}function hx(e,t,a){ra.L(e,t,a);var l=Hl;if(l&&e&&t){var s='link[rel="preload"][as="'+Nt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+Nt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+Nt(a.imageSizes)+'"]')):s+='[href="'+Nt(e)+'"]';var i=s;switch(t){case"style":i=Bl(e);break;case"script":i=ql(e)}Rt.has(i)||(e=y({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Rt.set(i,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Dn(i))||t==="script"&&l.querySelector(wn(i))||(t=l.createElement("link"),Fe(t,"link",e),Ve(t),l.head.appendChild(t)))}}function xx(e,t){ra.m(e,t);var a=Hl;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Nt(l)+'"][href="'+Nt(e)+'"]',i=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ql(e)}if(!Rt.has(i)&&(e=y({rel:"modulepreload",href:e},t),Rt.set(i,e),a.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(wn(i)))return}l=a.createElement("link"),Fe(l,"link",e),Ve(l),a.head.appendChild(l)}}}function gx(e,t,a){ra.S(e,t,a);var l=Hl;if(l&&e){var s=il(l).hoistableStyles,i=Bl(e);t=t||"default";var f=s.get(i);if(!f){var m={loading:0,preload:null};if(f=l.querySelector(Dn(i)))m.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Rt.get(i))&&_u(e,a);var v=f=l.createElement("link");Ve(v),Fe(v,"link",e),v._p=new Promise(function(M,D){v.onload=M,v.onerror=D}),v.addEventListener("load",function(){m.loading|=1}),v.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Is(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:m},s.set(i,f)}}}function yx(e,t){ra.X(e,t);var a=Hl;if(a&&e){var l=il(a).hoistableScripts,s=ql(e),i=l.get(s);i||(i=a.querySelector(wn(s)),i||(e=y({src:e,async:!0},t),(t=Rt.get(s))&&Ou(e,t),i=a.createElement("script"),Ve(i),Fe(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function px(e,t){ra.M(e,t);var a=Hl;if(a&&e){var l=il(a).hoistableScripts,s=ql(e),i=l.get(s);i||(i=a.querySelector(wn(s)),i||(e=y({src:e,async:!0,type:"module"},t),(t=Rt.get(s))&&Ou(e,t),i=a.createElement("script"),Ve(i),Fe(i,"link",e),a.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(s,i))}}function $d(e,t,a,l){var s=(s=ue.current)?Ps(s):null;if(!s)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Bl(a.href),a=il(s).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Bl(a.href);var i=il(s).hoistableStyles,f=i.get(e);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,f),(i=s.querySelector(Dn(e)))&&!i._p&&(f.instance=i,f.state.loading=5),Rt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Rt.set(e,a),i||vx(s,e,a,f.state))),t&&l===null)throw Error(u(528,""));return f}if(t&&l!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ql(a),a=il(s).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function Bl(e){return'href="'+Nt(e)+'"'}function Dn(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function vx(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Fe(t,"link",a),Ve(t),e.head.appendChild(t))}function ql(e){return'[src="'+Nt(e)+'"]'}function wn(e){return"script[async]"+e}function Jd(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Nt(a.href)+'"]');if(l)return t.instance=l,Ve(l),l;var s=y({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ve(l),Fe(l,"style",s),Is(l,a.precedence,e),t.instance=l;case"stylesheet":s=Bl(a.href);var i=e.querySelector(Dn(s));if(i)return t.state.loading|=4,t.instance=i,Ve(i),i;l=Kd(a),(s=Rt.get(s))&&_u(l,s),i=(e.ownerDocument||e).createElement("link"),Ve(i);var f=i;return f._p=new Promise(function(m,v){f.onload=m,f.onerror=v}),Fe(i,"link",l),t.state.loading|=4,Is(i,a.precedence,e),t.instance=i;case"script":return i=ql(a.src),(s=e.querySelector(wn(i)))?(t.instance=s,Ve(s),s):(l=a,(s=Rt.get(i))&&(l=y({},a),Ou(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),Ve(s),Fe(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Is(l,a.precedence,e));return t.instance}function Is(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,i=s,f=0;f<l.length;f++){var m=l[f];if(m.dataset.precedence===t)i=m;else if(i!==s)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function _u(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ou(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ei=null;function Wd(e,t,a){if(ei===null){var l=new Map,s=ei=new Map;s.set(a,l)}else s=ei,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var i=a[s];if(!(i[Jl]||i[$e]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var f=i.getAttribute(t)||"";f=e+f;var m=l.get(f);m?m.push(i):l.set(f,[i])}}return l}function Fd(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function bx(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!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 Pd(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jx(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Bl(l.href),i=t.querySelector(Dn(s));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ti.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=i,Ve(i);return}i=t.ownerDocument||t,l=Kd(l),(s=Rt.get(s))&&_u(l,s),i=i.createElement("link"),Ve(i);var f=i;f._p=new Promise(function(m,v){f.onload=m,f.onerror=v}),Fe(i,"link",l),a.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=ti.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Du=0;function Nx(e,t){return e.stylesheets&&e.count===0&&li(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&li(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Du===0&&(Du=62500*ax());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&li(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Du?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function ti(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)li(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ai=null;function li(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ai=new Map,t.forEach(Sx,e),ai=null,ti.call(e))}function Sx(e,t){if(!(t.state.loading&4)){var a=ai.get(e);if(a)var l=a.get(null);else{a=new Map,ai.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<s.length;i++){var f=s[i];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}s=t.instance,f=s.getAttribute("data-precedence"),i=a.get(f)||l,i===l&&a.set(null,s),a.set(f,s),this.count++,l=ti.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),i?i.parentNode.insertBefore(s,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Un={$$typeof:V,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function Ex(e,t,a,l,s,i,f,m,v){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=Mi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mi(0),this.hiddenUpdates=Mi(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=i,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Id(e,t,a,l,s,i,f,m,v,M,D,q){return e=new Ex(e,t,a,f,v,M,D,q,m),t=1,i===!0&&(t|=24),i=mt(3,null,null,t),e.current=i,i.stateNode=e,t=dr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:l,isDehydrated:a,cache:t},gr(i),e}function e0(e){return e?(e=gl,e):gl}function t0(e,t,a,l,s,i){s=e0(s),l.context===null?l.context=s:l.pendingContext=s,l=pa(t),l.payload={element:a},i=i===void 0?null:i,i!==null&&(l.callback=i),a=va(e,l,t),a!==null&&(ut(a,e,t),mn(a,e,t))}function a0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function wu(e,t){a0(e,t),(e=e.alternate)&&a0(e,t)}function l0(e){if(e.tag===13||e.tag===31){var t=Qa(e,67108864);t!==null&&ut(t,e,67108864),wu(e,67108864)}}function n0(e){if(e.tag===13||e.tag===31){var t=pt();t=zi(t);var a=Qa(e,t);a!==null&&ut(a,e,t),wu(e,t)}}var ni=!0;function Tx(e,t,a,l){var s=w.T;w.T=null;var i=Z.p;try{Z.p=2,Uu(e,t,a,l)}finally{Z.p=i,w.T=s}}function Cx(e,t,a,l){var s=w.T;w.T=null;var i=Z.p;try{Z.p=8,Uu(e,t,a,l)}finally{Z.p=i,w.T=s}}function Uu(e,t,a,l){if(ni){var s=Lu(l);if(s===null)ju(e,t,l,si,a),i0(e,l);else if(Mx(s,e,t,a,l))l.stopPropagation();else if(i0(e,l),t&4&&-1<Ax.indexOf(e)){for(;s!==null;){var i=sl(s);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var f=Ba(i.pendingLanes);if(f!==0){var m=i;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var v=1<<31-ft(f);m.entanglements[1]|=v,f&=~v}Yt(i),(ye&6)===0&&(Gs=ct()+500,zn(0))}}break;case 31:case 13:m=Qa(i,2),m!==null&&ut(m,i,2),Qs(),wu(i,2)}if(i=Lu(l),i===null&&ju(e,t,l,si,a),i===s)break;s=i}s!==null&&l.stopPropagation()}else ju(e,t,l,null,a)}}function Lu(e){return e=Bi(e),Hu(e)}var si=null;function Hu(e){if(si=null,e=nl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=g(t),e!==null)return e;e=null}else if(a===31){if(e=b(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return si=e,null}function s0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(dm()){case fc:return 2;case dc:return 8;case Kn:case mm:return 32;case mc:return 268435456;default:return 32}default:return 32}}var Bu=!1,Ra=null,_a=null,Oa=null,Ln=new Map,Hn=new Map,Da=[],Ax="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 i0(e,t){switch(e){case"focusin":case"focusout":Ra=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":Oa=null;break;case"pointerover":case"pointerout":Ln.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hn.delete(t.pointerId)}}function Bn(e,t,a,l,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:i,targetContainers:[s]},t!==null&&(t=sl(t),t!==null&&l0(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Mx(e,t,a,l,s){switch(t){case"focusin":return Ra=Bn(Ra,e,t,a,l,s),!0;case"dragenter":return _a=Bn(_a,e,t,a,l,s),!0;case"mouseover":return Oa=Bn(Oa,e,t,a,l,s),!0;case"pointerover":var i=s.pointerId;return Ln.set(i,Bn(Ln.get(i)||null,e,t,a,l,s)),!0;case"gotpointercapture":return i=s.pointerId,Hn.set(i,Bn(Hn.get(i)||null,e,t,a,l,s)),!0}return!1}function r0(e){var t=nl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=g(a),t!==null){e.blockedOn=t,vc(e.priority,function(){n0(a)});return}}else if(t===31){if(t=b(a),t!==null){e.blockedOn=t,vc(e.priority,function(){n0(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ii(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Lu(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Hi=l,a.target.dispatchEvent(l),Hi=null}else return t=sl(a),t!==null&&l0(t),e.blockedOn=a,!1;t.shift()}return!0}function u0(e,t,a){ii(e)&&a.delete(t)}function zx(){Bu=!1,Ra!==null&&ii(Ra)&&(Ra=null),_a!==null&&ii(_a)&&(_a=null),Oa!==null&&ii(Oa)&&(Oa=null),Ln.forEach(u0),Hn.forEach(u0)}function ri(e,t){e.blockedOn===t&&(e.blockedOn=null,Bu||(Bu=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,zx)))}var ui=null;function c0(e){ui!==e&&(ui=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){ui===e&&(ui=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Hu(l||a)===null)continue;break}var i=sl(a);i!==null&&(e.splice(t,3),t-=3,Lr(i,{pending:!0,data:s,method:a.method,action:l},l,s))}}))}function Yl(e){function t(v){return ri(v,e)}Ra!==null&&ri(Ra,e),_a!==null&&ri(_a,e),Oa!==null&&ri(Oa,e),Ln.forEach(t),Hn.forEach(t);for(var a=0;a<Da.length;a++){var l=Da[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Da.length&&(a=Da[0],a.blockedOn===null);)r0(a),a.blockedOn===null&&Da.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var s=a[l],i=a[l+1],f=s[at]||null;if(typeof i=="function")f||c0(a);else if(f){var m=null;if(i&&i.hasAttribute("formAction")){if(s=i,f=i[at]||null)m=f.formAction;else if(Hu(s)!==null)continue}else m=f.action;typeof m=="function"?a[l+1]=m:(a.splice(l,3),l-=3),c0(a)}}}function o0(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function qu(e){this._internalRoot=e}ci.prototype.render=qu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,l=pt();t0(a,l,e,t,null,null)},ci.prototype.unmount=qu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;t0(e.current,2,null,e,null,null),Qs(),t[ll]=null}};function ci(e){this._internalRoot=e}ci.prototype.unstable_scheduleHydration=function(e){if(e){var t=pc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Da.length&&t!==0&&t<Da[a].priority;a++);Da.splice(a,0,e),a===0&&r0(e)}};var f0=o.version;if(f0!=="19.2.4")throw Error(u(527,f0,"19.2.4"));Z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=x(t),e=e!==null?j(e):null,e=e===null?null:e.stateNode,e};var Rx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var oi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oi.isDisabled&&oi.supportsFiber)try{kl=oi.inject(Rx),ot=oi}catch{}}return Yn.createRoot=function(e,t){if(!d(e))throw Error(u(299));var a=!1,l="",s=pf,i=vf,f=bf;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Id(e,1,!1,null,null,a,l,null,s,i,f,o0),e[ll]=t.current,bu(e),new qu(t)},Yn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(u(299));var l=!1,s="",i=pf,f=vf,m=bf,v=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(i=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(m=a.onRecoverableError),a.formState!==void 0&&(v=a.formState)),t=Id(e,1,!0,t,a??null,l,s,v,i,f,m,o0),t.context=e0(null),a=t.current,l=pt(),l=zi(l),s=pa(l),s.callback=null,va(a,s,l),a=l,t.current.lanes=a,Kl(t,a),Yt(t),e[ll]=t.current,bu(e),new ci(t)},Yn.version="19.2.4",Yn}var j0;function Yx(){if(j0)return Xu.exports;j0=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(o){console.error(o)}}return r(),Xu.exports=qx(),Xu.exports}var Gx=Yx();var N0="popstate";function Xx(r={}){function o(u,d){let{pathname:h,search:g,hash:b}=u.location;return Fu("",{pathname:h,search:g,hash:b},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function c(u,d){return typeof d=="string"?d:Xn(d)}return Vx(o,c,null,r)}function _e(r,o){if(r===!1||r===null||typeof r>"u")throw new Error(o)}function Lt(r,o){if(!r){typeof console<"u"&&console.warn(o);try{throw new Error(o)}catch{}}}function Qx(){return Math.random().toString(36).substring(2,10)}function S0(r,o){return{usr:r.state,key:r.key,idx:o}}function Fu(r,o,c=null,u){return{pathname:typeof r=="string"?r:r.pathname,search:"",hash:"",...typeof o=="string"?Ql(o):o,state:c,key:o&&o.key||u||Qx()}}function Xn({pathname:r="/",search:o="",hash:c=""}){return o&&o!=="?"&&(r+=o.charAt(0)==="?"?o:"?"+o),c&&c!=="#"&&(r+=c.charAt(0)==="#"?c:"#"+c),r}function Ql(r){let o={};if(r){let c=r.indexOf("#");c>=0&&(o.hash=r.substring(c),r=r.substring(0,c));let u=r.indexOf("?");u>=0&&(o.search=r.substring(u),r=r.substring(0,u)),r&&(o.pathname=r)}return o}function Vx(r,o,c,u={}){let{window:d=document.defaultView,v5Compat:h=!1}=u,g=d.history,b="POP",p=null,x=j();x==null&&(x=0,g.replaceState({...g.state,idx:x},""));function j(){return(g.state||{idx:null}).idx}function y(){b="POP";let C=j(),G=C==null?null:C-x;x=C,p&&p({action:b,location:O.location,delta:G})}function z(C,G){b="PUSH";let H=Fu(O.location,C,G);x=j()+1;let V=S0(H,x),re=O.createHref(H);try{g.pushState(V,"",re)}catch(te){if(te instanceof DOMException&&te.name==="DataCloneError")throw te;d.location.assign(re)}h&&p&&p({action:b,location:O.location,delta:1})}function B(C,G){b="REPLACE";let H=Fu(O.location,C,G);x=j();let V=S0(H,x),re=O.createHref(H);g.replaceState(V,"",re),h&&p&&p({action:b,location:O.location,delta:0})}function X(C){return Zx(C)}let O={get action(){return b},get location(){return r(d,g)},listen(C){if(p)throw new Error("A history only accepts one active listener");return d.addEventListener(N0,y),p=C,()=>{d.removeEventListener(N0,y),p=null}},createHref(C){return o(d,C)},createURL:X,encodeLocation(C){let G=X(C);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:z,replace:B,go(C){return g.go(C)}};return O}function Zx(r,o=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),_e(c,"No window.location.(origin|href) available to create URL");let u=typeof r=="string"?r:Xn(r);return u=u.replace(/ $/,"%20"),!o&&u.startsWith("//")&&(u=c+u),new URL(u,c)}function U0(r,o,c="/"){return kx(r,o,c,!1)}function kx(r,o,c,u){let d=typeof o=="string"?Ql(o):o,h=ca(d.pathname||"/",c);if(h==null)return null;let g=L0(r);$x(g);let b=null;for(let p=0;b==null&&p<g.length;++p){let x=ng(h);b=ag(g[p],x,u)}return b}function L0(r,o=[],c=[],u="",d=!1){let h=(g,b,p=d,x)=>{let j={relativePath:x===void 0?g.path||"":x,caseSensitive:g.caseSensitive===!0,childrenIndex:b,route:g};if(j.relativePath.startsWith("/")){if(!j.relativePath.startsWith(u)&&p)return;_e(j.relativePath.startsWith(u),`Absolute route path "${j.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),j.relativePath=j.relativePath.slice(u.length)}let y=ua([u,j.relativePath]),z=c.concat(j);g.children&&g.children.length>0&&(_e(g.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),L0(g.children,o,z,y,p)),!(g.path==null&&!g.index)&&o.push({path:y,score:eg(y,g.index),routesMeta:z})};return r.forEach((g,b)=>{if(g.path===""||!g.path?.includes("?"))h(g,b);else for(let p of H0(g.path))h(g,b,!0,p)}),o}function H0(r){let o=r.split("/");if(o.length===0)return[];let[c,...u]=o,d=c.endsWith("?"),h=c.replace(/\?$/,"");if(u.length===0)return d?[h,""]:[h];let g=H0(u.join("/")),b=[];return b.push(...g.map(p=>p===""?h:[h,p].join("/"))),d&&b.push(...g),b.map(p=>r.startsWith("/")&&p===""?"/":p)}function $x(r){r.sort((o,c)=>o.score!==c.score?c.score-o.score:tg(o.routesMeta.map(u=>u.childrenIndex),c.routesMeta.map(u=>u.childrenIndex)))}var Kx=/^:[\w-]+$/,Jx=3,Wx=2,Fx=1,Px=10,Ix=-2,E0=r=>r==="*";function eg(r,o){let c=r.split("/"),u=c.length;return c.some(E0)&&(u+=Ix),o&&(u+=Wx),c.filter(d=>!E0(d)).reduce((d,h)=>d+(Kx.test(h)?Jx:h===""?Fx:Px),u)}function tg(r,o){return r.length===o.length&&r.slice(0,-1).every((u,d)=>u===o[d])?r[r.length-1]-o[o.length-1]:0}function ag(r,o,c=!1){let{routesMeta:u}=r,d={},h="/",g=[];for(let b=0;b<u.length;++b){let p=u[b],x=b===u.length-1,j=h==="/"?o:o.slice(h.length)||"/",y=gi({path:p.relativePath,caseSensitive:p.caseSensitive,end:x},j),z=p.route;if(!y&&x&&c&&!u[u.length-1].route.index&&(y=gi({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},j)),!y)return null;Object.assign(d,y.params),g.push({params:d,pathname:ua([h,y.pathname]),pathnameBase:ug(ua([h,y.pathnameBase])),route:z}),y.pathnameBase!=="/"&&(h=ua([h,y.pathnameBase]))}return g}function gi(r,o){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[c,u]=lg(r.path,r.caseSensitive,r.end),d=o.match(c);if(!d)return null;let h=d[0],g=h.replace(/(.)\/+$/,"$1"),b=d.slice(1);return{params:u.reduce((x,{paramName:j,isOptional:y},z)=>{if(j==="*"){let X=b[z]||"";g=h.slice(0,h.length-X.length).replace(/(.)\/+$/,"$1")}const B=b[z];return y&&!B?x[j]=void 0:x[j]=(B||"").replace(/%2F/g,"/"),x},{}),pathname:h,pathnameBase:g,pattern:r}}function lg(r,o=!1,c=!0){Lt(r==="*"||!r.endsWith("*")||r.endsWith("/*"),`Route path "${r}" will be treated as if it were "${r.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${r.replace(/\*$/,"/*")}".`);let u=[],d="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(g,b,p)=>(u.push({paramName:b,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return r.endsWith("*")?(u.push({paramName:"*"}),d+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?d+="\\/*$":r!==""&&r!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,o?void 0:"i"),u]}function ng(r){try{return r.split("/").map(o=>decodeURIComponent(o).replace(/\//g,"%2F")).join("/")}catch(o){return Lt(!1,`The URL path "${r}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${o}).`),r}}function ca(r,o){if(o==="/")return r;if(!r.toLowerCase().startsWith(o.toLowerCase()))return null;let c=o.endsWith("/")?o.length-1:o.length,u=r.charAt(c);return u&&u!=="/"?null:r.slice(c)||"/"}var sg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ig(r,o="/"){let{pathname:c,search:u="",hash:d=""}=typeof r=="string"?Ql(r):r,h;return c?(c=c.replace(/\/\/+/g,"/"),c.startsWith("/")?h=T0(c.substring(1),"/"):h=T0(c,o)):h=o,{pathname:h,search:cg(u),hash:og(d)}}function T0(r,o){let c=o.replace(/\/+$/,"").split("/");return r.split("/").forEach(d=>{d===".."?c.length>1&&c.pop():d!=="."&&c.push(d)}),c.length>1?c.join("/"):"/"}function ku(r,o,c,u){return`Cannot include a '${r}' character in a manually specified \`to.${o}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rg(r){return r.filter((o,c)=>c===0||o.route.path&&o.route.path.length>0)}function B0(r){let o=rg(r);return o.map((c,u)=>u===o.length-1?c.pathname:c.pathnameBase)}function q0(r,o,c,u=!1){let d;typeof r=="string"?d=Ql(r):(d={...r},_e(!d.pathname||!d.pathname.includes("?"),ku("?","pathname","search",d)),_e(!d.pathname||!d.pathname.includes("#"),ku("#","pathname","hash",d)),_e(!d.search||!d.search.includes("#"),ku("#","search","hash",d)));let h=r===""||d.pathname==="",g=h?"/":d.pathname,b;if(g==null)b=c;else{let y=o.length-1;if(!u&&g.startsWith("..")){let z=g.split("/");for(;z[0]==="..";)z.shift(),y-=1;d.pathname=z.join("/")}b=y>=0?o[y]:"/"}let p=ig(d,b),x=g&&g!=="/"&&g.endsWith("/"),j=(h||g===".")&&c.endsWith("/");return!p.pathname.endsWith("/")&&(x||j)&&(p.pathname+="/"),p}var ua=r=>r.join("/").replace(/\/\/+/g,"/"),ug=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),cg=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,og=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r,fg=class{constructor(r,o,c,u=!1){this.status=r,this.statusText=o||"",this.internal=u,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function dg(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}function mg(r){return r.map(o=>o.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Y0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function G0(r,o){let c=r;if(typeof c!="string"||!sg.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let u=c,d=!1;if(Y0)try{let h=new URL(window.location.href),g=c.startsWith("//")?new URL(h.protocol+c):new URL(c),b=ca(g.pathname,o);g.origin===h.origin&&b!=null?c=b+g.search+g.hash:d=!0}catch{Lt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:d,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var X0=["POST","PUT","PATCH","DELETE"];new Set(X0);var hg=["GET",...X0];new Set(hg);var Vl=E.createContext(null);Vl.displayName="DataRouter";var yi=E.createContext(null);yi.displayName="DataRouterState";var xg=E.createContext(!1),Q0=E.createContext({isTransitioning:!1});Q0.displayName="ViewTransition";var gg=E.createContext(new Map);gg.displayName="Fetchers";var yg=E.createContext(null);yg.displayName="Await";var _t=E.createContext(null);_t.displayName="Navigation";var Qn=E.createContext(null);Qn.displayName="Location";var Gt=E.createContext({outlet:null,matches:[],isDataRoute:!1});Gt.displayName="Route";var tc=E.createContext(null);tc.displayName="RouteError";var V0="REACT_ROUTER_ERROR",pg="REDIRECT",vg="ROUTE_ERROR_RESPONSE";function bg(r){if(r.startsWith(`${V0}:${pg}:{`))try{let o=JSON.parse(r.slice(28));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string"&&typeof o.location=="string"&&typeof o.reloadDocument=="boolean"&&typeof o.replace=="boolean")return o}catch{}}function jg(r){if(r.startsWith(`${V0}:${vg}:{`))try{let o=JSON.parse(r.slice(40));if(typeof o=="object"&&o&&typeof o.status=="number"&&typeof o.statusText=="string")return new fg(o.status,o.statusText,o.data)}catch{}}function Ng(r,{relative:o}={}){_e(Vn(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:u}=E.useContext(_t),{hash:d,pathname:h,search:g}=Zn(r,{relative:o}),b=h;return c!=="/"&&(b=h==="/"?c:ua([c,h])),u.createHref({pathname:b,search:g,hash:d})}function Vn(){return E.useContext(Qn)!=null}function La(){return _e(Vn(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Qn).location}var Z0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function k0(r){E.useContext(_t).static||E.useLayoutEffect(r)}function ac(){let{isDataRoute:r}=E.useContext(Gt);return r?Lg():Sg()}function Sg(){_e(Vn(),"useNavigate() may be used only in the context of a <Router> component.");let r=E.useContext(Vl),{basename:o,navigator:c}=E.useContext(_t),{matches:u}=E.useContext(Gt),{pathname:d}=La(),h=JSON.stringify(B0(u)),g=E.useRef(!1);return k0(()=>{g.current=!0}),E.useCallback((p,x={})=>{if(Lt(g.current,Z0),!g.current)return;if(typeof p=="number"){c.go(p);return}let j=q0(p,JSON.parse(h),d,x.relative==="path");r==null&&o!=="/"&&(j.pathname=j.pathname==="/"?o:ua([o,j.pathname])),(x.replace?c.replace:c.push)(j,x.state,x)},[o,c,h,d,r])}E.createContext(null);function Eg(){let{matches:r}=E.useContext(Gt),o=r[r.length-1];return o?o.params:{}}function Zn(r,{relative:o}={}){let{matches:c}=E.useContext(Gt),{pathname:u}=La(),d=JSON.stringify(B0(c));return E.useMemo(()=>q0(r,JSON.parse(d),u,o==="path"),[r,d,u,o])}function Tg(r,o){return $0(r,o)}function $0(r,o,c,u,d){_e(Vn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:h}=E.useContext(_t),{matches:g}=E.useContext(Gt),b=g[g.length-1],p=b?b.params:{},x=b?b.pathname:"/",j=b?b.pathnameBase:"/",y=b&&b.route;{let H=y&&y.path||"";J0(x,!y||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${x}" (under <Route path="${H}">) 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.
|
|
10
|
+
|
|
11
|
+
Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let z=La(),B;if(o){let H=typeof o=="string"?Ql(o):o;_e(j==="/"||H.pathname?.startsWith(j),`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 "${j}" but pathname "${H.pathname}" was given in the \`location\` prop.`),B=H}else B=z;let X=B.pathname||"/",O=X;if(j!=="/"){let H=j.replace(/^\//,"").split("/");O="/"+X.replace(/^\//,"").split("/").slice(H.length).join("/")}let C=U0(r,{pathname:O});Lt(y||C!=null,`No routes matched location "${B.pathname}${B.search}${B.hash}" `),Lt(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${B.pathname}${B.search}${B.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 G=Rg(C&&C.map(H=>Object.assign({},H,{params:Object.assign({},p,H.params),pathname:ua([j,h.encodeLocation?h.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?j:ua([j,h.encodeLocation?h.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),g,c,u,d);return o&&G?E.createElement(Qn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...B},navigationType:"POP"}},G):G}function Cg(){let r=Ug(),o=dg(r)?`${r.status} ${r.statusText}`:r instanceof Error?r.message:JSON.stringify(r),c=r instanceof Error?r.stack:null,u="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:u},h={padding:"2px 4px",backgroundColor:u},g=null;return console.error("Error handled by React Router default ErrorBoundary:",r),g=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:h},"ErrorBoundary")," or"," ",E.createElement("code",{style:h},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},o),c?E.createElement("pre",{style:d},c):null,g)}var Ag=E.createElement(Cg,null),K0=class extends E.Component{constructor(r){super(r),this.state={location:r.location,revalidation:r.revalidation,error:r.error}}static getDerivedStateFromError(r){return{error:r}}static getDerivedStateFromProps(r,o){return o.location!==r.location||o.revalidation!=="idle"&&r.revalidation==="idle"?{error:r.error,location:r.location,revalidation:r.revalidation}:{error:r.error!==void 0?r.error:o.error,location:o.location,revalidation:r.revalidation||o.revalidation}}componentDidCatch(r,o){this.props.onError?this.props.onError(r,o):console.error("React Router caught the following error during render",r)}render(){let r=this.state.error;if(this.context&&typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){const c=jg(r.digest);c&&(r=c)}let o=r!==void 0?E.createElement(Gt.Provider,{value:this.props.routeContext},E.createElement(tc.Provider,{value:r,children:this.props.component})):this.props.children;return this.context?E.createElement(Mg,{error:r},o):o}};K0.contextType=xg;var $u=new WeakMap;function Mg({children:r,error:o}){let{basename:c}=E.useContext(_t);if(typeof o=="object"&&o&&"digest"in o&&typeof o.digest=="string"){let u=bg(o.digest);if(u){let d=$u.get(o);if(d)throw d;let h=G0(u.location,c);if(Y0&&!$u.get(o))if(h.isExternal||u.reloadDocument)window.location.href=h.absoluteURL||h.to;else{const g=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(h.to,{replace:u.replace}));throw $u.set(o,g),g}return E.createElement("meta",{httpEquiv:"refresh",content:`0;url=${h.absoluteURL||h.to}`})}}return r}function zg({routeContext:r,match:o,children:c}){let u=E.useContext(Vl);return u&&u.static&&u.staticContext&&(o.route.errorElement||o.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=o.route.id),E.createElement(Gt.Provider,{value:r},c)}function Rg(r,o=[],c=null,u=null,d=null){if(r==null){if(!c)return null;if(c.errors)r=c.matches;else if(o.length===0&&!c.initialized&&c.matches.length>0)r=c.matches;else return null}let h=r,g=c?.errors;if(g!=null){let j=h.findIndex(y=>y.route.id&&g?.[y.route.id]!==void 0);_e(j>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(g).join(",")}`),h=h.slice(0,Math.min(h.length,j+1))}let b=!1,p=-1;if(c)for(let j=0;j<h.length;j++){let y=h[j];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(p=j),y.route.id){let{loaderData:z,errors:B}=c,X=y.route.loader&&!z.hasOwnProperty(y.route.id)&&(!B||B[y.route.id]===void 0);if(y.route.lazy||X){b=!0,p>=0?h=h.slice(0,p+1):h=[h[0]];break}}}let x=c&&u?(j,y)=>{u(j,{location:c.location,params:c.matches?.[0]?.params??{},unstable_pattern:mg(c.matches),errorInfo:y})}:void 0;return h.reduceRight((j,y,z)=>{let B,X=!1,O=null,C=null;c&&(B=g&&y.route.id?g[y.route.id]:void 0,O=y.route.errorElement||Ag,b&&(p<0&&z===0?(J0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),X=!0,C=null):p===z&&(X=!0,C=y.route.hydrateFallbackElement||null)));let G=o.concat(h.slice(0,z+1)),H=()=>{let V;return B?V=O:X?V=C:y.route.Component?V=E.createElement(y.route.Component,null):y.route.element?V=y.route.element:V=j,E.createElement(zg,{match:y,routeContext:{outlet:j,matches:G,isDataRoute:c!=null},children:V})};return c&&(y.route.ErrorBoundary||y.route.errorElement||z===0)?E.createElement(K0,{location:c.location,revalidation:c.revalidation,component:O,error:B,children:H(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:x}):H()},null)}function lc(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _g(r){let o=E.useContext(Vl);return _e(o,lc(r)),o}function Og(r){let o=E.useContext(yi);return _e(o,lc(r)),o}function Dg(r){let o=E.useContext(Gt);return _e(o,lc(r)),o}function nc(r){let o=Dg(r),c=o.matches[o.matches.length-1];return _e(c.route.id,`${r} can only be used on routes that contain a unique "id"`),c.route.id}function wg(){return nc("useRouteId")}function Ug(){let r=E.useContext(tc),o=Og("useRouteError"),c=nc("useRouteError");return r!==void 0?r:o.errors?.[c]}function Lg(){let{router:r}=_g("useNavigate"),o=nc("useNavigate"),c=E.useRef(!1);return k0(()=>{c.current=!0}),E.useCallback(async(d,h={})=>{Lt(c.current,Z0),c.current&&(typeof d=="number"?await r.navigate(d):await r.navigate(d,{fromRouteId:o,...h}))},[r,o])}var C0={};function J0(r,o,c){!o&&!C0[r]&&(C0[r]=!0,Lt(!1,c))}E.memo(Hg);function Hg({routes:r,future:o,state:c,onError:u}){return $0(r,void 0,c,u,o)}function tt(r){_e(!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 Bg({basename:r="/",children:o=null,location:c,navigationType:u="POP",navigator:d,static:h=!1,unstable_useTransitions:g}){_e(!Vn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let b=r.replace(/^\/*/,"/"),p=E.useMemo(()=>({basename:b,navigator:d,static:h,unstable_useTransitions:g,future:{}}),[b,d,h,g]);typeof c=="string"&&(c=Ql(c));let{pathname:x="/",search:j="",hash:y="",state:z=null,key:B="default"}=c,X=E.useMemo(()=>{let O=ca(x,b);return O==null?null:{location:{pathname:O,search:j,hash:y,state:z,key:B},navigationType:u}},[b,x,j,y,z,B,u]);return Lt(X!=null,`<Router basename="${b}"> is not able to match the URL "${x}${j}${y}" because it does not start with the basename, so the <Router> won't render anything.`),X==null?null:E.createElement(_t.Provider,{value:p},E.createElement(Qn.Provider,{children:o,value:X}))}function qg({children:r,location:o}){return Tg(Pu(r),o)}function Pu(r,o=[]){let c=[];return E.Children.forEach(r,(u,d)=>{if(!E.isValidElement(u))return;let h=[...o,d];if(u.type===E.Fragment){c.push.apply(c,Pu(u.props.children,h));return}_e(u.type===tt,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),_e(!u.props.index||!u.props.children,"An index route cannot have child routes.");let g={id:u.props.id||h.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(g.children=Pu(u.props.children,h)),c.push(g)}),c}var hi="get",xi="application/x-www-form-urlencoded";function pi(r){return typeof HTMLElement<"u"&&r instanceof HTMLElement}function Yg(r){return pi(r)&&r.tagName.toLowerCase()==="button"}function Gg(r){return pi(r)&&r.tagName.toLowerCase()==="form"}function Xg(r){return pi(r)&&r.tagName.toLowerCase()==="input"}function Qg(r){return!!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)}function Vg(r,o){return r.button===0&&(!o||o==="_self")&&!Qg(r)}function Iu(r=""){return new URLSearchParams(typeof r=="string"||Array.isArray(r)||r instanceof URLSearchParams?r:Object.keys(r).reduce((o,c)=>{let u=r[c];return o.concat(Array.isArray(u)?u.map(d=>[c,d]):[[c,u]])},[]))}function Zg(r,o){let c=Iu(r);return o&&o.forEach((u,d)=>{c.has(d)||o.getAll(d).forEach(h=>{c.append(d,h)})}),c}var fi=null;function kg(){if(fi===null)try{new FormData(document.createElement("form"),0),fi=!1}catch{fi=!0}return fi}var $g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ku(r){return r!=null&&!$g.has(r)?(Lt(!1,`"${r}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${xi}"`),null):r}function Kg(r,o){let c,u,d,h,g;if(Gg(r)){let b=r.getAttribute("action");u=b?ca(b,o):null,c=r.getAttribute("method")||hi,d=Ku(r.getAttribute("enctype"))||xi,h=new FormData(r)}else if(Yg(r)||Xg(r)&&(r.type==="submit"||r.type==="image")){let b=r.form;if(b==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=r.getAttribute("formaction")||b.getAttribute("action");if(u=p?ca(p,o):null,c=r.getAttribute("formmethod")||b.getAttribute("method")||hi,d=Ku(r.getAttribute("formenctype"))||Ku(b.getAttribute("enctype"))||xi,h=new FormData(b,r),!kg()){let{name:x,type:j,value:y}=r;if(j==="image"){let z=x?`${x}.`:"";h.append(`${z}x`,"0"),h.append(`${z}y`,"0")}else x&&h.append(x,y)}}else{if(pi(r))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=hi,u=null,d=xi,g=r}return h&&d==="text/plain"&&(g=h,h=void 0),{action:u,method:c.toLowerCase(),encType:d,formData:h,body:g}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sc(r,o){if(r===!1||r===null||typeof r>"u")throw new Error(o)}function Jg(r,o,c,u){let d=typeof r=="string"?new URL(r,typeof window>"u"?"server://singlefetch/":window.location.origin):r;return c?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${u}`:d.pathname=`${d.pathname}.${u}`:d.pathname==="/"?d.pathname=`_root.${u}`:o&&ca(d.pathname,o)==="/"?d.pathname=`${o.replace(/\/$/,"")}/_root.${u}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${u}`,d}async function Wg(r,o){if(r.id in o)return o[r.id];try{let c=await import(r.module);return o[r.id]=c,c}catch(c){return console.error(`Error loading route module \`${r.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Fg(r){return r==null?!1:r.href==null?r.rel==="preload"&&typeof r.imageSrcSet=="string"&&typeof r.imageSizes=="string":typeof r.rel=="string"&&typeof r.href=="string"}async function Pg(r,o,c){let u=await Promise.all(r.map(async d=>{let h=o.routes[d.route.id];if(h){let g=await Wg(h,c);return g.links?g.links():[]}return[]}));return ay(u.flat(1).filter(Fg).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function A0(r,o,c,u,d,h){let g=(p,x)=>c[x]?p.route.id!==c[x].route.id:!0,b=(p,x)=>c[x].pathname!==p.pathname||c[x].route.path?.endsWith("*")&&c[x].params["*"]!==p.params["*"];return h==="assets"?o.filter((p,x)=>g(p,x)||b(p,x)):h==="data"?o.filter((p,x)=>{let j=u.routes[p.route.id];if(!j||!j.hasLoader)return!1;if(g(p,x)||b(p,x))return!0;if(p.route.shouldRevalidate){let y=p.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:c[0]?.params||{},nextUrl:new URL(r,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Ig(r,o,{includeHydrateFallback:c}={}){return ey(r.map(u=>{let d=o.routes[u.route.id];if(!d)return[];let h=[d.module];return d.clientActionModule&&(h=h.concat(d.clientActionModule)),d.clientLoaderModule&&(h=h.concat(d.clientLoaderModule)),c&&d.hydrateFallbackModule&&(h=h.concat(d.hydrateFallbackModule)),d.imports&&(h=h.concat(d.imports)),h}).flat(1))}function ey(r){return[...new Set(r)]}function ty(r){let o={},c=Object.keys(r).sort();for(let u of c)o[u]=r[u];return o}function ay(r,o){let c=new Set;return new Set(o),r.reduce((u,d)=>{let h=JSON.stringify(ty(d));return c.has(h)||(c.add(h),u.push({key:h,link:d})),u},[])}function W0(){let r=E.useContext(Vl);return sc(r,"You must render this element inside a <DataRouterContext.Provider> element"),r}function ly(){let r=E.useContext(yi);return sc(r,"You must render this element inside a <DataRouterStateContext.Provider> element"),r}var ic=E.createContext(void 0);ic.displayName="FrameworkContext";function F0(){let r=E.useContext(ic);return sc(r,"You must render this element inside a <HydratedRouter> element"),r}function ny(r,o){let c=E.useContext(ic),[u,d]=E.useState(!1),[h,g]=E.useState(!1),{onFocus:b,onBlur:p,onMouseEnter:x,onMouseLeave:j,onTouchStart:y}=o,z=E.useRef(null);E.useEffect(()=>{if(r==="render"&&g(!0),r==="viewport"){let O=G=>{G.forEach(H=>{g(H.isIntersecting)})},C=new IntersectionObserver(O,{threshold:.5});return z.current&&C.observe(z.current),()=>{C.disconnect()}}},[r]),E.useEffect(()=>{if(u){let O=setTimeout(()=>{g(!0)},100);return()=>{clearTimeout(O)}}},[u]);let B=()=>{d(!0)},X=()=>{d(!1),g(!1)};return c?r!=="intent"?[h,z,{}]:[h,z,{onFocus:Gn(b,B),onBlur:Gn(p,X),onMouseEnter:Gn(x,B),onMouseLeave:Gn(j,X),onTouchStart:Gn(y,B)}]:[!1,z,{}]}function Gn(r,o){return c=>{r&&r(c),c.defaultPrevented||o(c)}}function sy({page:r,...o}){let{router:c}=W0(),u=E.useMemo(()=>U0(c.routes,r,c.basename),[c.routes,r,c.basename]);return u?E.createElement(ry,{page:r,matches:u,...o}):null}function iy(r){let{manifest:o,routeModules:c}=F0(),[u,d]=E.useState([]);return E.useEffect(()=>{let h=!1;return Pg(r,o,c).then(g=>{h||d(g)}),()=>{h=!0}},[r,o,c]),u}function ry({page:r,matches:o,...c}){let u=La(),{future:d,manifest:h,routeModules:g}=F0(),{basename:b}=W0(),{loaderData:p,matches:x}=ly(),j=E.useMemo(()=>A0(r,o,x,h,u,"data"),[r,o,x,h,u]),y=E.useMemo(()=>A0(r,o,x,h,u,"assets"),[r,o,x,h,u]),z=E.useMemo(()=>{if(r===u.pathname+u.search+u.hash)return[];let O=new Set,C=!1;if(o.forEach(H=>{let V=h.routes[H.route.id];!V||!V.hasLoader||(!j.some(re=>re.route.id===H.route.id)&&H.route.id in p&&g[H.route.id]?.shouldRevalidate||V.hasClientLoader?C=!0:O.add(H.route.id))}),O.size===0)return[];let G=Jg(r,b,d.unstable_trailingSlashAwareDataRequests,"data");return C&&O.size>0&&G.searchParams.set("_routes",o.filter(H=>O.has(H.route.id)).map(H=>H.route.id).join(",")),[G.pathname+G.search]},[b,d.unstable_trailingSlashAwareDataRequests,p,u,h,j,o,r,g]),B=E.useMemo(()=>Ig(y,h),[y,h]),X=iy(y);return E.createElement(E.Fragment,null,z.map(O=>E.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...c})),B.map(O=>E.createElement("link",{key:O,rel:"modulepreload",href:O,...c})),X.map(({key:O,link:C})=>E.createElement("link",{key:O,nonce:c.nonce,...C,crossOrigin:C.crossOrigin??c.crossOrigin})))}function uy(...r){return o=>{r.forEach(c=>{typeof c=="function"?c(o):c!=null&&(c.current=o)})}}var cy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cy&&(window.__reactRouterVersion="7.13.0")}catch{}function oy({basename:r,children:o,unstable_useTransitions:c,window:u}){let d=E.useRef();d.current==null&&(d.current=Xx({window:u,v5Compat:!0}));let h=d.current,[g,b]=E.useState({action:h.action,location:h.location}),p=E.useCallback(x=>{c===!1?b(x):E.startTransition(()=>b(x))},[c]);return E.useLayoutEffect(()=>h.listen(p),[h,p]),E.createElement(Bg,{basename:r,children:o,location:g.location,navigationType:g.action,navigator:h,unstable_useTransitions:c})}var P0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vt=E.forwardRef(function({onClick:o,discover:c="render",prefetch:u="none",relative:d,reloadDocument:h,replace:g,state:b,target:p,to:x,preventScrollReset:j,viewTransition:y,unstable_defaultShouldRevalidate:z,...B},X){let{basename:O,unstable_useTransitions:C}=E.useContext(_t),G=typeof x=="string"&&P0.test(x),H=G0(x,O);x=H.to;let V=Ng(x,{relative:d}),[re,te,$]=ny(u,B),U=my(x,{replace:g,state:b,target:p,preventScrollReset:j,relative:d,viewTransition:y,unstable_defaultShouldRevalidate:z,unstable_useTransitions:C});function F(Ae){o&&o(Ae),Ae.defaultPrevented||U(Ae)}let Q=E.createElement("a",{...B,...$,href:H.absoluteURL||V,onClick:H.isExternal||h?o:F,ref:uy(X,te),target:p,"data-discover":!G&&c==="render"?"true":void 0});return re&&!G?E.createElement(E.Fragment,null,Q,E.createElement(sy,{page:V})):Q});vt.displayName="Link";var I0=E.forwardRef(function({"aria-current":o="page",caseSensitive:c=!1,className:u="",end:d=!1,style:h,to:g,viewTransition:b,children:p,...x},j){let y=Zn(g,{relative:x.relative}),z=La(),B=E.useContext(yi),{navigator:X,basename:O}=E.useContext(_t),C=B!=null&&py(y)&&b===!0,G=X.encodeLocation?X.encodeLocation(y).pathname:y.pathname,H=z.pathname,V=B&&B.navigation&&B.navigation.location?B.navigation.location.pathname:null;c||(H=H.toLowerCase(),V=V?V.toLowerCase():null,G=G.toLowerCase()),V&&O&&(V=ca(V,O)||V);const re=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let te=H===G||!d&&H.startsWith(G)&&H.charAt(re)==="/",$=V!=null&&(V===G||!d&&V.startsWith(G)&&V.charAt(G.length)==="/"),U={isActive:te,isPending:$,isTransitioning:C},F=te?o:void 0,Q;typeof u=="function"?Q=u(U):Q=[u,te?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof h=="function"?h(U):h;return E.createElement(vt,{...x,"aria-current":F,className:Q,ref:j,style:Ae,to:g,viewTransition:b},typeof p=="function"?p(U):p)});I0.displayName="NavLink";var fy=E.forwardRef(({discover:r="render",fetcherKey:o,navigate:c,reloadDocument:u,replace:d,state:h,method:g=hi,action:b,onSubmit:p,relative:x,preventScrollReset:j,viewTransition:y,unstable_defaultShouldRevalidate:z,...B},X)=>{let{unstable_useTransitions:O}=E.useContext(_t),C=gy(),G=yy(b,{relative:x}),H=g.toLowerCase()==="get"?"get":"post",V=typeof b=="string"&&P0.test(b),re=te=>{if(p&&p(te),te.defaultPrevented)return;te.preventDefault();let $=te.nativeEvent.submitter,U=$?.getAttribute("formmethod")||g,F=()=>C($||te.currentTarget,{fetcherKey:o,method:U,navigate:c,replace:d,state:h,relative:x,preventScrollReset:j,viewTransition:y,unstable_defaultShouldRevalidate:z});O&&c!==!1?E.startTransition(()=>F()):F()};return E.createElement("form",{ref:X,method:H,action:G,onSubmit:u?p:re,...B,"data-discover":!V&&r==="render"?"true":void 0})});fy.displayName="Form";function dy(r){return`${r} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function em(r){let o=E.useContext(Vl);return _e(o,dy(r)),o}function my(r,{target:o,replace:c,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b,unstable_useTransitions:p}={}){let x=ac(),j=La(),y=Zn(r,{relative:h});return E.useCallback(z=>{if(Vg(z,o)){z.preventDefault();let B=c!==void 0?c:Xn(j)===Xn(y),X=()=>x(r,{replace:B,state:u,preventScrollReset:d,relative:h,viewTransition:g,unstable_defaultShouldRevalidate:b});p?E.startTransition(()=>X()):X()}},[j,x,y,c,u,o,r,d,h,g,b,p])}function rc(r){Lt(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 o=E.useRef(Iu(r)),c=E.useRef(!1),u=La(),d=E.useMemo(()=>Zg(u.search,c.current?null:o.current),[u.search]),h=ac(),g=E.useCallback((b,p)=>{const x=Iu(typeof b=="function"?b(new URLSearchParams(d)):b);c.current=!0,h("?"+x,p)},[h,d]);return[d,g]}var hy=0,xy=()=>`__${String(++hy)}__`;function gy(){let{router:r}=em("useSubmit"),{basename:o}=E.useContext(_t),c=wg(),u=r.fetch,d=r.navigate;return E.useCallback(async(h,g={})=>{let{action:b,method:p,encType:x,formData:j,body:y}=Kg(h,o);if(g.navigate===!1){let z=g.fetcherKey||xy();await u(z,c,g.action||b,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:j,body:y,formMethod:g.method||p,formEncType:g.encType||x,flushSync:g.flushSync})}else await d(g.action||b,{unstable_defaultShouldRevalidate:g.unstable_defaultShouldRevalidate,preventScrollReset:g.preventScrollReset,formData:j,body:y,formMethod:g.method||p,formEncType:g.encType||x,replace:g.replace,state:g.state,fromRouteId:c,flushSync:g.flushSync,viewTransition:g.viewTransition})},[u,d,o,c])}function yy(r,{relative:o}={}){let{basename:c}=E.useContext(_t),u=E.useContext(Gt);_e(u,"useFormAction must be used inside a RouteContext");let[d]=u.matches.slice(-1),h={...Zn(r||".",{relative:o})},g=La();if(r==null){h.search=g.search;let b=new URLSearchParams(h.search),p=b.getAll("index");if(p.some(j=>j==="")){b.delete("index"),p.filter(y=>y).forEach(y=>b.append("index",y));let j=b.toString();h.search=j?`?${j}`:""}}return(!r||r===".")&&d.route.index&&(h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(h.pathname=h.pathname==="/"?c:ua([c,h.pathname])),Xn(h)}function py(r,{relative:o}={}){let c=E.useContext(Q0);_e(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=em("useViewTransitionState"),d=Zn(r,{relative:o});if(!c.isTransitioning)return!1;let h=ca(c.currentLocation.pathname,u)||c.currentLocation.pathname,g=ca(c.nextLocation.pathname,u)||c.nextLocation.pathname;return gi(d.pathname,g)!=null||gi(d.pathname,h)!=null}const tm=E.createContext({projects:[],activeProject:null,setActiveProject:()=>{},refreshProjects:()=>{}});function kn(){return E.useContext(tm)}function vy(){const[r,o]=E.useState([]),[c,u]=rc(),d=E.useCallback(async()=>{try{const x=await(await fetch("/api/projects")).json();x.ok&&o(x.data||[])}catch{}},[]);E.useEffect(()=>{d()},[d]);const h=c.get("project"),g=h?r.find(p=>p.id===h)||r[0]||null:r[0]||null,b=E.useCallback(p=>{u(x=>(x.set("project",p),x))},[u]);return{projects:r,activeProject:g,setActiveProject:b,refreshProjects:d}}function am(r){const[o,c]=E.useState(null),[u,d]=E.useState(!0),[h,g]=E.useState(null),[b,p]=E.useState(0),[x,j]=E.useState(null),y=E.useCallback(()=>p(z=>z+1),[]);return E.useEffect(()=>{let z=!1;return d(!0),fetch(r).then(B=>{if(!B.ok)throw new Error(`HTTP ${B.status}`);return B.json()}).then(B=>{z||(c(B.data??B),g(null),j(new Date))}).catch(B=>{z||g(String(B.message||B))}).finally(()=>{z||d(!1)}),()=>{z=!0}},[r,b]),{data:o,loading:u,error:h,refetch:y,fetchedAt:x}}function Ge(r){const{activeProject:o}=kn(),c=r.includes("?")?"&":"?",u=o?`${r}${c}project=${o.id}`:r;return am(u)}function vi(r){const{url:o="/api/events"}=r,c=E.useRef(null),u=E.useRef(null),d=E.useRef(r);d.current=r;const[h,g]=E.useState("connecting"),b=E.useCallback(()=>{c.current&&c.current.close(),g("connecting");const p=new EventSource(o);c.current=p;const x=["heartbeat","increment-update","analytics-event","cost-update","notification","sync-update","sync-audit","error-detected","config-changed","activity","command-output","command-complete","job-progress"];for(const j of x)p.addEventListener(j,y=>{try{const z=JSON.parse(y.data);d.current.onEvent?.[j]?.(z),d.current.onAnyEvent?.(j,z)}catch{}});p.onopen=()=>{g("connected")},p.onerror=()=>{p.close(),g("disconnected"),u.current=setTimeout(()=>{c.current===p&&b()},3e3)}},[o]);return E.useEffect(()=>(b(),()=>{u.current&&(clearTimeout(u.current),u.current=null),c.current?.close(),c.current=null}),[b]),{status:h}}const by=[{path:"/",label:"Overview",icon:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-4 0a1 1 0 01-1-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 01-1 1"},{path:"/increments",label:"Increments",icon:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"},{path:"/analytics",label:"Analytics",icon:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"},{path:"/costs",label:"Costs",icon:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},{path:"/sync",label:"Sync",icon:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},{path:"/errors",label:"Errors",icon:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4.5c-.77-.833-2.694-.833-3.464 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z"},{path:"/activity",label:"Activity",icon:"M13 10V3L4 14h7v7l9-11h-7z"},{path:"/notifications",label:"Notifications",icon:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",badge:!0},{path:"/config",label:"Config",icon:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z M15 12a3 3 0 11-6 0 3 3 0 016 0z"},{path:"/plugins",label:"Plugins",icon:"M17 14v6m-3-3h6M6 10h2a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2zm10 0h2a2 2 0 002-2V6a2 2 0 00-2-2h-2a2 2 0 00-2 2v2a2 2 0 002 2zM6 20h2a2 2 0 002-2v-2a2 2 0 00-2-2H6a2 2 0 00-2 2v2a2 2 0 002 2z"},{path:"/repos",label:"Repos",icon:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"},{path:"/services",label:"Services",icon:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"}];function jy({d:r}){return n.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:r})})}function Ny(){const{projects:r,activeProject:o,setActiveProject:c}=kn(),[u]=rc(),{data:d}=Ge("/api/overview"),[h,g]=E.useState(null),b=E.useCallback(z=>{const B=z;B?.pendingCount!=null&&g(B.pendingCount)},[]),{status:p}=vi({onEvent:{notification:b}}),x=h??d?.notifications?.pendingCount??0,j=u.get("project"),y=z=>j?`${z}?project=${j}`:z;return n.jsxs("aside",{className:"w-56 bg-gray-900 border-r border-gray-800 flex flex-col h-screen sticky top-0",children:[n.jsx("div",{className:"px-4 py-5 border-b border-gray-800",children:n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("div",{className:"w-8 h-8 bg-indigo-500 rounded-lg flex items-center justify-center",children:n.jsx("span",{className:"text-white font-bold text-sm",children:"SW"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-white font-semibold text-sm",children:"SpecWeave"}),n.jsx("div",{className:"text-gray-500 text-xs",children:"Dashboard"})]})]})}),r.length>0&&n.jsxs("div",{className:"px-3 py-3 border-b border-gray-800",children:[n.jsx("label",{className:"text-[10px] text-gray-500 uppercase tracking-wider mb-1 block",children:"Project"}),n.jsx("select",{value:o?.id||"",onChange:z=>c(z.target.value),className:"w-full bg-gray-800 border border-gray-700 text-gray-300 text-xs rounded-lg px-2 py-1.5 focus:ring-indigo-500 focus:border-indigo-500",children:r.map(z=>n.jsx("option",{value:z.id,children:z.name},z.id))})]}),n.jsx("nav",{className:"flex-1 overflow-y-auto py-3 px-2",children:by.map(z=>n.jsxs(I0,{to:y(z.path),end:z.path==="/",className:({isActive:B})=>`flex items-center gap-3 px-3 py-2 rounded-lg text-sm mb-0.5 transition-colors ${B?"bg-indigo-500/10 text-indigo-400":"text-gray-400 hover:bg-gray-800 hover:text-gray-200"}`,children:[n.jsx(jy,{d:z.icon}),n.jsx("span",{className:"flex-1",children:z.label}),z.badge&&x>0&&n.jsx("span",{className:"min-w-[18px] h-[18px] px-1 bg-rose-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center",children:x>99?"99+":x})]},z.path))}),n.jsx("div",{className:"px-4 py-3 border-t border-gray-800",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("div",{className:`w-2 h-2 rounded-full ${p==="connected"?"bg-emerald-400 pulse-dot":p==="connecting"?"bg-amber-400 pulse-dot":"bg-gray-500"}`}),n.jsx("span",{className:"text-xs text-gray-500",children:p==="connected"?"Connected":p==="connecting"?"Connecting...":"Disconnected"})]}),n.jsxs("span",{className:"text-[10px] text-gray-600",children:[r.length," project",r.length!==1?"s":""]})]})})]})}function Sy(){const{data:r}=am("/api/health"),o=r?.projectRoot?.split("/").pop()||"Project",c=r?.uptime?Ey(r.uptime):"...";return n.jsxs("header",{className:"h-14 bg-gray-900/50 backdrop-blur border-b border-gray-800 flex items-center justify-between px-6",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("h1",{className:"text-gray-200 font-medium text-sm",children:o}),n.jsx("span",{className:"text-gray-600 text-xs",children:"|"}),n.jsxs("span",{className:"text-gray-500 text-xs",children:["Uptime: ",c]})]}),n.jsx("div",{className:"flex items-center gap-4",children:n.jsxs("span",{className:"text-gray-500 text-xs",children:[r?.connections??0," client",(r?.connections??0)!==1?"s":""]})})]})}function Ey(r){if(r<60)return`${Math.floor(r)}s`;if(r<3600)return`${Math.floor(r/60)}m`;const o=Math.floor(r/3600),c=Math.floor(r%3600/60);return`${o}h ${c}m`}const Ty={indigo:"from-indigo-500/10 to-indigo-500/5 border-indigo-500/20",emerald:"from-emerald-500/10 to-emerald-500/5 border-emerald-500/20",amber:"from-amber-500/10 to-amber-500/5 border-amber-500/20",rose:"from-rose-500/10 to-rose-500/5 border-rose-500/20",cyan:"from-cyan-500/10 to-cyan-500/5 border-cyan-500/20"},Cy={indigo:"text-indigo-400",emerald:"text-emerald-400",amber:"text-amber-400",rose:"text-rose-400",cyan:"text-cyan-400"};function le({title:r,value:o,subtitle:c,tooltip:u,color:d="indigo"}){return n.jsxs("div",{className:`bg-gradient-to-br ${Ty[d]} border rounded-xl p-4 relative group`,title:u,children:[n.jsx("div",{className:"text-gray-400 text-xs font-medium uppercase tracking-wider mb-2",children:r}),n.jsx("div",{className:`text-2xl font-bold ${Cy[d]}`,children:o}),c&&n.jsx("div",{className:"text-gray-500 text-xs mt-1",children:c}),u&&n.jsxs("div",{className:"absolute bottom-full left-1/2 -translate-x-1/2 mb-2 px-2.5 py-1.5 bg-gray-800 border border-gray-700 rounded-lg text-[10px] text-gray-300 whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none z-10 shadow-lg",children:[u,n.jsx("div",{className:"absolute top-full left-1/2 -translate-x-1/2 -mt-px border-4 border-transparent border-t-gray-800"})]})]})}const Ay={active:"#6366f1",completed:"#10b981",paused:"#f59e0b",planning:"#06b6d4",abandoned:"#ef4444",backlog:"#6b7280",ready_for_review:"#8b5cf6"};function My(r){return Ay[r]||"#6b7280"}function zy({segments:r,size:o=160,centerLabel:c,centerValue:u}){const d=r.reduce((p,x)=>p+x.value,0);if(d===0)return n.jsx("div",{className:"flex items-center justify-center",style:{width:o,height:o},children:n.jsx("span",{className:"text-gray-600 text-xs",children:"No data"})});const h=52,g=2*Math.PI*h;let b=0;return n.jsxs("div",{className:"relative inline-flex items-center justify-center",style:{width:o,height:o},children:[n.jsx("svg",{viewBox:"0 0 128 128",className:"w-full h-full -rotate-90",children:r.map((p,x)=>{const y=p.value/d*g,z=b;return b+=y,n.jsx("circle",{cx:"64",cy:"64",r:h,fill:"none",stroke:p.color,strokeWidth:"12",strokeDasharray:`${y} ${g-y}`,strokeDashoffset:-z,className:"transition-all duration-500"},x)})}),n.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[u!=null&&n.jsx("span",{className:"text-xl font-bold text-white",children:u}),c&&n.jsx("span",{className:"text-[10px] text-gray-500 uppercase tracking-wider",children:c})]})]})}function Ry(r){return Object.entries(r).filter(([o,c])=>c>0).map(([o,c])=>({label:o,value:c,color:My(o)}))}const _y={default:"bg-gray-800 text-gray-300",success:"bg-emerald-500/15 text-emerald-400",warning:"bg-amber-500/15 text-amber-400",error:"bg-rose-500/15 text-rose-400",info:"bg-cyan-500/15 text-cyan-400"};function he({label:r,variant:o="default"}){return n.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-md text-xs font-medium ${_y[o]}`,children:r})}function bi(r){switch(r){case"active":case"running":return"info";case"completed":case"success":return"success";case"paused":case"pending":case"planning":return"warning";case"failed":case"abandoned":case"error":return"error";default:return"default"}}function Oy({size:r="md"}){const o={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8"};return n.jsxs("svg",{className:`${o[r]} animate-spin text-indigo-400`,viewBox:"0 0 24 24",fill:"none",children:[n.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),n.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})}function bt(){return n.jsx("div",{className:"flex items-center justify-center h-64",children:n.jsx(Oy,{size:"lg"})})}function M0(r){switch(r){case"connected":return"success";case"sync_failed":return"warning";case"configured_never_synced":return"info";default:return"default"}}function Dy(r){switch(r){case"connected":return"Connected";case"sync_failed":return"Sync Failed";case"configured_never_synced":return"Ready";case"not_configured":return"Not Configured";default:return r||"Unknown"}}const Ju=r=>r.totalCost===0&&r.sessionCount>0;function wy(){const{data:r,loading:o,error:c}=Ge("/api/overview"),[u,d]=E.useState([]),{activeProject:h}=kn(),g=E.useRef(null);E.useEffect(()=>{if(!h||g.current===h.id)return;g.current=h.id;const x=`project=${h.id}`;fetch(`/api/activity/stream?limit=20&${x}`).then(j=>j.json()).then(j=>{j.ok&&Array.isArray(j.data)&&d(j.data)}).catch(()=>{})},[h]);const b=E.useCallback(x=>{d(j=>[x,...j].slice(0,20))},[]);if(vi({onEvent:{activity:b}}),o)return n.jsx(bt,{});if(c)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",c]});if(!r)return null;const p=Ry(r.project.statusBreakdown);return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("h2",{className:"text-lg font-semibold text-gray-200",children:[r.project.name||"Project"," Overview"]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(vt,{to:"/increments?status=active",className:"group",children:n.jsx(le,{title:"Active Increments",value:r.project.activeIncrements,subtitle:`${r.project.totalIncrements} total`,color:"indigo"})}),n.jsx(vt,{to:"/increments?status=completed",className:"group",children:n.jsx(le,{title:"Completed",value:r.project.completedIncrements,subtitle:`${Math.round(r.project.completedIncrements/Math.max(r.project.totalIncrements,1)*100)}% done`,color:"emerald"})}),n.jsx(vt,{to:"/costs",className:"group",children:n.jsx(le,{title:"Total Cost",value:Ju(r.costs)?"$0.00":`$${r.costs.totalCost.toFixed(2)}`,subtitle:Ju(r.costs)?"Max Plan":`${r.costs.sessionCount.toLocaleString()} sessions`,color:"amber"})}),n.jsx(vt,{to:"/analytics",className:"group",children:n.jsx(le,{title:"Events Today",value:r.analytics.last24hEvents,subtitle:`${r.analytics.totalEvents.toLocaleString()} total`,color:"cyan"})})]}),Ju(r.costs)&&n.jsxs("div",{className:"bg-indigo-500/10 border border-indigo-500/20 rounded-xl px-4 py-3 flex items-center gap-3",children:[n.jsx(he,{label:"Max Plan",variant:"info"}),n.jsx("span",{className:"text-xs text-gray-300",children:"API costs included in subscription. Token usage tracked for analytics."})]}),n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Increment Status"}),n.jsx("div",{className:"flex items-center justify-center",children:n.jsx(zy,{segments:p,centerValue:r.project.totalIncrements,centerLabel:"total"})}),n.jsx("div",{className:"flex flex-wrap gap-2 mt-4 justify-center",children:p.map(x=>n.jsxs(vt,{to:`/increments?status=${x.label.toLowerCase()}`,className:"flex items-center gap-1.5 hover:opacity-80 transition-opacity",children:[n.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:x.color}}),n.jsxs("span",{className:"text-xs text-gray-500 hover:text-gray-300",children:[x.label," (",x.value,")"]})]},x.label))})]}),n.jsxs(vt,{to:"/sync",className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5 hover:border-gray-700 transition-colors block",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Sync Health"}),n.jsx("div",{className:"space-y-3",children:Object.entries(r.sync.platforms).length===0?n.jsx("p",{className:"text-gray-600 text-xs",children:"No sync platforms configured"}):Object.entries(r.sync.platforms).map(([x,j])=>n.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-800/50 rounded-lg",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-sm text-gray-300 capitalize",children:x}),j.configDetail&&n.jsx("div",{className:"text-[10px] text-gray-600 mt-0.5",children:j.configDetail}),!j.configDetail&&j.lastImport&&n.jsxs("div",{className:"text-xs text-gray-600 mt-0.5",children:["Last: ",new Date(j.lastImport).toLocaleDateString()]})]}),n.jsx(he,{label:Dy(j.connectionStatus||j.lastSyncResult),variant:M0(j.connectionStatus)!=="default"?M0(j.connectionStatus):bi(j.lastSyncResult||"")})]},x))}),n.jsx("div",{className:"mt-4 pt-4 border-t border-gray-800",children:n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500",children:"Notifications"}),n.jsxs("div",{className:"flex gap-2",children:[r.notifications.criticalCount>0&&n.jsx(vt,{to:"/notifications",onClick:x=>x.stopPropagation(),children:n.jsx(he,{label:`${r.notifications.criticalCount} critical`,variant:"error"})}),n.jsx(vt,{to:"/notifications",onClick:x=>x.stopPropagation(),children:n.jsx(he,{label:`${r.notifications.pendingCount} pending`,variant:r.notifications.pendingCount>0?"warning":"default"})})]})]})})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Live Activity"}),n.jsx(vt,{to:"/activity",className:"text-[10px] text-indigo-400 hover:text-indigo-300",children:"View all"})]}),n.jsx("div",{className:"space-y-2 max-h-64 overflow-y-auto custom-scrollbar",children:u.length===0?n.jsx("p",{className:"text-gray-600 text-xs",children:"No recent activity"}):u.map((x,j)=>n.jsxs("div",{className:"flex items-start gap-2 py-1 slide-in",children:[n.jsx("div",{className:`w-1.5 h-1.5 rounded-full mt-1.5 ${x.severity==="error"?"bg-rose-400":x.severity==="warning"?"bg-amber-400":"bg-gray-600"}`}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsx("div",{className:"text-xs text-gray-400 truncate",children:x.title}),n.jsxs("div",{className:"text-[10px] text-gray-600",children:[x.category,x.timestamp&&` · ${Uy(x.timestamp)}`]})]})]},j))})]})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Increment Types"}),n.jsx("div",{className:"flex gap-4 flex-wrap",children:Object.entries(r.project.typeBreakdown).map(([x,j])=>n.jsxs(vt,{to:`/increments?type=${x}`,className:"flex items-center gap-2 px-3 py-2 bg-gray-800/50 rounded-lg hover:bg-gray-800/80 transition-colors",children:[n.jsx("span",{className:"text-sm text-gray-300 capitalize",children:x}),n.jsx("span",{className:"text-xs text-gray-500 bg-gray-800 px-2 py-0.5 rounded",children:j})]},x))})]})]})}function Uy(r){try{const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}catch{return""}}function al(r,o=""){const[c,u]=rc(),d=c.get(r)??o,h=E.useCallback(g=>{u(b=>{const p=new URLSearchParams(b);return g&&g!==o?p.set(r,g):p.delete(r),p})},[r,o,u]);return[d,h]}function lm({title:r,description:o}){return n.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[n.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center mb-4",children:n.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"})})}),n.jsx("h3",{className:"text-gray-400 text-sm font-medium",children:r}),o&&n.jsx("p",{className:"text-gray-600 text-xs mt-1 max-w-xs",children:o})]})}function Ly(){const{data:r,loading:o,error:c}=Ge("/api/increments"),[u,d]=al("status","all"),[h,g]=al("type","all"),b=ac();if(o)return n.jsx(bt,{});if(c)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",c]});if(!r)return null;const p=r.increments.filter(y=>!(u!=="all"&&y.status!==u||h!=="all"&&y.type!==h)),x=[...new Set(r.increments.map(y=>y.status))],j=[...new Set(r.increments.map(y=>y.type))];return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Increments"}),n.jsxs("span",{className:"text-sm text-gray-500",children:[r.increments.length," total"]})]}),n.jsxs("div",{className:"space-y-3",children:[n.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n.jsx("span",{className:"text-xs text-gray-500 w-14",children:"Status:"}),n.jsxs("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:[n.jsx(di,{label:"All",active:u==="all",onClick:()=>d("all")}),x.map(y=>n.jsx(di,{label:y,active:u===y,onClick:()=>d(y),count:r.increments.filter(z=>z.status===y).length},y))]})]}),n.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[n.jsx("span",{className:"text-xs text-gray-500 w-14",children:"Type:"}),n.jsxs("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:[n.jsx(di,{label:"All",active:h==="all",onClick:()=>g("all")}),j.map(y=>n.jsx(di,{label:y,active:h===y,onClick:()=>g(y),count:r.increments.filter(z=>z.type===y).length},y))]})]}),n.jsxs("span",{className:"text-xs text-gray-500",children:[p.length," matching"]})]}),p.length===0?n.jsx(lm,{title:"No increments match filters",description:"Try adjusting your filters"}):n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"ID"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Title"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Status"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Type"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Priority"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Tasks"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"ACs"}),n.jsx("th",{className:"text-left px-4 py-3 text-xs text-gray-500 font-medium uppercase",children:"Last Activity"})]})}),n.jsx("tbody",{children:p.map(y=>n.jsxs("tr",{onClick:()=>b(`/increments/${y.id}`),className:"border-b border-gray-800/50 hover:bg-gray-800/30 transition-colors cursor-pointer",children:[n.jsx("td",{className:"px-4 py-3",children:n.jsx("span",{className:"text-xs text-indigo-400 font-mono",children:y.id})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx("span",{className:"text-sm text-gray-300",children:y.title})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx(he,{label:y.status,variant:bi(y.status)})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx("span",{className:"text-xs text-gray-400 capitalize",children:y.type})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx(Hy,{priority:y.priority})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx(z0,{completed:y.tasks.completed,total:y.tasks.total})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx(z0,{completed:y.acs.completed,total:y.acs.total})}),n.jsx("td",{className:"px-4 py-3",children:n.jsx("span",{className:"text-xs text-gray-500",children:y.lastActivity?By(y.lastActivity):"-"})})]},y.id))})]})})]})}function di({label:r,active:o,onClick:c,count:u}){return n.jsxs("button",{onClick:c,className:`px-3 py-1 text-xs rounded-md transition-colors capitalize ${o?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:[r,u!==void 0&&n.jsx("span",{className:"ml-1 text-[10px] text-gray-500",children:u})]})}function z0({completed:r,total:o}){const c=o>0?Math.round(r/o*100):0;return n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("div",{className:"w-16 h-1.5 bg-gray-800 rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full bg-indigo-500 rounded-full transition-all",style:{width:`${c}%`}})}),n.jsxs("span",{className:"text-xs text-gray-500",children:[r,"/",o]})]})}function Hy({priority:r}){const o={P0:"text-rose-400 bg-rose-500/10",P1:"text-amber-400 bg-amber-500/10",P2:"text-cyan-400 bg-cyan-500/10",P3:"text-gray-400 bg-gray-500/10"};return n.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded ${o[r]||o.P2}`,children:r})}function By(r){try{const o=new Date(r),u=new Date().getTime()-o.getTime(),d=Math.floor(u/6e4);if(d<1)return"Just now";if(d<60)return`${d}m ago`;const h=Math.floor(d/60);if(h<24)return`${h}h ago`;const g=Math.floor(h/24);return g<7?`${g}d ago`:o.toLocaleDateString()}catch{return r}}function qy(){const[r,o]=E.useState("commands"),[c,u]=E.useState(!1),{data:d,loading:h,error:g,refetch:b,fetchedAt:p}=Ge("/api/analytics/summary"),{data:x,loading:j,refetch:y}=Ge("/api/analytics/skills");if(h||j)return n.jsx(bt,{});if(g)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",g]});if(!d)return null;const z=d.topCommands?.reduce((O,C)=>O+C.count,0)||0,B=d.topSkills?.reduce((O,C)=>O+C.count,0)||0,X=d.topAgents?.reduce((O,C)=>O+C.count,0)||0;return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Analytics"}),n.jsxs("div",{className:"flex items-center gap-3",children:[p&&n.jsxs("span",{className:"text-[10px] text-gray-600",children:["Updated ",p.toLocaleTimeString()]}),n.jsxs("span",{className:"text-sm text-gray-500",children:[d.totalEvents.toLocaleString()," total events"]}),n.jsx("button",{onClick:()=>{u(!0),b(),y(),setTimeout(()=>u(!1),600)},disabled:c,className:"p-1.5 text-gray-500 hover:text-gray-300 hover:bg-gray-800 rounded-lg transition-colors disabled:opacity-50",title:"Refresh analytics",children:n.jsx("svg",{className:`w-4 h-4 ${c?"animate-spin":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})})})]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Total Events",value:d.totalEvents.toLocaleString(),subtitle:`${d.successRate}% success rate`,color:"indigo",tooltip:`${d.totalEvents} events tracked from analytics JSONL`}),n.jsx(le,{title:"Commands",value:z.toLocaleString(),subtitle:`${d.topCommands?.length||0} unique`,color:"cyan",tooltip:`${z} total command invocations across ${d.topCommands?.length||0} distinct commands`}),n.jsx(le,{title:"Skills",value:B.toLocaleString(),subtitle:`${d.topSkills?.length||0} unique`,color:"emerald",tooltip:`${B} total skill activations across ${d.topSkills?.length||0} distinct skills`}),n.jsx(le,{title:"Agents",value:X.toLocaleString(),subtitle:`${d.topAgents?.length||0} unique`,color:"amber",tooltip:`${X} agent spawns across ${d.topAgents?.length||0} distinct agent types`})]}),n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:[{key:"commands",label:"Commands"},{key:"skills",label:"Skills"},{key:"agents",label:"Agents"},{key:"daily",label:"Daily Trends"}].map(O=>n.jsx("button",{onClick:()=>o(O.key),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${r===O.key?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:O.label},O.key))}),r==="commands"&&n.jsx(Yy,{commands:d.topCommands||[]}),r==="skills"&&n.jsx(Gy,{skills:x||[]}),r==="agents"&&n.jsx(Xy,{agents:d.topAgents||[]}),r==="daily"&&n.jsx(Qy,{days:d.dailySummaries||[]})]})}function Yy({commands:r}){if(r.length===0)return n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:n.jsx("p",{className:"text-gray-500 text-sm",children:"No command data available"})});const o=[...r].sort((u,d)=>d.count-u.count),c=o[0]?.count||1;return n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Top Commands"})}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500 w-12",children:"Rank"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Command"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Usage"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Count"})]})}),n.jsx("tbody",{children:o.map((u,d)=>{const h=Math.max(2,u.count/c*100);return n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[n.jsxs("td",{className:"px-4 py-2.5 text-xs text-gray-600",children:["#",d+1]}),n.jsx("td",{className:"px-4 py-2.5",children:n.jsx("span",{className:"text-sm text-gray-300 font-mono",children:u.name})}),n.jsx("td",{className:"px-4 py-2.5",children:n.jsx("div",{className:"w-full h-1.5 bg-gray-800 rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full rounded-full bg-indigo-500/60 transition-all",style:{width:`${h}%`}})})}),n.jsx("td",{className:"px-4 py-2.5 text-sm font-mono text-gray-400 text-right",children:u.count.toLocaleString()})]},u.name)})})]})]})}function Gy({skills:r}){const o=[...r].sort((c,u)=>u.count-c.count);return o.length===0?n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:n.jsx("p",{className:"text-gray-500 text-sm",children:"No skill usage data available"})}):n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Skill Usage Leaderboard"})}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500 w-12",children:"Rank"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Skill Name"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Plugin"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Invocations"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Success Rate"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Last Used"})]})}),n.jsx("tbody",{children:o.map((c,u)=>{const d=c.count>0?Math.round(c.successCount/c.count*100):100,h=d>=90?"success":d>=70?"warning":"error";return n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[n.jsxs("td",{className:"px-4 py-2.5 text-xs text-gray-600",children:["#",u+1]}),n.jsx("td",{className:"px-4 py-2.5",children:n.jsx("span",{className:"text-sm text-gray-300 font-mono",children:c.name})}),n.jsx("td",{className:"px-4 py-2.5",children:c.plugin&&n.jsx("span",{className:"text-[10px] text-gray-600 bg-gray-800 px-1.5 py-0.5 rounded",children:c.plugin})}),n.jsx("td",{className:"px-4 py-2.5 text-sm font-mono text-gray-400 text-right",children:c.count.toLocaleString()}),n.jsx("td",{className:"px-4 py-2.5 text-right",children:n.jsx(he,{label:`${d}%`,variant:h})}),n.jsx("td",{className:"px-4 py-2.5 text-xs text-gray-600 text-right whitespace-nowrap",children:c.lastUsed?Vy(c.lastUsed):"-"})]},c.name)})})]})]})}function Xy({agents:r}){if(r.length===0)return n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:n.jsx("p",{className:"text-gray-500 text-sm",children:"No agent data available"})});const o=[...r].sort((u,d)=>d.count-u.count),c=o[0]?.count||1;return n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Top Agents"})}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500 w-12",children:"Rank"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Agent"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Usage"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Count"})]})}),n.jsx("tbody",{children:o.map((u,d)=>{const h=Math.max(2,u.count/c*100);return n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[n.jsxs("td",{className:"px-4 py-2.5 text-xs text-gray-600",children:["#",d+1]}),n.jsx("td",{className:"px-4 py-2.5",children:n.jsx("span",{className:"text-sm text-gray-300",children:u.name})}),n.jsx("td",{className:"px-4 py-2.5",children:n.jsx("div",{className:"w-full h-1.5 bg-gray-800 rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full rounded-full bg-cyan-500/60 transition-all",style:{width:`${h}%`}})})}),n.jsx("td",{className:"px-4 py-2.5 text-sm font-mono text-gray-400 text-right",children:u.count.toLocaleString()})]},u.name)})})]})]})}function Qy({days:r}){const o=r.slice(-14);if(o.length===0)return n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:n.jsx("p",{className:"text-gray-500 text-sm",children:"No daily data available"})});const c=Math.max(...o.map(h=>h.totalEvents),1),u=o.reduce((h,g)=>h+g.totalEvents,0),d=Math.round(u/o.length);return n.jsxs("div",{className:"space-y-6",children:[n.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[n.jsx(le,{title:"Period Total",value:u.toLocaleString(),subtitle:`Last ${o.length} days`,color:"indigo"}),n.jsx(le,{title:"Daily Average",value:d.toLocaleString(),color:"cyan"}),n.jsx(le,{title:"Peak Day",value:c.toLocaleString(),subtitle:o.find(h=>h.totalEvents===c)?.date||"",color:"emerald"})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsxs("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:["Daily Events (Last ",o.length," Days)"]}),n.jsx("div",{className:"flex items-end gap-1.5 h-40",children:o.map(h=>{const g=Math.max(2,h.totalEvents/c*100),b=h.date.slice(5);return n.jsxs("div",{className:"flex-1 flex flex-col items-center gap-1",children:[n.jsx("span",{className:"text-[9px] text-gray-500",children:h.totalEvents}),n.jsx("div",{className:"w-full bg-indigo-500/40 rounded-t hover:bg-indigo-500/60 transition-colors cursor-default",style:{height:`${g}%`},title:`${h.date}: ${h.totalEvents} events`}),n.jsx("span",{className:"text-[8px] text-gray-700",children:b})]},h.date)})})]})]})}function Vy(r){if(!r)return"";try{const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}catch{return""}}function nm({items:r,maxBars:o=10}){const c=[...r].sort((d,h)=>h.value-d.value).slice(0,o),u=Math.max(...c.map(d=>d.value),1);return n.jsx("div",{className:"space-y-2",children:c.map((d,h)=>n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("span",{className:"text-xs text-gray-400 w-28 truncate text-right",title:d.label,children:d.label}),n.jsx("div",{className:"flex-1 h-5 bg-gray-800 rounded overflow-hidden",children:n.jsx("div",{className:"h-full rounded transition-all duration-500",style:{width:`${d.value/u*100}%`,backgroundColor:d.color||"#6366f1"}})}),n.jsx("span",{className:"text-xs text-gray-500 w-10 text-right",children:d.value})]},h))})}function Zy(){const[r,o]=E.useState("overview"),[c,u]=E.useState(null),{data:d,loading:h,error:g}=Ge("/api/costs/summary");if(h)return n.jsx(bt,{});if(g)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",g]});if(!d)return null;const b=d.sessions||[],p=d.isMaxPlan===!0,x=d.modelBreakdown?Object.entries(d.modelBreakdown).map(([O,C])=>({model:O,...C})).sort((O,C)=>C.cost-O.cost):$y(b),j=b.reduce((O,C)=>O+(C.inputTokens||0),0),y=b.reduce((O,C)=>O+(C.outputTokens||0),0),z=b.reduce((O,C)=>O+(C.cacheReadTokens||0),0),B=b.reduce((O,C)=>O+(C.cacheWriteTokens||0),0),X=j+y+z+B;return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Token Usage & Costs"}),p&&n.jsxs("div",{className:"bg-indigo-500/10 border border-indigo-500/20 rounded-xl px-4 py-3 flex items-center gap-3",children:[n.jsx(he,{label:"Max Plan",variant:"info"}),n.jsx("span",{className:"text-xs text-gray-300",children:"API costs included in subscription. Token usage tracked for analytics."})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Total Cost",value:p?"$0.00":`$${d.totalCost.toFixed(2)}`,subtitle:p?"Included in plan":void 0,color:"amber"}),n.jsx(le,{title:"Cache Savings",value:`$${d.totalSavings.toFixed(2)}`,color:"emerald"}),n.jsx(le,{title:"Total Tokens",value:Xl(d.totalTokens),subtitle:Ky(d.totalTokens),color:"indigo"}),n.jsx(le,{title:"Sessions",value:d.sessionCount.toLocaleString(),color:"cyan"})]}),n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["overview","sessions"].map(O=>n.jsx("button",{onClick:()=>o(O),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${r===O?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:O==="overview"?"Breakdown":`Sessions (${b.length})`},O))}),r==="overview"&&n.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Cost by Model"}),x.length>0?n.jsx(nm,{items:x.map(O=>({label:O.model,value:parseFloat(O.cost.toFixed(2)),color:"#f59e0b"}))}):n.jsx("p",{className:"text-gray-600 text-xs",children:"No model data"})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Token Breakdown"}),n.jsxs("div",{className:"space-y-3",children:[n.jsx(mi,{label:"Input",value:j,total:X,color:"bg-indigo-500"}),n.jsx(mi,{label:"Output",value:y,total:X,color:"bg-cyan-500"}),z>0&&n.jsx(mi,{label:"Cache Read",value:z,total:X,color:"bg-emerald-500"}),B>0&&n.jsx(mi,{label:"Cache Write",value:B,total:X,color:"bg-amber-500"})]})]}),x.length>0&&n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden lg:col-span-2",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Model Details"})}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Model"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Sessions"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Tokens"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Cost"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Avg/Session"})]})}),n.jsx("tbody",{children:x.map(O=>n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[n.jsx("td",{className:"px-4 py-2 text-sm text-gray-300",children:O.model}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:O.sessions.toLocaleString()}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:Xl(O.tokens)}),n.jsxs("td",{className:"px-4 py-2 text-xs text-amber-400 text-right",children:["$",O.cost.toFixed(2)]}),n.jsxs("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:["$",O.sessions>0?(O.cost/O.sessions).toFixed(4):"0"]})]},O.model))})]})]})]}),r==="sessions"&&n.jsx(ky,{sessions:b,expandedSession:c,onToggle:O=>u(c===O?null:O)})]})}const Wu=30;function ky({sessions:r,expandedSession:o,onToggle:c}){const[u,d]=E.useState(0);if(r.length===0)return n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:n.jsx("p",{className:"text-gray-500 text-sm",children:"No session data available"})});const h=Math.ceil(r.length/Wu),g=u*Wu,b=g+Wu,p=r.slice(g,b);return n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsxs("div",{className:"px-5 py-3 border-b border-gray-800 flex items-center justify-between",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Recent Sessions"}),n.jsxs("span",{className:"text-xs text-gray-500",children:[g+1,"-",Math.min(b,r.length)," of ",r.length]})]}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500 w-8"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Session"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Model"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Input"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Output"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Cache"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Cost"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Duration"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"When"})]})}),n.jsx("tbody",{children:p.map(x=>{const j=x.sessionId||"-",y=o===j,z=(x.cacheReadTokens||0)+(x.cacheWriteTokens||0);return n.jsxs(E.Fragment,{children:[n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30 cursor-pointer",onClick:()=>c(j),children:[n.jsx("td",{className:"px-4 py-2 text-xs text-gray-600",children:n.jsx("span",{className:`inline-block transition-transform ${y?"rotate-90":""}`,children:"▸"})}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-400 font-mono",children:j.slice(0,8)}),n.jsx("td",{className:"px-4 py-2",children:n.jsx(he,{label:x.model||"unknown",variant:"default"})}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:Xl(x.inputTokens)}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:Xl(x.outputTokens)}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:z>0?Xl(z):"-"}),n.jsxs("td",{className:"px-4 py-2 text-xs text-amber-400 text-right",children:["$",x.cost?.toFixed(4)||"0.0000"]}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:x.duration?R0(x.duration):"-"}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:Jy(x.timestamp)})]}),y&&n.jsx("tr",{className:"border-b border-gray-800/50",children:n.jsx("td",{colSpan:9,className:"px-6 py-3 bg-gray-800/20",children:n.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 text-xs",children:[n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Input Tokens"}),n.jsx("span",{className:"text-gray-300 font-mono",children:x.inputTokens.toLocaleString()})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Output Tokens"}),n.jsx("span",{className:"text-gray-300 font-mono",children:x.outputTokens.toLocaleString()})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Cache Write"}),n.jsx("span",{className:"text-gray-300 font-mono",children:(x.cacheWriteTokens||0).toLocaleString()})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Cache Read"}),n.jsx("span",{className:"text-gray-300 font-mono",children:(x.cacheReadTokens||0).toLocaleString()})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Cost"}),n.jsxs("span",{className:"text-amber-400 font-mono",children:["$",x.cost?.toFixed(6)||"0"]})]}),x.savings!=null&&x.savings>0&&n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Cache Savings"}),n.jsxs("span",{className:"text-emerald-400 font-mono",children:["$",x.savings.toFixed(6)]})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Duration"}),n.jsx("span",{className:"text-gray-300",children:x.duration?R0(x.duration):"-"})]}),n.jsxs("div",{children:[n.jsx("span",{className:"text-gray-500 block mb-1",children:"Session ID"}),n.jsx("span",{className:"text-gray-400 font-mono text-[10px]",children:x.sessionId})]})]})})})]},j)})})]}),h>1&&n.jsxs("div",{className:"px-5 py-3 border-t border-gray-800 flex items-center justify-between",children:[n.jsx("button",{onClick:()=>d(x=>Math.max(0,x-1)),disabled:u===0,className:"px-3 py-1 text-xs text-gray-400 hover:text-gray-200 border border-gray-700 rounded disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:"Previous"}),n.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(h,7)},(x,j)=>{let y;return h<=7||u<3?y=j:u>h-4?y=h-7+j:y=u-3+j,n.jsx("button",{onClick:()=>d(y),className:`w-7 h-7 text-xs rounded transition-colors ${u===y?"bg-indigo-600 text-white":"text-gray-500 hover:text-gray-300 hover:bg-gray-800"}`,children:y+1},y)})}),n.jsx("button",{onClick:()=>d(x=>Math.min(h-1,x+1)),disabled:u>=h-1,className:"px-3 py-1 text-xs text-gray-400 hover:text-gray-200 border border-gray-700 rounded disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:"Next"})]})]})}function mi({label:r,value:o,total:c,color:u}){const d=c>0?o/c*100:0,h={"bg-indigo-500":"rgb(99 102 241 / 0.6)","bg-cyan-500":"rgb(6 182 212 / 0.6)","bg-emerald-500":"rgb(16 185 129 / 0.6)","bg-amber-500":"rgb(245 158 11 / 0.6)"};return n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1",children:[n.jsx("span",{className:"text-xs text-gray-400",children:r}),n.jsxs("span",{className:"text-xs text-gray-500",children:[Xl(o)," (",d.toFixed(1),"%)"]})]}),n.jsx("div",{className:"h-2 bg-gray-800 rounded-full overflow-hidden",children:n.jsx("div",{className:"h-full rounded-full",style:{width:`${d}%`,backgroundColor:h[u]||u}})})]})}function $y(r){const o=new Map;for(const c of r){const u=c.model||"unknown",d=o.get(u)||{cost:0,tokens:0,sessions:0};d.cost+=c.cost||0,d.tokens+=(c.inputTokens||0)+(c.outputTokens||0),d.sessions++,o.set(u,d)}return Array.from(o.entries()).map(([c,u])=>({model:c,...u})).sort((c,u)=>u.cost-c.cost)}function Xl(r){return r?r>=1e6?`${(r/1e6).toFixed(1)}M`:r>=1e3?`${(r/1e3).toFixed(1)}K`:String(r):"0"}function Ky(r){return r?r.toLocaleString():"0"}function R0(r){const o=Math.round(r);if(o<60)return`${o}s`;const c=Math.floor(o/60),u=o%60;return c<60?`${c}m ${u}s`:`${Math.floor(c/60)}h ${c%60}m`}function Jy(r){if(!r)return"-";try{const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}catch{return"-"}}function uc(){const[r,o]=E.useState(!1),[c,u]=E.useState(null),[d,h]=E.useState(null),[g,b]=E.useState([]),[p,x]=E.useState("idle"),j=E.useRef(null),y=E.useRef(null);vi({onEvent:{"command-output":X=>{const O=X;y.current&&O.executionId===y.current&&O.line&&b(C=>[...C,O.line])},"command-complete":X=>{const O=X;if(y.current&&O.executionId===y.current){if(j.current&&(clearTimeout(j.current),j.current=null),o(!1),O.exitCode===0)x("success"),b(C=>[...C,"Command completed successfully."]);else{x("error");const C=`Command failed (exit code ${O.exitCode??"unknown"})`;h(C),b(G=>[...G,C])}y.current=null}}}}),E.useEffect(()=>()=>{j.current&&clearTimeout(j.current)},[]);const z=E.useCallback(async X=>{o(!0),h(null),b([`> specweave ${X}`]),x("running");try{const C=await(await fetch(`/api/commands/${X}`,{method:"POST"})).json();return C.ok?(u(C.data),y.current=C.data?.id||null,j.current=setTimeout(()=>{y.current&&(y.current=null,o(!1),x("error"),h("Command timed out after 60 seconds"),b(G=>[...G,"Timed out after 60 seconds."]))},6e4),C.data):(h(C.error||"Command failed"),x("error"),b(G=>[...G,`Error: ${C.error||"Command failed"}`]),o(!1),null)}catch(O){return h(String(O)),x("error"),b(C=>[...C,`Error: ${String(O)}`]),o(!1),null}},[]),B=E.useCallback(()=>{o(!1),u(null),h(null),b([]),x("idle"),y.current=null,j.current&&(clearTimeout(j.current),j.current=null)},[]);return{execute:z,running:r,result:c,error:d,output:g,status:p,reset:B}}function Wy(r){switch(r){case"connected":return"success";case"sync_failed":return"warning";case"configured_never_synced":return"info";default:return"default"}}function Fy(r){switch(r){case"connected":return"Connected";case"sync_failed":return"Sync Failed";case"configured_never_synced":return"Ready";case"not_configured":return"Not Configured";default:return r||"Unknown"}}function Py(){const[r,o]=E.useState("health"),{data:c,loading:u,error:d}=Ge("/api/sync/status"),{data:h,loading:g}=Ge("/api/sync/audit?limit=100"),{data:b,loading:p}=Ge("/api/sync/audit/summary"),{execute:x,running:j}=uc();if(u||g||p)return n.jsx(bt,{});if(d)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",d]});if(!c)return null;const y=Object.entries(c.platforms).filter(([C])=>["github","jira","ado"].includes(C)),z=h?.length||0,B=h?.filter(C=>C.result==="error").length||0,X=h?.filter(C=>C.conflict)||[],O=y.filter(([,C])=>C.connectionStatus==="connected").length;return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Sync Health"}),n.jsx("button",{onClick:()=>x("sync-push"),disabled:j,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:j?"Syncing...":"Sync Now"})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Platforms",value:y.length,subtitle:`${O} connected`,color:"indigo"}),n.jsx(le,{title:"Audit Entries",value:z,color:"cyan"}),n.jsx(le,{title:"Errors",value:B,color:"rose"}),n.jsx(le,{title:"Conflicts",value:X.length,color:"amber"})]}),n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["health","audit","conflicts"].map(C=>n.jsx("button",{onClick:()=>o(C),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${r===C?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:C==="health"?"Platform Health":C==="audit"?"Audit Log":`Conflicts (${X.length})`},C))}),r==="health"&&n.jsx(n.Fragment,{children:y.length===0?n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:[n.jsx("p",{className:"text-gray-500 text-sm",children:"No sync platforms configured"}),n.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Configure GitHub, JIRA, or ADO in your config"})]}):n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:y.map(([C,G])=>{const H=b?.[C],V=G.connectionStatus||"unknown";return n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsxs("div",{className:"flex items-center justify-between mb-3",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(sm,{platform:C}),n.jsxs("div",{children:[n.jsx("span",{className:"text-sm font-medium text-gray-300 capitalize",children:C}),G.configDetail&&n.jsx("div",{className:"text-[10px] text-gray-600 mt-0.5",children:G.configDetail})]})]}),n.jsx(he,{label:Fy(V),variant:Wy(V)})]}),G.diagnosticMessage&&n.jsx("div",{className:"text-xs text-gray-500 mb-3 p-2 bg-gray-800/30 rounded-lg",children:G.diagnosticMessage}),V==="not_configured"&&n.jsx(vt,{to:"/config",className:"block text-center text-xs text-indigo-400 hover:text-indigo-300 py-2 border border-gray-800 rounded-lg hover:border-indigo-500/30 transition-colors",children:"Configure in Settings"}),V==="configured_never_synced"&&n.jsx("button",{onClick:()=>x("sync-push"),disabled:j,className:"w-full text-xs text-indigo-400 hover:text-indigo-300 py-2 border border-gray-800 rounded-lg hover:border-indigo-500/30 transition-colors disabled:opacity-50",children:j?"Syncing...":"Run First Sync"}),V==="sync_failed"&&n.jsx("button",{onClick:()=>x("sync-push"),disabled:j,className:"w-full text-xs text-amber-400 hover:text-amber-300 py-2 border border-amber-500/20 rounded-lg hover:border-amber-500/40 transition-colors disabled:opacity-50",children:j?"Retrying...":"Retry Sync"}),n.jsxs("div",{className:"space-y-2 mt-3",children:[G.lastImport&&n.jsx(Gl,{label:"Last Import",value:new Date(G.lastImport).toLocaleString()}),V==="connected"&&!G.lastImport&&n.jsx(Gl,{label:"Status",value:"Connected, no imports yet"}),G.lastImportCount!=null&&n.jsx(Gl,{label:"Items Imported",value:G.lastImportCount.toLocaleString()}),G.lastSkippedCount!=null&&G.lastSkippedCount>0&&n.jsx(Gl,{label:"Skipped",value:G.lastSkippedCount.toLocaleString()}),H&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"border-t border-gray-800 my-2"}),n.jsx(Gl,{label:"Total Ops",value:H.total.toLocaleString()}),n.jsx(Gl,{label:"Success",value:H.success.toLocaleString()}),H.errors>0&&n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500",children:"Errors"}),n.jsx(he,{label:String(H.errors),variant:"error"})]})]})]})]},C)})})}),r==="audit"&&n.jsx(_0,{entries:h||[]}),r==="conflicts"&&n.jsx(_0,{entries:X}),c.lastUpdated&&n.jsxs("p",{className:"text-xs text-gray-600",children:["Last metadata update: ",new Date(c.lastUpdated).toLocaleString()]})]})}function _0({entries:r}){if(r.length===0)return n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:n.jsx("p",{className:"text-gray-500 text-sm",children:"No audit entries"})});const o={success:"success",error:"error",denied:"warning",skipped:"default"};return n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Time"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Platform"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Operation"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Item"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Direction"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Result"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Duration"})]})}),n.jsx("tbody",{children:r.map((c,u)=>n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:Iy(c.timestamp)}),n.jsx("td",{className:"px-4 py-2",children:n.jsxs("div",{className:"flex items-center gap-1.5",children:[n.jsx(sm,{platform:c.platform}),n.jsx("span",{className:"text-xs text-gray-400 capitalize",children:c.platform})]})}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-400",children:c.operation}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 font-mono max-w-[120px] truncate",children:c.itemId||"-"}),n.jsx("td",{className:"px-4 py-2",children:n.jsx(he,{label:c.direction,variant:c.direction==="push"?"info":"default"})}),n.jsx("td",{className:"px-4 py-2",children:n.jsx(he,{label:c.result,variant:o[c.result]||"default"})}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-600 text-right",children:c.duration?`${c.duration}ms`:"-"})]},u))})]})})}function Gl({label:r,value:o}){return n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500",children:r}),n.jsx("span",{className:"text-xs text-gray-400",children:o})]})}function sm({platform:r}){const o={github:"bg-gray-700",jira:"bg-blue-700",ado:"bg-blue-600"};return n.jsx("div",{className:`w-5 h-5 rounded ${o[r]||"bg-gray-700"} flex items-center justify-center`,children:n.jsx("span",{className:"text-[9px] text-white font-bold",children:r[0]?.toUpperCase()})})}function Iy(r){if(!r)return"-";try{const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}catch{return"-"}}const ep={prompt_too_long:"error",api_error:"warning",tool_failure:"info",hook_error:"default",rate_limit:"warning",unknown:"default"};function tp(){const[r,o]=al("tab","groups"),[c,u]=al("type",""),[d,h]=al("session",""),{data:g,loading:b}=Ge("/api/errors/groups"),{data:p,loading:x}=Ge("/api/errors/recent?limit=100"),{data:j,loading:y}=Ge("/api/errors/sessions?limit=30");if(b||x||y)return n.jsx(bt,{});const z=p?.length||0,B=g?.length||0,X=new Set(p?.map(U=>U.sessionId)).size,O=g?.[0]?.type||"-",C=d?j?.find(U=>U.sessionId===d):null,G=c?(p||[]).filter(U=>U.type===c):p||[],H=c?(j||[]).filter(U=>U.errors.some(F=>F.type===c)):j||[],V=U=>{u(U),o("sessions"),h("")},re=U=>{o(U),h("")},te=U=>{h(U)},$=()=>{h("")};return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Error Tracing"}),n.jsx("span",{className:"text-xs text-gray-500",children:"New Relic-style error investigation"})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Total Errors",value:z,color:"rose"}),n.jsx(le,{title:"Error Types",value:B,color:"amber"}),n.jsx(le,{title:"Affected Sessions",value:X,color:"indigo"}),n.jsx(le,{title:"Most Common",value:O,color:"cyan"})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:["groups","timeline","sessions"].map(U=>n.jsx("button",{onClick:()=>re(U),className:`flex-1 px-3 py-1.5 text-xs rounded-md transition-colors ${r===U?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:U==="groups"?"Error Groups":U==="timeline"?"Timeline":"Sessions"},U))}),c&&n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx(he,{label:`type: ${c.replace(/_/g," ")}`,variant:"info"}),n.jsx("button",{onClick:()=>u(""),className:"text-xs text-gray-500 hover:text-gray-300 transition-colors",children:"clear"})]})]}),d&&C&&n.jsx(sp,{session:C,onClose:$}),!d&&r==="groups"&&n.jsx(ap,{groups:g||[],onGroupClick:V}),!d&&r==="timeline"&&n.jsx(lp,{errors:G,onSessionClick:te}),!d&&r==="sessions"&&n.jsx(np,{sessions:H,onSelect:te}),z===0&&!d&&n.jsx(lm,{title:"No errors detected",description:"Claude Code session logs are clean"})]})}function ap({groups:r,onGroupClick:o}){return r.length===0?null:n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Error Groups"})}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Type"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Count"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Sessions"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Last Seen"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Sample Message"})]})}),n.jsx("tbody",{children:r.map(c=>n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30",children:[n.jsx("td",{className:"px-4 py-2",children:n.jsx(he,{label:c.type.replace(/_/g," "),variant:ep[c.type]||"default"})}),n.jsx("td",{className:"px-4 py-2 text-right",children:n.jsx("button",{onClick:()=>o(c.type),className:"text-sm text-indigo-400 hover:text-indigo-300 font-mono transition-colors",title:"View sessions with this error type",children:c.count})}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:c.sessions}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:ji(c.lastSeen)}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 max-w-xs truncate",children:c.recentMessages[0]||"-"})]},c.type))})]})]})}function lp({errors:r,onSessionClick:o}){if(r.length===0)return null;const c={prompt_too_long:"bg-rose-400",api_error:"bg-amber-400",tool_failure:"bg-blue-400",hook_error:"bg-gray-400",rate_limit:"bg-amber-400",unknown:"bg-gray-500"};return n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Error Timeline"}),n.jsx("div",{className:"space-y-1 max-h-[500px] overflow-y-auto custom-scrollbar",children:r.map((u,d)=>n.jsxs("div",{className:"flex items-start gap-3 py-2 px-2 hover:bg-gray-800/30 rounded cursor-pointer",onClick:()=>o(u.sessionId),children:[n.jsxs("div",{className:"flex flex-col items-center mt-1",children:[n.jsx("div",{className:`w-2 h-2 rounded-full ${c[u.type]||"bg-gray-500"}`}),d<r.length-1&&n.jsx("div",{className:"w-px h-full bg-gray-800 mt-1"})]}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-xs text-gray-400 font-mono",children:u.type.replace(/_/g," ")}),n.jsx("span",{className:"text-[10px] text-gray-600",children:ji(u.timestamp)})]}),n.jsx("div",{className:"text-xs text-gray-500 truncate mt-0.5",children:u.message}),n.jsxs("div",{className:"text-[10px] text-gray-700 font-mono mt-0.5",children:["Session: ",u.sessionId.slice(0,8)]})]})]},d))})]})}function np({sessions:r,onSelect:o}){return r.length===0?null:n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Recent Sessions"})}),n.jsxs("table",{className:"w-full",children:[n.jsx("thead",{children:n.jsxs("tr",{className:"border-b border-gray-800",children:[n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Session"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Branch"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Messages"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Tool Calls"}),n.jsx("th",{className:"text-right px-4 py-2 text-xs text-gray-500",children:"Errors"}),n.jsx("th",{className:"text-left px-4 py-2 text-xs text-gray-500",children:"Started"})]})}),n.jsx("tbody",{children:r.map(c=>n.jsxs("tr",{className:"border-b border-gray-800/50 hover:bg-gray-800/30 cursor-pointer",onClick:()=>o(c.sessionId),children:[n.jsx("td",{className:"px-4 py-2 text-xs text-gray-400 font-mono",children:c.sessionId.slice(0,8)}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:c.gitBranch||"-"}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:c.messageCount}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500 text-right",children:c.toolCallCount}),n.jsx("td",{className:"px-4 py-2 text-right",children:c.errors.length>0?n.jsx(he,{label:String(c.errors.length),variant:"error"}):n.jsx("span",{className:"text-xs text-gray-600",children:"0"})}),n.jsx("td",{className:"px-4 py-2 text-xs text-gray-500",children:ji(c.startTime)})]},c.sessionId))})]})]})}function sp({session:r,onClose:o}){return n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsxs("div",{children:[n.jsxs("h3",{className:"text-sm font-medium text-gray-300",children:["Session: ",n.jsx("span",{className:"font-mono",children:r.sessionId.slice(0,12)})]}),n.jsxs("div",{className:"text-[10px] text-gray-600 mt-0.5",children:["v",r.version," | ",r.gitBranch," | ",r.messageCount," messages | ",r.toolCallCount," tool calls"]})]}),n.jsx("button",{onClick:o,className:"px-2 py-1 text-xs text-gray-400 hover:text-white hover:bg-gray-700 rounded transition-colors",children:"Back"})]}),n.jsxs("div",{className:"flex gap-3 mb-4",children:[n.jsxs("div",{className:"text-xs text-gray-500",children:["Started: ",new Date(r.startTime).toLocaleString()]}),r.endTime&&n.jsxs("div",{className:"text-xs text-gray-500",children:["Ended: ",new Date(r.endTime).toLocaleString()]})]}),r.errors.length===0?n.jsx("p",{className:"text-gray-600 text-xs",children:"No errors in this session"}):n.jsx("div",{className:"space-y-2",children:r.errors.map((c,u)=>n.jsxs("div",{className:"p-3 bg-gray-800/50 rounded-lg border-l-2 border-rose-500/50",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx(he,{label:c.type.replace(/_/g," "),variant:"error"}),n.jsx("span",{className:"text-[10px] text-gray-600",children:ji(c.timestamp)})]}),n.jsx("div",{className:"text-xs text-gray-400 break-words",children:c.message}),c.context?.messageIndex!=null&&n.jsxs("div",{className:"text-[10px] text-gray-600 mt-1",children:["At message #",c.context.messageIndex,c.context.lastToolCall&&` | Tool: ${c.context.lastToolCall.slice(0,20)}`]})]},u))})]})}function ji(r){if(!r)return"-";const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}const ip=[{value:"all",label:"All"},{value:"command",label:"Commands"},{value:"hook",label:"Hooks"},{value:"notification",label:"Notifications"},{value:"cost",label:"Cost"}],rp=[{value:"all",label:"All Levels"},{value:"error",label:"Errors"},{value:"warning",label:"Warnings"},{value:"info",label:"Info"}];function up(){const[r,o]=al("category","all"),[c,u]=al("severity","all"),d=r||"all",h=c||"all",[g,b]=E.useState([]),[p,x]=E.useState(200),[j,y]=E.useState(null),z=new URLSearchParams;z.set("limit",String(p)),d!=="all"&&z.set("categories",d),h!=="all"&&z.set("severity",h);const{data:B,loading:X}=Ge(`/api/activity/stream?${z.toString()}`),O=E.useCallback(Q=>{b(Ae=>[Q,...Ae].slice(0,50))},[]);if(vi({onEvent:{activity:O}}),X)return n.jsx(bt,{});const C=[...g,...B||[]],G=new Set,H=[];for(const Q of C){const Ae=`${Q.timestamp}:${Q.title}`;G.has(Ae)||(G.add(Ae),H.push(Q))}const V=H.filter(Q=>!(d!=="all"&&Q.category!==d||h!=="all"&&Q.severity!==h)),re=H.filter(Q=>Q.severity==="error").length,te=H.filter(Q=>Q.severity==="warning").length,$=new Set(H.map(Q=>Q.source)),U=Q=>{y(Ae=>Ae===Q?null:Q)},F=()=>{x(Q=>Q+200)};return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Activity Stream"}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-400 pulse-dot"}),n.jsx("span",{className:"text-xs text-gray-500",children:"Live"})]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Total Events",value:H.length,color:"indigo"}),n.jsx(le,{title:"Errors",value:re,color:"rose"}),n.jsx(le,{title:"Warnings",value:te,color:"amber"}),n.jsx(le,{title:"Sources",value:$.size,color:"cyan"})]}),n.jsxs("div",{className:"flex flex-wrap gap-4",children:[n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:ip.map(Q=>n.jsx("button",{onClick:()=>o(Q.value),className:`px-3 py-1 text-xs rounded-md transition-colors ${d===Q.value?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:Q.label},Q.value))}),n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:rp.map(Q=>n.jsx("button",{onClick:()=>u(Q.value),className:`px-3 py-1 text-xs rounded-md transition-colors ${h===Q.value?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:Q.label},Q.value))}),n.jsxs("span",{className:"text-xs text-gray-500 self-center",children:[V.length," events"]})]}),n.jsx("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl divide-y divide-gray-800/50",children:V.length===0?n.jsxs("div",{className:"p-8 text-center",children:[n.jsx("p",{className:"text-gray-500 text-sm",children:"No events match filters"}),n.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"Try adjusting category or severity filters"})]}):n.jsxs(n.Fragment,{children:[V.slice(0,p).map((Q,Ae)=>{const ke=`${Q.timestamp}-${Ae}`,Qe=j===ke;return n.jsx(cp,{event:Q,isExpanded:Qe,onToggle:()=>U(ke)},ke)}),V.length>=p&&n.jsx("div",{className:"p-4 text-center",children:n.jsx("button",{onClick:F,className:"px-4 py-2 text-xs text-indigo-400 hover:text-indigo-300 border border-indigo-500/30 rounded-lg transition-colors",children:"Load more events"})})]})})]})}function cp({event:r,isExpanded:o,onToggle:c}){const u=r.severity==="error"?"bg-rose-400":r.severity==="warning"?"bg-amber-400":"bg-gray-600",d={command:"M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z",hook:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101",notification:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9",cost:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1",sync:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581"},h=r.detail||r.metadata&&Object.keys(r.metadata).length>0;return n.jsxs("div",{children:[n.jsxs("div",{className:`px-4 py-3 flex items-start gap-3 transition-colors ${h?"cursor-pointer hover:bg-gray-800/20":""}`,onClick:h?c:void 0,children:[n.jsx("div",{className:`w-1.5 h-1.5 rounded-full mt-2 flex-shrink-0 ${u}`}),n.jsx("div",{className:"w-5 h-5 flex-shrink-0 mt-0.5 text-gray-500",children:n.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:d[r.category]||d.command})})}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-sm text-gray-300",children:r.title}),n.jsx(he,{label:r.category,variant:bi(r.severity)})]}),r.detail&&!o&&n.jsx("p",{className:"text-xs text-gray-500 mt-0.5 truncate",children:r.detail}),r.source&&n.jsxs("span",{className:"text-[10px] text-gray-600 mt-0.5 block",children:["via ",r.source]})]}),n.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.timestamp&&n.jsx("span",{className:"text-[10px] text-gray-600 whitespace-nowrap",children:op(r.timestamp)}),h&&n.jsx("svg",{className:`w-4 h-4 text-gray-600 transition-transform duration-200 ${o?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),o&&n.jsxs("div",{className:"px-4 pb-3 ml-10 space-y-2",children:[r.detail&&n.jsxs("div",{className:"bg-gray-800/50 rounded p-3",children:[n.jsx("span",{className:"text-[10px] text-gray-500 uppercase block mb-1",children:"Detail"}),n.jsx("p",{className:"text-xs text-gray-300 whitespace-pre-wrap",children:r.detail})]}),r.metadata&&Object.keys(r.metadata).length>0&&n.jsxs("div",{className:"bg-gray-800/50 rounded p-3",children:[n.jsx("span",{className:"text-[10px] text-gray-500 uppercase block mb-1",children:"Metadata"}),n.jsx("pre",{className:"text-xs text-gray-400 font-mono whitespace-pre-wrap overflow-x-auto",children:JSON.stringify(r.metadata,null,2)})]})]})]})}function op(r){if(!r)return"-";const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}function fp(){const{data:r,loading:o,error:c,refetch:u}=Ge("/api/config"),{activeProject:d}=kn(),[h,g]=E.useState(new Set),[b,p]=E.useState({}),[x,j]=E.useState(!1),[y,z]=E.useState(null),[B,X]=E.useState([]);if(o)return n.jsx(bt,{});if(c)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",c]});if(!r)return null;const O=$=>{g(U=>{const F=new Set(U);return F.has($)?F.delete($):F.add($),F})},C=Object.keys(b).length>0,G=($,U)=>{p(F=>({...F,[$]:U})),X(F=>F.filter(Q=>Q.path!==$))},H=async()=>{if(C){j(!0),z(null),X([]);try{const $={};for(const[Qe,Xt]of Object.entries(b))mp($,Qe,Xt);const U=d?`?project=${d.id}`:"",Q=await(await fetch(`/api/config/validate${U}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})).json();if(Q.errors&&Q.errors.length>0){X(Q.errors),z("Validation failed. Fix errors before saving."),j(!1);return}const ke=await(await fetch(`/api/config${U}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})).json();ke.ok?(z("Saved successfully"),p({}),X([]),u(),setTimeout(()=>z(null),3e3)):z(`Error: ${ke.error}`)}catch($){z(`Error: ${$}`)}finally{j(!1)}}},V=()=>{p({}),z(null),X([])},re=Object.entries(r).filter(([$,U])=>typeof U=="object"&&U!==null),te=Object.entries(r).filter(([$,U])=>typeof U!="object"||U===null);return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Configuration"}),n.jsx("span",{className:"text-xs text-gray-500",children:".specweave/config.json"})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[y&&n.jsx("span",{className:`text-xs ${y.startsWith("Error")||y.startsWith("Validation")?"text-rose-400":"text-emerald-400"}`,children:y}),C&&n.jsxs(n.Fragment,{children:[n.jsx(he,{label:`${Object.keys(b).length} changes`,variant:"warning"}),n.jsx("button",{onClick:V,className:"px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200 border border-gray-700 rounded-lg transition-colors",children:"Discard"}),n.jsx("button",{onClick:H,disabled:x,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:x?"Saving...":"Save Changes"})]})]})]}),y&&!C&&y==="Saved successfully"&&n.jsxs("div",{className:"bg-emerald-500/10 border border-emerald-500/30 rounded-lg px-4 py-2 flex items-center gap-2",children:[n.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-400"}),n.jsx("span",{className:"text-xs text-emerald-400",children:"Configuration saved successfully"})]}),B.length>0&&n.jsxs("div",{className:"bg-rose-500/10 border border-rose-500/30 rounded-lg px-4 py-3 space-y-1",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx("div",{className:"w-2 h-2 rounded-full bg-rose-400"}),n.jsx("span",{className:"text-xs text-rose-400 font-medium",children:"Validation errors"})]}),B.map(($,U)=>n.jsxs("div",{className:"text-xs text-rose-300 pl-4",children:[n.jsx("span",{className:"font-mono text-rose-400",children:$.path}),": ",$.message]},U))]}),te.length>0&&n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-3",children:"General"}),n.jsx("div",{className:"space-y-3",children:te.map(([$,U])=>n.jsx(rm,{path:$,label:$,value:b[$]!==void 0?b[$]:U,original:U,onChange:F=>G($,F),edited:b[$]!==void 0,validationError:B.find(F=>F.path===$)?.message},$))})]}),re.map(([$,U])=>n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsxs("button",{onClick:()=>O($),className:"w-full px-5 py-3 flex items-center justify-between hover:bg-gray-800/30 transition-colors",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 capitalize",children:$}),O0(b,$)>0&&n.jsx(he,{label:`${O0(b,$)} edited`,variant:"warning"}),B.some(F=>F.path.startsWith($+"."))&&n.jsx(he,{label:"errors",variant:"error"})]}),n.jsx("svg",{className:`w-4 h-4 text-gray-500 transition-transform duration-200 ${h.has($)?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]}),h.has($)&&n.jsx("div",{className:"px-5 py-3 border-t border-gray-800",children:n.jsx(im,{data:U,path:$,edits:b,onChange:G,validationErrors:B,depth:0})})]},$))]})}function im({data:r,path:o,edits:c,onChange:u,validationErrors:d,depth:h}){return h>4?n.jsx("span",{className:"text-xs text-gray-600",children:"..."}):n.jsx("div",{className:"space-y-3",style:{marginLeft:h>0?16:0},children:Object.entries(r).map(([g,b])=>{const p=`${o}.${g}`;return b&&typeof b=="object"&&!Array.isArray(b)?n.jsxs("div",{children:[n.jsx("span",{className:"text-xs text-gray-400 font-mono font-medium",children:g}),n.jsx(im,{data:b,path:p,edits:c,onChange:u,validationErrors:d,depth:h+1})]},g):n.jsx(rm,{path:p,label:g,value:c[p]!==void 0?c[p]:b,original:b,onChange:x=>u(p,x),edited:c[p]!==void 0,validationError:d.find(x=>x.path===p)?.message},g)})})}function rm({path:r,label:o,value:c,original:u,onChange:d,edited:h,validationError:g}){return typeof u=="boolean"||typeof c=="boolean"?n.jsxs("div",{className:"py-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:o}),n.jsx("button",{onClick:()=>d(!c),className:`relative w-9 h-5 rounded-full transition-colors ${c?"bg-indigo-600":"bg-gray-700"} ${h?"ring-1 ring-amber-500/50":""}`,children:n.jsx("div",{className:`absolute top-0.5 w-4 h-4 bg-white rounded-full transition-transform ${c?"left-[18px]":"left-0.5"}`})})]}),g&&n.jsx("p",{className:"text-[10px] text-rose-400 mt-0.5",children:g})]}):typeof u=="number"||typeof c=="number"?n.jsxs("div",{className:"py-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:o}),n.jsx("input",{type:"number",value:String(c??""),onChange:b=>d(b.target.value?Number(b.target.value):0),className:`bg-gray-800 border text-xs text-amber-400 font-mono rounded px-2 py-1 w-24 text-right ${g?"border-rose-500":h?"border-amber-500/50":"border-gray-700"} focus:ring-indigo-500 focus:border-indigo-500`})]}),g&&n.jsx("p",{className:"text-[10px] text-rose-400 mt-0.5 text-right",children:g})]}):Array.isArray(u)||Array.isArray(c)?n.jsx(dp,{path:r,label:o,value:Array.isArray(c)?c:Array.isArray(u)?u:[],edited:h,onChange:d,validationError:g}):n.jsxs("div",{className:"py-1",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:o}),n.jsx("input",{type:"text",value:String(c??""),onChange:b=>d(b.target.value),className:`bg-gray-800 border text-xs text-gray-300 rounded px-2 py-1 w-48 text-right ${g?"border-rose-500":h?"border-amber-500/50":"border-gray-700"} focus:ring-indigo-500 focus:border-indigo-500`})]}),g&&n.jsx("p",{className:"text-[10px] text-rose-400 mt-0.5 text-right",children:g})]})}function dp({path:r,label:o,value:c,edited:u,onChange:d,validationError:h}){const[g,b]=E.useState(!1),[p,x]=E.useState(""),j=B=>{const X=[...c];X.splice(B,1),d(X)},y=()=>{const B=p.trim();B&&(d([...c,B]),x(""))},z=B=>{B.key==="Enter"&&(B.preventDefault(),y())};return n.jsxs("div",{className:"py-1",children:[n.jsxs("button",{onClick:()=>b(B=>!B),className:"flex items-center justify-between w-full group",children:[n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:o}),n.jsxs("div",{className:"flex items-center gap-2",children:[u&&n.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-amber-500"}),n.jsxs("span",{className:"text-xs text-gray-400 font-mono",children:["[",c.length," items]"]}),n.jsx("svg",{className:`w-3 h-3 text-gray-500 transition-transform duration-200 ${g?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),g&&n.jsxs("div",{className:"mt-2 ml-4 space-y-1",children:[c.length===0&&n.jsx("p",{className:"text-[10px] text-gray-600",children:"No items"}),c.map((B,X)=>n.jsxs("div",{className:"flex items-center gap-2 group/item",children:[n.jsx("span",{className:"text-xs text-gray-300 font-mono flex-1 truncate",children:String(B)}),n.jsx("button",{onClick:()=>j(X),className:"text-[10px] text-gray-600 hover:text-rose-400 opacity-0 group-hover/item:opacity-100 transition-opacity",children:"remove"})]},X)),n.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[n.jsx("input",{type:"text",value:p,onChange:B=>x(B.target.value),onKeyDown:z,placeholder:"Add item...",className:"bg-gray-800 border border-gray-700 text-xs text-gray-300 rounded px-2 py-1 flex-1 focus:ring-indigo-500 focus:border-indigo-500"}),n.jsx("button",{onClick:y,disabled:!p.trim(),className:"px-2 py-1 text-[10px] text-indigo-400 hover:text-indigo-300 border border-indigo-500/30 rounded disabled:opacity-50 transition-colors",children:"Add"})]})]}),h&&n.jsx("p",{className:"text-[10px] text-rose-400 mt-0.5",children:h})]})}function O0(r,o){return Object.keys(r).filter(c=>c.startsWith(o+".")).length}function mp(r,o,c){const u=o.split(".");let d=r;for(let h=0;h<u.length-1;h++)(!d[u[h]]||typeof d[u[h]]!="object")&&(d[u[h]]={}),d=d[u[h]];d[u[u.length-1]]=c}function um({lines:r,status:o,onDismiss:c}){const u=E.useRef(null);return E.useEffect(()=>{u.current?.scrollIntoView({behavior:"smooth"})},[r]),r.length===0&&o==="idle"?null:n.jsxs("div",{className:"mt-4 rounded-lg bg-gray-950 border border-gray-700 overflow-hidden",children:[n.jsxs("div",{className:"flex items-center justify-between px-3 py-2 bg-gray-900 border-b border-gray-700",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("div",{className:`w-2 h-2 rounded-full ${o==="running"?"bg-yellow-400 animate-pulse":o==="success"?"bg-green-400":o==="error"?"bg-red-400":"bg-gray-500"}`}),n.jsx("span",{className:"text-xs text-gray-400 font-mono",children:o==="running"?"Running...":o==="success"?"Completed":o==="error"?"Failed":"Output"})]}),o!=="running"&&c&&n.jsx("button",{onClick:c,className:"text-gray-500 hover:text-gray-300 text-xs",children:"Dismiss"})]}),n.jsxs("div",{className:"p-3 max-h-48 overflow-y-auto font-mono text-xs text-gray-300 whitespace-pre-wrap",children:[r.map((d,h)=>n.jsx("div",{children:d},h)),n.jsx("div",{ref:u})]})]})}function hp(){const{data:r,loading:o}=Ge("/api/plugins/full"),{execute:c,running:u,output:d,status:h,reset:g}=uc(),[b,p]=E.useState(null);if(o)return n.jsx(bt,{});const x=r?.plugins||[],j=r?.skills||[],y=r?.lsp,z=r?.warmup,B=r?.triggerCount||0,X=x.reduce((H,V)=>H+V.skillCount,0),O=x.reduce((H,V)=>H+V.commandCount,0),C=H=>j.filter(V=>V.plugin===H).sort((V,re)=>re.count-V.count),G=H=>{p(V=>V===H?null:H)};return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Plugins & LSP"}),n.jsxs("div",{className:"flex gap-2",children:[n.jsx("button",{onClick:()=>c("lsp-status"),disabled:u,className:"px-3 py-1.5 bg-gray-700 hover:bg-gray-600 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:"Check LSP"}),n.jsx("button",{onClick:()=>c("refresh-marketplace"),disabled:u,className:"px-3 py-1.5 bg-indigo-600 hover:bg-indigo-500 disabled:opacity-50 text-white text-xs rounded-lg transition-colors",children:u?"Running...":"Refresh Marketplace"})]})]}),n.jsx(um,{lines:d,status:h,onDismiss:g}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[n.jsx(Ua,{label:"Plugins",value:x.length}),n.jsx(Ua,{label:"Total Skills",value:X}),n.jsx(Ua,{label:"Total Commands",value:O}),n.jsx(Ua,{label:"Trigger Keywords",value:B})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"Installed Plugins"})}),x.length===0?n.jsx("div",{className:"p-5 text-gray-500 text-xs",children:"No plugins installed"}):n.jsx("div",{className:"divide-y divide-gray-800/50",children:x.map(H=>{const V=b===H.name,re=C(H.name);return n.jsxs("div",{children:[n.jsxs("button",{onClick:()=>G(H.name),className:"w-full px-4 py-3 flex items-center justify-between hover:bg-gray-800/30 transition-colors text-left",children:[n.jsxs("div",{className:"flex items-center gap-4",children:[n.jsx("span",{className:"text-sm text-gray-300",children:H.name}),n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:H.version})]}),n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(he,{label:`${H.skillCount} skills`,variant:"info"}),n.jsx(he,{label:`${H.commandCount} cmds`,variant:"default"}),n.jsx("svg",{className:`w-4 h-4 text-gray-500 transition-transform duration-200 ${V?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})]})]}),V&&n.jsx("div",{className:"px-4 pb-4 bg-gray-800/20",children:re.length===0?n.jsx("p",{className:"text-xs text-gray-600 py-2",children:"No skill usage data for this plugin"}):n.jsxs("div",{className:"space-y-1 mt-1",children:[n.jsxs("div",{className:"grid grid-cols-[1fr,80px,80px,120px] gap-2 px-2 py-1",children:[n.jsx("span",{className:"text-[10px] text-gray-600 uppercase",children:"Skill"}),n.jsx("span",{className:"text-[10px] text-gray-600 uppercase text-right",children:"Invocations"}),n.jsx("span",{className:"text-[10px] text-gray-600 uppercase text-right",children:"Success"}),n.jsx("span",{className:"text-[10px] text-gray-600 uppercase text-right",children:"Last Used"})]}),re.map(te=>n.jsxs("div",{className:"grid grid-cols-[1fr,80px,80px,120px] gap-2 px-2 py-1.5 bg-gray-800/40 rounded",children:[n.jsx("span",{className:"text-xs text-gray-300 font-mono truncate",children:te.name}),n.jsx("span",{className:"text-xs text-gray-400 text-right font-mono",children:te.count}),n.jsxs("span",{className:"text-xs text-right font-mono",children:[n.jsx("span",{className:"text-emerald-400",children:te.successCount}),te.failureCount>0&&n.jsxs("span",{className:"text-rose-400",children:["/",te.failureCount]})]}),n.jsx("span",{className:"text-[10px] text-gray-500 text-right",children:te.lastUsed?xp(te.lastUsed):"-"})]},te.name))]})})]},H.name)})})]}),j.length>0&&n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Skill Usage Leaderboard"}),n.jsx(nm,{items:j.sort((H,V)=>V.count-H.count).slice(0,20).map(H=>({label:H.name,value:H.count,color:"#10b981"})),maxBars:20})]}),y&&n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"LSP Status"}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(he,{label:y.status,variant:y.status==="ok"?"success":"warning"}),y.checked&&n.jsxs("span",{className:"text-[10px] text-gray-600",children:["Checked: ",new Date(y.checked).toLocaleDateString()]})]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-3 mb-4",children:[n.jsx(Ua,{label:"Total Languages",value:y.stats.totalLanguages}),n.jsx(Ua,{label:"Checked",value:y.stats.checkedLanguages}),n.jsx(Ua,{label:"Binary Missing",value:y.stats.binaryMissing}),n.jsx(Ua,{label:"Plugin Missing",value:y.stats.pluginMissing})]}),y.missing.length>0&&n.jsxs("div",{className:"space-y-2",children:[n.jsx("h4",{className:"text-xs text-gray-500",children:"Missing Languages"}),y.missing.map((H,V)=>n.jsxs("div",{className:"flex items-center justify-between p-2 bg-gray-800/50 rounded",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(he,{label:H.type,variant:H.type==="binary"?"warning":"default"}),n.jsx("span",{className:"text-xs text-gray-300",children:H.language})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("code",{className:"text-[10px] text-gray-500",children:H.binaryInstall}),H.message&&n.jsx("span",{className:"text-[10px] text-gray-600 max-w-[200px] truncate",children:H.message})]})]},V))]})]}),z&&n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsxs("div",{className:"flex items-center justify-between mb-4",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:"LSP Warmup Status"}),n.jsxs("span",{className:"text-[10px] text-gray-600",children:[z.elapsed?`${(z.elapsed/1e3).toFixed(1)}s`:""," |"," ",z.timestamp?new Date(z.timestamp).toLocaleString():""]})]}),n.jsxs("div",{className:"flex flex-wrap gap-2",children:[z.warmedUp.map(H=>n.jsx(he,{label:H,variant:"success"},H)),z.failed.map(H=>n.jsx(he,{label:H,variant:"error"},H))]}),z.warmedUp.length===0&&z.failed.length===0&&n.jsx("p",{className:"text-gray-600 text-xs",children:"No warmup data"})]})]})}function Ua({label:r,value:o}){return n.jsxs("div",{className:"bg-gray-800/50 rounded-lg p-3 text-center",children:[n.jsx("div",{className:"text-lg font-bold text-gray-300",children:o}),n.jsx("div",{className:"text-[10px] text-gray-500",children:r})]})}function xp(r){if(!r)return"-";const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}function gp(){const{data:r,loading:o}=Ge("/api/links"),{data:c,loading:u,refetch:d}=Ge("/api/services"),{execute:h,running:g,output:b,status:p,reset:x}=uc();if(o||u)return n.jsx(bt,{});const j=(c||[]).filter(C=>C.status==="running").length,y=(c||[]).length,z=new Map;for(const C of c||[])if(C.port>0&&C.status==="running"){const G=z.get(C.port)||[];G.push(C.name),z.set(C.port,G)}const B=Array.from(z.entries()).filter(([,C])=>C.length>1),X=async C=>{await h(C),setTimeout(()=>d(),3e3)},O=async C=>{await h(C),setTimeout(()=>d(),2e3)};return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Services & Links"}),n.jsx(um,{lines:b,status:p,onDismiss:x}),B.length>0&&n.jsxs("div",{className:"bg-amber-500/10 border border-amber-500/30 rounded-xl p-4 flex items-start gap-3",children:[n.jsx("svg",{className:"w-5 h-5 text-amber-400 flex-shrink-0 mt-0.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4.5c-.77-.833-2.694-.833-3.464 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z"})}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm font-medium text-amber-300",children:"Port Conflict Detected"}),n.jsx("div",{className:"text-xs text-amber-400/80 mt-1",children:B.map(([C,G])=>n.jsxs("span",{className:"block",children:["Port ",C," is used by: ",G.join(", ")]},C))})]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Services",value:y,color:"indigo",tooltip:`${y} managed services`}),n.jsx(le,{title:"Running",value:j,color:"emerald",tooltip:`${j} services currently active`}),n.jsx(le,{title:"External Links",value:(r||[]).length,color:"cyan",tooltip:"Configured external links (docs, repos, etc.)"}),n.jsx(le,{title:"Stopped",value:y-j,color:"rose",tooltip:`${y-j} services not running`})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"Service Status"}),n.jsx("div",{className:"space-y-3",children:(c||[]).map((C,G)=>n.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-800/50 rounded-lg",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx("div",{className:`w-2 h-2 rounded-full ${C.status==="running"?"bg-emerald-400":"bg-gray-600"}`}),n.jsxs("div",{children:[n.jsx("span",{className:"text-sm text-gray-300",children:C.name}),n.jsx("div",{className:"text-[10px] text-gray-600",children:C.status==="running"&&C.detail?n.jsx("a",{href:C.detail,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-400 hover:text-indigo-300 underline transition-colors",children:C.detail}):C.detail})]})]}),n.jsxs("div",{className:"flex items-center gap-2",children:[C.status==="running"&&C.port>0&&n.jsx(he,{label:`Port ${C.port}`,variant:"info"}),C.status==="running"?n.jsx(he,{label:"Running",variant:"success"}):n.jsx(he,{label:"Stopped",variant:"default"}),C.name==="Docs Preview"&&(C.status==="running"?n.jsxs("div",{className:"flex items-center gap-1",children:[n.jsx("a",{href:C.detail,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-[10px] text-indigo-400 hover:text-indigo-300 border border-indigo-500/30 rounded transition-colors",children:"Open"}),n.jsx("button",{onClick:()=>O("docs-preview-stop"),disabled:g,className:"px-2 py-1 text-[10px] text-rose-400 hover:text-rose-300 border border-rose-500/30 rounded transition-colors disabled:opacity-50",children:"Stop"})]}):n.jsx("button",{onClick:()=>X("docs-preview-start"),disabled:g,className:"px-2 py-1 text-[10px] text-emerald-400 hover:text-emerald-300 border border-emerald-500/30 rounded transition-colors disabled:opacity-50",children:g?"Starting...":"Start"})),C.status==="running"&&C.name!=="Docs Preview"&&n.jsx("a",{href:C.detail,target:"_blank",rel:"noopener noreferrer",className:"px-2 py-1 text-[10px] text-indigo-400 hover:text-indigo-300 border border-indigo-500/30 rounded transition-colors",children:"Open"})]})]},G))})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-4",children:"External Links"}),(r||[]).length===0?n.jsx("p",{className:"text-xs text-gray-500",children:"No external links configured"}):n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:(r||[]).map((C,G)=>n.jsxs("a",{href:C.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-between p-3 bg-gray-800/50 rounded-lg hover:bg-gray-800 transition-colors group",children:[n.jsxs("div",{className:"flex items-center gap-3",children:[n.jsx(yp,{type:C.type}),n.jsxs("div",{children:[n.jsx("div",{className:"text-sm text-gray-300 group-hover:text-white transition-colors",children:C.name}),n.jsx("div",{className:"text-[10px] text-gray-600 truncate max-w-[200px]",children:C.url})]})]}),n.jsx("svg",{className:"w-4 h-4 text-gray-600 group-hover:text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]},G))})]})]})}function yp({type:r}){const o={docs:"bg-indigo-600",github:"bg-gray-700",jira:"bg-blue-700",ado:"bg-blue-600"};return n.jsx("div",{className:`w-8 h-8 rounded-lg ${o[r]||"bg-gray-700"} flex items-center justify-center`,children:n.jsx("span",{className:"text-xs text-white font-bold",children:r[0]?.toUpperCase()})})}const D0={critical:0,warning:1,info:2};function pp(){const[r,o]=E.useState("pending"),[c,u]=E.useState(null),{activeProject:d}=kn(),{data:h,loading:g,error:b,refetch:p}=Ge("/api/notifications");if(g)return n.jsx(bt,{});if(b)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",b]});const x=h||[],j=x.filter(U=>!U.dismissedAt),y=x.filter(U=>!!U.dismissedAt),z=j.filter(U=>U.severity==="critical"),B=j.filter(U=>U.severity==="warning"),O=[...r==="pending"?j:r==="dismissed"?y:x].sort((U,F)=>{const Q=D0[U.severity]??3,Ae=D0[F.severity]??3;return Q!==Ae?Q-Ae:new Date(F.createdAt).getTime()-new Date(U.createdAt).getTime()}),C=async U=>{u(U);try{const F=d?`?project=${d.id}`:"";(await fetch(`/api/notifications/${U}/dismiss${F}`,{method:"POST"})).ok&&p()}finally{u(null)}},G=async()=>{u("__all__");try{const U=d?`?project=${d.id}`:"";for(const F of j)await fetch(`/api/notifications/${F.id}/dismiss${U}`,{method:"POST"});p()}finally{u(null)}},H=U=>U==="critical"?"error":U==="warning"?"warning":"info",V=U=>U==="critical"?"border-l-rose-500":U==="warning"?"border-l-amber-500":"border-l-blue-500",te=(U=>{const F={};for(const Q of U)F[Q.severity]||(F[Q.severity]=[]),F[Q.severity].push(Q);return F})(O),$={critical:"Critical",warning:"Warnings",info:"Informational"};return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Notifications"}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Pending",value:j.length,color:"indigo"}),n.jsx(le,{title:"Critical",value:z.length,color:"rose"}),n.jsx(le,{title:"Warnings",value:B.length,color:"amber"}),n.jsx(le,{title:"Dismissed",value:y.length,color:"cyan"})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("div",{className:"flex gap-1 bg-gray-900/50 border border-gray-800 rounded-lg p-1",children:[{value:"pending",label:`Pending (${j.length})`},{value:"dismissed",label:`Dismissed (${y.length})`},{value:"all",label:`All (${x.length})`}].map(U=>n.jsx("button",{onClick:()=>o(U.value),className:`px-3 py-1.5 text-xs rounded-md transition-colors ${r===U.value?"bg-gray-700 text-white":"text-gray-400 hover:text-gray-300"}`,children:U.label},U.value))}),j.length>0&&n.jsx("button",{onClick:G,disabled:c==="__all__",className:"px-3 py-1.5 text-xs text-gray-400 hover:text-gray-200 border border-gray-700 rounded-lg transition-colors disabled:opacity-50",children:c==="__all__"?"Dismissing...":"Dismiss All"})]}),O.length===0?n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:[n.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-800 flex items-center justify-center mx-auto mb-4",children:n.jsx("svg",{className:"w-6 h-6 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"})})}),n.jsx("p",{className:"text-gray-400 text-sm font-medium",children:r==="pending"?"No pending notifications":"No notifications"}),n.jsx("p",{className:"text-gray-600 text-xs mt-1 max-w-xs mx-auto",children:"Notifications appear here when imports complete, discrepancies are found, or syncs fail"})]}):n.jsx("div",{className:"space-y-4",children:["critical","warning","info"].map(U=>{const F=te[U];return!F||F.length===0?null:n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[n.jsx("h3",{className:"text-xs font-medium text-gray-400 uppercase",children:$[U]||U}),n.jsxs("span",{className:"text-[10px] text-gray-600",children:["(",F.length,")"]})]}),n.jsx("div",{className:"space-y-2",children:F.map(Q=>n.jsxs("div",{className:`bg-gray-900/50 border border-gray-800 border-l-4 ${V(Q.severity)} rounded-xl p-4 flex items-start gap-4 ${Q.dismissedAt?"opacity-60":""}`,children:[n.jsx(vp,{severity:Q.severity}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[n.jsx("span",{className:"text-sm font-medium text-gray-200",children:Q.title}),n.jsx(he,{label:Q.severity,variant:H(Q.severity)}),Q.type&&n.jsx(he,{label:Q.type,variant:"default"})]}),Q.message&&n.jsx("p",{className:"text-xs text-gray-400 mb-2",children:Q.message}),n.jsxs("div",{className:"flex items-center gap-3 text-[10px] text-gray-600",children:[n.jsx("span",{children:new Date(Q.createdAt).toLocaleString()}),Q.source&&n.jsxs("span",{children:["via ",Q.source]}),Q.dismissedAt&&n.jsxs("span",{children:["Dismissed ",new Date(Q.dismissedAt).toLocaleString()]})]})]}),!Q.dismissedAt&&n.jsx("button",{onClick:()=>C(Q.id),disabled:c===Q.id,className:"px-2 py-1 text-xs text-gray-500 hover:text-gray-300 hover:bg-gray-800 rounded transition-colors disabled:opacity-50 flex-shrink-0",children:c===Q.id?"...":"Dismiss"})]},Q.id))})]},U)})})]})}function vp({severity:r}){return r==="critical"?n.jsx("div",{className:"w-8 h-8 rounded-full bg-rose-500/10 flex items-center justify-center flex-shrink-0",children:n.jsx("svg",{className:"w-4 h-4 text-rose-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4.5c-.77-.833-2.694-.833-3.464 0L3.34 16.5c-.77.833.192 2.5 1.732 2.5z"})})}):r==="warning"?n.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:n.jsx("svg",{className:"w-4 h-4 text-amber-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}):n.jsx("div",{className:"w-8 h-8 rounded-full bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:n.jsx("svg",{className:"w-4 h-4 text-blue-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})})}function bp(r){if(!r)return null;if(r.startsWith("https://"))return r.replace(/\.git$/,"");const o=r.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(o)return`https://${o[1]}/${o[2]}`;const c=r.match(/^ssh:\/\/git@([^/]+)\/(.+?)(?:\.git)?$/);return c?`https://${c[1]}/${c[2]}`:null}function jp(){const{data:r,loading:o,error:c}=Ge("/api/repos");if(o)return n.jsx(bt,{});if(c)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",c]});const u=r||[],d=[...new Set(u.map(b=>b.org))],h=u.filter(b=>b.hasSpecweave).length,g=u.find(b=>b.isCurrent);return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:"Repositories"}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Repositories",value:u.length,color:"indigo"}),n.jsx(le,{title:"Organizations",value:d.length,color:"cyan"}),n.jsx(le,{title:"With SpecWeave",value:h,color:"emerald"}),n.jsx(le,{title:"Current",value:g?g.name:"-",subtitle:g?`${g.org}/${g.name}`:"No current project",color:"amber"})]}),u.length===0?n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-8 text-center",children:[n.jsx("p",{className:"text-gray-500 text-sm",children:"No repositories found"}),n.jsx("p",{className:"text-gray-600 text-xs mt-1",children:"This project doesn't use multi-repo mode, or the repositories/ directory hasn't been set up yet"})]}):n.jsx(n.Fragment,{children:d.map(b=>{const p=u.filter(x=>x.org===b);return n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[n.jsx(Np,{}),n.jsx("h3",{className:"text-sm font-medium text-gray-300",children:b}),n.jsxs("span",{className:"text-[10px] text-gray-600",children:[p.length," ",p.length===1?"repo":"repos"]})]}),n.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3",children:p.map(x=>{const j=bp(x.remote);return n.jsxs("div",{className:`bg-gray-900/50 border rounded-xl p-4 ${x.isCurrent?"border-indigo-500/30":"border-gray-800"}`,children:[n.jsxs("div",{className:"flex items-center justify-between mb-2",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx(Sp,{}),n.jsx("span",{className:"text-sm font-medium text-gray-300",children:x.name})]}),n.jsxs("div",{className:"flex items-center gap-1.5",children:[x.isCurrent&&n.jsx(he,{label:"Current Project",variant:"info"}),n.jsx(he,{label:x.hasSpecweave?"SpecWeave":"No SpecWeave",variant:x.hasSpecweave?"success":"default"})]})]}),n.jsxs("div",{className:"space-y-1.5 mt-3",children:[n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] text-gray-500",children:"Organization"}),n.jsx("span",{className:"text-[10px] text-gray-400",children:x.org})]}),x.branch&&n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] text-gray-500",children:"Branch"}),n.jsx(he,{label:x.branch,variant:"default"})]}),j&&n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] text-gray-500",children:"Remote"}),n.jsx("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] text-indigo-400 hover:text-indigo-300 hover:underline truncate max-w-[180px]",title:j,children:j.replace("https://","")})]}),!j&&x.remote&&n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] text-gray-500",children:"Remote"}),n.jsx("span",{className:"text-[10px] text-gray-600 font-mono truncate max-w-[180px]",title:x.remote,children:x.remote})]}),x.path&&n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] text-gray-500",children:"Path"}),n.jsx("span",{className:"text-[10px] text-gray-600 font-mono truncate max-w-[180px]",title:x.path,children:x.path.split("/").slice(-3).join("/")})]}),x.lastModified&&n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-[10px] text-gray-500",children:"Last Modified"}),n.jsx("span",{className:"text-[10px] text-gray-400",children:Tp(x.lastModified)})]})]}),j&&n.jsxs("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:"mt-3 flex items-center justify-center gap-1.5 text-xs text-gray-400 hover:text-gray-200 py-2 border border-gray-800 rounded-lg hover:border-gray-700 transition-colors",children:[n.jsx(Ep,{}),"Open on GitHub"]})]},x.path||`${x.org}/${x.name}`)})})]},b)})})]})}function Np(){return n.jsx("div",{className:"w-6 h-6 rounded bg-gray-700 flex items-center justify-center",children:n.jsx("svg",{className:"w-3.5 h-3.5 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"})})})}function Sp(){return n.jsx("svg",{className:"w-4 h-4 text-gray-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z"})})}function Ep(){return n.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"currentColor",children:n.jsx("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"})})}function Tp(r){if(!r)return"-";try{const o=Date.now()-new Date(r).getTime(),c=Math.floor(o/6e4);if(c<1)return"just now";if(c<60)return`${c}m ago`;const u=Math.floor(c/60);return u<24?`${u}h ago`:`${Math.floor(u/24)}d ago`}catch{return"-"}}function Cp(){const{id:r}=Eg(),{data:o,loading:c,error:u}=Ge(`/api/increments/${r||"_none"}`);if(!r)return n.jsx("div",{className:"p-6 text-gray-500 text-sm",children:"No increment ID specified"});if(c)return n.jsx(bt,{});if(u)return n.jsxs("div",{className:"p-6 text-rose-400 text-sm",children:["Error: ",u]});if(!o)return n.jsx("div",{className:"p-6 text-gray-500 text-sm",children:"Increment not found"});const d=o.taskSummary.total>0?Math.round(o.taskSummary.completed/o.taskSummary.total*100):0,h=o.acSummary.total>0?Math.round(o.acSummary.completed/o.acSummary.total*100):0;return n.jsxs("div",{className:"p-6 space-y-6",children:[n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[n.jsx("span",{className:"text-xs text-indigo-400 font-mono",children:o.dirName}),n.jsx(he,{label:o.metadata.status||"unknown",variant:bi(o.metadata.status||"")}),o.metadata.type&&n.jsx("span",{className:"text-xs text-gray-400 capitalize",children:o.metadata.type}),o.metadata.priority&&n.jsx(Ap,{priority:o.metadata.priority})]}),n.jsx("h2",{className:"text-lg font-semibold text-gray-200",children:o.metadata.title||o.id}),o.metadata.project&&n.jsxs("span",{className:"text-xs text-gray-500",children:["Project: ",o.metadata.project]})]}),n.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[n.jsx(le,{title:"Tasks",value:`${o.taskSummary.completed}/${o.taskSummary.total}`,color:"indigo"}),n.jsx(le,{title:"Task Progress",value:`${d}%`,color:"cyan"}),n.jsx(le,{title:"ACs",value:`${o.acSummary.completed}/${o.acSummary.total}`,color:"emerald"}),n.jsx(le,{title:"AC Progress",value:`${h}%`,color:"amber"})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5 space-y-4",children:[n.jsx(w0,{label:"Tasks",completed:o.taskSummary.completed,total:o.taskSummary.total,color:"indigo"}),n.jsx(w0,{label:"Acceptance Criteria",completed:o.acSummary.completed,total:o.acSummary.total,color:"emerald"})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsxs("h3",{className:"text-sm font-medium text-gray-300",children:["Tasks (",o.tasks.length,")"]})}),o.tasks.length===0?n.jsx("div",{className:"p-5 text-center text-gray-500 text-xs",children:"No tasks found in tasks.md"}):n.jsx("div",{className:"divide-y divide-gray-800/50",children:o.tasks.map(g=>n.jsxs("div",{className:"px-5 py-3 flex items-center gap-3",children:[n.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center flex-shrink-0 ${g.status==="completed"?"bg-indigo-500/20 border-indigo-500 text-indigo-400":"border-gray-600"}`,children:g.status==="completed"&&n.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),n.jsxs("div",{className:"flex-1 min-w-0",children:[n.jsxs("div",{className:"flex items-center gap-2",children:[n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:g.id}),n.jsx("span",{className:`text-sm ${g.status==="completed"?"text-gray-500 line-through":"text-gray-300"}`,children:g.title})]}),(g.userStory||g.acs)&&n.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[g.userStory&&n.jsx("span",{className:"text-[10px] text-indigo-400",children:g.userStory}),g.acs?.map(b=>n.jsx("span",{className:"text-[10px] text-emerald-500",children:b},b))]})]})]},g.id))})]}),o.acs.length>0&&n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl overflow-hidden",children:[n.jsx("div",{className:"px-5 py-3 border-b border-gray-800",children:n.jsxs("h3",{className:"text-sm font-medium text-gray-300",children:["Acceptance Criteria (",o.acs.length,")"]})}),n.jsx("div",{className:"divide-y divide-gray-800/50",children:o.acs.map(g=>n.jsxs("div",{className:"px-5 py-3 flex items-start gap-3",children:[n.jsx("div",{className:`w-4 h-4 rounded border flex items-center justify-center flex-shrink-0 mt-0.5 ${g.completed?"bg-emerald-500/20 border-emerald-500 text-emerald-400":"border-gray-600"}`,children:g.completed&&n.jsx("svg",{className:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),n.jsxs("div",{children:[n.jsx("span",{className:"text-xs text-emerald-500 font-mono",children:g.id}),n.jsx("span",{className:`text-sm ml-2 ${g.completed?"text-gray-500 line-through":"text-gray-300"}`,children:g.text})]})]},g.id))})]}),n.jsxs("div",{className:"bg-gray-900/50 border border-gray-800 rounded-xl p-5",children:[n.jsx("h3",{className:"text-sm font-medium text-gray-300 mb-3",children:"Metadata"}),n.jsx("div",{className:"space-y-1.5",children:Object.entries(o.metadata).filter(([g])=>!["title"].includes(g)).map(([g,b])=>n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsx("span",{className:"text-xs text-gray-500 font-mono",children:g}),n.jsx("span",{className:"text-xs text-gray-400",children:typeof b=="object"?JSON.stringify(b):String(b??"")})]},g))})]})]})}function w0({label:r,completed:o,total:c,color:u}){const d=c>0?Math.round(o/c*100):0,h=u==="emerald"?"bg-emerald-500":"bg-indigo-500";return n.jsxs("div",{children:[n.jsxs("div",{className:"flex items-center justify-between mb-1.5",children:[n.jsx("span",{className:"text-xs text-gray-400",children:r}),n.jsxs("span",{className:"text-xs text-gray-500",children:[o,"/",c," (",d,"%)"]})]}),n.jsx("div",{className:"w-full h-2 bg-gray-800 rounded-full overflow-hidden",children:n.jsx("div",{className:`h-full ${h} rounded-full transition-all`,style:{width:`${d}%`}})})]})}function Ap({priority:r}){const o={P0:"text-rose-400 bg-rose-500/10",P1:"text-amber-400 bg-amber-500/10",P2:"text-cyan-400 bg-cyan-500/10",P3:"text-gray-400 bg-gray-500/10"};return n.jsx("span",{className:`text-xs px-1.5 py-0.5 rounded ${o[r]||o.P2}`,children:r})}function Mp(){const r=vy();return n.jsx(tm.Provider,{value:r,children:n.jsxs("div",{className:"flex min-h-screen bg-gray-950 text-gray-100",children:[n.jsx(Ny,{}),n.jsxs("div",{className:"flex-1 flex flex-col min-w-0",children:[n.jsx(Sy,{}),n.jsx("main",{className:"flex-1 overflow-y-auto",children:n.jsxs(qg,{children:[n.jsx(tt,{path:"/",element:n.jsx(wy,{})}),n.jsx(tt,{path:"/increments",element:n.jsx(Ly,{})}),n.jsx(tt,{path:"/increments/:id",element:n.jsx(Cp,{})}),n.jsx(tt,{path:"/analytics",element:n.jsx(qy,{})}),n.jsx(tt,{path:"/costs",element:n.jsx(Zy,{})}),n.jsx(tt,{path:"/sync",element:n.jsx(Py,{})}),n.jsx(tt,{path:"/errors",element:n.jsx(tp,{})}),n.jsx(tt,{path:"/activity",element:n.jsx(up,{})}),n.jsx(tt,{path:"/config",element:n.jsx(fp,{})}),n.jsx(tt,{path:"/plugins",element:n.jsx(hp,{})}),n.jsx(tt,{path:"/services",element:n.jsx(gp,{})}),n.jsx(tt,{path:"/notifications",element:n.jsx(pp,{})}),n.jsx(tt,{path:"/repos",element:n.jsx(jp,{})}),n.jsx(tt,{path:"*",element:n.jsxs("div",{className:"p-6 text-center",children:[n.jsx("h2",{className:"text-lg font-semibold text-gray-200 mb-2",children:"Page Not Found"}),n.jsx("p",{className:"text-sm text-gray-500",children:"The page you're looking for doesn't exist."})]})})]})})]})]})})}Gx.createRoot(document.getElementById("root")).render(n.jsx(E.StrictMode,{children:n.jsx(oy,{children:n.jsx(Mp,{})})}));
|