agent-afk 5.265.2 → 5.266.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/agent/_lib/dir-newest-mtime.d.ts +5 -0
  2. package/dist/agent/dag-subagent.d.ts +2 -1
  3. package/dist/agent/journal/append-queue.d.ts +17 -0
  4. package/dist/agent/journal/blobs.d.ts +14 -0
  5. package/dist/agent/journal/fork.d.ts +1 -0
  6. package/dist/agent/journal/hydrate.d.ts +4 -0
  7. package/dist/agent/journal/index.d.ts +5 -0
  8. package/dist/agent/journal/journal-file.d.ts +37 -0
  9. package/dist/agent/journal/noop.d.ts +3 -0
  10. package/dist/agent/journal/reader.d.ts +24 -0
  11. package/dist/agent/journal/records.d.ts +13 -0
  12. package/dist/agent/journal/spill.d.ts +9 -0
  13. package/dist/agent/journal/sync.d.ts +18 -0
  14. package/dist/agent/journal/types.d.ts +121 -0
  15. package/dist/agent/journal/writer.d.ts +11 -0
  16. package/dist/agent/provider.d.ts +2 -0
  17. package/dist/agent/providers/anthropic-direct/journal-adapter.d.ts +3 -0
  18. package/dist/agent/providers/anthropic-direct/query/session-state.d.ts +4 -0
  19. package/dist/agent/providers/anthropic-direct/query/turn-request.d.ts +1 -0
  20. package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -0
  21. package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +2 -0
  22. package/dist/agent/providers/anthropic-direct/request-types.d.ts +1 -0
  23. package/dist/agent/providers/openai-compatible/journal-adapter.d.ts +4 -0
  24. package/dist/agent/providers/openai-compatible/query/journal-wiring.d.ts +18 -0
  25. package/dist/agent/providers/openai-compatible/query.d.ts +3 -0
  26. package/dist/agent/providers/router/provider-router.d.ts +2 -0
  27. package/dist/agent/providers/shared/compaction.d.ts +2 -0
  28. package/dist/agent/providers/shared/resume-usage-seed.d.ts +8 -0
  29. package/dist/agent/session/agent-session.d.ts +3 -0
  30. package/dist/agent/session/journal-lifecycle.d.ts +22 -0
  31. package/dist/agent/session/session-config.d.ts +2 -0
  32. package/dist/agent/session/session-reset.d.ts +2 -0
  33. package/dist/agent/session/session-setup.d.ts +1 -0
  34. package/dist/agent/session-sidecar-sweep.d.ts +2 -0
  35. package/dist/agent/session-sidecar-sweep.dirs.d.ts +9 -0
  36. package/dist/agent/subagent/fork-types.d.ts +6 -1
  37. package/dist/agent/tools/compose-executor.d.ts +1 -1
  38. package/dist/agent/tools/nesting.d.ts +2 -1
  39. package/dist/agent/tools/skill-executor/fork-child-config.d.ts +5 -1
  40. package/dist/agent/tools/skill-executor/fork-dispatch.d.ts +2 -0
  41. package/dist/agent/tools/skill-executor/types.d.ts +3 -2
  42. package/dist/agent/tools/subagent/child-config.d.ts +4 -1
  43. package/dist/agent/tools/subagent-executor/types.d.ts +3 -2
  44. package/dist/agent/types/config-types.d.ts +3 -0
  45. package/dist/agent/types/session-types.d.ts +2 -0
  46. package/dist/cli/commands/interactive/turn-handler.completion.d.ts +0 -5
  47. package/dist/cli/commands/interactive/turn-handler.d.ts +0 -1
  48. package/dist/cli/commands/trace-format.d.ts +6 -0
  49. package/dist/cli/commands/trace-results.d.ts +13 -0
  50. package/dist/cli/commands/trace.d.ts +2 -0
  51. package/dist/cli/commit-mode.d.ts +0 -1
  52. package/dist/cli/slash/session-stats.d.ts +1 -2
  53. package/dist/cli/terminal-compositor.commit-geometry.d.ts +0 -1
  54. package/dist/cli/terminal-compositor.commit-phase1.d.ts +0 -1
  55. package/dist/cli/terminal-compositor.commit-route.d.ts +1 -0
  56. package/dist/cli/terminal-compositor.committed-band-commit.d.ts +2 -0
  57. package/dist/cli/terminal-compositor.d.ts +3 -0
  58. package/dist/cli/terminal-compositor.lifecycle.d.ts +5 -0
  59. package/dist/cli/terminal-compositor.lifecycle.suspend-observer.d.ts +8 -0
  60. package/dist/cli/terminal-compositor.lifecycle.suspend-observer.process.d.ts +20 -0
  61. package/dist/cli/terminal-compositor.lifecycle.teardown.d.ts +1 -0
  62. package/dist/cli/terminal-compositor.reset.d.ts +3 -0
  63. package/dist/cli.mjs +466 -441
  64. package/dist/config/env.d.ts +7 -0
  65. package/dist/config/env.session-storage.d.ts +15 -0
  66. package/dist/index.mjs +175 -160
  67. package/dist/paths.d.ts +1 -0
  68. package/dist/paths.journal.d.ts +4 -0
  69. package/dist/telegram.mjs +226 -211
  70. package/dist/web-server/routes.tool-results.d.ts +12 -0
  71. package/dist/web-server/shared/ledger-adapter.d.ts +4 -0
  72. package/dist/web-server/tool-result-text.d.ts +5 -0
  73. package/dist/web-ui-assets/assets/{index-yyhuSaHa.js → index-CpbGrtNj.js} +75 -75
  74. package/dist/web-ui-assets/assets/{index-DA-_KrIR.js → index-MIgeDul2.js} +1 -1
  75. package/dist/web-ui-assets/assets/index-PzcVW5-O.css +1 -0
  76. package/dist/web-ui-assets/index.html +2 -2
  77. package/package.json +1 -1
  78. package/dist/web-ui-assets/assets/index-BMUkERO1.css +0 -1
@@ -1,4 +1,4 @@
1
- function SS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(a,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const s of c.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function sd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zc={exports:{}},sa={};/**
1
+ function CS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(a,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const s of c.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function sd(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zc={exports:{}},sa={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@ function SS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Vg;function kS(){if(Vg)return sa;Vg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(a,o,c){var s=null;if(c!==void 0&&(s=""+c),o.key!==void 0&&(s=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:t,type:a,key:s,ref:o!==void 0?o:null,props:c}}return sa.Fragment=l,sa.jsx=i,sa.jsxs=i,sa}var Yg;function wS(){return Yg||(Yg=1,Zc.exports=kS()),Zc.exports}var b=wS(),Kc={exports:{}},Ce={};/**
9
+ */var Vg;function TS(){if(Vg)return sa;Vg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(a,o,c){var s=null;if(c!==void 0&&(s=""+c),o.key!==void 0&&(s=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:t,type:a,key:s,ref:o!==void 0?o:null,props:c}}return sa.Fragment=l,sa.jsx=i,sa.jsxs=i,sa}var Yg;function AS(){return Yg||(Yg=1,Zc.exports=TS()),Zc.exports}var x=AS(),Kc={exports:{}},Ce={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -14,7 +14,7 @@ function SS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Gg;function ES(){if(Gg)return Ce;Gg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function S(_){return _===null||typeof _!="object"?null:(_=v&&_[v]||_["@@iterator"],typeof _=="function"?_:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,j={};function N(_,M,C){this.props=_,this.context=M,this.refs=j,this.updater=C||E}N.prototype.isReactComponent={},N.prototype.setState=function(_,M){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,M,"setState")},N.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function R(){}R.prototype=N.prototype;function L(_,M,C){this.props=_,this.context=M,this.refs=j,this.updater=C||E}var W=L.prototype=new R;W.constructor=L,A(W,N.prototype),W.isPureReactComponent=!0;var ee=Array.isArray;function D(){}var X={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ae(_,M,C){var te=C.ref;return{$$typeof:t,type:_,key:M,ref:te!==void 0?te:null,props:C}}function H(_,M){return ae(_.type,M,_.props)}function re(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function P(_){var M={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(C){return M[C]})}var be=/\/+/g;function ue(_,M){return typeof _=="object"&&_!==null&&_.key!=null?P(""+_.key):M.toString(36)}function ne(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(D,D):(_.status="pending",_.then(function(M){_.status==="pending"&&(_.status="fulfilled",_.value=M)},function(M){_.status==="pending"&&(_.status="rejected",_.reason=M)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function B(_,M,C,te,$){var le=typeof _;(le==="undefined"||le==="boolean")&&(_=null);var he=!1;if(_===null)he=!0;else switch(le){case"bigint":case"string":case"number":he=!0;break;case"object":switch(_.$$typeof){case t:case l:he=!0;break;case y:return he=_._init,B(he(_._payload),M,C,te,$)}}if(he)return $=$(_),he=te===""?"."+ue(_,0):te,ee($)?(C="",he!=null&&(C=he.replace(be,"$&/")+"/"),B($,M,C,"",function(at){return at})):$!=null&&(re($)&&($=H($,C+($.key==null||_&&_.key===$.key?"":(""+$.key).replace(be,"$&/")+"/")+he)),M.push($)),1;he=0;var Ae=te===""?".":te+":";if(ee(_))for(var pe=0;pe<_.length;pe++)te=_[pe],le=Ae+ue(te,pe),he+=B(te,M,C,le,$);else if(pe=S(_),typeof pe=="function")for(_=pe.call(_),pe=0;!(te=_.next()).done;)te=te.value,le=Ae+ue(te,pe++),he+=B(te,M,C,le,$);else if(le==="object"){if(typeof _.then=="function")return B(ne(_),M,C,te,$);throw M=String(_),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return he}function Q(_,M,C){if(_==null)return _;var te=[],$=0;return B(_,te,"","",function(le){return M.call(C,le,$++)}),te}function ce(_){if(_._status===-1){var M=_._result;M=M(),M.then(function(C){(_._status===0||_._status===-1)&&(_._status=1,_._result=C)},function(C){(_._status===0||_._status===-1)&&(_._status=2,_._result=C)}),_._status===-1&&(_._status=0,_._result=M)}if(_._status===1)return _._result.default;throw _._result}var we=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},T={map:Q,forEach:function(_,M,C){Q(_,function(){M.apply(this,arguments)},C)},count:function(_){var M=0;return Q(_,function(){M++}),M},toArray:function(_){return Q(_,function(M){return M})||[]},only:function(_){if(!re(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ce.Activity=g,Ce.Children=T,Ce.Component=N,Ce.Fragment=i,Ce.Profiler=o,Ce.PureComponent=L,Ce.StrictMode=a,Ce.Suspense=m,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(_){return X.H.useMemoCache(_)}},Ce.cache=function(_){return function(){return _.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(_,M,C){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var te=A({},_.props),$=_.key;if(M!=null)for(le in M.key!==void 0&&($=""+M.key),M)!V.call(M,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&M.ref===void 0||(te[le]=M[le]);var le=arguments.length-2;if(le===1)te.children=C;else if(1<le){for(var he=Array(le),Ae=0;Ae<le;Ae++)he[Ae]=arguments[Ae+2];te.children=he}return ae(_.type,$,te)},Ce.createContext=function(_){return _={$$typeof:s,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:c,_context:_},_},Ce.createElement=function(_,M,C){var te,$={},le=null;if(M!=null)for(te in M.key!==void 0&&(le=""+M.key),M)V.call(M,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&($[te]=M[te]);var he=arguments.length-2;if(he===1)$.children=C;else if(1<he){for(var Ae=Array(he),pe=0;pe<he;pe++)Ae[pe]=arguments[pe+2];$.children=Ae}if(_&&_.defaultProps)for(te in he=_.defaultProps,he)$[te]===void 0&&($[te]=he[te]);return ae(_,le,$)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(_){return{$$typeof:d,render:_}},Ce.isValidElement=re,Ce.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:ce}},Ce.memo=function(_,M){return{$$typeof:p,type:_,compare:M===void 0?null:M}},Ce.startTransition=function(_){var M=X.T,C={};X.T=C;try{var te=_(),$=X.S;$!==null&&$(C,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(D,we)}catch(le){we(le)}finally{M!==null&&C.types!==null&&(M.types=C.types),X.T=M}},Ce.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Ce.use=function(_){return X.H.use(_)},Ce.useActionState=function(_,M,C){return X.H.useActionState(_,M,C)},Ce.useCallback=function(_,M){return X.H.useCallback(_,M)},Ce.useContext=function(_){return X.H.useContext(_)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(_,M){return X.H.useDeferredValue(_,M)},Ce.useEffect=function(_,M){return X.H.useEffect(_,M)},Ce.useEffectEvent=function(_){return X.H.useEffectEvent(_)},Ce.useId=function(){return X.H.useId()},Ce.useImperativeHandle=function(_,M,C){return X.H.useImperativeHandle(_,M,C)},Ce.useInsertionEffect=function(_,M){return X.H.useInsertionEffect(_,M)},Ce.useLayoutEffect=function(_,M){return X.H.useLayoutEffect(_,M)},Ce.useMemo=function(_,M){return X.H.useMemo(_,M)},Ce.useOptimistic=function(_,M){return X.H.useOptimistic(_,M)},Ce.useReducer=function(_,M,C){return X.H.useReducer(_,M,C)},Ce.useRef=function(_){return X.H.useRef(_)},Ce.useState=function(_){return X.H.useState(_)},Ce.useSyncExternalStore=function(_,M,C){return X.H.useSyncExternalStore(_,M,C)},Ce.useTransition=function(){return X.H.useTransition()},Ce.version="19.2.8",Ce}var Fg;function cd(){return Fg||(Fg=1,Kc.exports=ES()),Kc.exports}var k=cd();const CS=sd(k),Aa=SS({__proto__:null,default:CS},[k]);var Pc={exports:{}},ca={},$c={exports:{}},Jc={};/**
17
+ */var Gg;function NS(){if(Gg)return Ce;Gg=1;var t=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function S(_){return _===null||typeof _!="object"?null:(_=v&&_[v]||_["@@iterator"],typeof _=="function"?_:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,j={};function N(_,M,C){this.props=_,this.context=M,this.refs=j,this.updater=C||E}N.prototype.isReactComponent={},N.prototype.setState=function(_,M){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,M,"setState")},N.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function L(){}L.prototype=N.prototype;function R(_,M,C){this.props=_,this.context=M,this.refs=j,this.updater=C||E}var K=R.prototype=new L;K.constructor=R,A(K,N.prototype),K.isPureReactComponent=!0;var ee=Array.isArray;function D(){}var X={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ae(_,M,C){var te=C.ref;return{$$typeof:t,type:_,key:M,ref:te!==void 0?te:null,props:C}}function H(_,M){return ae(_.type,M,_.props)}function re(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function $(_){var M={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(C){return M[C]})}var xe=/\/+/g;function ue(_,M){return typeof _=="object"&&_!==null&&_.key!=null?$(""+_.key):M.toString(36)}function ne(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(D,D):(_.status="pending",_.then(function(M){_.status==="pending"&&(_.status="fulfilled",_.value=M)},function(M){_.status==="pending"&&(_.status="rejected",_.reason=M)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function B(_,M,C,te,J){var le=typeof _;(le==="undefined"||le==="boolean")&&(_=null);var he=!1;if(_===null)he=!0;else switch(le){case"bigint":case"string":case"number":he=!0;break;case"object":switch(_.$$typeof){case t:case l:he=!0;break;case y:return he=_._init,B(he(_._payload),M,C,te,J)}}if(he)return J=J(_),he=te===""?"."+ue(_,0):te,ee(J)?(C="",he!=null&&(C=he.replace(xe,"$&/")+"/"),B(J,M,C,"",function(at){return at})):J!=null&&(re(J)&&(J=H(J,C+(J.key==null||_&&_.key===J.key?"":(""+J.key).replace(xe,"$&/")+"/")+he)),M.push(J)),1;he=0;var Ae=te===""?".":te+":";if(ee(_))for(var pe=0;pe<_.length;pe++)te=_[pe],le=Ae+ue(te,pe),he+=B(te,M,C,le,J);else if(pe=S(_),typeof pe=="function")for(_=pe.call(_),pe=0;!(te=_.next()).done;)te=te.value,le=Ae+ue(te,pe++),he+=B(te,M,C,le,J);else if(le==="object"){if(typeof _.then=="function")return B(ne(_),M,C,te,J);throw M=String(_),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return he}function Q(_,M,C){if(_==null)return _;var te=[],J=0;return B(_,te,"","",function(le){return M.call(C,le,J++)}),te}function ce(_){if(_._status===-1){var M=_._result;M=M(),M.then(function(C){(_._status===0||_._status===-1)&&(_._status=1,_._result=C)},function(C){(_._status===0||_._status===-1)&&(_._status=2,_._result=C)}),_._status===-1&&(_._status=0,_._result=M)}if(_._status===1)return _._result.default;throw _._result}var we=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},T={map:Q,forEach:function(_,M,C){Q(_,function(){M.apply(this,arguments)},C)},count:function(_){var M=0;return Q(_,function(){M++}),M},toArray:function(_){return Q(_,function(M){return M})||[]},only:function(_){if(!re(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ce.Activity=g,Ce.Children=T,Ce.Component=N,Ce.Fragment=i,Ce.Profiler=o,Ce.PureComponent=R,Ce.StrictMode=a,Ce.Suspense=m,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(_){return X.H.useMemoCache(_)}},Ce.cache=function(_){return function(){return _.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(_,M,C){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var te=A({},_.props),J=_.key;if(M!=null)for(le in M.key!==void 0&&(J=""+M.key),M)!V.call(M,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&M.ref===void 0||(te[le]=M[le]);var le=arguments.length-2;if(le===1)te.children=C;else if(1<le){for(var he=Array(le),Ae=0;Ae<le;Ae++)he[Ae]=arguments[Ae+2];te.children=he}return ae(_.type,J,te)},Ce.createContext=function(_){return _={$$typeof:s,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:c,_context:_},_},Ce.createElement=function(_,M,C){var te,J={},le=null;if(M!=null)for(te in M.key!==void 0&&(le=""+M.key),M)V.call(M,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(J[te]=M[te]);var he=arguments.length-2;if(he===1)J.children=C;else if(1<he){for(var Ae=Array(he),pe=0;pe<he;pe++)Ae[pe]=arguments[pe+2];J.children=Ae}if(_&&_.defaultProps)for(te in he=_.defaultProps,he)J[te]===void 0&&(J[te]=he[te]);return ae(_,le,J)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(_){return{$$typeof:d,render:_}},Ce.isValidElement=re,Ce.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:ce}},Ce.memo=function(_,M){return{$$typeof:p,type:_,compare:M===void 0?null:M}},Ce.startTransition=function(_){var M=X.T,C={};X.T=C;try{var te=_(),J=X.S;J!==null&&J(C,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(D,we)}catch(le){we(le)}finally{M!==null&&C.types!==null&&(M.types=C.types),X.T=M}},Ce.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Ce.use=function(_){return X.H.use(_)},Ce.useActionState=function(_,M,C){return X.H.useActionState(_,M,C)},Ce.useCallback=function(_,M){return X.H.useCallback(_,M)},Ce.useContext=function(_){return X.H.useContext(_)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(_,M){return X.H.useDeferredValue(_,M)},Ce.useEffect=function(_,M){return X.H.useEffect(_,M)},Ce.useEffectEvent=function(_){return X.H.useEffectEvent(_)},Ce.useId=function(){return X.H.useId()},Ce.useImperativeHandle=function(_,M,C){return X.H.useImperativeHandle(_,M,C)},Ce.useInsertionEffect=function(_,M){return X.H.useInsertionEffect(_,M)},Ce.useLayoutEffect=function(_,M){return X.H.useLayoutEffect(_,M)},Ce.useMemo=function(_,M){return X.H.useMemo(_,M)},Ce.useOptimistic=function(_,M){return X.H.useOptimistic(_,M)},Ce.useReducer=function(_,M,C){return X.H.useReducer(_,M,C)},Ce.useRef=function(_){return X.H.useRef(_)},Ce.useState=function(_){return X.H.useState(_)},Ce.useSyncExternalStore=function(_,M,C){return X.H.useSyncExternalStore(_,M,C)},Ce.useTransition=function(){return X.H.useTransition()},Ce.version="19.2.8",Ce}var Fg;function cd(){return Fg||(Fg=1,Kc.exports=NS()),Kc.exports}var k=cd();const jS=sd(k),Aa=CS({__proto__:null,default:jS},[k]);var Pc={exports:{}},ca={},$c={exports:{}},Jc={};/**
18
18
  * @license React
19
19
  * scheduler.production.js
20
20
  *
@@ -22,7 +22,7 @@ function SS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Xg;function TS(){return Xg||(Xg=1,(function(t){function l(B,Q){var ce=B.length;B.push(Q);e:for(;0<ce;){var we=ce-1>>>1,T=B[we];if(0<o(T,Q))B[we]=Q,B[ce]=T,ce=we;else break e}}function i(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var Q=B[0],ce=B.pop();if(ce!==Q){B[0]=ce;e:for(var we=0,T=B.length,_=T>>>1;we<_;){var M=2*(we+1)-1,C=B[M],te=M+1,$=B[te];if(0>o(C,ce))te<T&&0>o($,C)?(B[we]=$,B[te]=ce,we=te):(B[we]=C,B[M]=ce,we=M);else if(te<T&&0>o($,ce))B[we]=$,B[te]=ce,we=te;else break e}}return Q}function o(B,Q){var ce=B.sortIndex-Q.sortIndex;return ce!==0?ce:B.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var s=Date,d=s.now();t.unstable_now=function(){return s.now()-d}}var m=[],p=[],y=1,g=null,v=3,S=!1,E=!1,A=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function W(B){for(var Q=i(p);Q!==null;){if(Q.callback===null)a(p);else if(Q.startTime<=B)a(p),Q.sortIndex=Q.expirationTime,l(m,Q);else break;Q=i(p)}}function ee(B){if(A=!1,W(B),!E)if(i(m)!==null)E=!0,D||(D=!0,P());else{var Q=i(p);Q!==null&&ne(ee,Q.startTime-B)}}var D=!1,X=-1,V=5,ae=-1;function H(){return j?!0:!(t.unstable_now()-ae<V)}function re(){if(j=!1,D){var B=t.unstable_now();ae=B;var Q=!0;try{e:{E=!1,A&&(A=!1,R(X),X=-1),S=!0;var ce=v;try{t:{for(W(B),g=i(m);g!==null&&!(g.expirationTime>B&&H());){var we=g.callback;if(typeof we=="function"){g.callback=null,v=g.priorityLevel;var T=we(g.expirationTime<=B);if(B=t.unstable_now(),typeof T=="function"){g.callback=T,W(B),Q=!0;break t}g===i(m)&&a(m),W(B)}else a(m);g=i(m)}if(g!==null)Q=!0;else{var _=i(p);_!==null&&ne(ee,_.startTime-B),Q=!1}}break e}finally{g=null,v=ce,S=!1}Q=void 0}}finally{Q?P():D=!1}}}var P;if(typeof L=="function")P=function(){L(re)};else if(typeof MessageChannel<"u"){var be=new MessageChannel,ue=be.port2;be.port1.onmessage=re,P=function(){ue.postMessage(null)}}else P=function(){N(re,0)};function ne(B,Q){X=N(function(){B(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(B){switch(v){case 1:case 2:case 3:var Q=3;break;default:Q=v}var ce=v;v=Q;try{return B()}finally{v=ce}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(B,Q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ce=v;v=B;try{return Q()}finally{v=ce}},t.unstable_scheduleCallback=function(B,Q,ce){var we=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?we+ce:we):ce=we,B){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ce+T,B={id:y++,callback:Q,priorityLevel:B,startTime:ce,expirationTime:T,sortIndex:-1},ce>we?(B.sortIndex=ce,l(p,B),i(m)===null&&B===i(p)&&(A?(R(X),X=-1):A=!0,ne(ee,ce-we))):(B.sortIndex=T,l(m,B),E||S||(E=!0,D||(D=!0,P()))),B},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(B){var Q=v;return function(){var ce=v;v=Q;try{return B.apply(this,arguments)}finally{v=ce}}}})(Jc)),Jc}var Qg;function AS(){return Qg||(Qg=1,$c.exports=TS()),$c.exports}var Wc={exports:{}},Et={};/**
25
+ */var Xg;function zS(){return Xg||(Xg=1,(function(t){function l(B,Q){var ce=B.length;B.push(Q);e:for(;0<ce;){var we=ce-1>>>1,T=B[we];if(0<o(T,Q))B[we]=Q,B[ce]=T,ce=we;else break e}}function i(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var Q=B[0],ce=B.pop();if(ce!==Q){B[0]=ce;e:for(var we=0,T=B.length,_=T>>>1;we<_;){var M=2*(we+1)-1,C=B[M],te=M+1,J=B[te];if(0>o(C,ce))te<T&&0>o(J,C)?(B[we]=J,B[te]=ce,we=te):(B[we]=C,B[M]=ce,we=M);else if(te<T&&0>o(J,ce))B[we]=J,B[te]=ce,we=te;else break e}}return Q}function o(B,Q){var ce=B.sortIndex-Q.sortIndex;return ce!==0?ce:B.id-Q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var s=Date,d=s.now();t.unstable_now=function(){return s.now()-d}}var m=[],p=[],y=1,g=null,v=3,S=!1,E=!1,A=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function K(B){for(var Q=i(p);Q!==null;){if(Q.callback===null)a(p);else if(Q.startTime<=B)a(p),Q.sortIndex=Q.expirationTime,l(m,Q);else break;Q=i(p)}}function ee(B){if(A=!1,K(B),!E)if(i(m)!==null)E=!0,D||(D=!0,$());else{var Q=i(p);Q!==null&&ne(ee,Q.startTime-B)}}var D=!1,X=-1,V=5,ae=-1;function H(){return j?!0:!(t.unstable_now()-ae<V)}function re(){if(j=!1,D){var B=t.unstable_now();ae=B;var Q=!0;try{e:{E=!1,A&&(A=!1,L(X),X=-1),S=!0;var ce=v;try{t:{for(K(B),g=i(m);g!==null&&!(g.expirationTime>B&&H());){var we=g.callback;if(typeof we=="function"){g.callback=null,v=g.priorityLevel;var T=we(g.expirationTime<=B);if(B=t.unstable_now(),typeof T=="function"){g.callback=T,K(B),Q=!0;break t}g===i(m)&&a(m),K(B)}else a(m);g=i(m)}if(g!==null)Q=!0;else{var _=i(p);_!==null&&ne(ee,_.startTime-B),Q=!1}}break e}finally{g=null,v=ce,S=!1}Q=void 0}}finally{Q?$():D=!1}}}var $;if(typeof R=="function")$=function(){R(re)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,ue=xe.port2;xe.port1.onmessage=re,$=function(){ue.postMessage(null)}}else $=function(){N(re,0)};function ne(B,Q){X=N(function(){B(t.unstable_now())},Q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(B){switch(v){case 1:case 2:case 3:var Q=3;break;default:Q=v}var ce=v;v=Q;try{return B()}finally{v=ce}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(B,Q){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ce=v;v=B;try{return Q()}finally{v=ce}},t.unstable_scheduleCallback=function(B,Q,ce){var we=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?we+ce:we):ce=we,B){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ce+T,B={id:y++,callback:Q,priorityLevel:B,startTime:ce,expirationTime:T,sortIndex:-1},ce>we?(B.sortIndex=ce,l(p,B),i(m)===null&&B===i(p)&&(A?(L(X),X=-1):A=!0,ne(ee,ce-we))):(B.sortIndex=T,l(m,B),E||S||(E=!0,D||(D=!0,$()))),B},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(B){var Q=v;return function(){var ce=v;v=Q;try{return B.apply(this,arguments)}finally{v=ce}}}})(Jc)),Jc}var Qg;function MS(){return Qg||(Qg=1,$c.exports=zS()),$c.exports}var Wc={exports:{}},Et={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ function SS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Zg;function NS(){if(Zg)return Et;Zg=1;var t=cd();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:p,implementation:y}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Et.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return c(m,p,null,y)},Et.flushSync=function(m){var p=s.T,y=a.p;try{if(s.T=null,a.p=2,m)return m()}finally{s.T=p,a.p=y,a.d.f()}},Et.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(m,p))},Et.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Et.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):y==="script"&&a.d.X(m,{crossOrigin:g,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Et.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);a.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(m)},Et.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);a.d.L(m,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Et.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);a.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(m)},Et.requestFormReset=function(m){a.d.r(m)},Et.unstable_batchedUpdates=function(m,p){return m(p)},Et.useFormState=function(m,p,y){return s.H.useFormState(m,p,y)},Et.useFormStatus=function(){return s.H.useHostTransitionStatus()},Et.version="19.2.8",Et}var Kg;function hb(){if(Kg)return Wc.exports;Kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Wc.exports=NS(),Wc.exports}/**
33
+ */var Zg;function _S(){if(Zg)return Et;Zg=1;var t=cd();function l(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(m,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:m,containerInfo:p,implementation:y}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Et.createPortal=function(m,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return c(m,p,null,y)},Et.flushSync=function(m){var p=s.T,y=a.p;try{if(s.T=null,a.p=2,m)return m()}finally{s.T=p,a.p=y,a.d.f()}},Et.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(m,p))},Et.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},Et.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):y==="script"&&a.d.X(m,{crossOrigin:g,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Et.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=d(p.as,p.crossOrigin);a.d.M(m,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(m)},Et.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=d(y,p.crossOrigin);a.d.L(m,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Et.preloadModule=function(m,p){if(typeof m=="string")if(p){var y=d(p.as,p.crossOrigin);a.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(m)},Et.requestFormReset=function(m){a.d.r(m)},Et.unstable_batchedUpdates=function(m,p){return m(p)},Et.useFormState=function(m,p,y){return s.H.useFormState(m,p,y)},Et.useFormStatus=function(){return s.H.useHostTransitionStatus()},Et.version="19.2.8",Et}var Kg;function mx(){if(Kg)return Wc.exports;Kg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Wc.exports=_S(),Wc.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,45 +38,45 @@ function SS(t,l){for(var i=0;i<l.length;i++){const a=l[i];if(typeof a!="string"&
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Pg;function jS(){if(Pg)return ca;Pg=1;var t=AS(),l=cd(),i=hb();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function s(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(a(188))}function p(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(a(188));return n!==e?null:e}for(var r=e,u=n;;){var f=r.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){r=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===r)return m(f),e;if(h===u)return m(f),n;h=h.sibling}throw Error(a(188))}if(r.return!==u.return)r=f,u=h;else{for(var x=!1,w=f.child;w;){if(w===r){x=!0,r=f,u=h;break}if(w===u){x=!0,u=f,r=h;break}w=w.sibling}if(!x){for(w=h.child;w;){if(w===r){x=!0,r=h,u=f;break}if(w===u){x=!0,u=h,r=f;break}w=w.sibling}if(!x)throw Error(a(189))}}if(r.alternate!==u)throw Error(a(190))}if(r.tag!==3)throw Error(a(188));return r.stateNode.current===r?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),L=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var be=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case N:return"Profiler";case j:return"StrictMode";case ee:return"Suspense";case D:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case L:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case W:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return n=e.displayName||null,n!==null?n:ue(e.type)||"Memo";case V:n=e._payload,e=e._init;try{return ue(e(n))}catch{}}return null}var ne=Array.isArray,B=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},we=[],T=-1;function _(e){return{current:e}}function M(e){0>T||(e.current=we[T],we[T]=null,T--)}function C(e,n){T++,we[T]=e.current,e.current=n}var te=_(null),$=_(null),le=_(null),he=_(null);function Ae(e,n){switch(C(le,n),C($,e),C(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?fg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=fg(n),e=dg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(te),C(te,e)}function pe(){M(te),M($),M(le)}function at(e){e.memoizedState!==null&&C(he,e);var n=te.current,r=dg(n,e.type);n!==r&&(C($,e),C(te,r))}function _t(e){$.current===e&&(M(te),M($)),he.current===e&&(M(he),ia._currentValue=ce)}var wn,rl;function Dt(e){if(wn===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);wn=n&&n[1]||"",rl=-1<r.stack.indexOf(`
41
+ */var Pg;function DS(){if(Pg)return ca;Pg=1;var t=MS(),l=cd(),i=mx();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function s(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function d(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(a(188))}function p(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(a(188));return n!==e?null:e}for(var r=e,u=n;;){var f=r.return;if(f===null)break;var h=f.alternate;if(h===null){if(u=f.return,u!==null){r=u;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===r)return m(f),e;if(h===u)return m(f),n;h=h.sibling}throw Error(a(188))}if(r.return!==u.return)r=f,u=h;else{for(var b=!1,w=f.child;w;){if(w===r){b=!0,r=f,u=h;break}if(w===u){b=!0,u=f,r=h;break}w=w.sibling}if(!b){for(w=h.child;w;){if(w===r){b=!0,r=h,u=f;break}if(w===u){b=!0,u=h,r=f;break}w=w.sibling}if(!b)throw Error(a(189))}}if(r.alternate!==u)throw Error(a(190))}if(r.tag!==3)throw Error(a(188));return r.stateNode.current===r?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),R=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case N:return"Profiler";case j:return"StrictMode";case ee:return"Suspense";case D:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case K:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return n=e.displayName||null,n!==null?n:ue(e.type)||"Memo";case V:n=e._payload,e=e._init;try{return ue(e(n))}catch{}}return null}var ne=Array.isArray,B=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},we=[],T=-1;function _(e){return{current:e}}function M(e){0>T||(e.current=we[T],we[T]=null,T--)}function C(e,n){T++,we[T]=e.current,e.current=n}var te=_(null),J=_(null),le=_(null),he=_(null);function Ae(e,n){switch(C(le,n),C(J,e),C(te,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?fg(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=fg(n),e=dg(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(te),C(te,e)}function pe(){M(te),M(J),M(le)}function at(e){e.memoizedState!==null&&C(he,e);var n=te.current,r=dg(n,e.type);n!==r&&(C(J,e),C(te,r))}function _t(e){J.current===e&&(M(te),M(J)),he.current===e&&(M(he),ia._currentValue=ce)}var wn,rl;function Dt(e){if(wn===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);wn=n&&n[1]||"",rl=-1<r.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+wn+e+rl}var cr=!1;function fr(e,n){if(!e||cr)return"";cr=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(G){var Y=G}Reflect.construct(e,[],J)}else{try{J.call()}catch(G){Y=G}e.call(J.prototype)}}else{try{throw Error()}catch(G){Y=G}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(G){if(G&&Y&&typeof G.stack=="string")return[G.stack,Y.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),x=h[0],w=h[1];if(x&&w){var z=x.split(`
43
+ `+wn+e+rl}var cr=!1;function fr(e,n){if(!e||cr)return"";cr=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(G){var Y=G}Reflect.construct(e,[],W)}else{try{W.call()}catch(G){Y=G}e.call(W.prototype)}}else{try{throw Error()}catch(G){Y=G}(W=e())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(G){if(G&&Y&&typeof G.stack=="string")return[G.stack,Y.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=u.DetermineComponentFrameRoot(),b=h[0],w=h[1];if(b&&w){var z=b.split(`
44
44
  `),I=w.split(`
45
45
  `);for(f=u=0;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;for(;f<I.length&&!I[f].includes("DetermineComponentFrameRoot");)f++;if(u===z.length||f===I.length)for(u=z.length-1,f=I.length-1;1<=u&&0<=f&&z[u]!==I[f];)f--;for(;1<=u&&0<=f;u--,f--)if(z[u]!==I[f]){if(u!==1||f!==1)do if(u--,f--,0>f||z[u]!==I[f]){var F=`
46
46
  `+z[u].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=u&&0<=f);break}}}finally{cr=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Dt(r):""}function Da(e,n){switch(e.tag){case 26:case 27:case 5:return Dt(e.type);case 16:return Dt("Lazy");case 13:return e.child!==n&&n!==null?Dt("Suspense Fallback"):Dt("Suspense");case 19:return Dt("SuspenseList");case 0:case 15:return fr(e.type,!1);case 11:return fr(e.type.render,!1);case 1:return fr(e.type,!0);case 31:return Dt("Activity");default:return""}}function Oa(e){try{var n="",r=null;do n+=Da(e,r),r=e,e=e.return;while(e);return n}catch(u){return`
47
47
  Error generating stack: `+u.message+`
48
- `+u.stack}}var dr=Object.prototype.hasOwnProperty,hr=t.unstable_scheduleCallback,yi=t.unstable_cancelCallback,Do=t.unstable_shouldYield,Oo=t.unstable_requestPaint,At=t.unstable_now,Ro=t.unstable_getCurrentPriorityLevel,Z=t.unstable_ImmediatePriority,oe=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Ft=t.log,On=t.unstable_setDisableYieldValue,Nt=null,dt=null;function Ot(e){if(typeof Ft=="function"&&On(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Nt,e)}catch{}}var Ze=Math.clz32?Math.clz32:uv,il=Math.log,gn=Math.LN2;function uv(e){return e>>>=0,e===0?32:31-(il(e)/gn|0)|0}var Ra=256,La=262144,Ua=4194304;function Rl(e){var n=e&42;if(n!==0)return n;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 Ba(e,n,r){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=u&134217727;return w!==0?(u=w&~h,u!==0?f=Rl(u):(x&=w,x!==0?f=Rl(x):r||(r=w&~e,r!==0&&(f=Rl(r))))):(w=u&~h,w!==0?f=Rl(w):x!==0?f=Rl(x):r||(r=u&~e,r!==0&&(f=Rl(r)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,r=n&-n,h>=r||h===32&&(r&4194048)!==0)?n:f}function bi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function ov(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Xd(){var e=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),e}function Lo(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function xi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sv(e,n,r,u,f,h){var x=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,z=e.expirationTimes,I=e.hiddenUpdates;for(r=x&~r;0<r;){var F=31-Ze(r),J=1<<F;w[F]=0,z[F]=-1;var Y=I[F];if(Y!==null)for(I[F]=null,F=0;F<Y.length;F++){var G=Y[F];G!==null&&(G.lane&=-536870913)}r&=~J}u!==0&&Qd(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~n))}function Qd(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ze(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|r&261930}function Zd(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var u=31-Ze(r),f=1<<u;f&n|e[u]&n&&(e[u]|=n),r&=~f}}function Kd(e,n){var r=n&-n;return r=(r&42)!==0?1:Uo(r),(r&(e.suspendedLanes|n))!==0?0:r}function Uo(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 Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Rg(e.type))}function $d(e,n){var r=Q.p;try{return Q.p=e,n()}finally{Q.p=r}}var al=Math.random().toString(36).slice(2),bt="__reactFiber$"+al,Rt="__reactProps$"+al,mr="__reactContainer$"+al,Ho="__reactEvents$"+al,cv="__reactListeners$"+al,fv="__reactHandles$"+al,Jd="__reactResources$"+al,vi="__reactMarker$"+al;function qo(e){delete e[bt],delete e[Rt],delete e[Ho],delete e[cv],delete e[fv]}function pr(e){var n=e[bt];if(n)return n;for(var r=e.parentNode;r;){if(n=r[mr]||r[bt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=xg(e);e!==null;){if(r=e[bt])return r;e=xg(e)}return n}e=r,r=e.parentNode}return null}function gr(e){if(e=e[bt]||e[mr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Si(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function yr(e){var n=e[Jd];return n||(n=e[Jd]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pt(e){e[vi]=!0}var Wd=new Set,eh={};function Ll(e,n){br(e,n),br(e+"Capture",n)}function br(e,n){for(eh[e]=n,e=0;e<n.length;e++)Wd.add(n[e])}var dv=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]*$"),th={},nh={};function hv(e){return dr.call(nh,e)?!0:dr.call(th,e)?!1:dv.test(e)?nh[e]=!0:(th[e]=!0,!1)}function Ha(e,n,r){if(hv(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function qa(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+r)}}function Rn(e,n,r,u){if(u===null)e.removeAttribute(r);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+u)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function mv(e,n,r){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){r=""+x,h.call(this,x)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return r},setValue:function(x){r=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Io(e){if(!e._valueTracker){var n=lh(e)?"checked":"value";e._valueTracker=mv(e,n,""+e[n])}}function rh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),u="";return e&&(u=lh(e)?e.checked?"true":"false":e.value),e=u,e!==r?(n.setValue(e),!0):!1}function Ia(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 pv=/[\n"\\]/g;function nn(e){return e.replace(pv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Vo(e,n,r,u,f,h,x,w){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+tn(n)):e.value!==""+tn(n)&&(e.value=""+tn(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Yo(e,x,tn(n)):r!=null?Yo(e,x,tn(r)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+tn(w):e.removeAttribute("name")}function ih(e,n,r,u,f,h,x,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Io(e);return}r=r!=null?""+tn(r):"",n=n!=null?""+tn(n):r,w||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=w?e.checked:!!u,e.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Io(e)}function Yo(e,n,r){n==="number"&&Ia(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function xr(e,n,r,u){if(e=e.options,n){n={};for(var f=0;f<r.length;f++)n["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=n.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&u&&(e[r].defaultSelected=!0)}else{for(r=""+tn(r),n=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function ah(e,n,r){if(n!=null&&(n=""+tn(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+tn(r):""}function uh(e,n,r,u){if(n==null){if(u!=null){if(r!=null)throw Error(a(92));if(ne(u)){if(1<u.length)throw Error(a(93));u=u[0]}r=u}r==null&&(r=""),n=r}r=tn(n),e.defaultValue=r,u=e.textContent,u===r&&u!==""&&u!==null&&(e.value=u),Io(e)}function vr(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var gv=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 oh(e,n,r){var u=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,r):typeof r!="number"||r===0||gv.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function sh(e,n,r){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,r!=null){for(var u in r)!r.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&r[f]!==u&&oh(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&oh(e,h,n[h])}function Go(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 yv=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"]]),bv=/^[\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 Va(e){return bv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Fo=null;function Xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sr=null,kr=null;function ch(e){var n=gr(e);if(n&&(e=n.stateNode)){var r=e[Rt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Vo(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var u=r[n];if(u!==e&&u.form===e.form){var f=u[Rt]||null;if(!f)throw Error(a(90));Vo(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<r.length;n++)u=r[n],u.form===e.form&&rh(u)}break e;case"textarea":ah(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&xr(e,!!r.multiple,n,!1)}}}var Qo=!1;function fh(e,n,r){if(Qo)return e(n,r);Qo=!0;try{var u=e(n);return u}finally{if(Qo=!1,(Sr!==null||kr!==null)&&(ju(),Sr&&(n=Sr,e=kr,kr=Sr=null,ch(n),e)))for(n=0;n<e.length;n++)ch(e[n])}}function ki(e,n){var r=e.stateNode;if(r===null)return null;var u=r[Rt]||null;if(u===null)return null;r=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(a(231,n,typeof r));return r}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=!1;if(Un)try{var wi={};Object.defineProperty(wi,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",wi,wi),window.removeEventListener("test",wi,wi)}catch{Zo=!1}var ul=null,Ko=null,Ya=null;function dh(){if(Ya)return Ya;var e,n=Ko,r=n.length,u,f="value"in ul?ul.value:ul.textContent,h=f.length;for(e=0;e<r&&n[e]===f[e];e++);var x=r-e;for(u=1;u<=x&&n[r-u]===f[h-u];u++);return Ya=f.slice(e,1<u?1-u:void 0)}function Ga(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Fa(){return!0}function hh(){return!1}function Lt(e){function n(r,u,f,h,x){this._reactName=r,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Fa:hh,this.isPropagationStopped=hh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Fa)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Fa)},persist:function(){},isPersistent:Fa}),n}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xa=Lt(Ul),Ei=g({},Ul,{view:0,detail:0}),xv=Lt(Ei),Po,$o,Ci,Qa=g({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wo,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!==Ci&&(Ci&&e.type==="mousemove"?(Po=e.screenX-Ci.screenX,$o=e.screenY-Ci.screenY):$o=Po=0,Ci=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:$o}}),mh=Lt(Qa),vv=g({},Qa,{dataTransfer:0}),Sv=Lt(vv),kv=g({},Ei,{relatedTarget:0}),Jo=Lt(kv),wv=g({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),Ev=Lt(wv),Cv=g({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tv=Lt(Cv),Av=g({},Ul,{data:0}),ph=Lt(Av),Nv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jv={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"},zv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mv(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=zv[e])?!!n[e]:!1}function Wo(){return Mv}var _v=g({},Ei,{key:function(e){if(e.key){var n=Nv[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ga(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?jv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wo,charCode:function(e){return e.type==="keypress"?Ga(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ga(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dv=Lt(_v),Ov=g({},Qa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gh=Lt(Ov),Rv=g({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wo}),Lv=Lt(Rv),Uv=g({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bv=Lt(Uv),Hv=g({},Qa,{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}),qv=Lt(Hv),Iv=g({},Ul,{newState:0,oldState:0}),Vv=Lt(Iv),Yv=[9,13,27,32],es=Un&&"CompositionEvent"in window,Ti=null;Un&&"documentMode"in document&&(Ti=document.documentMode);var Gv=Un&&"TextEvent"in window&&!Ti,yh=Un&&(!es||Ti&&8<Ti&&11>=Ti),bh=" ",xh=!1;function vh(e,n){switch(e){case"keyup":return Yv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function Fv(e,n){switch(e){case"compositionend":return Sh(n);case"keypress":return n.which!==32?null:(xh=!0,bh);case"textInput":return e=n.data,e===bh&&xh?null:e;default:return null}}function Xv(e,n){if(wr)return e==="compositionend"||!es&&vh(e,n)?(e=dh(),Ya=Ko=ul=null,wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return yh&&n.locale!=="ko"?null:n.data;default:return null}}var Qv={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 kh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Qv[e.type]:n==="textarea"}function wh(e,n,r,u){Sr?kr?kr.push(u):kr=[u]:Sr=u,n=Lu(n,"onChange"),0<n.length&&(r=new Xa("onChange","change",null,r,u),e.push({event:r,listeners:n}))}var Ai=null,Ni=null;function Zv(e){ig(e,0)}function Za(e){var n=Si(e);if(rh(n))return e}function Eh(e,n){if(e==="change")return n}var Ch=!1;if(Un){var ts;if(Un){var ns="oninput"in document;if(!ns){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),ns=typeof Th.oninput=="function"}ts=ns}else ts=!1;Ch=ts&&(!document.documentMode||9<document.documentMode)}function Ah(){Ai&&(Ai.detachEvent("onpropertychange",Nh),Ni=Ai=null)}function Nh(e){if(e.propertyName==="value"&&Za(Ni)){var n=[];wh(n,Ni,e,Xo(e)),fh(Zv,n)}}function Kv(e,n,r){e==="focusin"?(Ah(),Ai=n,Ni=r,Ai.attachEvent("onpropertychange",Nh)):e==="focusout"&&Ah()}function Pv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Za(Ni)}function $v(e,n){if(e==="click")return Za(n)}function Jv(e,n){if(e==="input"||e==="change")return Za(n)}function Wv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Xt=typeof Object.is=="function"?Object.is:Wv;function ji(e,n){if(Xt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),u=Object.keys(n);if(r.length!==u.length)return!1;for(u=0;u<r.length;u++){var f=r[u];if(!dr.call(n,f)||!Xt(e[f],n[f]))return!1}return!0}function jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,n){var r=jh(e);e=0;for(var u;r;){if(r.nodeType===3){if(u=e+r.textContent.length,e<=n&&u>=n)return{node:r,offset:n-e};e=u}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jh(r)}}function Mh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Mh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function _h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ia(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=Ia(e.document)}return n}function ls(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var e1=Un&&"documentMode"in document&&11>=document.documentMode,Er=null,rs=null,zi=null,is=!1;function Dh(e,n,r){var u=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;is||Er==null||Er!==Ia(u)||(u=Er,"selectionStart"in u&&ls(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),zi&&ji(zi,u)||(zi=u,u=Lu(rs,"onSelect"),0<u.length&&(n=new Xa("onSelect","select",null,n,r),e.push({event:n,listeners:u}),n.target=Er)))}function Bl(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var Cr={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},as={},Oh={};Un&&(Oh=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);function Hl(e){if(as[e])return as[e];if(!Cr[e])return e;var n=Cr[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in Oh)return as[e]=n[r];return e}var Rh=Hl("animationend"),Lh=Hl("animationiteration"),Uh=Hl("animationstart"),t1=Hl("transitionrun"),n1=Hl("transitionstart"),l1=Hl("transitioncancel"),Bh=Hl("transitionend"),Hh=new Map,us="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(" ");us.push("scrollEnd");function yn(e,n){Hh.set(e,n),Ll(n,[e])}var Ka=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],Tr=0,os=0;function Pa(){for(var e=Tr,n=os=Tr=0;n<e;){var r=ln[n];ln[n++]=null;var u=ln[n];ln[n++]=null;var f=ln[n];ln[n++]=null;var h=ln[n];if(ln[n++]=null,u!==null&&f!==null){var x=u.pending;x===null?f.next=f:(f.next=x.next,x.next=f),u.pending=f}h!==0&&qh(r,f,h)}}function $a(e,n,r,u){ln[Tr++]=e,ln[Tr++]=n,ln[Tr++]=r,ln[Tr++]=u,os|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function ss(e,n,r,u){return $a(e,n,r,u),Ja(e)}function ql(e,n){return $a(e,null,null,n),Ja(e)}function qh(e,n,r){e.lanes|=r;var u=e.alternate;u!==null&&(u.lanes|=r);for(var f=!1,h=e.return;h!==null;)h.childLanes|=r,u=h.alternate,u!==null&&(u.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ze(r),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=r|536870912),h):null}function Ja(e){if(50<Ji)throw Ji=0,bc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ar={};function r1(e,n,r,u){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,n,r,u){return new r1(e,n,r,u)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bn(e,n){var r=e.alternate;return r===null?(r=Qt(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Ih(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Wa(e,n,r,u,f,h){var x=0;if(u=e,typeof e=="function")cs(e)&&(x=1);else if(typeof e=="string")x=sS(e,r,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Qt(31,r,n,f),e.elementType=ae,e.lanes=h,e;case A:return Il(r.children,f,h,n);case j:x=8,f|=24;break;case N:return e=Qt(12,r,n,f|2),e.elementType=N,e.lanes=h,e;case ee:return e=Qt(13,r,n,f),e.elementType=ee,e.lanes=h,e;case D:return e=Qt(19,r,n,f),e.elementType=D,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:x=10;break e;case R:x=9;break e;case W:x=11;break e;case X:x=14;break e;case V:x=16,u=null;break e}x=29,r=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Qt(x,r,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function Il(e,n,r,u){return e=Qt(7,e,u,n),e.lanes=r,e}function fs(e,n,r){return e=Qt(6,e,null,n),e.lanes=r,e}function Vh(e){var n=Qt(18,null,null,0);return n.stateNode=e,n}function ds(e,n,r){return n=Qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Yh=new WeakMap;function rn(e,n){if(typeof e=="object"&&e!==null){var r=Yh.get(e);return r!==void 0?r:(n={value:e,source:n,stack:Oa(n)},Yh.set(e,n),n)}return{value:e,source:n,stack:Oa(n)}}var Nr=[],jr=0,eu=null,Mi=0,an=[],un=0,ol=null,En=1,Cn="";function Hn(e,n){Nr[jr++]=Mi,Nr[jr++]=eu,eu=e,Mi=n}function Gh(e,n,r){an[un++]=En,an[un++]=Cn,an[un++]=ol,ol=e;var u=En;e=Cn;var f=32-Ze(u)-1;u&=~(1<<f),r+=1;var h=32-Ze(n)+f;if(30<h){var x=f-f%5;h=(u&(1<<x)-1).toString(32),u>>=x,f-=x,En=1<<32-Ze(n)+f|r<<f|u,Cn=h+e}else En=1<<h|r<<f|u,Cn=e}function hs(e){e.return!==null&&(Hn(e,1),Gh(e,1,0))}function ms(e){for(;e===eu;)eu=Nr[--jr],Nr[jr]=null,Mi=Nr[--jr],Nr[jr]=null;for(;e===ol;)ol=an[--un],an[un]=null,Cn=an[--un],an[un]=null,En=an[--un],an[un]=null}function Fh(e,n){an[un++]=En,an[un++]=Cn,an[un++]=ol,En=n.id,Cn=n.overflow,ol=e}var xt=null,Je=null,Le=!1,sl=null,on=!1,ps=Error(a(519));function cl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _i(rn(n,e)),ps}function Xh(e){var n=e.stateNode,r=e.type,u=e.memoizedProps;switch(n[bt]=e,n[Rt]=u,r){case"dialog":_e("cancel",n),_e("close",n);break;case"iframe":case"object":case"embed":_e("load",n);break;case"video":case"audio":for(r=0;r<ea.length;r++)_e(ea[r],n);break;case"source":_e("error",n);break;case"img":case"image":case"link":_e("error",n),_e("load",n);break;case"details":_e("toggle",n);break;case"input":_e("invalid",n),ih(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":_e("invalid",n);break;case"textarea":_e("invalid",n),uh(n,u.value,u.defaultValue,u.children)}r=u.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||u.suppressHydrationWarning===!0||sg(n.textContent,r)?(u.popover!=null&&(_e("beforetoggle",n),_e("toggle",n)),u.onScroll!=null&&_e("scroll",n),u.onScrollEnd!=null&&_e("scrollend",n),u.onClick!=null&&(n.onclick=Ln),n=!0):n=!1,n||cl(e,!0)}function Qh(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:xt=xt.return}}function zr(e){if(e!==xt)return!1;if(!Le)return Qh(e),Le=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Dc(e.type,e.memoizedProps)),r=!r),r&&Je&&cl(e),Qh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=bg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=bg(e)}else n===27?(n=Je,El(e.type)?(e=Bc,Bc=null,Je=e):Je=n):Je=xt?cn(e.stateNode.nextSibling):null;return!0}function Vl(){Je=xt=null,Le=!1}function gs(){var e=sl;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),sl=null),e}function _i(e){sl===null?sl=[e]:sl.push(e)}var ys=_(null),Yl=null,qn=null;function fl(e,n,r){C(ys,n._currentValue),n._currentValue=r}function In(e){e._currentValue=ys.current,M(ys)}function bs(e,n,r){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===r)break;e=e.return}}function xs(e,n,r,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var x=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var z=0;z<n.length;z++)if(w.context===n[z]){h.lanes|=r,w=h.alternate,w!==null&&(w.lanes|=r),bs(h.return,r,e),u||(x=null);break e}h=w.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(a(341));x.lanes|=r,h=x.alternate,h!==null&&(h.lanes|=r),bs(x,r,e),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===e){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Mr(e,n,r,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var w=f.type;Xt(f.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(f===he.current){if(x=f.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(ia):e=[ia])}f=f.return}e!==null&&xs(n,e,r,u),n.flags|=262144}function tu(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){Yl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Zh(Yl,e)}function nu(e,n){return Yl===null&&Gl(e),Zh(e,n)}function Zh(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},qn===null){if(e===null)throw Error(a(308));qn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else qn=qn.next=n;return r}var i1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},a1=t.unstable_scheduleCallback,u1=t.unstable_NormalPriority,ut={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vs(){return{controller:new i1,data:new Map,refCount:0}}function Di(e){e.refCount--,e.refCount===0&&a1(u1,function(){e.controller.abort()})}var Oi=null,Ss=0,_r=0,Dr=null;function o1(e,n){if(Oi===null){var r=Oi=[];Ss=0,_r=Ec(),Dr={status:"pending",value:void 0,then:function(u){r.push(u)}}}return Ss++,n.then(Kh,Kh),n}function Kh(){if(--Ss===0&&Oi!==null){Dr!==null&&(Dr.status="fulfilled");var e=Oi;Oi=null,_r=0,Dr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function s1(e,n){var r=[],u={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<r.length;f++)(0,r[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),u}var Ph=B.S;B.S=function(e,n){Dp=At(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&o1(e,n),Ph!==null&&Ph(e,n)};var Fl=_(null);function ks(){var e=Fl.current;return e!==null?e:Ke.pooledCache}function lu(e,n){n===null?C(Fl,Fl.current):C(Fl,n.pool)}function $h(){var e=ks();return e===null?null:{parent:ut._currentValue,pool:e}}var Or=Error(a(460)),ws=Error(a(474)),ru=Error(a(542)),iu={then:function(){}};function Jh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wh(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(Ln,Ln),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,tm(e),e;default:if(typeof n.status=="string")n.then(Ln,Ln);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,tm(e),e}throw Ql=n,Or}}function Xl(e){try{var n=e._init;return n(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Ql=r,Or):r}}var Ql=null;function em(){if(Ql===null)throw Error(a(459));var e=Ql;return Ql=null,e}function tm(e){if(e===Or||e===ru)throw Error(a(483))}var Rr=null,Ri=0;function au(e){var n=Ri;return Ri+=1,Rr===null&&(Rr=[]),Wh(Rr,e,n)}function Li(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function uu(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function nm(e){function n(U,O){if(e){var q=U.deletions;q===null?(U.deletions=[O],U.flags|=16):q.push(O)}}function r(U,O){if(!e)return null;for(;O!==null;)n(U,O),O=O.sibling;return null}function u(U){for(var O=new Map;U!==null;)U.key!==null?O.set(U.key,U):O.set(U.index,U),U=U.sibling;return O}function f(U,O){return U=Bn(U,O),U.index=0,U.sibling=null,U}function h(U,O,q){return U.index=q,e?(q=U.alternate,q!==null?(q=q.index,q<O?(U.flags|=67108866,O):q):(U.flags|=67108866,O)):(U.flags|=1048576,O)}function x(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function w(U,O,q,K){return O===null||O.tag!==6?(O=fs(q,U.mode,K),O.return=U,O):(O=f(O,q),O.return=U,O)}function z(U,O,q,K){var ye=q.type;return ye===A?F(U,O,q.props.children,K,q.key):O!==null&&(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&Xl(ye)===O.type)?(O=f(O,q.props),Li(O,q),O.return=U,O):(O=Wa(q.type,q.key,q.props,null,U.mode,K),Li(O,q),O.return=U,O)}function I(U,O,q,K){return O===null||O.tag!==4||O.stateNode.containerInfo!==q.containerInfo||O.stateNode.implementation!==q.implementation?(O=ds(q,U.mode,K),O.return=U,O):(O=f(O,q.children||[]),O.return=U,O)}function F(U,O,q,K,ye){return O===null||O.tag!==7?(O=Il(q,U.mode,K,ye),O.return=U,O):(O=f(O,q),O.return=U,O)}function J(U,O,q){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=fs(""+O,U.mode,q),O.return=U,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return q=Wa(O.type,O.key,O.props,null,U.mode,q),Li(q,O),q.return=U,q;case E:return O=ds(O,U.mode,q),O.return=U,O;case V:return O=Xl(O),J(U,O,q)}if(ne(O)||P(O))return O=Il(O,U.mode,q,null),O.return=U,O;if(typeof O.then=="function")return J(U,au(O),q);if(O.$$typeof===L)return J(U,nu(U,O),q);uu(U,O)}return null}function Y(U,O,q,K){var ye=O!==null?O.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ye!==null?null:w(U,O,""+q,K);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===ye?z(U,O,q,K):null;case E:return q.key===ye?I(U,O,q,K):null;case V:return q=Xl(q),Y(U,O,q,K)}if(ne(q)||P(q))return ye!==null?null:F(U,O,q,K,null);if(typeof q.then=="function")return Y(U,O,au(q),K);if(q.$$typeof===L)return Y(U,O,nu(U,q),K);uu(U,q)}return null}function G(U,O,q,K,ye){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return U=U.get(q)||null,w(O,U,""+K,ye);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case S:return U=U.get(K.key===null?q:K.key)||null,z(O,U,K,ye);case E:return U=U.get(K.key===null?q:K.key)||null,I(O,U,K,ye);case V:return K=Xl(K),G(U,O,q,K,ye)}if(ne(K)||P(K))return U=U.get(q)||null,F(O,U,K,ye,null);if(typeof K.then=="function")return G(U,O,q,au(K),ye);if(K.$$typeof===L)return G(U,O,q,nu(O,K),ye);uu(O,K)}return null}function me(U,O,q,K){for(var ye=null,Be=null,ge=O,Ne=O=0,Re=null;ge!==null&&Ne<q.length;Ne++){ge.index>Ne?(Re=ge,ge=null):Re=ge.sibling;var He=Y(U,ge,q[Ne],K);if(He===null){ge===null&&(ge=Re);break}e&&ge&&He.alternate===null&&n(U,ge),O=h(He,O,Ne),Be===null?ye=He:Be.sibling=He,Be=He,ge=Re}if(Ne===q.length)return r(U,ge),Le&&Hn(U,Ne),ye;if(ge===null){for(;Ne<q.length;Ne++)ge=J(U,q[Ne],K),ge!==null&&(O=h(ge,O,Ne),Be===null?ye=ge:Be.sibling=ge,Be=ge);return Le&&Hn(U,Ne),ye}for(ge=u(ge);Ne<q.length;Ne++)Re=G(ge,U,Ne,q[Ne],K),Re!==null&&(e&&Re.alternate!==null&&ge.delete(Re.key===null?Ne:Re.key),O=h(Re,O,Ne),Be===null?ye=Re:Be.sibling=Re,Be=Re);return e&&ge.forEach(function(jl){return n(U,jl)}),Le&&Hn(U,Ne),ye}function ve(U,O,q,K){if(q==null)throw Error(a(151));for(var ye=null,Be=null,ge=O,Ne=O=0,Re=null,He=q.next();ge!==null&&!He.done;Ne++,He=q.next()){ge.index>Ne?(Re=ge,ge=null):Re=ge.sibling;var jl=Y(U,ge,He.value,K);if(jl===null){ge===null&&(ge=Re);break}e&&ge&&jl.alternate===null&&n(U,ge),O=h(jl,O,Ne),Be===null?ye=jl:Be.sibling=jl,Be=jl,ge=Re}if(He.done)return r(U,ge),Le&&Hn(U,Ne),ye;if(ge===null){for(;!He.done;Ne++,He=q.next())He=J(U,He.value,K),He!==null&&(O=h(He,O,Ne),Be===null?ye=He:Be.sibling=He,Be=He);return Le&&Hn(U,Ne),ye}for(ge=u(ge);!He.done;Ne++,He=q.next())He=G(ge,U,Ne,He.value,K),He!==null&&(e&&He.alternate!==null&&ge.delete(He.key===null?Ne:He.key),O=h(He,O,Ne),Be===null?ye=He:Be.sibling=He,Be=He);return e&&ge.forEach(function(vS){return n(U,vS)}),Le&&Hn(U,Ne),ye}function Xe(U,O,q,K){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var ye=q.key;O!==null;){if(O.key===ye){if(ye=q.type,ye===A){if(O.tag===7){r(U,O.sibling),K=f(O,q.props.children),K.return=U,U=K;break e}}else if(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&Xl(ye)===O.type){r(U,O.sibling),K=f(O,q.props),Li(K,q),K.return=U,U=K;break e}r(U,O);break}else n(U,O);O=O.sibling}q.type===A?(K=Il(q.props.children,U.mode,K,q.key),K.return=U,U=K):(K=Wa(q.type,q.key,q.props,null,U.mode,K),Li(K,q),K.return=U,U=K)}return x(U);case E:e:{for(ye=q.key;O!==null;){if(O.key===ye)if(O.tag===4&&O.stateNode.containerInfo===q.containerInfo&&O.stateNode.implementation===q.implementation){r(U,O.sibling),K=f(O,q.children||[]),K.return=U,U=K;break e}else{r(U,O);break}else n(U,O);O=O.sibling}K=ds(q,U.mode,K),K.return=U,U=K}return x(U);case V:return q=Xl(q),Xe(U,O,q,K)}if(ne(q))return me(U,O,q,K);if(P(q)){if(ye=P(q),typeof ye!="function")throw Error(a(150));return q=ye.call(q),ve(U,O,q,K)}if(typeof q.then=="function")return Xe(U,O,au(q),K);if(q.$$typeof===L)return Xe(U,O,nu(U,q),K);uu(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,O!==null&&O.tag===6?(r(U,O.sibling),K=f(O,q),K.return=U,U=K):(r(U,O),K=fs(q,U.mode,K),K.return=U,U=K),x(U)):r(U,O)}return function(U,O,q,K){try{Ri=0;var ye=Xe(U,O,q,K);return Rr=null,ye}catch(ge){if(ge===Or||ge===ru)throw ge;var Be=Qt(29,ge,null,U.mode);return Be.lanes=K,Be.return=U,Be}finally{}}}var Zl=nm(!0),lm=nm(!1),dl=!1;function Es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cs(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ml(e,n,r){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(qe&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Ja(e),qh(e,null,r),n}return $a(e,u,n,r),Ja(e)}function Ui(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,r|=u,n.lanes=r,Zd(e,r)}}function Ts(e,n){var r=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,r===u)){var f=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var x={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?f=h=x:h=h.next=x,r=r.next}while(r!==null);h===null?f=h=n:h=h.next=n}else f=h=n;r={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var As=!1;function Bi(){if(As){var e=Dr;if(e!==null)throw e}}function Hi(e,n,r,u){As=!1;var f=e.updateQueue;dl=!1;var h=f.firstBaseUpdate,x=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var z=w,I=z.next;z.next=null,x===null?h=I:x.next=I,x=z;var F=e.alternate;F!==null&&(F=F.updateQueue,w=F.lastBaseUpdate,w!==x&&(w===null?F.firstBaseUpdate=I:w.next=I,F.lastBaseUpdate=z))}if(h!==null){var J=f.baseState;x=0,F=I=z=null,w=h;do{var Y=w.lane&-536870913,G=Y!==w.lane;if(G?(Oe&Y)===Y:(u&Y)===Y){Y!==0&&Y===_r&&(As=!0),F!==null&&(F=F.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var me=e,ve=w;Y=n;var Xe=r;switch(ve.tag){case 1:if(me=ve.payload,typeof me=="function"){J=me.call(Xe,J,Y);break e}J=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,Y=typeof me=="function"?me.call(Xe,J,Y):me,Y==null)break e;J=g({},J,Y);break e;case 2:dl=!0}}Y=w.callback,Y!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[Y]:G.push(Y))}else G={lane:Y,tag:w.tag,payload:w.payload,callback:w.callback,next:null},F===null?(I=F=G,z=J):F=F.next=G,x|=Y;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;G=w,w=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);F===null&&(z=J),f.baseState=z,f.firstBaseUpdate=I,f.lastBaseUpdate=F,h===null&&(f.shared.lanes=0),xl|=x,e.lanes=x,e.memoizedState=J}}function rm(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function im(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)rm(r[e],n)}var Lr=_(null),ou=_(0);function am(e,n){e=Pn,C(ou,e),C(Lr,n),Pn=e|n.baseLanes}function Ns(){C(ou,Pn),C(Lr,Lr.current)}function js(){Pn=ou.current,M(Lr),M(ou)}var Zt=_(null),sn=null;function pl(e){var n=e.alternate;C(rt,rt.current&1),C(Zt,e),sn===null&&(n===null||Lr.current!==null||n.memoizedState!==null)&&(sn=e)}function zs(e){C(rt,rt.current),C(Zt,e),sn===null&&(sn=e)}function um(e){e.tag===22?(C(rt,rt.current),C(Zt,e),sn===null&&(sn=e)):gl()}function gl(){C(rt,rt.current),C(Zt,Zt.current)}function Kt(e){M(Zt),sn===e&&(sn=null),M(rt)}var rt=_(0);function su(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Lc(r)||Uc(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Vn=0,Te=null,Ge=null,ot=null,cu=!1,Ur=!1,Kl=!1,fu=0,qi=0,Br=null,c1=0;function tt(){throw Error(a(321))}function Ms(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!Xt(e[r],n[r]))return!1;return!0}function _s(e,n,r,u,f,h){return Vn=h,Te=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,B.H=e===null||e.memoizedState===null?Gm:Qs,Kl=!1,h=r(u,f),Kl=!1,Ur&&(h=sm(n,r,u,f)),om(e),h}function om(e){B.H=Yi;var n=Ge!==null&&Ge.next!==null;if(Vn=0,ot=Ge=Te=null,cu=!1,qi=0,Br=null,n)throw Error(a(300));e===null||st||(e=e.dependencies,e!==null&&tu(e)&&(st=!0))}function sm(e,n,r,u){Te=e;var f=0;do{if(Ur&&(Br=null),qi=0,Ur=!1,25<=f)throw Error(a(301));if(f+=1,ot=Ge=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}B.H=Fm,h=n(r,u)}while(Ur);return h}function f1(){var e=B.H,n=e.useState()[0];return n=typeof n.then=="function"?Ii(n):n,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Te.flags|=1024),n}function Ds(){var e=fu!==0;return fu=0,e}function Os(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function Rs(e){if(cu){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}cu=!1}Vn=0,ot=Ge=Te=null,Ur=!1,qi=fu=0,Br=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Te.memoizedState=ot=e:ot=ot.next=e,ot}function it(){if(Ge===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var n=ot===null?Te.memoizedState:ot.next;if(n!==null)ot=n,Ge=e;else{if(e===null)throw Te.alternate===null?Error(a(467)):Error(a(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},ot===null?Te.memoizedState=ot=e:ot=ot.next=e}return ot}function du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(e){var n=qi;return qi+=1,Br===null&&(Br=[]),e=Wh(Br,e,n),n=Te,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,B.H=n===null||n.memoizedState===null?Gm:Qs),e}function hu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ii(e);if(e.$$typeof===L)return vt(e)}throw Error(a(438,String(e)))}function Ls(e){var n=null,r=Te.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var u=Te.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=du(),Te.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),u=0;u<e;u++)r[u]=H;return n.index++,r}function Yn(e,n){return typeof n=="function"?n(e):n}function mu(e){var n=it();return Us(n,Ge,e)}function Us(e,n,r){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=r;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var x=f.next;f.next=h.next,h.next=x}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var w=x=null,z=null,I=n,F=!1;do{var J=I.lane&-536870913;if(J!==I.lane?(Oe&J)===J:(Vn&J)===J){var Y=I.revertLane;if(Y===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),J===_r&&(F=!0);else if((Vn&Y)===Y){I=I.next,Y===_r&&(F=!0);continue}else J={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(w=z=J,x=h):z=z.next=J,Te.lanes|=Y,xl|=Y;J=I.action,Kl&&r(h,J),h=I.hasEagerState?I.eagerState:r(h,J)}else Y={lane:J,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(w=z=Y,x=h):z=z.next=Y,Te.lanes|=J,xl|=J;I=I.next}while(I!==null&&I!==n);if(z===null?x=h:z.next=w,!Xt(h,e.memoizedState)&&(st=!0,F&&(r=Dr,r!==null)))throw r;e.memoizedState=h,e.baseState=x,e.baseQueue=z,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Bs(e){var n=it(),r=n.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var u=r.dispatch,f=r.pending,h=n.memoizedState;if(f!==null){r.pending=null;var x=f=f.next;do h=e(h,x.action),x=x.next;while(x!==f);Xt(h,n.memoizedState)||(st=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),r.lastRenderedState=h}return[h,u]}function cm(e,n,r){var u=Te,f=it(),h=Le;if(h){if(r===void 0)throw Error(a(407));r=r()}else r=n();var x=!Xt((Ge||f).memoizedState,r);if(x&&(f.memoizedState=r,st=!0),f=f.queue,Is(hm.bind(null,u,f,e),[e]),f.getSnapshot!==n||x||ot!==null&&ot.memoizedState.tag&1){if(u.flags|=2048,Hr(9,{destroy:void 0},dm.bind(null,u,f,r,n),null),Ke===null)throw Error(a(349));h||(Vn&127)!==0||fm(u,n,r)}return r}function fm(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=Te.updateQueue,n===null?(n=du(),Te.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function dm(e,n,r,u){n.value=r,n.getSnapshot=u,mm(n)&&pm(e)}function hm(e,n,r){return r(function(){mm(n)&&pm(e)})}function mm(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Xt(e,r)}catch{return!0}}function pm(e){var n=ql(e,2);n!==null&&It(n,e,2)}function Hs(e){var n=jt();if(typeof e=="function"){var r=e;if(e=r(),Kl){Ot(!0);try{r()}finally{Ot(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},n}function gm(e,n,r,u){return e.baseState=r,Us(e,Ge,typeof u=="function"?u:Yn)}function d1(e,n,r,u,f){if(yu(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};B.T!==null?r(!0):h.isTransition=!1,u(h),r=n.pending,r===null?(h.next=n.pending=h,ym(n,h)):(h.next=r.next,n.pending=r.next=h)}}function ym(e,n){var r=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=B.T,x={};B.T=x;try{var w=r(f,u),z=B.S;z!==null&&z(x,w),bm(e,n,w)}catch(I){qs(e,n,I)}finally{h!==null&&x.types!==null&&(h.types=x.types),B.T=h}}else try{h=r(f,u),bm(e,n,h)}catch(I){qs(e,n,I)}}function bm(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(u){xm(e,n,u)},function(u){return qs(e,n,u)}):xm(e,n,r)}function xm(e,n,r){n.status="fulfilled",n.value=r,vm(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,ym(e,r)))}function qs(e,n,r){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=r,vm(n),n=n.next;while(n!==u)}e.action=null}function vm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Sm(e,n){return n}function km(e,n){if(Le){var r=Ke.formState;if(r!==null){e:{var u=Te;if(Le){if(Je){t:{for(var f=Je,h=on;f.nodeType!==8;){if(!h){f=null;break t}if(f=cn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Je=cn(f.nextSibling),u=f.data==="F!";break e}}cl(u)}u=!1}u&&(n=r[0])}}return r=jt(),r.memoizedState=r.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sm,lastRenderedState:n},r.queue=u,r=Im.bind(null,Te,u),u.dispatch=r,u=Hs(!1),h=Xs.bind(null,Te,!1,u.queue),u=jt(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,r=d1.bind(null,Te,f,h,r),f.dispatch=r,u.memoizedState=e,[n,r,!1]}function wm(e){var n=it();return Em(n,Ge,e)}function Em(e,n,r){if(n=Us(e,n,Sm)[0],e=mu(Yn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Ii(n)}catch(x){throw x===Or?ru:x}else u=n;n=it();var f=n.queue,h=f.dispatch;return r!==n.memoizedState&&(Te.flags|=2048,Hr(9,{destroy:void 0},h1.bind(null,f,r),null)),[u,h,e]}function h1(e,n){e.action=n}function Cm(e){var n=it(),r=Ge;if(r!==null)return Em(n,r,e);it(),n=n.memoizedState,r=it();var u=r.queue.dispatch;return r.memoizedState=e,[n,u,!1]}function Hr(e,n,r,u){return e={tag:e,create:r,deps:u,inst:n,next:null},n=Te.updateQueue,n===null&&(n=du(),Te.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(u=r.next,r.next=e,e.next=u,n.lastEffect=e),e}function Tm(){return it().memoizedState}function pu(e,n,r,u){var f=jt();Te.flags|=e,f.memoizedState=Hr(1|n,{destroy:void 0},r,u===void 0?null:u)}function gu(e,n,r,u){var f=it();u=u===void 0?null:u;var h=f.memoizedState.inst;Ge!==null&&u!==null&&Ms(u,Ge.memoizedState.deps)?f.memoizedState=Hr(n,h,r,u):(Te.flags|=e,f.memoizedState=Hr(1|n,h,r,u))}function Am(e,n){pu(8390656,8,e,n)}function Is(e,n){gu(2048,8,e,n)}function m1(e){Te.flags|=4;var n=Te.updateQueue;if(n===null)n=du(),Te.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function Nm(e){var n=it().memoizedState;return m1({ref:n,nextImpl:e}),function(){if((qe&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function jm(e,n){return gu(4,2,e,n)}function zm(e,n){return gu(4,4,e,n)}function Mm(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function _m(e,n,r){r=r!=null?r.concat([e]):null,gu(4,4,Mm.bind(null,n,e),r)}function Vs(){}function Dm(e,n){var r=it();n=n===void 0?null:n;var u=r.memoizedState;return n!==null&&Ms(n,u[1])?u[0]:(r.memoizedState=[e,n],e)}function Om(e,n){var r=it();n=n===void 0?null:n;var u=r.memoizedState;if(n!==null&&Ms(n,u[1]))return u[0];if(u=e(),Kl){Ot(!0);try{e()}finally{Ot(!1)}}return r.memoizedState=[u,n],u}function Ys(e,n,r){return r===void 0||(Vn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=Rp(),Te.lanes|=e,xl|=e,r)}function Rm(e,n,r,u){return Xt(r,n)?r:Lr.current!==null?(e=Ys(e,r,u),Xt(e,n)||(st=!0),e):(Vn&42)===0||(Vn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=r):(e=Rp(),Te.lanes|=e,xl|=e,n)}function Lm(e,n,r,u,f){var h=Q.p;Q.p=h!==0&&8>h?h:8;var x=B.T,w={};B.T=w,Xs(e,!1,n,r);try{var z=f(),I=B.S;if(I!==null&&I(w,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var F=s1(z,u);Vi(e,n,F,Jt(e))}else Vi(e,n,u,Jt(e))}catch(J){Vi(e,n,{then:function(){},status:"rejected",reason:J},Jt())}finally{Q.p=h,x!==null&&w.types!==null&&(x.types=w.types),B.T=x}}function p1(){}function Gs(e,n,r,u){if(e.tag!==5)throw Error(a(476));var f=Um(e).queue;Lm(e,f,n,ce,r===null?p1:function(){return Bm(e),r(u)})}function Um(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:ce},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Bm(e){var n=Um(e);n.next===null&&(n=e.alternate.memoizedState),Vi(e,n.next.queue,{},Jt())}function Fs(){return vt(ia)}function Hm(){return it().memoizedState}function qm(){return it().memoizedState}function g1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Jt();e=hl(r);var u=ml(n,e,r);u!==null&&(It(u,n,r),Ui(u,n,r)),n={cache:vs()},e.payload=n;return}n=n.return}}function y1(e,n,r){var u=Jt();r={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},yu(e)?Vm(n,r):(r=ss(e,n,r,u),r!==null&&(It(r,e,u),Ym(r,n,u)))}function Im(e,n,r){var u=Jt();Vi(e,n,r,u)}function Vi(e,n,r,u){var f={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(yu(e))Vm(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var x=n.lastRenderedState,w=h(x,r);if(f.hasEagerState=!0,f.eagerState=w,Xt(w,x))return $a(e,n,f,0),Ke===null&&Pa(),!1}catch{}finally{}if(r=ss(e,n,f,u),r!==null)return It(r,e,u),Ym(r,n,u),!0}return!1}function Xs(e,n,r,u){if(u={lane:2,revertLane:Ec(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},yu(e)){if(n)throw Error(a(479))}else n=ss(e,r,u,2),n!==null&&It(n,e,2)}function yu(e){var n=e.alternate;return e===Te||n!==null&&n===Te}function Vm(e,n){Ur=cu=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function Ym(e,n,r){if((r&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,r|=u,n.lanes=r,Zd(e,r)}}var Yi={readContext:vt,use:hu,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};Yi.useEffectEvent=tt;var Gm={readContext:vt,use:hu,useCallback:function(e,n){return jt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:Am,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,pu(4194308,4,Mm.bind(null,n,e),r)},useLayoutEffect:function(e,n){return pu(4194308,4,e,n)},useInsertionEffect:function(e,n){pu(4,2,e,n)},useMemo:function(e,n){var r=jt();n=n===void 0?null:n;var u=e();if(Kl){Ot(!0);try{e()}finally{Ot(!1)}}return r.memoizedState=[u,n],u},useReducer:function(e,n,r){var u=jt();if(r!==void 0){var f=r(n);if(Kl){Ot(!0);try{r(n)}finally{Ot(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=y1.bind(null,Te,e),[u.memoizedState,e]},useRef:function(e){var n=jt();return e={current:e},n.memoizedState=e},useState:function(e){e=Hs(e);var n=e.queue,r=Im.bind(null,Te,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:Vs,useDeferredValue:function(e,n){var r=jt();return Ys(r,e,n)},useTransition:function(){var e=Hs(!1);return e=Lm.bind(null,Te,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var u=Te,f=jt();if(Le){if(r===void 0)throw Error(a(407));r=r()}else{if(r=n(),Ke===null)throw Error(a(349));(Oe&127)!==0||fm(u,n,r)}f.memoizedState=r;var h={value:r,getSnapshot:n};return f.queue=h,Am(hm.bind(null,u,h,e),[e]),u.flags|=2048,Hr(9,{destroy:void 0},dm.bind(null,u,h,r,n),null),r},useId:function(){var e=jt(),n=Ke.identifierPrefix;if(Le){var r=Cn,u=En;r=(u&~(1<<32-Ze(u)-1)).toString(32)+r,n="_"+n+"R_"+r,r=fu++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=c1++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Fs,useFormState:km,useActionState:km,useOptimistic:function(e){var n=jt();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Xs.bind(null,Te,!0,r),r.dispatch=n,[e,n]},useMemoCache:Ls,useCacheRefresh:function(){return jt().memoizedState=g1.bind(null,Te)},useEffectEvent:function(e){var n=jt(),r={impl:e};return n.memoizedState=r,function(){if((qe&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}},Qs={readContext:vt,use:hu,useCallback:Dm,useContext:vt,useEffect:Is,useImperativeHandle:_m,useInsertionEffect:jm,useLayoutEffect:zm,useMemo:Om,useReducer:mu,useRef:Tm,useState:function(){return mu(Yn)},useDebugValue:Vs,useDeferredValue:function(e,n){var r=it();return Rm(r,Ge.memoizedState,e,n)},useTransition:function(){var e=mu(Yn)[0],n=it().memoizedState;return[typeof e=="boolean"?e:Ii(e),n]},useSyncExternalStore:cm,useId:Hm,useHostTransitionStatus:Fs,useFormState:wm,useActionState:wm,useOptimistic:function(e,n){var r=it();return gm(r,Ge,e,n)},useMemoCache:Ls,useCacheRefresh:qm};Qs.useEffectEvent=Nm;var Fm={readContext:vt,use:hu,useCallback:Dm,useContext:vt,useEffect:Is,useImperativeHandle:_m,useInsertionEffect:jm,useLayoutEffect:zm,useMemo:Om,useReducer:Bs,useRef:Tm,useState:function(){return Bs(Yn)},useDebugValue:Vs,useDeferredValue:function(e,n){var r=it();return Ge===null?Ys(r,e,n):Rm(r,Ge.memoizedState,e,n)},useTransition:function(){var e=Bs(Yn)[0],n=it().memoizedState;return[typeof e=="boolean"?e:Ii(e),n]},useSyncExternalStore:cm,useId:Hm,useHostTransitionStatus:Fs,useFormState:Cm,useActionState:Cm,useOptimistic:function(e,n){var r=it();return Ge!==null?gm(r,Ge,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Ls,useCacheRefresh:qm};Fm.useEffectEvent=Nm;function Zs(e,n,r,u){n=e.memoizedState,r=r(u,n),r=r==null?n:g({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ks={enqueueSetState:function(e,n,r){e=e._reactInternals;var u=Jt(),f=hl(u);f.payload=n,r!=null&&(f.callback=r),n=ml(e,f,u),n!==null&&(It(n,e,u),Ui(n,e,u))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var u=Jt(),f=hl(u);f.tag=1,f.payload=n,r!=null&&(f.callback=r),n=ml(e,f,u),n!==null&&(It(n,e,u),Ui(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=Jt(),u=hl(r);u.tag=2,n!=null&&(u.callback=n),n=ml(e,u,r),n!==null&&(It(n,e,r),Ui(n,e,r))}};function Xm(e,n,r,u,f,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,x):n.prototype&&n.prototype.isPureReactComponent?!ji(r,u)||!ji(f,h):!0}function Qm(e,n,r,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,u),n.state!==e&&Ks.enqueueReplaceState(n,n.state,null)}function Pl(e,n){var r=n;if("ref"in n){r={};for(var u in n)u!=="ref"&&(r[u]=n[u])}if(e=e.defaultProps){r===n&&(r=g({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function Zm(e){Ka(e)}function Km(e){console.error(e)}function Pm(e){Ka(e)}function bu(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function $m(e,n,r){try{var u=e.onCaughtError;u(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ps(e,n,r){return r=hl(r),r.tag=3,r.payload={element:null},r.callback=function(){bu(e,n)},r}function Jm(e){return e=hl(e),e.tag=3,e}function Wm(e,n,r,u){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){$m(n,r,u)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){$m(n,r,u),typeof f!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var w=u.stack;this.componentDidCatch(u.value,{componentStack:w!==null?w:""})})}function b1(e,n,r,u,f){if(r.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=r.alternate,n!==null&&Mr(n,r,f,!0),r=Zt.current,r!==null){switch(r.tag){case 31:case 13:return sn===null?zu():r.alternate===null&&nt===0&&(nt=3),r.flags&=-257,r.flags|=65536,r.lanes=f,u===iu?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([u]):n.add(u),Sc(e,u,f)),!1;case 22:return r.flags|=65536,u===iu?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([u]):r.add(u)),Sc(e,u,f)),!1}throw Error(a(435,r.tag))}return Sc(e,u,f),zu(),!1}if(Le)return n=Zt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==ps&&(e=Error(a(422),{cause:u}),_i(rn(e,r)))):(u!==ps&&(n=Error(a(423),{cause:u}),_i(rn(n,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=rn(u,r),f=Ps(e.stateNode,u,f),Ts(e,f),nt!==4&&(nt=2)),!1;var h=Error(a(520),{cause:u});if(h=rn(h,r),$i===null?$i=[h]:$i.push(h),nt!==4&&(nt=2),n===null)return!0;u=rn(u,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=Ps(r.stateNode,u,e),Ts(r,e),!1;case 1:if(n=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(vl===null||!vl.has(h))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Jm(f),Wm(f,e,r,u),Ts(r,f),!1}r=r.return}while(r!==null);return!1}var $s=Error(a(461)),st=!1;function St(e,n,r,u){n.child=e===null?lm(n,null,r,u):Zl(n,e.child,r,u)}function ep(e,n,r,u,f){r=r.render;var h=n.ref;if("ref"in u){var x={};for(var w in u)w!=="ref"&&(x[w]=u[w])}else x=u;return Gl(n),u=_s(e,n,r,x,h,f),w=Ds(),e!==null&&!st?(Os(e,n,f),Gn(e,n,f)):(Le&&w&&hs(n),n.flags|=1,St(e,n,u,f),n.child)}function tp(e,n,r,u,f){if(e===null){var h=r.type;return typeof h=="function"&&!cs(h)&&h.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=h,np(e,n,h,u,f)):(e=Wa(r.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!ic(e,f)){var x=h.memoizedProps;if(r=r.compare,r=r!==null?r:ji,r(x,u)&&e.ref===n.ref)return Gn(e,n,f)}return n.flags|=1,e=Bn(h,u),e.ref=n.ref,e.return=n,n.child=e}function np(e,n,r,u,f){if(e!==null){var h=e.memoizedProps;if(ji(h,u)&&e.ref===n.ref)if(st=!1,n.pendingProps=u=h,ic(e,f))(e.flags&131072)!==0&&(st=!0);else return n.lanes=e.lanes,Gn(e,n,f)}return Js(e,n,r,u,f)}function lp(e,n,r,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return rp(e,n,h,r,u)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&lu(n,h!==null?h.cachePool:null),h!==null?am(n,h):Ns(),um(n);else return u=n.lanes=536870912,rp(e,n,h!==null?h.baseLanes|r:r,r,u)}else h!==null?(lu(n,h.cachePool),am(n,h),gl(),n.memoizedState=null):(e!==null&&lu(n,null),Ns(),gl());return St(e,n,f,r),n.child}function Gi(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function rp(e,n,r,u,f){var h=ks();return h=h===null?null:{parent:ut._currentValue,pool:h},n.memoizedState={baseLanes:r,cachePool:h},e!==null&&lu(n,null),Ns(),um(n),e!==null&&Mr(e,n,u,!0),n.childLanes=f,null}function xu(e,n){return n=Su({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function ip(e,n,r){return Zl(n,e.child,null,r),e=xu(n,n.pendingProps),e.flags|=2,Kt(n),n.memoizedState=null,e}function x1(e,n,r){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Le){if(u.mode==="hidden")return e=xu(n,u),n.lanes=536870912,Gi(null,e);if(zs(n),(e=Je)?(e=yg(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ol!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},r=Vh(e),r.return=n,n.child=r,xt=n,Je=null)):e=null,e===null)throw cl(n);return n.lanes=536870912,null}return xu(n,u)}var h=e.memoizedState;if(h!==null){var x=h.dehydrated;if(zs(n),f)if(n.flags&256)n.flags&=-257,n=ip(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(st||Mr(e,n,r,!1),f=(r&e.childLanes)!==0,st||f){if(u=Ke,u!==null&&(x=Kd(u,r),x!==0&&x!==h.retryLane))throw h.retryLane=x,ql(e,x),It(u,e,x),$s;zu(),n=ip(e,n,r)}else e=h.treeContext,Je=cn(x.nextSibling),xt=n,Le=!0,sl=null,on=!1,e!==null&&Fh(n,e),n=xu(n,u),n.flags|=4096;return n}return e=Bn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function vu(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(a(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Js(e,n,r,u,f){return Gl(n),r=_s(e,n,r,u,void 0,f),u=Ds(),e!==null&&!st?(Os(e,n,f),Gn(e,n,f)):(Le&&u&&hs(n),n.flags|=1,St(e,n,r,f),n.child)}function ap(e,n,r,u,f,h){return Gl(n),n.updateQueue=null,r=sm(n,u,r,f),om(e),u=Ds(),e!==null&&!st?(Os(e,n,h),Gn(e,n,h)):(Le&&u&&hs(n),n.flags|=1,St(e,n,r,h),n.child)}function up(e,n,r,u,f){if(Gl(n),n.stateNode===null){var h=Ar,x=r.contextType;typeof x=="object"&&x!==null&&(h=vt(x)),h=new r(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ks,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},Es(n),x=r.contextType,h.context=typeof x=="object"&&x!==null?vt(x):Ar,h.state=n.memoizedState,x=r.getDerivedStateFromProps,typeof x=="function"&&(Zs(n,r,x,u),h.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(x=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),x!==h.state&&Ks.enqueueReplaceState(h,h.state,null),Hi(n,u,h,f),Bi(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var w=n.memoizedProps,z=Pl(r,w);h.props=z;var I=h.context,F=r.contextType;x=Ar,typeof F=="object"&&F!==null&&(x=vt(F));var J=r.getDerivedStateFromProps;F=typeof J=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,F||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||I!==x)&&Qm(n,h,u,x),dl=!1;var Y=n.memoizedState;h.state=Y,Hi(n,u,h,f),Bi(),I=n.memoizedState,w||Y!==I||dl?(typeof J=="function"&&(Zs(n,r,J,u),I=n.memoizedState),(z=dl||Xm(n,r,z,u,Y,I,x))?(F||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=I),h.props=u,h.state=I,h.context=x,u=z):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,Cs(e,n),x=n.memoizedProps,F=Pl(r,x),h.props=F,J=n.pendingProps,Y=h.context,I=r.contextType,z=Ar,typeof I=="object"&&I!==null&&(z=vt(I)),w=r.getDerivedStateFromProps,(I=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==J||Y!==z)&&Qm(n,h,u,z),dl=!1,Y=n.memoizedState,h.state=Y,Hi(n,u,h,f),Bi();var G=n.memoizedState;x!==J||Y!==G||dl||e!==null&&e.dependencies!==null&&tu(e.dependencies)?(typeof w=="function"&&(Zs(n,r,w,u),G=n.memoizedState),(F=dl||Xm(n,r,F,u,Y,G,z)||e!==null&&e.dependencies!==null&&tu(e.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,G,z),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,G,z)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=G),h.props=u,h.state=G,h.context=z,u=F):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,vu(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,r=u&&typeof r.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Zl(n,e.child,null,f),n.child=Zl(n,null,r,f)):St(e,n,r,f),n.memoizedState=h.state,e=n.child):e=Gn(e,n,f),e}function op(e,n,r,u){return Vl(),n.flags|=256,St(e,n,r,u),n.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ec(e){return{baseLanes:e,cachePool:$h()}}function tc(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=$t),e}function sp(e,n,r){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,x;if((x=h)||(x=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),x&&(f=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(f?pl(n):gl(),(e=Je)?(e=yg(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ol!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},r=Vh(e),r.return=n,n.child=r,xt=n,Je=null)):e=null,e===null)throw cl(n);return Uc(e)?n.lanes=32:n.lanes=536870912,null}var w=u.children;return u=u.fallback,f?(gl(),f=n.mode,w=Su({mode:"hidden",children:w},f),u=Il(u,f,r,null),w.return=n,u.return=n,w.sibling=u,n.child=w,u=n.child,u.memoizedState=ec(r),u.childLanes=tc(e,x,r),n.memoizedState=Ws,Gi(null,u)):(pl(n),nc(n,w))}var z=e.memoizedState;if(z!==null&&(w=z.dehydrated,w!==null)){if(h)n.flags&256?(pl(n),n.flags&=-257,n=lc(e,n,r)):n.memoizedState!==null?(gl(),n.child=e.child,n.flags|=128,n=null):(gl(),w=u.fallback,f=n.mode,u=Su({mode:"visible",children:u.children},f),w=Il(w,f,r,null),w.flags|=2,u.return=n,w.return=n,u.sibling=w,n.child=u,Zl(n,e.child,null,r),u=n.child,u.memoizedState=ec(r),u.childLanes=tc(e,x,r),n.memoizedState=Ws,n=Gi(null,u));else if(pl(n),Uc(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var I=x.dgst;x=I,u=Error(a(419)),u.stack="",u.digest=x,_i({value:u,source:null,stack:null}),n=lc(e,n,r)}else if(st||Mr(e,n,r,!1),x=(r&e.childLanes)!==0,st||x){if(x=Ke,x!==null&&(u=Kd(x,r),u!==0&&u!==z.retryLane))throw z.retryLane=u,ql(e,u),It(x,e,u),$s;Lc(w)||zu(),n=lc(e,n,r)}else Lc(w)?(n.flags|=192,n.child=e.child,n=null):(e=z.treeContext,Je=cn(w.nextSibling),xt=n,Le=!0,sl=null,on=!1,e!==null&&Fh(n,e),n=nc(n,u.children),n.flags|=4096);return n}return f?(gl(),w=u.fallback,f=n.mode,z=e.child,I=z.sibling,u=Bn(z,{mode:"hidden",children:u.children}),u.subtreeFlags=z.subtreeFlags&65011712,I!==null?w=Bn(I,w):(w=Il(w,f,r,null),w.flags|=2),w.return=n,u.return=n,u.sibling=w,n.child=u,Gi(null,u),u=n.child,w=e.child.memoizedState,w===null?w=ec(r):(f=w.cachePool,f!==null?(z=ut._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=$h(),w={baseLanes:w.baseLanes|r,cachePool:f}),u.memoizedState=w,u.childLanes=tc(e,x,r),n.memoizedState=Ws,Gi(e.child,u)):(pl(n),r=e.child,e=r.sibling,r=Bn(r,{mode:"visible",children:u.children}),r.return=n,r.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=r,n.memoizedState=null,r)}function nc(e,n){return n=Su({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Su(e,n){return e=Qt(22,e,null,n),e.lanes=0,e}function lc(e,n,r){return Zl(n,e.child,null,r),e=nc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function cp(e,n,r){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),bs(e.return,n,r)}function rc(e,n,r,u,f,h){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:r,tailMode:f,treeForkCount:h}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=r,x.tailMode=f,x.treeForkCount=h)}function fp(e,n,r){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var x=rt.current,w=(x&2)!==0;if(w?(x=x&1|2,n.flags|=128):x&=1,C(rt,x),St(e,n,u,r),u=Le?Mi:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,r,n);else if(e.tag===19)cp(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=n.child,f=null;r!==null;)e=r.alternate,e!==null&&su(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=n.child,n.child=null):(f=r.sibling,r.sibling=null),rc(n,!1,f,r,h,u);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&su(e)===null){n.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}rc(n,!0,r,null,h,u);break;case"together":rc(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function Gn(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),xl|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(Mr(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,r=Bn(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=Bn(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function ic(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&tu(e)))}function v1(e,n,r){switch(n.tag){case 3:Ae(n,n.stateNode.containerInfo),fl(n,ut,e.memoizedState.cache),Vl();break;case 27:case 5:at(n);break;case 4:Ae(n,n.stateNode.containerInfo);break;case 10:fl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,zs(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(pl(n),n.flags|=128,null):(r&n.child.childLanes)!==0?sp(e,n,r):(pl(n),e=Gn(e,n,r),e!==null?e.sibling:null);pl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(r&n.childLanes)!==0,u||(Mr(e,n,r,!1),u=(r&n.childLanes)!==0),f){if(u)return fp(e,n,r);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),C(rt,rt.current),u)break;return null;case 22:return n.lanes=0,lp(e,n,r,n.pendingProps);case 24:fl(n,ut,e.memoizedState.cache)}return Gn(e,n,r)}function dp(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)st=!0;else{if(!ic(e,r)&&(n.flags&128)===0)return st=!1,v1(e,n,r);st=(e.flags&131072)!==0}else st=!1,Le&&(n.flags&1048576)!==0&&Gh(n,Mi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=Xl(n.elementType),n.type=e,typeof e=="function")cs(e)?(u=Pl(e,u),n.tag=1,n=up(null,n,e,u,r)):(n.tag=0,n=Js(null,n,e,u,r));else{if(e!=null){var f=e.$$typeof;if(f===W){n.tag=11,n=ep(null,n,e,u,r);break e}else if(f===X){n.tag=14,n=tp(null,n,e,u,r);break e}}throw n=ue(e)||e,Error(a(306,n,""))}}return n;case 0:return Js(e,n,n.type,n.pendingProps,r);case 1:return u=n.type,f=Pl(u,n.pendingProps),up(e,n,u,f,r);case 3:e:{if(Ae(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,Cs(e,n),Hi(n,u,null,r);var x=n.memoizedState;if(u=x.cache,fl(n,ut,u),u!==h.cache&&xs(n,[ut],r,!0),Bi(),u=x.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=op(e,n,u,r);break e}else if(u!==f){f=rn(Error(a(424)),n),_i(f),n=op(e,n,u,r);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Je=cn(e.firstChild),xt=n,Le=!0,sl=null,on=!0,r=lm(n,null,u,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Vl(),u===f){n=Gn(e,n,r);break e}St(e,n,u,r)}n=n.child}return n;case 26:return vu(e,n),e===null?(r=wg(n.type,null,n.pendingProps,null))?n.memoizedState=r:Le||(r=n.type,e=n.pendingProps,u=Uu(le.current).createElement(r),u[bt]=n,u[Rt]=e,kt(u,r,e),pt(u),n.stateNode=u):n.memoizedState=wg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return at(n),e===null&&Le&&(u=n.stateNode=vg(n.type,n.pendingProps,le.current),xt=n,on=!0,f=Je,El(n.type)?(Bc=f,Je=cn(u.firstChild)):Je=f),St(e,n,n.pendingProps.children,r),vu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((f=u=Je)&&(u=P1(u,n.type,n.pendingProps,on),u!==null?(n.stateNode=u,xt=n,Je=cn(u.firstChild),on=!1,f=!0):f=!1),f||cl(n)),at(n),f=n.type,h=n.pendingProps,x=e!==null?e.memoizedProps:null,u=h.children,Dc(f,h)?u=null:x!==null&&Dc(f,x)&&(n.flags|=32),n.memoizedState!==null&&(f=_s(e,n,f1,null,null,r),ia._currentValue=f),vu(e,n),St(e,n,u,r),n.child;case 6:return e===null&&Le&&((e=r=Je)&&(r=$1(r,n.pendingProps,on),r!==null?(n.stateNode=r,xt=n,Je=null,e=!0):e=!1),e||cl(n)),null;case 13:return sp(e,n,r);case 4:return Ae(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Zl(n,null,u,r):St(e,n,u,r),n.child;case 11:return ep(e,n,n.type,n.pendingProps,r);case 7:return St(e,n,n.pendingProps,r),n.child;case 8:return St(e,n,n.pendingProps.children,r),n.child;case 12:return St(e,n,n.pendingProps.children,r),n.child;case 10:return u=n.pendingProps,fl(n,n.type,u.value),St(e,n,u.children,r),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Gl(n),f=vt(f),u=u(f),n.flags|=1,St(e,n,u,r),n.child;case 14:return tp(e,n,n.type,n.pendingProps,r);case 15:return np(e,n,n.type,n.pendingProps,r);case 19:return fp(e,n,r);case 31:return x1(e,n,r);case 22:return lp(e,n,r,n.pendingProps);case 24:return Gl(n),u=vt(ut),e===null?(f=ks(),f===null&&(f=Ke,h=vs(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=r),f=h),n.memoizedState={parent:u,cache:f},Es(n),fl(n,ut,f)):((e.lanes&r)!==0&&(Cs(e,n),Hi(n,null,null,r),Bi()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),fl(n,ut,u)):(u=h.cache,fl(n,ut,u),u!==f.cache&&xs(n,[ut],r,!0))),St(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Fn(e){e.flags|=4}function ac(e,n,r,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(Hp())e.flags|=8192;else throw Ql=iu,ws}else e.flags&=-16777217}function hp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ng(n))if(Hp())e.flags|=8192;else throw Ql=iu,ws}function ku(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Xd():536870912,e.lanes|=n,Yr|=n)}function Fi(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var u=null;r!==null;)r.alternate!==null&&(u=r),r=r.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,u=0;if(n)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=r,n}function S1(e,n,r){var u=n.pendingProps;switch(ms(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return r=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),In(ut),pe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zr(n)?Fn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,gs())),We(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Fn(n),h!==null?(We(n),hp(n,h)):(We(n),ac(n,f,null,u,r))):h?h!==e.memoizedState?(Fn(n),We(n),hp(n,h)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&Fn(n),We(n),ac(n,f,e,u,r)),null;case 27:if(_t(n),r=le.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Fn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return We(n),null}e=te.current,zr(n)?Xh(n):(e=vg(f,u,r),n.stateNode=e,Fn(n))}return We(n),null;case 5:if(_t(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Fn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return We(n),null}if(h=te.current,zr(n))Xh(n);else{var x=Uu(le.current);switch(h){case 1:h=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=x.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?x.createElement(f,{is:u.is}):x.createElement(f)}}h[bt]=n,h[Rt]=u;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)h.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=h;e:switch(kt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Fn(n)}}return We(n),ac(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&Fn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=le.current,zr(n)){if(e=n.stateNode,r=n.memoizedProps,u=null,f=xt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[bt]=n,e=!!(e.nodeValue===r||u!==null&&u.suppressHydrationWarning===!0||sg(e.nodeValue,r)),e||cl(n,!0)}else e=Uu(e).createTextNode(u),e[bt]=n,n.stateNode=e}return We(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(u=zr(n),r!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[bt]=n}else Vl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else r=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(Kt(n),n):(Kt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return We(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=zr(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[bt]=n}else Vl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),f=!1}else f=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Kt(n),n):(Kt(n),null)}return Kt(n),(n.flags&128)!==0?(n.lanes=r,n):(r=u!==null,e=e!==null&&e.memoizedState!==null,r&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),ku(n,n.updateQueue),We(n),null);case 4:return pe(),e===null&&Nc(n.stateNode.containerInfo),We(n),null;case 10:return In(n.type),We(n),null;case 19:if(M(rt),u=n.memoizedState,u===null)return We(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)Fi(u,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=su(e),h!==null){for(n.flags|=128,Fi(u,!1),e=h.updateQueue,n.updateQueue=e,ku(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)Ih(r,e),r=r.sibling;return C(rt,rt.current&1|2),Le&&Hn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&At()>Au&&(n.flags|=128,f=!0,Fi(u,!1),n.lanes=4194304)}else{if(!f)if(e=su(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,ku(n,e),Fi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Le)return We(n),null}else 2*At()-u.renderingStartTime>Au&&r!==536870912&&(n.flags|=128,f=!0,Fi(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=At(),e.sibling=null,r=rt.current,C(rt,f?r&1|2:r&1),Le&&Hn(n,u.treeForkCount),e):(We(n),null);case 22:case 23:return Kt(n),js(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(r&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),r=n.updateQueue,r!==null&&ku(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==r&&(n.flags|=2048),e!==null&&M(Fl),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),In(ut),We(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function k1(e,n){switch(ms(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return In(ut),pe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return _t(n),null;case 31:if(n.memoizedState!==null){if(Kt(n),n.alternate===null)throw Error(a(340));Vl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Kt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Vl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(rt),null;case 4:return pe(),null;case 10:return In(n.type),null;case 22:case 23:return Kt(n),js(),e!==null&&M(Fl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return In(ut),null;case 25:return null;default:return null}}function mp(e,n){switch(ms(n),n.tag){case 3:In(ut),pe();break;case 26:case 27:case 5:_t(n);break;case 4:pe();break;case 31:n.memoizedState!==null&&Kt(n);break;case 13:Kt(n);break;case 19:M(rt);break;case 10:In(n.type);break;case 22:case 23:Kt(n),js(),e!==null&&M(Fl);break;case 24:In(ut)}}function Xi(e,n){try{var r=n.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var f=u.next;r=f;do{if((r.tag&e)===e){u=void 0;var h=r.create,x=r.inst;u=h(),x.destroy=u}r=r.next}while(r!==f)}}catch(w){Ye(n,n.return,w)}}function yl(e,n,r){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var x=u.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,f=n;var z=r,I=w;try{I()}catch(F){Ye(f,z,F)}}}u=u.next}while(u!==h)}}catch(F){Ye(n,n.return,F)}}function pp(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{im(n,r)}catch(u){Ye(e,e.return,u)}}}function gp(e,n,r){r.props=Pl(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(u){Ye(e,n,u)}}function Qi(e,n){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof r=="function"?e.refCleanup=r(u):r.current=u}}catch(f){Ye(e,n,f)}}function Tn(e,n){var r=e.ref,u=e.refCleanup;if(r!==null)if(typeof u=="function")try{u()}catch(f){Ye(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Ye(e,n,f)}else r.current=null}function yp(e){var n=e.type,r=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&u.focus();break e;case"img":r.src?u.src=r.src:r.srcSet&&(u.srcset=r.srcSet)}}catch(f){Ye(e,e.return,f)}}function uc(e,n,r){try{var u=e.stateNode;G1(u,e.type,r,n),u[Rt]=n}catch(f){Ye(e,e.return,f)}}function bp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&El(e.type)||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bp(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&&El(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 sc(e,n,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=Ln));else if(u!==4&&(u===27&&El(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(sc(e,n,r),e=e.sibling;e!==null;)sc(e,n,r),e=e.sibling}function wu(e,n,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(u!==4&&(u===27&&El(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(wu(e,n,r),e=e.sibling;e!==null;)wu(e,n,r),e=e.sibling}function xp(e){var n=e.stateNode,r=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);kt(n,u,r),n[bt]=e,n[Rt]=r}catch(h){Ye(e,e.return,h)}}var Xn=!1,ct=!1,cc=!1,vp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function w1(e,n){if(e=e.containerInfo,Mc=Gu,e=_h(e),ls(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var u=r.getSelection&&r.getSelection();if(u&&u.rangeCount!==0){r=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var x=0,w=-1,z=-1,I=0,F=0,J=e,Y=null;t:for(;;){for(var G;J!==r||f!==0&&J.nodeType!==3||(w=x+f),J!==h||u!==0&&J.nodeType!==3||(z=x+u),J.nodeType===3&&(x+=J.nodeValue.length),(G=J.firstChild)!==null;)Y=J,J=G;for(;;){if(J===e)break t;if(Y===r&&++I===f&&(w=x),Y===h&&++F===u&&(z=x),(G=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=G}r=w===-1||z===-1?null:{start:w,end:z}}else r=null}r=r||{start:0,end:0}}else r=null;for(_c={focusedElem:e,selectionRange:r},Gu=!1,gt=n;gt!==null;)if(n=gt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,gt=e;else for(;gt!==null;){switch(n=gt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=n,f=h.memoizedProps,h=h.memoizedState,u=r.stateNode;try{var me=Pl(r.type,f);e=u.getSnapshotBeforeUpdate(me,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ye(r,r.return,ve)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)Rc(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(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(a(163))}if(e=n.sibling,e!==null){e.return=n.return,gt=e;break}gt=n.return}}function Sp(e,n,r){var u=r.flags;switch(r.tag){case 0:case 11:case 15:Zn(e,r),u&4&&Xi(5,r);break;case 1:if(Zn(e,r),u&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(x){Ye(r,r.return,x)}else{var f=Pl(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ye(r,r.return,x)}}u&64&&pp(r),u&512&&Qi(r,r.return);break;case 3:if(Zn(e,r),u&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{im(e,n)}catch(x){Ye(r,r.return,x)}}break;case 27:n===null&&u&4&&xp(r);case 26:case 5:Zn(e,r),n===null&&u&4&&yp(r),u&512&&Qi(r,r.return);break;case 12:Zn(e,r);break;case 31:Zn(e,r),u&4&&Ep(e,r);break;case 13:Zn(e,r),u&4&&Cp(e,r),u&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=_1.bind(null,r),J1(e,r))));break;case 22:if(u=r.memoizedState!==null||Xn,!u){n=n!==null&&n.memoizedState!==null||ct,f=Xn;var h=ct;Xn=u,(ct=n)&&!h?Kn(e,r,(r.subtreeFlags&8772)!==0):Zn(e,r),Xn=f,ct=h}break;case 30:break;default:Zn(e,r)}}function kp(e){var n=e.alternate;n!==null&&(e.alternate=null,kp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&qo(n)),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 et=null,Ut=!1;function Qn(e,n,r){for(r=r.child;r!==null;)wp(e,n,r),r=r.sibling}function wp(e,n,r){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Nt,r)}catch{}switch(r.tag){case 26:ct||Tn(r,n),Qn(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ct||Tn(r,n);var u=et,f=Ut;El(r.type)&&(et=r.stateNode,Ut=!1),Qn(e,n,r),na(r.stateNode),et=u,Ut=f;break;case 5:ct||Tn(r,n);case 6:if(u=et,f=Ut,et=null,Qn(e,n,r),et=u,Ut=f,et!==null)if(Ut)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(r.stateNode)}catch(h){Ye(r,n,h)}else try{et.removeChild(r.stateNode)}catch(h){Ye(r,n,h)}break;case 18:et!==null&&(Ut?(e=et,pg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),$r(e)):pg(et,r.stateNode));break;case 4:u=et,f=Ut,et=r.stateNode.containerInfo,Ut=!0,Qn(e,n,r),et=u,Ut=f;break;case 0:case 11:case 14:case 15:yl(2,r,n),ct||yl(4,r,n),Qn(e,n,r);break;case 1:ct||(Tn(r,n),u=r.stateNode,typeof u.componentWillUnmount=="function"&&gp(r,n,u)),Qn(e,n,r);break;case 21:Qn(e,n,r);break;case 22:ct=(u=ct)||r.memoizedState!==null,Qn(e,n,r),ct=u;break;default:Qn(e,n,r)}}function Ep(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$r(e)}catch(r){Ye(n,n.return,r)}}}function Cp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$r(e)}catch(r){Ye(n,n.return,r)}}function E1(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new vp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new vp),n;default:throw Error(a(435,e.tag))}}function Eu(e,n){var r=E1(e);n.forEach(function(u){if(!r.has(u)){r.add(u);var f=D1.bind(null,e,u);u.then(f,f)}})}function Bt(e,n){var r=n.deletions;if(r!==null)for(var u=0;u<r.length;u++){var f=r[u],h=e,x=n,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(El(w.type)){et=w.stateNode,Ut=!1;break e}break;case 5:et=w.stateNode,Ut=!1;break e;case 3:case 4:et=w.stateNode.containerInfo,Ut=!0;break e}w=w.return}if(et===null)throw Error(a(160));wp(h,x,f),et=null,Ut=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Tp(n,e),n=n.sibling}var bn=null;function Tp(e,n){var r=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(n,e),Ht(e),u&4&&(yl(3,e,e.return),Xi(3,e),yl(5,e,e.return));break;case 1:Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),u&64&&Xn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?u:r.concat(u))));break;case 26:var f=bn;if(Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),u&4){var h=r!==null?r.memoizedState:null;if(u=e.memoizedState,r===null)if(u===null)if(e.stateNode===null){e:{u=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[vi]||h[bt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),kt(h,u,r),h[bt]=e,pt(h),u=h;break e;case"link":var x=Tg("link","href",f).get(u+(r.href||""));if(x){for(var w=0;w<x.length;w++)if(h=x[w],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){x.splice(w,1);break t}}h=f.createElement(u),kt(h,u,r),f.head.appendChild(h);break;case"meta":if(x=Tg("meta","content",f).get(u+(r.content||""))){for(w=0;w<x.length;w++)if(h=x[w],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){x.splice(w,1);break t}}h=f.createElement(u),kt(h,u,r),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[bt]=e,pt(h),u=h}e.stateNode=u}else Ag(f,e.type,e.stateNode);else e.stateNode=Cg(f,u,e.memoizedProps);else h!==u?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,u===null?Ag(f,e.type,e.stateNode):Cg(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&uc(e,e.memoizedProps,r.memoizedProps)}break;case 27:Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),r!==null&&u&4&&uc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),e.flags&32){f=e.stateNode;try{vr(f,"")}catch(me){Ye(e,e.return,me)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,uc(e,f,r!==null?r.memoizedProps:f)),u&1024&&(cc=!0);break;case 6:if(Bt(n,e),Ht(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,r=e.stateNode;try{r.nodeValue=u}catch(me){Ye(e,e.return,me)}}break;case 3:if(qu=null,f=bn,bn=Bu(n.containerInfo),Bt(n,e),bn=f,Ht(e),u&4&&r!==null&&r.memoizedState.isDehydrated)try{$r(n.containerInfo)}catch(me){Ye(e,e.return,me)}cc&&(cc=!1,Ap(e));break;case 4:u=bn,bn=Bu(e.stateNode.containerInfo),Bt(n,e),Ht(e),bn=u;break;case 12:Bt(n,e),Ht(e);break;case 31:Bt(n,e),Ht(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Eu(e,u)));break;case 13:Bt(n,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Tu=At()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Eu(e,u)));break;case 22:f=e.memoizedState!==null;var z=r!==null&&r.memoizedState!==null,I=Xn,F=ct;if(Xn=I||f,ct=F||z,Bt(n,e),ct=F,Xn=I,Ht(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(r===null||z||Xn||ct||$l(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){z=r=n;try{if(h=z.stateNode,f)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=z.stateNode;var J=z.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;w.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(me){Ye(z,z.return,me)}}}else if(n.tag===6){if(r===null){z=n;try{z.stateNode.nodeValue=f?"":z.memoizedProps}catch(me){Ye(z,z.return,me)}}}else if(n.tag===18){if(r===null){z=n;try{var G=z.stateNode;f?gg(G,!0):gg(z.stateNode,!1)}catch(me){Ye(z,z.return,me)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(r=u.retryQueue,r!==null&&(u.retryQueue=null,Eu(e,r))));break;case 19:Bt(n,e),Ht(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Eu(e,u)));break;case 30:break;case 21:break;default:Bt(n,e),Ht(e)}}function Ht(e){var n=e.flags;if(n&2){try{for(var r,u=e.return;u!==null;){if(bp(u)){r=u;break}u=u.return}if(r==null)throw Error(a(160));switch(r.tag){case 27:var f=r.stateNode,h=oc(e);wu(e,h,f);break;case 5:var x=r.stateNode;r.flags&32&&(vr(x,""),r.flags&=-33);var w=oc(e);wu(e,w,x);break;case 3:case 4:var z=r.stateNode.containerInfo,I=oc(e);sc(e,I,z);break;default:throw Error(a(161))}}catch(F){Ye(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Ap(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Zn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Sp(e,n.alternate,n),n=n.sibling}function $l(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:yl(4,n,n.return),$l(n);break;case 1:Tn(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&gp(n,n.return,r),$l(n);break;case 27:na(n.stateNode);case 26:case 5:Tn(n,n.return),$l(n);break;case 22:n.memoizedState===null&&$l(n);break;case 30:$l(n);break;default:$l(n)}e=e.sibling}}function Kn(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,x=h.flags;switch(h.tag){case 0:case 11:case 15:Kn(f,h,r),Xi(4,h);break;case 1:if(Kn(f,h,r),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(I){Ye(u,u.return,I)}if(u=h,f=u.updateQueue,f!==null){var w=u.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)rm(z[f],w)}catch(I){Ye(u,u.return,I)}}r&&x&64&&pp(h),Qi(h,h.return);break;case 27:xp(h);case 26:case 5:Kn(f,h,r),r&&u===null&&x&4&&yp(h),Qi(h,h.return);break;case 12:Kn(f,h,r);break;case 31:Kn(f,h,r),r&&x&4&&Ep(f,h);break;case 13:Kn(f,h,r),r&&x&4&&Cp(f,h);break;case 22:h.memoizedState===null&&Kn(f,h,r),Qi(h,h.return);break;case 30:break;default:Kn(f,h,r)}n=n.sibling}}function fc(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Di(r))}function dc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Di(e))}function xn(e,n,r,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Np(e,n,r,u),n=n.sibling}function Np(e,n,r,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:xn(e,n,r,u),f&2048&&Xi(9,n);break;case 1:xn(e,n,r,u);break;case 3:xn(e,n,r,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Di(e)));break;case 12:if(f&2048){xn(e,n,r,u),e=n.stateNode;try{var h=n.memoizedProps,x=h.id,w=h.onPostCommit;typeof w=="function"&&w(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){Ye(n,n.return,z)}}else xn(e,n,r,u);break;case 31:xn(e,n,r,u);break;case 13:xn(e,n,r,u);break;case 23:break;case 22:h=n.stateNode,x=n.alternate,n.memoizedState!==null?h._visibility&2?xn(e,n,r,u):Zi(e,n):h._visibility&2?xn(e,n,r,u):(h._visibility|=2,qr(e,n,r,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&fc(x,n);break;case 24:xn(e,n,r,u),f&2048&&dc(n.alternate,n);break;default:xn(e,n,r,u)}}function qr(e,n,r,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,x=n,w=r,z=u,I=x.flags;switch(x.tag){case 0:case 11:case 15:qr(h,x,w,z,f),Xi(8,x);break;case 23:break;case 22:var F=x.stateNode;x.memoizedState!==null?F._visibility&2?qr(h,x,w,z,f):Zi(h,x):(F._visibility|=2,qr(h,x,w,z,f)),f&&I&2048&&fc(x.alternate,x);break;case 24:qr(h,x,w,z,f),f&&I&2048&&dc(x.alternate,x);break;default:qr(h,x,w,z,f)}n=n.sibling}}function Zi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,u=n,f=u.flags;switch(u.tag){case 22:Zi(r,u),f&2048&&fc(u.alternate,u);break;case 24:Zi(r,u),f&2048&&dc(u.alternate,u);break;default:Zi(r,u)}n=n.sibling}}var Ki=8192;function Ir(e,n,r){if(e.subtreeFlags&Ki)for(e=e.child;e!==null;)jp(e,n,r),e=e.sibling}function jp(e,n,r){switch(e.tag){case 26:Ir(e,n,r),e.flags&Ki&&e.memoizedState!==null&&cS(r,bn,e.memoizedState,e.memoizedProps);break;case 5:Ir(e,n,r);break;case 3:case 4:var u=bn;bn=Bu(e.stateNode.containerInfo),Ir(e,n,r),bn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Ki,Ki=16777216,Ir(e,n,r),Ki=u):Ir(e,n,r));break;default:Ir(e,n,r)}}function zp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Pi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var u=n[r];gt=u,_p(u,e)}zp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 0:case 11:case 15:Pi(e),e.flags&2048&&yl(9,e,e.return);break;case 3:Pi(e);break;case 12:Pi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Cu(e)):Pi(e);break;default:Pi(e)}}function Cu(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var u=n[r];gt=u,_p(u,e)}zp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:yl(8,n,n.return),Cu(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,Cu(n));break;default:Cu(n)}e=e.sibling}}function _p(e,n){for(;gt!==null;){var r=gt;switch(r.tag){case 0:case 11:case 15:yl(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var u=r.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Di(r.memoizedState.cache)}if(u=r.child,u!==null)u.return=r,gt=u;else e:for(r=e;gt!==null;){u=gt;var f=u.sibling,h=u.return;if(kp(u),u===r){gt=null;break e}if(f!==null){f.return=h,gt=f;break e}gt=h}}}var C1={getCacheForType:function(e){var n=vt(ut),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return vt(ut).controller.signal}},T1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ke=null,Me=null,Oe=0,Ve=0,Pt=null,bl=!1,Vr=!1,hc=!1,Pn=0,nt=0,xl=0,Jl=0,mc=0,$t=0,Yr=0,$i=null,qt=null,pc=!1,Tu=0,Dp=0,Au=1/0,Nu=null,vl=null,ht=0,Sl=null,Gr=null,$n=0,gc=0,yc=null,Op=null,Ji=0,bc=null;function Jt(){return(qe&2)!==0&&Oe!==0?Oe&-Oe:B.T!==null?Ec():Pd()}function Rp(){if($t===0)if((Oe&536870912)===0||Le){var e=La;La<<=1,(La&3932160)===0&&(La=262144),$t=e}else $t=536870912;return e=Zt.current,e!==null&&(e.flags|=32),$t}function It(e,n,r){(e===Ke&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(Fr(e,0),kl(e,Oe,$t,!1)),xi(e,r),((qe&2)===0||e!==Ke)&&(e===Ke&&((qe&2)===0&&(Jl|=r),nt===4&&kl(e,Oe,$t,!1)),An(e))}function Lp(e,n,r){if((qe&6)!==0)throw Error(a(327));var u=!r&&(n&127)===0&&(n&e.expiredLanes)===0||bi(e,n),f=u?j1(e,n):vc(e,n,!0),h=u;do{if(f===0){Vr&&!u&&kl(e,n,0,!1);break}else{if(r=e.current.alternate,h&&!A1(r)){f=vc(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var w=e;f=$i;var z=w.current.memoizedState.isDehydrated;if(z&&(Fr(w,x).flags|=256),x=vc(w,x,!1),x!==2){if(hc&&!z){w.errorRecoveryDisabledLanes|=h,Jl|=h,f=4;break e}h=qt,qt=f,h!==null&&(qt===null?qt=h:qt.push.apply(qt,h))}f=x}if(h=!1,f!==2)continue}}if(f===1){Fr(e,0),kl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:kl(u,n,$t,!bl);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=Tu+300-At(),10<f)){if(kl(u,n,$t,!bl),Ba(u,0,!0)!==0)break e;$n=n,u.timeoutHandle=hg(Up.bind(null,u,r,qt,Nu,pc,n,$t,Jl,Yr,bl,h,"Throttled",-0,0),f);break e}Up(u,r,qt,Nu,pc,n,$t,Jl,Yr,bl,h,null,-0,0)}}break}while(!0);An(e)}function Up(e,n,r,u,f,h,x,w,z,I,F,J,Y,G){if(e.timeoutHandle=-1,J=n.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},jp(n,h,J);var me=(h&62914560)===h?Tu-At():(h&4194048)===h?Dp-At():0;if(me=fS(J,me),me!==null){$n=h,e.cancelPendingCommit=me(Fp.bind(null,e,n,h,r,u,f,x,w,z,F,J,null,Y,G)),kl(e,h,x,!I);return}}Fp(e,n,h,r,u,f,x,w,z)}function A1(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var u=0;u<r.length;u++){var f=r[u],h=f.getSnapshot;f=f.value;try{if(!Xt(h(),f))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function kl(e,n,r,u){n&=~mc,n&=~Jl,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ze(f),x=1<<h;u[h]=-1,f&=~x}r!==0&&Qd(e,r,n)}function ju(){return(qe&6)===0?(Wi(0),!1):!0}function xc(){if(Me!==null){if(Ve===0)var e=Me.return;else e=Me,qn=Yl=null,Rs(e),Rr=null,Ri=0,e=Me;for(;e!==null;)mp(e.alternate,e),e=e.return;Me=null}}function Fr(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Q1(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),$n=0,xc(),Ke=e,Me=r=Bn(e.current,null),Oe=n,Ve=0,Pt=null,bl=!1,Vr=bi(e,n),hc=!1,Yr=$t=mc=Jl=xl=nt=0,qt=$i=null,pc=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ze(u),h=1<<f;n|=e[f],u&=~h}return Pn=n,Pa(),r}function Bp(e,n){Te=null,B.H=Yi,n===Or||n===ru?(n=em(),Ve=3):n===ws?(n=em(),Ve=4):Ve=n===$s?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Pt=n,Me===null&&(nt=1,bu(e,rn(n,e.current)))}function Hp(){var e=Zt.current;return e===null?!0:(Oe&4194048)===Oe?sn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===sn:!1}function qp(){var e=B.H;return B.H=Yi,e===null?Yi:e}function Ip(){var e=B.A;return B.A=C1,e}function zu(){nt=4,bl||(Oe&4194048)!==Oe&&Zt.current!==null||(Vr=!0),(xl&134217727)===0&&(Jl&134217727)===0||Ke===null||kl(Ke,Oe,$t,!1)}function vc(e,n,r){var u=qe;qe|=2;var f=qp(),h=Ip();(Ke!==e||Oe!==n)&&(Nu=null,Fr(e,n)),n=!1;var x=nt;e:do try{if(Ve!==0&&Me!==null){var w=Me,z=Pt;switch(Ve){case 8:xc(),x=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(n=!0);var I=Ve;if(Ve=0,Pt=null,Xr(e,w,z,I),r&&Vr){x=0;break e}break;default:I=Ve,Ve=0,Pt=null,Xr(e,w,z,I)}}N1(),x=nt;break}catch(F){Bp(e,F)}while(!0);return n&&e.shellSuspendCounter++,qn=Yl=null,qe=u,B.H=f,B.A=h,Me===null&&(Ke=null,Oe=0,Pa()),x}function N1(){for(;Me!==null;)Vp(Me)}function j1(e,n){var r=qe;qe|=2;var u=qp(),f=Ip();Ke!==e||Oe!==n?(Nu=null,Au=At()+500,Fr(e,n)):Vr=bi(e,n);e:do try{if(Ve!==0&&Me!==null){n=Me;var h=Pt;t:switch(Ve){case 1:Ve=0,Pt=null,Xr(e,n,h,1);break;case 2:case 9:if(Jh(h)){Ve=0,Pt=null,Yp(n);break}n=function(){Ve!==2&&Ve!==9||Ke!==e||(Ve=7),An(e)},h.then(n,n);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Jh(h)?(Ve=0,Pt=null,Yp(n)):(Ve=0,Pt=null,Xr(e,n,h,7));break;case 5:var x=null;switch(Me.tag){case 26:x=Me.memoizedState;case 5:case 27:var w=Me;if(x?Ng(x):w.stateNode.complete){Ve=0,Pt=null;var z=w.sibling;if(z!==null)Me=z;else{var I=w.return;I!==null?(Me=I,Mu(I)):Me=null}break t}}Ve=0,Pt=null,Xr(e,n,h,5);break;case 6:Ve=0,Pt=null,Xr(e,n,h,6);break;case 8:xc(),nt=6;break e;default:throw Error(a(462))}}z1();break}catch(F){Bp(e,F)}while(!0);return qn=Yl=null,B.H=u,B.A=f,qe=r,Me!==null?0:(Ke=null,Oe=0,Pa(),nt)}function z1(){for(;Me!==null&&!Do();)Vp(Me)}function Vp(e){var n=dp(e.alternate,e,Pn);e.memoizedProps=e.pendingProps,n===null?Mu(e):Me=n}function Yp(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=ap(r,n,n.pendingProps,n.type,void 0,Oe);break;case 11:n=ap(r,n,n.pendingProps,n.type.render,n.ref,Oe);break;case 5:Rs(n);default:mp(r,n),n=Me=Ih(n,Pn),n=dp(r,n,Pn)}e.memoizedProps=e.pendingProps,n===null?Mu(e):Me=n}function Xr(e,n,r,u){qn=Yl=null,Rs(n),Rr=null,Ri=0;var f=n.return;try{if(b1(e,f,n,r,Oe)){nt=1,bu(e,rn(r,e.current)),Me=null;return}}catch(h){if(f!==null)throw Me=f,h;nt=1,bu(e,rn(r,e.current)),Me=null;return}n.flags&32768?(Le||u===1?e=!0:Vr||(Oe&536870912)!==0?e=!1:(bl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Zt.current,u!==null&&u.tag===13&&(u.flags|=16384))),Gp(n,e)):Mu(n)}function Mu(e){var n=e;do{if((n.flags&32768)!==0){Gp(n,bl);return}e=n.return;var r=S1(n.alternate,n,Pn);if(r!==null){Me=r;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);nt===0&&(nt=5)}function Gp(e,n){do{var r=k1(e.alternate,e);if(r!==null){r.flags&=32767,Me=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=r}while(e!==null);nt=6,Me=null}function Fp(e,n,r,u,f,h,x,w,z){e.cancelPendingCommit=null;do _u();while(ht!==0);if((qe&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=os,sv(e,r,h,x,w,z),e===Ke&&(Me=Ke=null,Oe=0),Gr=n,Sl=e,$n=r,gc=h,yc=f,Op=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O1(Se,function(){return Pp(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,f=Q.p,Q.p=2,x=qe,qe|=4;try{w1(e,n,r)}finally{qe=x,Q.p=f,B.T=u}}ht=1,Xp(),Qp(),Zp()}}function Xp(){if(ht===1){ht=0;var e=Sl,n=Gr,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=B.T,B.T=null;var u=Q.p;Q.p=2;var f=qe;qe|=4;try{Tp(n,e);var h=_c,x=_h(e.containerInfo),w=h.focusedElem,z=h.selectionRange;if(x!==w&&w&&w.ownerDocument&&Mh(w.ownerDocument.documentElement,w)){if(z!==null&&ls(w)){var I=z.start,F=z.end;if(F===void 0&&(F=I),"selectionStart"in w)w.selectionStart=I,w.selectionEnd=Math.min(F,w.value.length);else{var J=w.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var G=Y.getSelection(),me=w.textContent.length,ve=Math.min(z.start,me),Xe=z.end===void 0?ve:Math.min(z.end,me);!G.extend&&ve>Xe&&(x=Xe,Xe=ve,ve=x);var U=zh(w,ve),O=zh(w,Xe);if(U&&O&&(G.rangeCount!==1||G.anchorNode!==U.node||G.anchorOffset!==U.offset||G.focusNode!==O.node||G.focusOffset!==O.offset)){var q=J.createRange();q.setStart(U.node,U.offset),G.removeAllRanges(),ve>Xe?(G.addRange(q),G.extend(O.node,O.offset)):(q.setEnd(O.node,O.offset),G.addRange(q))}}}}for(J=[],G=w;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<J.length;w++){var K=J[w];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Gu=!!Mc,_c=Mc=null}finally{qe=f,Q.p=u,B.T=r}}e.current=n,ht=2}}function Qp(){if(ht===2){ht=0;var e=Sl,n=Gr,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=B.T,B.T=null;var u=Q.p;Q.p=2;var f=qe;qe|=4;try{Sp(e,n.alternate,n)}finally{qe=f,Q.p=u,B.T=r}}ht=3}}function Zp(){if(ht===4||ht===3){ht=0,Oo();var e=Sl,n=Gr,r=$n,u=Op;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Gr=Sl=null,Kp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(vl=null),Bo(r),n=n.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Nt,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=B.T,f=Q.p,Q.p=2,B.T=null;try{for(var h=e.onRecoverableError,x=0;x<u.length;x++){var w=u[x];h(w.value,{componentStack:w.stack})}}finally{B.T=n,Q.p=f}}($n&3)!==0&&_u(),An(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===bc?Ji++:(Ji=0,bc=e):Ji=0,Wi(0)}}function Kp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Di(n)))}function _u(){return Xp(),Qp(),Zp(),Pp()}function Pp(){if(ht!==5)return!1;var e=Sl,n=gc;gc=0;var r=Bo($n),u=B.T,f=Q.p;try{Q.p=32>r?32:r,B.T=null,r=yc,yc=null;var h=Sl,x=$n;if(ht=0,Gr=Sl=null,$n=0,(qe&6)!==0)throw Error(a(331));var w=qe;if(qe|=4,Mp(h.current),Np(h,h.current,x,r),qe=w,Wi(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Nt,h)}catch{}return!0}finally{Q.p=f,B.T=u,Kp(e,n)}}function $p(e,n,r){n=rn(r,n),n=Ps(e.stateNode,n,2),e=ml(e,n,2),e!==null&&(xi(e,2),An(e))}function Ye(e,n,r){if(e.tag===3)$p(e,e,r);else for(;n!==null;){if(n.tag===3){$p(n,e,r);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(vl===null||!vl.has(u))){e=rn(r,e),r=Jm(2),u=ml(n,r,2),u!==null&&(Wm(r,u,n,e),xi(u,2),An(u));break}}n=n.return}}function Sc(e,n,r){var u=e.pingCache;if(u===null){u=e.pingCache=new T1;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(r)||(hc=!0,f.add(r),e=M1.bind(null,e,n,r),n.then(e,e))}function M1(e,n,r){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ke===e&&(Oe&r)===r&&(nt===4||nt===3&&(Oe&62914560)===Oe&&300>At()-Tu?(qe&2)===0&&Fr(e,0):mc|=r,Yr===Oe&&(Yr=0)),An(e)}function Jp(e,n){n===0&&(n=Xd()),e=ql(e,n),e!==null&&(xi(e,n),An(e))}function _1(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),Jp(e,r)}function D1(e,n){var r=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),Jp(e,r)}function O1(e,n){return hr(e,n)}var Du=null,Qr=null,kc=!1,Ou=!1,wc=!1,wl=0;function An(e){e!==Qr&&e.next===null&&(Qr===null?Du=Qr=e:Qr=Qr.next=e),Ou=!0,kc||(kc=!0,L1())}function Wi(e,n){if(!wc&&Ou){wc=!0;do for(var r=!1,u=Du;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var x=u.suspendedLanes,w=u.pingedLanes;h=(1<<31-Ze(42|e)+1)-1,h&=f&~(x&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,ng(u,h))}else h=Oe,h=Ba(u,u===Ke?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||bi(u,h)||(r=!0,ng(u,h));u=u.next}while(r);wc=!1}}function R1(){Wp()}function Wp(){Ou=kc=!1;var e=0;wl!==0&&X1()&&(e=wl);for(var n=At(),r=null,u=Du;u!==null;){var f=u.next,h=eg(u,n);h===0?(u.next=null,r===null?Du=f:r.next=f,f===null&&(Qr=r)):(r=u,(e!==0||(h&3)!==0)&&(Ou=!0)),u=f}ht!==0&&ht!==5||Wi(e),wl!==0&&(wl=0)}function eg(e,n){for(var r=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-Ze(h),w=1<<x,z=f[x];z===-1?((w&r)===0||(w&u)!==0)&&(f[x]=ov(w,n)):z<=n&&(e.expiredLanes|=w),h&=~w}if(n=Ke,r=Oe,r=Ba(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,r===0||e===n&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&yi(u),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||bi(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(u!==null&&yi(u),Bo(r)){case 2:case 8:r=oe;break;case 32:r=Se;break;case 268435456:r=Ie;break;default:r=Se}return u=tg.bind(null,e),r=hr(r,u),e.callbackPriority=n,e.callbackNode=r,n}return u!==null&&u!==null&&yi(u),e.callbackPriority=2,e.callbackNode=null,2}function tg(e,n){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(_u()&&e.callbackNode!==r)return null;var u=Oe;return u=Ba(e,e===Ke?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(Lp(e,u,n),eg(e,At()),e.callbackNode!=null&&e.callbackNode===r?tg.bind(null,e):null)}function ng(e,n){if(_u())return null;Lp(e,n,!0)}function L1(){Z1(function(){(qe&6)!==0?hr(Z,R1):Wp()})}function Ec(){if(wl===0){var e=_r;e===0&&(e=Ra,Ra<<=1,(Ra&261888)===0&&(Ra=256)),wl=e}return wl}function lg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Va(""+e)}function rg(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function U1(e,n,r,u,f){if(n==="submit"&&r&&r.stateNode===f){var h=lg((f[Rt]||null).action),x=u.submitter;x&&(n=(n=x[Rt]||null)?lg(n.formAction):x.getAttribute("formAction"),n!==null&&(h=n,x=null));var w=new Xa("action","action",null,u,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(wl!==0){var z=x?rg(f,x):new FormData(f);Gs(r,{pending:!0,data:z,method:f.method,action:h},null,z)}}else typeof h=="function"&&(w.preventDefault(),z=x?rg(f,x):new FormData(f),Gs(r,{pending:!0,data:z,method:f.method,action:h},h,z))},currentTarget:f}]})}}for(var Cc=0;Cc<us.length;Cc++){var Tc=us[Cc],B1=Tc.toLowerCase(),H1=Tc[0].toUpperCase()+Tc.slice(1);yn(B1,"on"+H1)}yn(Rh,"onAnimationEnd"),yn(Lh,"onAnimationIteration"),yn(Uh,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(t1,"onTransitionRun"),yn(n1,"onTransitionStart"),yn(l1,"onTransitionCancel"),yn(Bh,"onTransitionEnd"),br("onMouseEnter",["mouseout","mouseover"]),br("onMouseLeave",["mouseout","mouseover"]),br("onPointerEnter",["pointerout","pointerover"]),br("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ea="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(" "),q1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ea));function ig(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var u=e[r],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var x=u.length-1;0<=x;x--){var w=u[x],z=w.instance,I=w.currentTarget;if(w=w.listener,z!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=I;try{h(f)}catch(F){Ka(F)}f.currentTarget=null,h=z}else for(x=0;x<u.length;x++){if(w=u[x],z=w.instance,I=w.currentTarget,w=w.listener,z!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=I;try{h(f)}catch(F){Ka(F)}f.currentTarget=null,h=z}}}}function _e(e,n){var r=n[Ho];r===void 0&&(r=n[Ho]=new Set);var u=e+"__bubble";r.has(u)||(ag(n,e,2,!1),r.add(u))}function Ac(e,n,r){var u=0;n&&(u|=4),ag(r,e,u,n)}var Ru="_reactListening"+Math.random().toString(36).slice(2);function Nc(e){if(!e[Ru]){e[Ru]=!0,Wd.forEach(function(r){r!=="selectionchange"&&(q1.has(r)||Ac(r,!1,e),Ac(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ru]||(n[Ru]=!0,Ac("selectionchange",!1,n))}}function ag(e,n,r,u){switch(Rg(n)){case 2:var f=mS;break;case 8:f=pS;break;default:f=Yc}r=f.bind(null,n,r,e),f=void 0,!Zo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,r,{capture:!0,passive:f}):e.addEventListener(n,r,!0):f!==void 0?e.addEventListener(n,r,{passive:f}):e.addEventListener(n,r,!1)}function jc(e,n,r,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var w=u.stateNode.containerInfo;if(w===f)break;if(x===4)for(x=u.return;x!==null;){var z=x.tag;if((z===3||z===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;w!==null;){if(x=pr(w),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){u=h=x;continue e}w=w.parentNode}}u=u.return}fh(function(){var I=h,F=Xo(r),J=[];e:{var Y=Hh.get(e);if(Y!==void 0){var G=Xa,me=e;switch(e){case"keypress":if(Ga(r)===0)break e;case"keydown":case"keyup":G=Dv;break;case"focusin":me="focus",G=Jo;break;case"focusout":me="blur",G=Jo;break;case"beforeblur":case"afterblur":G=Jo;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=mh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Sv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Lv;break;case Rh:case Lh:case Uh:G=Ev;break;case Bh:G=Bv;break;case"scroll":case"scrollend":G=xv;break;case"wheel":G=qv;break;case"copy":case"cut":case"paste":G=Tv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=gh;break;case"toggle":case"beforetoggle":G=Vv}var ve=(n&4)!==0,Xe=!ve&&(e==="scroll"||e==="scrollend"),U=ve?Y!==null?Y+"Capture":null:Y;ve=[];for(var O=I,q;O!==null;){var K=O;if(q=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||q===null||U===null||(K=ki(O,U),K!=null&&ve.push(ta(O,K,q))),Xe)break;O=O.return}0<ve.length&&(Y=new G(Y,me,null,r,F),J.push({event:Y,listeners:ve}))}}if((n&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",Y&&r!==Fo&&(me=r.relatedTarget||r.fromElement)&&(pr(me)||me[mr]))break e;if((G||Y)&&(Y=F.window===F?F:(Y=F.ownerDocument)?Y.defaultView||Y.parentWindow:window,G?(me=r.relatedTarget||r.toElement,G=I,me=me?pr(me):null,me!==null&&(Xe=c(me),ve=me.tag,me!==Xe||ve!==5&&ve!==27&&ve!==6)&&(me=null)):(G=null,me=I),G!==me)){if(ve=mh,K="onMouseLeave",U="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ve=gh,K="onPointerLeave",U="onPointerEnter",O="pointer"),Xe=G==null?Y:Si(G),q=me==null?Y:Si(me),Y=new ve(K,O+"leave",G,r,F),Y.target=Xe,Y.relatedTarget=q,K=null,pr(F)===I&&(ve=new ve(U,O+"enter",me,r,F),ve.target=q,ve.relatedTarget=Xe,K=ve),Xe=K,G&&me)t:{for(ve=I1,U=G,O=me,q=0,K=U;K;K=ve(K))q++;K=0;for(var ye=O;ye;ye=ve(ye))K++;for(;0<q-K;)U=ve(U),q--;for(;0<K-q;)O=ve(O),K--;for(;q--;){if(U===O||O!==null&&U===O.alternate){ve=U;break t}U=ve(U),O=ve(O)}ve=null}else ve=null;G!==null&&ug(J,Y,G,ve,!1),me!==null&&Xe!==null&&ug(J,Xe,me,ve,!0)}}e:{if(Y=I?Si(I):window,G=Y.nodeName&&Y.nodeName.toLowerCase(),G==="select"||G==="input"&&Y.type==="file")var Be=Eh;else if(kh(Y))if(Ch)Be=Jv;else{Be=Pv;var ge=Kv}else G=Y.nodeName,!G||G.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?I&&Go(I.elementType)&&(Be=Eh):Be=$v;if(Be&&(Be=Be(e,I))){wh(J,Be,r,F);break e}ge&&ge(e,Y,I),e==="focusout"&&I&&Y.type==="number"&&I.memoizedProps.value!=null&&Yo(Y,"number",Y.value)}switch(ge=I?Si(I):window,e){case"focusin":(kh(ge)||ge.contentEditable==="true")&&(Er=ge,rs=I,zi=null);break;case"focusout":zi=rs=Er=null;break;case"mousedown":is=!0;break;case"contextmenu":case"mouseup":case"dragend":is=!1,Dh(J,r,F);break;case"selectionchange":if(e1)break;case"keydown":case"keyup":Dh(J,r,F)}var Ne;if(es)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else wr?vh(e,r)&&(Re="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Re="onCompositionStart");Re&&(yh&&r.locale!=="ko"&&(wr||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&wr&&(Ne=dh()):(ul=F,Ko="value"in ul?ul.value:ul.textContent,wr=!0)),ge=Lu(I,Re),0<ge.length&&(Re=new ph(Re,e,null,r,F),J.push({event:Re,listeners:ge}),Ne?Re.data=Ne:(Ne=Sh(r),Ne!==null&&(Re.data=Ne)))),(Ne=Gv?Fv(e,r):Xv(e,r))&&(Re=Lu(I,"onBeforeInput"),0<Re.length&&(ge=new ph("onBeforeInput","beforeinput",null,r,F),J.push({event:ge,listeners:Re}),ge.data=Ne)),U1(J,e,I,r,F)}ig(J,n)})}function ta(e,n,r){return{instance:e,listener:n,currentTarget:r}}function Lu(e,n){for(var r=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=ki(e,r),f!=null&&u.unshift(ta(e,f,h)),f=ki(e,n),f!=null&&u.push(ta(e,f,h))),e.tag===3)return u;e=e.return}return[]}function I1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ug(e,n,r,u,f){for(var h=n._reactName,x=[];r!==null&&r!==u;){var w=r,z=w.alternate,I=w.stateNode;if(w=w.tag,z!==null&&z===u)break;w!==5&&w!==26&&w!==27||I===null||(z=I,f?(I=ki(r,h),I!=null&&x.unshift(ta(r,I,z))):f||(I=ki(r,h),I!=null&&x.push(ta(r,I,z)))),r=r.return}x.length!==0&&e.push({event:n,listeners:x})}var V1=/\r\n?/g,Y1=/\u0000|\uFFFD/g;function og(e){return(typeof e=="string"?e:""+e).replace(V1,`
49
- `).replace(Y1,"")}function sg(e,n){return n=og(n),og(e)===n}function Fe(e,n,r,u,f,h){switch(r){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||vr(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&vr(e,""+u);break;case"className":qa(e,"class",u);break;case"tabIndex":qa(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":qa(e,r,u);break;case"style":sh(e,u,h);break;case"data":if(n!=="object"){qa(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}u=Va(""+u),e.setAttribute(r,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(r,"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 h=="function"&&(r==="formAction"?(n!=="input"&&Fe(e,n,"name",f.name,f,null),Fe(e,n,"formEncType",f.formEncType,f,null),Fe(e,n,"formMethod",f.formMethod,f,null),Fe(e,n,"formTarget",f.formTarget,f,null)):(Fe(e,n,"encType",f.encType,f,null),Fe(e,n,"method",f.method,f,null),Fe(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}u=Va(""+u),e.setAttribute(r,u);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"onScroll":u!=null&&_e("scroll",e);break;case"onScrollEnd":u!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(r=u.__html,r!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=r}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}r=Va(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""+u):e.removeAttribute(r);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":u===!0?e.setAttribute(r,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,u):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(r,u):e.removeAttribute(r);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(r):e.setAttribute(r,u);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Ha(e,"popover",u);break;case"xlinkActuate":Rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Rn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Rn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Rn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Rn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ha(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=yv.get(r)||r,Ha(e,r,u))}}function zc(e,n,r,u,f,h){switch(r){case"style":sh(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(r=u.__html,r!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=r}}break;case"children":typeof u=="string"?vr(e,u):(typeof u=="number"||typeof u=="bigint")&&vr(e,""+u);break;case"onScroll":u!=null&&_e("scroll",e);break;case"onScrollEnd":u!=null&&_e("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!eh.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),n=r.slice(2,f?r.length-7:void 0),h=e[Rt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,u,f);break e}r in e?e[r]=u:u===!0?e.setAttribute(r,""):Ha(e,r,u)}}}function kt(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var u=!1,f=!1,h;for(h in r)if(r.hasOwnProperty(h)){var x=r[h];if(x!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,h,x,r,null)}}f&&Fe(e,n,"srcSet",r.srcSet,r,null),u&&Fe(e,n,"src",r.src,r,null);return;case"input":_e("invalid",e);var w=h=x=f=null,z=null,I=null;for(u in r)if(r.hasOwnProperty(u)){var F=r[u];if(F!=null)switch(u){case"name":f=F;break;case"type":x=F;break;case"checked":z=F;break;case"defaultChecked":I=F;break;case"value":h=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:Fe(e,n,u,F,r,null)}}ih(e,h,w,z,I,x,f,!1);return;case"select":_e("invalid",e),u=x=h=null;for(f in r)if(r.hasOwnProperty(f)&&(w=r[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":x=w;break;case"multiple":u=w;default:Fe(e,n,f,w,r,null)}n=h,r=x,e.multiple=!!u,n!=null?xr(e,!!u,n,!1):r!=null&&xr(e,!!u,r,!0);return;case"textarea":_e("invalid",e),h=f=u=null;for(x in r)if(r.hasOwnProperty(x)&&(w=r[x],w!=null))switch(x){case"value":u=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:Fe(e,n,x,w,r,null)}uh(e,u,f,h);return;case"option":for(z in r)if(r.hasOwnProperty(z)&&(u=r[z],u!=null))switch(z){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Fe(e,n,z,u,r,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(u=0;u<ea.length;u++)_e(ea[u],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(I in r)if(r.hasOwnProperty(I)&&(u=r[I],u!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,I,u,r,null)}return;default:if(Go(n)){for(F in r)r.hasOwnProperty(F)&&(u=r[F],u!==void 0&&zc(e,n,F,u,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(u=r[w],u!=null&&Fe(e,n,w,u,r,null))}function G1(e,n,r,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,x=null,w=null,z=null,I=null,F=null;for(G in r){var J=r[G];if(r.hasOwnProperty(G)&&J!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":z=J;default:u.hasOwnProperty(G)||Fe(e,n,G,null,u,J)}}for(var Y in u){var G=u[Y];if(J=r[Y],u.hasOwnProperty(Y)&&(G!=null||J!=null))switch(Y){case"type":h=G;break;case"name":f=G;break;case"checked":I=G;break;case"defaultChecked":F=G;break;case"value":x=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:G!==J&&Fe(e,n,Y,G,u,J)}}Vo(e,x,w,z,I,F,h,f);return;case"select":G=x=w=Y=null;for(h in r)if(z=r[h],r.hasOwnProperty(h)&&z!=null)switch(h){case"value":break;case"multiple":G=z;default:u.hasOwnProperty(h)||Fe(e,n,h,null,u,z)}for(f in u)if(h=u[f],z=r[f],u.hasOwnProperty(f)&&(h!=null||z!=null))switch(f){case"value":Y=h;break;case"defaultValue":w=h;break;case"multiple":x=h;default:h!==z&&Fe(e,n,f,h,u,z)}n=w,r=x,u=G,Y!=null?xr(e,!!r,Y,!1):!!u!=!!r&&(n!=null?xr(e,!!r,n,!0):xr(e,!!r,r?[]:"",!1));return;case"textarea":G=Y=null;for(w in r)if(f=r[w],r.hasOwnProperty(w)&&f!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Fe(e,n,w,null,u,f)}for(x in u)if(f=u[x],h=r[x],u.hasOwnProperty(x)&&(f!=null||h!=null))switch(x){case"value":Y=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Fe(e,n,x,f,u,h)}ah(e,Y,G);return;case"option":for(var me in r)if(Y=r[me],r.hasOwnProperty(me)&&Y!=null&&!u.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Fe(e,n,me,null,u,Y)}for(z in u)if(Y=u[z],G=r[z],u.hasOwnProperty(z)&&Y!==G&&(Y!=null||G!=null))switch(z){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Fe(e,n,z,Y,u,G)}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 ve in r)Y=r[ve],r.hasOwnProperty(ve)&&Y!=null&&!u.hasOwnProperty(ve)&&Fe(e,n,ve,null,u,Y);for(I in u)if(Y=u[I],G=r[I],u.hasOwnProperty(I)&&Y!==G&&(Y!=null||G!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(a(137,n));break;default:Fe(e,n,I,Y,u,G)}return;default:if(Go(n)){for(var Xe in r)Y=r[Xe],r.hasOwnProperty(Xe)&&Y!==void 0&&!u.hasOwnProperty(Xe)&&zc(e,n,Xe,void 0,u,Y);for(F in u)Y=u[F],G=r[F],!u.hasOwnProperty(F)||Y===G||Y===void 0&&G===void 0||zc(e,n,F,Y,u,G);return}}for(var U in r)Y=r[U],r.hasOwnProperty(U)&&Y!=null&&!u.hasOwnProperty(U)&&Fe(e,n,U,null,u,Y);for(J in u)Y=u[J],G=r[J],!u.hasOwnProperty(J)||Y===G||Y==null&&G==null||Fe(e,n,J,Y,u,G)}function cg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),u=0;u<r.length;u++){var f=r[u],h=f.transferSize,x=f.initiatorType,w=f.duration;if(h&&w&&cg(x)){for(x=0,w=f.responseEnd,u+=1;u<r.length;u++){var z=r[u],I=z.startTime;if(I>w)break;var F=z.transferSize,J=z.initiatorType;F&&cg(J)&&(z=z.responseEnd,x+=F*(z<w?1:(w-I)/(z-I)))}if(--u,n+=8*(h+x)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mc=null,_c=null;function Uu(e){return e.nodeType===9?e:e.ownerDocument}function fg(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 dg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Dc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Oc=null;function X1(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var hg=typeof setTimeout=="function"?setTimeout:void 0,Q1=typeof clearTimeout=="function"?clearTimeout:void 0,mg=typeof Promise=="function"?Promise:void 0,Z1=typeof queueMicrotask=="function"?queueMicrotask:typeof mg<"u"?function(e){return mg.resolve(null).then(e).catch(K1)}:hg;function K1(e){setTimeout(function(){throw e})}function El(e){return e==="head"}function pg(e,n){var r=n,u=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(u===0){e.removeChild(f),$r(n);return}u--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")u++;else if(r==="html")na(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,na(r);for(var h=r.firstChild;h;){var x=h.nextSibling,w=h.nodeName;h[vi]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=x}}else r==="body"&&na(e.ownerDocument.body);r=f}while(r);$r(n)}function gg(e,n){var r=e;e=0;do{var u=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),u&&u.nodeType===8)if(r=u.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=u}while(r)}function Rc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Rc(r),qo(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function P1(e,n,r,u){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[vi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function $1(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=cn(e.nextSibling),e===null))return null;return e}function yg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Lc(e){return e.data==="$?"||e.data==="$~"}function Uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function J1(e,n){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||r.readyState!=="loading")n();else{var u=function(){n(),r.removeEventListener("DOMContentLoaded",u)};r.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function cn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Bc=null;function bg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(n===0)return cn(e.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}e=e.nextSibling}return null}function xg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return e;n--}else r!=="/$"&&r!=="/&"||n++}e=e.previousSibling}return null}function vg(e,n,r){switch(n=Uu(r),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function na(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);qo(e)}var fn=new Map,Sg=new Set;function Bu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Jn=Q.d;Q.d={f:W1,r:eS,D:tS,C:nS,L:lS,m:rS,X:aS,S:iS,M:uS};function W1(){var e=Jn.f(),n=ju();return e||n}function eS(e){var n=gr(e);n!==null&&n.tag===5&&n.type==="form"?Bm(n):Jn.r(e)}var Zr=typeof document>"u"?null:document;function kg(e,n,r){var u=Zr;if(u&&typeof n=="string"&&n){var f=nn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),Sg.has(f)||(Sg.add(f),e={rel:e,crossOrigin:r,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),kt(n,"link",e),pt(n),u.head.appendChild(n)))}}function tS(e){Jn.D(e),kg("dns-prefetch",e,null)}function nS(e,n){Jn.C(e,n),kg("preconnect",e,n)}function lS(e,n,r){Jn.L(e,n,r);var u=Zr;if(u&&e&&n){var f='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+nn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+nn(r.imageSizes)+'"]')):f+='[href="'+nn(e)+'"]';var h=f;switch(n){case"style":h=Kr(e);break;case"script":h=Pr(e)}fn.has(h)||(e=g({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),fn.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(la(h))||n==="script"&&u.querySelector(ra(h))||(n=u.createElement("link"),kt(n,"link",e),pt(n),u.head.appendChild(n)))}}function rS(e,n){Jn.m(e,n);var r=Zr;if(r&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+nn(u)+'"][href="'+nn(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Pr(e)}if(!fn.has(h)&&(e=g({rel:"modulepreload",href:e},n),fn.set(h,e),r.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(ra(h)))return}u=r.createElement("link"),kt(u,"link",e),pt(u),r.head.appendChild(u)}}}function iS(e,n,r){Jn.S(e,n,r);var u=Zr;if(u&&e){var f=yr(u).hoistableStyles,h=Kr(e);n=n||"default";var x=f.get(h);if(!x){var w={loading:0,preload:null};if(x=u.querySelector(la(h)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},r),(r=fn.get(h))&&Hc(e,r);var z=x=u.createElement("link");pt(z),kt(z,"link",e),z._p=new Promise(function(I,F){z.onload=I,z.onerror=F}),z.addEventListener("load",function(){w.loading|=1}),z.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Hu(x,n,u)}x={type:"stylesheet",instance:x,count:1,state:w},f.set(h,x)}}}function aS(e,n){Jn.X(e,n);var r=Zr;if(r&&e){var u=yr(r).hoistableScripts,f=Pr(e),h=u.get(f);h||(h=r.querySelector(ra(f)),h||(e=g({src:e,async:!0},n),(n=fn.get(f))&&qc(e,n),h=r.createElement("script"),pt(h),kt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function uS(e,n){Jn.M(e,n);var r=Zr;if(r&&e){var u=yr(r).hoistableScripts,f=Pr(e),h=u.get(f);h||(h=r.querySelector(ra(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=fn.get(f))&&qc(e,n),h=r.createElement("script"),pt(h),kt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function wg(e,n,r,u){var f=(f=le.current)?Bu(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=Kr(r.href),r=yr(f).hoistableStyles,u=r.get(n),u||(u={type:"style",instance:null,count:0,state:null},r.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Kr(r.href);var h=yr(f).hoistableStyles,x=h.get(e);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=f.querySelector(la(e)))&&!h._p&&(x.instance=h,x.state.loading=5),fn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},fn.set(e,r),h||oS(f,e,r,x.state))),n&&u===null)throw Error(a(528,""));return x}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Pr(r),r=yr(f).hoistableScripts,u=r.get(n),u||(u={type:"script",instance:null,count:0,state:null},r.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Kr(e){return'href="'+nn(e)+'"'}function la(e){return'link[rel="stylesheet"]['+e+"]"}function Eg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function oS(e,n,r,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),kt(n,"link",r),pt(n),e.head.appendChild(n))}function Pr(e){return'[src="'+nn(e)+'"]'}function ra(e){return"script[async]"+e}function Cg(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+nn(r.href)+'"]');if(u)return n.instance=u,pt(u),u;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),pt(u),kt(u,"style",f),Hu(u,r.precedence,e),n.instance=u;case"stylesheet":f=Kr(r.href);var h=e.querySelector(la(f));if(h)return n.state.loading|=4,n.instance=h,pt(h),h;u=Eg(r),(f=fn.get(f))&&Hc(u,f),h=(e.ownerDocument||e).createElement("link"),pt(h);var x=h;return x._p=new Promise(function(w,z){x.onload=w,x.onerror=z}),kt(h,"link",u),n.state.loading|=4,Hu(h,r.precedence,e),n.instance=h;case"script":return h=Pr(r.src),(f=e.querySelector(ra(h)))?(n.instance=f,pt(f),f):(u=r,(f=fn.get(h))&&(u=g({},r),qc(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),pt(f),kt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,Hu(u,r.precedence,e));return n.instance}function Hu(e,n,r){for(var u=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,x=0;x<u.length;x++){var w=u[x];if(w.dataset.precedence===n)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function Hc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function qc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var qu=null;function Tg(e,n,r){if(qu===null){var u=new Map,f=qu=new Map;f.set(r,u)}else f=qu,u=f.get(r),u||(u=new Map,f.set(r,u));if(u.has(e))return u;for(u.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var h=r[f];if(!(h[vi]||h[bt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(n)||"";x=e+x;var w=u.get(x);w?w.push(h):u.set(x,[h])}}return u}function Ag(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function sS(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ng(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cS(e,n,r,u){if(r.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=Kr(u.href),h=n.querySelector(la(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Iu.bind(e),n.then(e,e)),r.state.loading|=4,r.instance=h,pt(h);return}h=n.ownerDocument||n,u=Eg(u),(f=fn.get(f))&&Hc(u,f),h=h.createElement("link"),pt(h);var x=h;x._p=new Promise(function(w,z){x.onload=w,x.onerror=z}),kt(h,"link",u),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Iu.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}var Ic=0;function fS(e,n){return e.stylesheets&&e.count===0&&Yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var u=setTimeout(function(){if(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Ic===0&&(Ic=62500*F1());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Ic?50:800)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vu=null;function Yu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vu=new Map,n.forEach(dS,e),Vu=null,Iu.call(e))}function dS(e,n){if(!(n.state.loading&4)){var r=Vu.get(e);if(r)var u=r.get(null);else{r=new Map,Vu.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var x=f[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(r.set(x.dataset.precedence,x),u=x)}u&&r.set(null,u)}f=n.instance,x=f.getAttribute("data-precedence"),h=r.get(x)||u,h===u&&r.set(null,f),r.set(x,f),this.count++,u=Iu.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var ia={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function hS(e,n,r,u,f,h,x,w,z){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=Lo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lo(0),this.hiddenUpdates=Lo(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function jg(e,n,r,u,f,h,x,w,z,I,F,J){return e=new hS(e,n,r,x,z,I,F,J,w),n=1,h===!0&&(n|=24),h=Qt(3,null,null,n),e.current=h,h.stateNode=e,n=vs(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:r,cache:n},Es(h),e}function zg(e){return e?(e=Ar,e):Ar}function Mg(e,n,r,u,f,h){f=zg(f),u.context===null?u.context=f:u.pendingContext=f,u=hl(n),u.payload={element:r},h=h===void 0?null:h,h!==null&&(u.callback=h),r=ml(e,u,n),r!==null&&(It(r,e,n),Ui(r,e,n))}function _g(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Vc(e,n){_g(e,n),(e=e.alternate)&&_g(e,n)}function Dg(e){if(e.tag===13||e.tag===31){var n=ql(e,67108864);n!==null&&It(n,e,67108864),Vc(e,67108864)}}function Og(e){if(e.tag===13||e.tag===31){var n=Jt();n=Uo(n);var r=ql(e,n);r!==null&&It(r,e,n),Vc(e,n)}}var Gu=!0;function mS(e,n,r,u){var f=B.T;B.T=null;var h=Q.p;try{Q.p=2,Yc(e,n,r,u)}finally{Q.p=h,B.T=f}}function pS(e,n,r,u){var f=B.T;B.T=null;var h=Q.p;try{Q.p=8,Yc(e,n,r,u)}finally{Q.p=h,B.T=f}}function Yc(e,n,r,u){if(Gu){var f=Gc(u);if(f===null)jc(e,n,u,Fu,r),Lg(e,u);else if(yS(f,e,n,r,u))u.stopPropagation();else if(Lg(e,u),n&4&&-1<gS.indexOf(e)){for(;f!==null;){var h=gr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=Rl(h.pendingLanes);if(x!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var z=1<<31-Ze(x);w.entanglements[1]|=z,x&=~z}An(h),(qe&6)===0&&(Au=At()+500,Wi(0))}}break;case 31:case 13:w=ql(h,2),w!==null&&It(w,h,2),ju(),Vc(h,2)}if(h=Gc(u),h===null&&jc(e,n,u,Fu,r),h===f)break;f=h}f!==null&&u.stopPropagation()}else jc(e,n,u,null,r)}}function Gc(e){return e=Xo(e),Fc(e)}var Fu=null;function Fc(e){if(Fu=null,e=pr(e),e!==null){var n=c(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=s(n),e!==null)return e;e=null}else if(r===31){if(e=d(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Fu=e,null}function Rg(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(Ro()){case Z:return 2;case oe:return 8;case Se:case ze:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var Xc=!1,Cl=null,Tl=null,Al=null,aa=new Map,ua=new Map,Nl=[],gS="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 Lg(e,n){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":aa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ua.delete(n.pointerId)}}function oa(e,n,r,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:r,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=gr(n),n!==null&&Dg(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function yS(e,n,r,u,f){switch(n){case"focusin":return Cl=oa(Cl,e,n,r,u,f),!0;case"dragenter":return Tl=oa(Tl,e,n,r,u,f),!0;case"mouseover":return Al=oa(Al,e,n,r,u,f),!0;case"pointerover":var h=f.pointerId;return aa.set(h,oa(aa.get(h)||null,e,n,r,u,f)),!0;case"gotpointercapture":return h=f.pointerId,ua.set(h,oa(ua.get(h)||null,e,n,r,u,f)),!0}return!1}function Ug(e){var n=pr(e.target);if(n!==null){var r=c(n);if(r!==null){if(n=r.tag,n===13){if(n=s(r),n!==null){e.blockedOn=n,$d(e.priority,function(){Og(r)});return}}else if(n===31){if(n=d(r),n!==null){e.blockedOn=n,$d(e.priority,function(){Og(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xu(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=Gc(e.nativeEvent);if(r===null){r=e.nativeEvent;var u=new r.constructor(r.type,r);Fo=u,r.target.dispatchEvent(u),Fo=null}else return n=gr(r),n!==null&&Dg(n),e.blockedOn=r,!1;n.shift()}return!0}function Bg(e,n,r){Xu(e)&&r.delete(n)}function bS(){Xc=!1,Cl!==null&&Xu(Cl)&&(Cl=null),Tl!==null&&Xu(Tl)&&(Tl=null),Al!==null&&Xu(Al)&&(Al=null),aa.forEach(Bg),ua.forEach(Bg)}function Qu(e,n){e.blockedOn===n&&(e.blockedOn=null,Xc||(Xc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,bS)))}var Zu=null;function Hg(e){Zu!==e&&(Zu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Zu===e&&(Zu=null);for(var n=0;n<e.length;n+=3){var r=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Fc(u||r)===null)continue;break}var h=gr(r);h!==null&&(e.splice(n,3),n-=3,Gs(h,{pending:!0,data:f,method:r.method,action:u},u,f))}}))}function $r(e){function n(z){return Qu(z,e)}Cl!==null&&Qu(Cl,e),Tl!==null&&Qu(Tl,e),Al!==null&&Qu(Al,e),aa.forEach(n),ua.forEach(n);for(var r=0;r<Nl.length;r++){var u=Nl[r];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Nl.length&&(r=Nl[0],r.blockedOn===null);)Ug(r),r.blockedOn===null&&Nl.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(u=0;u<r.length;u+=3){var f=r[u],h=r[u+1],x=f[Rt]||null;if(typeof h=="function")x||Hg(r);else if(x){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,x=h[Rt]||null)w=x.formAction;else if(Fc(f)!==null)continue}else w=x.action;typeof w=="function"?r[u+1]=w:(r.splice(u,3),u-=3),Hg(r)}}}function qg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(r,20)}function r(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Qc(e){this._internalRoot=e}Ku.prototype.render=Qc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var r=n.current,u=Jt();Mg(r,u,e,n,null,null)},Ku.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mg(e.current,2,null,e,null,null),ju(),n[mr]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var n=Pd();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Nl.length&&n!==0&&n<Nl[r].priority;r++);Nl.splice(r,0,e),r===0&&Ug(e)}};var Ig=l.version;if(Ig!=="19.2.8")throw Error(a(527,Ig,"19.2.8"));Q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var xS={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{Nt=Pu.inject(xS),dt=Pu}catch{}}return ca.createRoot=function(e,n){if(!o(e))throw Error(a(299));var r=!1,u="",f=Zm,h=Km,x=Pm;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=jg(e,1,!1,null,null,r,u,null,f,h,x,qg),e[mr]=n.current,Nc(e),new Qc(n)},ca.hydrateRoot=function(e,n,r){if(!o(e))throw Error(a(299));var u=!1,f="",h=Zm,x=Km,w=Pm,z=null;return r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(x=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.formState!==void 0&&(z=r.formState)),n=jg(e,1,!0,n,r??null,u,f,z,h,x,w,qg),n.context=zg(null),r=n.current,u=Jt(),u=Uo(u),f=hl(u),f.callback=null,ml(r,f,u),r=u,n.current.lanes=r,xi(n,r),An(n),e[mr]=n.current,Nc(e),new Ku(n)},ca.version="19.2.8",ca}var $g;function zS(){if($g)return Pc.exports;$g=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Pc.exports=jS(),Pc.exports}var MS=zS();/**
48
+ `+u.stack}}var dr=Object.prototype.hasOwnProperty,hr=t.unstable_scheduleCallback,yi=t.unstable_cancelCallback,Do=t.unstable_shouldYield,Oo=t.unstable_requestPaint,At=t.unstable_now,Ro=t.unstable_getCurrentPriorityLevel,Z=t.unstable_ImmediatePriority,oe=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Ft=t.log,On=t.unstable_setDisableYieldValue,Nt=null,dt=null;function Ot(e){if(typeof Ft=="function"&&On(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Nt,e)}catch{}}var Ze=Math.clz32?Math.clz32:fv,il=Math.log,gn=Math.LN2;function fv(e){return e>>>=0,e===0?32:31-(il(e)/gn|0)|0}var Ra=256,La=262144,Ua=4194304;function Rl(e){var n=e&42;if(n!==0)return n;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 Ba(e,n,r){var u=e.pendingLanes;if(u===0)return 0;var f=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var w=u&134217727;return w!==0?(u=w&~h,u!==0?f=Rl(u):(b&=w,b!==0?f=Rl(b):r||(r=w&~e,r!==0&&(f=Rl(r))))):(w=u&~h,w!==0?f=Rl(w):b!==0?f=Rl(b):r||(r=u&~e,r!==0&&(f=Rl(r)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,r=n&-n,h>=r||h===32&&(r&4194048)!==0)?n:f}function xi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function dv(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Xd(){var e=Ua;return Ua<<=1,(Ua&62914560)===0&&(Ua=4194304),e}function Lo(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function bi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function hv(e,n,r,u,f,h){var b=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var w=e.entanglements,z=e.expirationTimes,I=e.hiddenUpdates;for(r=b&~r;0<r;){var F=31-Ze(r),W=1<<F;w[F]=0,z[F]=-1;var Y=I[F];if(Y!==null)for(I[F]=null,F=0;F<Y.length;F++){var G=Y[F];G!==null&&(G.lane&=-536870913)}r&=~W}u!==0&&Qd(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function Qd(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Ze(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|r&261930}function Zd(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var u=31-Ze(r),f=1<<u;f&n|e[u]&n&&(e[u]|=n),r&=~f}}function Kd(e,n){var r=n&-n;return r=(r&42)!==0?1:Uo(r),(r&(e.suspendedLanes|n))!==0?0:r}function Uo(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 Bo(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Rg(e.type))}function $d(e,n){var r=Q.p;try{return Q.p=e,n()}finally{Q.p=r}}var al=Math.random().toString(36).slice(2),xt="__reactFiber$"+al,Rt="__reactProps$"+al,mr="__reactContainer$"+al,Ho="__reactEvents$"+al,mv="__reactListeners$"+al,pv="__reactHandles$"+al,Jd="__reactResources$"+al,vi="__reactMarker$"+al;function qo(e){delete e[xt],delete e[Rt],delete e[Ho],delete e[mv],delete e[pv]}function pr(e){var n=e[xt];if(n)return n;for(var r=e.parentNode;r;){if(n=r[mr]||r[xt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=bg(e);e!==null;){if(r=e[xt])return r;e=bg(e)}return n}e=r,r=e.parentNode}return null}function gr(e){if(e=e[xt]||e[mr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Si(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function yr(e){var n=e[Jd];return n||(n=e[Jd]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pt(e){e[vi]=!0}var Wd=new Set,eh={};function Ll(e,n){xr(e,n),xr(e+"Capture",n)}function xr(e,n){for(eh[e]=n,e=0;e<n.length;e++)Wd.add(n[e])}var gv=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]*$"),th={},nh={};function yv(e){return dr.call(nh,e)?!0:dr.call(th,e)?!1:gv.test(e)?nh[e]=!0:(th[e]=!0,!1)}function Ha(e,n,r){if(yv(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function qa(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+r)}}function Rn(e,n,r,u){if(u===null)e.removeAttribute(r);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+u)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function xv(e,n,r){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,h=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){r=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return r},setValue:function(b){r=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Io(e){if(!e._valueTracker){var n=lh(e)?"checked":"value";e._valueTracker=xv(e,n,""+e[n])}}function rh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),u="";return e&&(u=lh(e)?e.checked?"true":"false":e.value),e=u,e!==r?(n.setValue(e),!0):!1}function Ia(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 bv=/[\n"\\]/g;function nn(e){return e.replace(bv,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Vo(e,n,r,u,f,h,b,w){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+tn(n)):e.value!==""+tn(n)&&(e.value=""+tn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Yo(e,b,tn(n)):r!=null?Yo(e,b,tn(r)):u!=null&&e.removeAttribute("value"),f==null&&h!=null&&(e.defaultChecked=!!h),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+tn(w):e.removeAttribute("name")}function ih(e,n,r,u,f,h,b,w){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Io(e);return}r=r!=null?""+tn(r):"",n=n!=null?""+tn(n):r,w||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=w?e.checked:!!u,e.defaultChecked=!!u,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Io(e)}function Yo(e,n,r){n==="number"&&Ia(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function br(e,n,r,u){if(e=e.options,n){n={};for(var f=0;f<r.length;f++)n["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=n.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&u&&(e[r].defaultSelected=!0)}else{for(r=""+tn(r),n=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function ah(e,n,r){if(n!=null&&(n=""+tn(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+tn(r):""}function uh(e,n,r,u){if(n==null){if(u!=null){if(r!=null)throw Error(a(92));if(ne(u)){if(1<u.length)throw Error(a(93));u=u[0]}r=u}r==null&&(r=""),n=r}r=tn(n),e.defaultValue=r,u=e.textContent,u===r&&u!==""&&u!==null&&(e.value=u),Io(e)}function vr(e,n){if(n){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var vv=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 oh(e,n,r){var u=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,r):typeof r!="number"||r===0||vv.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function sh(e,n,r){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,r!=null){for(var u in r)!r.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&r[f]!==u&&oh(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&oh(e,h,n[h])}function Go(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 Sv=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"]]),kv=/^[\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 Va(e){return kv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Fo=null;function Xo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sr=null,kr=null;function ch(e){var n=gr(e);if(n&&(e=n.stateNode)){var r=e[Rt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Vo(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var u=r[n];if(u!==e&&u.form===e.form){var f=u[Rt]||null;if(!f)throw Error(a(90));Vo(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<r.length;n++)u=r[n],u.form===e.form&&rh(u)}break e;case"textarea":ah(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&br(e,!!r.multiple,n,!1)}}}var Qo=!1;function fh(e,n,r){if(Qo)return e(n,r);Qo=!0;try{var u=e(n);return u}finally{if(Qo=!1,(Sr!==null||kr!==null)&&(ju(),Sr&&(n=Sr,e=kr,kr=Sr=null,ch(n),e)))for(n=0;n<e.length;n++)ch(e[n])}}function ki(e,n){var r=e.stateNode;if(r===null)return null;var u=r[Rt]||null;if(u===null)return null;r=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(a(231,n,typeof r));return r}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zo=!1;if(Un)try{var wi={};Object.defineProperty(wi,"passive",{get:function(){Zo=!0}}),window.addEventListener("test",wi,wi),window.removeEventListener("test",wi,wi)}catch{Zo=!1}var ul=null,Ko=null,Ya=null;function dh(){if(Ya)return Ya;var e,n=Ko,r=n.length,u,f="value"in ul?ul.value:ul.textContent,h=f.length;for(e=0;e<r&&n[e]===f[e];e++);var b=r-e;for(u=1;u<=b&&n[r-u]===f[h-u];u++);return Ya=f.slice(e,1<u?1-u:void 0)}function Ga(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Fa(){return!0}function hh(){return!1}function Lt(e){function n(r,u,f,h,b){this._reactName=r,this._targetInst=f,this.type=u,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(r=e[w],this[w]=r?r(h):h[w]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Fa:hh,this.isPropagationStopped=hh,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Fa)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Fa)},persist:function(){},isPersistent:Fa}),n}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xa=Lt(Ul),Ei=g({},Ul,{view:0,detail:0}),wv=Lt(Ei),Po,$o,Ci,Qa=g({},Ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wo,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!==Ci&&(Ci&&e.type==="mousemove"?(Po=e.screenX-Ci.screenX,$o=e.screenY-Ci.screenY):$o=Po=0,Ci=e),Po)},movementY:function(e){return"movementY"in e?e.movementY:$o}}),mh=Lt(Qa),Ev=g({},Qa,{dataTransfer:0}),Cv=Lt(Ev),Tv=g({},Ei,{relatedTarget:0}),Jo=Lt(Tv),Av=g({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),Nv=Lt(Av),jv=g({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zv=Lt(jv),Mv=g({},Ul,{data:0}),ph=Lt(Mv),_v={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dv={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"},Ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rv(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Ov[e])?!!n[e]:!1}function Wo(){return Rv}var Lv=g({},Ei,{key:function(e){if(e.key){var n=_v[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ga(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Dv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wo,charCode:function(e){return e.type==="keypress"?Ga(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ga(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Uv=Lt(Lv),Bv=g({},Qa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gh=Lt(Bv),Hv=g({},Ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wo}),qv=Lt(Hv),Iv=g({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),Vv=Lt(Iv),Yv=g({},Qa,{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}),Gv=Lt(Yv),Fv=g({},Ul,{newState:0,oldState:0}),Xv=Lt(Fv),Qv=[9,13,27,32],es=Un&&"CompositionEvent"in window,Ti=null;Un&&"documentMode"in document&&(Ti=document.documentMode);var Zv=Un&&"TextEvent"in window&&!Ti,yh=Un&&(!es||Ti&&8<Ti&&11>=Ti),xh=" ",bh=!1;function vh(e,n){switch(e){case"keyup":return Qv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function Kv(e,n){switch(e){case"compositionend":return Sh(n);case"keypress":return n.which!==32?null:(bh=!0,xh);case"textInput":return e=n.data,e===xh&&bh?null:e;default:return null}}function Pv(e,n){if(wr)return e==="compositionend"||!es&&vh(e,n)?(e=dh(),Ya=Ko=ul=null,wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return yh&&n.locale!=="ko"?null:n.data;default:return null}}var $v={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 kh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!$v[e.type]:n==="textarea"}function wh(e,n,r,u){Sr?kr?kr.push(u):kr=[u]:Sr=u,n=Lu(n,"onChange"),0<n.length&&(r=new Xa("onChange","change",null,r,u),e.push({event:r,listeners:n}))}var Ai=null,Ni=null;function Jv(e){ig(e,0)}function Za(e){var n=Si(e);if(rh(n))return e}function Eh(e,n){if(e==="change")return n}var Ch=!1;if(Un){var ts;if(Un){var ns="oninput"in document;if(!ns){var Th=document.createElement("div");Th.setAttribute("oninput","return;"),ns=typeof Th.oninput=="function"}ts=ns}else ts=!1;Ch=ts&&(!document.documentMode||9<document.documentMode)}function Ah(){Ai&&(Ai.detachEvent("onpropertychange",Nh),Ni=Ai=null)}function Nh(e){if(e.propertyName==="value"&&Za(Ni)){var n=[];wh(n,Ni,e,Xo(e)),fh(Jv,n)}}function Wv(e,n,r){e==="focusin"?(Ah(),Ai=n,Ni=r,Ai.attachEvent("onpropertychange",Nh)):e==="focusout"&&Ah()}function e1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Za(Ni)}function t1(e,n){if(e==="click")return Za(n)}function n1(e,n){if(e==="input"||e==="change")return Za(n)}function l1(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Xt=typeof Object.is=="function"?Object.is:l1;function ji(e,n){if(Xt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),u=Object.keys(n);if(r.length!==u.length)return!1;for(u=0;u<r.length;u++){var f=r[u];if(!dr.call(n,f)||!Xt(e[f],n[f]))return!1}return!0}function jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zh(e,n){var r=jh(e);e=0;for(var u;r;){if(r.nodeType===3){if(u=e+r.textContent.length,e<=n&&u>=n)return{node:r,offset:n-e};e=u}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jh(r)}}function Mh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Mh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function _h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ia(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=Ia(e.document)}return n}function ls(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var r1=Un&&"documentMode"in document&&11>=document.documentMode,Er=null,rs=null,zi=null,is=!1;function Dh(e,n,r){var u=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;is||Er==null||Er!==Ia(u)||(u=Er,"selectionStart"in u&&ls(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),zi&&ji(zi,u)||(zi=u,u=Lu(rs,"onSelect"),0<u.length&&(n=new Xa("onSelect","select",null,n,r),e.push({event:n,listeners:u}),n.target=Er)))}function Bl(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var Cr={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},as={},Oh={};Un&&(Oh=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);function Hl(e){if(as[e])return as[e];if(!Cr[e])return e;var n=Cr[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in Oh)return as[e]=n[r];return e}var Rh=Hl("animationend"),Lh=Hl("animationiteration"),Uh=Hl("animationstart"),i1=Hl("transitionrun"),a1=Hl("transitionstart"),u1=Hl("transitioncancel"),Bh=Hl("transitionend"),Hh=new Map,us="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(" ");us.push("scrollEnd");function yn(e,n){Hh.set(e,n),Ll(n,[e])}var Ka=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],Tr=0,os=0;function Pa(){for(var e=Tr,n=os=Tr=0;n<e;){var r=ln[n];ln[n++]=null;var u=ln[n];ln[n++]=null;var f=ln[n];ln[n++]=null;var h=ln[n];if(ln[n++]=null,u!==null&&f!==null){var b=u.pending;b===null?f.next=f:(f.next=b.next,b.next=f),u.pending=f}h!==0&&qh(r,f,h)}}function $a(e,n,r,u){ln[Tr++]=e,ln[Tr++]=n,ln[Tr++]=r,ln[Tr++]=u,os|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function ss(e,n,r,u){return $a(e,n,r,u),Ja(e)}function ql(e,n){return $a(e,null,null,n),Ja(e)}function qh(e,n,r){e.lanes|=r;var u=e.alternate;u!==null&&(u.lanes|=r);for(var f=!1,h=e.return;h!==null;)h.childLanes|=r,u=h.alternate,u!==null&&(u.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(f=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,f&&n!==null&&(f=31-Ze(r),e=h.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=r|536870912),h):null}function Ja(e){if(50<Ji)throw Ji=0,xc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ar={};function o1(e,n,r,u){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,n,r,u){return new o1(e,n,r,u)}function cs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bn(e,n){var r=e.alternate;return r===null?(r=Qt(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Ih(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Wa(e,n,r,u,f,h){var b=0;if(u=e,typeof e=="function")cs(e)&&(b=1);else if(typeof e=="string")b=hS(e,r,te.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Qt(31,r,n,f),e.elementType=ae,e.lanes=h,e;case A:return Il(r.children,f,h,n);case j:b=8,f|=24;break;case N:return e=Qt(12,r,n,f|2),e.elementType=N,e.lanes=h,e;case ee:return e=Qt(13,r,n,f),e.elementType=ee,e.lanes=h,e;case D:return e=Qt(19,r,n,f),e.elementType=D,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:b=10;break e;case L:b=9;break e;case K:b=11;break e;case X:b=14;break e;case V:b=16,u=null;break e}b=29,r=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Qt(b,r,n,f),n.elementType=e,n.type=u,n.lanes=h,n}function Il(e,n,r,u){return e=Qt(7,e,u,n),e.lanes=r,e}function fs(e,n,r){return e=Qt(6,e,null,n),e.lanes=r,e}function Vh(e){var n=Qt(18,null,null,0);return n.stateNode=e,n}function ds(e,n,r){return n=Qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Yh=new WeakMap;function rn(e,n){if(typeof e=="object"&&e!==null){var r=Yh.get(e);return r!==void 0?r:(n={value:e,source:n,stack:Oa(n)},Yh.set(e,n),n)}return{value:e,source:n,stack:Oa(n)}}var Nr=[],jr=0,eu=null,Mi=0,an=[],un=0,ol=null,En=1,Cn="";function Hn(e,n){Nr[jr++]=Mi,Nr[jr++]=eu,eu=e,Mi=n}function Gh(e,n,r){an[un++]=En,an[un++]=Cn,an[un++]=ol,ol=e;var u=En;e=Cn;var f=32-Ze(u)-1;u&=~(1<<f),r+=1;var h=32-Ze(n)+f;if(30<h){var b=f-f%5;h=(u&(1<<b)-1).toString(32),u>>=b,f-=b,En=1<<32-Ze(n)+f|r<<f|u,Cn=h+e}else En=1<<h|r<<f|u,Cn=e}function hs(e){e.return!==null&&(Hn(e,1),Gh(e,1,0))}function ms(e){for(;e===eu;)eu=Nr[--jr],Nr[jr]=null,Mi=Nr[--jr],Nr[jr]=null;for(;e===ol;)ol=an[--un],an[un]=null,Cn=an[--un],an[un]=null,En=an[--un],an[un]=null}function Fh(e,n){an[un++]=En,an[un++]=Cn,an[un++]=ol,En=n.id,Cn=n.overflow,ol=e}var bt=null,Je=null,Le=!1,sl=null,on=!1,ps=Error(a(519));function cl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _i(rn(n,e)),ps}function Xh(e){var n=e.stateNode,r=e.type,u=e.memoizedProps;switch(n[xt]=e,n[Rt]=u,r){case"dialog":_e("cancel",n),_e("close",n);break;case"iframe":case"object":case"embed":_e("load",n);break;case"video":case"audio":for(r=0;r<ea.length;r++)_e(ea[r],n);break;case"source":_e("error",n);break;case"img":case"image":case"link":_e("error",n),_e("load",n);break;case"details":_e("toggle",n);break;case"input":_e("invalid",n),ih(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":_e("invalid",n);break;case"textarea":_e("invalid",n),uh(n,u.value,u.defaultValue,u.children)}r=u.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||u.suppressHydrationWarning===!0||sg(n.textContent,r)?(u.popover!=null&&(_e("beforetoggle",n),_e("toggle",n)),u.onScroll!=null&&_e("scroll",n),u.onScrollEnd!=null&&_e("scrollend",n),u.onClick!=null&&(n.onclick=Ln),n=!0):n=!1,n||cl(e,!0)}function Qh(e){for(bt=e.return;bt;)switch(bt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:bt=bt.return}}function zr(e){if(e!==bt)return!1;if(!Le)return Qh(e),Le=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Dc(e.type,e.memoizedProps)),r=!r),r&&Je&&cl(e),Qh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=xg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=xg(e)}else n===27?(n=Je,El(e.type)?(e=Bc,Bc=null,Je=e):Je=n):Je=bt?cn(e.stateNode.nextSibling):null;return!0}function Vl(){Je=bt=null,Le=!1}function gs(){var e=sl;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),sl=null),e}function _i(e){sl===null?sl=[e]:sl.push(e)}var ys=_(null),Yl=null,qn=null;function fl(e,n,r){C(ys,n._currentValue),n._currentValue=r}function In(e){e._currentValue=ys.current,M(ys)}function xs(e,n,r){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===r)break;e=e.return}}function bs(e,n,r,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var w=h;h=f;for(var z=0;z<n.length;z++)if(w.context===n[z]){h.lanes|=r,w=h.alternate,w!==null&&(w.lanes|=r),xs(h.return,r,e),u||(b=null);break e}h=w.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error(a(341));b.lanes|=r,h=b.alternate,h!==null&&(h.lanes|=r),xs(b,r,e),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===e){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function Mr(e,n,r,u){e=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error(a(387));if(b=b.memoizedProps,b!==null){var w=f.type;Xt(f.pendingProps.value,b.value)||(e!==null?e.push(w):e=[w])}}else if(f===he.current){if(b=f.alternate,b===null)throw Error(a(387));b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(ia):e=[ia])}f=f.return}e!==null&&bs(n,e,r,u),n.flags|=262144}function tu(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){Yl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Zh(Yl,e)}function nu(e,n){return Yl===null&&Gl(e),Zh(e,n)}function Zh(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},qn===null){if(e===null)throw Error(a(308));qn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else qn=qn.next=n;return r}var s1=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},c1=t.unstable_scheduleCallback,f1=t.unstable_NormalPriority,ut={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vs(){return{controller:new s1,data:new Map,refCount:0}}function Di(e){e.refCount--,e.refCount===0&&c1(f1,function(){e.controller.abort()})}var Oi=null,Ss=0,_r=0,Dr=null;function d1(e,n){if(Oi===null){var r=Oi=[];Ss=0,_r=Ec(),Dr={status:"pending",value:void 0,then:function(u){r.push(u)}}}return Ss++,n.then(Kh,Kh),n}function Kh(){if(--Ss===0&&Oi!==null){Dr!==null&&(Dr.status="fulfilled");var e=Oi;Oi=null,_r=0,Dr=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function h1(e,n){var r=[],u={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<r.length;f++)(0,r[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),u}var Ph=B.S;B.S=function(e,n){Dp=At(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&d1(e,n),Ph!==null&&Ph(e,n)};var Fl=_(null);function ks(){var e=Fl.current;return e!==null?e:Ke.pooledCache}function lu(e,n){n===null?C(Fl,Fl.current):C(Fl,n.pool)}function $h(){var e=ks();return e===null?null:{parent:ut._currentValue,pool:e}}var Or=Error(a(460)),ws=Error(a(474)),ru=Error(a(542)),iu={then:function(){}};function Jh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wh(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(Ln,Ln),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,tm(e),e;default:if(typeof n.status=="string")n.then(Ln,Ln);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,tm(e),e}throw Ql=n,Or}}function Xl(e){try{var n=e._init;return n(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Ql=r,Or):r}}var Ql=null;function em(){if(Ql===null)throw Error(a(459));var e=Ql;return Ql=null,e}function tm(e){if(e===Or||e===ru)throw Error(a(483))}var Rr=null,Ri=0;function au(e){var n=Ri;return Ri+=1,Rr===null&&(Rr=[]),Wh(Rr,e,n)}function Li(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function uu(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function nm(e){function n(U,O){if(e){var q=U.deletions;q===null?(U.deletions=[O],U.flags|=16):q.push(O)}}function r(U,O){if(!e)return null;for(;O!==null;)n(U,O),O=O.sibling;return null}function u(U){for(var O=new Map;U!==null;)U.key!==null?O.set(U.key,U):O.set(U.index,U),U=U.sibling;return O}function f(U,O){return U=Bn(U,O),U.index=0,U.sibling=null,U}function h(U,O,q){return U.index=q,e?(q=U.alternate,q!==null?(q=q.index,q<O?(U.flags|=67108866,O):q):(U.flags|=67108866,O)):(U.flags|=1048576,O)}function b(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function w(U,O,q,P){return O===null||O.tag!==6?(O=fs(q,U.mode,P),O.return=U,O):(O=f(O,q),O.return=U,O)}function z(U,O,q,P){var ye=q.type;return ye===A?F(U,O,q.props.children,P,q.key):O!==null&&(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&Xl(ye)===O.type)?(O=f(O,q.props),Li(O,q),O.return=U,O):(O=Wa(q.type,q.key,q.props,null,U.mode,P),Li(O,q),O.return=U,O)}function I(U,O,q,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==q.containerInfo||O.stateNode.implementation!==q.implementation?(O=ds(q,U.mode,P),O.return=U,O):(O=f(O,q.children||[]),O.return=U,O)}function F(U,O,q,P,ye){return O===null||O.tag!==7?(O=Il(q,U.mode,P,ye),O.return=U,O):(O=f(O,q),O.return=U,O)}function W(U,O,q){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=fs(""+O,U.mode,q),O.return=U,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return q=Wa(O.type,O.key,O.props,null,U.mode,q),Li(q,O),q.return=U,q;case E:return O=ds(O,U.mode,q),O.return=U,O;case V:return O=Xl(O),W(U,O,q)}if(ne(O)||$(O))return O=Il(O,U.mode,q,null),O.return=U,O;if(typeof O.then=="function")return W(U,au(O),q);if(O.$$typeof===R)return W(U,nu(U,O),q);uu(U,O)}return null}function Y(U,O,q,P){var ye=O!==null?O.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ye!==null?null:w(U,O,""+q,P);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===ye?z(U,O,q,P):null;case E:return q.key===ye?I(U,O,q,P):null;case V:return q=Xl(q),Y(U,O,q,P)}if(ne(q)||$(q))return ye!==null?null:F(U,O,q,P,null);if(typeof q.then=="function")return Y(U,O,au(q),P);if(q.$$typeof===R)return Y(U,O,nu(U,q),P);uu(U,q)}return null}function G(U,O,q,P,ye){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return U=U.get(q)||null,w(O,U,""+P,ye);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return U=U.get(P.key===null?q:P.key)||null,z(O,U,P,ye);case E:return U=U.get(P.key===null?q:P.key)||null,I(O,U,P,ye);case V:return P=Xl(P),G(U,O,q,P,ye)}if(ne(P)||$(P))return U=U.get(q)||null,F(O,U,P,ye,null);if(typeof P.then=="function")return G(U,O,q,au(P),ye);if(P.$$typeof===R)return G(U,O,q,nu(O,P),ye);uu(O,P)}return null}function me(U,O,q,P){for(var ye=null,Be=null,ge=O,Ne=O=0,Re=null;ge!==null&&Ne<q.length;Ne++){ge.index>Ne?(Re=ge,ge=null):Re=ge.sibling;var He=Y(U,ge,q[Ne],P);if(He===null){ge===null&&(ge=Re);break}e&&ge&&He.alternate===null&&n(U,ge),O=h(He,O,Ne),Be===null?ye=He:Be.sibling=He,Be=He,ge=Re}if(Ne===q.length)return r(U,ge),Le&&Hn(U,Ne),ye;if(ge===null){for(;Ne<q.length;Ne++)ge=W(U,q[Ne],P),ge!==null&&(O=h(ge,O,Ne),Be===null?ye=ge:Be.sibling=ge,Be=ge);return Le&&Hn(U,Ne),ye}for(ge=u(ge);Ne<q.length;Ne++)Re=G(ge,U,Ne,q[Ne],P),Re!==null&&(e&&Re.alternate!==null&&ge.delete(Re.key===null?Ne:Re.key),O=h(Re,O,Ne),Be===null?ye=Re:Be.sibling=Re,Be=Re);return e&&ge.forEach(function(jl){return n(U,jl)}),Le&&Hn(U,Ne),ye}function ve(U,O,q,P){if(q==null)throw Error(a(151));for(var ye=null,Be=null,ge=O,Ne=O=0,Re=null,He=q.next();ge!==null&&!He.done;Ne++,He=q.next()){ge.index>Ne?(Re=ge,ge=null):Re=ge.sibling;var jl=Y(U,ge,He.value,P);if(jl===null){ge===null&&(ge=Re);break}e&&ge&&jl.alternate===null&&n(U,ge),O=h(jl,O,Ne),Be===null?ye=jl:Be.sibling=jl,Be=jl,ge=Re}if(He.done)return r(U,ge),Le&&Hn(U,Ne),ye;if(ge===null){for(;!He.done;Ne++,He=q.next())He=W(U,He.value,P),He!==null&&(O=h(He,O,Ne),Be===null?ye=He:Be.sibling=He,Be=He);return Le&&Hn(U,Ne),ye}for(ge=u(ge);!He.done;Ne++,He=q.next())He=G(ge,U,Ne,He.value,P),He!==null&&(e&&He.alternate!==null&&ge.delete(He.key===null?Ne:He.key),O=h(He,O,Ne),Be===null?ye=He:Be.sibling=He,Be=He);return e&&ge.forEach(function(ES){return n(U,ES)}),Le&&Hn(U,Ne),ye}function Xe(U,O,q,P){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var ye=q.key;O!==null;){if(O.key===ye){if(ye=q.type,ye===A){if(O.tag===7){r(U,O.sibling),P=f(O,q.props.children),P.return=U,U=P;break e}}else if(O.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&Xl(ye)===O.type){r(U,O.sibling),P=f(O,q.props),Li(P,q),P.return=U,U=P;break e}r(U,O);break}else n(U,O);O=O.sibling}q.type===A?(P=Il(q.props.children,U.mode,P,q.key),P.return=U,U=P):(P=Wa(q.type,q.key,q.props,null,U.mode,P),Li(P,q),P.return=U,U=P)}return b(U);case E:e:{for(ye=q.key;O!==null;){if(O.key===ye)if(O.tag===4&&O.stateNode.containerInfo===q.containerInfo&&O.stateNode.implementation===q.implementation){r(U,O.sibling),P=f(O,q.children||[]),P.return=U,U=P;break e}else{r(U,O);break}else n(U,O);O=O.sibling}P=ds(q,U.mode,P),P.return=U,U=P}return b(U);case V:return q=Xl(q),Xe(U,O,q,P)}if(ne(q))return me(U,O,q,P);if($(q)){if(ye=$(q),typeof ye!="function")throw Error(a(150));return q=ye.call(q),ve(U,O,q,P)}if(typeof q.then=="function")return Xe(U,O,au(q),P);if(q.$$typeof===R)return Xe(U,O,nu(U,q),P);uu(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,O!==null&&O.tag===6?(r(U,O.sibling),P=f(O,q),P.return=U,U=P):(r(U,O),P=fs(q,U.mode,P),P.return=U,U=P),b(U)):r(U,O)}return function(U,O,q,P){try{Ri=0;var ye=Xe(U,O,q,P);return Rr=null,ye}catch(ge){if(ge===Or||ge===ru)throw ge;var Be=Qt(29,ge,null,U.mode);return Be.lanes=P,Be.return=U,Be}finally{}}}var Zl=nm(!0),lm=nm(!1),dl=!1;function Es(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cs(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function hl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ml(e,n,r){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(qe&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Ja(e),qh(e,null,r),n}return $a(e,u,n,r),Ja(e)}function Ui(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,r|=u,n.lanes=r,Zd(e,r)}}function Ts(e,n){var r=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,r===u)){var f=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var b={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,r=r.next}while(r!==null);h===null?f=h=n:h=h.next=n}else f=h=n;r={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:u.shared,callbacks:u.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var As=!1;function Bi(){if(As){var e=Dr;if(e!==null)throw e}}function Hi(e,n,r,u){As=!1;var f=e.updateQueue;dl=!1;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var z=w,I=z.next;z.next=null,b===null?h=I:b.next=I,b=z;var F=e.alternate;F!==null&&(F=F.updateQueue,w=F.lastBaseUpdate,w!==b&&(w===null?F.firstBaseUpdate=I:w.next=I,F.lastBaseUpdate=z))}if(h!==null){var W=f.baseState;b=0,F=I=z=null,w=h;do{var Y=w.lane&-536870913,G=Y!==w.lane;if(G?(Oe&Y)===Y:(u&Y)===Y){Y!==0&&Y===_r&&(As=!0),F!==null&&(F=F.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var me=e,ve=w;Y=n;var Xe=r;switch(ve.tag){case 1:if(me=ve.payload,typeof me=="function"){W=me.call(Xe,W,Y);break e}W=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,Y=typeof me=="function"?me.call(Xe,W,Y):me,Y==null)break e;W=g({},W,Y);break e;case 2:dl=!0}}Y=w.callback,Y!==null&&(e.flags|=64,G&&(e.flags|=8192),G=f.callbacks,G===null?f.callbacks=[Y]:G.push(Y))}else G={lane:Y,tag:w.tag,payload:w.payload,callback:w.callback,next:null},F===null?(I=F=G,z=W):F=F.next=G,b|=Y;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;G=w,w=G.next,G.next=null,f.lastBaseUpdate=G,f.shared.pending=null}}while(!0);F===null&&(z=W),f.baseState=z,f.firstBaseUpdate=I,f.lastBaseUpdate=F,h===null&&(f.shared.lanes=0),bl|=b,e.lanes=b,e.memoizedState=W}}function rm(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function im(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)rm(r[e],n)}var Lr=_(null),ou=_(0);function am(e,n){e=Pn,C(ou,e),C(Lr,n),Pn=e|n.baseLanes}function Ns(){C(ou,Pn),C(Lr,Lr.current)}function js(){Pn=ou.current,M(Lr),M(ou)}var Zt=_(null),sn=null;function pl(e){var n=e.alternate;C(rt,rt.current&1),C(Zt,e),sn===null&&(n===null||Lr.current!==null||n.memoizedState!==null)&&(sn=e)}function zs(e){C(rt,rt.current),C(Zt,e),sn===null&&(sn=e)}function um(e){e.tag===22?(C(rt,rt.current),C(Zt,e),sn===null&&(sn=e)):gl()}function gl(){C(rt,rt.current),C(Zt,Zt.current)}function Kt(e){M(Zt),sn===e&&(sn=null),M(rt)}var rt=_(0);function su(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Lc(r)||Uc(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Vn=0,Te=null,Ge=null,ot=null,cu=!1,Ur=!1,Kl=!1,fu=0,qi=0,Br=null,m1=0;function nt(){throw Error(a(321))}function Ms(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!Xt(e[r],n[r]))return!1;return!0}function _s(e,n,r,u,f,h){return Vn=h,Te=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,B.H=e===null||e.memoizedState===null?Gm:Qs,Kl=!1,h=r(u,f),Kl=!1,Ur&&(h=sm(n,r,u,f)),om(e),h}function om(e){B.H=Yi;var n=Ge!==null&&Ge.next!==null;if(Vn=0,ot=Ge=Te=null,cu=!1,qi=0,Br=null,n)throw Error(a(300));e===null||st||(e=e.dependencies,e!==null&&tu(e)&&(st=!0))}function sm(e,n,r,u){Te=e;var f=0;do{if(Ur&&(Br=null),qi=0,Ur=!1,25<=f)throw Error(a(301));if(f+=1,ot=Ge=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}B.H=Fm,h=n(r,u)}while(Ur);return h}function p1(){var e=B.H,n=e.useState()[0];return n=typeof n.then=="function"?Ii(n):n,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Te.flags|=1024),n}function Ds(){var e=fu!==0;return fu=0,e}function Os(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function Rs(e){if(cu){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}cu=!1}Vn=0,ot=Ge=Te=null,Ur=!1,qi=fu=0,Br=null}function jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Te.memoizedState=ot=e:ot=ot.next=e,ot}function it(){if(Ge===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var n=ot===null?Te.memoizedState:ot.next;if(n!==null)ot=n,Ge=e;else{if(e===null)throw Te.alternate===null?Error(a(467)):Error(a(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},ot===null?Te.memoizedState=ot=e:ot=ot.next=e}return ot}function du(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ii(e){var n=qi;return qi+=1,Br===null&&(Br=[]),e=Wh(Br,e,n),n=Te,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,B.H=n===null||n.memoizedState===null?Gm:Qs),e}function hu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ii(e);if(e.$$typeof===R)return vt(e)}throw Error(a(438,String(e)))}function Ls(e){var n=null,r=Te.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var u=Te.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=du(),Te.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),u=0;u<e;u++)r[u]=H;return n.index++,r}function Yn(e,n){return typeof n=="function"?n(e):n}function mu(e){var n=it();return Us(n,Ge,e)}function Us(e,n,r){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=r;var f=e.baseQueue,h=u.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue=f=h,u.pending=null}if(h=e.baseState,f===null)e.memoizedState=h;else{n=f.next;var w=b=null,z=null,I=n,F=!1;do{var W=I.lane&-536870913;if(W!==I.lane?(Oe&W)===W:(Vn&W)===W){var Y=I.revertLane;if(Y===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),W===_r&&(F=!0);else if((Vn&Y)===Y){I=I.next,Y===_r&&(F=!0);continue}else W={lane:0,revertLane:I.revertLane,gesture:null,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(w=z=W,b=h):z=z.next=W,Te.lanes|=Y,bl|=Y;W=I.action,Kl&&r(h,W),h=I.hasEagerState?I.eagerState:r(h,W)}else Y={lane:W,revertLane:I.revertLane,gesture:I.gesture,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},z===null?(w=z=Y,b=h):z=z.next=Y,Te.lanes|=W,bl|=W;I=I.next}while(I!==null&&I!==n);if(z===null?b=h:z.next=w,!Xt(h,e.memoizedState)&&(st=!0,F&&(r=Dr,r!==null)))throw r;e.memoizedState=h,e.baseState=b,e.baseQueue=z,u.lastRenderedState=h}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Bs(e){var n=it(),r=n.queue;if(r===null)throw Error(a(311));r.lastRenderedReducer=e;var u=r.dispatch,f=r.pending,h=n.memoizedState;if(f!==null){r.pending=null;var b=f=f.next;do h=e(h,b.action),b=b.next;while(b!==f);Xt(h,n.memoizedState)||(st=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),r.lastRenderedState=h}return[h,u]}function cm(e,n,r){var u=Te,f=it(),h=Le;if(h){if(r===void 0)throw Error(a(407));r=r()}else r=n();var b=!Xt((Ge||f).memoizedState,r);if(b&&(f.memoizedState=r,st=!0),f=f.queue,Is(hm.bind(null,u,f,e),[e]),f.getSnapshot!==n||b||ot!==null&&ot.memoizedState.tag&1){if(u.flags|=2048,Hr(9,{destroy:void 0},dm.bind(null,u,f,r,n),null),Ke===null)throw Error(a(349));h||(Vn&127)!==0||fm(u,n,r)}return r}function fm(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=Te.updateQueue,n===null?(n=du(),Te.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function dm(e,n,r,u){n.value=r,n.getSnapshot=u,mm(n)&&pm(e)}function hm(e,n,r){return r(function(){mm(n)&&pm(e)})}function mm(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Xt(e,r)}catch{return!0}}function pm(e){var n=ql(e,2);n!==null&&It(n,e,2)}function Hs(e){var n=jt();if(typeof e=="function"){var r=e;if(e=r(),Kl){Ot(!0);try{r()}finally{Ot(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},n}function gm(e,n,r,u){return e.baseState=r,Us(e,Ge,typeof u=="function"?u:Yn)}function g1(e,n,r,u,f){if(yu(e))throw Error(a(485));if(e=n.action,e!==null){var h={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};B.T!==null?r(!0):h.isTransition=!1,u(h),r=n.pending,r===null?(h.next=n.pending=h,ym(n,h)):(h.next=r.next,n.pending=r.next=h)}}function ym(e,n){var r=n.action,u=n.payload,f=e.state;if(n.isTransition){var h=B.T,b={};B.T=b;try{var w=r(f,u),z=B.S;z!==null&&z(b,w),xm(e,n,w)}catch(I){qs(e,n,I)}finally{h!==null&&b.types!==null&&(h.types=b.types),B.T=h}}else try{h=r(f,u),xm(e,n,h)}catch(I){qs(e,n,I)}}function xm(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(u){bm(e,n,u)},function(u){return qs(e,n,u)}):bm(e,n,r)}function bm(e,n,r){n.status="fulfilled",n.value=r,vm(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,ym(e,r)))}function qs(e,n,r){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=r,vm(n),n=n.next;while(n!==u)}e.action=null}function vm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Sm(e,n){return n}function km(e,n){if(Le){var r=Ke.formState;if(r!==null){e:{var u=Te;if(Le){if(Je){t:{for(var f=Je,h=on;f.nodeType!==8;){if(!h){f=null;break t}if(f=cn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h==="F!"||h==="F"?f:null}if(f){Je=cn(f.nextSibling),u=f.data==="F!";break e}}cl(u)}u=!1}u&&(n=r[0])}}return r=jt(),r.memoizedState=r.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sm,lastRenderedState:n},r.queue=u,r=Im.bind(null,Te,u),u.dispatch=r,u=Hs(!1),h=Xs.bind(null,Te,!1,u.queue),u=jt(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,r=g1.bind(null,Te,f,h,r),f.dispatch=r,u.memoizedState=e,[n,r,!1]}function wm(e){var n=it();return Em(n,Ge,e)}function Em(e,n,r){if(n=Us(e,n,Sm)[0],e=mu(Yn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Ii(n)}catch(b){throw b===Or?ru:b}else u=n;n=it();var f=n.queue,h=f.dispatch;return r!==n.memoizedState&&(Te.flags|=2048,Hr(9,{destroy:void 0},y1.bind(null,f,r),null)),[u,h,e]}function y1(e,n){e.action=n}function Cm(e){var n=it(),r=Ge;if(r!==null)return Em(n,r,e);it(),n=n.memoizedState,r=it();var u=r.queue.dispatch;return r.memoizedState=e,[n,u,!1]}function Hr(e,n,r,u){return e={tag:e,create:r,deps:u,inst:n,next:null},n=Te.updateQueue,n===null&&(n=du(),Te.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(u=r.next,r.next=e,e.next=u,n.lastEffect=e),e}function Tm(){return it().memoizedState}function pu(e,n,r,u){var f=jt();Te.flags|=e,f.memoizedState=Hr(1|n,{destroy:void 0},r,u===void 0?null:u)}function gu(e,n,r,u){var f=it();u=u===void 0?null:u;var h=f.memoizedState.inst;Ge!==null&&u!==null&&Ms(u,Ge.memoizedState.deps)?f.memoizedState=Hr(n,h,r,u):(Te.flags|=e,f.memoizedState=Hr(1|n,h,r,u))}function Am(e,n){pu(8390656,8,e,n)}function Is(e,n){gu(2048,8,e,n)}function x1(e){Te.flags|=4;var n=Te.updateQueue;if(n===null)n=du(),Te.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function Nm(e){var n=it().memoizedState;return x1({ref:n,nextImpl:e}),function(){if((qe&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function jm(e,n){return gu(4,2,e,n)}function zm(e,n){return gu(4,4,e,n)}function Mm(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function _m(e,n,r){r=r!=null?r.concat([e]):null,gu(4,4,Mm.bind(null,n,e),r)}function Vs(){}function Dm(e,n){var r=it();n=n===void 0?null:n;var u=r.memoizedState;return n!==null&&Ms(n,u[1])?u[0]:(r.memoizedState=[e,n],e)}function Om(e,n){var r=it();n=n===void 0?null:n;var u=r.memoizedState;if(n!==null&&Ms(n,u[1]))return u[0];if(u=e(),Kl){Ot(!0);try{e()}finally{Ot(!1)}}return r.memoizedState=[u,n],u}function Ys(e,n,r){return r===void 0||(Vn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=Rp(),Te.lanes|=e,bl|=e,r)}function Rm(e,n,r,u){return Xt(r,n)?r:Lr.current!==null?(e=Ys(e,r,u),Xt(e,n)||(st=!0),e):(Vn&42)===0||(Vn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=r):(e=Rp(),Te.lanes|=e,bl|=e,n)}function Lm(e,n,r,u,f){var h=Q.p;Q.p=h!==0&&8>h?h:8;var b=B.T,w={};B.T=w,Xs(e,!1,n,r);try{var z=f(),I=B.S;if(I!==null&&I(w,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var F=h1(z,u);Vi(e,n,F,Jt(e))}else Vi(e,n,u,Jt(e))}catch(W){Vi(e,n,{then:function(){},status:"rejected",reason:W},Jt())}finally{Q.p=h,b!==null&&w.types!==null&&(b.types=w.types),B.T=b}}function b1(){}function Gs(e,n,r,u){if(e.tag!==5)throw Error(a(476));var f=Um(e).queue;Lm(e,f,n,ce,r===null?b1:function(){return Bm(e),r(u)})}function Um(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:ce},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Bm(e){var n=Um(e);n.next===null&&(n=e.alternate.memoizedState),Vi(e,n.next.queue,{},Jt())}function Fs(){return vt(ia)}function Hm(){return it().memoizedState}function qm(){return it().memoizedState}function v1(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Jt();e=hl(r);var u=ml(n,e,r);u!==null&&(It(u,n,r),Ui(u,n,r)),n={cache:vs()},e.payload=n;return}n=n.return}}function S1(e,n,r){var u=Jt();r={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},yu(e)?Vm(n,r):(r=ss(e,n,r,u),r!==null&&(It(r,e,u),Ym(r,n,u)))}function Im(e,n,r){var u=Jt();Vi(e,n,r,u)}function Vi(e,n,r,u){var f={lane:u,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(yu(e))Vm(n,f);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,w=h(b,r);if(f.hasEagerState=!0,f.eagerState=w,Xt(w,b))return $a(e,n,f,0),Ke===null&&Pa(),!1}catch{}finally{}if(r=ss(e,n,f,u),r!==null)return It(r,e,u),Ym(r,n,u),!0}return!1}function Xs(e,n,r,u){if(u={lane:2,revertLane:Ec(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},yu(e)){if(n)throw Error(a(479))}else n=ss(e,r,u,2),n!==null&&It(n,e,2)}function yu(e){var n=e.alternate;return e===Te||n!==null&&n===Te}function Vm(e,n){Ur=cu=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function Ym(e,n,r){if((r&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,r|=u,n.lanes=r,Zd(e,r)}}var Yi={readContext:vt,use:hu,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Yi.useEffectEvent=nt;var Gm={readContext:vt,use:hu,useCallback:function(e,n){return jt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:Am,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,pu(4194308,4,Mm.bind(null,n,e),r)},useLayoutEffect:function(e,n){return pu(4194308,4,e,n)},useInsertionEffect:function(e,n){pu(4,2,e,n)},useMemo:function(e,n){var r=jt();n=n===void 0?null:n;var u=e();if(Kl){Ot(!0);try{e()}finally{Ot(!1)}}return r.memoizedState=[u,n],u},useReducer:function(e,n,r){var u=jt();if(r!==void 0){var f=r(n);if(Kl){Ot(!0);try{r(n)}finally{Ot(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=S1.bind(null,Te,e),[u.memoizedState,e]},useRef:function(e){var n=jt();return e={current:e},n.memoizedState=e},useState:function(e){e=Hs(e);var n=e.queue,r=Im.bind(null,Te,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:Vs,useDeferredValue:function(e,n){var r=jt();return Ys(r,e,n)},useTransition:function(){var e=Hs(!1);return e=Lm.bind(null,Te,e.queue,!0,!1),jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var u=Te,f=jt();if(Le){if(r===void 0)throw Error(a(407));r=r()}else{if(r=n(),Ke===null)throw Error(a(349));(Oe&127)!==0||fm(u,n,r)}f.memoizedState=r;var h={value:r,getSnapshot:n};return f.queue=h,Am(hm.bind(null,u,h,e),[e]),u.flags|=2048,Hr(9,{destroy:void 0},dm.bind(null,u,h,r,n),null),r},useId:function(){var e=jt(),n=Ke.identifierPrefix;if(Le){var r=Cn,u=En;r=(u&~(1<<32-Ze(u)-1)).toString(32)+r,n="_"+n+"R_"+r,r=fu++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=m1++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Fs,useFormState:km,useActionState:km,useOptimistic:function(e){var n=jt();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Xs.bind(null,Te,!0,r),r.dispatch=n,[e,n]},useMemoCache:Ls,useCacheRefresh:function(){return jt().memoizedState=v1.bind(null,Te)},useEffectEvent:function(e){var n=jt(),r={impl:e};return n.memoizedState=r,function(){if((qe&2)!==0)throw Error(a(440));return r.impl.apply(void 0,arguments)}}},Qs={readContext:vt,use:hu,useCallback:Dm,useContext:vt,useEffect:Is,useImperativeHandle:_m,useInsertionEffect:jm,useLayoutEffect:zm,useMemo:Om,useReducer:mu,useRef:Tm,useState:function(){return mu(Yn)},useDebugValue:Vs,useDeferredValue:function(e,n){var r=it();return Rm(r,Ge.memoizedState,e,n)},useTransition:function(){var e=mu(Yn)[0],n=it().memoizedState;return[typeof e=="boolean"?e:Ii(e),n]},useSyncExternalStore:cm,useId:Hm,useHostTransitionStatus:Fs,useFormState:wm,useActionState:wm,useOptimistic:function(e,n){var r=it();return gm(r,Ge,e,n)},useMemoCache:Ls,useCacheRefresh:qm};Qs.useEffectEvent=Nm;var Fm={readContext:vt,use:hu,useCallback:Dm,useContext:vt,useEffect:Is,useImperativeHandle:_m,useInsertionEffect:jm,useLayoutEffect:zm,useMemo:Om,useReducer:Bs,useRef:Tm,useState:function(){return Bs(Yn)},useDebugValue:Vs,useDeferredValue:function(e,n){var r=it();return Ge===null?Ys(r,e,n):Rm(r,Ge.memoizedState,e,n)},useTransition:function(){var e=Bs(Yn)[0],n=it().memoizedState;return[typeof e=="boolean"?e:Ii(e),n]},useSyncExternalStore:cm,useId:Hm,useHostTransitionStatus:Fs,useFormState:Cm,useActionState:Cm,useOptimistic:function(e,n){var r=it();return Ge!==null?gm(r,Ge,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Ls,useCacheRefresh:qm};Fm.useEffectEvent=Nm;function Zs(e,n,r,u){n=e.memoizedState,r=r(u,n),r=r==null?n:g({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ks={enqueueSetState:function(e,n,r){e=e._reactInternals;var u=Jt(),f=hl(u);f.payload=n,r!=null&&(f.callback=r),n=ml(e,f,u),n!==null&&(It(n,e,u),Ui(n,e,u))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var u=Jt(),f=hl(u);f.tag=1,f.payload=n,r!=null&&(f.callback=r),n=ml(e,f,u),n!==null&&(It(n,e,u),Ui(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=Jt(),u=hl(r);u.tag=2,n!=null&&(u.callback=n),n=ml(e,u,r),n!==null&&(It(n,e,r),Ui(n,e,r))}};function Xm(e,n,r,u,f,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,h,b):n.prototype&&n.prototype.isPureReactComponent?!ji(r,u)||!ji(f,h):!0}function Qm(e,n,r,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,u),n.state!==e&&Ks.enqueueReplaceState(n,n.state,null)}function Pl(e,n){var r=n;if("ref"in n){r={};for(var u in n)u!=="ref"&&(r[u]=n[u])}if(e=e.defaultProps){r===n&&(r=g({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function Zm(e){Ka(e)}function Km(e){console.error(e)}function Pm(e){Ka(e)}function xu(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function $m(e,n,r){try{var u=e.onCaughtError;u(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Ps(e,n,r){return r=hl(r),r.tag=3,r.payload={element:null},r.callback=function(){xu(e,n)},r}function Jm(e){return e=hl(e),e.tag=3,e}function Wm(e,n,r,u){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var h=u.value;e.payload=function(){return f(h)},e.callback=function(){$m(n,r,u)}}var b=r.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){$m(n,r,u),typeof f!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var w=u.stack;this.componentDidCatch(u.value,{componentStack:w!==null?w:""})})}function k1(e,n,r,u,f){if(r.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=r.alternate,n!==null&&Mr(n,r,f,!0),r=Zt.current,r!==null){switch(r.tag){case 31:case 13:return sn===null?zu():r.alternate===null&&lt===0&&(lt=3),r.flags&=-257,r.flags|=65536,r.lanes=f,u===iu?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([u]):n.add(u),Sc(e,u,f)),!1;case 22:return r.flags|=65536,u===iu?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([u]):r.add(u)),Sc(e,u,f)),!1}throw Error(a(435,r.tag))}return Sc(e,u,f),zu(),!1}if(Le)return n=Zt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==ps&&(e=Error(a(422),{cause:u}),_i(rn(e,r)))):(u!==ps&&(n=Error(a(423),{cause:u}),_i(rn(n,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=rn(u,r),f=Ps(e.stateNode,u,f),Ts(e,f),lt!==4&&(lt=2)),!1;var h=Error(a(520),{cause:u});if(h=rn(h,r),$i===null?$i=[h]:$i.push(h),lt!==4&&(lt=2),n===null)return!0;u=rn(u,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=Ps(r.stateNode,u,e),Ts(r,e),!1;case 1:if(n=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(vl===null||!vl.has(h))))return r.flags|=65536,f&=-f,r.lanes|=f,f=Jm(f),Wm(f,e,r,u),Ts(r,f),!1}r=r.return}while(r!==null);return!1}var $s=Error(a(461)),st=!1;function St(e,n,r,u){n.child=e===null?lm(n,null,r,u):Zl(n,e.child,r,u)}function ep(e,n,r,u,f){r=r.render;var h=n.ref;if("ref"in u){var b={};for(var w in u)w!=="ref"&&(b[w]=u[w])}else b=u;return Gl(n),u=_s(e,n,r,b,h,f),w=Ds(),e!==null&&!st?(Os(e,n,f),Gn(e,n,f)):(Le&&w&&hs(n),n.flags|=1,St(e,n,u,f),n.child)}function tp(e,n,r,u,f){if(e===null){var h=r.type;return typeof h=="function"&&!cs(h)&&h.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=h,np(e,n,h,u,f)):(e=Wa(r.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!ic(e,f)){var b=h.memoizedProps;if(r=r.compare,r=r!==null?r:ji,r(b,u)&&e.ref===n.ref)return Gn(e,n,f)}return n.flags|=1,e=Bn(h,u),e.ref=n.ref,e.return=n,n.child=e}function np(e,n,r,u,f){if(e!==null){var h=e.memoizedProps;if(ji(h,u)&&e.ref===n.ref)if(st=!1,n.pendingProps=u=h,ic(e,f))(e.flags&131072)!==0&&(st=!0);else return n.lanes=e.lanes,Gn(e,n,f)}return Js(e,n,r,u,f)}function lp(e,n,r,u){var f=u.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~h}else u=0,n.child=null;return rp(e,n,h,r,u)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&lu(n,h!==null?h.cachePool:null),h!==null?am(n,h):Ns(),um(n);else return u=n.lanes=536870912,rp(e,n,h!==null?h.baseLanes|r:r,r,u)}else h!==null?(lu(n,h.cachePool),am(n,h),gl(),n.memoizedState=null):(e!==null&&lu(n,null),Ns(),gl());return St(e,n,f,r),n.child}function Gi(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function rp(e,n,r,u,f){var h=ks();return h=h===null?null:{parent:ut._currentValue,pool:h},n.memoizedState={baseLanes:r,cachePool:h},e!==null&&lu(n,null),Ns(),um(n),e!==null&&Mr(e,n,u,!0),n.childLanes=f,null}function bu(e,n){return n=Su({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function ip(e,n,r){return Zl(n,e.child,null,r),e=bu(n,n.pendingProps),e.flags|=2,Kt(n),n.memoizedState=null,e}function w1(e,n,r){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Le){if(u.mode==="hidden")return e=bu(n,u),n.lanes=536870912,Gi(null,e);if(zs(n),(e=Je)?(e=yg(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ol!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},r=Vh(e),r.return=n,n.child=r,bt=n,Je=null)):e=null,e===null)throw cl(n);return n.lanes=536870912,null}return bu(n,u)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(zs(n),f)if(n.flags&256)n.flags&=-257,n=ip(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(st||Mr(e,n,r,!1),f=(r&e.childLanes)!==0,st||f){if(u=Ke,u!==null&&(b=Kd(u,r),b!==0&&b!==h.retryLane))throw h.retryLane=b,ql(e,b),It(u,e,b),$s;zu(),n=ip(e,n,r)}else e=h.treeContext,Je=cn(b.nextSibling),bt=n,Le=!0,sl=null,on=!1,e!==null&&Fh(n,e),n=bu(n,u),n.flags|=4096;return n}return e=Bn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function vu(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(a(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Js(e,n,r,u,f){return Gl(n),r=_s(e,n,r,u,void 0,f),u=Ds(),e!==null&&!st?(Os(e,n,f),Gn(e,n,f)):(Le&&u&&hs(n),n.flags|=1,St(e,n,r,f),n.child)}function ap(e,n,r,u,f,h){return Gl(n),n.updateQueue=null,r=sm(n,u,r,f),om(e),u=Ds(),e!==null&&!st?(Os(e,n,h),Gn(e,n,h)):(Le&&u&&hs(n),n.flags|=1,St(e,n,r,h),n.child)}function up(e,n,r,u,f){if(Gl(n),n.stateNode===null){var h=Ar,b=r.contextType;typeof b=="object"&&b!==null&&(h=vt(b)),h=new r(u,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ks,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=u,h.state=n.memoizedState,h.refs={},Es(n),b=r.contextType,h.context=typeof b=="object"&&b!==null?vt(b):Ar,h.state=n.memoizedState,b=r.getDerivedStateFromProps,typeof b=="function"&&(Zs(n,r,b,u),h.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Ks.enqueueReplaceState(h,h.state,null),Hi(n,u,h,f),Bi(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){h=n.stateNode;var w=n.memoizedProps,z=Pl(r,w);h.props=z;var I=h.context,F=r.contextType;b=Ar,typeof F=="object"&&F!==null&&(b=vt(F));var W=r.getDerivedStateFromProps;F=typeof W=="function"||typeof h.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,F||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w||I!==b)&&Qm(n,h,u,b),dl=!1;var Y=n.memoizedState;h.state=Y,Hi(n,u,h,f),Bi(),I=n.memoizedState,w||Y!==I||dl?(typeof W=="function"&&(Zs(n,r,W,u),I=n.memoizedState),(z=dl||Xm(n,r,z,u,Y,I,b))?(F||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=I),h.props=u,h.state=I,h.context=b,u=z):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{h=n.stateNode,Cs(e,n),b=n.memoizedProps,F=Pl(r,b),h.props=F,W=n.pendingProps,Y=h.context,I=r.contextType,z=Ar,typeof I=="object"&&I!==null&&(z=vt(I)),w=r.getDerivedStateFromProps,(I=typeof w=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==W||Y!==z)&&Qm(n,h,u,z),dl=!1,Y=n.memoizedState,h.state=Y,Hi(n,u,h,f),Bi();var G=n.memoizedState;b!==W||Y!==G||dl||e!==null&&e.dependencies!==null&&tu(e.dependencies)?(typeof w=="function"&&(Zs(n,r,w,u),G=n.memoizedState),(F=dl||Xm(n,r,F,u,Y,G,z)||e!==null&&e.dependencies!==null&&tu(e.dependencies))?(I||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(u,G,z),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(u,G,z)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=G),h.props=u,h.state=G,h.context=z,u=F):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(n.flags|=1024),u=!1)}return h=u,vu(e,n),u=(n.flags&128)!==0,h||u?(h=n.stateNode,r=u&&typeof r.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&u?(n.child=Zl(n,e.child,null,f),n.child=Zl(n,null,r,f)):St(e,n,r,f),n.memoizedState=h.state,e=n.child):e=Gn(e,n,f),e}function op(e,n,r,u){return Vl(),n.flags|=256,St(e,n,r,u),n.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ec(e){return{baseLanes:e,cachePool:$h()}}function tc(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=$t),e}function sp(e,n,r){var u=n.pendingProps,f=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(rt.current&2)!==0),b&&(f=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(f?pl(n):gl(),(e=Je)?(e=yg(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ol!==null?{id:En,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},r=Vh(e),r.return=n,n.child=r,bt=n,Je=null)):e=null,e===null)throw cl(n);return Uc(e)?n.lanes=32:n.lanes=536870912,null}var w=u.children;return u=u.fallback,f?(gl(),f=n.mode,w=Su({mode:"hidden",children:w},f),u=Il(u,f,r,null),w.return=n,u.return=n,w.sibling=u,n.child=w,u=n.child,u.memoizedState=ec(r),u.childLanes=tc(e,b,r),n.memoizedState=Ws,Gi(null,u)):(pl(n),nc(n,w))}var z=e.memoizedState;if(z!==null&&(w=z.dehydrated,w!==null)){if(h)n.flags&256?(pl(n),n.flags&=-257,n=lc(e,n,r)):n.memoizedState!==null?(gl(),n.child=e.child,n.flags|=128,n=null):(gl(),w=u.fallback,f=n.mode,u=Su({mode:"visible",children:u.children},f),w=Il(w,f,r,null),w.flags|=2,u.return=n,w.return=n,u.sibling=w,n.child=u,Zl(n,e.child,null,r),u=n.child,u.memoizedState=ec(r),u.childLanes=tc(e,b,r),n.memoizedState=Ws,n=Gi(null,u));else if(pl(n),Uc(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var I=b.dgst;b=I,u=Error(a(419)),u.stack="",u.digest=b,_i({value:u,source:null,stack:null}),n=lc(e,n,r)}else if(st||Mr(e,n,r,!1),b=(r&e.childLanes)!==0,st||b){if(b=Ke,b!==null&&(u=Kd(b,r),u!==0&&u!==z.retryLane))throw z.retryLane=u,ql(e,u),It(b,e,u),$s;Lc(w)||zu(),n=lc(e,n,r)}else Lc(w)?(n.flags|=192,n.child=e.child,n=null):(e=z.treeContext,Je=cn(w.nextSibling),bt=n,Le=!0,sl=null,on=!1,e!==null&&Fh(n,e),n=nc(n,u.children),n.flags|=4096);return n}return f?(gl(),w=u.fallback,f=n.mode,z=e.child,I=z.sibling,u=Bn(z,{mode:"hidden",children:u.children}),u.subtreeFlags=z.subtreeFlags&65011712,I!==null?w=Bn(I,w):(w=Il(w,f,r,null),w.flags|=2),w.return=n,u.return=n,u.sibling=w,n.child=u,Gi(null,u),u=n.child,w=e.child.memoizedState,w===null?w=ec(r):(f=w.cachePool,f!==null?(z=ut._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=$h(),w={baseLanes:w.baseLanes|r,cachePool:f}),u.memoizedState=w,u.childLanes=tc(e,b,r),n.memoizedState=Ws,Gi(e.child,u)):(pl(n),r=e.child,e=r.sibling,r=Bn(r,{mode:"visible",children:u.children}),r.return=n,r.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=r,n.memoizedState=null,r)}function nc(e,n){return n=Su({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function Su(e,n){return e=Qt(22,e,null,n),e.lanes=0,e}function lc(e,n,r){return Zl(n,e.child,null,r),e=nc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function cp(e,n,r){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),xs(e.return,n,r)}function rc(e,n,r,u,f,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:r,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=u,b.tail=r,b.tailMode=f,b.treeForkCount=h)}function fp(e,n,r){var u=n.pendingProps,f=u.revealOrder,h=u.tail;u=u.children;var b=rt.current,w=(b&2)!==0;if(w?(b=b&1|2,n.flags|=128):b&=1,C(rt,b),St(e,n,u,r),u=Le?Mi:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,r,n);else if(e.tag===19)cp(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=n.child,f=null;r!==null;)e=r.alternate,e!==null&&su(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=n.child,n.child=null):(f=r.sibling,r.sibling=null),rc(n,!1,f,r,h,u);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&su(e)===null){n.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}rc(n,!0,r,null,h,u);break;case"together":rc(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function Gn(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),bl|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(Mr(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,r=Bn(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=Bn(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}function ic(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&tu(e)))}function E1(e,n,r){switch(n.tag){case 3:Ae(n,n.stateNode.containerInfo),fl(n,ut,e.memoizedState.cache),Vl();break;case 27:case 5:at(n);break;case 4:Ae(n,n.stateNode.containerInfo);break;case 10:fl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,zs(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(pl(n),n.flags|=128,null):(r&n.child.childLanes)!==0?sp(e,n,r):(pl(n),e=Gn(e,n,r),e!==null?e.sibling:null);pl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(r&n.childLanes)!==0,u||(Mr(e,n,r,!1),u=(r&n.childLanes)!==0),f){if(u)return fp(e,n,r);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),C(rt,rt.current),u)break;return null;case 22:return n.lanes=0,lp(e,n,r,n.pendingProps);case 24:fl(n,ut,e.memoizedState.cache)}return Gn(e,n,r)}function dp(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)st=!0;else{if(!ic(e,r)&&(n.flags&128)===0)return st=!1,E1(e,n,r);st=(e.flags&131072)!==0}else st=!1,Le&&(n.flags&1048576)!==0&&Gh(n,Mi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=Xl(n.elementType),n.type=e,typeof e=="function")cs(e)?(u=Pl(e,u),n.tag=1,n=up(null,n,e,u,r)):(n.tag=0,n=Js(null,n,e,u,r));else{if(e!=null){var f=e.$$typeof;if(f===K){n.tag=11,n=ep(null,n,e,u,r);break e}else if(f===X){n.tag=14,n=tp(null,n,e,u,r);break e}}throw n=ue(e)||e,Error(a(306,n,""))}}return n;case 0:return Js(e,n,n.type,n.pendingProps,r);case 1:return u=n.type,f=Pl(u,n.pendingProps),up(e,n,u,f,r);case 3:e:{if(Ae(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var h=n.memoizedState;f=h.element,Cs(e,n),Hi(n,u,null,r);var b=n.memoizedState;if(u=b.cache,fl(n,ut,u),u!==h.cache&&bs(n,[ut],r,!0),Bi(),u=b.element,h.isDehydrated)if(h={element:u,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=op(e,n,u,r);break e}else if(u!==f){f=rn(Error(a(424)),n),_i(f),n=op(e,n,u,r);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Je=cn(e.firstChild),bt=n,Le=!0,sl=null,on=!0,r=lm(n,null,u,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Vl(),u===f){n=Gn(e,n,r);break e}St(e,n,u,r)}n=n.child}return n;case 26:return vu(e,n),e===null?(r=wg(n.type,null,n.pendingProps,null))?n.memoizedState=r:Le||(r=n.type,e=n.pendingProps,u=Uu(le.current).createElement(r),u[xt]=n,u[Rt]=e,kt(u,r,e),pt(u),n.stateNode=u):n.memoizedState=wg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return at(n),e===null&&Le&&(u=n.stateNode=vg(n.type,n.pendingProps,le.current),bt=n,on=!0,f=Je,El(n.type)?(Bc=f,Je=cn(u.firstChild)):Je=f),St(e,n,n.pendingProps.children,r),vu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((f=u=Je)&&(u=eS(u,n.type,n.pendingProps,on),u!==null?(n.stateNode=u,bt=n,Je=cn(u.firstChild),on=!1,f=!0):f=!1),f||cl(n)),at(n),f=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,u=h.children,Dc(f,h)?u=null:b!==null&&Dc(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=_s(e,n,p1,null,null,r),ia._currentValue=f),vu(e,n),St(e,n,u,r),n.child;case 6:return e===null&&Le&&((e=r=Je)&&(r=tS(r,n.pendingProps,on),r!==null?(n.stateNode=r,bt=n,Je=null,e=!0):e=!1),e||cl(n)),null;case 13:return sp(e,n,r);case 4:return Ae(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Zl(n,null,u,r):St(e,n,u,r),n.child;case 11:return ep(e,n,n.type,n.pendingProps,r);case 7:return St(e,n,n.pendingProps,r),n.child;case 8:return St(e,n,n.pendingProps.children,r),n.child;case 12:return St(e,n,n.pendingProps.children,r),n.child;case 10:return u=n.pendingProps,fl(n,n.type,u.value),St(e,n,u.children,r),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Gl(n),f=vt(f),u=u(f),n.flags|=1,St(e,n,u,r),n.child;case 14:return tp(e,n,n.type,n.pendingProps,r);case 15:return np(e,n,n.type,n.pendingProps,r);case 19:return fp(e,n,r);case 31:return w1(e,n,r);case 22:return lp(e,n,r,n.pendingProps);case 24:return Gl(n),u=vt(ut),e===null?(f=ks(),f===null&&(f=Ke,h=vs(),f.pooledCache=h,h.refCount++,h!==null&&(f.pooledCacheLanes|=r),f=h),n.memoizedState={parent:u,cache:f},Es(n),fl(n,ut,f)):((e.lanes&r)!==0&&(Cs(e,n),Hi(n,null,null,r),Bi()),f=e.memoizedState,h=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),fl(n,ut,u)):(u=h.cache,fl(n,ut,u),u!==f.cache&&bs(n,[ut],r,!0))),St(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function Fn(e){e.flags|=4}function ac(e,n,r,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(Hp())e.flags|=8192;else throw Ql=iu,ws}else e.flags&=-16777217}function hp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ng(n))if(Hp())e.flags|=8192;else throw Ql=iu,ws}function ku(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Xd():536870912,e.lanes|=n,Yr|=n)}function Fi(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var u=null;r!==null;)r.alternate!==null&&(u=r),r=r.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function We(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,u=0;if(n)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=r,n}function C1(e,n,r){var u=n.pendingProps;switch(ms(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(n),null;case 1:return We(n),null;case 3:return r=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),In(ut),pe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zr(n)?Fn(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,gs())),We(n),null;case 26:var f=n.type,h=n.memoizedState;return e===null?(Fn(n),h!==null?(We(n),hp(n,h)):(We(n),ac(n,f,null,u,r))):h?h!==e.memoizedState?(Fn(n),We(n),hp(n,h)):(We(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&Fn(n),We(n),ac(n,f,e,u,r)),null;case 27:if(_t(n),r=le.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Fn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return We(n),null}e=te.current,zr(n)?Xh(n):(e=vg(f,u,r),n.stateNode=e,Fn(n))}return We(n),null;case 5:if(_t(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&Fn(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return We(n),null}if(h=te.current,zr(n))Xh(n);else{var b=Uu(le.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof u.is=="string"?b.createElement("select",{is:u.is}):b.createElement("select"),u.multiple?h.multiple=!0:u.size&&(h.size=u.size);break;default:h=typeof u.is=="string"?b.createElement(f,{is:u.is}):b.createElement(f)}}h[xt]=n,h[Rt]=u;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(kt(h,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Fn(n)}}return We(n),ac(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&Fn(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=le.current,zr(n)){if(e=n.stateNode,r=n.memoizedProps,u=null,f=bt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[xt]=n,e=!!(e.nodeValue===r||u!==null&&u.suppressHydrationWarning===!0||sg(e.nodeValue,r)),e||cl(n,!0)}else e=Uu(e).createTextNode(u),e[xt]=n,n.stateNode=e}return We(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(u=zr(n),r!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[xt]=n}else Vl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),e=!1}else r=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(Kt(n),n):(Kt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return We(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=zr(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[xt]=n}else Vl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;We(n),f=!1}else f=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Kt(n),n):(Kt(n),null)}return Kt(n),(n.flags&128)!==0?(n.lanes=r,n):(r=u!==null,e=e!==null&&e.memoizedState!==null,r&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),h=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(h=u.memoizedState.cachePool.pool),h!==f&&(u.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),ku(n,n.updateQueue),We(n),null);case 4:return pe(),e===null&&Nc(n.stateNode.containerInfo),We(n),null;case 10:return In(n.type),We(n),null;case 19:if(M(rt),u=n.memoizedState,u===null)return We(n),null;if(f=(n.flags&128)!==0,h=u.rendering,h===null)if(f)Fi(u,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=su(e),h!==null){for(n.flags|=128,Fi(u,!1),e=h.updateQueue,n.updateQueue=e,ku(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)Ih(r,e),r=r.sibling;return C(rt,rt.current&1|2),Le&&Hn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&At()>Au&&(n.flags|=128,f=!0,Fi(u,!1),n.lanes=4194304)}else{if(!f)if(e=su(h),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,ku(n,e),Fi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!h.alternate&&!Le)return We(n),null}else 2*At()-u.renderingStartTime>Au&&r!==536870912&&(n.flags|=128,f=!0,Fi(u,!1),n.lanes=4194304);u.isBackwards?(h.sibling=n.child,n.child=h):(e=u.last,e!==null?e.sibling=h:n.child=h,u.last=h)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=At(),e.sibling=null,r=rt.current,C(rt,f?r&1|2:r&1),Le&&Hn(n,u.treeForkCount),e):(We(n),null);case 22:case 23:return Kt(n),js(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(r&536870912)!==0&&(n.flags&128)===0&&(We(n),n.subtreeFlags&6&&(n.flags|=8192)):We(n),r=n.updateQueue,r!==null&&ku(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==r&&(n.flags|=2048),e!==null&&M(Fl),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),In(ut),We(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function T1(e,n){switch(ms(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return In(ut),pe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return _t(n),null;case 31:if(n.memoizedState!==null){if(Kt(n),n.alternate===null)throw Error(a(340));Vl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Kt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Vl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(rt),null;case 4:return pe(),null;case 10:return In(n.type),null;case 22:case 23:return Kt(n),js(),e!==null&&M(Fl),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return In(ut),null;case 25:return null;default:return null}}function mp(e,n){switch(ms(n),n.tag){case 3:In(ut),pe();break;case 26:case 27:case 5:_t(n);break;case 4:pe();break;case 31:n.memoizedState!==null&&Kt(n);break;case 13:Kt(n);break;case 19:M(rt);break;case 10:In(n.type);break;case 22:case 23:Kt(n),js(),e!==null&&M(Fl);break;case 24:In(ut)}}function Xi(e,n){try{var r=n.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var f=u.next;r=f;do{if((r.tag&e)===e){u=void 0;var h=r.create,b=r.inst;u=h(),b.destroy=u}r=r.next}while(r!==f)}}catch(w){Ye(n,n.return,w)}}function yl(e,n,r){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var h=f.next;u=h;do{if((u.tag&e)===e){var b=u.inst,w=b.destroy;if(w!==void 0){b.destroy=void 0,f=n;var z=r,I=w;try{I()}catch(F){Ye(f,z,F)}}}u=u.next}while(u!==h)}}catch(F){Ye(n,n.return,F)}}function pp(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{im(n,r)}catch(u){Ye(e,e.return,u)}}}function gp(e,n,r){r.props=Pl(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(u){Ye(e,n,u)}}function Qi(e,n){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof r=="function"?e.refCleanup=r(u):r.current=u}}catch(f){Ye(e,n,f)}}function Tn(e,n){var r=e.ref,u=e.refCleanup;if(r!==null)if(typeof u=="function")try{u()}catch(f){Ye(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Ye(e,n,f)}else r.current=null}function yp(e){var n=e.type,r=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&u.focus();break e;case"img":r.src?u.src=r.src:r.srcSet&&(u.srcset=r.srcSet)}}catch(f){Ye(e,e.return,f)}}function uc(e,n,r){try{var u=e.stateNode;Z1(u,e.type,r,n),u[Rt]=n}catch(f){Ye(e,e.return,f)}}function xp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&El(e.type)||e.tag===4}function oc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xp(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&&El(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 sc(e,n,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=Ln));else if(u!==4&&(u===27&&El(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(sc(e,n,r),e=e.sibling;e!==null;)sc(e,n,r),e=e.sibling}function wu(e,n,r){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(u!==4&&(u===27&&El(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(wu(e,n,r),e=e.sibling;e!==null;)wu(e,n,r),e=e.sibling}function bp(e){var n=e.stateNode,r=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);kt(n,u,r),n[xt]=e,n[Rt]=r}catch(h){Ye(e,e.return,h)}}var Xn=!1,ct=!1,cc=!1,vp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function A1(e,n){if(e=e.containerInfo,Mc=Gu,e=_h(e),ls(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var u=r.getSelection&&r.getSelection();if(u&&u.rangeCount!==0){r=u.anchorNode;var f=u.anchorOffset,h=u.focusNode;u=u.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var b=0,w=-1,z=-1,I=0,F=0,W=e,Y=null;t:for(;;){for(var G;W!==r||f!==0&&W.nodeType!==3||(w=b+f),W!==h||u!==0&&W.nodeType!==3||(z=b+u),W.nodeType===3&&(b+=W.nodeValue.length),(G=W.firstChild)!==null;)Y=W,W=G;for(;;){if(W===e)break t;if(Y===r&&++I===f&&(w=b),Y===h&&++F===u&&(z=b),(G=W.nextSibling)!==null)break;W=Y,Y=W.parentNode}W=G}r=w===-1||z===-1?null:{start:w,end:z}}else r=null}r=r||{start:0,end:0}}else r=null;for(_c={focusedElem:e,selectionRange:r},Gu=!1,gt=n;gt!==null;)if(n=gt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,gt=e;else for(;gt!==null;){switch(n=gt,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=n,f=h.memoizedProps,h=h.memoizedState,u=r.stateNode;try{var me=Pl(r.type,f);e=u.getSnapshotBeforeUpdate(me,h),u.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ye(r,r.return,ve)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)Rc(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rc(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(a(163))}if(e=n.sibling,e!==null){e.return=n.return,gt=e;break}gt=n.return}}function Sp(e,n,r){var u=r.flags;switch(r.tag){case 0:case 11:case 15:Zn(e,r),u&4&&Xi(5,r);break;case 1:if(Zn(e,r),u&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(b){Ye(r,r.return,b)}else{var f=Pl(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(r,r.return,b)}}u&64&&pp(r),u&512&&Qi(r,r.return);break;case 3:if(Zn(e,r),u&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{im(e,n)}catch(b){Ye(r,r.return,b)}}break;case 27:n===null&&u&4&&bp(r);case 26:case 5:Zn(e,r),n===null&&u&4&&yp(r),u&512&&Qi(r,r.return);break;case 12:Zn(e,r);break;case 31:Zn(e,r),u&4&&Ep(e,r);break;case 13:Zn(e,r),u&4&&Cp(e,r),u&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=L1.bind(null,r),nS(e,r))));break;case 22:if(u=r.memoizedState!==null||Xn,!u){n=n!==null&&n.memoizedState!==null||ct,f=Xn;var h=ct;Xn=u,(ct=n)&&!h?Kn(e,r,(r.subtreeFlags&8772)!==0):Zn(e,r),Xn=f,ct=h}break;case 30:break;default:Zn(e,r)}}function kp(e){var n=e.alternate;n!==null&&(e.alternate=null,kp(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&qo(n)),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 et=null,Ut=!1;function Qn(e,n,r){for(r=r.child;r!==null;)wp(e,n,r),r=r.sibling}function wp(e,n,r){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Nt,r)}catch{}switch(r.tag){case 26:ct||Tn(r,n),Qn(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:ct||Tn(r,n);var u=et,f=Ut;El(r.type)&&(et=r.stateNode,Ut=!1),Qn(e,n,r),na(r.stateNode),et=u,Ut=f;break;case 5:ct||Tn(r,n);case 6:if(u=et,f=Ut,et=null,Qn(e,n,r),et=u,Ut=f,et!==null)if(Ut)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(r.stateNode)}catch(h){Ye(r,n,h)}else try{et.removeChild(r.stateNode)}catch(h){Ye(r,n,h)}break;case 18:et!==null&&(Ut?(e=et,pg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),$r(e)):pg(et,r.stateNode));break;case 4:u=et,f=Ut,et=r.stateNode.containerInfo,Ut=!0,Qn(e,n,r),et=u,Ut=f;break;case 0:case 11:case 14:case 15:yl(2,r,n),ct||yl(4,r,n),Qn(e,n,r);break;case 1:ct||(Tn(r,n),u=r.stateNode,typeof u.componentWillUnmount=="function"&&gp(r,n,u)),Qn(e,n,r);break;case 21:Qn(e,n,r);break;case 22:ct=(u=ct)||r.memoizedState!==null,Qn(e,n,r),ct=u;break;default:Qn(e,n,r)}}function Ep(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{$r(e)}catch(r){Ye(n,n.return,r)}}}function Cp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{$r(e)}catch(r){Ye(n,n.return,r)}}function N1(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new vp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new vp),n;default:throw Error(a(435,e.tag))}}function Eu(e,n){var r=N1(e);n.forEach(function(u){if(!r.has(u)){r.add(u);var f=U1.bind(null,e,u);u.then(f,f)}})}function Bt(e,n){var r=n.deletions;if(r!==null)for(var u=0;u<r.length;u++){var f=r[u],h=e,b=n,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(El(w.type)){et=w.stateNode,Ut=!1;break e}break;case 5:et=w.stateNode,Ut=!1;break e;case 3:case 4:et=w.stateNode.containerInfo,Ut=!0;break e}w=w.return}if(et===null)throw Error(a(160));wp(h,b,f),et=null,Ut=!1,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Tp(n,e),n=n.sibling}var xn=null;function Tp(e,n){var r=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(n,e),Ht(e),u&4&&(yl(3,e,e.return),Xi(3,e),yl(5,e,e.return));break;case 1:Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),u&64&&Xn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?u:r.concat(u))));break;case 26:var f=xn;if(Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),u&4){var h=r!==null?r.memoizedState:null;if(u=e.memoizedState,r===null)if(u===null)if(e.stateNode===null){e:{u=e.type,r=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":h=f.getElementsByTagName("title")[0],(!h||h[vi]||h[xt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=f.createElement(u),f.head.insertBefore(h,f.querySelector("head > title"))),kt(h,u,r),h[xt]=e,pt(h),u=h;break e;case"link":var b=Tg("link","href",f).get(u+(r.href||""));if(b){for(var w=0;w<b.length;w++)if(h=b[w],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){b.splice(w,1);break t}}h=f.createElement(u),kt(h,u,r),f.head.appendChild(h);break;case"meta":if(b=Tg("meta","content",f).get(u+(r.content||""))){for(w=0;w<b.length;w++)if(h=b[w],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){b.splice(w,1);break t}}h=f.createElement(u),kt(h,u,r),f.head.appendChild(h);break;default:throw Error(a(468,u))}h[xt]=e,pt(h),u=h}e.stateNode=u}else Ag(f,e.type,e.stateNode);else e.stateNode=Cg(f,u,e.memoizedProps);else h!==u?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,u===null?Ag(f,e.type,e.stateNode):Cg(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&uc(e,e.memoizedProps,r.memoizedProps)}break;case 27:Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),r!==null&&u&4&&uc(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Bt(n,e),Ht(e),u&512&&(ct||r===null||Tn(r,r.return)),e.flags&32){f=e.stateNode;try{vr(f,"")}catch(me){Ye(e,e.return,me)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,uc(e,f,r!==null?r.memoizedProps:f)),u&1024&&(cc=!0);break;case 6:if(Bt(n,e),Ht(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,r=e.stateNode;try{r.nodeValue=u}catch(me){Ye(e,e.return,me)}}break;case 3:if(qu=null,f=xn,xn=Bu(n.containerInfo),Bt(n,e),xn=f,Ht(e),u&4&&r!==null&&r.memoizedState.isDehydrated)try{$r(n.containerInfo)}catch(me){Ye(e,e.return,me)}cc&&(cc=!1,Ap(e));break;case 4:u=xn,xn=Bu(e.stateNode.containerInfo),Bt(n,e),Ht(e),xn=u;break;case 12:Bt(n,e),Ht(e);break;case 31:Bt(n,e),Ht(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Eu(e,u)));break;case 13:Bt(n,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Tu=At()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Eu(e,u)));break;case 22:f=e.memoizedState!==null;var z=r!==null&&r.memoizedState!==null,I=Xn,F=ct;if(Xn=I||f,ct=F||z,Bt(n,e),ct=F,Xn=I,Ht(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(r===null||z||Xn||ct||$l(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){z=r=n;try{if(h=z.stateNode,f)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=z.stateNode;var W=z.memoizedProps.style,Y=W!=null&&W.hasOwnProperty("display")?W.display:null;w.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(me){Ye(z,z.return,me)}}}else if(n.tag===6){if(r===null){z=n;try{z.stateNode.nodeValue=f?"":z.memoizedProps}catch(me){Ye(z,z.return,me)}}}else if(n.tag===18){if(r===null){z=n;try{var G=z.stateNode;f?gg(G,!0):gg(z.stateNode,!1)}catch(me){Ye(z,z.return,me)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(r=u.retryQueue,r!==null&&(u.retryQueue=null,Eu(e,r))));break;case 19:Bt(n,e),Ht(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Eu(e,u)));break;case 30:break;case 21:break;default:Bt(n,e),Ht(e)}}function Ht(e){var n=e.flags;if(n&2){try{for(var r,u=e.return;u!==null;){if(xp(u)){r=u;break}u=u.return}if(r==null)throw Error(a(160));switch(r.tag){case 27:var f=r.stateNode,h=oc(e);wu(e,h,f);break;case 5:var b=r.stateNode;r.flags&32&&(vr(b,""),r.flags&=-33);var w=oc(e);wu(e,w,b);break;case 3:case 4:var z=r.stateNode.containerInfo,I=oc(e);sc(e,I,z);break;default:throw Error(a(161))}}catch(F){Ye(e,e.return,F)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Ap(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Ap(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Zn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Sp(e,n.alternate,n),n=n.sibling}function $l(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:yl(4,n,n.return),$l(n);break;case 1:Tn(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&gp(n,n.return,r),$l(n);break;case 27:na(n.stateNode);case 26:case 5:Tn(n,n.return),$l(n);break;case 22:n.memoizedState===null&&$l(n);break;case 30:$l(n);break;default:$l(n)}e=e.sibling}}function Kn(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Kn(f,h,r),Xi(4,h);break;case 1:if(Kn(f,h,r),u=h,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(I){Ye(u,u.return,I)}if(u=h,f=u.updateQueue,f!==null){var w=u.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)rm(z[f],w)}catch(I){Ye(u,u.return,I)}}r&&b&64&&pp(h),Qi(h,h.return);break;case 27:bp(h);case 26:case 5:Kn(f,h,r),r&&u===null&&b&4&&yp(h),Qi(h,h.return);break;case 12:Kn(f,h,r);break;case 31:Kn(f,h,r),r&&b&4&&Ep(f,h);break;case 13:Kn(f,h,r),r&&b&4&&Cp(f,h);break;case 22:h.memoizedState===null&&Kn(f,h,r),Qi(h,h.return);break;case 30:break;default:Kn(f,h,r)}n=n.sibling}}function fc(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Di(r))}function dc(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Di(e))}function bn(e,n,r,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Np(e,n,r,u),n=n.sibling}function Np(e,n,r,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n,r,u),f&2048&&Xi(9,n);break;case 1:bn(e,n,r,u);break;case 3:bn(e,n,r,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Di(e)));break;case 12:if(f&2048){bn(e,n,r,u),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,w=h.onPostCommit;typeof w=="function"&&w(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){Ye(n,n.return,z)}}else bn(e,n,r,u);break;case 31:bn(e,n,r,u);break;case 13:bn(e,n,r,u);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?bn(e,n,r,u):Zi(e,n):h._visibility&2?bn(e,n,r,u):(h._visibility|=2,qr(e,n,r,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&fc(b,n);break;case 24:bn(e,n,r,u),f&2048&&dc(n.alternate,n);break;default:bn(e,n,r,u)}}function qr(e,n,r,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,w=r,z=u,I=b.flags;switch(b.tag){case 0:case 11:case 15:qr(h,b,w,z,f),Xi(8,b);break;case 23:break;case 22:var F=b.stateNode;b.memoizedState!==null?F._visibility&2?qr(h,b,w,z,f):Zi(h,b):(F._visibility|=2,qr(h,b,w,z,f)),f&&I&2048&&fc(b.alternate,b);break;case 24:qr(h,b,w,z,f),f&&I&2048&&dc(b.alternate,b);break;default:qr(h,b,w,z,f)}n=n.sibling}}function Zi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,u=n,f=u.flags;switch(u.tag){case 22:Zi(r,u),f&2048&&fc(u.alternate,u);break;case 24:Zi(r,u),f&2048&&dc(u.alternate,u);break;default:Zi(r,u)}n=n.sibling}}var Ki=8192;function Ir(e,n,r){if(e.subtreeFlags&Ki)for(e=e.child;e!==null;)jp(e,n,r),e=e.sibling}function jp(e,n,r){switch(e.tag){case 26:Ir(e,n,r),e.flags&Ki&&e.memoizedState!==null&&mS(r,xn,e.memoizedState,e.memoizedProps);break;case 5:Ir(e,n,r);break;case 3:case 4:var u=xn;xn=Bu(e.stateNode.containerInfo),Ir(e,n,r),xn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Ki,Ki=16777216,Ir(e,n,r),Ki=u):Ir(e,n,r));break;default:Ir(e,n,r)}}function zp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Pi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var u=n[r];gt=u,_p(u,e)}zp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Mp(e),e=e.sibling}function Mp(e){switch(e.tag){case 0:case 11:case 15:Pi(e),e.flags&2048&&yl(9,e,e.return);break;case 3:Pi(e);break;case 12:Pi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Cu(e)):Pi(e);break;default:Pi(e)}}function Cu(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var u=n[r];gt=u,_p(u,e)}zp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:yl(8,n,n.return),Cu(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,Cu(n));break;default:Cu(n)}e=e.sibling}}function _p(e,n){for(;gt!==null;){var r=gt;switch(r.tag){case 0:case 11:case 15:yl(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var u=r.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Di(r.memoizedState.cache)}if(u=r.child,u!==null)u.return=r,gt=u;else e:for(r=e;gt!==null;){u=gt;var f=u.sibling,h=u.return;if(kp(u),u===r){gt=null;break e}if(f!==null){f.return=h,gt=f;break e}gt=h}}}var j1={getCacheForType:function(e){var n=vt(ut),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return vt(ut).controller.signal}},z1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ke=null,Me=null,Oe=0,Ve=0,Pt=null,xl=!1,Vr=!1,hc=!1,Pn=0,lt=0,bl=0,Jl=0,mc=0,$t=0,Yr=0,$i=null,qt=null,pc=!1,Tu=0,Dp=0,Au=1/0,Nu=null,vl=null,ht=0,Sl=null,Gr=null,$n=0,gc=0,yc=null,Op=null,Ji=0,xc=null;function Jt(){return(qe&2)!==0&&Oe!==0?Oe&-Oe:B.T!==null?Ec():Pd()}function Rp(){if($t===0)if((Oe&536870912)===0||Le){var e=La;La<<=1,(La&3932160)===0&&(La=262144),$t=e}else $t=536870912;return e=Zt.current,e!==null&&(e.flags|=32),$t}function It(e,n,r){(e===Ke&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(Fr(e,0),kl(e,Oe,$t,!1)),bi(e,r),((qe&2)===0||e!==Ke)&&(e===Ke&&((qe&2)===0&&(Jl|=r),lt===4&&kl(e,Oe,$t,!1)),An(e))}function Lp(e,n,r){if((qe&6)!==0)throw Error(a(327));var u=!r&&(n&127)===0&&(n&e.expiredLanes)===0||xi(e,n),f=u?D1(e,n):vc(e,n,!0),h=u;do{if(f===0){Vr&&!u&&kl(e,n,0,!1);break}else{if(r=e.current.alternate,h&&!M1(r)){f=vc(e,n,!1),h=!1;continue}if(f===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var w=e;f=$i;var z=w.current.memoizedState.isDehydrated;if(z&&(Fr(w,b).flags|=256),b=vc(w,b,!1),b!==2){if(hc&&!z){w.errorRecoveryDisabledLanes|=h,Jl|=h,f=4;break e}h=qt,qt=f,h!==null&&(qt===null?qt=h:qt.push.apply(qt,h))}f=b}if(h=!1,f!==2)continue}}if(f===1){Fr(e,0),kl(e,n,0,!0);break}e:{switch(u=e,h=f,h){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:kl(u,n,$t,!xl);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=Tu+300-At(),10<f)){if(kl(u,n,$t,!xl),Ba(u,0,!0)!==0)break e;$n=n,u.timeoutHandle=hg(Up.bind(null,u,r,qt,Nu,pc,n,$t,Jl,Yr,xl,h,"Throttled",-0,0),f);break e}Up(u,r,qt,Nu,pc,n,$t,Jl,Yr,xl,h,null,-0,0)}}break}while(!0);An(e)}function Up(e,n,r,u,f,h,b,w,z,I,F,W,Y,G){if(e.timeoutHandle=-1,W=n.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},jp(n,h,W);var me=(h&62914560)===h?Tu-At():(h&4194048)===h?Dp-At():0;if(me=pS(W,me),me!==null){$n=h,e.cancelPendingCommit=me(Fp.bind(null,e,n,h,r,u,f,b,w,z,F,W,null,Y,G)),kl(e,h,b,!I);return}}Fp(e,n,h,r,u,f,b,w,z)}function M1(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var u=0;u<r.length;u++){var f=r[u],h=f.getSnapshot;f=f.value;try{if(!Xt(h(),f))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function kl(e,n,r,u){n&=~mc,n&=~Jl,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var h=31-Ze(f),b=1<<h;u[h]=-1,f&=~b}r!==0&&Qd(e,r,n)}function ju(){return(qe&6)===0?(Wi(0),!1):!0}function bc(){if(Me!==null){if(Ve===0)var e=Me.return;else e=Me,qn=Yl=null,Rs(e),Rr=null,Ri=0,e=Me;for(;e!==null;)mp(e.alternate,e),e=e.return;Me=null}}function Fr(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,$1(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),$n=0,bc(),Ke=e,Me=r=Bn(e.current,null),Oe=n,Ve=0,Pt=null,xl=!1,Vr=xi(e,n),hc=!1,Yr=$t=mc=Jl=bl=lt=0,qt=$i=null,pc=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Ze(u),h=1<<f;n|=e[f],u&=~h}return Pn=n,Pa(),r}function Bp(e,n){Te=null,B.H=Yi,n===Or||n===ru?(n=em(),Ve=3):n===ws?(n=em(),Ve=4):Ve=n===$s?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Pt=n,Me===null&&(lt=1,xu(e,rn(n,e.current)))}function Hp(){var e=Zt.current;return e===null?!0:(Oe&4194048)===Oe?sn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===sn:!1}function qp(){var e=B.H;return B.H=Yi,e===null?Yi:e}function Ip(){var e=B.A;return B.A=j1,e}function zu(){lt=4,xl||(Oe&4194048)!==Oe&&Zt.current!==null||(Vr=!0),(bl&134217727)===0&&(Jl&134217727)===0||Ke===null||kl(Ke,Oe,$t,!1)}function vc(e,n,r){var u=qe;qe|=2;var f=qp(),h=Ip();(Ke!==e||Oe!==n)&&(Nu=null,Fr(e,n)),n=!1;var b=lt;e:do try{if(Ve!==0&&Me!==null){var w=Me,z=Pt;switch(Ve){case 8:bc(),b=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(n=!0);var I=Ve;if(Ve=0,Pt=null,Xr(e,w,z,I),r&&Vr){b=0;break e}break;default:I=Ve,Ve=0,Pt=null,Xr(e,w,z,I)}}_1(),b=lt;break}catch(F){Bp(e,F)}while(!0);return n&&e.shellSuspendCounter++,qn=Yl=null,qe=u,B.H=f,B.A=h,Me===null&&(Ke=null,Oe=0,Pa()),b}function _1(){for(;Me!==null;)Vp(Me)}function D1(e,n){var r=qe;qe|=2;var u=qp(),f=Ip();Ke!==e||Oe!==n?(Nu=null,Au=At()+500,Fr(e,n)):Vr=xi(e,n);e:do try{if(Ve!==0&&Me!==null){n=Me;var h=Pt;t:switch(Ve){case 1:Ve=0,Pt=null,Xr(e,n,h,1);break;case 2:case 9:if(Jh(h)){Ve=0,Pt=null,Yp(n);break}n=function(){Ve!==2&&Ve!==9||Ke!==e||(Ve=7),An(e)},h.then(n,n);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Jh(h)?(Ve=0,Pt=null,Yp(n)):(Ve=0,Pt=null,Xr(e,n,h,7));break;case 5:var b=null;switch(Me.tag){case 26:b=Me.memoizedState;case 5:case 27:var w=Me;if(b?Ng(b):w.stateNode.complete){Ve=0,Pt=null;var z=w.sibling;if(z!==null)Me=z;else{var I=w.return;I!==null?(Me=I,Mu(I)):Me=null}break t}}Ve=0,Pt=null,Xr(e,n,h,5);break;case 6:Ve=0,Pt=null,Xr(e,n,h,6);break;case 8:bc(),lt=6;break e;default:throw Error(a(462))}}O1();break}catch(F){Bp(e,F)}while(!0);return qn=Yl=null,B.H=u,B.A=f,qe=r,Me!==null?0:(Ke=null,Oe=0,Pa(),lt)}function O1(){for(;Me!==null&&!Do();)Vp(Me)}function Vp(e){var n=dp(e.alternate,e,Pn);e.memoizedProps=e.pendingProps,n===null?Mu(e):Me=n}function Yp(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=ap(r,n,n.pendingProps,n.type,void 0,Oe);break;case 11:n=ap(r,n,n.pendingProps,n.type.render,n.ref,Oe);break;case 5:Rs(n);default:mp(r,n),n=Me=Ih(n,Pn),n=dp(r,n,Pn)}e.memoizedProps=e.pendingProps,n===null?Mu(e):Me=n}function Xr(e,n,r,u){qn=Yl=null,Rs(n),Rr=null,Ri=0;var f=n.return;try{if(k1(e,f,n,r,Oe)){lt=1,xu(e,rn(r,e.current)),Me=null;return}}catch(h){if(f!==null)throw Me=f,h;lt=1,xu(e,rn(r,e.current)),Me=null;return}n.flags&32768?(Le||u===1?e=!0:Vr||(Oe&536870912)!==0?e=!1:(xl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Zt.current,u!==null&&u.tag===13&&(u.flags|=16384))),Gp(n,e)):Mu(n)}function Mu(e){var n=e;do{if((n.flags&32768)!==0){Gp(n,xl);return}e=n.return;var r=C1(n.alternate,n,Pn);if(r!==null){Me=r;return}if(n=n.sibling,n!==null){Me=n;return}Me=n=e}while(n!==null);lt===0&&(lt=5)}function Gp(e,n){do{var r=T1(e.alternate,e);if(r!==null){r.flags&=32767,Me=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){Me=e;return}Me=e=r}while(e!==null);lt=6,Me=null}function Fp(e,n,r,u,f,h,b,w,z){e.cancelPendingCommit=null;do _u();while(ht!==0);if((qe&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(h=n.lanes|n.childLanes,h|=os,hv(e,r,h,b,w,z),e===Ke&&(Me=Ke=null,Oe=0),Gr=n,Sl=e,$n=r,gc=h,yc=f,Op=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,B1(Se,function(){return Pp(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,f=Q.p,Q.p=2,b=qe,qe|=4;try{A1(e,n,r)}finally{qe=b,Q.p=f,B.T=u}}ht=1,Xp(),Qp(),Zp()}}function Xp(){if(ht===1){ht=0;var e=Sl,n=Gr,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=B.T,B.T=null;var u=Q.p;Q.p=2;var f=qe;qe|=4;try{Tp(n,e);var h=_c,b=_h(e.containerInfo),w=h.focusedElem,z=h.selectionRange;if(b!==w&&w&&w.ownerDocument&&Mh(w.ownerDocument.documentElement,w)){if(z!==null&&ls(w)){var I=z.start,F=z.end;if(F===void 0&&(F=I),"selectionStart"in w)w.selectionStart=I,w.selectionEnd=Math.min(F,w.value.length);else{var W=w.ownerDocument||document,Y=W&&W.defaultView||window;if(Y.getSelection){var G=Y.getSelection(),me=w.textContent.length,ve=Math.min(z.start,me),Xe=z.end===void 0?ve:Math.min(z.end,me);!G.extend&&ve>Xe&&(b=Xe,Xe=ve,ve=b);var U=zh(w,ve),O=zh(w,Xe);if(U&&O&&(G.rangeCount!==1||G.anchorNode!==U.node||G.anchorOffset!==U.offset||G.focusNode!==O.node||G.focusOffset!==O.offset)){var q=W.createRange();q.setStart(U.node,U.offset),G.removeAllRanges(),ve>Xe?(G.addRange(q),G.extend(O.node,O.offset)):(q.setEnd(O.node,O.offset),G.addRange(q))}}}}for(W=[],G=w;G=G.parentNode;)G.nodeType===1&&W.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<W.length;w++){var P=W[w];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Gu=!!Mc,_c=Mc=null}finally{qe=f,Q.p=u,B.T=r}}e.current=n,ht=2}}function Qp(){if(ht===2){ht=0;var e=Sl,n=Gr,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=B.T,B.T=null;var u=Q.p;Q.p=2;var f=qe;qe|=4;try{Sp(e,n.alternate,n)}finally{qe=f,Q.p=u,B.T=r}}ht=3}}function Zp(){if(ht===4||ht===3){ht=0,Oo();var e=Sl,n=Gr,r=$n,u=Op;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Gr=Sl=null,Kp(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(vl=null),Bo(r),n=n.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Nt,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=B.T,f=Q.p,Q.p=2,B.T=null;try{for(var h=e.onRecoverableError,b=0;b<u.length;b++){var w=u[b];h(w.value,{componentStack:w.stack})}}finally{B.T=n,Q.p=f}}($n&3)!==0&&_u(),An(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===xc?Ji++:(Ji=0,xc=e):Ji=0,Wi(0)}}function Kp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Di(n)))}function _u(){return Xp(),Qp(),Zp(),Pp()}function Pp(){if(ht!==5)return!1;var e=Sl,n=gc;gc=0;var r=Bo($n),u=B.T,f=Q.p;try{Q.p=32>r?32:r,B.T=null,r=yc,yc=null;var h=Sl,b=$n;if(ht=0,Gr=Sl=null,$n=0,(qe&6)!==0)throw Error(a(331));var w=qe;if(qe|=4,Mp(h.current),Np(h,h.current,b,r),qe=w,Wi(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Nt,h)}catch{}return!0}finally{Q.p=f,B.T=u,Kp(e,n)}}function $p(e,n,r){n=rn(r,n),n=Ps(e.stateNode,n,2),e=ml(e,n,2),e!==null&&(bi(e,2),An(e))}function Ye(e,n,r){if(e.tag===3)$p(e,e,r);else for(;n!==null;){if(n.tag===3){$p(n,e,r);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(vl===null||!vl.has(u))){e=rn(r,e),r=Jm(2),u=ml(n,r,2),u!==null&&(Wm(r,u,n,e),bi(u,2),An(u));break}}n=n.return}}function Sc(e,n,r){var u=e.pingCache;if(u===null){u=e.pingCache=new z1;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(r)||(hc=!0,f.add(r),e=R1.bind(null,e,n,r),n.then(e,e))}function R1(e,n,r){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ke===e&&(Oe&r)===r&&(lt===4||lt===3&&(Oe&62914560)===Oe&&300>At()-Tu?(qe&2)===0&&Fr(e,0):mc|=r,Yr===Oe&&(Yr=0)),An(e)}function Jp(e,n){n===0&&(n=Xd()),e=ql(e,n),e!==null&&(bi(e,n),An(e))}function L1(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),Jp(e,r)}function U1(e,n){var r=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),Jp(e,r)}function B1(e,n){return hr(e,n)}var Du=null,Qr=null,kc=!1,Ou=!1,wc=!1,wl=0;function An(e){e!==Qr&&e.next===null&&(Qr===null?Du=Qr=e:Qr=Qr.next=e),Ou=!0,kc||(kc=!0,q1())}function Wi(e,n){if(!wc&&Ou){wc=!0;do for(var r=!1,u=Du;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var h=0;else{var b=u.suspendedLanes,w=u.pingedLanes;h=(1<<31-Ze(42|e)+1)-1,h&=f&~(b&~w),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,ng(u,h))}else h=Oe,h=Ba(u,u===Ke?h:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(h&3)===0||xi(u,h)||(r=!0,ng(u,h));u=u.next}while(r);wc=!1}}function H1(){Wp()}function Wp(){Ou=kc=!1;var e=0;wl!==0&&P1()&&(e=wl);for(var n=At(),r=null,u=Du;u!==null;){var f=u.next,h=eg(u,n);h===0?(u.next=null,r===null?Du=f:r.next=f,f===null&&(Qr=r)):(r=u,(e!==0||(h&3)!==0)&&(Ou=!0)),u=f}ht!==0&&ht!==5||Wi(e),wl!==0&&(wl=0)}function eg(e,n){for(var r=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Ze(h),w=1<<b,z=f[b];z===-1?((w&r)===0||(w&u)!==0)&&(f[b]=dv(w,n)):z<=n&&(e.expiredLanes|=w),h&=~w}if(n=Ke,r=Oe,r=Ba(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,r===0||e===n&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&yi(u),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||xi(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(u!==null&&yi(u),Bo(r)){case 2:case 8:r=oe;break;case 32:r=Se;break;case 268435456:r=Ie;break;default:r=Se}return u=tg.bind(null,e),r=hr(r,u),e.callbackPriority=n,e.callbackNode=r,n}return u!==null&&u!==null&&yi(u),e.callbackPriority=2,e.callbackNode=null,2}function tg(e,n){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(_u()&&e.callbackNode!==r)return null;var u=Oe;return u=Ba(e,e===Ke?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(Lp(e,u,n),eg(e,At()),e.callbackNode!=null&&e.callbackNode===r?tg.bind(null,e):null)}function ng(e,n){if(_u())return null;Lp(e,n,!0)}function q1(){J1(function(){(qe&6)!==0?hr(Z,H1):Wp()})}function Ec(){if(wl===0){var e=_r;e===0&&(e=Ra,Ra<<=1,(Ra&261888)===0&&(Ra=256)),wl=e}return wl}function lg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Va(""+e)}function rg(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function I1(e,n,r,u,f){if(n==="submit"&&r&&r.stateNode===f){var h=lg((f[Rt]||null).action),b=u.submitter;b&&(n=(n=b[Rt]||null)?lg(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var w=new Xa("action","action",null,u,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(wl!==0){var z=b?rg(f,b):new FormData(f);Gs(r,{pending:!0,data:z,method:f.method,action:h},null,z)}}else typeof h=="function"&&(w.preventDefault(),z=b?rg(f,b):new FormData(f),Gs(r,{pending:!0,data:z,method:f.method,action:h},h,z))},currentTarget:f}]})}}for(var Cc=0;Cc<us.length;Cc++){var Tc=us[Cc],V1=Tc.toLowerCase(),Y1=Tc[0].toUpperCase()+Tc.slice(1);yn(V1,"on"+Y1)}yn(Rh,"onAnimationEnd"),yn(Lh,"onAnimationIteration"),yn(Uh,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(i1,"onTransitionRun"),yn(a1,"onTransitionStart"),yn(u1,"onTransitionCancel"),yn(Bh,"onTransitionEnd"),xr("onMouseEnter",["mouseout","mouseover"]),xr("onMouseLeave",["mouseout","mouseover"]),xr("onPointerEnter",["pointerout","pointerover"]),xr("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ea="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(" "),G1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ea));function ig(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var u=e[r],f=u.event;u=u.listeners;e:{var h=void 0;if(n)for(var b=u.length-1;0<=b;b--){var w=u[b],z=w.instance,I=w.currentTarget;if(w=w.listener,z!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=I;try{h(f)}catch(F){Ka(F)}f.currentTarget=null,h=z}else for(b=0;b<u.length;b++){if(w=u[b],z=w.instance,I=w.currentTarget,w=w.listener,z!==h&&f.isPropagationStopped())break e;h=w,f.currentTarget=I;try{h(f)}catch(F){Ka(F)}f.currentTarget=null,h=z}}}}function _e(e,n){var r=n[Ho];r===void 0&&(r=n[Ho]=new Set);var u=e+"__bubble";r.has(u)||(ag(n,e,2,!1),r.add(u))}function Ac(e,n,r){var u=0;n&&(u|=4),ag(r,e,u,n)}var Ru="_reactListening"+Math.random().toString(36).slice(2);function Nc(e){if(!e[Ru]){e[Ru]=!0,Wd.forEach(function(r){r!=="selectionchange"&&(G1.has(r)||Ac(r,!1,e),Ac(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ru]||(n[Ru]=!0,Ac("selectionchange",!1,n))}}function ag(e,n,r,u){switch(Rg(n)){case 2:var f=xS;break;case 8:f=bS;break;default:f=Yc}r=f.bind(null,n,r,e),f=void 0,!Zo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,r,{capture:!0,passive:f}):e.addEventListener(n,r,!0):f!==void 0?e.addEventListener(n,r,{passive:f}):e.addEventListener(n,r,!1)}function jc(e,n,r,u,f){var h=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var b=u.tag;if(b===3||b===4){var w=u.stateNode.containerInfo;if(w===f)break;if(b===4)for(b=u.return;b!==null;){var z=b.tag;if((z===3||z===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;w!==null;){if(b=pr(w),b===null)return;if(z=b.tag,z===5||z===6||z===26||z===27){u=h=b;continue e}w=w.parentNode}}u=u.return}fh(function(){var I=h,F=Xo(r),W=[];e:{var Y=Hh.get(e);if(Y!==void 0){var G=Xa,me=e;switch(e){case"keypress":if(Ga(r)===0)break e;case"keydown":case"keyup":G=Uv;break;case"focusin":me="focus",G=Jo;break;case"focusout":me="blur",G=Jo;break;case"beforeblur":case"afterblur":G=Jo;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=mh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Cv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=qv;break;case Rh:case Lh:case Uh:G=Nv;break;case Bh:G=Vv;break;case"scroll":case"scrollend":G=wv;break;case"wheel":G=Gv;break;case"copy":case"cut":case"paste":G=zv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=gh;break;case"toggle":case"beforetoggle":G=Xv}var ve=(n&4)!==0,Xe=!ve&&(e==="scroll"||e==="scrollend"),U=ve?Y!==null?Y+"Capture":null:Y;ve=[];for(var O=I,q;O!==null;){var P=O;if(q=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||q===null||U===null||(P=ki(O,U),P!=null&&ve.push(ta(O,P,q))),Xe)break;O=O.return}0<ve.length&&(Y=new G(Y,me,null,r,F),W.push({event:Y,listeners:ve}))}}if((n&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",Y&&r!==Fo&&(me=r.relatedTarget||r.fromElement)&&(pr(me)||me[mr]))break e;if((G||Y)&&(Y=F.window===F?F:(Y=F.ownerDocument)?Y.defaultView||Y.parentWindow:window,G?(me=r.relatedTarget||r.toElement,G=I,me=me?pr(me):null,me!==null&&(Xe=c(me),ve=me.tag,me!==Xe||ve!==5&&ve!==27&&ve!==6)&&(me=null)):(G=null,me=I),G!==me)){if(ve=mh,P="onMouseLeave",U="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ve=gh,P="onPointerLeave",U="onPointerEnter",O="pointer"),Xe=G==null?Y:Si(G),q=me==null?Y:Si(me),Y=new ve(P,O+"leave",G,r,F),Y.target=Xe,Y.relatedTarget=q,P=null,pr(F)===I&&(ve=new ve(U,O+"enter",me,r,F),ve.target=q,ve.relatedTarget=Xe,P=ve),Xe=P,G&&me)t:{for(ve=F1,U=G,O=me,q=0,P=U;P;P=ve(P))q++;P=0;for(var ye=O;ye;ye=ve(ye))P++;for(;0<q-P;)U=ve(U),q--;for(;0<P-q;)O=ve(O),P--;for(;q--;){if(U===O||O!==null&&U===O.alternate){ve=U;break t}U=ve(U),O=ve(O)}ve=null}else ve=null;G!==null&&ug(W,Y,G,ve,!1),me!==null&&Xe!==null&&ug(W,Xe,me,ve,!0)}}e:{if(Y=I?Si(I):window,G=Y.nodeName&&Y.nodeName.toLowerCase(),G==="select"||G==="input"&&Y.type==="file")var Be=Eh;else if(kh(Y))if(Ch)Be=n1;else{Be=e1;var ge=Wv}else G=Y.nodeName,!G||G.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?I&&Go(I.elementType)&&(Be=Eh):Be=t1;if(Be&&(Be=Be(e,I))){wh(W,Be,r,F);break e}ge&&ge(e,Y,I),e==="focusout"&&I&&Y.type==="number"&&I.memoizedProps.value!=null&&Yo(Y,"number",Y.value)}switch(ge=I?Si(I):window,e){case"focusin":(kh(ge)||ge.contentEditable==="true")&&(Er=ge,rs=I,zi=null);break;case"focusout":zi=rs=Er=null;break;case"mousedown":is=!0;break;case"contextmenu":case"mouseup":case"dragend":is=!1,Dh(W,r,F);break;case"selectionchange":if(r1)break;case"keydown":case"keyup":Dh(W,r,F)}var Ne;if(es)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else wr?vh(e,r)&&(Re="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Re="onCompositionStart");Re&&(yh&&r.locale!=="ko"&&(wr||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&wr&&(Ne=dh()):(ul=F,Ko="value"in ul?ul.value:ul.textContent,wr=!0)),ge=Lu(I,Re),0<ge.length&&(Re=new ph(Re,e,null,r,F),W.push({event:Re,listeners:ge}),Ne?Re.data=Ne:(Ne=Sh(r),Ne!==null&&(Re.data=Ne)))),(Ne=Zv?Kv(e,r):Pv(e,r))&&(Re=Lu(I,"onBeforeInput"),0<Re.length&&(ge=new ph("onBeforeInput","beforeinput",null,r,F),W.push({event:ge,listeners:Re}),ge.data=Ne)),I1(W,e,I,r,F)}ig(W,n)})}function ta(e,n,r){return{instance:e,listener:n,currentTarget:r}}function Lu(e,n){for(var r=n+"Capture",u=[];e!==null;){var f=e,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=ki(e,r),f!=null&&u.unshift(ta(e,f,h)),f=ki(e,n),f!=null&&u.push(ta(e,f,h))),e.tag===3)return u;e=e.return}return[]}function F1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ug(e,n,r,u,f){for(var h=n._reactName,b=[];r!==null&&r!==u;){var w=r,z=w.alternate,I=w.stateNode;if(w=w.tag,z!==null&&z===u)break;w!==5&&w!==26&&w!==27||I===null||(z=I,f?(I=ki(r,h),I!=null&&b.unshift(ta(r,I,z))):f||(I=ki(r,h),I!=null&&b.push(ta(r,I,z)))),r=r.return}b.length!==0&&e.push({event:n,listeners:b})}var X1=/\r\n?/g,Q1=/\u0000|\uFFFD/g;function og(e){return(typeof e=="string"?e:""+e).replace(X1,`
49
+ `).replace(Q1,"")}function sg(e,n){return n=og(n),og(e)===n}function Fe(e,n,r,u,f,h){switch(r){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||vr(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&vr(e,""+u);break;case"className":qa(e,"class",u);break;case"tabIndex":qa(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":qa(e,r,u);break;case"style":sh(e,u,h);break;case"data":if(n!=="object"){qa(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}u=Va(""+u),e.setAttribute(r,u);break;case"action":case"formAction":if(typeof u=="function"){e.setAttribute(r,"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 h=="function"&&(r==="formAction"?(n!=="input"&&Fe(e,n,"name",f.name,f,null),Fe(e,n,"formEncType",f.formEncType,f,null),Fe(e,n,"formMethod",f.formMethod,f,null),Fe(e,n,"formTarget",f.formTarget,f,null)):(Fe(e,n,"encType",f.encType,f,null),Fe(e,n,"method",f.method,f,null),Fe(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(r);break}u=Va(""+u),e.setAttribute(r,u);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"onScroll":u!=null&&_e("scroll",e);break;case"onScrollEnd":u!=null&&_e("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(r=u.__html,r!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=r}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}r=Va(""+u),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""+u):e.removeAttribute(r);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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":u===!0?e.setAttribute(r,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(r,u):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(r,u):e.removeAttribute(r);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(r):e.setAttribute(r,u);break;case"popover":_e("beforetoggle",e),_e("toggle",e),Ha(e,"popover",u);break;case"xlinkActuate":Rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Rn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Rn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Rn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Rn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ha(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=Sv.get(r)||r,Ha(e,r,u))}}function zc(e,n,r,u,f,h){switch(r){case"style":sh(e,u,h);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(r=u.__html,r!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=r}}break;case"children":typeof u=="string"?vr(e,u):(typeof u=="number"||typeof u=="bigint")&&vr(e,""+u);break;case"onScroll":u!=null&&_e("scroll",e);break;case"onScrollEnd":u!=null&&_e("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!eh.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),n=r.slice(2,f?r.length-7:void 0),h=e[Rt]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(n,h,f),typeof u=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,u,f);break e}r in e?e[r]=u:u===!0?e.setAttribute(r,""):Ha(e,r,u)}}}function kt(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",e),_e("load",e);var u=!1,f=!1,h;for(h in r)if(r.hasOwnProperty(h)){var b=r[h];if(b!=null)switch(h){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,h,b,r,null)}}f&&Fe(e,n,"srcSet",r.srcSet,r,null),u&&Fe(e,n,"src",r.src,r,null);return;case"input":_e("invalid",e);var w=h=b=f=null,z=null,I=null;for(u in r)if(r.hasOwnProperty(u)){var F=r[u];if(F!=null)switch(u){case"name":f=F;break;case"type":b=F;break;case"checked":z=F;break;case"defaultChecked":I=F;break;case"value":h=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:Fe(e,n,u,F,r,null)}}ih(e,h,w,z,I,b,f,!1);return;case"select":_e("invalid",e),u=b=h=null;for(f in r)if(r.hasOwnProperty(f)&&(w=r[f],w!=null))switch(f){case"value":h=w;break;case"defaultValue":b=w;break;case"multiple":u=w;default:Fe(e,n,f,w,r,null)}n=h,r=b,e.multiple=!!u,n!=null?br(e,!!u,n,!1):r!=null&&br(e,!!u,r,!0);return;case"textarea":_e("invalid",e),h=f=u=null;for(b in r)if(r.hasOwnProperty(b)&&(w=r[b],w!=null))switch(b){case"value":u=w;break;case"defaultValue":f=w;break;case"children":h=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:Fe(e,n,b,w,r,null)}uh(e,u,f,h);return;case"option":for(z in r)if(r.hasOwnProperty(z)&&(u=r[z],u!=null))switch(z){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Fe(e,n,z,u,r,null)}return;case"dialog":_e("beforetoggle",e),_e("toggle",e),_e("cancel",e),_e("close",e);break;case"iframe":case"object":_e("load",e);break;case"video":case"audio":for(u=0;u<ea.length;u++)_e(ea[u],e);break;case"image":_e("error",e),_e("load",e);break;case"details":_e("toggle",e);break;case"embed":case"source":case"link":_e("error",e),_e("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(I in r)if(r.hasOwnProperty(I)&&(u=r[I],u!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Fe(e,n,I,u,r,null)}return;default:if(Go(n)){for(F in r)r.hasOwnProperty(F)&&(u=r[F],u!==void 0&&zc(e,n,F,u,r,void 0));return}}for(w in r)r.hasOwnProperty(w)&&(u=r[w],u!=null&&Fe(e,n,w,u,r,null))}function Z1(e,n,r,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,w=null,z=null,I=null,F=null;for(G in r){var W=r[G];if(r.hasOwnProperty(G)&&W!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":z=W;default:u.hasOwnProperty(G)||Fe(e,n,G,null,u,W)}}for(var Y in u){var G=u[Y];if(W=r[Y],u.hasOwnProperty(Y)&&(G!=null||W!=null))switch(Y){case"type":h=G;break;case"name":f=G;break;case"checked":I=G;break;case"defaultChecked":F=G;break;case"value":b=G;break;case"defaultValue":w=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:G!==W&&Fe(e,n,Y,G,u,W)}}Vo(e,b,w,z,I,F,h,f);return;case"select":G=b=w=Y=null;for(h in r)if(z=r[h],r.hasOwnProperty(h)&&z!=null)switch(h){case"value":break;case"multiple":G=z;default:u.hasOwnProperty(h)||Fe(e,n,h,null,u,z)}for(f in u)if(h=u[f],z=r[f],u.hasOwnProperty(f)&&(h!=null||z!=null))switch(f){case"value":Y=h;break;case"defaultValue":w=h;break;case"multiple":b=h;default:h!==z&&Fe(e,n,f,h,u,z)}n=w,r=b,u=G,Y!=null?br(e,!!r,Y,!1):!!u!=!!r&&(n!=null?br(e,!!r,n,!0):br(e,!!r,r?[]:"",!1));return;case"textarea":G=Y=null;for(w in r)if(f=r[w],r.hasOwnProperty(w)&&f!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Fe(e,n,w,null,u,f)}for(b in u)if(f=u[b],h=r[b],u.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":Y=f;break;case"defaultValue":G=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==h&&Fe(e,n,b,f,u,h)}ah(e,Y,G);return;case"option":for(var me in r)if(Y=r[me],r.hasOwnProperty(me)&&Y!=null&&!u.hasOwnProperty(me))switch(me){case"selected":e.selected=!1;break;default:Fe(e,n,me,null,u,Y)}for(z in u)if(Y=u[z],G=r[z],u.hasOwnProperty(z)&&Y!==G&&(Y!=null||G!=null))switch(z){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Fe(e,n,z,Y,u,G)}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 ve in r)Y=r[ve],r.hasOwnProperty(ve)&&Y!=null&&!u.hasOwnProperty(ve)&&Fe(e,n,ve,null,u,Y);for(I in u)if(Y=u[I],G=r[I],u.hasOwnProperty(I)&&Y!==G&&(Y!=null||G!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(a(137,n));break;default:Fe(e,n,I,Y,u,G)}return;default:if(Go(n)){for(var Xe in r)Y=r[Xe],r.hasOwnProperty(Xe)&&Y!==void 0&&!u.hasOwnProperty(Xe)&&zc(e,n,Xe,void 0,u,Y);for(F in u)Y=u[F],G=r[F],!u.hasOwnProperty(F)||Y===G||Y===void 0&&G===void 0||zc(e,n,F,Y,u,G);return}}for(var U in r)Y=r[U],r.hasOwnProperty(U)&&Y!=null&&!u.hasOwnProperty(U)&&Fe(e,n,U,null,u,Y);for(W in u)Y=u[W],G=r[W],!u.hasOwnProperty(W)||Y===G||Y==null&&G==null||Fe(e,n,W,Y,u,G)}function cg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function K1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),u=0;u<r.length;u++){var f=r[u],h=f.transferSize,b=f.initiatorType,w=f.duration;if(h&&w&&cg(b)){for(b=0,w=f.responseEnd,u+=1;u<r.length;u++){var z=r[u],I=z.startTime;if(I>w)break;var F=z.transferSize,W=z.initiatorType;F&&cg(W)&&(z=z.responseEnd,b+=F*(z<w?1:(w-I)/(z-I)))}if(--u,n+=8*(h+b)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Mc=null,_c=null;function Uu(e){return e.nodeType===9?e:e.ownerDocument}function fg(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 dg(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Dc(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Oc=null;function P1(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var hg=typeof setTimeout=="function"?setTimeout:void 0,$1=typeof clearTimeout=="function"?clearTimeout:void 0,mg=typeof Promise=="function"?Promise:void 0,J1=typeof queueMicrotask=="function"?queueMicrotask:typeof mg<"u"?function(e){return mg.resolve(null).then(e).catch(W1)}:hg;function W1(e){setTimeout(function(){throw e})}function El(e){return e==="head"}function pg(e,n){var r=n,u=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(u===0){e.removeChild(f),$r(n);return}u--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")u++;else if(r==="html")na(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,na(r);for(var h=r.firstChild;h;){var b=h.nextSibling,w=h.nodeName;h[vi]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=b}}else r==="body"&&na(e.ownerDocument.body);r=f}while(r);$r(n)}function gg(e,n){var r=e;e=0;do{var u=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),u&&u.nodeType===8)if(r=u.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=u}while(r)}function Rc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Rc(r),qo(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function eS(e,n,r,u){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[vi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function tS(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=cn(e.nextSibling),e===null))return null;return e}function yg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function Lc(e){return e.data==="$?"||e.data==="$~"}function Uc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nS(e,n){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||r.readyState!=="loading")n();else{var u=function(){n(),r.removeEventListener("DOMContentLoaded",u)};r.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function cn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Bc=null;function xg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(n===0)return cn(e.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}e=e.nextSibling}return null}function bg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return e;n--}else r!=="/$"&&r!=="/&"||n++}e=e.previousSibling}return null}function vg(e,n,r){switch(n=Uu(r),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function na(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);qo(e)}var fn=new Map,Sg=new Set;function Bu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Jn=Q.d;Q.d={f:lS,r:rS,D:iS,C:aS,L:uS,m:oS,X:cS,S:sS,M:fS};function lS(){var e=Jn.f(),n=ju();return e||n}function rS(e){var n=gr(e);n!==null&&n.tag===5&&n.type==="form"?Bm(n):Jn.r(e)}var Zr=typeof document>"u"?null:document;function kg(e,n,r){var u=Zr;if(u&&typeof n=="string"&&n){var f=nn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),Sg.has(f)||(Sg.add(f),e={rel:e,crossOrigin:r,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),kt(n,"link",e),pt(n),u.head.appendChild(n)))}}function iS(e){Jn.D(e),kg("dns-prefetch",e,null)}function aS(e,n){Jn.C(e,n),kg("preconnect",e,n)}function uS(e,n,r){Jn.L(e,n,r);var u=Zr;if(u&&e&&n){var f='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+nn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+nn(r.imageSizes)+'"]')):f+='[href="'+nn(e)+'"]';var h=f;switch(n){case"style":h=Kr(e);break;case"script":h=Pr(e)}fn.has(h)||(e=g({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),fn.set(h,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(la(h))||n==="script"&&u.querySelector(ra(h))||(n=u.createElement("link"),kt(n,"link",e),pt(n),u.head.appendChild(n)))}}function oS(e,n){Jn.m(e,n);var r=Zr;if(r&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+nn(u)+'"][href="'+nn(e)+'"]',h=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Pr(e)}if(!fn.has(h)&&(e=g({rel:"modulepreload",href:e},n),fn.set(h,e),r.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(ra(h)))return}u=r.createElement("link"),kt(u,"link",e),pt(u),r.head.appendChild(u)}}}function sS(e,n,r){Jn.S(e,n,r);var u=Zr;if(u&&e){var f=yr(u).hoistableStyles,h=Kr(e);n=n||"default";var b=f.get(h);if(!b){var w={loading:0,preload:null};if(b=u.querySelector(la(h)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},r),(r=fn.get(h))&&Hc(e,r);var z=b=u.createElement("link");pt(z),kt(z,"link",e),z._p=new Promise(function(I,F){z.onload=I,z.onerror=F}),z.addEventListener("load",function(){w.loading|=1}),z.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Hu(b,n,u)}b={type:"stylesheet",instance:b,count:1,state:w},f.set(h,b)}}}function cS(e,n){Jn.X(e,n);var r=Zr;if(r&&e){var u=yr(r).hoistableScripts,f=Pr(e),h=u.get(f);h||(h=r.querySelector(ra(f)),h||(e=g({src:e,async:!0},n),(n=fn.get(f))&&qc(e,n),h=r.createElement("script"),pt(h),kt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function fS(e,n){Jn.M(e,n);var r=Zr;if(r&&e){var u=yr(r).hoistableScripts,f=Pr(e),h=u.get(f);h||(h=r.querySelector(ra(f)),h||(e=g({src:e,async:!0,type:"module"},n),(n=fn.get(f))&&qc(e,n),h=r.createElement("script"),pt(h),kt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},u.set(f,h))}}function wg(e,n,r,u){var f=(f=le.current)?Bu(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=Kr(r.href),r=yr(f).hoistableStyles,u=r.get(n),u||(u={type:"style",instance:null,count:0,state:null},r.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Kr(r.href);var h=yr(f).hoistableStyles,b=h.get(e);if(b||(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=f.querySelector(la(e)))&&!h._p&&(b.instance=h,b.state.loading=5),fn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},fn.set(e,r),h||dS(f,e,r,b.state))),n&&u===null)throw Error(a(528,""));return b}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Pr(r),r=yr(f).hoistableScripts,u=r.get(n),u||(u={type:"script",instance:null,count:0,state:null},r.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Kr(e){return'href="'+nn(e)+'"'}function la(e){return'link[rel="stylesheet"]['+e+"]"}function Eg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function dS(e,n,r,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),kt(n,"link",r),pt(n),e.head.appendChild(n))}function Pr(e){return'[src="'+nn(e)+'"]'}function ra(e){return"script[async]"+e}function Cg(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+nn(r.href)+'"]');if(u)return n.instance=u,pt(u),u;var f=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),pt(u),kt(u,"style",f),Hu(u,r.precedence,e),n.instance=u;case"stylesheet":f=Kr(r.href);var h=e.querySelector(la(f));if(h)return n.state.loading|=4,n.instance=h,pt(h),h;u=Eg(r),(f=fn.get(f))&&Hc(u,f),h=(e.ownerDocument||e).createElement("link"),pt(h);var b=h;return b._p=new Promise(function(w,z){b.onload=w,b.onerror=z}),kt(h,"link",u),n.state.loading|=4,Hu(h,r.precedence,e),n.instance=h;case"script":return h=Pr(r.src),(f=e.querySelector(ra(h)))?(n.instance=f,pt(f),f):(u=r,(f=fn.get(h))&&(u=g({},r),qc(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),pt(f),kt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,Hu(u,r.precedence,e));return n.instance}function Hu(e,n,r){for(var u=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,h=f,b=0;b<u.length;b++){var w=u[b];if(w.dataset.precedence===n)h=w;else if(h!==f)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function Hc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function qc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var qu=null;function Tg(e,n,r){if(qu===null){var u=new Map,f=qu=new Map;f.set(r,u)}else f=qu,u=f.get(r),u||(u=new Map,f.set(r,u));if(u.has(e))return u;for(u.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var h=r[f];if(!(h[vi]||h[xt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var w=u.get(b);w?w.push(h):u.set(b,[h])}}return u}function Ag(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function hS(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ng(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function mS(e,n,r,u){if(r.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=Kr(u.href),h=n.querySelector(la(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Iu.bind(e),n.then(e,e)),r.state.loading|=4,r.instance=h,pt(h);return}h=n.ownerDocument||n,u=Eg(u),(f=fn.get(f))&&Hc(u,f),h=h.createElement("link"),pt(h);var b=h;b._p=new Promise(function(w,z){b.onload=w,b.onerror=z}),kt(h,"link",u),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=Iu.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}var Ic=0;function pS(e,n){return e.stylesheets&&e.count===0&&Yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var u=setTimeout(function(){if(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&Ic===0&&(Ic=62500*K1());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Yu(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Ic?50:800)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vu=null;function Yu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vu=new Map,n.forEach(gS,e),Vu=null,Iu.call(e))}function gS(e,n){if(!(n.state.loading&4)){var r=Vu.get(e);if(r)var u=r.get(null);else{r=new Map,Vu.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(r.set(b.dataset.precedence,b),u=b)}u&&r.set(null,u)}f=n.instance,b=f.getAttribute("data-precedence"),h=r.get(b)||u,h===u&&r.set(null,f),r.set(b,f),this.count++,u=Iu.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),h?h.parentNode.insertBefore(f,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var ia={$$typeof:R,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function yS(e,n,r,u,f,h,b,w,z){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=Lo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lo(0),this.hiddenUpdates=Lo(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function jg(e,n,r,u,f,h,b,w,z,I,F,W){return e=new yS(e,n,r,b,z,I,F,W,w),n=1,h===!0&&(n|=24),h=Qt(3,null,null,n),e.current=h,h.stateNode=e,n=vs(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:u,isDehydrated:r,cache:n},Es(h),e}function zg(e){return e?(e=Ar,e):Ar}function Mg(e,n,r,u,f,h){f=zg(f),u.context===null?u.context=f:u.pendingContext=f,u=hl(n),u.payload={element:r},h=h===void 0?null:h,h!==null&&(u.callback=h),r=ml(e,u,n),r!==null&&(It(r,e,n),Ui(r,e,n))}function _g(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Vc(e,n){_g(e,n),(e=e.alternate)&&_g(e,n)}function Dg(e){if(e.tag===13||e.tag===31){var n=ql(e,67108864);n!==null&&It(n,e,67108864),Vc(e,67108864)}}function Og(e){if(e.tag===13||e.tag===31){var n=Jt();n=Uo(n);var r=ql(e,n);r!==null&&It(r,e,n),Vc(e,n)}}var Gu=!0;function xS(e,n,r,u){var f=B.T;B.T=null;var h=Q.p;try{Q.p=2,Yc(e,n,r,u)}finally{Q.p=h,B.T=f}}function bS(e,n,r,u){var f=B.T;B.T=null;var h=Q.p;try{Q.p=8,Yc(e,n,r,u)}finally{Q.p=h,B.T=f}}function Yc(e,n,r,u){if(Gu){var f=Gc(u);if(f===null)jc(e,n,u,Fu,r),Lg(e,u);else if(SS(f,e,n,r,u))u.stopPropagation();else if(Lg(e,u),n&4&&-1<vS.indexOf(e)){for(;f!==null;){var h=gr(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Rl(h.pendingLanes);if(b!==0){var w=h;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var z=1<<31-Ze(b);w.entanglements[1]|=z,b&=~z}An(h),(qe&6)===0&&(Au=At()+500,Wi(0))}}break;case 31:case 13:w=ql(h,2),w!==null&&It(w,h,2),ju(),Vc(h,2)}if(h=Gc(u),h===null&&jc(e,n,u,Fu,r),h===f)break;f=h}f!==null&&u.stopPropagation()}else jc(e,n,u,null,r)}}function Gc(e){return e=Xo(e),Fc(e)}var Fu=null;function Fc(e){if(Fu=null,e=pr(e),e!==null){var n=c(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=s(n),e!==null)return e;e=null}else if(r===31){if(e=d(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Fu=e,null}function Rg(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(Ro()){case Z:return 2;case oe:return 8;case Se:case ze:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var Xc=!1,Cl=null,Tl=null,Al=null,aa=new Map,ua=new Map,Nl=[],vS="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 Lg(e,n){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":aa.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ua.delete(n.pointerId)}}function oa(e,n,r,u,f,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:r,eventSystemFlags:u,nativeEvent:h,targetContainers:[f]},n!==null&&(n=gr(n),n!==null&&Dg(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function SS(e,n,r,u,f){switch(n){case"focusin":return Cl=oa(Cl,e,n,r,u,f),!0;case"dragenter":return Tl=oa(Tl,e,n,r,u,f),!0;case"mouseover":return Al=oa(Al,e,n,r,u,f),!0;case"pointerover":var h=f.pointerId;return aa.set(h,oa(aa.get(h)||null,e,n,r,u,f)),!0;case"gotpointercapture":return h=f.pointerId,ua.set(h,oa(ua.get(h)||null,e,n,r,u,f)),!0}return!1}function Ug(e){var n=pr(e.target);if(n!==null){var r=c(n);if(r!==null){if(n=r.tag,n===13){if(n=s(r),n!==null){e.blockedOn=n,$d(e.priority,function(){Og(r)});return}}else if(n===31){if(n=d(r),n!==null){e.blockedOn=n,$d(e.priority,function(){Og(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xu(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=Gc(e.nativeEvent);if(r===null){r=e.nativeEvent;var u=new r.constructor(r.type,r);Fo=u,r.target.dispatchEvent(u),Fo=null}else return n=gr(r),n!==null&&Dg(n),e.blockedOn=r,!1;n.shift()}return!0}function Bg(e,n,r){Xu(e)&&r.delete(n)}function kS(){Xc=!1,Cl!==null&&Xu(Cl)&&(Cl=null),Tl!==null&&Xu(Tl)&&(Tl=null),Al!==null&&Xu(Al)&&(Al=null),aa.forEach(Bg),ua.forEach(Bg)}function Qu(e,n){e.blockedOn===n&&(e.blockedOn=null,Xc||(Xc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kS)))}var Zu=null;function Hg(e){Zu!==e&&(Zu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Zu===e&&(Zu=null);for(var n=0;n<e.length;n+=3){var r=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Fc(u||r)===null)continue;break}var h=gr(r);h!==null&&(e.splice(n,3),n-=3,Gs(h,{pending:!0,data:f,method:r.method,action:u},u,f))}}))}function $r(e){function n(z){return Qu(z,e)}Cl!==null&&Qu(Cl,e),Tl!==null&&Qu(Tl,e),Al!==null&&Qu(Al,e),aa.forEach(n),ua.forEach(n);for(var r=0;r<Nl.length;r++){var u=Nl[r];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Nl.length&&(r=Nl[0],r.blockedOn===null);)Ug(r),r.blockedOn===null&&Nl.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(u=0;u<r.length;u+=3){var f=r[u],h=r[u+1],b=f[Rt]||null;if(typeof h=="function")b||Hg(r);else if(b){var w=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[Rt]||null)w=b.formAction;else if(Fc(f)!==null)continue}else w=b.action;typeof w=="function"?r[u+1]=w:(r.splice(u,3),u-=3),Hg(r)}}}function qg(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(r,20)}function r(){if(!u&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Qc(e){this._internalRoot=e}Ku.prototype.render=Qc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var r=n.current,u=Jt();Mg(r,u,e,n,null,null)},Ku.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Mg(e.current,2,null,e,null,null),ju(),n[mr]=null}};function Ku(e){this._internalRoot=e}Ku.prototype.unstable_scheduleHydration=function(e){if(e){var n=Pd();e={blockedOn:null,target:e,priority:n};for(var r=0;r<Nl.length&&n!==0&&n<Nl[r].priority;r++);Nl.splice(r,0,e),r===0&&Ug(e)}};var Ig=l.version;if(Ig!=="19.2.8")throw Error(a(527,Ig,"19.2.8"));Q.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var wS={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{Nt=Pu.inject(wS),dt=Pu}catch{}}return ca.createRoot=function(e,n){if(!o(e))throw Error(a(299));var r=!1,u="",f=Zm,h=Km,b=Pm;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=jg(e,1,!1,null,null,r,u,null,f,h,b,qg),e[mr]=n.current,Nc(e),new Qc(n)},ca.hydrateRoot=function(e,n,r){if(!o(e))throw Error(a(299));var u=!1,f="",h=Zm,b=Km,w=Pm,z=null;return r!=null&&(r.unstable_strictMode===!0&&(u=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError),r.formState!==void 0&&(z=r.formState)),n=jg(e,1,!0,n,r??null,u,f,z,h,b,w,qg),n.context=zg(null),r=n.current,u=Jt(),u=Uo(u),f=hl(u),f.callback=null,ml(r,f,u),r=u,n.current.lanes=r,bi(n,r),An(n),e[mr]=n.current,Nc(e),new Ku(n)},ca.version="19.2.8",ca}var $g;function OS(){if($g)return Pc.exports;$g=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(l){console.error(l)}}return t(),Pc.exports=DS(),Pc.exports}var RS=OS();/**
50
50
  * @license lucide-react v0.468.0 - ISC
51
51
  *
52
52
  * This source code is licensed under the ISC license.
53
53
  * See the LICENSE file in the root directory of this source tree.
54
- */const _S=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mb=(...t)=>t.filter((l,i,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===i).join(" ").trim();/**
54
+ */const LS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),px=(...t)=>t.filter((l,i,a)=>!!l&&l.trim()!==""&&a.indexOf(l)===i).join(" ").trim();/**
55
55
  * @license lucide-react v0.468.0 - ISC
56
56
  *
57
57
  * This source code is licensed under the ISC license.
58
58
  * See the LICENSE file in the root directory of this source tree.
59
- */var DS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
59
+ */var US={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
60
  * @license lucide-react v0.468.0 - ISC
61
61
  *
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
- */const OS=k.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:c,iconNode:s,...d},m)=>k.createElement("svg",{ref:m,...DS,width:l,height:l,stroke:t,strokeWidth:a?Number(i)*24/Number(l):i,className:mb("lucide",o),...d},[...s.map(([p,y])=>k.createElement(p,y)),...Array.isArray(c)?c:[c]]));/**
64
+ */const BS=k.forwardRef(({color:t="currentColor",size:l=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:c,iconNode:s,...d},m)=>k.createElement("svg",{ref:m,...US,width:l,height:l,stroke:t,strokeWidth:a?Number(i)*24/Number(l):i,className:px("lucide",o),...d},[...s.map(([p,y])=>k.createElement(p,y)),...Array.isArray(c)?c:[c]]));/**
65
65
  * @license lucide-react v0.468.0 - ISC
66
66
  *
67
67
  * This source code is licensed under the ISC license.
68
68
  * See the LICENSE file in the root directory of this source tree.
69
- */const ke=(t,l)=>{const i=k.forwardRef(({className:a,...o},c)=>k.createElement(OS,{ref:c,iconNode:l,className:mb(`lucide-${_S(t)}`,a),...o}));return i.displayName=`${t}`,i};/**
69
+ */const ke=(t,l)=>{const i=k.forwardRef(({className:a,...o},c)=>k.createElement(BS,{ref:c,iconNode:l,className:px(`lucide-${LS(t)}`,a),...o}));return i.displayName=`${t}`,i};/**
70
70
  * @license lucide-react v0.468.0 - ISC
71
71
  *
72
72
  * This source code is licensed under the ISC license.
73
73
  * See the LICENSE file in the root directory of this source tree.
74
- */const pb=ke("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
74
+ */const gx=ke("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
75
75
  * @license lucide-react v0.468.0 - ISC
76
76
  *
77
77
  * This source code is licensed under the ISC license.
78
78
  * See the LICENSE file in the root directory of this source tree.
79
- */const RS=ke("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
79
+ */const HS=ke("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
80
80
  * @license lucide-react v0.468.0 - ISC
81
81
  *
82
82
  * This source code is licensed under the ISC license.
@@ -86,22 +86,22 @@ Error generating stack: `+u.message+`
86
86
  *
87
87
  * This source code is licensed under the ISC license.
88
88
  * See the LICENSE file in the root directory of this source tree.
89
- */const LS=ke("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
89
+ */const qS=ke("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
90
90
  * @license lucide-react v0.468.0 - ISC
91
91
  *
92
92
  * This source code is licensed under the ISC license.
93
93
  * See the LICENSE file in the root directory of this source tree.
94
- */const gb=ke("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
94
+ */const yx=ke("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
95
95
  * @license lucide-react v0.468.0 - ISC
96
96
  *
97
97
  * This source code is licensed under the ISC license.
98
98
  * See the LICENSE file in the root directory of this source tree.
99
- */const US=ke("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
99
+ */const IS=ke("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
100
100
  * @license lucide-react v0.468.0 - ISC
101
101
  *
102
102
  * This source code is licensed under the ISC license.
103
103
  * See the LICENSE file in the root directory of this source tree.
104
- */const BS=ke("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
104
+ */const VS=ke("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
105
105
  * @license lucide-react v0.468.0 - ISC
106
106
  *
107
107
  * This source code is licensed under the ISC license.
@@ -121,37 +121,37 @@ Error generating stack: `+u.message+`
121
121
  *
122
122
  * This source code is licensed under the ISC license.
123
123
  * See the LICENSE file in the root directory of this source tree.
124
- */const yb=ke("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
124
+ */const xx=ke("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
125
125
  * @license lucide-react v0.468.0 - ISC
126
126
  *
127
127
  * This source code is licensed under the ISC license.
128
128
  * See the LICENSE file in the root directory of this source tree.
129
- */const HS=ke("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
129
+ */const YS=ke("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
130
130
  * @license lucide-react v0.468.0 - ISC
131
131
  *
132
132
  * This source code is licensed under the ISC license.
133
133
  * See the LICENSE file in the root directory of this source tree.
134
- */const qS=ke("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
134
+ */const GS=ke("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
135
135
  * @license lucide-react v0.468.0 - ISC
136
136
  *
137
137
  * This source code is licensed under the ISC license.
138
138
  * See the LICENSE file in the root directory of this source tree.
139
- */const IS=ke("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
139
+ */const FS=ke("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
140
140
  * @license lucide-react v0.468.0 - ISC
141
141
  *
142
142
  * This source code is licensed under the ISC license.
143
143
  * See the LICENSE file in the root directory of this source tree.
144
- */const VS=ke("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
144
+ */const XS=ke("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
145
145
  * @license lucide-react v0.468.0 - ISC
146
146
  *
147
147
  * This source code is licensed under the ISC license.
148
148
  * See the LICENSE file in the root directory of this source tree.
149
- */const bb=ke("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
149
+ */const bx=ke("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
150
150
  * @license lucide-react v0.468.0 - ISC
151
151
  *
152
152
  * This source code is licensed under the ISC license.
153
153
  * See the LICENSE file in the root directory of this source tree.
154
- */const YS=ke("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
154
+ */const QS=ke("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
155
155
  * @license lucide-react v0.468.0 - ISC
156
156
  *
157
157
  * This source code is licensed under the ISC license.
@@ -176,12 +176,12 @@ Error generating stack: `+u.message+`
176
176
  *
177
177
  * This source code is licensed under the ISC license.
178
178
  * See the LICENSE file in the root directory of this source tree.
179
- */const GS=ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
179
+ */const ZS=ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
180
180
  * @license lucide-react v0.468.0 - ISC
181
181
  *
182
182
  * This source code is licensed under the ISC license.
183
183
  * See the LICENSE file in the root directory of this source tree.
184
- */const FS=ke("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
184
+ */const KS=ke("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
185
185
  * @license lucide-react v0.468.0 - ISC
186
186
  *
187
187
  * This source code is licensed under the ISC license.
@@ -196,92 +196,92 @@ Error generating stack: `+u.message+`
196
196
  *
197
197
  * This source code is licensed under the ISC license.
198
198
  * See the LICENSE file in the root directory of this source tree.
199
- */const xb=ke("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
199
+ */const vx=ke("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
200
200
  * @license lucide-react v0.468.0 - ISC
201
201
  *
202
202
  * This source code is licensed under the ISC license.
203
203
  * See the LICENSE file in the root directory of this source tree.
204
- */const XS=ke("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
204
+ */const PS=ke("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
205
205
  * @license lucide-react v0.468.0 - ISC
206
206
  *
207
207
  * This source code is licensed under the ISC license.
208
208
  * See the LICENSE file in the root directory of this source tree.
209
- */const QS=ke("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
209
+ */const $S=ke("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
210
210
  * @license lucide-react v0.468.0 - ISC
211
211
  *
212
212
  * This source code is licensed under the ISC license.
213
213
  * See the LICENSE file in the root directory of this source tree.
214
- */const ZS=ke("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
214
+ */const JS=ke("ListTodo",[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
215
215
  * @license lucide-react v0.468.0 - ISC
216
216
  *
217
217
  * This source code is licensed under the ISC license.
218
218
  * See the LICENSE file in the root directory of this source tree.
219
- */const KS=ke("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
219
+ */const WS=ke("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
220
220
  * @license lucide-react v0.468.0 - ISC
221
221
  *
222
222
  * This source code is licensed under the ISC license.
223
223
  * See the LICENSE file in the root directory of this source tree.
224
- */const PS=ke("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
224
+ */const ek=ke("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
225
225
  * @license lucide-react v0.468.0 - ISC
226
226
  *
227
227
  * This source code is licensed under the ISC license.
228
228
  * See the LICENSE file in the root directory of this source tree.
229
- */const $S=ke("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
229
+ */const tk=ke("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
230
230
  * @license lucide-react v0.468.0 - ISC
231
231
  *
232
232
  * This source code is licensed under the ISC license.
233
233
  * See the LICENSE file in the root directory of this source tree.
234
- */const JS=ke("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
234
+ */const nk=ke("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
235
235
  * @license lucide-react v0.468.0 - ISC
236
236
  *
237
237
  * This source code is licensed under the ISC license.
238
238
  * See the LICENSE file in the root directory of this source tree.
239
- */const WS=ke("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
239
+ */const lk=ke("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
240
240
  * @license lucide-react v0.468.0 - ISC
241
241
  *
242
242
  * This source code is licensed under the ISC license.
243
243
  * See the LICENSE file in the root directory of this source tree.
244
- */const ek=ke("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
244
+ */const rk=ke("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
245
245
  * @license lucide-react v0.468.0 - ISC
246
246
  *
247
247
  * This source code is licensed under the ISC license.
248
248
  * See the LICENSE file in the root directory of this source tree.
249
- */const tk=ke("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
249
+ */const ik=ke("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
250
250
  * @license lucide-react v0.468.0 - ISC
251
251
  *
252
252
  * This source code is licensed under the ISC license.
253
253
  * See the LICENSE file in the root directory of this source tree.
254
- */const nk=ke("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
254
+ */const ak=ke("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
255
255
  * @license lucide-react v0.468.0 - ISC
256
256
  *
257
257
  * This source code is licensed under the ISC license.
258
258
  * See the LICENSE file in the root directory of this source tree.
259
- */const lk=ke("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
259
+ */const uk=ke("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
260
260
  * @license lucide-react v0.468.0 - ISC
261
261
  *
262
262
  * This source code is licensed under the ISC license.
263
263
  * See the LICENSE file in the root directory of this source tree.
264
- */const rk=ke("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
264
+ */const ok=ke("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
265
265
  * @license lucide-react v0.468.0 - ISC
266
266
  *
267
267
  * This source code is licensed under the ISC license.
268
268
  * See the LICENSE file in the root directory of this source tree.
269
- */const ik=ke("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
269
+ */const sk=ke("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
270
270
  * @license lucide-react v0.468.0 - ISC
271
271
  *
272
272
  * This source code is licensed under the ISC license.
273
273
  * See the LICENSE file in the root directory of this source tree.
274
- */const vb=ke("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
274
+ */const Sx=ke("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
275
275
  * @license lucide-react v0.468.0 - ISC
276
276
  *
277
277
  * This source code is licensed under the ISC license.
278
278
  * See the LICENSE file in the root directory of this source tree.
279
- */const ak=ke("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
279
+ */const ck=ke("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
280
280
  * @license lucide-react v0.468.0 - ISC
281
281
  *
282
282
  * This source code is licensed under the ISC license.
283
283
  * See the LICENSE file in the root directory of this source tree.
284
- */const Sb=ke("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
284
+ */const kx=ke("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
285
285
  * @license lucide-react v0.468.0 - ISC
286
286
  *
287
287
  * This source code is licensed under the ISC license.
@@ -291,18 +291,18 @@ Error generating stack: `+u.message+`
291
291
  *
292
292
  * This source code is licensed under the ISC license.
293
293
  * See the LICENSE file in the root directory of this source tree.
294
- */const uk=ke("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
294
+ */const fk=ke("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
295
295
  * @license lucide-react v0.468.0 - ISC
296
296
  *
297
297
  * This source code is licensed under the ISC license.
298
298
  * See the LICENSE file in the root directory of this source tree.
299
- */const kb=ke("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
299
+ */const wx=ke("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
300
300
  * @license lucide-react v0.468.0 - ISC
301
301
  *
302
302
  * This source code is licensed under the ISC license.
303
303
  * See the LICENSE file in the root directory of this source tree.
304
- */const md=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function wb(t){var l,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(i=wb(t[l]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function ok(){for(var t,l,i=0,a="",o=arguments.length;i<o;i++)(t=arguments[i])&&(l=wb(t))&&(a&&(a+=" "),a+=l);return a}const sk=(t,l)=>{const i=new Array(t.length+l.length);for(let a=0;a<t.length;a++)i[a]=t[a];for(let a=0;a<l.length;a++)i[t.length+a]=l[a];return i},ck=(t,l)=>({classGroupId:t,validator:l}),Eb=(t=new Map,l=null,i)=>({nextPart:t,validators:l,classGroupId:i}),xo="-",Jg=[],fk="arbitrary..",dk=t=>{const l=mk(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return hk(s);const d=s.split(xo),m=d[0]===""&&d.length>1?1:0;return Cb(d,m,l)},getConflictingClassGroupIds:(s,d)=>{if(d){const m=a[s],p=i[s];return m?p?sk(p,m):m:p||Jg}return i[s]||Jg}}},Cb=(t,l,i)=>{if(t.length-l===0)return i.classGroupId;const o=t[l],c=i.nextPart.get(o);if(c){const p=Cb(t,l+1,c);if(p)return p}const s=i.validators;if(s===null)return;const d=l===0?t.join(xo):t.slice(l).join(xo),m=s.length;for(let p=0;p<m;p++){const y=s[p];if(y.validator(d))return y.classGroupId}},hk=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),i=l.indexOf(":"),a=l.slice(0,i);return a?fk+a:void 0})(),mk=t=>{const{theme:l,classGroups:i}=t;return pk(i,l)},pk=(t,l)=>{const i=Eb();for(const a in t){const o=t[a];pd(o,i,a,l)}return i},pd=(t,l,i,a)=>{const o=t.length;for(let c=0;c<o;c++){const s=t[c];gk(s,l,i,a)}},gk=(t,l,i,a)=>{if(typeof t=="string"){yk(t,l,i);return}if(typeof t=="function"){bk(t,l,i,a);return}xk(t,l,i,a)},yk=(t,l,i)=>{const a=t===""?l:Tb(l,t);a.classGroupId=i},bk=(t,l,i,a)=>{if(vk(t)){pd(t(a),l,i,a);return}l.validators===null&&(l.validators=[]),l.validators.push(ck(i,t))},xk=(t,l,i,a)=>{const o=Object.entries(t),c=o.length;for(let s=0;s<c;s++){const[d,m]=o[s];pd(m,Tb(l,d),i,a)}},Tb=(t,l)=>{let i=t;const a=l.split(xo),o=a.length;for(let c=0;c<o;c++){const s=a[c];let d=i.nextPart.get(s);d||(d=Eb(),i.nextPart.set(s,d)),i=d}return i},vk=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Sk=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,i=Object.create(null),a=Object.create(null);const o=(c,s)=>{i[c]=s,l++,l>t&&(l=0,a=i,i=Object.create(null))};return{get(c){let s=i[c];if(s!==void 0)return s;if((s=a[c])!==void 0)return o(c,s),s},set(c,s){c in i?i[c]=s:o(c,s)}}},Rf="!",Wg=":",kk=[],ey=(t,l,i,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),wk=t=>{const{prefix:l,experimentalParseClassName:i}=t;let a=o=>{const c=[];let s=0,d=0,m=0,p;const y=o.length;for(let A=0;A<y;A++){const j=o[A];if(s===0&&d===0){if(j===Wg){c.push(o.slice(m,A)),m=A+1;continue}if(j==="/"){p=A;continue}}j==="["?s++:j==="]"?s--:j==="("?d++:j===")"&&d--}const g=c.length===0?o:o.slice(m);let v=g,S=!1;g.endsWith(Rf)?(v=g.slice(0,-1),S=!0):g.startsWith(Rf)&&(v=g.slice(1),S=!0);const E=p&&p>m?p-m:void 0;return ey(c,S,v,E)};if(l){const o=l+Wg,c=a;a=s=>s.startsWith(o)?c(s.slice(o.length)):ey(kk,!1,s,void 0,!0)}if(i){const o=a;a=c=>i({className:c,parseClassName:o})}return a},Ek=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((i,a)=>{l.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let c=0;c<i.length;c++){const s=i[c],d=s[0]==="[",m=l.has(s);d||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(s)):o.push(s)}return o.length>0&&(o.sort(),a.push(...o)),a}},Ck=t=>({cache:Sk(t.cacheSize),parseClassName:wk(t),sortModifiers:Ek(t),postfixLookupClassGroupIds:Tk(t),...dk(t)}),Tk=t=>{const l=Object.create(null),i=t.postfixLookupClassGroups;if(i)for(let a=0;a<i.length;a++)l[i[a]]=!0;return l},Ak=/\s+/,Nk=(t,l)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:c,postfixLookupClassGroupIds:s}=l,d=[],m=t.trim().split(Ak);let p="";for(let y=m.length-1;y>=0;y-=1){const g=m[y],{isExternal:v,modifiers:S,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:j}=i(g);if(v){p=g+(p.length>0?" "+p:p);continue}let N=!!j,R;if(N){const X=A.substring(0,j);R=a(X);const V=R&&s[R]?a(A):void 0;V&&V!==R&&(R=V,N=!1)}else R=a(A);if(!R){if(!N){p=g+(p.length>0?" "+p:p);continue}if(R=a(A),!R){p=g+(p.length>0?" "+p:p);continue}N=!1}const L=S.length===0?"":S.length===1?S[0]:c(S).join(":"),W=E?L+Rf:L,ee=W+R;if(d.indexOf(ee)>-1)continue;d.push(ee);const D=o(R,N);for(let X=0;X<D.length;++X){const V=D[X];d.push(W+V)}p=g+(p.length>0?" "+p:p)}return p},jk=(...t)=>{let l=0,i,a,o="";for(;l<t.length;)(i=t[l++])&&(a=Ab(i))&&(o&&(o+=" "),o+=a);return o},Ab=t=>{if(typeof t=="string")return t;let l,i="";for(let a=0;a<t.length;a++)t[a]&&(l=Ab(t[a]))&&(i&&(i+=" "),i+=l);return i},zk=(t,...l)=>{let i,a,o,c;const s=m=>{const p=l.reduce((y,g)=>g(y),t());return i=Ck(p),a=i.cache.get,o=i.cache.set,c=d,d(m)},d=m=>{const p=a(m);if(p)return p;const y=Nk(m,i);return o(m,y),y};return c=s,(...m)=>c(jk(...m))},Mk=[],mt=t=>{const l=i=>i[t]||Mk;return l.isThemeGetter=!0,l},Nb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_k=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Dk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ok=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uk=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zl=t=>_k.test(t),je=t=>!!t&&!Number.isNaN(Number(t)),Nn=t=>!!t&&Number.isInteger(Number(t)),ef=t=>t.endsWith("%")&&je(t.slice(0,-1)),Wn=t=>Dk.test(t),zb=()=>!0,Bk=t=>Ok.test(t)&&!Rk.test(t),gd=()=>!1,Hk=t=>Lk.test(t),qk=t=>Uk.test(t),Ik=t=>!fe(t)&&!de(t),Vk=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Yk=t=>Dl(t,Db,gd),fe=t=>Nb.test(t),Wl=t=>Dl(t,Ob,Bk),ty=t=>Dl(t,$k,je),Gk=t=>Dl(t,Lb,zb),Fk=t=>Dl(t,Rb,gd),ny=t=>Dl(t,Mb,gd),Xk=t=>Dl(t,_b,qk),Ju=t=>Dl(t,Ub,Hk),de=t=>jb.test(t),fa=t=>ur(t,Ob),Qk=t=>ur(t,Rb),ly=t=>ur(t,Mb),Zk=t=>ur(t,Db),Kk=t=>ur(t,_b),Wu=t=>ur(t,Ub,!0),Pk=t=>ur(t,Lb,!0),Dl=(t,l,i)=>{const a=Nb.exec(t);return a?a[1]?l(a[1]):i(a[2]):!1},ur=(t,l,i=!1)=>{const a=jb.exec(t);return a?a[1]?l(a[1]):i:!1},Mb=t=>t==="position"||t==="percentage",_b=t=>t==="image"||t==="url",Db=t=>t==="length"||t==="size"||t==="bg-size",Ob=t=>t==="length",$k=t=>t==="number",Rb=t=>t==="family-name",Lb=t=>t==="number"||t==="weight",Ub=t=>t==="shadow",Jk=()=>{const t=mt("color"),l=mt("font"),i=mt("text"),a=mt("font-weight"),o=mt("tracking"),c=mt("leading"),s=mt("breakpoint"),d=mt("container"),m=mt("spacing"),p=mt("radius"),y=mt("shadow"),g=mt("inset-shadow"),v=mt("text-shadow"),S=mt("drop-shadow"),E=mt("blur"),A=mt("perspective"),j=mt("aspect"),N=mt("ease"),R=mt("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...W(),de,fe],D=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],V=()=>[de,fe,m],ae=()=>[zl,"full","auto",...V()],H=()=>[Nn,"none","subgrid",de,fe],re=()=>["auto",{span:["full",Nn,de,fe]},Nn,de,fe],P=()=>[Nn,"auto",de,fe],be=()=>["auto","min","max","fr",de,fe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...V()],Q=()=>[zl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],ce=()=>[zl,"screen","full","dvw","lvw","svw","min","max","fit",...V()],we=()=>[zl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],T=()=>[t,de,fe],_=()=>[...W(),ly,ny,{position:[de,fe]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",Zk,Yk,{size:[de,fe]}],te=()=>[ef,fa,Wl],$=()=>["","none","full",p,de,fe],le=()=>["",je,fa,Wl],he=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[je,ef,ly,ny],at=()=>["","none",E,de,fe],_t=()=>["none",je,de,fe],wn=()=>["none",je,de,fe],rl=()=>[je,de,fe],Dt=()=>[zl,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[zb],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[Ik],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",je],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zl,fe,de,j]}],container:["container"],"container-type":[{"@container":["","normal","size",de,fe]}],"container-named":[Vk],columns:[{columns:[je,fe,de,d]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Nn,"auto",de,fe]}],basis:[{basis:[zl,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,zl,"auto","initial","none",fe]}],grow:[{grow:["",je,de,fe]}],shrink:[{shrink:["",je,de,fe]}],order:[{order:[Nn,"first","last","none",de,fe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":be()}],"auto-rows":[{"auto-rows":be()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...we()]}],"min-block-size":[{"min-block":["auto",...we()]}],"max-block-size":[{"max-block":["none",...we()]}],w:[{w:[d,"screen",...Q()]}],"min-w":[{"min-w":[d,"screen","none",...Q()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[s]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",i,fa,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Pk,Gk]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ef,fe]}],"font-family":[{font:[Qk,Fk,l]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,fe]}],"line-clamp":[{"line-clamp":[je,"none",de,ty]}],leading:[{leading:[c,...V()]}],"list-image":[{"list-image":["none",de,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",de,Wl]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[je,"auto",de,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"tab-size":[{tab:[Nn,de,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nn,de,fe],radial:["",de,fe],conic:[Nn,de,fe]},Kk,Xk]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,de,fe]}],"outline-w":[{outline:["",je,fa,Wl]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",y,Wu,Ju]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",g,Wu,Ju]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[je,Wl]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",v,Wu,Ju]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[je,de,fe]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[de,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,fe]}],filter:[{filter:["","none",de,fe]}],blur:[{blur:at()}],brightness:[{brightness:[je,de,fe]}],contrast:[{contrast:[je,de,fe]}],"drop-shadow":[{"drop-shadow":["","none",S,Wu,Ju]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",je,de,fe]}],"hue-rotate":[{"hue-rotate":[je,de,fe]}],invert:[{invert:["",je,de,fe]}],saturate:[{saturate:[je,de,fe]}],sepia:[{sepia:["",je,de,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",de,fe]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[je,de,fe]}],"backdrop-contrast":[{"backdrop-contrast":[je,de,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,de,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,de,fe]}],"backdrop-invert":[{"backdrop-invert":["",je,de,fe]}],"backdrop-opacity":[{"backdrop-opacity":[je,de,fe]}],"backdrop-saturate":[{"backdrop-saturate":[je,de,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,de,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",de,fe]}],ease:[{ease:["linear","initial",N,de,fe]}],delay:[{delay:[je,de,fe]}],animate:[{animate:["none",R,de,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,de,fe]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:_t()}],"rotate-x":[{"rotate-x":_t()}],"rotate-y":[{"rotate-y":_t()}],"rotate-z":[{"rotate-z":_t()}],scale:[{scale:wn()}],"scale-x":[{"scale-x":wn()}],"scale-y":[{"scale-y":wn()}],"scale-z":[{"scale-z":wn()}],"scale-3d":["scale-3d"],skew:[{skew:rl()}],"skew-x":[{"skew-x":rl()}],"skew-y":[{"skew-y":rl()}],transform:[{transform:[de,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Dt()}],"translate-x":[{"translate-x":Dt()}],"translate-y":[{"translate-y":Dt()}],"translate-z":[{"translate-z":Dt()}],"translate-none":["translate-none"],zoom:[{zoom:[Nn,de,fe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,fe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[je,fa,Wl,ty]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Wk=zk(Jk);function se(...t){return Wk(ok(t))}const e2={"needs-input":{label:"Needs Input",className:"bg-status-blocked/20 text-status-blocked border-status-blocked/30"},active:{label:"Running",className:"bg-status-running/20 text-status-running border-status-running/30",pulse:!0},completed:{label:"Done",className:"bg-muted text-muted-foreground border-border"}};function t2(t,l){return l.has(t.id)?"needs-input":t.mode==="live"||t.alive?"active":"completed"}function n2({status:t,className:l}){const i=e2[t];return b.jsxs("span",{className:se("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",i.className,l),children:[i.pulse&&b.jsx("span",{className:"size-1.5 animate-pulse rounded-full bg-current"}),i.label]})}function l2(t){const l=Date.now(),i=new Date(t).getTime(),a=Math.floor((l-i)/1e3);if(a<60)return"just now";const o=Math.floor(a/60);if(o<60)return`${o}m ago`;const c=Math.floor(o/60);if(c<24)return`${c}h ago`;const s=Math.floor(c/24);return s<7?`${s}d ago`:new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function r2(t){const l=t.replace(/\/+$/,"").split("/");return l[l.length-1]??t}function i2({session:t,pendingSessionIds:l,selected:i,onSelect:a}){const o=t2(t,l),c=t.title??"Untitled session";return b.jsxs("button",{onClick:()=>a(t.id),className:se("flex w-full flex-col gap-1.5 rounded-lg border p-3 text-left transition-colors","hover:bg-accent/50",i?"border-brand/50 bg-brand/5":"border-transparent"),children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:c}),b.jsx(n2,{status:o,className:"shrink-0"})]}),b.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&b.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:r2(t.cwd)}),b.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?l2(t.updatedAt):""})]})]})}const a2=[{id:"sessions",label:"Sessions",icon:b.jsx(PS,{className:"size-4"})},{id:"memory",label:"Memory",icon:b.jsx(fd,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:b.jsx(BS,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:b.jsx(gb,{className:"size-4"})},{id:"settings",label:"Settings",icon:b.jsx(vb,{className:"size-4"})}];function u2({sessions:t,pendingSessionIds:l,selectedSessionId:i,onSelectSession:a,activeNav:o,onNavChange:c,collapsed:s,onToggleCollapse:d}){return b.jsxs("aside",{className:se("flex h-full shrink-0 flex-col border-r bg-card transition-[width] duration-200",s?"w-14":"w-72"),children:[b.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!s&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),b.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),b.jsx("button",{onClick:d,className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",title:s?"Expand sidebar":"Collapse sidebar",children:s?b.jsx(WS,{className:"size-4"}):b.jsx(JS,{className:"size-4"})})]}),b.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:a2.map(m=>b.jsxs("button",{onClick:()=>c(m.id),className:se("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm transition-colors",o===m.id?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),title:s?m.label:void 0,children:[m.icon,!s&&b.jsx("span",{children:m.label})]},m.id))}),o==="sessions"&&!s&&b.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?b.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(m=>b.jsx(i2,{session:m,pendingSessionIds:l,selected:i===m.id,onSelect:a},m.id))})})]})}var ry=1,o2=.9,s2=.8,c2=.17,tf=.1,nf=.999,f2=.9999,d2=.99,h2=/[\\\/_+.#"@\[\(\{&]/,m2=/[\\\/_+.#"@\[\(\{&]/g,p2=/[\s-]/,Bb=/[\s-]/g;function Lf(t,l,i,a,o,c,s){if(c===l.length)return o===t.length?ry:d2;var d=`${o},${c}`;if(s[d]!==void 0)return s[d];for(var m=a.charAt(c),p=i.indexOf(m,o),y=0,g,v,S,E;p>=0;)g=Lf(t,l,i,a,p+1,c+1,s),g>y&&(p===o?g*=ry:h2.test(t.charAt(p-1))?(g*=s2,S=t.slice(o,p-1).match(m2),S&&o>0&&(g*=Math.pow(nf,S.length))):p2.test(t.charAt(p-1))?(g*=o2,E=t.slice(o,p-1).match(Bb),E&&o>0&&(g*=Math.pow(nf,E.length))):(g*=c2,o>0&&(g*=Math.pow(nf,p-o))),t.charAt(p)!==l.charAt(c)&&(g*=f2)),(g<tf&&i.charAt(p-1)===a.charAt(c+1)||a.charAt(c+1)===a.charAt(c)&&i.charAt(p-1)!==a.charAt(c))&&(v=Lf(t,l,i,a,p+1,c+2,s),v*tf>g&&(g=v*tf)),g>y&&(y=g),p=i.indexOf(m,p+1);return s[d]=y,y}function iy(t){return t.toLowerCase().replace(Bb," ")}function g2(t,l,i){return t=i&&i.length>0?`${t+" "+i.join(" ")}`:t,Lf(t,l,iy(t),iy(l),0,0,{})}var y2=Object.defineProperty,hi=(t,l)=>y2(t,"name",{value:l,configurable:!0}),Hb=!!(typeof window<"u"&&window.document&&window.document.createElement);function nr(t,l,{checkForDefaultPrevented:i=!0}={}){return hi(function(o){if(t==null||t(o),i===!1||!o||!o.defaultPrevented)return l==null?void 0:l(o)},"handleEvent")}hi(nr,"composeEventHandlers");function b2(t){var l;if(!Hb)throw new Error("Cannot access window outside of the DOM");return((l=t==null?void 0:t.ownerDocument)==null?void 0:l.defaultView)??window}hi(b2,"getOwnerWindow");function Uf(t){if(!Hb)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}hi(Uf,"getOwnerDocument");function qb(t,l=!1){const{activeElement:i}=Uf(t);if(!(i!=null&&i.nodeName))return null;if(Ib(i)&&i.contentDocument)return qb(i.contentDocument.body,l);if(l){const a=i.getAttribute("aria-activedescendant");if(a){const o=Uf(i).getElementById(a);if(o)return o}}return i}hi(qb,"getActiveElement");function Ib(t){return t.tagName==="IFRAME"}hi(Ib,"isFrame");var x2=Object.defineProperty,yd=(t,l)=>x2(t,"name",{value:l,configurable:!0});function Bf(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}yd(Bf,"setRef");function rr(...t){return l=>{let i=!1;const a=t.map(o=>{const c=Bf(o,l);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<a.length;o++){const c=a[o];typeof c=="function"?c():Bf(t[o],null)}}}}yd(rr,"composeRefs");function mi(...t){return k.useCallback(rr(...t),t)}yd(mi,"useComposedRefs");var v2=Object.defineProperty,mn=(t,l)=>v2(t,"name",{value:l,configurable:!0});function S2(t,l){const i=k.createContext(l);i.displayName=t+"Context";const a=mn(c=>{const{children:s,...d}=c,m=k.useMemo(()=>d,Object.values(d));return b.jsx(i.Provider,{value:m,children:s})},"Provider");a.displayName=t+"Provider";function o(c,s={}){const{optional:d=!1}=s,m=k.useContext(i);if(m)return m;if(l!==void 0)return l;if(!d)throw new Error(`\`${c}\` must be used within \`${t}\``)}return mn(o,"useContext"),[a,o]}mn(S2,"createContext");function Vb(t,l=[]){let i=[];function a(c,s){const d=k.createContext(s);d.displayName=c+"Context";const m=i.length;i=[...i,s];const p=mn(g=>{var N;const{scope:v,children:S,...E}=g,A=((N=v==null?void 0:v[t])==null?void 0:N[m])||d,j=k.useMemo(()=>E,Object.values(E));return b.jsx(A.Provider,{value:j,children:S})},"Provider");p.displayName=c+"Provider";function y(g,v,S={}){var N;const{optional:E=!1}=S,A=((N=v==null?void 0:v[t])==null?void 0:N[m])||d,j=k.useContext(A);if(j)return j;if(s!==void 0)return s;if(!E)throw new Error(`\`${g}\` must be used within \`${c}\``)}return mn(y,"useContext"),[p,y]}mn(a,"createContext");const o=mn(()=>{const c=i.map(s=>k.createContext(s));return mn(function(d){const m=(d==null?void 0:d[t])||c;return k.useMemo(()=>({[`__scope${t}`]:{...d,[t]:m}}),[d,m])},"useScope")},"createScope");return o.scopeName=t,[a,Yb(o,...l)]}mn(Vb,"createContextScope");function Yb(...t){const l=t[0];if(t.length===1)return l;const i=mn(()=>{const a=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return mn(function(c){const s=a.reduce((d,{useScope:m,scopeName:p})=>{const g=m(c)[`__scope${p}`];return{...d,...g}},{});return k.useMemo(()=>({[`__scope${l.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return i.scopeName=l.scopeName,i}mn(Yb,"composeContextScopes");var ci=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},k2=Object.defineProperty,w2=(t,l)=>k2(t,"name",{value:l,configurable:!0}),E2=Aa[" useId ".trim().toString()]||(()=>{}),C2=0;function _n(t){const[l,i]=k.useState(E2());return ci(()=>{t||i(a=>a??String(C2++))},[t]),t||(l?`radix-${l}`:"")}w2(_n,"useId");var T2=Object.defineProperty,A2=(t,l)=>T2(t,"name",{value:l,configurable:!0}),ay=Aa[" useEffectEvent ".trim().toString()],uy=Aa[" useInsertionEffect ".trim().toString()];function Gb(t){if(typeof ay=="function")return ay(t);const l=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof uy=="function"?uy(()=>{l.current=t}):ci(()=>{l.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=l.current)==null?void 0:a.call(l,...i)}),[])}A2(Gb,"useEffectEvent");var N2=Object.defineProperty,Na=(t,l)=>N2(t,"name",{value:l,configurable:!0}),j2=Aa[" useInsertionEffect ".trim().toString()]||ci;function Fb({prop:t,defaultProp:l,onChange:i=Na(()=>{},"onChange"),caller:a}){const[o,c,s]=Xb({defaultProp:l,onChange:i}),d=t!==void 0,m=d?t:o,p=k.useCallback(y=>{var g;if(d){const v=Qb(y)?y(t):y;v!==t&&((g=s.current)==null||g.call(s,v))}else c(y)},[d,t,c,s]);return[m,p]}Na(Fb,"useControllableState");function Xb({defaultProp:t,onChange:l}){const[i,a]=k.useState(t),o=k.useRef(i),c=k.useRef(l);return j2(()=>{c.current=l},[l]),k.useEffect(()=>{var s;o.current!==i&&((s=c.current)==null||s.call(c,i),o.current=i)},[i,o]),[i,a,c]}Na(Xb,"useUncontrolledState");function Qb(t){return typeof t=="function"}Na(Qb,"isFunction");var oy=Symbol("RADIX:SYNC_STATE");function z2(t,l,i,a){const{prop:o,defaultProp:c,onChange:s,caller:d}=l,m=o!==void 0,p=Gb(s),y=[{...i,state:c}];a&&y.push(a);const[g,v]=k.useReducer((j,N)=>{if(N.type===oy)return{...j,state:N.state};const R=t(j,N);return m&&!Object.is(R.state,j.state)&&p(R.state),R},...y),S=g.state,E=k.useRef(S);k.useEffect(()=>{E.current!==S&&(E.current=S,m||p(S))},[S,E,m]);const A=k.useMemo(()=>o!==void 0?{...g,state:o}:g,[g,o]);return k.useEffect(()=>{m&&!Object.is(o,g.state)&&v({type:oy,state:o})},[o,g.state,m]),[A,v]}Na(z2,"useControllableStateReducer");var Zb=hb(),M2=Object.defineProperty,kn=(t,l)=>M2(t,"name",{value:l,configurable:!0});function bd(t){const l=k.forwardRef((i,a)=>{let{children:o,...c}=i,s=null,d=!1;const m=[];Hf(o)&&typeof eo=="function"&&(o=eo(o._payload)),k.Children.forEach(o,v=>{var S;if(Jb(v)){d=!0;const E=v;let A="child"in E.props?E.props.child:E.props.children;Hf(A)&&typeof eo=="function"&&(A=eo(A._payload)),s=D2(E,A),m.push((S=s==null?void 0:s.props)==null?void 0:S.children)}else m.push(v)}),s?s=k.cloneElement(s,void 0,m):!d&&k.Children.count(o)===1&&k.isValidElement(o)&&(s=o);const p=s?$b(s):void 0,y=mi(a,p);if(!s){if(o||o===0)throw new Error(d?L2(t):R2(t));return o}const g=Pb(c,s.props??{});return s.type!==k.Fragment&&(g.ref=a?y:p),k.cloneElement(s,g)});return l.displayName=`${t}.Slot`,l}kn(bd,"createSlot");var Kb=Symbol.for("radix.slottable");function _2(t){const l=kn(i=>"child"in i?i.children(i.child):i.children,"Slottable");return l.displayName=`${t}.Slottable`,l.__radixId=Kb,l}kn(_2,"createSlottable");var D2=kn((t,l)=>{if("child"in t.props){const i=t.props.child;return k.isValidElement(i)?k.cloneElement(i,void 0,t.props.children(i.props.children)):null}return k.isValidElement(l)?l:null},"getSlottableElementFromSlottable");function Pb(t,l){const i={...l};for(const a in l){const o=t[a],c=l[a];/^on[A-Z]/.test(a)?o&&c?i[a]=(...d)=>{const m=c(...d);return o(...d),m}:o&&(i[a]=o):a==="style"?i[a]={...o,...c}:a==="className"&&(i[a]=[o,c].filter(Boolean).join(" "))}return{...t,...i}}kn(Pb,"mergeProps");function $b(t){var a,o;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,i=l&&"isReactWarning"in l&&l.isReactWarning;return i?t.ref:(l=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=l&&"isReactWarning"in l&&l.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}kn($b,"getElementRef");function Jb(t){return k.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Kb}kn(Jb,"isSlottable");var O2=Symbol.for("react.lazy");function Hf(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===O2&&"_payload"in t&&Wb(t._payload)}kn(Hf,"isLazyComponent");function Wb(t){return typeof t=="object"&&t!==null&&"then"in t}kn(Wb,"isPromiseLike");var R2=kn(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),L2=kn(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),eo=Aa[" use ".trim().toString()],U2=Object.defineProperty,B2=(t,l)=>U2(t,"name",{value:l,configurable:!0}),H2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pn=H2.reduce((t,l)=>{const i=bd(`Primitive.${l}`),a=k.forwardRef((o,c)=>{const{asChild:s,...d}=o,m=s?i:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(m,{...d,ref:c})});return a.displayName=`Primitive.${l}`,{...t,[l]:a}},{});function ex(t,l){t&&Zb.flushSync(()=>t.dispatchEvent(l))}B2(ex,"dispatchDiscreteCustomEvent");var q2=Object.defineProperty,I2=(t,l)=>q2(t,"name",{value:l,configurable:!0});function fi(t){const l=k.useRef(t);return k.useEffect(()=>{l.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=l.current)==null?void 0:a.call(l,...i)}),[])}I2(fi,"useCallbackRef");var V2=Object.defineProperty,yt=(t,l)=>V2(t,"name",{value:l,configurable:!0}),qf="dismissableLayer.update",Y2="dismissableLayer.pointerDownOutside",G2="dismissableLayer.focusOutside",sy,tx=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),F2=k.forwardRef(yt(function(l,i){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...y}=l,g=k.useContext(tx),[v,S]=k.useState(null),E=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,A]=k.useState({}),j=mi(i,S),N=Array.from(g.layers),[R]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),L=R?N.indexOf(R):-1,W=v?N.indexOf(v):-1,ee=g.layersWithOutsidePointerEventsDisabled.size>0,D=W>=L,X=k.useRef(!1),V=lx(P=>{s==null||s(P),m==null||m(P),P.defaultPrevented||p==null||p()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:X,dismissableSurfaces:g.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(P=>{if(!(P instanceof Node))return!1;const be=[...g.branches].some(ue=>ue.contains(P));return D&&!be},[g.branches,D])}),ae=rx(P=>{if(o&&X.current)return;const be=P.target;[...g.branches].some(ne=>ne.contains(be))||(d==null||d(P),m==null||m(P),P.defaultPrevented||p==null||p())},E),H=v?W===N.length-1:!1,re=fi(P=>{P.key==="Escape"&&(c==null||c(P),!P.defaultPrevented&&p&&(P.preventDefault(),p()))});return k.useEffect(()=>{if(H)return E.addEventListener("keydown",re,{capture:!0}),()=>E.removeEventListener("keydown",re,{capture:!0})},[E,H,re]),k.useEffect(()=>{if(v)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(sy=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),If(),()=>{a&&(g.layersWithOutsidePointerEventsDisabled.delete(v),g.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=sy))}},[v,E,a,g]),k.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),If())},[v,g]),k.useEffect(()=>{const P=yt(()=>A({}),"handleUpdate");return document.addEventListener(qf,P),()=>document.removeEventListener(qf,P)},[]),b.jsx(pn.div,{...y,ref:j,style:{pointerEvents:ee?D?"auto":"none":void 0,...l.style},onFocusCapture:nr(l.onFocusCapture,ae.onFocusCapture),onBlurCapture:nr(l.onBlurCapture,ae.onBlurCapture),onPointerDownCapture:nr(l.onPointerDownCapture,V.onPointerDownCapture)})},"DismissableLayer"));function nx(){const t=k.useContext(tx),[l,i]=k.useState(null);return k.useEffect(()=>{if(l)return t.dismissableSurfaces.add(l),()=>{t.dismissableSurfaces.delete(l)}},[l,t.dismissableSurfaces]),i}yt(nx,"useDismissableLayerSurface");var X2=yt(()=>!0,"IS_TRUE");function lx(t,l){const{ownerDocument:i=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:c,shouldHandlePointerDownOutside:s=X2}=l,d=fi(t),m=k.useRef(!1),p=k.useRef(!1),y=k.useRef(new Map),g=k.useRef(()=>{});return k.useEffect(()=>{function v(){p.current=!1,o.current=!1,y.current.clear()}yt(v,"resetOutsideInteraction");function S(){return Array.from(y.current.values()).some(Boolean)}yt(S,"isOutsideInteractionIntercepted");function E(L){if(!p.current)return;const W=L.target;W instanceof Node&&[...c].some(D=>D.contains(W))||y.current.set(L.type,!0),L.type==="click"&&window.setTimeout(()=>{p.current&&g.current()},0)}yt(E,"handleInteractionCapture");function A(L){p.current&&y.current.set(L.type,!1)}yt(A,"handleInteractionBubble");const j=yt(L=>{if(L.target&&!m.current){let W=function(){i.removeEventListener("click",g.current);const D=S();v(),D||xd(Y2,d,ee,{discrete:!0})};if(yt(W,"handleAndDispatchPointerDownOutsideEvent"),!s(L.target)){i.removeEventListener("click",g.current),v(),m.current=!1;return}const ee={originalEvent:L};p.current=!0,o.current=a&&L.button===0,y.current.clear(),!a||L.button!==0?W():(i.removeEventListener("click",g.current),g.current=W,i.addEventListener("click",g.current,{once:!0}))}else i.removeEventListener("click",g.current),v();m.current=!1},"handlePointerDown"),N=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const L of N)i.addEventListener(L,E,!0),i.addEventListener(L,A);const R=window.setTimeout(()=>{i.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(R),i.removeEventListener("pointerdown",j),i.removeEventListener("click",g.current);for(const L of N)i.removeEventListener(L,E,!0),i.removeEventListener(L,A)}},[i,d,a,o,c,s]),{onPointerDownCapture:yt(()=>m.current=!0,"onPointerDownCapture")}}yt(lx,"usePointerDownOutside");function rx(t,l=globalThis==null?void 0:globalThis.document){const i=fi(t),a=k.useRef(!1);return k.useEffect(()=>{const o=yt(c=>{c.target&&!a.current&&xd(G2,i,{originalEvent:c},{discrete:!1})},"handleFocus");return l.addEventListener("focusin",o),()=>l.removeEventListener("focusin",o)},[l,i]),{onFocusCapture:yt(()=>a.current=!0,"onFocusCapture"),onBlurCapture:yt(()=>a.current=!1,"onBlurCapture")}}yt(rx,"useFocusOutside");function If(){const t=new CustomEvent(qf);document.dispatchEvent(t)}yt(If,"dispatchUpdate");function xd(t,l,i,{discrete:a}){const o=i.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});l&&o.addEventListener(t,l,{once:!0}),a?ex(o,c):o.dispatchEvent(c)}yt(xd,"handleAndDispatchCustomEvent");var Q2=Object.defineProperty,Mt=(t,l)=>Q2(t,"name",{value:l,configurable:!0}),lf="focusScope.autoFocusOnMount",rf="focusScope.autoFocusOnUnmount",cy={bubbles:!1,cancelable:!0},Z2=k.forwardRef(Mt(function(l,i){const{loop:a=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:s,...d}=l,[m,p]=k.useState(null),y=fi(c),g=fi(s),v=k.useRef(null),S=mi(i,p),E=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(o){let j=function(W){if(E.paused||!m)return;const ee=W.target;m.contains(ee)?v.current=ee:el(v.current,{select:!0})},N=function(W){if(E.paused||!m)return;const ee=W.relatedTarget;ee!==null&&(m.contains(ee)||el(v.current,{select:!0}))},R=function(W){if(document.activeElement===document.body)for(const D of W)D.removedNodes.length>0&&el(m)};Mt(j,"handleFocusIn"),Mt(N,"handleFocusOut"),Mt(R,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",N);const L=new MutationObserver(R);return m&&L.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",N),L.disconnect()}}},[o,m,E.paused]),k.useEffect(()=>{if(m){fy.add(E);const j=document.activeElement;if(!m.contains(j)){const R=new CustomEvent(lf,cy);m.addEventListener(lf,y),m.dispatchEvent(R),R.defaultPrevented||(ix(cx(vd(m)),{select:!0}),document.activeElement===j&&el(m))}return()=>{m.removeEventListener(lf,y),setTimeout(()=>{const R=new CustomEvent(rf,cy);m.addEventListener(rf,g),m.dispatchEvent(R),R.defaultPrevented||el(j??document.body,{select:!0}),m.removeEventListener(rf,g),fy.remove(E)},0)}}},[m,y,g,E]);const A=k.useCallback(j=>{if(!a&&!o||E.paused)return;const N=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,R=document.activeElement;if(N&&R){const L=j.currentTarget,[W,ee]=ax(L);W&&ee?!j.shiftKey&&R===ee?(j.preventDefault(),a&&el(W,{select:!0})):j.shiftKey&&R===W&&(j.preventDefault(),a&&el(ee,{select:!0})):R===L&&j.preventDefault()}},[a,o,E.paused]);return b.jsx(pn.div,{tabIndex:-1,...d,ref:S,onKeyDown:A})},"FocusScope"));function ix(t,{select:l=!1}={}){const i=document.activeElement;for(const a of t)if(el(a,{select:l}),document.activeElement!==i)return}Mt(ix,"focusFirst");function ax(t){const l=vd(t),i=Vf(l,t),a=Vf(l.reverse(),t);return[i,a]}Mt(ax,"getTabbableEdges");function vd(t){const l=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Mt(a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;i.nextNode();)l.push(i.currentNode);return l}Mt(vd,"getTabbableCandidates");function Vf(t,l){const i=typeof l.checkVisibility=="function"&&l.checkVisibility({checkVisibilityCSS:!0});for(const a of t)if(!(i?!a.checkVisibility({checkVisibilityCSS:!0}):ux(a,{upTo:l})))return a}Mt(Vf,"findVisible");function ux(t,{upTo:l}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(l!==void 0&&t===l)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Mt(ux,"isHidden");function ox(t){return t instanceof HTMLInputElement&&"select"in t}Mt(ox,"isSelectableInput");function el(t,{select:l=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&ox(t)&&l&&t.select()}}Mt(el,"focus");var fy=sx();function sx(){let t=[];return{add(l){const i=t[0];l!==i&&(i==null||i.pause()),t=Yf(t,l),t.unshift(l)},remove(l){var i;t=Yf(t,l),(i=t[0])==null||i.resume()}}}Mt(sx,"createFocusScopesStack");function Yf(t,l){const i=[...t],a=i.indexOf(l);return a!==-1&&i.splice(a,1),i}Mt(Yf,"arrayRemove");function cx(t){return t.filter(l=>l.tagName!=="A")}Mt(cx,"removeLinks");var K2=Object.defineProperty,P2=(t,l)=>K2(t,"name",{value:l,configurable:!0}),$2=k.forwardRef(P2(function(l,i){var m;const{container:a,...o}=l,[c,s]=k.useState(!1);ci(()=>s(!0),[]);const d=a||c&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return d?Zb.createPortal(b.jsx(pn.div,{...o,ref:i}),d):null},"Portal")),J2=Object.defineProperty,tl=(t,l)=>J2(t,"name",{value:l,configurable:!0});function fx(t,l){return k.useReducer((i,a)=>l[i][a]??i,t)}tl(fx,"useStateMachine");var Sd=tl(t=>{const{present:l,children:i}=t,a=dx(l),o=typeof i=="function"?i({present:a.isPresent}):k.Children.only(i),c=hx(a.ref,mx(o));return typeof i=="function"||a.isPresent?k.cloneElement(o,{ref:c}):null},"Presence");function dx(t){const[l,i]=k.useState(),a=k.useRef(null),o=k.useRef(t),c=k.useRef("none"),s=k.useRef(void 0),d=t?"mounted":"unmounted",[m,p]=fx(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{m==="mounted"?(c.current=s.current??ri(a.current),s.current=void 0):c.current="none"},[m]),ci(()=>{const y=a.current,g=o.current;if(g!==t){const S=c.current,E=ri(y);t?(s.current=E,p("MOUNT")):E==="none"||(y==null?void 0:y.display)==="none"?p("UNMOUNT"):p(g&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),ci(()=>{if(l){let y;const g=l.ownerDocument.defaultView??window,v=tl(E=>{const j=ri(a.current).includes(CSS.escape(E.animationName));if(E.target===l&&j&&(p("ANIMATION_END"),!o.current)){const N=l.style.animationFillMode;l.style.animationFillMode="forwards",y=g.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=N)})}},"handleAnimationEnd"),S=tl(E=>{E.target===l&&(c.current=ri(a.current))},"handleAnimationStart");return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",v),l.addEventListener("animationend",v),()=>{g.clearTimeout(y),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",v),l.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:k.useCallback(y=>{if(y){const g=getComputedStyle(y);a.current=g,s.current=ri(g)}else a.current=null;i(y)},[])}}tl(dx,"usePresence");function Gf(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}tl(Gf,"setRef");function hx(...t){const l=k.useRef(t);return l.current=t,k.useCallback(i=>{const a=l.current;let o=!1;const c=a.map(s=>{const d=Gf(s,i);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let s=0;s<c.length;s++){const d=c[s];typeof d=="function"?d():Gf(a[s],null)}}},[])}tl(hx,"useStableComposedRefs");function ri(t){return(t==null?void 0:t.animationName)||"none"}tl(ri,"getAnimationName");function mx(t){var a,o;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,i=l&&"isReactWarning"in l&&l.isReactWarning;return i?t.ref:(l=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=l&&"isReactWarning"in l&&l.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}tl(mx,"getElementRef");var W2=Object.defineProperty,kd=(t,l)=>W2(t,"name",{value:l,configurable:!0}),to=0,jn=null;function ew(t){return wd(),t.children}kd(ew,"FocusGuards");function wd(){k.useEffect(()=>{jn||(jn={start:Ff(),end:Ff()});const{start:t,end:l}=jn;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==l&&document.body.insertAdjacentElement("beforeend",l),to++,()=>{to===1&&(jn==null||jn.start.remove(),jn==null||jn.end.remove(),jn=null),to=Math.max(0,to-1)}},[])}kd(wd,"useFocusGuards");function Ff(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}kd(Ff,"createFocusGuard");var Mn=function(){return Mn=Object.assign||function(l){for(var i,a=1,o=arguments.length;a<o;a++){i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(l[c]=i[c])}return l},Mn.apply(this,arguments)};function px(t,l){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&l.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)l.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(i[a[o]]=t[a[o]]);return i}function tw(t,l,i){if(i||arguments.length===2)for(var a=0,o=l.length,c;a<o;a++)(c||!(a in l))&&(c||(c=Array.prototype.slice.call(l,0,a)),c[a]=l[a]);return t.concat(c||Array.prototype.slice.call(l))}var go="right-scroll-bar-position",yo="width-before-scroll-bar",nw="with-scroll-bars-hidden",lw="--removed-body-scroll-bar-size";function af(t,l){return typeof t=="function"?t(l):t&&(t.current=l),t}function rw(t,l){var i=k.useState(function(){return{value:t,callback:l,facade:{get current(){return i.value},set current(a){var o=i.value;o!==a&&(i.value=a,i.callback(a,o))}}}})[0];return i.callback=l,i.facade}var iw=typeof window<"u"?k.useLayoutEffect:k.useEffect,dy=new WeakMap;function aw(t,l){var i=rw(null,function(a){return t.forEach(function(o){return af(o,a)})});return iw(function(){var a=dy.get(i);if(a){var o=new Set(a),c=new Set(t),s=i.current;o.forEach(function(d){c.has(d)||af(d,null)}),c.forEach(function(d){o.has(d)||af(d,s)})}dy.set(i,t)},[t]),i}function uw(t){return t}function ow(t,l){l===void 0&&(l=uw);var i=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(c){var s=l(c,a);return i.push(s),function(){i=i.filter(function(d){return d!==s})}},assignSyncMedium:function(c){for(a=!0;i.length;){var s=i;i=[],s.forEach(c)}i={push:function(d){return c(d)},filter:function(){return i}}},assignMedium:function(c){a=!0;var s=[];if(i.length){var d=i;i=[],d.forEach(c),s=i}var m=function(){var y=s;s=[],y.forEach(c)},p=function(){return Promise.resolve().then(m)};p(),i={push:function(y){s.push(y),p()},filter:function(y){return s=s.filter(y),i}}}};return o}function sw(t){t===void 0&&(t={});var l=ow(null);return l.options=Mn({async:!0,ssr:!1},t),l}var gx=function(t){var l=t.sideCar,i=px(t,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=l.read();if(!a)throw new Error("Sidecar medium not found");return k.createElement(a,Mn({},i))};gx.isSideCarExport=!0;function cw(t,l){return t.useMedium(l),gx}var yx=sw(),uf=function(){},Co=k.forwardRef(function(t,l){var i=k.useRef(null),a=k.useState({onScrollCapture:uf,onWheelCapture:uf,onTouchMoveCapture:uf}),o=a[0],c=a[1],s=t.forwardProps,d=t.children,m=t.className,p=t.removeScrollBar,y=t.enabled,g=t.shards,v=t.sideCar,S=t.noRelative,E=t.noIsolation,A=t.inert,j=t.allowPinchZoom,N=t.as,R=N===void 0?"div":N,L=t.gapMode,W=px(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=v,D=aw([i,l]),X=Mn(Mn({},W),o);return k.createElement(k.Fragment,null,y&&k.createElement(ee,{sideCar:yx,removeScrollBar:p,shards:g,noRelative:S,noIsolation:E,inert:A,setCallbacks:c,allowPinchZoom:!!j,lockRef:i,gapMode:L}),s?k.cloneElement(k.Children.only(d),Mn(Mn({},X),{ref:D})):k.createElement(R,Mn({},X,{className:m,ref:D}),d))});Co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Co.classNames={fullWidth:yo,zeroRight:go};var fw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function dw(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var l=fw();return l&&t.setAttribute("nonce",l),t}function hw(t,l){t.styleSheet?t.styleSheet.cssText=l:t.appendChild(document.createTextNode(l))}function mw(t){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(t)}var pw=function(){var t=0,l=null;return{add:function(i){t==0&&(l=dw())&&(hw(l,i),mw(l)),t++},remove:function(){t--,!t&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},gw=function(){var t=pw();return function(l,i){k.useEffect(function(){return t.add(l),function(){t.remove()}},[l&&i])}},bx=function(){var t=gw(),l=function(i){var a=i.styles,o=i.dynamic;return t(a,o),null};return l},yw={left:0,top:0,right:0,gap:0},of=function(t){return parseInt(t||"",10)||0},bw=function(t){var l=window.getComputedStyle(document.body),i=l[t==="padding"?"paddingLeft":"marginLeft"],a=l[t==="padding"?"paddingTop":"marginTop"],o=l[t==="padding"?"paddingRight":"marginRight"];return[of(i),of(a),of(o)]},xw=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return yw;var l=bw(t),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,a-i+l[2]-l[0])}},vw=bx(),si="data-scroll-locked",Sw=function(t,l,i,a){var o=t.left,c=t.top,s=t.right,d=t.gap;return i===void 0&&(i="margin"),`
305
- .`.concat(nw,` {
304
+ */const md=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Ex(t){var l,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(l=0;l<o;l++)t[l]&&(i=Ex(t[l]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function dk(){for(var t,l,i=0,a="",o=arguments.length;i<o;i++)(t=arguments[i])&&(l=Ex(t))&&(a&&(a+=" "),a+=l);return a}const hk=(t,l)=>{const i=new Array(t.length+l.length);for(let a=0;a<t.length;a++)i[a]=t[a];for(let a=0;a<l.length;a++)i[t.length+a]=l[a];return i},mk=(t,l)=>({classGroupId:t,validator:l}),Cx=(t=new Map,l=null,i)=>({nextPart:t,validators:l,classGroupId:i}),bo="-",Jg=[],pk="arbitrary..",gk=t=>{const l=xk(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return yk(s);const d=s.split(bo),m=d[0]===""&&d.length>1?1:0;return Tx(d,m,l)},getConflictingClassGroupIds:(s,d)=>{if(d){const m=a[s],p=i[s];return m?p?hk(p,m):m:p||Jg}return i[s]||Jg}}},Tx=(t,l,i)=>{if(t.length-l===0)return i.classGroupId;const o=t[l],c=i.nextPart.get(o);if(c){const p=Tx(t,l+1,c);if(p)return p}const s=i.validators;if(s===null)return;const d=l===0?t.join(bo):t.slice(l).join(bo),m=s.length;for(let p=0;p<m;p++){const y=s[p];if(y.validator(d))return y.classGroupId}},yk=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=t.slice(1,-1),i=l.indexOf(":"),a=l.slice(0,i);return a?pk+a:void 0})(),xk=t=>{const{theme:l,classGroups:i}=t;return bk(i,l)},bk=(t,l)=>{const i=Cx();for(const a in t){const o=t[a];pd(o,i,a,l)}return i},pd=(t,l,i,a)=>{const o=t.length;for(let c=0;c<o;c++){const s=t[c];vk(s,l,i,a)}},vk=(t,l,i,a)=>{if(typeof t=="string"){Sk(t,l,i);return}if(typeof t=="function"){kk(t,l,i,a);return}wk(t,l,i,a)},Sk=(t,l,i)=>{const a=t===""?l:Ax(l,t);a.classGroupId=i},kk=(t,l,i,a)=>{if(Ek(t)){pd(t(a),l,i,a);return}l.validators===null&&(l.validators=[]),l.validators.push(mk(i,t))},wk=(t,l,i,a)=>{const o=Object.entries(t),c=o.length;for(let s=0;s<c;s++){const[d,m]=o[s];pd(m,Ax(l,d),i,a)}},Ax=(t,l)=>{let i=t;const a=l.split(bo),o=a.length;for(let c=0;c<o;c++){const s=a[c];let d=i.nextPart.get(s);d||(d=Cx(),i.nextPart.set(s,d)),i=d}return i},Ek=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Ck=t=>{if(t<1)return{get:()=>{},set:()=>{}};let l=0,i=Object.create(null),a=Object.create(null);const o=(c,s)=>{i[c]=s,l++,l>t&&(l=0,a=i,i=Object.create(null))};return{get(c){let s=i[c];if(s!==void 0)return s;if((s=a[c])!==void 0)return o(c,s),s},set(c,s){c in i?i[c]=s:o(c,s)}}},Rf="!",Wg=":",Tk=[],ey=(t,l,i,a,o)=>({modifiers:t,hasImportantModifier:l,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),Ak=t=>{const{prefix:l,experimentalParseClassName:i}=t;let a=o=>{const c=[];let s=0,d=0,m=0,p;const y=o.length;for(let A=0;A<y;A++){const j=o[A];if(s===0&&d===0){if(j===Wg){c.push(o.slice(m,A)),m=A+1;continue}if(j==="/"){p=A;continue}}j==="["?s++:j==="]"?s--:j==="("?d++:j===")"&&d--}const g=c.length===0?o:o.slice(m);let v=g,S=!1;g.endsWith(Rf)?(v=g.slice(0,-1),S=!0):g.startsWith(Rf)&&(v=g.slice(1),S=!0);const E=p&&p>m?p-m:void 0;return ey(c,S,v,E)};if(l){const o=l+Wg,c=a;a=s=>s.startsWith(o)?c(s.slice(o.length)):ey(Tk,!1,s,void 0,!0)}if(i){const o=a;a=c=>i({className:c,parseClassName:o})}return a},Nk=t=>{const l=new Map;return t.orderSensitiveModifiers.forEach((i,a)=>{l.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let c=0;c<i.length;c++){const s=i[c],d=s[0]==="[",m=l.has(s);d||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(s)):o.push(s)}return o.length>0&&(o.sort(),a.push(...o)),a}},jk=t=>({cache:Ck(t.cacheSize),parseClassName:Ak(t),sortModifiers:Nk(t),postfixLookupClassGroupIds:zk(t),...gk(t)}),zk=t=>{const l=Object.create(null),i=t.postfixLookupClassGroups;if(i)for(let a=0;a<i.length;a++)l[i[a]]=!0;return l},Mk=/\s+/,_k=(t,l)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:c,postfixLookupClassGroupIds:s}=l,d=[],m=t.trim().split(Mk);let p="";for(let y=m.length-1;y>=0;y-=1){const g=m[y],{isExternal:v,modifiers:S,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:j}=i(g);if(v){p=g+(p.length>0?" "+p:p);continue}let N=!!j,L;if(N){const X=A.substring(0,j);L=a(X);const V=L&&s[L]?a(A):void 0;V&&V!==L&&(L=V,N=!1)}else L=a(A);if(!L){if(!N){p=g+(p.length>0?" "+p:p);continue}if(L=a(A),!L){p=g+(p.length>0?" "+p:p);continue}N=!1}const R=S.length===0?"":S.length===1?S[0]:c(S).join(":"),K=E?R+Rf:R,ee=K+L;if(d.indexOf(ee)>-1)continue;d.push(ee);const D=o(L,N);for(let X=0;X<D.length;++X){const V=D[X];d.push(K+V)}p=g+(p.length>0?" "+p:p)}return p},Dk=(...t)=>{let l=0,i,a,o="";for(;l<t.length;)(i=t[l++])&&(a=Nx(i))&&(o&&(o+=" "),o+=a);return o},Nx=t=>{if(typeof t=="string")return t;let l,i="";for(let a=0;a<t.length;a++)t[a]&&(l=Nx(t[a]))&&(i&&(i+=" "),i+=l);return i},Ok=(t,...l)=>{let i,a,o,c;const s=m=>{const p=l.reduce((y,g)=>g(y),t());return i=jk(p),a=i.cache.get,o=i.cache.set,c=d,d(m)},d=m=>{const p=a(m);if(p)return p;const y=_k(m,i);return o(m,y),y};return c=s,(...m)=>c(Dk(...m))},Rk=[],mt=t=>{const l=i=>i[t]||Rk;return l.isThemeGetter=!0,l},jx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,zx=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lk=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Uk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Bk=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Hk=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qk=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ik=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,zl=t=>Lk.test(t),je=t=>!!t&&!Number.isNaN(Number(t)),Nn=t=>!!t&&Number.isInteger(Number(t)),ef=t=>t.endsWith("%")&&je(t.slice(0,-1)),Wn=t=>Uk.test(t),Mx=()=>!0,Vk=t=>Bk.test(t)&&!Hk.test(t),gd=()=>!1,Yk=t=>qk.test(t),Gk=t=>Ik.test(t),Fk=t=>!fe(t)&&!de(t),Xk=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Qk=t=>Dl(t,Ox,gd),fe=t=>jx.test(t),Wl=t=>Dl(t,Rx,Vk),ty=t=>Dl(t,t2,je),Zk=t=>Dl(t,Ux,Mx),Kk=t=>Dl(t,Lx,gd),ny=t=>Dl(t,_x,gd),Pk=t=>Dl(t,Dx,Gk),Ju=t=>Dl(t,Bx,Yk),de=t=>zx.test(t),fa=t=>ur(t,Rx),$k=t=>ur(t,Lx),ly=t=>ur(t,_x),Jk=t=>ur(t,Ox),Wk=t=>ur(t,Dx),Wu=t=>ur(t,Bx,!0),e2=t=>ur(t,Ux,!0),Dl=(t,l,i)=>{const a=jx.exec(t);return a?a[1]?l(a[1]):i(a[2]):!1},ur=(t,l,i=!1)=>{const a=zx.exec(t);return a?a[1]?l(a[1]):i:!1},_x=t=>t==="position"||t==="percentage",Dx=t=>t==="image"||t==="url",Ox=t=>t==="length"||t==="size"||t==="bg-size",Rx=t=>t==="length",t2=t=>t==="number",Lx=t=>t==="family-name",Ux=t=>t==="number"||t==="weight",Bx=t=>t==="shadow",n2=()=>{const t=mt("color"),l=mt("font"),i=mt("text"),a=mt("font-weight"),o=mt("tracking"),c=mt("leading"),s=mt("breakpoint"),d=mt("container"),m=mt("spacing"),p=mt("radius"),y=mt("shadow"),g=mt("inset-shadow"),v=mt("text-shadow"),S=mt("drop-shadow"),E=mt("blur"),A=mt("perspective"),j=mt("aspect"),N=mt("ease"),L=mt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...K(),de,fe],D=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],V=()=>[de,fe,m],ae=()=>[zl,"full","auto",...V()],H=()=>[Nn,"none","subgrid",de,fe],re=()=>["auto",{span:["full",Nn,de,fe]},Nn,de,fe],$=()=>[Nn,"auto",de,fe],xe=()=>["auto","min","max","fr",de,fe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...V()],Q=()=>[zl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],ce=()=>[zl,"screen","full","dvw","lvw","svw","min","max","fit",...V()],we=()=>[zl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],T=()=>[t,de,fe],_=()=>[...K(),ly,ny,{position:[de,fe]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",Jk,Qk,{size:[de,fe]}],te=()=>[ef,fa,Wl],J=()=>["","none","full",p,de,fe],le=()=>["",je,fa,Wl],he=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],pe=()=>[je,ef,ly,ny],at=()=>["","none",E,de,fe],_t=()=>["none",je,de,fe],wn=()=>["none",je,de,fe],rl=()=>[je,de,fe],Dt=()=>[zl,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[Mx],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[Fk],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",je],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",zl,fe,de,j]}],container:["container"],"container-type":[{"@container":["","normal","size",de,fe]}],"container-named":[Xk],columns:[{columns:[je,fe,de,d]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Nn,"auto",de,fe]}],basis:[{basis:[zl,"full","auto",d,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,zl,"auto","initial","none",fe]}],grow:[{grow:["",je,de,fe]}],shrink:[{shrink:["",je,de,fe]}],order:[{order:[Nn,"first","last","none",de,fe]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":xe()}],"auto-rows":[{"auto-rows":xe()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...we()]}],"min-block-size":[{"min-block":["auto",...we()]}],"max-block-size":[{"max-block":["none",...we()]}],w:[{w:[d,"screen",...Q()]}],"min-w":[{"min-w":[d,"screen","none",...Q()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[s]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",i,fa,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,e2,Zk]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ef,fe]}],"font-family":[{font:[$k,Kk,l]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,fe]}],"line-clamp":[{"line-clamp":[je,"none",de,ty]}],leading:[{leading:[c,...V()]}],"list-image":[{"list-image":["none",de,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...he(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",de,Wl]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[je,"auto",de,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"tab-size":[{tab:[Nn,de,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Nn,de,fe],radial:["",de,fe],conic:[Nn,de,fe]},Wk,Pk]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...he(),"hidden","none"]}],"divide-style":[{divide:[...he(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...he(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,de,fe]}],"outline-w":[{outline:["",je,fa,Wl]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",y,Wu,Ju]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",g,Wu,Ju]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[je,Wl]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",v,Wu,Ju]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[je,de,fe]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":pe()}],"mask-image-linear-to-pos":[{"mask-linear-to":pe()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":pe()}],"mask-image-t-to-pos":[{"mask-t-to":pe()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":pe()}],"mask-image-r-to-pos":[{"mask-r-to":pe()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":pe()}],"mask-image-b-to-pos":[{"mask-b-to":pe()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":pe()}],"mask-image-l-to-pos":[{"mask-l-to":pe()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":pe()}],"mask-image-x-to-pos":[{"mask-x-to":pe()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":pe()}],"mask-image-y-to-pos":[{"mask-y-to":pe()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[de,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":pe()}],"mask-image-radial-to-pos":[{"mask-radial-to":pe()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":pe()}],"mask-image-conic-to-pos":[{"mask-conic-to":pe()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,fe]}],filter:[{filter:["","none",de,fe]}],blur:[{blur:at()}],brightness:[{brightness:[je,de,fe]}],contrast:[{contrast:[je,de,fe]}],"drop-shadow":[{"drop-shadow":["","none",S,Wu,Ju]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",je,de,fe]}],"hue-rotate":[{"hue-rotate":[je,de,fe]}],invert:[{invert:["",je,de,fe]}],saturate:[{saturate:[je,de,fe]}],sepia:[{sepia:["",je,de,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",de,fe]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[je,de,fe]}],"backdrop-contrast":[{"backdrop-contrast":[je,de,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,de,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,de,fe]}],"backdrop-invert":[{"backdrop-invert":["",je,de,fe]}],"backdrop-opacity":[{"backdrop-opacity":[je,de,fe]}],"backdrop-saturate":[{"backdrop-saturate":[je,de,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,de,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",de,fe]}],ease:[{ease:["linear","initial",N,de,fe]}],delay:[{delay:[je,de,fe]}],animate:[{animate:["none",L,de,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,de,fe]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:_t()}],"rotate-x":[{"rotate-x":_t()}],"rotate-y":[{"rotate-y":_t()}],"rotate-z":[{"rotate-z":_t()}],scale:[{scale:wn()}],"scale-x":[{"scale-x":wn()}],"scale-y":[{"scale-y":wn()}],"scale-z":[{"scale-z":wn()}],"scale-3d":["scale-3d"],skew:[{skew:rl()}],"skew-x":[{"skew-x":rl()}],"skew-y":[{"skew-y":rl()}],transform:[{transform:[de,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Dt()}],"translate-x":[{"translate-x":Dt()}],"translate-y":[{"translate-y":Dt()}],"translate-z":[{"translate-z":Dt()}],"translate-none":["translate-none"],zoom:[{zoom:[Nn,de,fe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,fe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[je,fa,Wl,ty]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},l2=Ok(n2);function se(...t){return l2(dk(t))}const r2={"needs-input":{label:"Needs Input",className:"bg-status-blocked/20 text-status-blocked border-status-blocked/30"},active:{label:"Running",className:"bg-status-running/20 text-status-running border-status-running/30",pulse:!0},completed:{label:"Done",className:"bg-muted text-muted-foreground border-border"}};function i2(t,l){return l.has(t.id)?"needs-input":t.mode==="live"||t.alive?"active":"completed"}function a2({status:t,className:l}){const i=r2[t];return x.jsxs("span",{className:se("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",i.className,l),children:[i.pulse&&x.jsx("span",{className:"size-1.5 animate-pulse rounded-full bg-current"}),i.label]})}function u2(t){const l=Date.now(),i=new Date(t).getTime(),a=Math.floor((l-i)/1e3);if(a<60)return"just now";const o=Math.floor(a/60);if(o<60)return`${o}m ago`;const c=Math.floor(o/60);if(c<24)return`${c}h ago`;const s=Math.floor(c/24);return s<7?`${s}d ago`:new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function o2(t){const l=t.replace(/\/+$/,"").split("/");return l[l.length-1]??t}function s2({session:t,pendingSessionIds:l,selected:i,onSelect:a}){const o=i2(t,l),c=t.title??"Untitled session";return x.jsxs("button",{onClick:()=>a(t.id),className:se("flex w-full flex-col gap-1.5 rounded-lg border p-3 text-left transition-colors","hover:bg-accent/50",i?"border-brand/50 bg-brand/5":"border-transparent"),children:[x.jsxs("div",{className:"flex items-start justify-between gap-2",children:[x.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:c}),x.jsx(a2,{status:o,className:"shrink-0"})]}),x.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&x.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&x.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:o2(t.cwd)}),x.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?u2(t.updatedAt):""})]})]})}const c2=[{id:"sessions",label:"Sessions",icon:x.jsx(ek,{className:"size-4"})},{id:"memory",label:"Memory",icon:x.jsx(fd,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:x.jsx(VS,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:x.jsx(yx,{className:"size-4"})},{id:"settings",label:"Settings",icon:x.jsx(Sx,{className:"size-4"})}];function f2({sessions:t,pendingSessionIds:l,selectedSessionId:i,onSelectSession:a,activeNav:o,onNavChange:c,collapsed:s,onToggleCollapse:d}){return x.jsxs("aside",{className:se("flex h-full shrink-0 flex-col border-r bg-card transition-[width] duration-200",s?"w-14":"w-72"),children:[x.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!s&&x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),x.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),x.jsx("button",{onClick:d,className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",title:s?"Expand sidebar":"Collapse sidebar",children:s?x.jsx(lk,{className:"size-4"}):x.jsx(nk,{className:"size-4"})})]}),x.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:c2.map(m=>x.jsxs("button",{onClick:()=>c(m.id),className:se("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm transition-colors",o===m.id?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),title:s?m.label:void 0,children:[m.icon,!s&&x.jsx("span",{children:m.label})]},m.id))}),o==="sessions"&&!s&&x.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?x.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):x.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(m=>x.jsx(s2,{session:m,pendingSessionIds:l,selected:i===m.id,onSelect:a},m.id))})})]})}var ry=1,d2=.9,h2=.8,m2=.17,tf=.1,nf=.999,p2=.9999,g2=.99,y2=/[\\\/_+.#"@\[\(\{&]/,x2=/[\\\/_+.#"@\[\(\{&]/g,b2=/[\s-]/,Hx=/[\s-]/g;function Lf(t,l,i,a,o,c,s){if(c===l.length)return o===t.length?ry:g2;var d=`${o},${c}`;if(s[d]!==void 0)return s[d];for(var m=a.charAt(c),p=i.indexOf(m,o),y=0,g,v,S,E;p>=0;)g=Lf(t,l,i,a,p+1,c+1,s),g>y&&(p===o?g*=ry:y2.test(t.charAt(p-1))?(g*=h2,S=t.slice(o,p-1).match(x2),S&&o>0&&(g*=Math.pow(nf,S.length))):b2.test(t.charAt(p-1))?(g*=d2,E=t.slice(o,p-1).match(Hx),E&&o>0&&(g*=Math.pow(nf,E.length))):(g*=m2,o>0&&(g*=Math.pow(nf,p-o))),t.charAt(p)!==l.charAt(c)&&(g*=p2)),(g<tf&&i.charAt(p-1)===a.charAt(c+1)||a.charAt(c+1)===a.charAt(c)&&i.charAt(p-1)!==a.charAt(c))&&(v=Lf(t,l,i,a,p+1,c+2,s),v*tf>g&&(g=v*tf)),g>y&&(y=g),p=i.indexOf(m,p+1);return s[d]=y,y}function iy(t){return t.toLowerCase().replace(Hx," ")}function v2(t,l,i){return t=i&&i.length>0?`${t+" "+i.join(" ")}`:t,Lf(t,l,iy(t),iy(l),0,0,{})}var S2=Object.defineProperty,hi=(t,l)=>S2(t,"name",{value:l,configurable:!0}),qx=!!(typeof window<"u"&&window.document&&window.document.createElement);function nr(t,l,{checkForDefaultPrevented:i=!0}={}){return hi(function(o){if(t==null||t(o),i===!1||!o||!o.defaultPrevented)return l==null?void 0:l(o)},"handleEvent")}hi(nr,"composeEventHandlers");function k2(t){var l;if(!qx)throw new Error("Cannot access window outside of the DOM");return((l=t==null?void 0:t.ownerDocument)==null?void 0:l.defaultView)??window}hi(k2,"getOwnerWindow");function Uf(t){if(!qx)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}hi(Uf,"getOwnerDocument");function Ix(t,l=!1){const{activeElement:i}=Uf(t);if(!(i!=null&&i.nodeName))return null;if(Vx(i)&&i.contentDocument)return Ix(i.contentDocument.body,l);if(l){const a=i.getAttribute("aria-activedescendant");if(a){const o=Uf(i).getElementById(a);if(o)return o}}return i}hi(Ix,"getActiveElement");function Vx(t){return t.tagName==="IFRAME"}hi(Vx,"isFrame");var w2=Object.defineProperty,yd=(t,l)=>w2(t,"name",{value:l,configurable:!0});function Bf(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}yd(Bf,"setRef");function rr(...t){return l=>{let i=!1;const a=t.map(o=>{const c=Bf(o,l);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<a.length;o++){const c=a[o];typeof c=="function"?c():Bf(t[o],null)}}}}yd(rr,"composeRefs");function mi(...t){return k.useCallback(rr(...t),t)}yd(mi,"useComposedRefs");var E2=Object.defineProperty,mn=(t,l)=>E2(t,"name",{value:l,configurable:!0});function C2(t,l){const i=k.createContext(l);i.displayName=t+"Context";const a=mn(c=>{const{children:s,...d}=c,m=k.useMemo(()=>d,Object.values(d));return x.jsx(i.Provider,{value:m,children:s})},"Provider");a.displayName=t+"Provider";function o(c,s={}){const{optional:d=!1}=s,m=k.useContext(i);if(m)return m;if(l!==void 0)return l;if(!d)throw new Error(`\`${c}\` must be used within \`${t}\``)}return mn(o,"useContext"),[a,o]}mn(C2,"createContext");function Yx(t,l=[]){let i=[];function a(c,s){const d=k.createContext(s);d.displayName=c+"Context";const m=i.length;i=[...i,s];const p=mn(g=>{var N;const{scope:v,children:S,...E}=g,A=((N=v==null?void 0:v[t])==null?void 0:N[m])||d,j=k.useMemo(()=>E,Object.values(E));return x.jsx(A.Provider,{value:j,children:S})},"Provider");p.displayName=c+"Provider";function y(g,v,S={}){var N;const{optional:E=!1}=S,A=((N=v==null?void 0:v[t])==null?void 0:N[m])||d,j=k.useContext(A);if(j)return j;if(s!==void 0)return s;if(!E)throw new Error(`\`${g}\` must be used within \`${c}\``)}return mn(y,"useContext"),[p,y]}mn(a,"createContext");const o=mn(()=>{const c=i.map(s=>k.createContext(s));return mn(function(d){const m=(d==null?void 0:d[t])||c;return k.useMemo(()=>({[`__scope${t}`]:{...d,[t]:m}}),[d,m])},"useScope")},"createScope");return o.scopeName=t,[a,Gx(o,...l)]}mn(Yx,"createContextScope");function Gx(...t){const l=t[0];if(t.length===1)return l;const i=mn(()=>{const a=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return mn(function(c){const s=a.reduce((d,{useScope:m,scopeName:p})=>{const g=m(c)[`__scope${p}`];return{...d,...g}},{});return k.useMemo(()=>({[`__scope${l.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return i.scopeName=l.scopeName,i}mn(Gx,"composeContextScopes");var ci=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},T2=Object.defineProperty,A2=(t,l)=>T2(t,"name",{value:l,configurable:!0}),N2=Aa[" useId ".trim().toString()]||(()=>{}),j2=0;function _n(t){const[l,i]=k.useState(N2());return ci(()=>{t||i(a=>a??String(j2++))},[t]),t||(l?`radix-${l}`:"")}A2(_n,"useId");var z2=Object.defineProperty,M2=(t,l)=>z2(t,"name",{value:l,configurable:!0}),ay=Aa[" useEffectEvent ".trim().toString()],uy=Aa[" useInsertionEffect ".trim().toString()];function Fx(t){if(typeof ay=="function")return ay(t);const l=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof uy=="function"?uy(()=>{l.current=t}):ci(()=>{l.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=l.current)==null?void 0:a.call(l,...i)}),[])}M2(Fx,"useEffectEvent");var _2=Object.defineProperty,Na=(t,l)=>_2(t,"name",{value:l,configurable:!0}),D2=Aa[" useInsertionEffect ".trim().toString()]||ci;function Xx({prop:t,defaultProp:l,onChange:i=Na(()=>{},"onChange"),caller:a}){const[o,c,s]=Qx({defaultProp:l,onChange:i}),d=t!==void 0,m=d?t:o,p=k.useCallback(y=>{var g;if(d){const v=Zx(y)?y(t):y;v!==t&&((g=s.current)==null||g.call(s,v))}else c(y)},[d,t,c,s]);return[m,p]}Na(Xx,"useControllableState");function Qx({defaultProp:t,onChange:l}){const[i,a]=k.useState(t),o=k.useRef(i),c=k.useRef(l);return D2(()=>{c.current=l},[l]),k.useEffect(()=>{var s;o.current!==i&&((s=c.current)==null||s.call(c,i),o.current=i)},[i,o]),[i,a,c]}Na(Qx,"useUncontrolledState");function Zx(t){return typeof t=="function"}Na(Zx,"isFunction");var oy=Symbol("RADIX:SYNC_STATE");function O2(t,l,i,a){const{prop:o,defaultProp:c,onChange:s,caller:d}=l,m=o!==void 0,p=Fx(s),y=[{...i,state:c}];a&&y.push(a);const[g,v]=k.useReducer((j,N)=>{if(N.type===oy)return{...j,state:N.state};const L=t(j,N);return m&&!Object.is(L.state,j.state)&&p(L.state),L},...y),S=g.state,E=k.useRef(S);k.useEffect(()=>{E.current!==S&&(E.current=S,m||p(S))},[S,E,m]);const A=k.useMemo(()=>o!==void 0?{...g,state:o}:g,[g,o]);return k.useEffect(()=>{m&&!Object.is(o,g.state)&&v({type:oy,state:o})},[o,g.state,m]),[A,v]}Na(O2,"useControllableStateReducer");var Kx=mx(),R2=Object.defineProperty,kn=(t,l)=>R2(t,"name",{value:l,configurable:!0});function xd(t){const l=k.forwardRef((i,a)=>{let{children:o,...c}=i,s=null,d=!1;const m=[];Hf(o)&&typeof eo=="function"&&(o=eo(o._payload)),k.Children.forEach(o,v=>{var S;if(Wx(v)){d=!0;const E=v;let A="child"in E.props?E.props.child:E.props.children;Hf(A)&&typeof eo=="function"&&(A=eo(A._payload)),s=U2(E,A),m.push((S=s==null?void 0:s.props)==null?void 0:S.children)}else m.push(v)}),s?s=k.cloneElement(s,void 0,m):!d&&k.Children.count(o)===1&&k.isValidElement(o)&&(s=o);const p=s?Jx(s):void 0,y=mi(a,p);if(!s){if(o||o===0)throw new Error(d?q2(t):H2(t));return o}const g=$x(c,s.props??{});return s.type!==k.Fragment&&(g.ref=a?y:p),k.cloneElement(s,g)});return l.displayName=`${t}.Slot`,l}kn(xd,"createSlot");var Px=Symbol.for("radix.slottable");function L2(t){const l=kn(i=>"child"in i?i.children(i.child):i.children,"Slottable");return l.displayName=`${t}.Slottable`,l.__radixId=Px,l}kn(L2,"createSlottable");var U2=kn((t,l)=>{if("child"in t.props){const i=t.props.child;return k.isValidElement(i)?k.cloneElement(i,void 0,t.props.children(i.props.children)):null}return k.isValidElement(l)?l:null},"getSlottableElementFromSlottable");function $x(t,l){const i={...l};for(const a in l){const o=t[a],c=l[a];/^on[A-Z]/.test(a)?o&&c?i[a]=(...d)=>{const m=c(...d);return o(...d),m}:o&&(i[a]=o):a==="style"?i[a]={...o,...c}:a==="className"&&(i[a]=[o,c].filter(Boolean).join(" "))}return{...t,...i}}kn($x,"mergeProps");function Jx(t){var a,o;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,i=l&&"isReactWarning"in l&&l.isReactWarning;return i?t.ref:(l=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=l&&"isReactWarning"in l&&l.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}kn(Jx,"getElementRef");function Wx(t){return k.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Px}kn(Wx,"isSlottable");var B2=Symbol.for("react.lazy");function Hf(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===B2&&"_payload"in t&&eb(t._payload)}kn(Hf,"isLazyComponent");function eb(t){return typeof t=="object"&&t!==null&&"then"in t}kn(eb,"isPromiseLike");var H2=kn(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),q2=kn(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),eo=Aa[" use ".trim().toString()],I2=Object.defineProperty,V2=(t,l)=>I2(t,"name",{value:l,configurable:!0}),Y2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pn=Y2.reduce((t,l)=>{const i=xd(`Primitive.${l}`),a=k.forwardRef((o,c)=>{const{asChild:s,...d}=o,m=s?i:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(m,{...d,ref:c})});return a.displayName=`Primitive.${l}`,{...t,[l]:a}},{});function tb(t,l){t&&Kx.flushSync(()=>t.dispatchEvent(l))}V2(tb,"dispatchDiscreteCustomEvent");var G2=Object.defineProperty,F2=(t,l)=>G2(t,"name",{value:l,configurable:!0});function fi(t){const l=k.useRef(t);return k.useEffect(()=>{l.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=l.current)==null?void 0:a.call(l,...i)}),[])}F2(fi,"useCallbackRef");var X2=Object.defineProperty,yt=(t,l)=>X2(t,"name",{value:l,configurable:!0}),qf="dismissableLayer.update",Q2="dismissableLayer.pointerDownOutside",Z2="dismissableLayer.focusOutside",sy,nb=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),K2=k.forwardRef(yt(function(l,i){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...y}=l,g=k.useContext(nb),[v,S]=k.useState(null),E=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,A]=k.useState({}),j=mi(i,S),N=Array.from(g.layers),[L]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),R=L?N.indexOf(L):-1,K=v?N.indexOf(v):-1,ee=g.layersWithOutsidePointerEventsDisabled.size>0,D=K>=R,X=k.useRef(!1),V=rb($=>{s==null||s($),m==null||m($),$.defaultPrevented||p==null||p()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:X,dismissableSurfaces:g.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback($=>{if(!($ instanceof Node))return!1;const xe=[...g.branches].some(ue=>ue.contains($));return D&&!xe},[g.branches,D])}),ae=ib($=>{if(o&&X.current)return;const xe=$.target;[...g.branches].some(ne=>ne.contains(xe))||(d==null||d($),m==null||m($),$.defaultPrevented||p==null||p())},E),H=v?K===N.length-1:!1,re=fi($=>{$.key==="Escape"&&(c==null||c($),!$.defaultPrevented&&p&&($.preventDefault(),p()))});return k.useEffect(()=>{if(H)return E.addEventListener("keydown",re,{capture:!0}),()=>E.removeEventListener("keydown",re,{capture:!0})},[E,H,re]),k.useEffect(()=>{if(v)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(sy=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),If(),()=>{a&&(g.layersWithOutsidePointerEventsDisabled.delete(v),g.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=sy))}},[v,E,a,g]),k.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),If())},[v,g]),k.useEffect(()=>{const $=yt(()=>A({}),"handleUpdate");return document.addEventListener(qf,$),()=>document.removeEventListener(qf,$)},[]),x.jsx(pn.div,{...y,ref:j,style:{pointerEvents:ee?D?"auto":"none":void 0,...l.style},onFocusCapture:nr(l.onFocusCapture,ae.onFocusCapture),onBlurCapture:nr(l.onBlurCapture,ae.onBlurCapture),onPointerDownCapture:nr(l.onPointerDownCapture,V.onPointerDownCapture)})},"DismissableLayer"));function lb(){const t=k.useContext(nb),[l,i]=k.useState(null);return k.useEffect(()=>{if(l)return t.dismissableSurfaces.add(l),()=>{t.dismissableSurfaces.delete(l)}},[l,t.dismissableSurfaces]),i}yt(lb,"useDismissableLayerSurface");var P2=yt(()=>!0,"IS_TRUE");function rb(t,l){const{ownerDocument:i=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:c,shouldHandlePointerDownOutside:s=P2}=l,d=fi(t),m=k.useRef(!1),p=k.useRef(!1),y=k.useRef(new Map),g=k.useRef(()=>{});return k.useEffect(()=>{function v(){p.current=!1,o.current=!1,y.current.clear()}yt(v,"resetOutsideInteraction");function S(){return Array.from(y.current.values()).some(Boolean)}yt(S,"isOutsideInteractionIntercepted");function E(R){if(!p.current)return;const K=R.target;K instanceof Node&&[...c].some(D=>D.contains(K))||y.current.set(R.type,!0),R.type==="click"&&window.setTimeout(()=>{p.current&&g.current()},0)}yt(E,"handleInteractionCapture");function A(R){p.current&&y.current.set(R.type,!1)}yt(A,"handleInteractionBubble");const j=yt(R=>{if(R.target&&!m.current){let K=function(){i.removeEventListener("click",g.current);const D=S();v(),D||bd(Q2,d,ee,{discrete:!0})};if(yt(K,"handleAndDispatchPointerDownOutsideEvent"),!s(R.target)){i.removeEventListener("click",g.current),v(),m.current=!1;return}const ee={originalEvent:R};p.current=!0,o.current=a&&R.button===0,y.current.clear(),!a||R.button!==0?K():(i.removeEventListener("click",g.current),g.current=K,i.addEventListener("click",g.current,{once:!0}))}else i.removeEventListener("click",g.current),v();m.current=!1},"handlePointerDown"),N=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const R of N)i.addEventListener(R,E,!0),i.addEventListener(R,A);const L=window.setTimeout(()=>{i.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(L),i.removeEventListener("pointerdown",j),i.removeEventListener("click",g.current);for(const R of N)i.removeEventListener(R,E,!0),i.removeEventListener(R,A)}},[i,d,a,o,c,s]),{onPointerDownCapture:yt(()=>m.current=!0,"onPointerDownCapture")}}yt(rb,"usePointerDownOutside");function ib(t,l=globalThis==null?void 0:globalThis.document){const i=fi(t),a=k.useRef(!1);return k.useEffect(()=>{const o=yt(c=>{c.target&&!a.current&&bd(Z2,i,{originalEvent:c},{discrete:!1})},"handleFocus");return l.addEventListener("focusin",o),()=>l.removeEventListener("focusin",o)},[l,i]),{onFocusCapture:yt(()=>a.current=!0,"onFocusCapture"),onBlurCapture:yt(()=>a.current=!1,"onBlurCapture")}}yt(ib,"useFocusOutside");function If(){const t=new CustomEvent(qf);document.dispatchEvent(t)}yt(If,"dispatchUpdate");function bd(t,l,i,{discrete:a}){const o=i.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});l&&o.addEventListener(t,l,{once:!0}),a?tb(o,c):o.dispatchEvent(c)}yt(bd,"handleAndDispatchCustomEvent");var $2=Object.defineProperty,Mt=(t,l)=>$2(t,"name",{value:l,configurable:!0}),lf="focusScope.autoFocusOnMount",rf="focusScope.autoFocusOnUnmount",cy={bubbles:!1,cancelable:!0},J2=k.forwardRef(Mt(function(l,i){const{loop:a=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:s,...d}=l,[m,p]=k.useState(null),y=fi(c),g=fi(s),v=k.useRef(null),S=mi(i,p),E=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(o){let j=function(K){if(E.paused||!m)return;const ee=K.target;m.contains(ee)?v.current=ee:el(v.current,{select:!0})},N=function(K){if(E.paused||!m)return;const ee=K.relatedTarget;ee!==null&&(m.contains(ee)||el(v.current,{select:!0}))},L=function(K){if(document.activeElement===document.body)for(const D of K)D.removedNodes.length>0&&el(m)};Mt(j,"handleFocusIn"),Mt(N,"handleFocusOut"),Mt(L,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",N);const R=new MutationObserver(L);return m&&R.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",N),R.disconnect()}}},[o,m,E.paused]),k.useEffect(()=>{if(m){fy.add(E);const j=document.activeElement;if(!m.contains(j)){const L=new CustomEvent(lf,cy);m.addEventListener(lf,y),m.dispatchEvent(L),L.defaultPrevented||(ab(fb(vd(m)),{select:!0}),document.activeElement===j&&el(m))}return()=>{m.removeEventListener(lf,y),setTimeout(()=>{const L=new CustomEvent(rf,cy);m.addEventListener(rf,g),m.dispatchEvent(L),L.defaultPrevented||el(j??document.body,{select:!0}),m.removeEventListener(rf,g),fy.remove(E)},0)}}},[m,y,g,E]);const A=k.useCallback(j=>{if(!a&&!o||E.paused)return;const N=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,L=document.activeElement;if(N&&L){const R=j.currentTarget,[K,ee]=ub(R);K&&ee?!j.shiftKey&&L===ee?(j.preventDefault(),a&&el(K,{select:!0})):j.shiftKey&&L===K&&(j.preventDefault(),a&&el(ee,{select:!0})):L===R&&j.preventDefault()}},[a,o,E.paused]);return x.jsx(pn.div,{tabIndex:-1,...d,ref:S,onKeyDown:A})},"FocusScope"));function ab(t,{select:l=!1}={}){const i=document.activeElement;for(const a of t)if(el(a,{select:l}),document.activeElement!==i)return}Mt(ab,"focusFirst");function ub(t){const l=vd(t),i=Vf(l,t),a=Vf(l.reverse(),t);return[i,a]}Mt(ub,"getTabbableEdges");function vd(t){const l=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Mt(a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;i.nextNode();)l.push(i.currentNode);return l}Mt(vd,"getTabbableCandidates");function Vf(t,l){const i=typeof l.checkVisibility=="function"&&l.checkVisibility({checkVisibilityCSS:!0});for(const a of t)if(!(i?!a.checkVisibility({checkVisibilityCSS:!0}):ob(a,{upTo:l})))return a}Mt(Vf,"findVisible");function ob(t,{upTo:l}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(l!==void 0&&t===l)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Mt(ob,"isHidden");function sb(t){return t instanceof HTMLInputElement&&"select"in t}Mt(sb,"isSelectableInput");function el(t,{select:l=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&sb(t)&&l&&t.select()}}Mt(el,"focus");var fy=cb();function cb(){let t=[];return{add(l){const i=t[0];l!==i&&(i==null||i.pause()),t=Yf(t,l),t.unshift(l)},remove(l){var i;t=Yf(t,l),(i=t[0])==null||i.resume()}}}Mt(cb,"createFocusScopesStack");function Yf(t,l){const i=[...t],a=i.indexOf(l);return a!==-1&&i.splice(a,1),i}Mt(Yf,"arrayRemove");function fb(t){return t.filter(l=>l.tagName!=="A")}Mt(fb,"removeLinks");var W2=Object.defineProperty,ew=(t,l)=>W2(t,"name",{value:l,configurable:!0}),tw=k.forwardRef(ew(function(l,i){var m;const{container:a,...o}=l,[c,s]=k.useState(!1);ci(()=>s(!0),[]);const d=a||c&&((m=globalThis==null?void 0:globalThis.document)==null?void 0:m.body);return d?Kx.createPortal(x.jsx(pn.div,{...o,ref:i}),d):null},"Portal")),nw=Object.defineProperty,tl=(t,l)=>nw(t,"name",{value:l,configurable:!0});function db(t,l){return k.useReducer((i,a)=>l[i][a]??i,t)}tl(db,"useStateMachine");var Sd=tl(t=>{const{present:l,children:i}=t,a=hb(l),o=typeof i=="function"?i({present:a.isPresent}):k.Children.only(i),c=mb(a.ref,pb(o));return typeof i=="function"||a.isPresent?k.cloneElement(o,{ref:c}):null},"Presence");function hb(t){const[l,i]=k.useState(),a=k.useRef(null),o=k.useRef(t),c=k.useRef("none"),s=k.useRef(void 0),d=t?"mounted":"unmounted",[m,p]=db(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{m==="mounted"?(c.current=s.current??ri(a.current),s.current=void 0):c.current="none"},[m]),ci(()=>{const y=a.current,g=o.current;if(g!==t){const S=c.current,E=ri(y);t?(s.current=E,p("MOUNT")):E==="none"||(y==null?void 0:y.display)==="none"?p("UNMOUNT"):p(g&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),ci(()=>{if(l){let y;const g=l.ownerDocument.defaultView??window,v=tl(E=>{const j=ri(a.current).includes(CSS.escape(E.animationName));if(E.target===l&&j&&(p("ANIMATION_END"),!o.current)){const N=l.style.animationFillMode;l.style.animationFillMode="forwards",y=g.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=N)})}},"handleAnimationEnd"),S=tl(E=>{E.target===l&&(c.current=ri(a.current))},"handleAnimationStart");return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",v),l.addEventListener("animationend",v),()=>{g.clearTimeout(y),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",v),l.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[l,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:k.useCallback(y=>{if(y){const g=getComputedStyle(y);a.current=g,s.current=ri(g)}else a.current=null;i(y)},[])}}tl(hb,"usePresence");function Gf(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}tl(Gf,"setRef");function mb(...t){const l=k.useRef(t);return l.current=t,k.useCallback(i=>{const a=l.current;let o=!1;const c=a.map(s=>{const d=Gf(s,i);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let s=0;s<c.length;s++){const d=c[s];typeof d=="function"?d():Gf(a[s],null)}}},[])}tl(mb,"useStableComposedRefs");function ri(t){return(t==null?void 0:t.animationName)||"none"}tl(ri,"getAnimationName");function pb(t){var a,o;let l=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,i=l&&"isReactWarning"in l&&l.isReactWarning;return i?t.ref:(l=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=l&&"isReactWarning"in l&&l.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}tl(pb,"getElementRef");var lw=Object.defineProperty,kd=(t,l)=>lw(t,"name",{value:l,configurable:!0}),to=0,jn=null;function rw(t){return wd(),t.children}kd(rw,"FocusGuards");function wd(){k.useEffect(()=>{jn||(jn={start:Ff(),end:Ff()});const{start:t,end:l}=jn;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==l&&document.body.insertAdjacentElement("beforeend",l),to++,()=>{to===1&&(jn==null||jn.start.remove(),jn==null||jn.end.remove(),jn=null),to=Math.max(0,to-1)}},[])}kd(wd,"useFocusGuards");function Ff(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}kd(Ff,"createFocusGuard");var Mn=function(){return Mn=Object.assign||function(l){for(var i,a=1,o=arguments.length;a<o;a++){i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(l[c]=i[c])}return l},Mn.apply(this,arguments)};function gb(t,l){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&l.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)l.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(i[a[o]]=t[a[o]]);return i}function iw(t,l,i){if(i||arguments.length===2)for(var a=0,o=l.length,c;a<o;a++)(c||!(a in l))&&(c||(c=Array.prototype.slice.call(l,0,a)),c[a]=l[a]);return t.concat(c||Array.prototype.slice.call(l))}var go="right-scroll-bar-position",yo="width-before-scroll-bar",aw="with-scroll-bars-hidden",uw="--removed-body-scroll-bar-size";function af(t,l){return typeof t=="function"?t(l):t&&(t.current=l),t}function ow(t,l){var i=k.useState(function(){return{value:t,callback:l,facade:{get current(){return i.value},set current(a){var o=i.value;o!==a&&(i.value=a,i.callback(a,o))}}}})[0];return i.callback=l,i.facade}var sw=typeof window<"u"?k.useLayoutEffect:k.useEffect,dy=new WeakMap;function cw(t,l){var i=ow(null,function(a){return t.forEach(function(o){return af(o,a)})});return sw(function(){var a=dy.get(i);if(a){var o=new Set(a),c=new Set(t),s=i.current;o.forEach(function(d){c.has(d)||af(d,null)}),c.forEach(function(d){o.has(d)||af(d,s)})}dy.set(i,t)},[t]),i}function fw(t){return t}function dw(t,l){l===void 0&&(l=fw);var i=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(c){var s=l(c,a);return i.push(s),function(){i=i.filter(function(d){return d!==s})}},assignSyncMedium:function(c){for(a=!0;i.length;){var s=i;i=[],s.forEach(c)}i={push:function(d){return c(d)},filter:function(){return i}}},assignMedium:function(c){a=!0;var s=[];if(i.length){var d=i;i=[],d.forEach(c),s=i}var m=function(){var y=s;s=[],y.forEach(c)},p=function(){return Promise.resolve().then(m)};p(),i={push:function(y){s.push(y),p()},filter:function(y){return s=s.filter(y),i}}}};return o}function hw(t){t===void 0&&(t={});var l=dw(null);return l.options=Mn({async:!0,ssr:!1},t),l}var yb=function(t){var l=t.sideCar,i=gb(t,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=l.read();if(!a)throw new Error("Sidecar medium not found");return k.createElement(a,Mn({},i))};yb.isSideCarExport=!0;function mw(t,l){return t.useMedium(l),yb}var xb=hw(),uf=function(){},Co=k.forwardRef(function(t,l){var i=k.useRef(null),a=k.useState({onScrollCapture:uf,onWheelCapture:uf,onTouchMoveCapture:uf}),o=a[0],c=a[1],s=t.forwardProps,d=t.children,m=t.className,p=t.removeScrollBar,y=t.enabled,g=t.shards,v=t.sideCar,S=t.noRelative,E=t.noIsolation,A=t.inert,j=t.allowPinchZoom,N=t.as,L=N===void 0?"div":N,R=t.gapMode,K=gb(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=v,D=cw([i,l]),X=Mn(Mn({},K),o);return k.createElement(k.Fragment,null,y&&k.createElement(ee,{sideCar:xb,removeScrollBar:p,shards:g,noRelative:S,noIsolation:E,inert:A,setCallbacks:c,allowPinchZoom:!!j,lockRef:i,gapMode:R}),s?k.cloneElement(k.Children.only(d),Mn(Mn({},X),{ref:D})):k.createElement(L,Mn({},X,{className:m,ref:D}),d))});Co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Co.classNames={fullWidth:yo,zeroRight:go};var pw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gw(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var l=pw();return l&&t.setAttribute("nonce",l),t}function yw(t,l){t.styleSheet?t.styleSheet.cssText=l:t.appendChild(document.createTextNode(l))}function xw(t){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(t)}var bw=function(){var t=0,l=null;return{add:function(i){t==0&&(l=gw())&&(yw(l,i),xw(l)),t++},remove:function(){t--,!t&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},vw=function(){var t=bw();return function(l,i){k.useEffect(function(){return t.add(l),function(){t.remove()}},[l&&i])}},bb=function(){var t=vw(),l=function(i){var a=i.styles,o=i.dynamic;return t(a,o),null};return l},Sw={left:0,top:0,right:0,gap:0},of=function(t){return parseInt(t||"",10)||0},kw=function(t){var l=window.getComputedStyle(document.body),i=l[t==="padding"?"paddingLeft":"marginLeft"],a=l[t==="padding"?"paddingTop":"marginTop"],o=l[t==="padding"?"paddingRight":"marginRight"];return[of(i),of(a),of(o)]},ww=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return Sw;var l=kw(t),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,a-i+l[2]-l[0])}},Ew=bb(),si="data-scroll-locked",Cw=function(t,l,i,a){var o=t.left,c=t.top,s=t.right,d=t.gap;return i===void 0&&(i="margin"),`
305
+ .`.concat(aw,` {
306
306
  overflow: hidden `).concat(a,`;
307
307
  padding-right: `).concat(d,"px ").concat(a,`;
308
308
  }
@@ -336,45 +336,45 @@ Error generating stack: `+u.message+`
336
336
  }
337
337
 
338
338
  body[`).concat(si,`] {
339
- `).concat(lw,": ").concat(d,`px;
339
+ `).concat(uw,": ").concat(d,`px;
340
340
  }
341
- `)},hy=function(){var t=parseInt(document.body.getAttribute(si)||"0",10);return isFinite(t)?t:0},kw=function(){k.useEffect(function(){return document.body.setAttribute(si,(hy()+1).toString()),function(){var t=hy()-1;t<=0?document.body.removeAttribute(si):document.body.setAttribute(si,t.toString())}},[])},ww=function(t){var l=t.noRelative,i=t.noImportant,a=t.gapMode,o=a===void 0?"margin":a;kw();var c=k.useMemo(function(){return xw(o)},[o]);return k.createElement(vw,{styles:Sw(c,!l,o,i?"":"!important")})},Xf=!1;if(typeof window<"u")try{var no=Object.defineProperty({},"passive",{get:function(){return Xf=!0,!0}});window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Xf=!1}var Jr=Xf?{passive:!1}:!1,Ew=function(t){return t.tagName==="TEXTAREA"},xx=function(t,l){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[l]!=="hidden"&&!(i.overflowY===i.overflowX&&!Ew(t)&&i[l]==="visible")},Cw=function(t){return xx(t,"overflowY")},Tw=function(t){return xx(t,"overflowX")},my=function(t,l){var i=l.ownerDocument,a=l;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=vx(t,a);if(o){var c=Sx(t,a),s=c[1],d=c[2];if(s>d)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},Aw=function(t){var l=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[l,i,a]},Nw=function(t){var l=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[l,i,a]},vx=function(t,l){return t==="v"?Cw(l):Tw(l)},Sx=function(t,l){return t==="v"?Aw(l):Nw(l)},jw=function(t,l){return t==="h"&&l==="rtl"?-1:1},zw=function(t,l,i,a,o){var c=jw(t,window.getComputedStyle(l).direction),s=c*a,d=i.target,m=l.contains(d),p=!1,y=s>0,g=0,v=0;do{if(!d)break;var S=Sx(t,d),E=S[0],A=S[1],j=S[2],N=A-j-c*E;(E||N)&&vx(t,d)&&(g+=N,v+=E);var R=d.parentNode;d=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!m&&d!==document.body||m&&(l.contains(d)||l===d));return(y&&Math.abs(g)<1||!y&&Math.abs(v)<1)&&(p=!0),p},lo=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},py=function(t){return[t.deltaX,t.deltaY]},gy=function(t){return t&&"current"in t?t.current:t},Mw=function(t,l){return t[0]===l[0]&&t[1]===l[1]},_w=function(t){return`
341
+ `)},hy=function(){var t=parseInt(document.body.getAttribute(si)||"0",10);return isFinite(t)?t:0},Tw=function(){k.useEffect(function(){return document.body.setAttribute(si,(hy()+1).toString()),function(){var t=hy()-1;t<=0?document.body.removeAttribute(si):document.body.setAttribute(si,t.toString())}},[])},Aw=function(t){var l=t.noRelative,i=t.noImportant,a=t.gapMode,o=a===void 0?"margin":a;Tw();var c=k.useMemo(function(){return ww(o)},[o]);return k.createElement(Ew,{styles:Cw(c,!l,o,i?"":"!important")})},Xf=!1;if(typeof window<"u")try{var no=Object.defineProperty({},"passive",{get:function(){return Xf=!0,!0}});window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{Xf=!1}var Jr=Xf?{passive:!1}:!1,Nw=function(t){return t.tagName==="TEXTAREA"},vb=function(t,l){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[l]!=="hidden"&&!(i.overflowY===i.overflowX&&!Nw(t)&&i[l]==="visible")},jw=function(t){return vb(t,"overflowY")},zw=function(t){return vb(t,"overflowX")},my=function(t,l){var i=l.ownerDocument,a=l;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=Sb(t,a);if(o){var c=kb(t,a),s=c[1],d=c[2];if(s>d)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},Mw=function(t){var l=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[l,i,a]},_w=function(t){var l=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[l,i,a]},Sb=function(t,l){return t==="v"?jw(l):zw(l)},kb=function(t,l){return t==="v"?Mw(l):_w(l)},Dw=function(t,l){return t==="h"&&l==="rtl"?-1:1},Ow=function(t,l,i,a,o){var c=Dw(t,window.getComputedStyle(l).direction),s=c*a,d=i.target,m=l.contains(d),p=!1,y=s>0,g=0,v=0;do{if(!d)break;var S=kb(t,d),E=S[0],A=S[1],j=S[2],N=A-j-c*E;(E||N)&&Sb(t,d)&&(g+=N,v+=E);var L=d.parentNode;d=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!m&&d!==document.body||m&&(l.contains(d)||l===d));return(y&&Math.abs(g)<1||!y&&Math.abs(v)<1)&&(p=!0),p},lo=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},py=function(t){return[t.deltaX,t.deltaY]},gy=function(t){return t&&"current"in t?t.current:t},Rw=function(t,l){return t[0]===l[0]&&t[1]===l[1]},Lw=function(t){return`
342
342
  .block-interactivity-`.concat(t,` {pointer-events: none;}
343
343
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
344
- `)},Dw=0,Wr=[];function Ow(t){var l=k.useRef([]),i=k.useRef([0,0]),a=k.useRef(),o=k.useState(Dw++)[0],c=k.useState(bx)[0],s=k.useRef(t);k.useEffect(function(){s.current=t},[t]),k.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var A=tw([t.lockRef.current],(t.shards||[]).map(gy),!0).filter(Boolean);return A.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var d=k.useCallback(function(A,j){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!s.current.allowPinchZoom;var N=lo(A),R=i.current,L="deltaX"in A?A.deltaX:R[0]-N[0],W="deltaY"in A?A.deltaY:R[1]-N[1],ee,D=A.target,X=Math.abs(L)>Math.abs(W)?"h":"v";if("touches"in A&&X==="h"&&D.type==="range")return!1;var V=window.getSelection(),ae=V&&V.anchorNode,H=ae?ae===D||ae.contains(D):!1;if(H)return!1;var re=my(X,D);if(!re)return!0;if(re?ee=X:(ee=X==="v"?"h":"v",re=my(X,D)),!re)return!1;if(!a.current&&"changedTouches"in A&&(L||W)&&(a.current=ee),!ee)return!0;var P=a.current||ee;return zw(P,j,A,P==="h"?L:W)},[]),m=k.useCallback(function(A){var j=A;if(!(!Wr.length||Wr[Wr.length-1]!==c)){var N="deltaY"in j?py(j):lo(j),R=l.current.filter(function(ee){return ee.name===j.type&&(ee.target===j.target||j.target===ee.shadowParent)&&Mw(ee.delta,N)})[0];if(R&&R.should){j.cancelable&&j.preventDefault();return}if(!R){var L=(s.current.shards||[]).map(gy).filter(Boolean).filter(function(ee){return ee.contains(j.target)}),W=L.length>0?d(j,L[0]):!s.current.noIsolation;W&&j.cancelable&&j.preventDefault()}}},[]),p=k.useCallback(function(A,j,N,R){var L={name:A,delta:j,target:N,should:R,shadowParent:Rw(N)};l.current.push(L),setTimeout(function(){l.current=l.current.filter(function(W){return W!==L})},1)},[]),y=k.useCallback(function(A){i.current=lo(A),a.current=void 0},[]),g=k.useCallback(function(A){p(A.type,py(A),A.target,d(A,t.lockRef.current))},[]),v=k.useCallback(function(A){p(A.type,lo(A),A.target,d(A,t.lockRef.current))},[]);k.useEffect(function(){return Wr.push(c),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Jr),document.addEventListener("touchmove",m,Jr),document.addEventListener("touchstart",y,Jr),function(){Wr=Wr.filter(function(A){return A!==c}),document.removeEventListener("wheel",m,Jr),document.removeEventListener("touchmove",m,Jr),document.removeEventListener("touchstart",y,Jr)}},[]);var S=t.removeScrollBar,E=t.inert;return k.createElement(k.Fragment,null,E?k.createElement(c,{styles:_w(o)}):null,S?k.createElement(ww,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Rw(t){for(var l=null;t!==null;)t instanceof ShadowRoot&&(l=t.host,t=t.host),t=t.parentNode;return l}const Lw=cw(yx,Ow);var kx=k.forwardRef(function(t,l){return k.createElement(Co,Mn({},t,{ref:l,sideCar:Lw}))});kx.classNames=Co.classNames;var Uw=function(t){if(typeof document>"u")return null;var l=Array.isArray(t)?t[0]:t;return l.ownerDocument.body},ei=new WeakMap,ro=new WeakMap,io={},sf=0,wx=function(t){return t&&(t.host||wx(t.parentNode))},Bw=function(t,l){return l.map(function(i){if(t.contains(i))return i;var a=wx(i);return a&&t.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},Hw=function(t,l,i,a){var o=Bw(l,Array.isArray(t)?t:[t]);io[i]||(io[i]=new WeakMap);var c=io[i],s=[],d=new Set,m=new Set(o),p=function(g){!g||d.has(g)||(d.add(g),p(g.parentNode))};o.forEach(p);var y=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))y(v);else try{var S=v.getAttribute(a),E=S!==null&&S!=="false",A=(ei.get(v)||0)+1,j=(c.get(v)||0)+1;ei.set(v,A),c.set(v,j),s.push(v),A===1&&E&&ro.set(v,!0),j===1&&v.setAttribute(i,"true"),E||v.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return y(l),d.clear(),sf++,function(){s.forEach(function(g){var v=ei.get(g)-1,S=c.get(g)-1;ei.set(g,v),c.set(g,S),v||(ro.has(g)||g.removeAttribute(a),ro.delete(g)),S||g.removeAttribute(i)}),sf--,sf||(ei=new WeakMap,ei=new WeakMap,ro=new WeakMap,io={})}},qw=function(t,l,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),o=Uw(t);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live], script"))),Hw(a,o,i,"aria-hidden")):function(){return null}},Iw=Object.defineProperty,nl=(t,l)=>Iw(t,"name",{value:l,configurable:!0}),Ed="Dialog",[Ex,h5]=Vb(Ed),[Vw,or]=Ex(Ed),Yw=nl(t=>{const{__scopeDialog:l,children:i,open:a,defaultOpen:o,onOpenChange:c,modal:s=!0}=t,d=k.useRef(null),m=k.useRef(null),[p,y]=Fb({prop:a,defaultProp:o??!1,onChange:c,caller:Ed}),[g,v]=k.useState(0),[S,E]=k.useState(0);return b.jsx(Vw,{scope:l,triggerRef:d,contentRef:m,contentId:_n(),titleId:_n(),descriptionId:_n(),titlePresent:g>0,descriptionPresent:S>0,setTitleCount:v,setDescriptionCount:E,open:p,onOpenChange:y,onOpenToggle:k.useCallback(()=>y(A=>!A),[y]),modal:s,children:i})},"Dialog"),Cx="DialogPortal",[Gw,Tx]=Ex(Cx,{forceMount:void 0}),Fw=nl(t=>{const{__scopeDialog:l,forceMount:i,children:a,container:o}=t,c=or(Cx,l);return b.jsx(Gw,{scope:l,forceMount:i,children:k.Children.map(a,s=>b.jsx(Sd,{present:i||c.open,children:b.jsx($2,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Qf="DialogOverlay",Xw=k.forwardRef(nl(function(l,i){const a=Tx(Qf,l.__scopeDialog),{forceMount:o=a.forceMount,...c}=l,s=or(Qf,l.__scopeDialog);return s.modal?b.jsx(Sd,{present:o||s.open,children:b.jsx(Zw,{...c,ref:i})}):null},"DialogOverlay")),Qw=bd("DialogOverlay.RemoveScroll"),Zw=k.forwardRef(nl(function(l,i){const{__scopeDialog:a,...o}=l,c=or(Qf,a),s=nx(),d=mi(i,s);return b.jsx(kx,{as:Qw,allowPinchZoom:!0,shards:[c.contentRef],children:b.jsx(pn.div,{"data-state":Cd(c.open),...o,ref:d,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Ea="DialogContent",Kw=k.forwardRef(nl(function(l,i){const a=Tx(Ea,l.__scopeDialog),{forceMount:o=a.forceMount,...c}=l,s=or(Ea,l.__scopeDialog);return b.jsx(Sd,{present:o||s.open,children:s.modal?b.jsx(Pw,{...c,ref:i}):b.jsx($w,{...c,ref:i})})},"DialogContent")),Pw=k.forwardRef(nl(function(l,i){const a=or(Ea,l.__scopeDialog),o=k.useRef(null),c=mi(i,a.contentRef,o);return k.useEffect(()=>{const s=o.current;if(s)return qw(s)},[]),b.jsx(Ax,{...l,ref:c,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:nr(l.onCloseAutoFocus,s=>{var d;s.preventDefault(),(d=a.triggerRef.current)==null||d.focus()}),onPointerDownOutside:nr(l.onPointerDownOutside,s=>{const d=s.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&s.preventDefault()}),onFocusOutside:nr(l.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),$w=k.forwardRef(nl(function(l,i){const a=or(Ea,l.__scopeDialog),o=k.useRef(!1),c=k.useRef(!1);return b.jsx(Ax,{...l,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var d,m;(d=l.onCloseAutoFocus)==null||d.call(l,s),s.defaultPrevented||(o.current||(m=a.triggerRef.current)==null||m.focus(),s.preventDefault()),o.current=!1,c.current=!1},onInteractOutside:s=>{var p,y;(p=l.onInteractOutside)==null||p.call(l,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=s.target;((y=a.triggerRef.current)==null?void 0:y.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&c.current&&s.preventDefault()}})},"DialogContentNonModal")),Ax=k.forwardRef(nl(function(l,i){const{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,...d}=l,m=or(Ea,a);return wd(),b.jsx(b.Fragment,{children:b.jsx(Z2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:s,children:b.jsx(F2,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionPresent?m.descriptionId:void 0,"aria-labelledby":m.titlePresent?m.titleId:void 0,"data-state":Cd(m.open),...d,ref:i,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})},"DialogContentImpl"));function Cd(t){return t?"open":"closed"}nl(Cd,"getState");var da='[cmdk-group=""]',cf='[cmdk-group-items=""]',Jw='[cmdk-group-heading=""]',Nx='[cmdk-item=""]',yy=`${Nx}:not([aria-disabled="true"])`,Zf="cmdk-item-select",ii="data-value",Ww=(t,l,i)=>g2(t,l,i),jx=k.createContext(void 0),ja=()=>k.useContext(jx),zx=k.createContext(void 0),Td=()=>k.useContext(zx),Mx=k.createContext(void 0),_x=k.forwardRef((t,l)=>{let i=ai(()=>{var M,C;return{search:"",value:(C=(M=t.value)!=null?M:t.defaultValue)!=null?C:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=ai(()=>new Set),o=ai(()=>new Map),c=ai(()=>new Map),s=ai(()=>new Set),d=Dx(t),{label:m,children:p,value:y,onValueChange:g,filter:v,shouldFilter:S,loop:E,disablePointerSelection:A=!1,vimBindings:j=!0,...N}=t,R=_n(),L=_n(),W=_n(),ee=k.useRef(null),D=cE();ir(()=>{if(y!==void 0){let M=y.trim();i.current.value=M,X.emit()}},[y]),ir(()=>{D(6,be)},[]);let X=k.useMemo(()=>({subscribe:M=>(s.current.add(M),()=>s.current.delete(M)),snapshot:()=>i.current,setState:(M,C,te)=>{var $,le,he,Ae;if(!Object.is(i.current[M],C)){if(i.current[M]=C,M==="search")P(),H(),D(1,re);else if(M==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let pe=document.getElementById(W);pe?pe.focus():($=document.getElementById(R))==null||$.focus()}if(D(7,()=>{var pe;i.current.selectedItemId=(pe=ue())==null?void 0:pe.id,X.emit()}),te||D(5,be),((le=d.current)==null?void 0:le.value)!==void 0){let pe=C??"";(Ae=(he=d.current).onValueChange)==null||Ae.call(he,pe);return}}X.emit()}},emit:()=>{s.current.forEach(M=>M())}}),[]),V=k.useMemo(()=>({value:(M,C,te)=>{var $;C!==(($=c.current.get(M))==null?void 0:$.value)&&(c.current.set(M,{value:C,keywords:te}),i.current.filtered.items.set(M,ae(C,te)),D(2,()=>{H(),X.emit()}))},item:(M,C)=>(a.current.add(M),C&&(o.current.has(C)?o.current.get(C).add(M):o.current.set(C,new Set([M]))),D(3,()=>{P(),H(),i.current.value||re(),X.emit()}),()=>{c.current.delete(M),a.current.delete(M),i.current.filtered.items.delete(M);let te=ue();D(4,()=>{P(),(te==null?void 0:te.getAttribute("id"))===M&&re(),X.emit()})}),group:M=>(o.current.has(M)||o.current.set(M,new Set),()=>{c.current.delete(M),o.current.delete(M)}),filter:()=>d.current.shouldFilter,label:m||t["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:R,inputId:W,labelId:L,listInnerRef:ee}),[]);function ae(M,C){var te,$;let le=($=(te=d.current)==null?void 0:te.filter)!=null?$:Ww;return M?le(M,i.current.search,C):0}function H(){if(!i.current.search||d.current.shouldFilter===!1)return;let M=i.current.filtered.items,C=[];i.current.filtered.groups.forEach($=>{let le=o.current.get($),he=0;le.forEach(Ae=>{let pe=M.get(Ae);he=Math.max(pe,he)}),C.push([$,he])});let te=ee.current;ne().sort(($,le)=>{var he,Ae;let pe=$.getAttribute("id"),at=le.getAttribute("id");return((he=M.get(at))!=null?he:0)-((Ae=M.get(pe))!=null?Ae:0)}).forEach($=>{let le=$.closest(cf);le?le.appendChild($.parentElement===le?$:$.closest(`${cf} > *`)):te.appendChild($.parentElement===te?$:$.closest(`${cf} > *`))}),C.sort(($,le)=>le[1]-$[1]).forEach($=>{var le;let he=(le=ee.current)==null?void 0:le.querySelector(`${da}[${ii}="${encodeURIComponent($[0])}"]`);he==null||he.parentElement.appendChild(he)})}function re(){let M=ne().find(te=>te.getAttribute("aria-disabled")!=="true"),C=M==null?void 0:M.getAttribute(ii);X.setState("value",C||void 0)}function P(){var M,C,te,$;if(!i.current.search||d.current.shouldFilter===!1){i.current.filtered.count=a.current.size;return}i.current.filtered.groups=new Set;let le=0;for(let he of a.current){let Ae=(C=(M=c.current.get(he))==null?void 0:M.value)!=null?C:"",pe=($=(te=c.current.get(he))==null?void 0:te.keywords)!=null?$:[],at=ae(Ae,pe);i.current.filtered.items.set(he,at),at>0&&le++}for(let[he,Ae]of o.current)for(let pe of Ae)if(i.current.filtered.items.get(pe)>0){i.current.filtered.groups.add(he);break}i.current.filtered.count=le}function be(){var M,C,te;let $=ue();$&&(((M=$.parentElement)==null?void 0:M.firstChild)===$&&((te=(C=$.closest(da))==null?void 0:C.querySelector(Jw))==null||te.scrollIntoView({block:"nearest"})),$.scrollIntoView({block:"nearest"}))}function ue(){var M;return(M=ee.current)==null?void 0:M.querySelector(`${Nx}[aria-selected="true"]`)}function ne(){var M;return Array.from(((M=ee.current)==null?void 0:M.querySelectorAll(yy))||[])}function B(M){let C=ne()[M];C&&X.setState("value",C.getAttribute(ii))}function Q(M){var C;let te=ue(),$=ne(),le=$.findIndex(Ae=>Ae===te),he=$[le+M];(C=d.current)!=null&&C.loop&&(he=le+M<0?$[$.length-1]:le+M===$.length?$[0]:$[le+M]),he&&X.setState("value",he.getAttribute(ii))}function ce(M){let C=ue(),te=C==null?void 0:C.closest(da),$;for(;te&&!$;)te=M>0?oE(te,da):sE(te,da),$=te==null?void 0:te.querySelector(yy);$?X.setState("value",$.getAttribute(ii)):Q(M)}let we=()=>B(ne().length-1),T=M=>{M.preventDefault(),M.metaKey?we():M.altKey?ce(1):Q(1)},_=M=>{M.preventDefault(),M.metaKey?B(0):M.altKey?ce(-1):Q(-1)};return k.createElement(pn.div,{ref:l,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:M=>{var C;(C=N.onKeyDown)==null||C.call(N,M);let te=M.nativeEvent.isComposing||M.keyCode===229;if(!(M.defaultPrevented||te))switch(M.key){case"n":case"j":{j&&M.ctrlKey&&T(M);break}case"ArrowDown":{T(M);break}case"p":case"k":{j&&M.ctrlKey&&_(M);break}case"ArrowUp":{_(M);break}case"Home":{M.preventDefault(),B(0);break}case"End":{M.preventDefault(),we();break}case"Enter":{M.preventDefault();let $=ue();if($){let le=new Event(Zf);$.dispatchEvent(le)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:dE},m),To(t,M=>k.createElement(zx.Provider,{value:X},k.createElement(jx.Provider,{value:V},M))))}),eE=k.forwardRef((t,l)=>{var i,a;let o=_n(),c=k.useRef(null),s=k.useContext(Mx),d=ja(),m=Dx(t),p=(a=(i=m.current)==null?void 0:i.forceMount)!=null?a:s==null?void 0:s.forceMount;ir(()=>{if(!p)return d.item(o,s==null?void 0:s.id)},[p]);let y=Ox(o,c,[t.value,t.children,c],t.keywords),g=Td(),v=_l(D=>D.value&&D.value===y.current),S=_l(D=>p||d.filter()===!1?!0:D.search?D.filtered.items.get(o)>0:!0);k.useEffect(()=>{let D=c.current;if(!(!D||t.disabled))return D.addEventListener(Zf,E),()=>D.removeEventListener(Zf,E)},[S,t.onSelect,t.disabled]);function E(){var D,X;A(),(X=(D=m.current).onSelect)==null||X.call(D,y.current)}function A(){g.setState("value",y.current,!0)}if(!S)return null;let{disabled:j,value:N,onSelect:R,forceMount:L,keywords:W,...ee}=t;return k.createElement(pn.div,{ref:rr(c,l),...ee,id:o,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!v,"data-disabled":!!j,"data-selected":!!v,onPointerMove:j||d.getDisablePointerSelection()?void 0:A,onClick:j?void 0:E},t.children)}),tE=k.forwardRef((t,l)=>{let{heading:i,children:a,forceMount:o,...c}=t,s=_n(),d=k.useRef(null),m=k.useRef(null),p=_n(),y=ja(),g=_l(S=>o||y.filter()===!1?!0:S.search?S.filtered.groups.has(s):!0);ir(()=>y.group(s),[]),Ox(s,d,[t.value,t.heading,m]);let v=k.useMemo(()=>({id:s,forceMount:o}),[o]);return k.createElement(pn.div,{ref:rr(d,l),...c,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},i&&k.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:p},i),To(t,S=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":i?p:void 0},k.createElement(Mx.Provider,{value:v},S))))}),nE=k.forwardRef((t,l)=>{let{alwaysRender:i,...a}=t,o=k.useRef(null),c=_l(s=>!s.search);return!i&&!c?null:k.createElement(pn.div,{ref:rr(o,l),...a,"cmdk-separator":"",role:"separator"})}),lE=k.forwardRef((t,l)=>{let{onValueChange:i,...a}=t,o=t.value!=null,c=Td(),s=_l(p=>p.search),d=_l(p=>p.selectedItemId),m=ja();return k.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),k.createElement(pn.input,{ref:l,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":d,id:m.inputId,type:"text",value:o?t.value:s,onChange:p=>{o||c.setState("search",p.target.value),i==null||i(p.target.value)}})}),rE=k.forwardRef((t,l)=>{let{children:i,label:a="Suggestions",...o}=t,c=k.useRef(null),s=k.useRef(null),d=_l(p=>p.selectedItemId),m=ja();return k.useEffect(()=>{if(s.current&&c.current){let p=s.current,y=c.current,g,v=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let S=p.offsetHeight;y.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return v.observe(p),()=>{cancelAnimationFrame(g),v.unobserve(p)}}},[]),k.createElement(pn.div,{ref:rr(c,l),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":a,id:m.listId},To(t,p=>k.createElement("div",{ref:rr(s,m.listInnerRef),"cmdk-list-sizer":""},p)))}),iE=k.forwardRef((t,l)=>{let{open:i,onOpenChange:a,overlayClassName:o,contentClassName:c,container:s,...d}=t;return k.createElement(Yw,{open:i,onOpenChange:a},k.createElement(Fw,{container:s},k.createElement(Xw,{"cmdk-overlay":"",className:o}),k.createElement(Kw,{"aria-label":t.label,"cmdk-dialog":"",className:c},k.createElement(_x,{ref:l,...d}))))}),aE=k.forwardRef((t,l)=>_l(i=>i.filtered.count===0)?k.createElement(pn.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),uE=k.forwardRef((t,l)=>{let{progress:i,children:a,label:o="Loading...",...c}=t;return k.createElement(pn.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},To(t,s=>k.createElement("div",{"aria-hidden":!0},s)))}),ti=Object.assign(_x,{List:rE,Item:eE,Input:lE,Group:tE,Separator:nE,Dialog:iE,Empty:aE,Loading:uE});function oE(t,l){let i=t.nextElementSibling;for(;i;){if(i.matches(l))return i;i=i.nextElementSibling}}function sE(t,l){let i=t.previousElementSibling;for(;i;){if(i.matches(l))return i;i=i.previousElementSibling}}function Dx(t){let l=k.useRef(t);return ir(()=>{l.current=t}),l}var ir=typeof window>"u"?k.useEffect:k.useLayoutEffect;function ai(t){let l=k.useRef();return l.current===void 0&&(l.current=t()),l}function _l(t){let l=Td(),i=()=>t(l.snapshot());return k.useSyncExternalStore(l.subscribe,i,i)}function Ox(t,l,i,a=[]){let o=k.useRef(),c=ja();return ir(()=>{var s;let d=(()=>{var p;for(let y of i){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(p=y.current.textContent)==null?void 0:p.trim():o.current}})(),m=a.map(p=>p.trim());c.value(t,d,m),(s=l.current)==null||s.setAttribute(ii,d),o.current=d}),o}var cE=()=>{let[t,l]=k.useState(),i=ai(()=>new Map);return ir(()=>{i.current.forEach(a=>a()),i.current=new Map},[t]),(a,o)=>{i.current.set(a,o),l({})}};function fE(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function To({asChild:t,children:l},i){return t&&k.isValidElement(l)?k.cloneElement(fE(l),{ref:l.ref},i(l.props.children)):i(l)}var dE={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const hE=[{label:"Sessions",icon:QS,value:"sessions"},{label:"Memory",icon:fd,value:"memory"},{label:"Schedules",icon:US,value:"schedules"},{label:"Jobs",icon:LS,value:"jobs"},{label:"Settings",icon:vb,value:"settings"}];function mE({onNavigate:t}){const[l,i]=k.useState(!1);k.useEffect(()=>{const o=c=>{(c.metaKey||c.ctrlKey)&&c.key==="k"&&(c.preventDefault(),i(s=>!s))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[]);const a=o=>{i(!1),t(o)};return l?b.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>i(!1),children:[b.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),b.jsx("div",{className:se("relative z-10 w-full max-w-lg rounded-xl border border-border","bg-popover text-popover-foreground shadow-2xl","overflow-hidden"),onClick:o=>o.stopPropagation(),children:b.jsxs(ti,{children:[b.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[b.jsxs("svg",{className:"h-4 w-4 shrink-0 text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[b.jsx("circle",{cx:"11",cy:"11",r:"8"}),b.jsx("path",{d:"m21 21-4.35-4.35"})]}),b.jsx(ti.Input,{autoFocus:!0,placeholder:"Search commands…",className:se("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),b.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),b.jsxs(ti.List,{className:"max-h-64 overflow-y-auto py-2",children:[b.jsx(ti.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),b.jsx(ti.Group,{heading:"Navigation",className:"px-2",children:hE.map(({label:o,icon:c,value:s})=>b.jsxs(ti.Item,{value:s,onSelect:()=>a(s),className:se("flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-sm","text-popover-foreground transition-colors","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[b.jsx(c,{className:"h-4 w-4 text-muted-foreground"}),o]},s))})]})]})})]}):null}const pE={1:"sessions",2:"memory",3:"schedules",4:"jobs"};function gE({onNavigate:t}){return k.useEffect(()=>{function l(i){if(!(i.metaKey||i.ctrlKey))return;const a=pE[i.key];a&&(i.preventDefault(),t(a))}return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]),null}const by=200;function Rx({text:t,isStreaming:l=!1}){const[i,a]=k.useState(!1),o=t.length>by,c=o&&!i?t.slice(0,by)+"…":t;return b.jsxs("details",{className:"group rounded-md border border-border/30 bg-muted/20",children:[b.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 px-3 py-2 text-xs text-muted-foreground select-none hover:text-foreground",children:[b.jsx(fd,{className:["h-3.5 w-3.5 shrink-0 text-brand/60",l?"animate-pulse":""].filter(Boolean).join(" ")}),b.jsx("span",{className:"font-medium",children:"Thinking"}),t.length>0&&b.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums",children:[t.length.toLocaleString()," chars"]}),l&&b.jsx("span",{className:"ml-0.5 flex items-center gap-px",children:[0,150,300].map(s=>b.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-muted-foreground/50 animate-shimmer-pulse",style:{animationDelay:`${s}ms`}},s))})]}),b.jsxs("div",{className:"border-t border-border/30 px-3 py-2",children:[b.jsx("p",{className:"whitespace-pre-wrap break-words text-xs italic leading-relaxed text-muted-foreground/70",children:c}),o&&b.jsx("button",{type:"button",onClick:s=>{s.preventDefault(),a(d=>!d)},className:"mt-1.5 text-[10px] text-brand/60 hover:text-brand/80 transition-colors",children:i?"Show less":"Show more"})]})]})}function yE({open:t,children:l}){return b.jsx("div",{className:se("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:b.jsx("div",{className:"min-h-0 overflow-hidden",children:l})})}function bE({diff:t}){const l=t.split(`
345
- `);return b.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:b.jsx("table",{className:"w-full border-collapse",children:b.jsx("tbody",{children:l.map((i,a)=>{const o=i.startsWith("+")&&!i.startsWith("+++"),c=i.startsWith("-")&&!i.startsWith("---"),s=i.startsWith("@@"),d=i.startsWith("+++")||i.startsWith("---");return b.jsxs("tr",{className:se(o&&"bg-status-running/15 text-status-running",c&&"bg-status-failed/15 text-status-failed",s&&"bg-muted text-muted-foreground",d&&"text-muted-foreground",!o&&!c&&!s&&!d&&"text-foreground"),children:[b.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:a+1}),b.jsx("td",{className:"w-full whitespace-pre px-2 py-0",children:i||" "})]},a)})})})})}const xE={read_file:{Icon:li,colorClass:"text-cat-read"},glob:{Icon:li,colorClass:"text-cat-read"},grep:{Icon:li,colorClass:"text-cat-read"},list_directory:{Icon:li,colorClass:"text-cat-read"},json_query:{Icon:li,colorClass:"text-cat-read"},write_file:{Icon:mo,colorClass:"text-cat-write"},edit_file:{Icon:mo,colorClass:"text-cat-write"},patch_apply:{Icon:mo,colorClass:"text-cat-write"},bash:{Icon:Of,colorClass:"text-cat-shell"},test_run:{Icon:Of,colorClass:"text-cat-shell"},agent:{Icon:po,colorClass:"text-cat-agent"},compose:{Icon:po,colorClass:"text-cat-agent"},skill:{Icon:po,colorClass:"text-cat-agent"},browser_open:{Icon:oi,colorClass:"text-cat-browser"},browser_act:{Icon:oi,colorClass:"text-cat-browser"},browser_observe:{Icon:oi,colorClass:"text-cat-browser"},browser_screenshot:{Icon:oi,colorClass:"text-cat-browser"},web_scrape:{Icon:Df,colorClass:"text-cat-web"},web_request:{Icon:Df,colorClass:"text-cat-web"},memory_search:{Icon:$u,colorClass:"text-cat-mcp"},memory_update:{Icon:$u,colorClass:"text-cat-mcp"},state_get:{Icon:$u,colorClass:"text-cat-mcp"},state_put:{Icon:$u,colorClass:"text-cat-mcp"}};function vE(t){return xE[t]??{Icon:kb,colorClass:"text-cat-other"}}function SE({status:t}){return t==="running"?b.jsx(KS,{className:"h-3.5 w-3.5 shrink-0 animate-spin-slow text-status-blocked","aria-label":"running"}):t==="ok"?b.jsx(qS,{className:"h-3.5 w-3.5 shrink-0 text-status-running","aria-label":"ok"}):b.jsx(yb,{className:"h-3.5 w-3.5 shrink-0 text-status-failed","aria-label":"error"})}function kE({ms:t,live:l}){const i=t!==void 0?`${(t/1e3).toFixed(1)}s`:l!==void 0?`...${l}s`:null;return i===null?null:b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:i})}function wE({name:t,inputPreview:l,status:i,output:a,outputUnavailable:o,diff:c,durationMs:s}){const[d,m]=k.useState(!1),[p,y]=k.useState(!1),[g,v]=k.useState(0),S=k.useRef(null);k.useEffect(()=>(i==="running"&&s===void 0?S.current=setInterval(()=>{v(R=>R+1)},1e3):S.current!==null&&(clearInterval(S.current),S.current=null),()=>{S.current!==null&&clearInterval(S.current)}),[i,s]);const{Icon:E,colorClass:A}=vE(t),j=c||o||a&&a.trim().length>0,N=l.trim();return b.jsxs("div",{className:se("rounded-md border bg-card text-sm",i==="error"?"border-status-failed/40":"border-border"),children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[b.jsx(E,{className:se("h-3.5 w-3.5 shrink-0",A)}),b.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:t}),b.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[b.jsx(kE,{ms:s,live:i==="running"?g:void 0}),b.jsx(SE,{status:i})]})]}),N.length>0&&b.jsx("button",{type:"button",onClick:()=>y(R=>!R),className:"w-full border-t border-border/50 px-3 py-1.5 text-left","aria-expanded":p,children:b.jsx("p",{className:se("font-mono text-[11px] text-muted-foreground",!p&&"line-clamp-2"),children:N})}),j&&b.jsxs("div",{className:"border-t border-border/50",children:[b.jsxs("button",{type:"button",onClick:()=>m(R=>!R),className:"flex w-full cursor-pointer items-center gap-1 px-3 py-1.5 text-[11px] text-muted-foreground select-none hover:text-foreground","aria-expanded":d,children:[b.jsx(Eo,{className:se("h-3 w-3 shrink-0 transition-transform duration-150",d&&"rotate-90")}),"Output"]}),b.jsx(yE,{open:d,children:b.jsxs("div",{className:"px-3 pb-2 pt-1",children:[o&&b.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not available (replayed session)"}),c&&b.jsx(bE,{diff:c}),!c&&a&&b.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap font-mono text-[11px] text-foreground",children:a})]})})]})]})}function EE(t){if(t<1e3)return`${t}ms`;const l=t/1e3;return l<60?`${l.toFixed(1)}s`:`${Math.floor(l/60)}m ${Math.floor(l%60)}s`}function CE(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function TE({status:t}){const l="h-3.5 w-3.5 shrink-0";switch(t){case"started":return b.jsx(tk,{className:se(l,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return b.jsx(HS,{className:se(l,"text-status-running"),"aria-label":"succeeded"});case"failed":return b.jsx(VS,{className:se(l,"text-status-failed"),"aria-label":"failed"});case"cancelled":return b.jsx(Sb,{className:se(l,"text-muted-foreground"),"aria-label":"cancelled"});default:return b.jsx(IS,{className:se(l,"text-muted-foreground"),"aria-label":"unknown"})}}function AE(t){switch(t){case"succeeded":case"completed":return"text-status-running";case"failed":return"text-status-failed";case"started":return"text-status-blocked";default:return"text-muted-foreground"}}function NE({node:t,isExpanded:l,onToggle:i,isChild:a}){const{item:o}=t,c=t.children.length>0;return b.jsxs("div",{className:se("flex items-start gap-2 px-3 py-2",c&&"cursor-pointer select-none",a&&"py-1.5"),onClick:c?i:void 0,role:c?"button":void 0,tabIndex:c?0:void 0,onKeyDown:c?s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),i())}:void 0,"aria-expanded":c?l:void 0,children:[c?b.jsx(Eo,{className:se("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",l&&"rotate-90")}):b.jsx("span",{className:"h-3 w-3 shrink-0"}),b.jsx("span",{className:"mt-0.5",children:b.jsx(TE,{status:o.status})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[b.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:o.model}),o.durationMs!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:EE(o.durationMs)}),o.totalCostUsd!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:CE(o.totalCostUsd)}),b.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",AE(o.status)),children:o.status})]}),o.promptHead&&b.jsxs("p",{className:"mt-0.5 line-clamp-1 text-[11px] italic text-muted-foreground",children:["“",o.promptHead,"”"]})]})]})}function Lx({node:t,isChild:l=!1}){const[i,a]=k.useState(!0),o=t.children.length>0;return b.jsxs("div",{children:[b.jsx(NE,{node:t,isExpanded:i,onToggle:()=>a(c=>!c),isChild:l}),o&&i&&b.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((c,s)=>b.jsx("div",{className:se(s<t.children.length-1&&"border-b border-border/30"),children:b.jsx(Lx,{node:c,isChild:!0})},c.item.subagentId))})]})}function jE({roots:t,className:l}){return t.length===0?null:b.jsx("div",{className:se("rounded-md border border-border bg-card",l),children:t.map((i,a)=>b.jsx("div",{className:se(a<t.length-1&&"border-b border-border/50"),children:b.jsx(Lx,{node:i})},i.item.subagentId))})}function ff(){return b.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function ao({label:t,value:l}){return b.jsxs("span",{className:"flex items-baseline gap-1",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),b.jsx("span",{className:"font-mono text-xs text-foreground",children:l})]})}function zE(t){if(t<1e3)return`${t}ms`;const l=t/1e3;if(l<60)return`${l.toFixed(1)}s`;const i=Math.floor(l/60),a=Math.round(l%60);return`${i}m ${a}s`}function ME(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function Ux({totals:t,className:l}){if(!t)return b.jsx("div",{className:se("flex items-center gap-2 text-xs text-muted-foreground",l),children:b.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const i=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return b.jsxs("div",{className:se("flex flex-wrap items-center gap-2",l),children:[b.jsx(ao,{label:"turns",value:String(t.turns)}),b.jsx(ff,{}),b.jsx(ao,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),i>0&&b.jsxs(b.Fragment,{children:[b.jsx(ff,{}),b.jsx(ao,{label:"tokens",value:ME(i)})]}),b.jsx(ff,{}),b.jsx(ao,{label:"duration",value:zE(t.durationMs)})]})}function _E(t){const l=new Map,i=[];for(const o of t){if(o.kind!=="subagent"||l.get(o.subagentId))continue;const s={item:o,children:[]};if(l.set(o.subagentId,s),o.parentId){const d=l.get(o.parentId);d?d.children.push(s):i.push(s)}else i.push(s)}const a=[];for(const o of i){const c=o.item.parentId?l.get(o.item.parentId):void 0;c?c.children.push(o):a.push(o)}return a}const DE=new Set(["read_file","glob","grep","list_directory","json_query","read_witness","search_witness","get_facet","clipboard_read"]),OE=new Set(["write_file","edit_file","patch_apply","clipboard_write","procedure_write"]),RE=new Set(["bash","test_run","wait_for"]),LE=new Set(["agent","send_message_to_agent","cancel_background_job"]),UE=new Set(["skill"]),BE=new Set(["compose"]),HE=new Set(["web_scrape","web_request"]),qE=new Set(["browser_open","browser_act","browser_observe","browser_screenshot","browser_close"]),IE=new Set(["memory_search","memory_update","state_get","state_put","state_cas","state_delete","state_query","workspace_publish","workspace_query"]);function VE(t){return DE.has(t)?"read":OE.has(t)?"write":RE.has(t)?"shell":LE.has(t)?"agent":UE.has(t)?"skill":BE.has(t)?"dag":HE.has(t)?"web":qE.has(t)?"browser":IE.has(t)?"other":t.startsWith("mcp__")?"mcp":"other"}function Bx(t){if(t<1e3)return"<1s";const l=t/1e3;if(l<60)return`${l.toFixed(1)}s`;const i=Math.floor(l/60),a=Math.floor(l%60);return`${i}m ${a}s`}function Hx(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function YE(t){return t==="error"?"error":t==="ok"?"ok":"running"}function GE(t){return t==="succeeded"?"ok":t==="failed"?"error":t==="cancelled"?"cancelled":"running"}function FE(t,l){const i=YE(t.status);return{id:t.id,kind:"tool",label:t.name,category:VE(t.name),status:i,preview:t.inputPreview,durationMs:t.durationMs,children:[],isActive:i==="running",sourceId:t.toolUseId,seq:l}}function XE(t,l){const i=GE(t.status);return{id:t.id,kind:"agent",label:t.label,category:"agent",status:i,preview:t.promptHead,durationMs:t.durationMs,costUsd:t.totalCostUsd,model:t.model,agentType:t.agentType,turnCount:t.turnCount,children:[],isActive:i==="running",sourceId:t.subagentId,seq:l}}function QE(t){const l=[],i=[],a=new Map;for(let y=0;y<t.length;y++){const g=t[y];g!==void 0&&(g.kind==="tool"&&(l.push(g),a.set(g.id,y)),g.kind==="subagent"&&(i.push(g),a.set(g.id,y)))}const o=new Map;for(const y of l)y.toolUseId&&o.set(y.toolUseId,y);const c=new Map,s=new Map;for(const y of l)c.set(y.id,FE(y,a.get(y.id)??0));for(const y of i)s.set(y.subagentId,XE(y,a.get(y.id)??0));const d=[],m=[];for(const y of i){const g=s.get(y.subagentId);if(g){if(y.parentToolUseId){const v=o.get(y.parentToolUseId);if(v){const S=c.get(v.id);if(S){S.kind="agent",S.children.push(g);continue}}m.push(g);continue}if(y.parentId){const v=s.get(y.parentId);if(v){v.children.push(g);continue}m.push(g);continue}d.push(g)}}const p=[];for(const y of m){const g=i.find(S=>S.subagentId===y.sourceId);if(!g){d.push(y);continue}let v=!1;if(g.parentToolUseId){const S=o.get(g.parentToolUseId);if(S){const E=c.get(S.id);E&&(E.kind="agent",E.children.push(y),v=!0)}}if(!v&&g.parentId){const S=s.get(g.parentId);S&&(S.children.push(y),v=!0)}v||p.push(y)}for(const y of p)d.push(y);for(const y of l){const g=c.get(y.id);g&&d.push(g)}return d.sort((y,g)=>y.seq-g.seq),d}const ZE={read:li,write:mo,shell:Of,agent:po,skill:ak,dag:$S,mcp:nk,web:Df,browser:oi,plan:ZS,other:kb},KE={read:"text-cat-read",write:"text-cat-write",shell:"text-cat-shell",agent:"text-cat-agent",skill:"text-cat-skill",dag:"text-cat-dag",mcp:"text-cat-mcp",web:"text-cat-web",browser:"text-cat-browser",plan:"text-cat-plan",other:"text-cat-other"};function qx(t){let l=0;for(const i of t.children)i.kind==="tool"&&l++,l+=qx(i);return l}function Ix(t){let l=t.durationMs??0;for(const i of t.children)l+=Ix(i);return l}function PE({category:t,status:l}){const i=ZE[t],a=KE[t];return b.jsx(i,{className:se("h-3.5 w-3.5 shrink-0",a,l==="running"&&"animate-shimmer-pulse",l==="error"&&"text-status-failed",l==="cancelled"&&"opacity-50"),"aria-hidden":!0})}function df({node:t}){if(t.status==="running"||t.children.length===0)return null;if(t.status==="error")return b.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-status-failed",children:"Failed"});if(t.status==="cancelled")return b.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:"Cancelled"});const l=qx(t),i=t.durationMs??Ix(t),a=t.costUsd,o=[];return l>0&&o.push(`${l} tool${l!==1?"s":""}`),i>0&&o.push(Bx(i)),a!=null&&a>0&&o.push(Hx(a)),b.jsxs("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:["Done",o.length>0?` (${o.join(" · ")})`:""]})}function Vx({node:t,depth:l=0,isLast:i=!1}){const a=t.kind==="agent"&&t.children.length>0,[o,c]=k.useState(t.isActive),s=t.children.length>0,d=t.kind==="agent",m=o?hd:Eo;return b.jsxs("div",{className:se("relative",l>0&&"pl-3"),children:[b.jsxs("div",{className:se("flex items-center gap-1.5 py-0.5 group",a&&"cursor-pointer select-none"),onClick:a?()=>c(p=>!p):void 0,role:a?"button":void 0,"aria-expanded":a?o:void 0,children:[a?b.jsx(m,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}):b.jsx("span",{className:"h-3 w-3 shrink-0","aria-hidden":!0}),b.jsx(PE,{category:t.category,status:t.status}),b.jsx("span",{className:se("text-[12px] font-mono leading-none",t.status==="cancelled"&&"opacity-50",t.status==="error"&&"text-status-failed",t.status==="running"&&"text-foreground",t.status==="ok"&&"text-foreground/80"),children:t.label}),d&&t.model&&b.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.model}),d&&t.agentType&&b.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.agentType}),d&&t.turnCount!=null&&t.turnCount>0&&b.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:[t.turnCount," turn",t.turnCount!==1?"s":""]}),t.durationMs!=null&&t.durationMs>0&&b.jsx("span",{className:"text-[10px] font-mono text-muted-foreground tabular-nums",children:Bx(t.durationMs)}),d&&t.costUsd!=null&&t.costUsd>0&&b.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:Hx(t.costUsd)})]}),d&&t.preview&&b.jsx("div",{className:"pl-5 text-[11px] italic text-muted-foreground/60 line-clamp-1 leading-tight",children:t.preview}),d&&!o&&s&&b.jsx(df,{node:t}),s&&o&&b.jsxs("div",{className:se("relative mt-0.5 ml-[22px]","border-l-2 border-spine"),children:[t.children.map((p,y)=>{const g=y===t.children.length-1;return b.jsxs("div",{className:"relative",children:[b.jsx("div",{className:se("absolute left-0 top-[10px] h-0 w-3","border-t-2 border-spine",g&&"last-child-clip"),"aria-hidden":!0}),g&&b.jsx("div",{className:"absolute left-[-2px] top-[10px] bottom-0 w-[2px] bg-background","aria-hidden":!0}),b.jsx("div",{className:"pl-3",children:b.jsx(Vx,{node:p,depth:l+1,isLast:g})})]},p.id)}),d&&t.status!=="running"&&b.jsx(df,{node:t})]}),d&&(!s||!o)&&t.status!=="running"&&(s?null:b.jsx(df,{node:t}))]})}function $E({nodes:t,className:l}){return b.jsxs("div",{className:se("relative pl-3 border-l-2 border-spine/40",l),children:[b.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-widest text-muted-foreground/40 select-none",children:"Execution"}),t.length===0?b.jsx("div",{className:"text-[11px] text-muted-foreground/30 italic py-1",children:"No activity yet"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map((i,a)=>b.jsx(Vx,{node:i,depth:0,isLast:a===t.length-1},i.id))})]})}const JE=new Set(["tool","subagent","notice"]),WE=new Set(["user","assistant","thinking","error","bg_job"]);function eC(t){const l=[];let i=0;for(;i<t.length;){const a=t[i];if(a===void 0){i++;continue}if(WE.has(a.kind)){l.push({kind:"text",item:a}),i++;continue}const o=[];for(;i<t.length;){const c=t[i];if(c===void 0||!JE.has(c.kind))break;o.push(c),i++}if(o.length>0){const c=QE(o);l.push({kind:"execution",items:o,id:o[0].id,spineNodes:c})}}return l}function tC({slots:t,renderTextItem:l}){return b.jsx(b.Fragment,{children:t.map((i,a)=>i.kind==="text"?l(i.item,a):b.jsx("div",{className:"py-2 px-1",children:b.jsx($E,{nodes:i.spineNodes})},i.id))})}function nC(t){return k.useMemo(()=>eC(t),[t])}function lC(t,l){const i=l||{};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const rC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,iC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,aC={};function xy(t,l){return(aC.jsx?iC:rC).test(t)}const uC=/[ \t\n\f\r]/g;function oC(t){return typeof t=="object"?t.type==="text"?vy(t.value):!1:vy(t)}function vy(t){return t.replace(uC,"")===""}class za{constructor(l,i,a){this.normal=i,this.property=l,a&&(this.space=a)}}za.prototype.normal={};za.prototype.property={};za.prototype.space=void 0;function Yx(t,l){const i={},a={};for(const o of t)Object.assign(i,o.property),Object.assign(a,o.normal);return new za(i,a,l)}function Kf(t){return t.toLowerCase()}class Gt{constructor(l,i){this.attribute=i,this.property=l}}Gt.prototype.attribute="";Gt.prototype.booleanish=!1;Gt.prototype.boolean=!1;Gt.prototype.commaOrSpaceSeparated=!1;Gt.prototype.commaSeparated=!1;Gt.prototype.defined=!1;Gt.prototype.mustUseProperty=!1;Gt.prototype.number=!1;Gt.prototype.overloadedBoolean=!1;Gt.prototype.property="";Gt.prototype.spaceSeparated=!1;Gt.prototype.space=void 0;let sC=0;const Ee=sr(),ft=sr(),Pf=sr(),ie=sr(),Pe=sr(),lr=sr(),Wt=sr();function sr(){return 2**++sC}const $f=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ft,commaOrSpaceSeparated:Wt,commaSeparated:lr,number:ie,overloadedBoolean:Pf,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),hf=Object.keys($f);class Ad extends Gt{constructor(l,i,a,o){let c=-1;if(super(l,i),Sy(this,"space",o),typeof a=="number")for(;++c<hf.length;){const s=hf[c];Sy(this,hf[c],(a&$f[s])===$f[s])}}}Ad.prototype.defined=!0;function Sy(t,l,i){i&&(t[l]=i)}function pi(t){const l={},i={};for(const[a,o]of Object.entries(t.properties)){const c=new Ad(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),l[a]=c,i[Kf(a)]=a,i[Kf(c.attribute)]=a}return new za(l,i,t.space)}const Gx=pi({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Pe,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:ie,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Pe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:ft,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Fx(t,l){return l in t?t[l]:l}function Xx(t,l){return Fx(t,l.toLowerCase())}const cC=pi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alpha:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Pe,autoFocus:Ee,autoPlay:Ee,blocking:Pe,capture:null,charSet:null,checked:Ee,cite:null,className:Pe,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:ft,controls:Ee,controlsList:Pe,coords:ie|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:Pf,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Pe,height:ie,hidden:Pf,high:ie,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:Ee,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ee,optimum:ie,pattern:null,ping:Pe,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Pe,required:Ee,reversed:Ee,rows:ie,rowSpan:ie,sandbox:Pe,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootCustomElementRegistry:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shadowRootSerializable:Ee,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:ft,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ee,disablePictureInPicture:Ee,disableRemotePlayback:Ee,exportParts:lr,part:Pe,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:Xx}),fC=pi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Fx}),Qx=pi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Zx=pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Xx}),Kx=pi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),dC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},hC=/[A-Z]/g,ky=/-[a-z]/g,mC=/^data[-\w.:]+$/i;function pC(t,l){const i=Kf(l);let a=l,o=Gt;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&mC.test(l)){if(l.charAt(4)==="-"){const c=l.slice(5).replace(ky,yC);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!ky.test(c)){let s=c.replace(hC,gC);s.charAt(0)!=="-"&&(s="-"+s),l="data"+s}}o=Ad}return new o(a,l)}function gC(t){return"-"+t.toLowerCase()}function yC(t){return t.charAt(1).toUpperCase()}const bC=Yx([Gx,cC,Qx,Zx,Kx],"html"),Nd=Yx([Gx,fC,Qx,Zx,Kx],"svg");function xC(t){return t.join(" ").trim()}var ni={},mf,wy;function vC(){if(wy)return mf;wy=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
346
- `,p="/",y="*",g="",v="comment",S="declaration";function E(j,N){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];N=N||{};var R=1,L=1;function W(ue){var ne=ue.match(l);ne&&(R+=ne.length);var B=ue.lastIndexOf(m);L=~B?ue.length-B:L+ue.length}function ee(){var ue={line:R,column:L};return function(ne){return ne.position=new D(ue),ae(),ne}}function D(ue){this.start=ue,this.end={line:R,column:L},this.source=N.source}D.prototype.content=j;function X(ue){var ne=new Error(N.source+":"+R+":"+L+": "+ue);if(ne.reason=ue,ne.filename=N.source,ne.line=R,ne.column=L,ne.source=j,!N.silent)throw ne}function V(ue){var ne=ue.exec(j);if(ne){var B=ne[0];return W(B),j=j.slice(B.length),ne}}function ae(){V(i)}function H(ue){var ne;for(ue=ue||[];ne=re();)ne!==!1&&ue.push(ne);return ue}function re(){var ue=ee();if(!(p!=j.charAt(0)||y!=j.charAt(1))){for(var ne=2;g!=j.charAt(ne)&&(y!=j.charAt(ne)||p!=j.charAt(ne+1));)++ne;if(ne+=2,g===j.charAt(ne-1))return X("End of comment missing");var B=j.slice(2,ne-2);return L+=2,W(B),j=j.slice(ne),L+=2,ue({type:v,comment:B})}}function P(){var ue=ee(),ne=V(a);if(ne){if(re(),!V(o))return X("property missing ':'");var B=V(c),Q=ue({type:S,property:A(ne[0].replace(t,g)),value:B?A(B[0].replace(t,g)):g});return V(s),Q}}function be(){var ue=[];H(ue);for(var ne;ne=P();)ne!==!1&&(ue.push(ne),H(ue));return ue}return ae(),be()}function A(j){return j?j.replace(d,g):g}return mf=E,mf}var Ey;function SC(){if(Ey)return ni;Ey=1;var t=ni&&ni.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=i;const l=t(vC());function i(a,o){let c=null;if(!a||typeof a!="string")return c;const s=(0,l.default)(a),d=typeof o=="function";return s.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?o(p,y,m):y&&(c=c||{},c[p]=y)}),c}return ni}var ha={},Cy;function kC(){if(Cy)return ha;Cy=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||i.test(p)||t.test(p)},s=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),c(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,s))};return ha.camelCase=m,ha}var ma,Ty;function wC(){if(Ty)return ma;Ty=1;var t=ma&&ma.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(SC()),i=kC();function a(o,c){var s={};return!o||typeof o!="string"||(0,l.default)(o,function(d,m){d&&m&&(s[(0,i.camelCase)(d,c)]=m)}),s}return a.default=a,ma=a,ma}var EC=wC();const CC=sd(EC),Px=$x("end"),jd=$x("start");function $x(t){return l;function l(i){const a=i&&i.position&&i.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function TC(t){const l=jd(t),i=Px(t);if(l&&i)return{start:l,end:i}}function Sa(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ay(t.position):"start"in t||"end"in t?Ay(t):"line"in t||"column"in t?Jf(t):""}function Jf(t){return Ny(t&&t.line)+":"+Ny(t&&t.column)}function Ay(t){return Jf(t&&t.start)+"-"+Jf(t&&t.end)}function Ny(t){return t&&typeof t=="number"?t:1}class Tt extends Error{constructor(l,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",c={},s=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof l=="string"?o=l:!c.cause&&l&&(s=!0,o=l.message,c.cause=l),!c.ruleId&&!c.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?c.ruleId=a:(c.source=a.slice(0,m),c.ruleId=a.slice(m+1))}if(!c.place&&c.ancestors&&c.ancestors){const m=c.ancestors[c.ancestors.length-1];m&&(c.place=m.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Sa(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=s&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Tt.prototype.file="";Tt.prototype.name="";Tt.prototype.reason="";Tt.prototype.message="";Tt.prototype.stack="";Tt.prototype.column=void 0;Tt.prototype.line=void 0;Tt.prototype.ancestors=void 0;Tt.prototype.cause=void 0;Tt.prototype.fatal=void 0;Tt.prototype.place=void 0;Tt.prototype.ruleId=void 0;Tt.prototype.source=void 0;const zd={}.hasOwnProperty,AC=new Map,NC=/[A-Z]/g,jC=new Set(["table","tbody","thead","tfoot","tr"]),zC=new Set(["td","th"]),Jx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function MC(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=HC(i,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=BC(i,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Nd:bC,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=Wx(o,t,void 0);return c&&typeof c!="string"?c:o.create(t,o.Fragment,{children:c||void 0},void 0)}function Wx(t,l,i){if(l.type==="element")return _C(t,l,i);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return DC(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return RC(t,l,i);if(l.type==="mdxjsEsm")return OC(t,l);if(l.type==="root")return LC(t,l,i);if(l.type==="text")return UC(t,l)}function _C(t,l,i){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Nd,t.schema=o),t.ancestors.push(l);const c=t0(t,l.tagName,!1),s=qC(t,l);let d=_d(t,l);return jC.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!oC(m):!0})),e0(t,s,c,l),Md(s,d),t.ancestors.pop(),t.schema=a,t.create(l,c,s,i)}function DC(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}Ca(t,l.position)}function OC(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);Ca(t,l.position)}function RC(t,l,i){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Nd,t.schema=o),t.ancestors.push(l);const c=l.name===null?t.Fragment:t0(t,l.name,!0),s=IC(t,l),d=_d(t,l);return e0(t,s,c,l),Md(s,d),t.ancestors.pop(),t.schema=a,t.create(l,c,s,i)}function LC(t,l,i){const a={};return Md(a,_d(t,l)),t.create(l,t.Fragment,a,i)}function UC(t,l){return l.value}function e0(t,l,i,a){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(l.node=a)}function Md(t,l){if(l.length>0){const i=l.length>1?l:l[0];i&&(t.children=i)}}function BC(t,l,i){return a;function a(o,c,s,d){const p=Array.isArray(s.children)?i:l;return d?p(c,s,d):p(c,s)}}function HC(t,l){return i;function i(a,o,c,s){const d=Array.isArray(c.children),m=jd(a);return l(o,c,s,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function qC(t,l){const i={};let a,o;for(o in l.properties)if(o!=="children"&&zd.call(l.properties,o)){const c=VC(t,o,l.properties[o]);if(c){const[s,d]=c;t.tableCellAlignToStyle&&s==="align"&&typeof d=="string"&&zC.has(l.tagName)?a=d:i[s]=d}}if(a){const c=i.style||(i.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function IC(t,l){const i={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const c=a.data.estree.body[0];c.type;const s=c.expression;s.type;const d=s.properties[0];d.type,Object.assign(i,t.evaluater.evaluateExpression(d.argument))}else Ca(t,l.position);else{const o=a.name;let c;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,c=t.evaluater.evaluateExpression(d.expression)}else Ca(t,l.position);else c=a.value===null?!0:a.value;i[o]=c}return i}function _d(t,l){const i=[];let a=-1;const o=t.passKeys?new Map:AC;for(;++a<l.children.length;){const c=l.children[a];let s;if(t.passKeys){const m=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(m){const p=o.get(m)||0;s=m+"-"+p,o.set(m,p+1)}}const d=Wx(t,c,s);d!==void 0&&i.push(d)}return i}function VC(t,l,i){const a=pC(t.schema,l);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?lC(i):xC(i)),a.property==="style"){let o=typeof i=="object"?i:YC(t,String(i));return t.stylePropertyNameCase==="css"&&(o=GC(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?dC[a.property]||a.property:a.attribute,i]}}function YC(t,l){try{return CC(l,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const a=i,o=new Tt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=Jx+"#cannot-parse-style-attribute",o}}function t0(t,l,i){let a;if(!i)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let c=-1,s;for(;++c<o.length;){const d=xy(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};s=s?{type:"MemberExpression",object:s,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}a=s}else a=xy(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return zd.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);Ca(t)}function Ca(t,l){const i=new Tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=Jx+"#cannot-handle-mdx-estrees-without-createevaluater",i}function GC(t){const l={};let i;for(i in t)zd.call(t,i)&&(l[FC(i)]=t[i]);return l}function FC(t){let l=t.replace(NC,XC);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function XC(t){return"-"+t.toLowerCase()}const pf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},QC={};function Dd(t,l){const i=QC,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return n0(t,a,o)}function n0(t,l,i){if(ZC(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return jy(t.children,l,i)}return Array.isArray(t)?jy(t,l,i):""}function jy(t,l,i){const a=[];let o=-1;for(;++o<t.length;)a[o]=n0(t[o],l,i);return a.join("")}function ZC(t){return!!(t&&typeof t=="object")}const zy=document.createElement("i");function Od(t){const l="&"+t+";";zy.innerHTML=l;const i=zy.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===l?!1:i}function en(t,l,i,a){const o=t.length;let c=0,s;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,i=i>0?i:0,a.length<1e4)s=Array.from(a),s.unshift(l,i),t.splice(...s);else for(i&&t.splice(l,i);c<a.length;)s=a.slice(c,c+1e4),s.unshift(l,0),t.splice(...s),c+=1e4,l+=1e4}function hn(t,l){return t.length>0?(en(t,t.length,0,l),t):l}const My={}.hasOwnProperty;function l0(t){const l={};let i=-1;for(;++i<t.length;)KC(l,t[i]);return l}function KC(t,l){let i;for(i in l){const o=(My.call(t,i)?t[i]:void 0)||(t[i]={}),c=l[i];let s;if(c)for(s in c){My.call(o,s)||(o[s]=[]);const d=c[s];PC(o[s],Array.isArray(d)?d:d?[d]:[])}}}function PC(t,l){let i=-1;const a=[];for(;++i<l.length;)(l[i].add==="after"?t:a).push(l[i]);en(t,0,0,a)}function r0(t,l){const i=Number.parseInt(t,l);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Sn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zt=Ol(/[A-Za-z]/),Ct=Ol(/[\dA-Za-z]/),$C=Ol(/[#-'*+\--9=?A-Z^-~]/);function vo(t){return t!==null&&(t<32||t===127)}const Wf=Ol(/\d/),JC=Ol(/[\dA-Fa-f]/),WC=Ol(/[!-/:-@[-`{-~]/);function xe(t){return t!==null&&t<-2}function $e(t){return t!==null&&(t<0||t===32)}function De(t){return t===-2||t===-1||t===32}const Ao=Ol(new RegExp("\\p{P}|\\p{S}","u")),ar=Ol(/\s/);function Ol(t){return l;function l(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function gi(t){const l=[];let i=-1,a=0,o=0;for(;++i<t.length;){const c=t.charCodeAt(i);let s="";if(c===37&&Ct(t.charCodeAt(i+1))&&Ct(t.charCodeAt(i+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(s=String.fromCharCode(c));else if(c>55295&&c<57344){const d=t.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(s=String.fromCharCode(c,d),o=1):s="�"}else s=String.fromCharCode(c);s&&(l.push(t.slice(a,i),encodeURIComponent(s)),a=i+o+1,s=""),o&&(i+=o,o=0)}return l.join("")+t.slice(a)}function Ue(t,l,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let c=0;return s;function s(m){return De(m)?(t.enter(i),d(m)):l(m)}function d(m){return De(m)&&c++<o?(t.consume(m),d):(t.exit(i),l(m))}}const eT={tokenize:tT};function tT(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let i;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ue(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),c(d)}function c(d){const m=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,s(d)}function s(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return xe(d)?(t.consume(d),t.exit("chunkText"),c):(t.consume(d),s)}}const nT={tokenize:lT},_y={tokenize:rT};function lT(t){const l=this,i=[];let a=0,o,c,s;return d;function d(L){if(a<i.length){const W=i[a];return l.containerState=W[1],t.attempt(W[0].continuation,m,p)(L)}return p(L)}function m(L){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&R();const W=l.events.length;let ee=W,D;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){D=l.events[ee][1].end;break}N(a);let X=W;for(;X<l.events.length;)l.events[X][1].end={...D},X++;return en(l.events,ee+1,0,l.events.slice(W)),l.events.length=X,p(L)}return d(L)}function p(L){if(a===i.length){if(!o)return v(L);if(o.currentConstruct&&o.currentConstruct.concrete)return E(L);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(_y,y,g)(L)}function y(L){return o&&R(),N(a),v(L)}function g(L){return l.parser.lazy[l.now().line]=a!==i.length,s=l.now().offset,E(L)}function v(L){return l.containerState={},t.attempt(_y,S,E)(L)}function S(L){return a++,i.push([l.currentConstruct,l.containerState]),v(L)}function E(L){if(L===null){o&&R(),N(0),t.consume(L);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),A(L)}function A(L){if(L===null){j(t.exit("chunkFlow"),!0),N(0),t.consume(L);return}return xe(L)?(t.consume(L),j(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(L),A)}function j(L,W){const ee=l.sliceStream(L);if(W&&ee.push(null),L.previous=c,c&&(c.next=L),c=L,o.defineSkip(L.start),o.write(ee),l.parser.lazy[L.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<s&&(!o.events[D][1].end||o.events[D][1].end.offset>s))return;const X=l.events.length;let V=X,ae,H;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(ae){H=l.events[V][1].end;break}ae=!0}for(N(a),D=X;D<l.events.length;)l.events[D][1].end={...H},D++;en(l.events,V+1,0,l.events.slice(X)),l.events.length=D}}function N(L){let W=i.length;for(;W-- >L;){const ee=i[W];l.containerState=ee[1],ee[0].exit.call(l,t)}i.length=L}function R(){o.write([null]),c=void 0,o=void 0,l.containerState._closeFlow=void 0}}function rT(t,l,i){return Ue(t,t.attempt(this.parser.constructs.document,l,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function di(t){if(t===null||$e(t)||ar(t))return 1;if(Ao(t))return 2}function No(t,l,i){const a=[];let o=-1;for(;++o<t.length;){const c=t[o].resolveAll;c&&!a.includes(c)&&(l=c(l,i),a.push(c))}return l}const ed={name:"attention",resolveAll:iT,tokenize:aT};function iT(t,l){let i=-1,a,o,c,s,d,m,p,y;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(a=i;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[a][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;m=t[a][1].end.offset-t[a][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[i][1].start};Dy(g,-m),Dy(v,m),s={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:v},c={type:m>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[i][1].start}},o={type:m>1?"strong":"emphasis",start:{...s.start},end:{...d.end}},t[a][1].end={...s.start},t[i][1].start={...d.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=hn(p,[["enter",t[a][1],l],["exit",t[a][1],l]])),p=hn(p,[["enter",o,l],["enter",s,l],["exit",s,l],["enter",c,l]]),p=hn(p,No(l.parser.constructs.insideSpan.null,t.slice(a+1,i),l)),p=hn(p,[["exit",c,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[i][1].end.offset-t[i][1].start.offset?(y=2,p=hn(p,[["enter",t[i][1],l],["exit",t[i][1],l]])):y=0,en(t,a-1,i-a+3,p),i=a+p.length-y-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function aT(t,l){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=di(a);let c;return s;function s(m){return c=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===c)return t.consume(m),d;const p=t.exit("attentionSequence"),y=di(m),g=!y||y===2&&o||i.includes(m),v=!o||o===2&&y||i.includes(a);return p._open=!!(c===42?g:g&&(o||!v)),p._close=!!(c===42?v:v&&(y||!g)),l(m)}}function Dy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const uT={name:"autolink",tokenize:oT};function oT(t,l,i){let a=0;return o;function o(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(S){return zt(S)?(t.consume(S),s):S===64?i(S):p(S)}function s(S){return S===43||S===45||S===46||Ct(S)?(a=1,d(S)):p(S)}function d(S){return S===58?(t.consume(S),a=0,m):(S===43||S===45||S===46||Ct(S))&&a++<32?(t.consume(S),d):(a=0,p(S))}function m(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),l):S===null||S===32||S===60||vo(S)?i(S):(t.consume(S),m)}function p(S){return S===64?(t.consume(S),y):$C(S)?(t.consume(S),p):i(S)}function y(S){return Ct(S)?g(S):i(S)}function g(S){return S===46?(t.consume(S),a=0,y):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),l):v(S)}function v(S){if((S===45||Ct(S))&&a++<63){const E=S===45?v:g;return t.consume(S),E}return i(S)}}const Ma={partial:!0,tokenize:sT};function sT(t,l,i){return a;function a(c){return De(c)?Ue(t,o,"linePrefix")(c):o(c)}function o(c){return c===null||xe(c)?l(c):i(c)}}const i0={continuation:{tokenize:fT},exit:dT,name:"blockQuote",tokenize:cT};function cT(t,l,i){const a=this;return o;function o(s){if(s===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),c}return i(s)}function c(s){return De(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(s))}}function fT(t,l,i){const a=this;return o;function o(s){return De(s)?Ue(t,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):c(s)}function c(s){return t.attempt(i0,l,i)(s)}}function dT(t){t.exit("blockQuote")}const a0={name:"characterEscape",tokenize:hT};function hT(t,l,i){return a;function a(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),o}function o(c){return WC(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):i(c)}}const u0={name:"characterReference",tokenize:mT};function mT(t,l,i){const a=this;let o=0,c,s;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),m}function m(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),c=31,s=Ct,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,s=JC,y):(t.enter("characterReferenceValue"),c=7,s=Wf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return s===Ct&&!Od(a.sliceSerialize(v))?i(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return s(g)&&o++<c?(t.consume(g),y):i(g)}}const Oy={partial:!0,tokenize:gT},Ry={concrete:!0,name:"codeFenced",tokenize:pT};function pT(t,l,i){const a=this,o={partial:!0,tokenize:ee};let c=0,s=0,d;return m;function m(D){return p(D)}function p(D){const X=a.events[a.events.length-1];return c=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,d=D,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===d?(s++,t.consume(D),y):s<3?i(D):(t.exit("codeFencedFenceSequence"),De(D)?Ue(t,g,"whitespace")(D):g(D))}function g(D){return D===null||xe(D)?(t.exit("codeFencedFence"),a.interrupt?l(D):t.check(Oy,A,W)(D)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||xe(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(D)):De(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ue(t,S,"whitespace")(D)):D===96&&D===d?i(D):(t.consume(D),v)}function S(D){return D===null||xe(D)?g(D):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||xe(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(t.consume(D),E)}function A(D){return t.attempt(o,W,j)(D)}function j(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),N}function N(D){return c>0&&De(D)?Ue(t,R,"linePrefix",c+1)(D):R(D)}function R(D){return D===null||xe(D)?t.check(Oy,A,W)(D):(t.enter("codeFlowValue"),L(D))}function L(D){return D===null||xe(D)?(t.exit("codeFlowValue"),R(D)):(t.consume(D),L)}function W(D){return t.exit("codeFenced"),l(D)}function ee(D,X,V){let ae=0;return H;function H(ne){return D.enter("lineEnding"),D.consume(ne),D.exit("lineEnding"),re}function re(ne){return D.enter("codeFencedFence"),De(ne)?Ue(D,P,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):P(ne)}function P(ne){return ne===d?(D.enter("codeFencedFenceSequence"),be(ne)):V(ne)}function be(ne){return ne===d?(ae++,D.consume(ne),be):ae>=s?(D.exit("codeFencedFenceSequence"),De(ne)?Ue(D,ue,"whitespace")(ne):ue(ne)):V(ne)}function ue(ne){return ne===null||xe(ne)?(D.exit("codeFencedFence"),X(ne)):V(ne)}}}function gT(t,l,i){const a=this;return o;function o(s){return s===null?i(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c)}function c(s){return a.parser.lazy[a.now().line]?i(s):l(s)}}const gf={name:"codeIndented",tokenize:bT},yT={partial:!0,tokenize:xT};function bT(t,l,i){const a=this;return o;function o(p){return t.enter("codeIndented"),Ue(t,c,"linePrefix",5)(p)}function c(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?s(p):i(p)}function s(p){return p===null?m(p):xe(p)?t.attempt(yT,s,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||xe(p)?(t.exit("codeFlowValue"),s(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function xT(t,l,i){const a=this;return o;function o(s){return a.parser.lazy[a.now().line]?i(s):xe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):Ue(t,c,"linePrefix",5)(s)}function c(s){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(s):xe(s)?o(s):i(s)}}const vT={name:"codeText",previous:kT,resolve:ST,tokenize:wT};function ST(t){let l=t.length-4,i=3,a,o;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=i;++a<l;)if(t[a][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[l][1].type="codeTextPadding",i+=2,l-=2;break}}for(a=i-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function kT(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wT(t,l,i){let a=0,o,c;return s;function s(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),m(g))}function m(g){return g===null?i(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),m):g===96?(c=t.enter("codeTextSequence"),o=0,y(g)):xe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||xe(g)?(t.exit("codeTextData"),m(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(c.type="codeTextData",p(g))}}class ET{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,i,a){const o=i||0;this.setCursor(Math.trunc(l));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&pa(this.left,a),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),pa(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),pa(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const i=this.left.splice(l,Number.POSITIVE_INFINITY);pa(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);pa(this.left,i.reverse())}}}function pa(t,l){let i=0;if(l.length<1e4)t.push(...l);else for(;i<l.length;)t.push(...l.slice(i,i+1e4)),i+=1e4}function o0(t){const l={};let i=-1,a,o,c,s,d,m,p;const y=new ET(t);for(;++i<y.length;){for(;i in l;)i=l[i];if(a=y.get(i),i&&a[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,c=0,c<m.length&&m[c][1].type==="lineEndingBlank"&&(c+=2),c<m.length&&m[c][1].type==="content"))for(;++c<m.length&&m[c][1].type!=="content";)m[c][1].type==="chunkText"&&(m[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,CT(y,i)),i=l[i],p=!0);else if(a[1]._container){for(c=i,o=void 0;c--;)if(s=y.get(c),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=c);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,i),d.unshift(a),y.splice(o,i-o+1,d))}}return en(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function CT(t,l){const i=t.get(l)[1],a=t.get(l)[2];let o=l-1;const c=[];let s=i._tokenizer;s||(s=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const d=s.events,m=[],p={};let y,g,v=-1,S=i,E=0,A=0;const j=[A];for(;S;){for(;t.get(++o)[1]!==S;);c.push(o),S._tokenizer||(y=a.sliceStream(S),S.next||y.push(null),g&&s.defineSkip(S.start),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(y),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(A=v+1,j.push(A),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(s.events=[],S?(S._tokenizer=void 0,S.previous=void 0):j.pop(),v=j.length;v--;){const N=d.slice(j[v],j[v+1]),R=c.pop();m.push([R,R+N.length-1]),t.splice(R,2,N)}for(m.reverse(),v=-1;++v<m.length;)p[E+m[v][0]]=E+m[v][1],E+=m[v][1]-m[v][0]-1;return p}const TT={resolve:NT,tokenize:jT},AT={partial:!0,tokenize:zT};function NT(t){return o0(t),t}function jT(t,l){let i;return a;function a(d){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?c(d):xe(d)?t.check(AT,s,c)(d):(t.consume(d),o)}function c(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function s(d){return t.consume(d),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function zT(t,l,i){const a=this;return o;function o(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Ue(t,c,"linePrefix")}function c(s){if(s===null||xe(s))return i(s);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(s):t.interrupt(a.parser.constructs.flow,i,l)(s)}}function s0(t,l,i,a,o,c,s,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(N){return N===60?(t.enter(a),t.enter(o),t.enter(c),t.consume(N),t.exit(c),v):N===null||N===32||N===41||vo(N)?i(N):(t.enter(a),t.enter(s),t.enter(d),t.enter("chunkString",{contentType:"string"}),A(N))}function v(N){return N===62?(t.enter(c),t.consume(N),t.exit(c),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),S(N))}function S(N){return N===62?(t.exit("chunkString"),t.exit(d),v(N)):N===null||N===60||xe(N)?i(N):(t.consume(N),N===92?E:S)}function E(N){return N===60||N===62||N===92?(t.consume(N),S):S(N)}function A(N){return!y&&(N===null||N===41||$e(N))?(t.exit("chunkString"),t.exit(d),t.exit(s),t.exit(a),l(N)):y<p&&N===40?(t.consume(N),y++,A):N===41?(t.consume(N),y--,A):N===null||N===32||N===40||vo(N)?i(N):(t.consume(N),N===92?j:A)}function j(N){return N===40||N===41||N===92?(t.consume(N),A):A(N)}}function c0(t,l,i,a,o,c){const s=this;let d=0,m;return p;function p(S){return t.enter(a),t.enter(o),t.consume(S),t.exit(o),t.enter(c),y}function y(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in s.parser.constructs?i(S):S===93?(t.exit(c),t.enter(o),t.consume(S),t.exit(o),t.exit(a),l):xe(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||xe(S)||d++>999?(t.exit("chunkString"),y(S)):(t.consume(S),m||(m=!De(S)),S===92?v:g)}function v(S){return S===91||S===92||S===93?(t.consume(S),d++,g):g(S)}}function f0(t,l,i,a,o,c){let s;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),s=v===40?41:v,m):i(v)}function m(v){return v===s?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(c),p(v))}function p(v){return v===s?(t.exit(c),m(s)):v===null?i(v):xe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ue(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===s||v===null||xe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===s||v===92?(t.consume(v),y):y(v)}}function ka(t,l){let i;return a;function a(o){return xe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i=!0,a):De(o)?Ue(t,a,i?"linePrefix":"lineSuffix")(o):l(o)}}const MT={name:"definition",tokenize:DT},_T={partial:!0,tokenize:OT};function DT(t,l,i){const a=this;let o;return c;function c(S){return t.enter("definition"),s(S)}function s(S){return c0.call(a,t,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return o=Sn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),m):i(S)}function m(S){return $e(S)?ka(t,p)(S):p(S)}function p(S){return s0(t,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function y(S){return t.attempt(_T,g,g)(S)}function g(S){return De(S)?Ue(t,v,"whitespace")(S):v(S)}function v(S){return S===null||xe(S)?(t.exit("definition"),a.parser.defined.push(o),l(S)):i(S)}}function OT(t,l,i){return a;function a(d){return $e(d)?ka(t,o)(d):i(d)}function o(d){return f0(t,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return De(d)?Ue(t,s,"whitespace")(d):s(d)}function s(d){return d===null||xe(d)?l(d):i(d)}}const RT={name:"hardBreakEscape",tokenize:LT};function LT(t,l,i){return a;function a(c){return t.enter("hardBreakEscape"),t.consume(c),o}function o(c){return xe(c)?(t.exit("hardBreakEscape"),l(c)):i(c)}}const UT={name:"headingAtx",resolve:BT,tokenize:HT};function BT(t,l){let i=t.length-2,a=3,o,c;return t[a][1].type==="whitespace"&&(a+=2),i-2>a&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&t[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[i][1].end},c={type:"chunkText",start:t[a][1].start,end:t[i][1].end,contentType:"text"},en(t,a,i-a+1,[["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l]])),t}function HT(t,l,i){let a=0;return o;function o(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),s(y)}function s(y){return y===35&&a++<6?(t.consume(y),s):y===null||$e(y)?(t.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),m(y)):y===null||xe(y)?(t.exit("atxHeading"),l(y)):De(y)?Ue(t,d,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function m(y){return y===35?(t.consume(y),m):(t.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||$e(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),p)}}const qT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ly=["pre","script","style","textarea"],IT={concrete:!0,name:"htmlFlow",resolveTo:GT,tokenize:FT},VT={partial:!0,tokenize:QT},YT={partial:!0,tokenize:XT};function GT(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function FT(t,l,i){const a=this;let o,c,s,d,m;return p;function p(C){return y(C)}function y(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),g}function g(C){return C===33?(t.consume(C),v):C===47?(t.consume(C),c=!0,A):C===63?(t.consume(C),o=3,a.interrupt?l:T):zt(C)?(t.consume(C),s=String.fromCharCode(C),j):i(C)}function v(C){return C===45?(t.consume(C),o=2,S):C===91?(t.consume(C),o=5,d=0,E):zt(C)?(t.consume(C),o=4,a.interrupt?l:T):i(C)}function S(C){return C===45?(t.consume(C),a.interrupt?l:T):i(C)}function E(C){const te="CDATA[";return C===te.charCodeAt(d++)?(t.consume(C),d===te.length?a.interrupt?l:P:E):i(C)}function A(C){return zt(C)?(t.consume(C),s=String.fromCharCode(C),j):i(C)}function j(C){if(C===null||C===47||C===62||$e(C)){const te=C===47,$=s.toLowerCase();return!te&&!c&&Ly.includes($)?(o=1,a.interrupt?l(C):P(C)):qT.includes(s.toLowerCase())?(o=6,te?(t.consume(C),N):a.interrupt?l(C):P(C)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(C):c?R(C):L(C))}return C===45||Ct(C)?(t.consume(C),s+=String.fromCharCode(C),j):i(C)}function N(C){return C===62?(t.consume(C),a.interrupt?l:P):i(C)}function R(C){return De(C)?(t.consume(C),R):H(C)}function L(C){return C===47?(t.consume(C),H):C===58||C===95||zt(C)?(t.consume(C),W):De(C)?(t.consume(C),L):H(C)}function W(C){return C===45||C===46||C===58||C===95||Ct(C)?(t.consume(C),W):ee(C)}function ee(C){return C===61?(t.consume(C),D):De(C)?(t.consume(C),ee):L(C)}function D(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),m=C,X):De(C)?(t.consume(C),D):V(C)}function X(C){return C===m?(t.consume(C),m=null,ae):C===null||xe(C)?i(C):(t.consume(C),X)}function V(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||$e(C)?ee(C):(t.consume(C),V)}function ae(C){return C===47||C===62||De(C)?L(C):i(C)}function H(C){return C===62?(t.consume(C),re):i(C)}function re(C){return C===null||xe(C)?P(C):De(C)?(t.consume(C),re):i(C)}function P(C){return C===45&&o===2?(t.consume(C),B):C===60&&o===1?(t.consume(C),Q):C===62&&o===4?(t.consume(C),_):C===63&&o===3?(t.consume(C),T):C===93&&o===5?(t.consume(C),we):xe(C)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(VT,M,be)(C)):C===null||xe(C)?(t.exit("htmlFlowData"),be(C)):(t.consume(C),P)}function be(C){return t.check(YT,ue,M)(C)}function ue(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),ne}function ne(C){return C===null||xe(C)?be(C):(t.enter("htmlFlowData"),P(C))}function B(C){return C===45?(t.consume(C),T):P(C)}function Q(C){return C===47?(t.consume(C),s="",ce):P(C)}function ce(C){if(C===62){const te=s.toLowerCase();return Ly.includes(te)?(t.consume(C),_):P(C)}return zt(C)&&s.length<8?(t.consume(C),s+=String.fromCharCode(C),ce):P(C)}function we(C){return C===93?(t.consume(C),T):P(C)}function T(C){return C===62?(t.consume(C),_):C===45&&o===2?(t.consume(C),T):P(C)}function _(C){return C===null||xe(C)?(t.exit("htmlFlowData"),M(C)):(t.consume(C),_)}function M(C){return t.exit("htmlFlow"),l(C)}}function XT(t,l,i){const a=this;return o;function o(s){return xe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c):i(s)}function c(s){return a.parser.lazy[a.now().line]?i(s):l(s)}}function QT(t,l,i){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(Ma,l,i)}}const ZT={name:"htmlText",tokenize:KT};function KT(t,l,i){const a=this;let o,c,s;return d;function d(T){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(T),m}function m(T){return T===33?(t.consume(T),p):T===47?(t.consume(T),ee):T===63?(t.consume(T),L):zt(T)?(t.consume(T),V):i(T)}function p(T){return T===45?(t.consume(T),y):T===91?(t.consume(T),c=0,E):zt(T)?(t.consume(T),R):i(T)}function y(T){return T===45?(t.consume(T),S):i(T)}function g(T){return T===null?i(T):T===45?(t.consume(T),v):xe(T)?(s=g,Q(T)):(t.consume(T),g)}function v(T){return T===45?(t.consume(T),S):g(T)}function S(T){return T===62?B(T):T===45?v(T):g(T)}function E(T){const _="CDATA[";return T===_.charCodeAt(c++)?(t.consume(T),c===_.length?A:E):i(T)}function A(T){return T===null?i(T):T===93?(t.consume(T),j):xe(T)?(s=A,Q(T)):(t.consume(T),A)}function j(T){return T===93?(t.consume(T),N):A(T)}function N(T){return T===62?B(T):T===93?(t.consume(T),N):A(T)}function R(T){return T===null||T===62?B(T):xe(T)?(s=R,Q(T)):(t.consume(T),R)}function L(T){return T===null?i(T):T===63?(t.consume(T),W):xe(T)?(s=L,Q(T)):(t.consume(T),L)}function W(T){return T===62?B(T):L(T)}function ee(T){return zt(T)?(t.consume(T),D):i(T)}function D(T){return T===45||Ct(T)?(t.consume(T),D):X(T)}function X(T){return xe(T)?(s=X,Q(T)):De(T)?(t.consume(T),X):B(T)}function V(T){return T===45||Ct(T)?(t.consume(T),V):T===47||T===62||$e(T)?ae(T):i(T)}function ae(T){return T===47?(t.consume(T),B):T===58||T===95||zt(T)?(t.consume(T),H):xe(T)?(s=ae,Q(T)):De(T)?(t.consume(T),ae):B(T)}function H(T){return T===45||T===46||T===58||T===95||Ct(T)?(t.consume(T),H):re(T)}function re(T){return T===61?(t.consume(T),P):xe(T)?(s=re,Q(T)):De(T)?(t.consume(T),re):ae(T)}function P(T){return T===null||T===60||T===61||T===62||T===96?i(T):T===34||T===39?(t.consume(T),o=T,be):xe(T)?(s=P,Q(T)):De(T)?(t.consume(T),P):(t.consume(T),ue)}function be(T){return T===o?(t.consume(T),o=void 0,ne):T===null?i(T):xe(T)?(s=be,Q(T)):(t.consume(T),be)}function ue(T){return T===null||T===34||T===39||T===60||T===61||T===96?i(T):T===47||T===62||$e(T)?ae(T):(t.consume(T),ue)}function ne(T){return T===47||T===62||$e(T)?ae(T):i(T)}function B(T){return T===62?(t.consume(T),t.exit("htmlTextData"),t.exit("htmlText"),l):i(T)}function Q(T){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),ce}function ce(T){return De(T)?Ue(t,we,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):we(T)}function we(T){return t.enter("htmlTextData"),s(T)}}const Rd={name:"labelEnd",resolveAll:WT,resolveTo:e3,tokenize:t3},PT={tokenize:n3},$T={tokenize:l3},JT={tokenize:r3};function WT(t){let l=-1;const i=[];for(;++l<t.length;){const a=t[l][1];if(i.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==i.length&&en(t,0,t.length,i),t}function e3(t,l){let i=t.length,a=0,o,c,s,d;for(;i--;)if(o=t[i][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(t[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=i,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(s=i);const m={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[c][1].start},end:{...t[s][1].end}},y={type:"labelText",start:{...t[c+a+2][1].end},end:{...t[s-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=hn(d,t.slice(c+1,c+a+3)),d=hn(d,[["enter",y,l]]),d=hn(d,No(l.parser.constructs.insideSpan.null,t.slice(c+a+4,s-3),l)),d=hn(d,[["exit",y,l],t[s-2],t[s-1],["exit",p,l]]),d=hn(d,t.slice(s+1)),d=hn(d,[["exit",m,l]]),en(t,c,t.length,d),t}function t3(t,l,i){const a=this;let o=a.events.length,c,s;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){c=a.events[o][1];break}return d;function d(v){return c?c._inactive?g(v):(s=a.parser.defined.includes(Sn(a.sliceSerialize({start:c.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):i(v)}function m(v){return v===40?t.attempt(PT,y,s?y:g)(v):v===91?t.attempt($T,y,s?p:g)(v):s?y(v):g(v)}function p(v){return t.attempt(JT,y,g)(v)}function y(v){return l(v)}function g(v){return c._balanced=!0,i(v)}}function n3(t,l,i){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return $e(g)?ka(t,c)(g):c(g)}function c(g){return g===41?y(g):s0(t,s,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function s(g){return $e(g)?ka(t,m)(g):y(g)}function d(g){return i(g)}function m(g){return g===34||g===39||g===40?f0(t,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return $e(g)?ka(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):i(g)}}function l3(t,l,i){const a=this;return o;function o(d){return c0.call(a,t,c,s,"reference","referenceMarker","referenceString")(d)}function c(d){return a.parser.defined.includes(Sn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):i(d)}function s(d){return i(d)}}function r3(t,l,i){return a;function a(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),o}function o(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),l):i(c)}}const i3={name:"labelStartImage",resolveAll:Rd.resolveAll,tokenize:a3};function a3(t,l,i){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),c}function c(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),s):i(d)}function s(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(d):l(d)}}const u3={name:"labelStartLink",resolveAll:Rd.resolveAll,tokenize:o3};function o3(t,l,i){const a=this;return o;function o(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),c}function c(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(s):l(s)}}const yf={name:"lineEnding",tokenize:s3};function s3(t,l){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ue(t,l,"linePrefix")}}const bo={name:"thematicBreak",tokenize:c3};function c3(t,l,i){let a=0,o;return c;function c(p){return t.enter("thematicBreak"),s(p)}function s(p){return o=p,d(p)}function d(p){return p===o?(t.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||xe(p))?(t.exit("thematicBreak"),l(p)):i(p)}function m(p){return p===o?(t.consume(p),a++,m):(t.exit("thematicBreakSequence"),De(p)?Ue(t,d,"whitespace")(p):d(p))}}const Yt={continuation:{tokenize:m3},exit:g3,name:"list",tokenize:h3},f3={partial:!0,tokenize:y3},d3={partial:!0,tokenize:p3};function h3(t,l,i){const a=this,o=a.events[a.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return d;function d(S){const E=a.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!a.containerState.marker||S===a.containerState.marker:Wf(S)){if(a.containerState.type||(a.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(bo,i,p)(S):p(S);if(!a.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(S)}return i(S)}function m(S){return Wf(S)&&++s<10?(t.consume(S),m):(!a.interrupt||s<2)&&(a.containerState.marker?S===a.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),p(S)):i(S)}function p(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||S,t.check(Ma,a.interrupt?i:y,t.attempt(f3,v,g))}function y(S){return a.containerState.initialBlankLine=!0,c++,v(S)}function g(S){return De(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),v):i(S)}function v(S){return a.containerState.size=c+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(S)}}function m3(t,l,i){const a=this;return a.containerState._closeFlow=void 0,t.check(Ma,o,c);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ue(t,l,"listItemIndent",a.containerState.size+1)(d)}function c(d){return a.containerState.furtherBlankLines||!De(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,s(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(d3,l,s)(d))}function s(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ue(t,t.attempt(Yt,l,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function p3(t,l,i){const a=this;return Ue(t,o,"listItemIndent",a.containerState.size+1);function o(c){const s=a.events[a.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===a.containerState.size?l(c):i(c)}}function g3(t){t.exit(this.containerState.type)}function y3(t,l,i){const a=this;return Ue(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const s=a.events[a.events.length-1];return!De(c)&&s&&s[1].type==="listItemPrefixWhitespace"?l(c):i(c)}}const Uy={name:"setextUnderline",resolveTo:b3,tokenize:x3};function b3(t,l){let i=t.length,a,o,c;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){a=i;break}t[i][1].type==="paragraph"&&(o=i)}else t[i][1].type==="content"&&t.splice(i,1),!c&&t[i][1].type==="definition"&&(c=i);const s={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",c?(t.splice(o,0,["enter",s,l]),t.splice(c+1,0,["exit",t[a][1],l]),t[a][1].end={...t[c][1].end}):t[a][1]=s,t.push(["exit",s,l]),t}function x3(t,l,i){const a=this;let o;return c;function c(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,s(p)):i(p)}function s(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),De(p)?Ue(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||xe(p)?(t.exit("setextHeadingLine"),l(p)):i(p)}}const v3={tokenize:S3};function S3(t){const l=this,i=t.attempt(Ma,a,t.attempt(this.parser.constructs.flowInitial,o,Ue(t,t.attempt(this.parser.constructs.flow,o,t.attempt(TT,o)),"linePrefix")));return i;function a(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),l.currentConstruct=void 0,i}function o(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),l.currentConstruct=void 0,i}}const k3={resolveAll:h0()},w3=d0("string"),E3=d0("text");function d0(t){return{resolveAll:h0(t==="text"?C3:void 0),tokenize:l};function l(i){const a=this,o=this.parser.constructs[t],c=i.attempt(o,s,d);return s;function s(y){return p(y)?c(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),m}function m(y){return p(y)?(i.exit("data"),c(y)):(i.consume(y),m)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const S=g[v];if(!S.previous||S.previous.call(a,a.previous))return!0}return!1}}}function h0(t){return l;function l(i,a){let o=-1,c;for(;++o<=i.length;)c===void 0?i[o]&&i[o][1].type==="data"&&(c=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==c+2&&(i[c][1].end=i[o-1][1].end,i.splice(c+2,o-c-2),o=c+2),c=void 0);return t?t(i,a):i}}function C3(t,l){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const a=t[i-1][1],o=l.sliceStream(a);let c=o.length,s=-1,d=0,m;for(;c--;){const p=o[c];if(typeof p=="string"){for(s=p.length;p.charCodeAt(s-1)===32;)d++,s--;if(s)break;s=-1}else if(p===-2)m=!0,d++;else if(p!==-1){c++;break}}if(l._contentTypeTextTrailing&&i===t.length&&(d=0),d){const p={type:i===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?s:a.start._bufferIndex+s,_index:a.start._index+c,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(i,0,["enter",p,l],["exit",p,l]),i+=2)}i++}return t}const T3={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:i0},A3={91:MT},N3={[-2]:gf,[-1]:gf,32:gf},j3={35:UT,42:bo,45:[Uy,bo],60:IT,61:Uy,95:bo,96:Ry,126:Ry},z3={38:u0,92:a0},M3={[-5]:yf,[-4]:yf,[-3]:yf,33:i3,38:u0,42:ed,60:[uT,ZT],91:u3,92:[RT,a0],93:Rd,95:ed,96:vT},_3={null:[ed,k3]},D3={null:[42,95]},O3={null:[]},R3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:D3,contentInitial:A3,disable:O3,document:T3,flow:j3,flowInitial:N3,insideSpan:_3,string:z3,text:M3},Symbol.toStringTag,{value:"Module"}));function L3(t,l,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},c=[];let s=[],d=[];const m={attempt:X(ee),check:X(D),consume:R,enter:L,exit:W,interrupt:X(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&c.push(l),p;function g(re){return s=hn(s,re),j(),s[s.length-1]!==null?[]:(V(l,0),p.events=No(c,p.events,p),p.events)}function v(re,P){return B3(S(re),P)}function S(re){return U3(s,re)}function E(){const{_bufferIndex:re,_index:P,line:be,column:ue,offset:ne}=a;return{_bufferIndex:re,_index:P,line:be,column:ue,offset:ne}}function A(re){o[re.line]=re.column,H()}function j(){let re;for(;a._index<s.length;){const P=s[a._index];if(typeof P=="string")for(re=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===re&&a._bufferIndex<P.length;)N(P.charCodeAt(a._bufferIndex));else N(P)}}function N(re){y=y(re)}function R(re){xe(re)?(a.line++,a.column=1,a.offset+=re===-3?2:1,H()):re!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=re}function L(re,P){const be=P||{};return be.type=re,be.start=E(),p.events.push(["enter",be,p]),d.push(be),be}function W(re){const P=d.pop();return P.end=E(),p.events.push(["exit",P,p]),P}function ee(re,P){V(re,P.from)}function D(re,P){P.restore()}function X(re,P){return be;function be(ue,ne,B){let Q,ce,we,T;return Array.isArray(ue)?M(ue):"tokenize"in ue?M([ue]):_(ue);function _(le){return he;function he(Ae){const pe=Ae!==null&&le[Ae],at=Ae!==null&&le.null,_t=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(at)?at:at?[at]:[]];return M(_t)(Ae)}}function M(le){return Q=le,ce=0,le.length===0?B:C(le[ce])}function C(le){return he;function he(Ae){return T=ae(),we=le,le.partial||(p.currentConstruct=le),le.name&&p.parser.constructs.disable.null.includes(le.name)?$():le.tokenize.call(P?Object.assign(Object.create(p),P):p,m,te,$)(Ae)}}function te(le){return re(we,T),ne}function $(le){return T.restore(),++ce<Q.length?C(Q[ce]):B}}}function V(re,P){re.resolveAll&&!c.includes(re)&&c.push(re),re.resolve&&en(p.events,P,p.events.length-P,re.resolve(p.events.slice(P),p)),re.resolveTo&&(p.events=re.resolveTo(p.events,p))}function ae(){const re=E(),P=p.previous,be=p.currentConstruct,ue=p.events.length,ne=Array.from(d);return{from:ue,restore:B};function B(){a=re,p.previous=P,p.currentConstruct=be,p.events.length=ue,d=ne,H()}}function H(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function U3(t,l){const i=l.start._index,a=l.start._bufferIndex,o=l.end._index,c=l.end._bufferIndex;let s;if(i===o)s=[t[i].slice(a,c)];else{if(s=t.slice(i,o),a>-1){const d=s[0];typeof d=="string"?s[0]=d.slice(a):s.shift()}c>0&&s.push(t[o].slice(0,c))}return s}function B3(t,l){let i=-1;const a=[];let o;for(;++i<t.length;){const c=t[i];let s;if(typeof c=="string")s=c;else switch(c){case-5:{s="\r";break}case-4:{s=`
344
+ `)},Uw=0,Wr=[];function Bw(t){var l=k.useRef([]),i=k.useRef([0,0]),a=k.useRef(),o=k.useState(Uw++)[0],c=k.useState(bb)[0],s=k.useRef(t);k.useEffect(function(){s.current=t},[t]),k.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var A=iw([t.lockRef.current],(t.shards||[]).map(gy),!0).filter(Boolean);return A.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var d=k.useCallback(function(A,j){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!s.current.allowPinchZoom;var N=lo(A),L=i.current,R="deltaX"in A?A.deltaX:L[0]-N[0],K="deltaY"in A?A.deltaY:L[1]-N[1],ee,D=A.target,X=Math.abs(R)>Math.abs(K)?"h":"v";if("touches"in A&&X==="h"&&D.type==="range")return!1;var V=window.getSelection(),ae=V&&V.anchorNode,H=ae?ae===D||ae.contains(D):!1;if(H)return!1;var re=my(X,D);if(!re)return!0;if(re?ee=X:(ee=X==="v"?"h":"v",re=my(X,D)),!re)return!1;if(!a.current&&"changedTouches"in A&&(R||K)&&(a.current=ee),!ee)return!0;var $=a.current||ee;return Ow($,j,A,$==="h"?R:K)},[]),m=k.useCallback(function(A){var j=A;if(!(!Wr.length||Wr[Wr.length-1]!==c)){var N="deltaY"in j?py(j):lo(j),L=l.current.filter(function(ee){return ee.name===j.type&&(ee.target===j.target||j.target===ee.shadowParent)&&Rw(ee.delta,N)})[0];if(L&&L.should){j.cancelable&&j.preventDefault();return}if(!L){var R=(s.current.shards||[]).map(gy).filter(Boolean).filter(function(ee){return ee.contains(j.target)}),K=R.length>0?d(j,R[0]):!s.current.noIsolation;K&&j.cancelable&&j.preventDefault()}}},[]),p=k.useCallback(function(A,j,N,L){var R={name:A,delta:j,target:N,should:L,shadowParent:Hw(N)};l.current.push(R),setTimeout(function(){l.current=l.current.filter(function(K){return K!==R})},1)},[]),y=k.useCallback(function(A){i.current=lo(A),a.current=void 0},[]),g=k.useCallback(function(A){p(A.type,py(A),A.target,d(A,t.lockRef.current))},[]),v=k.useCallback(function(A){p(A.type,lo(A),A.target,d(A,t.lockRef.current))},[]);k.useEffect(function(){return Wr.push(c),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",m,Jr),document.addEventListener("touchmove",m,Jr),document.addEventListener("touchstart",y,Jr),function(){Wr=Wr.filter(function(A){return A!==c}),document.removeEventListener("wheel",m,Jr),document.removeEventListener("touchmove",m,Jr),document.removeEventListener("touchstart",y,Jr)}},[]);var S=t.removeScrollBar,E=t.inert;return k.createElement(k.Fragment,null,E?k.createElement(c,{styles:Lw(o)}):null,S?k.createElement(Aw,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Hw(t){for(var l=null;t!==null;)t instanceof ShadowRoot&&(l=t.host,t=t.host),t=t.parentNode;return l}const qw=mw(xb,Bw);var wb=k.forwardRef(function(t,l){return k.createElement(Co,Mn({},t,{ref:l,sideCar:qw}))});wb.classNames=Co.classNames;var Iw=function(t){if(typeof document>"u")return null;var l=Array.isArray(t)?t[0]:t;return l.ownerDocument.body},ei=new WeakMap,ro=new WeakMap,io={},sf=0,Eb=function(t){return t&&(t.host||Eb(t.parentNode))},Vw=function(t,l){return l.map(function(i){if(t.contains(i))return i;var a=Eb(i);return a&&t.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},Yw=function(t,l,i,a){var o=Vw(l,Array.isArray(t)?t:[t]);io[i]||(io[i]=new WeakMap);var c=io[i],s=[],d=new Set,m=new Set(o),p=function(g){!g||d.has(g)||(d.add(g),p(g.parentNode))};o.forEach(p);var y=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))y(v);else try{var S=v.getAttribute(a),E=S!==null&&S!=="false",A=(ei.get(v)||0)+1,j=(c.get(v)||0)+1;ei.set(v,A),c.set(v,j),s.push(v),A===1&&E&&ro.set(v,!0),j===1&&v.setAttribute(i,"true"),E||v.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return y(l),d.clear(),sf++,function(){s.forEach(function(g){var v=ei.get(g)-1,S=c.get(g)-1;ei.set(g,v),c.set(g,S),v||(ro.has(g)||g.removeAttribute(a),ro.delete(g)),S||g.removeAttribute(i)}),sf--,sf||(ei=new WeakMap,ei=new WeakMap,ro=new WeakMap,io={})}},Gw=function(t,l,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),o=Iw(t);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live], script"))),Yw(a,o,i,"aria-hidden")):function(){return null}},Fw=Object.defineProperty,nl=(t,l)=>Fw(t,"name",{value:l,configurable:!0}),Ed="Dialog",[Cb,w5]=Yx(Ed),[Xw,or]=Cb(Ed),Qw=nl(t=>{const{__scopeDialog:l,children:i,open:a,defaultOpen:o,onOpenChange:c,modal:s=!0}=t,d=k.useRef(null),m=k.useRef(null),[p,y]=Xx({prop:a,defaultProp:o??!1,onChange:c,caller:Ed}),[g,v]=k.useState(0),[S,E]=k.useState(0);return x.jsx(Xw,{scope:l,triggerRef:d,contentRef:m,contentId:_n(),titleId:_n(),descriptionId:_n(),titlePresent:g>0,descriptionPresent:S>0,setTitleCount:v,setDescriptionCount:E,open:p,onOpenChange:y,onOpenToggle:k.useCallback(()=>y(A=>!A),[y]),modal:s,children:i})},"Dialog"),Tb="DialogPortal",[Zw,Ab]=Cb(Tb,{forceMount:void 0}),Kw=nl(t=>{const{__scopeDialog:l,forceMount:i,children:a,container:o}=t,c=or(Tb,l);return x.jsx(Zw,{scope:l,forceMount:i,children:k.Children.map(a,s=>x.jsx(Sd,{present:i||c.open,children:x.jsx(tw,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Qf="DialogOverlay",Pw=k.forwardRef(nl(function(l,i){const a=Ab(Qf,l.__scopeDialog),{forceMount:o=a.forceMount,...c}=l,s=or(Qf,l.__scopeDialog);return s.modal?x.jsx(Sd,{present:o||s.open,children:x.jsx(Jw,{...c,ref:i})}):null},"DialogOverlay")),$w=xd("DialogOverlay.RemoveScroll"),Jw=k.forwardRef(nl(function(l,i){const{__scopeDialog:a,...o}=l,c=or(Qf,a),s=lb(),d=mi(i,s);return x.jsx(wb,{as:$w,allowPinchZoom:!0,shards:[c.contentRef],children:x.jsx(pn.div,{"data-state":Cd(c.open),...o,ref:d,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Ea="DialogContent",Ww=k.forwardRef(nl(function(l,i){const a=Ab(Ea,l.__scopeDialog),{forceMount:o=a.forceMount,...c}=l,s=or(Ea,l.__scopeDialog);return x.jsx(Sd,{present:o||s.open,children:s.modal?x.jsx(eE,{...c,ref:i}):x.jsx(tE,{...c,ref:i})})},"DialogContent")),eE=k.forwardRef(nl(function(l,i){const a=or(Ea,l.__scopeDialog),o=k.useRef(null),c=mi(i,a.contentRef,o);return k.useEffect(()=>{const s=o.current;if(s)return Gw(s)},[]),x.jsx(Nb,{...l,ref:c,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:nr(l.onCloseAutoFocus,s=>{var d;s.preventDefault(),(d=a.triggerRef.current)==null||d.focus()}),onPointerDownOutside:nr(l.onPointerDownOutside,s=>{const d=s.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&s.preventDefault()}),onFocusOutside:nr(l.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),tE=k.forwardRef(nl(function(l,i){const a=or(Ea,l.__scopeDialog),o=k.useRef(!1),c=k.useRef(!1);return x.jsx(Nb,{...l,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var d,m;(d=l.onCloseAutoFocus)==null||d.call(l,s),s.defaultPrevented||(o.current||(m=a.triggerRef.current)==null||m.focus(),s.preventDefault()),o.current=!1,c.current=!1},onInteractOutside:s=>{var p,y;(p=l.onInteractOutside)==null||p.call(l,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const d=s.target;((y=a.triggerRef.current)==null?void 0:y.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&c.current&&s.preventDefault()}})},"DialogContentNonModal")),Nb=k.forwardRef(nl(function(l,i){const{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,...d}=l,m=or(Ea,a);return wd(),x.jsx(x.Fragment,{children:x.jsx(J2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:s,children:x.jsx(K2,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionPresent?m.descriptionId:void 0,"aria-labelledby":m.titlePresent?m.titleId:void 0,"data-state":Cd(m.open),...d,ref:i,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})},"DialogContentImpl"));function Cd(t){return t?"open":"closed"}nl(Cd,"getState");var da='[cmdk-group=""]',cf='[cmdk-group-items=""]',nE='[cmdk-group-heading=""]',jb='[cmdk-item=""]',yy=`${jb}:not([aria-disabled="true"])`,Zf="cmdk-item-select",ii="data-value",lE=(t,l,i)=>v2(t,l,i),zb=k.createContext(void 0),ja=()=>k.useContext(zb),Mb=k.createContext(void 0),Td=()=>k.useContext(Mb),_b=k.createContext(void 0),Db=k.forwardRef((t,l)=>{let i=ai(()=>{var M,C;return{search:"",value:(C=(M=t.value)!=null?M:t.defaultValue)!=null?C:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=ai(()=>new Set),o=ai(()=>new Map),c=ai(()=>new Map),s=ai(()=>new Set),d=Ob(t),{label:m,children:p,value:y,onValueChange:g,filter:v,shouldFilter:S,loop:E,disablePointerSelection:A=!1,vimBindings:j=!0,...N}=t,L=_n(),R=_n(),K=_n(),ee=k.useRef(null),D=mE();ir(()=>{if(y!==void 0){let M=y.trim();i.current.value=M,X.emit()}},[y]),ir(()=>{D(6,xe)},[]);let X=k.useMemo(()=>({subscribe:M=>(s.current.add(M),()=>s.current.delete(M)),snapshot:()=>i.current,setState:(M,C,te)=>{var J,le,he,Ae;if(!Object.is(i.current[M],C)){if(i.current[M]=C,M==="search")$(),H(),D(1,re);else if(M==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let pe=document.getElementById(K);pe?pe.focus():(J=document.getElementById(L))==null||J.focus()}if(D(7,()=>{var pe;i.current.selectedItemId=(pe=ue())==null?void 0:pe.id,X.emit()}),te||D(5,xe),((le=d.current)==null?void 0:le.value)!==void 0){let pe=C??"";(Ae=(he=d.current).onValueChange)==null||Ae.call(he,pe);return}}X.emit()}},emit:()=>{s.current.forEach(M=>M())}}),[]),V=k.useMemo(()=>({value:(M,C,te)=>{var J;C!==((J=c.current.get(M))==null?void 0:J.value)&&(c.current.set(M,{value:C,keywords:te}),i.current.filtered.items.set(M,ae(C,te)),D(2,()=>{H(),X.emit()}))},item:(M,C)=>(a.current.add(M),C&&(o.current.has(C)?o.current.get(C).add(M):o.current.set(C,new Set([M]))),D(3,()=>{$(),H(),i.current.value||re(),X.emit()}),()=>{c.current.delete(M),a.current.delete(M),i.current.filtered.items.delete(M);let te=ue();D(4,()=>{$(),(te==null?void 0:te.getAttribute("id"))===M&&re(),X.emit()})}),group:M=>(o.current.has(M)||o.current.set(M,new Set),()=>{c.current.delete(M),o.current.delete(M)}),filter:()=>d.current.shouldFilter,label:m||t["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:L,inputId:K,labelId:R,listInnerRef:ee}),[]);function ae(M,C){var te,J;let le=(J=(te=d.current)==null?void 0:te.filter)!=null?J:lE;return M?le(M,i.current.search,C):0}function H(){if(!i.current.search||d.current.shouldFilter===!1)return;let M=i.current.filtered.items,C=[];i.current.filtered.groups.forEach(J=>{let le=o.current.get(J),he=0;le.forEach(Ae=>{let pe=M.get(Ae);he=Math.max(pe,he)}),C.push([J,he])});let te=ee.current;ne().sort((J,le)=>{var he,Ae;let pe=J.getAttribute("id"),at=le.getAttribute("id");return((he=M.get(at))!=null?he:0)-((Ae=M.get(pe))!=null?Ae:0)}).forEach(J=>{let le=J.closest(cf);le?le.appendChild(J.parentElement===le?J:J.closest(`${cf} > *`)):te.appendChild(J.parentElement===te?J:J.closest(`${cf} > *`))}),C.sort((J,le)=>le[1]-J[1]).forEach(J=>{var le;let he=(le=ee.current)==null?void 0:le.querySelector(`${da}[${ii}="${encodeURIComponent(J[0])}"]`);he==null||he.parentElement.appendChild(he)})}function re(){let M=ne().find(te=>te.getAttribute("aria-disabled")!=="true"),C=M==null?void 0:M.getAttribute(ii);X.setState("value",C||void 0)}function $(){var M,C,te,J;if(!i.current.search||d.current.shouldFilter===!1){i.current.filtered.count=a.current.size;return}i.current.filtered.groups=new Set;let le=0;for(let he of a.current){let Ae=(C=(M=c.current.get(he))==null?void 0:M.value)!=null?C:"",pe=(J=(te=c.current.get(he))==null?void 0:te.keywords)!=null?J:[],at=ae(Ae,pe);i.current.filtered.items.set(he,at),at>0&&le++}for(let[he,Ae]of o.current)for(let pe of Ae)if(i.current.filtered.items.get(pe)>0){i.current.filtered.groups.add(he);break}i.current.filtered.count=le}function xe(){var M,C,te;let J=ue();J&&(((M=J.parentElement)==null?void 0:M.firstChild)===J&&((te=(C=J.closest(da))==null?void 0:C.querySelector(nE))==null||te.scrollIntoView({block:"nearest"})),J.scrollIntoView({block:"nearest"}))}function ue(){var M;return(M=ee.current)==null?void 0:M.querySelector(`${jb}[aria-selected="true"]`)}function ne(){var M;return Array.from(((M=ee.current)==null?void 0:M.querySelectorAll(yy))||[])}function B(M){let C=ne()[M];C&&X.setState("value",C.getAttribute(ii))}function Q(M){var C;let te=ue(),J=ne(),le=J.findIndex(Ae=>Ae===te),he=J[le+M];(C=d.current)!=null&&C.loop&&(he=le+M<0?J[J.length-1]:le+M===J.length?J[0]:J[le+M]),he&&X.setState("value",he.getAttribute(ii))}function ce(M){let C=ue(),te=C==null?void 0:C.closest(da),J;for(;te&&!J;)te=M>0?dE(te,da):hE(te,da),J=te==null?void 0:te.querySelector(yy);J?X.setState("value",J.getAttribute(ii)):Q(M)}let we=()=>B(ne().length-1),T=M=>{M.preventDefault(),M.metaKey?we():M.altKey?ce(1):Q(1)},_=M=>{M.preventDefault(),M.metaKey?B(0):M.altKey?ce(-1):Q(-1)};return k.createElement(pn.div,{ref:l,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:M=>{var C;(C=N.onKeyDown)==null||C.call(N,M);let te=M.nativeEvent.isComposing||M.keyCode===229;if(!(M.defaultPrevented||te))switch(M.key){case"n":case"j":{j&&M.ctrlKey&&T(M);break}case"ArrowDown":{T(M);break}case"p":case"k":{j&&M.ctrlKey&&_(M);break}case"ArrowUp":{_(M);break}case"Home":{M.preventDefault(),B(0);break}case"End":{M.preventDefault(),we();break}case"Enter":{M.preventDefault();let J=ue();if(J){let le=new Event(Zf);J.dispatchEvent(le)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:gE},m),To(t,M=>k.createElement(Mb.Provider,{value:X},k.createElement(zb.Provider,{value:V},M))))}),rE=k.forwardRef((t,l)=>{var i,a;let o=_n(),c=k.useRef(null),s=k.useContext(_b),d=ja(),m=Ob(t),p=(a=(i=m.current)==null?void 0:i.forceMount)!=null?a:s==null?void 0:s.forceMount;ir(()=>{if(!p)return d.item(o,s==null?void 0:s.id)},[p]);let y=Rb(o,c,[t.value,t.children,c],t.keywords),g=Td(),v=_l(D=>D.value&&D.value===y.current),S=_l(D=>p||d.filter()===!1?!0:D.search?D.filtered.items.get(o)>0:!0);k.useEffect(()=>{let D=c.current;if(!(!D||t.disabled))return D.addEventListener(Zf,E),()=>D.removeEventListener(Zf,E)},[S,t.onSelect,t.disabled]);function E(){var D,X;A(),(X=(D=m.current).onSelect)==null||X.call(D,y.current)}function A(){g.setState("value",y.current,!0)}if(!S)return null;let{disabled:j,value:N,onSelect:L,forceMount:R,keywords:K,...ee}=t;return k.createElement(pn.div,{ref:rr(c,l),...ee,id:o,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!v,"data-disabled":!!j,"data-selected":!!v,onPointerMove:j||d.getDisablePointerSelection()?void 0:A,onClick:j?void 0:E},t.children)}),iE=k.forwardRef((t,l)=>{let{heading:i,children:a,forceMount:o,...c}=t,s=_n(),d=k.useRef(null),m=k.useRef(null),p=_n(),y=ja(),g=_l(S=>o||y.filter()===!1?!0:S.search?S.filtered.groups.has(s):!0);ir(()=>y.group(s),[]),Rb(s,d,[t.value,t.heading,m]);let v=k.useMemo(()=>({id:s,forceMount:o}),[o]);return k.createElement(pn.div,{ref:rr(d,l),...c,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},i&&k.createElement("div",{ref:m,"cmdk-group-heading":"","aria-hidden":!0,id:p},i),To(t,S=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":i?p:void 0},k.createElement(_b.Provider,{value:v},S))))}),aE=k.forwardRef((t,l)=>{let{alwaysRender:i,...a}=t,o=k.useRef(null),c=_l(s=>!s.search);return!i&&!c?null:k.createElement(pn.div,{ref:rr(o,l),...a,"cmdk-separator":"",role:"separator"})}),uE=k.forwardRef((t,l)=>{let{onValueChange:i,...a}=t,o=t.value!=null,c=Td(),s=_l(p=>p.search),d=_l(p=>p.selectedItemId),m=ja();return k.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),k.createElement(pn.input,{ref:l,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":m.listId,"aria-labelledby":m.labelId,"aria-activedescendant":d,id:m.inputId,type:"text",value:o?t.value:s,onChange:p=>{o||c.setState("search",p.target.value),i==null||i(p.target.value)}})}),oE=k.forwardRef((t,l)=>{let{children:i,label:a="Suggestions",...o}=t,c=k.useRef(null),s=k.useRef(null),d=_l(p=>p.selectedItemId),m=ja();return k.useEffect(()=>{if(s.current&&c.current){let p=s.current,y=c.current,g,v=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let S=p.offsetHeight;y.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return v.observe(p),()=>{cancelAnimationFrame(g),v.unobserve(p)}}},[]),k.createElement(pn.div,{ref:rr(c,l),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":d,"aria-label":a,id:m.listId},To(t,p=>k.createElement("div",{ref:rr(s,m.listInnerRef),"cmdk-list-sizer":""},p)))}),sE=k.forwardRef((t,l)=>{let{open:i,onOpenChange:a,overlayClassName:o,contentClassName:c,container:s,...d}=t;return k.createElement(Qw,{open:i,onOpenChange:a},k.createElement(Kw,{container:s},k.createElement(Pw,{"cmdk-overlay":"",className:o}),k.createElement(Ww,{"aria-label":t.label,"cmdk-dialog":"",className:c},k.createElement(Db,{ref:l,...d}))))}),cE=k.forwardRef((t,l)=>_l(i=>i.filtered.count===0)?k.createElement(pn.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),fE=k.forwardRef((t,l)=>{let{progress:i,children:a,label:o="Loading...",...c}=t;return k.createElement(pn.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},To(t,s=>k.createElement("div",{"aria-hidden":!0},s)))}),ti=Object.assign(Db,{List:oE,Item:rE,Input:uE,Group:iE,Separator:aE,Dialog:sE,Empty:cE,Loading:fE});function dE(t,l){let i=t.nextElementSibling;for(;i;){if(i.matches(l))return i;i=i.nextElementSibling}}function hE(t,l){let i=t.previousElementSibling;for(;i;){if(i.matches(l))return i;i=i.previousElementSibling}}function Ob(t){let l=k.useRef(t);return ir(()=>{l.current=t}),l}var ir=typeof window>"u"?k.useEffect:k.useLayoutEffect;function ai(t){let l=k.useRef();return l.current===void 0&&(l.current=t()),l}function _l(t){let l=Td(),i=()=>t(l.snapshot());return k.useSyncExternalStore(l.subscribe,i,i)}function Rb(t,l,i,a=[]){let o=k.useRef(),c=ja();return ir(()=>{var s;let d=(()=>{var p;for(let y of i){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(p=y.current.textContent)==null?void 0:p.trim():o.current}})(),m=a.map(p=>p.trim());c.value(t,d,m),(s=l.current)==null||s.setAttribute(ii,d),o.current=d}),o}var mE=()=>{let[t,l]=k.useState(),i=ai(()=>new Map);return ir(()=>{i.current.forEach(a=>a()),i.current=new Map},[t]),(a,o)=>{i.current.set(a,o),l({})}};function pE(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function To({asChild:t,children:l},i){return t&&k.isValidElement(l)?k.cloneElement(pE(l),{ref:l.ref},i(l.props.children)):i(l)}var gE={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const yE=[{label:"Sessions",icon:$S,value:"sessions"},{label:"Memory",icon:fd,value:"memory"},{label:"Schedules",icon:IS,value:"schedules"},{label:"Jobs",icon:qS,value:"jobs"},{label:"Settings",icon:Sx,value:"settings"}];function xE({onNavigate:t}){const[l,i]=k.useState(!1);k.useEffect(()=>{const o=c=>{(c.metaKey||c.ctrlKey)&&c.key==="k"&&(c.preventDefault(),i(s=>!s))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[]);const a=o=>{i(!1),t(o)};return l?x.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>i(!1),children:[x.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),x.jsx("div",{className:se("relative z-10 w-full max-w-lg rounded-xl border border-border","bg-popover text-popover-foreground shadow-2xl","overflow-hidden"),onClick:o=>o.stopPropagation(),children:x.jsxs(ti,{children:[x.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[x.jsxs("svg",{className:"h-4 w-4 shrink-0 text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[x.jsx("circle",{cx:"11",cy:"11",r:"8"}),x.jsx("path",{d:"m21 21-4.35-4.35"})]}),x.jsx(ti.Input,{autoFocus:!0,placeholder:"Search commands…",className:se("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),x.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),x.jsxs(ti.List,{className:"max-h-64 overflow-y-auto py-2",children:[x.jsx(ti.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),x.jsx(ti.Group,{heading:"Navigation",className:"px-2",children:yE.map(({label:o,icon:c,value:s})=>x.jsxs(ti.Item,{value:s,onSelect:()=>a(s),className:se("flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-sm","text-popover-foreground transition-colors","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[x.jsx(c,{className:"h-4 w-4 text-muted-foreground"}),o]},s))})]})]})})]}):null}const bE={1:"sessions",2:"memory",3:"schedules",4:"jobs"};function vE({onNavigate:t}){return k.useEffect(()=>{function l(i){if(!(i.metaKey||i.ctrlKey))return;const a=bE[i.key];a&&(i.preventDefault(),t(a))}return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[t]),null}const xy=200;function Lb({text:t,isStreaming:l=!1}){const[i,a]=k.useState(!1),o=t.length>xy,c=o&&!i?t.slice(0,xy)+"…":t;return x.jsxs("details",{className:"group rounded-md border border-border/30 bg-muted/20",children:[x.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1.5 px-3 py-2 text-xs text-muted-foreground select-none hover:text-foreground",children:[x.jsx(fd,{className:["h-3.5 w-3.5 shrink-0 text-brand/60",l?"animate-pulse":""].filter(Boolean).join(" ")}),x.jsx("span",{className:"font-medium",children:"Thinking"}),t.length>0&&x.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums",children:[t.length.toLocaleString()," chars"]}),l&&x.jsx("span",{className:"ml-0.5 flex items-center gap-px",children:[0,150,300].map(s=>x.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-muted-foreground/50 animate-shimmer-pulse",style:{animationDelay:`${s}ms`}},s))})]}),x.jsxs("div",{className:"border-t border-border/30 px-3 py-2",children:[x.jsx("p",{className:"whitespace-pre-wrap break-words text-xs italic leading-relaxed text-muted-foreground/70",children:c}),o&&x.jsx("button",{type:"button",onClick:s=>{s.preventDefault(),a(d=>!d)},className:"mt-1.5 text-[10px] text-brand/60 hover:text-brand/80 transition-colors",children:i?"Show less":"Show more"})]})]})}function SE({open:t,children:l}){return x.jsx("div",{className:se("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:x.jsx("div",{className:"min-h-0 overflow-hidden",children:l})})}function kE({diff:t}){const l=t.split(`
345
+ `);return x.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:x.jsx("table",{className:"w-full border-collapse",children:x.jsx("tbody",{children:l.map((i,a)=>{const o=i.startsWith("+")&&!i.startsWith("+++"),c=i.startsWith("-")&&!i.startsWith("---"),s=i.startsWith("@@"),d=i.startsWith("+++")||i.startsWith("---");return x.jsxs("tr",{className:se(o&&"bg-status-running/15 text-status-running",c&&"bg-status-failed/15 text-status-failed",s&&"bg-muted text-muted-foreground",d&&"text-muted-foreground",!o&&!c&&!s&&!d&&"text-foreground"),children:[x.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:a+1}),x.jsx("td",{className:"w-full whitespace-pre px-2 py-0",children:i||" "})]},a)})})})})}const Kf="afk_web_token",wE="__AFK_WEB_TOKEN__";let ba=null;function EE(){ba=null;try{sessionStorage.removeItem(Kf)}catch{}}function Ub(){if(ba)return ba;const t=document.querySelector('meta[name="afk-token"]'),l=t==null?void 0:t.content;if(l&&l!==wE){ba=l;try{sessionStorage.setItem(Kf,l)}catch{}return CE(),l}try{const i=sessionStorage.getItem(Kf);if(i)return ba=i,i}catch{}return""}function CE(){const t=new URL(window.location.href);(t.searchParams.has("token")||t.searchParams.has("k"))&&(t.searchParams.delete("token"),t.searchParams.delete("k"),window.history.replaceState({},"",t.toString()))}async function tt(t,l={}){const i=Ub(),a=new Headers(l.headers);i&&a.set("Authorization",`Bearer ${i}`),l.body&&!a.has("Content-Type")&&a.set("Content-Type","application/json");const o=await fetch(t,{...l,headers:a});if(!o.ok){o.status===401&&EE();const c=await o.text().catch(()=>o.statusText);throw new Bb(o.status,c)}return o.json()}class Bb extends Error{constructor(l,i){super(`API ${l}: ${i}`),this.status=l,this.name="ApiError"}}let Pf=0;function TE(){Pf=0}function wt(t){return Pf+=1,`${t}_${Pf}`}function Qe(t){return typeof t=="string"?t:void 0}function dn(t){return typeof t=="number"?t:void 0}const AE="… [truncated]";function NE(t){return t.endsWith(AE)}function jE(t,l){return`/api/sessions/${encodeURIComponent(t)}/tool-results/${encodeURIComponent(l)}`}function zE(t,l){const i=Qe(t.toolUseId),a=Qe(t.content)??Qe(t.output)??"",o=i!==void 0?l==null?void 0:l.get(i):void 0;if(o===void 0)return{kind:"notice",id:wt("n"),text:`tool result: ${a.slice(0,80)}`};o.output=a,o.outputUnavailable=!1,o.outputClipped=NE(a),o.status="ok";const c=dn(t.durationMs);c!==void 0&&(o.durationMs=c);const s=Qe(t.diff);s!==void 0&&(o.diff=s)}function ME(t,l,i){if(typeof t.kind=="string")switch(t.kind){case"user":return{kind:"user",id:wt("u"),text:Qe(t.text)??""};case"assistant":return{kind:"assistant",id:wt("a"),text:Qe(t.text)??""};case"thinking":return{kind:"thinking",id:wt("th"),text:Qe(t.text)??""};case"tool":{const a=Qe(t.input)??"";if(a.trim()==="…")return;const o=Qe(t.toolUseId),c={kind:"tool",id:wt("t"),name:Qe(t.toolName)??"tool",toolUseId:o,inputPreview:a,status:"ok",outputUnavailable:!0};return l!==void 0&&o!==void 0&&l.set(o,c),c}case"tool_result":return zE(t,l);case"tool_error":{const a=Qe(t.content)??"",o=a.split(`
346
+ `,1)[0]??"";return{kind:"tool",id:wt("t"),name:Qe(t.toolName)??"error",inputPreview:o,status:"error",output:a}}case"error":return{kind:"error",id:wt("e"),message:Qe(t.message)??"error"};case"done":{const a=t.costUsd,o=t.durationMs,c=[];typeof a=="number"&&c.push(`$${a.toFixed(4)}`),typeof o=="number"&&c.push(`${(o/1e3).toFixed(1)}s`);const s=dn(t.inputTokens),d=dn(t.outputTokens),m=dn(t.cacheReadTokens);if(s!==void 0||d!==void 0){const p=[];s!==void 0&&p.push(`${s}in`),d!==void 0&&p.push(`${d}out`),m!==void 0&&p.push(`${m}cache`),c.push(p.join("/"))}return{kind:"notice",id:wt("n"),text:c.length?`turn complete · ${c.join(" · ")}`:"turn complete"}}case"paused":return{kind:"notice",id:wt("n"),text:"paused — usage limit"};case"resumed":return{kind:"notice",id:wt("n"),text:"resumed"};case"tool_activity":{const a=dn(t.activeCount)??0;if(a===0)return{kind:"notice",id:wt("n"),text:"tool wave complete"};const o=a===1?"tool":"tools";return{kind:"notice",id:wt("n"),text:`Running ${a} ${o} in parallel`}}case"rate_limit":{const a=dn(t.retryAfterMs),o=a!==void 0?` (retrying in ${Math.ceil(a/1e3)}s)`:"";return{kind:"notice",id:wt("n"),text:`Rate limited${o}`}}case"progress":return{kind:"notice",id:wt("n"),text:Qe(t.message)??"progress"};case"subagent_lifecycle":{const a=Qe(t.subagentId)??"subagent",o=Qe(t.status)??"unknown",c=Qe(t.agentType),s=c?`${c} (${a.slice(0,8)})`:a.slice(0,12);if(i!==void 0){const m=i.get(a);if(m!==void 0){m.status=o;const p=dn(t.durationMs);p!==void 0&&(m.durationMs=p);const y=dn(t.totalCostUsd);y!==void 0&&(m.totalCostUsd=y);const g=dn(t.turnCount);g!==void 0&&(m.turnCount=g);const v=Qe(t.stopReason);v!==void 0&&(m.stopReason=v);return}}const d={kind:"subagent",id:wt("sa"),subagentId:a,parentId:Qe(t.parentId),status:o,label:s,model:Qe(t.model),agentType:Qe(t.agentType),durationMs:dn(t.durationMs),totalCostUsd:dn(t.totalCostUsd),promptHead:Qe(t.promptHead),turnCount:dn(t.turnCount),stopReason:Qe(t.stopReason),parentToolUseId:Qe(t.parentToolUseId)};return i==null||i.set(a,d),d}case"background_job":{const a=Qe(t.jobId)??"job",o=Qe(t.status)??"unknown",c=Qe(t.label)??a.slice(0,12);return{kind:"bg_job",id:wt("bj"),jobId:a,status:o,label:c}}case"plan_mode":{const a=Qe(t.mode)??"default";return{kind:"notice",id:wt("n"),text:`Switched to ${a} mode`}}default:return}}function _E(t,l){if(l.kind!=="done")return t;const i=l.costUsd,a=l.durationMs,o=l.inputTokens,c=l.outputTokens,s=l.cacheReadTokens;return{costUsd:t.costUsd+(typeof i=="number"?i:0),durationMs:t.durationMs+(typeof a=="number"?a:0),turns:t.turns+1,inputTokens:(t.inputTokens??0)+(typeof o=="number"?o:0),outputTokens:(t.outputTokens??0)+(typeof c=="number"?c:0),cacheReadTokens:(t.cacheReadTokens??0)+(typeof s=="number"?s:0)}}const Hb=k.createContext(null);function DE(t){return t instanceof Bb&&t.status===404?t.message.includes("journal_not_found")?"Full output unavailable: this session has no message journal.":"Full output not found in the session journal.":t instanceof Error?t.message:String(t)}function OE(t){const l=k.useContext(Hb),[i,a]=k.useState({status:"idle"}),o=l!==null&&t!==void 0&&t.length>0,c=k.useRef(null);k.useEffect(()=>(a({status:"idle"}),()=>{var d;(d=c.current)==null||d.abort(),c.current=null}),[l,t]);const s=k.useCallback(()=>{var m;if(!o||l===null||t===void 0)return;(m=c.current)==null||m.abort();const d=new AbortController;c.current=d,a({status:"loading"}),tt(jE(l,t),{signal:d.signal}).then(p=>{d.signal.aborted||a({status:"loaded",result:p})},p=>{d.signal.aborted||a({status:"error",message:DE(p)})})},[o,l,t]);return{state:i,canLoad:o,load:s}}const by="overflow-x-auto whitespace-pre-wrap font-mono text-[11px] text-foreground";function qb({toolUseId:t,preview:l,clipped:i,unavailable:a}){const{state:o,canLoad:c,load:s}=OE(t);if(o.status==="loaded"){const{result:m}=o;return x.jsxs("div",{children:[x.jsx("pre",{className:by,children:m.text}),m.truncated&&x.jsxs("p",{className:"mt-1 text-[11px] italic text-muted-foreground",children:["Showing the first ",m.text.length.toLocaleString()," of"," ",m.totalChars.toLocaleString()," characters."]})]})}const d=c&&(i===!0||a===!0);return x.jsxs("div",{children:[a&&!l&&x.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not in the live record (replayed session)"}),l&&x.jsx("pre",{className:by,children:l}),d&&x.jsx("button",{type:"button",onClick:s,disabled:o.status==="loading",className:"mt-1 text-[11px] text-muted-foreground underline underline-offset-2 hover:text-foreground disabled:opacity-50",children:o.status==="loading"?"Loading full output…":"Load full output"}),o.status==="error"&&x.jsx("p",{className:"mt-1 text-[11px] italic text-status-failed",children:o.message})]})}const RE={read_file:{Icon:li,colorClass:"text-cat-read"},glob:{Icon:li,colorClass:"text-cat-read"},grep:{Icon:li,colorClass:"text-cat-read"},list_directory:{Icon:li,colorClass:"text-cat-read"},json_query:{Icon:li,colorClass:"text-cat-read"},write_file:{Icon:mo,colorClass:"text-cat-write"},edit_file:{Icon:mo,colorClass:"text-cat-write"},patch_apply:{Icon:mo,colorClass:"text-cat-write"},bash:{Icon:Of,colorClass:"text-cat-shell"},test_run:{Icon:Of,colorClass:"text-cat-shell"},agent:{Icon:po,colorClass:"text-cat-agent"},compose:{Icon:po,colorClass:"text-cat-agent"},skill:{Icon:po,colorClass:"text-cat-agent"},browser_open:{Icon:oi,colorClass:"text-cat-browser"},browser_act:{Icon:oi,colorClass:"text-cat-browser"},browser_observe:{Icon:oi,colorClass:"text-cat-browser"},browser_screenshot:{Icon:oi,colorClass:"text-cat-browser"},web_scrape:{Icon:Df,colorClass:"text-cat-web"},web_request:{Icon:Df,colorClass:"text-cat-web"},memory_search:{Icon:$u,colorClass:"text-cat-mcp"},memory_update:{Icon:$u,colorClass:"text-cat-mcp"},state_get:{Icon:$u,colorClass:"text-cat-mcp"},state_put:{Icon:$u,colorClass:"text-cat-mcp"}};function LE(t){return RE[t]??{Icon:wx,colorClass:"text-cat-other"}}function UE({status:t}){return t==="running"?x.jsx(WS,{className:"h-3.5 w-3.5 shrink-0 animate-spin-slow text-status-blocked","aria-label":"running"}):t==="ok"?x.jsx(GS,{className:"h-3.5 w-3.5 shrink-0 text-status-running","aria-label":"ok"}):x.jsx(xx,{className:"h-3.5 w-3.5 shrink-0 text-status-failed","aria-label":"error"})}function BE({ms:t,live:l}){const i=t!==void 0?`${(t/1e3).toFixed(1)}s`:l!==void 0?`...${l}s`:null;return i===null?null:x.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:i})}function HE({toolUseId:t,name:l,inputPreview:i,status:a,output:o,outputUnavailable:c,outputClipped:s,diff:d,durationMs:m}){const[p,y]=k.useState(!1),[g,v]=k.useState(!1),[S,E]=k.useState(0),A=k.useRef(null);k.useEffect(()=>(a==="running"&&m===void 0?A.current=setInterval(()=>{E(K=>K+1)},1e3):A.current!==null&&(clearInterval(A.current),A.current=null),()=>{A.current!==null&&clearInterval(A.current)}),[a,m]);const{Icon:j,colorClass:N}=LE(l),L=d||c||o&&o.trim().length>0,R=i.trim();return x.jsxs("div",{className:se("rounded-md border bg-card text-sm",a==="error"?"border-status-failed/40":"border-border"),children:[x.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[x.jsx(j,{className:se("h-3.5 w-3.5 shrink-0",N)}),x.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:l}),x.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[x.jsx(BE,{ms:m,live:a==="running"?S:void 0}),x.jsx(UE,{status:a})]})]}),R.length>0&&x.jsx("button",{type:"button",onClick:()=>v(K=>!K),className:"w-full border-t border-border/50 px-3 py-1.5 text-left","aria-expanded":g,children:x.jsx("p",{className:se("font-mono text-[11px] text-muted-foreground",!g&&"line-clamp-2"),children:R})}),L&&x.jsxs("div",{className:"border-t border-border/50",children:[x.jsxs("button",{type:"button",onClick:()=>y(K=>!K),className:"flex w-full cursor-pointer items-center gap-1 px-3 py-1.5 text-[11px] text-muted-foreground select-none hover:text-foreground","aria-expanded":p,children:[x.jsx(Eo,{className:se("h-3 w-3 shrink-0 transition-transform duration-150",p&&"rotate-90")}),"Output"]}),x.jsx(SE,{open:p,children:x.jsxs("div",{className:"px-3 pb-2 pt-1",children:[d&&x.jsx(kE,{diff:d}),!d&&x.jsx(qb,{toolUseId:t,preview:o,clipped:s,unavailable:c})]})})]})]})}function qE(t){if(t<1e3)return`${t}ms`;const l=t/1e3;return l<60?`${l.toFixed(1)}s`:`${Math.floor(l/60)}m ${Math.floor(l%60)}s`}function IE(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function VE({status:t}){const l="h-3.5 w-3.5 shrink-0";switch(t){case"started":return x.jsx(ik,{className:se(l,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return x.jsx(YS,{className:se(l,"text-status-running"),"aria-label":"succeeded"});case"failed":return x.jsx(XS,{className:se(l,"text-status-failed"),"aria-label":"failed"});case"cancelled":return x.jsx(kx,{className:se(l,"text-muted-foreground"),"aria-label":"cancelled"});default:return x.jsx(FS,{className:se(l,"text-muted-foreground"),"aria-label":"unknown"})}}function YE(t){switch(t){case"succeeded":case"completed":return"text-status-running";case"failed":return"text-status-failed";case"started":return"text-status-blocked";default:return"text-muted-foreground"}}function GE({node:t,isExpanded:l,onToggle:i,isChild:a}){const{item:o}=t,c=t.children.length>0;return x.jsxs("div",{className:se("flex items-start gap-2 px-3 py-2",c&&"cursor-pointer select-none",a&&"py-1.5"),onClick:c?i:void 0,role:c?"button":void 0,tabIndex:c?0:void 0,onKeyDown:c?s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),i())}:void 0,"aria-expanded":c?l:void 0,children:[c?x.jsx(Eo,{className:se("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",l&&"rotate-90")}):x.jsx("span",{className:"h-3 w-3 shrink-0"}),x.jsx("span",{className:"mt-0.5",children:x.jsx(VE,{status:o.status})}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[x.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&x.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:o.model}),o.durationMs!==void 0&&x.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:qE(o.durationMs)}),o.totalCostUsd!==void 0&&x.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:IE(o.totalCostUsd)}),x.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",YE(o.status)),children:o.status})]}),o.promptHead&&x.jsxs("p",{className:"mt-0.5 line-clamp-1 text-[11px] italic text-muted-foreground",children:["“",o.promptHead,"”"]})]})]})}function Ib({node:t,isChild:l=!1}){const[i,a]=k.useState(!0),o=t.children.length>0;return x.jsxs("div",{children:[x.jsx(GE,{node:t,isExpanded:i,onToggle:()=>a(c=>!c),isChild:l}),o&&i&&x.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((c,s)=>x.jsx("div",{className:se(s<t.children.length-1&&"border-b border-border/30"),children:x.jsx(Ib,{node:c,isChild:!0})},c.item.subagentId))})]})}function FE({roots:t,className:l}){return t.length===0?null:x.jsx("div",{className:se("rounded-md border border-border bg-card",l),children:t.map((i,a)=>x.jsx("div",{className:se(a<t.length-1&&"border-b border-border/50"),children:x.jsx(Ib,{node:i})},i.item.subagentId))})}function ff(){return x.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function ao({label:t,value:l}){return x.jsxs("span",{className:"flex items-baseline gap-1",children:[x.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),x.jsx("span",{className:"font-mono text-xs text-foreground",children:l})]})}function XE(t){if(t<1e3)return`${t}ms`;const l=t/1e3;if(l<60)return`${l.toFixed(1)}s`;const i=Math.floor(l/60),a=Math.round(l%60);return`${i}m ${a}s`}function QE(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function Vb({totals:t,className:l}){if(!t)return x.jsx("div",{className:se("flex items-center gap-2 text-xs text-muted-foreground",l),children:x.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const i=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return x.jsxs("div",{className:se("flex flex-wrap items-center gap-2",l),children:[x.jsx(ao,{label:"turns",value:String(t.turns)}),x.jsx(ff,{}),x.jsx(ao,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),i>0&&x.jsxs(x.Fragment,{children:[x.jsx(ff,{}),x.jsx(ao,{label:"tokens",value:QE(i)})]}),x.jsx(ff,{}),x.jsx(ao,{label:"duration",value:XE(t.durationMs)})]})}function ZE(t){const l=new Map,i=[];for(const o of t){if(o.kind!=="subagent"||l.get(o.subagentId))continue;const s={item:o,children:[]};if(l.set(o.subagentId,s),o.parentId){const d=l.get(o.parentId);d?d.children.push(s):i.push(s)}else i.push(s)}const a=[];for(const o of i){const c=o.item.parentId?l.get(o.item.parentId):void 0;c?c.children.push(o):a.push(o)}return a}const KE=new Set(["read_file","glob","grep","list_directory","json_query","read_witness","search_witness","get_facet","clipboard_read"]),PE=new Set(["write_file","edit_file","patch_apply","clipboard_write","procedure_write"]),$E=new Set(["bash","test_run","wait_for"]),JE=new Set(["agent","send_message_to_agent","cancel_background_job"]),WE=new Set(["skill"]),eC=new Set(["compose"]),tC=new Set(["web_scrape","web_request"]),nC=new Set(["browser_open","browser_act","browser_observe","browser_screenshot","browser_close"]),lC=new Set(["memory_search","memory_update","state_get","state_put","state_cas","state_delete","state_query","workspace_publish","workspace_query"]);function rC(t){return KE.has(t)?"read":PE.has(t)?"write":$E.has(t)?"shell":JE.has(t)?"agent":WE.has(t)?"skill":eC.has(t)?"dag":tC.has(t)?"web":nC.has(t)?"browser":lC.has(t)?"other":t.startsWith("mcp__")?"mcp":"other"}function Yb(t){if(t<1e3)return"<1s";const l=t/1e3;if(l<60)return`${l.toFixed(1)}s`;const i=Math.floor(l/60),a=Math.floor(l%60);return`${i}m ${a}s`}function Gb(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function iC(t){return t==="error"?"error":t==="ok"?"ok":"running"}function aC(t){return t==="succeeded"?"ok":t==="failed"?"error":t==="cancelled"?"cancelled":"running"}function uC(t,l){const i=iC(t.status);return{id:t.id,kind:"tool",label:t.name,category:rC(t.name),status:i,preview:t.inputPreview,durationMs:t.durationMs,output:t.output,outputClipped:t.outputClipped,outputUnavailable:t.outputUnavailable,children:[],isActive:i==="running",sourceId:t.toolUseId,seq:l}}function oC(t,l){const i=aC(t.status);return{id:t.id,kind:"agent",label:t.label,category:"agent",status:i,preview:t.promptHead,durationMs:t.durationMs,costUsd:t.totalCostUsd,model:t.model,agentType:t.agentType,turnCount:t.turnCount,children:[],isActive:i==="running",sourceId:t.subagentId,seq:l}}function sC(t){const l=[],i=[],a=new Map;for(let y=0;y<t.length;y++){const g=t[y];g!==void 0&&(g.kind==="tool"&&(l.push(g),a.set(g.id,y)),g.kind==="subagent"&&(i.push(g),a.set(g.id,y)))}const o=new Map;for(const y of l)y.toolUseId&&o.set(y.toolUseId,y);const c=new Map,s=new Map;for(const y of l)c.set(y.id,uC(y,a.get(y.id)??0));for(const y of i)s.set(y.subagentId,oC(y,a.get(y.id)??0));const d=[],m=[];for(const y of i){const g=s.get(y.subagentId);if(g){if(y.parentToolUseId){const v=o.get(y.parentToolUseId);if(v){const S=c.get(v.id);if(S){S.kind="agent",S.children.push(g);continue}}m.push(g);continue}if(y.parentId){const v=s.get(y.parentId);if(v){v.children.push(g);continue}m.push(g);continue}d.push(g)}}const p=[];for(const y of m){const g=i.find(S=>S.subagentId===y.sourceId);if(!g){d.push(y);continue}let v=!1;if(g.parentToolUseId){const S=o.get(g.parentToolUseId);if(S){const E=c.get(S.id);E&&(E.kind="agent",E.children.push(y),v=!0)}}if(!v&&g.parentId){const S=s.get(g.parentId);S&&(S.children.push(y),v=!0)}v||p.push(y)}for(const y of p)d.push(y);for(const y of l){const g=c.get(y.id);g&&d.push(g)}return d.sort((y,g)=>y.seq-g.seq),d}const cC={read:li,write:mo,shell:Of,agent:po,skill:ck,dag:tk,mcp:ak,web:Df,browser:oi,plan:JS,other:wx},fC={read:"text-cat-read",write:"text-cat-write",shell:"text-cat-shell",agent:"text-cat-agent",skill:"text-cat-skill",dag:"text-cat-dag",mcp:"text-cat-mcp",web:"text-cat-web",browser:"text-cat-browser",plan:"text-cat-plan",other:"text-cat-other"};function Fb(t){let l=0;for(const i of t.children)i.kind==="tool"&&l++,l+=Fb(i);return l}function Xb(t){let l=t.durationMs??0;for(const i of t.children)l+=Xb(i);return l}function dC({category:t,status:l}){const i=cC[t],a=fC[t];return x.jsx(i,{className:se("h-3.5 w-3.5 shrink-0",a,l==="running"&&"animate-shimmer-pulse",l==="error"&&"text-status-failed",l==="cancelled"&&"opacity-50"),"aria-hidden":!0})}function df({node:t}){if(t.status==="running"||t.children.length===0)return null;if(t.status==="error")return x.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-status-failed",children:"Failed"});if(t.status==="cancelled")return x.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:"Cancelled"});const l=Fb(t),i=t.durationMs??Xb(t),a=t.costUsd,o=[];return l>0&&o.push(`${l} tool${l!==1?"s":""}`),i>0&&o.push(Yb(i)),a!=null&&a>0&&o.push(Gb(a)),x.jsxs("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:["Done",o.length>0?` (${o.join(" · ")})`:""]})}function Qb({node:t,depth:l=0,isLast:i=!1}){const a=t.kind==="agent"&&t.children.length>0,[o,c]=k.useState(t.isActive),s=t.kind==="tool"&&(t.output!==void 0&&t.output.trim().length>0||t.sourceId!==void 0&&t.outputUnavailable===!0),[d,m]=k.useState(!1),p=t.children.length>0,y=t.kind==="agent",g=o?hd:Eo;return x.jsxs("div",{className:se("relative",l>0&&"pl-3"),children:[x.jsxs("div",{className:se("flex items-center gap-1.5 py-0.5 group",a&&"cursor-pointer select-none"),onClick:a?()=>c(v=>!v):void 0,role:a?"button":void 0,"aria-expanded":a?o:void 0,children:[a?x.jsx(g,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}):x.jsx("span",{className:"h-3 w-3 shrink-0","aria-hidden":!0}),x.jsx(dC,{category:t.category,status:t.status}),x.jsx("span",{className:se("text-[12px] font-mono leading-none",t.status==="cancelled"&&"opacity-50",t.status==="error"&&"text-status-failed",t.status==="running"&&"text-foreground",t.status==="ok"&&"text-foreground/80"),children:t.label}),y&&t.model&&x.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.model}),y&&t.agentType&&x.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.agentType}),y&&t.turnCount!=null&&t.turnCount>0&&x.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:[t.turnCount," turn",t.turnCount!==1?"s":""]}),t.durationMs!=null&&t.durationMs>0&&x.jsx("span",{className:"text-[10px] font-mono text-muted-foreground tabular-nums",children:Yb(t.durationMs)}),y&&t.costUsd!=null&&t.costUsd>0&&x.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:Gb(t.costUsd)})]}),s&&x.jsxs("div",{className:"pl-5",children:[x.jsx("button",{type:"button",onClick:()=>m(v=>!v),"aria-expanded":d,className:"text-[10px] text-muted-foreground/70 hover:text-foreground",children:d?"Hide output":"Output"}),d&&x.jsx("div",{className:"mt-0.5 mb-1 max-h-96 overflow-y-auto rounded border border-border/50 bg-card px-2 py-1",children:x.jsx(qb,{toolUseId:t.sourceId,preview:t.output,clipped:t.outputClipped,unavailable:t.outputUnavailable})})]}),y&&t.preview&&x.jsx("div",{className:"pl-5 text-[11px] italic text-muted-foreground/60 line-clamp-1 leading-tight",children:t.preview}),y&&!o&&p&&x.jsx(df,{node:t}),p&&o&&x.jsxs("div",{className:se("relative mt-0.5 ml-[22px]","border-l-2 border-spine"),children:[t.children.map((v,S)=>{const E=S===t.children.length-1;return x.jsxs("div",{className:"relative",children:[x.jsx("div",{className:se("absolute left-0 top-[10px] h-0 w-3","border-t-2 border-spine",E&&"last-child-clip"),"aria-hidden":!0}),E&&x.jsx("div",{className:"absolute left-[-2px] top-[10px] bottom-0 w-[2px] bg-background","aria-hidden":!0}),x.jsx("div",{className:"pl-3",children:x.jsx(Qb,{node:v,depth:l+1,isLast:E})})]},v.id)}),y&&t.status!=="running"&&x.jsx(df,{node:t})]}),y&&(!p||!o)&&t.status!=="running"&&(p?null:x.jsx(df,{node:t}))]})}function hC({nodes:t,className:l}){return x.jsxs("div",{className:se("relative pl-3 border-l-2 border-spine/40",l),children:[x.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-widest text-muted-foreground/40 select-none",children:"Execution"}),t.length===0?x.jsx("div",{className:"text-[11px] text-muted-foreground/30 italic py-1",children:"No activity yet"}):x.jsx("div",{className:"flex flex-col gap-0.5",children:t.map((i,a)=>x.jsx(Qb,{node:i,depth:0,isLast:a===t.length-1},i.id))})]})}const mC=new Set(["tool","subagent","notice"]),pC=new Set(["user","assistant","thinking","error","bg_job"]);function gC(t){const l=[];let i=0;for(;i<t.length;){const a=t[i];if(a===void 0){i++;continue}if(pC.has(a.kind)){l.push({kind:"text",item:a}),i++;continue}const o=[];for(;i<t.length;){const c=t[i];if(c===void 0||!mC.has(c.kind))break;o.push(c),i++}if(o.length>0){const c=sC(o);l.push({kind:"execution",items:o,id:o[0].id,spineNodes:c})}}return l}function yC({slots:t,renderTextItem:l}){return x.jsx(x.Fragment,{children:t.map((i,a)=>i.kind==="text"?l(i.item,a):x.jsx("div",{className:"py-2 px-1",children:x.jsx(hC,{nodes:i.spineNodes})},i.id))})}function xC(t){return k.useMemo(()=>gC(t),[t])}function bC(t,l){const i=l||{};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const vC=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SC=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kC={};function vy(t,l){return(kC.jsx?SC:vC).test(t)}const wC=/[ \t\n\f\r]/g;function EC(t){return typeof t=="object"?t.type==="text"?Sy(t.value):!1:Sy(t)}function Sy(t){return t.replace(wC,"")===""}class za{constructor(l,i,a){this.normal=i,this.property=l,a&&(this.space=a)}}za.prototype.normal={};za.prototype.property={};za.prototype.space=void 0;function Zb(t,l){const i={},a={};for(const o of t)Object.assign(i,o.property),Object.assign(a,o.normal);return new za(i,a,l)}function $f(t){return t.toLowerCase()}class Gt{constructor(l,i){this.attribute=i,this.property=l}}Gt.prototype.attribute="";Gt.prototype.booleanish=!1;Gt.prototype.boolean=!1;Gt.prototype.commaOrSpaceSeparated=!1;Gt.prototype.commaSeparated=!1;Gt.prototype.defined=!1;Gt.prototype.mustUseProperty=!1;Gt.prototype.number=!1;Gt.prototype.overloadedBoolean=!1;Gt.prototype.property="";Gt.prototype.spaceSeparated=!1;Gt.prototype.space=void 0;let CC=0;const Ee=sr(),ft=sr(),Jf=sr(),ie=sr(),Pe=sr(),lr=sr(),Wt=sr();function sr(){return 2**++CC}const Wf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ft,commaOrSpaceSeparated:Wt,commaSeparated:lr,number:ie,overloadedBoolean:Jf,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),hf=Object.keys(Wf);class Ad extends Gt{constructor(l,i,a,o){let c=-1;if(super(l,i),ky(this,"space",o),typeof a=="number")for(;++c<hf.length;){const s=hf[c];ky(this,hf[c],(a&Wf[s])===Wf[s])}}}Ad.prototype.defined=!0;function ky(t,l,i){i&&(t[l]=i)}function pi(t){const l={},i={};for(const[a,o]of Object.entries(t.properties)){const c=new Ad(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),l[a]=c,i[$f(a)]=a,i[$f(c.attribute)]=a}return new za(l,i,t.space)}const Kb=pi({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Pe,ariaCurrent:null,ariaDescribedBy:Pe,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Pe,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Pe,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pe,ariaLevel:ie,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Pe,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Pe,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:ft,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(t,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}});function Pb(t,l){return l in t?t[l]:l}function $b(t,l){return Pb(t,l.toLowerCase())}const TC=pi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:Pe,accessKey:Pe,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alpha:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Pe,autoFocus:Ee,autoPlay:Ee,blocking:Pe,capture:null,charSet:null,checked:Ee,cite:null,className:Pe,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:ft,controls:Ee,controlsList:Pe,coords:ie|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:Jf,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Pe,height:ie,hidden:Jf,high:ie,href:null,hrefLang:null,htmlFor:Pe,httpEquiv:Pe,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Pe,itemRef:Pe,itemScope:Ee,itemType:Pe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ee,optimum:ie,pattern:null,ping:Pe,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Pe,required:Ee,reversed:Ee,rows:ie,rowSpan:ie,sandbox:Pe,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootCustomElementRegistry:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shadowRootSerializable:Ee,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:ft,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pe,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Ee,disablePictureInPicture:Ee,disableRemotePlayback:Ee,exportParts:lr,part:Pe,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:$b}),AC=pi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Pe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Pb}),Jb=pi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,l){return"xlink:"+l.slice(5).toLowerCase()}}),Wb=pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:$b}),e0=pi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,l){return"xml:"+l.slice(3).toLowerCase()}}),NC={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},jC=/[A-Z]/g,wy=/-[a-z]/g,zC=/^data[-\w.:]+$/i;function MC(t,l){const i=$f(l);let a=l,o=Gt;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&zC.test(l)){if(l.charAt(4)==="-"){const c=l.slice(5).replace(wy,DC);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!wy.test(c)){let s=c.replace(jC,_C);s.charAt(0)!=="-"&&(s="-"+s),l="data"+s}}o=Ad}return new o(a,l)}function _C(t){return"-"+t.toLowerCase()}function DC(t){return t.charAt(1).toUpperCase()}const OC=Zb([Kb,TC,Jb,Wb,e0],"html"),Nd=Zb([Kb,AC,Jb,Wb,e0],"svg");function RC(t){return t.join(" ").trim()}var ni={},mf,Ey;function LC(){if(Ey)return mf;Ey=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,l=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,d=/^\s+|\s+$/g,m=`
347
+ `,p="/",y="*",g="",v="comment",S="declaration";function E(j,N){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];N=N||{};var L=1,R=1;function K(ue){var ne=ue.match(l);ne&&(L+=ne.length);var B=ue.lastIndexOf(m);R=~B?ue.length-B:R+ue.length}function ee(){var ue={line:L,column:R};return function(ne){return ne.position=new D(ue),ae(),ne}}function D(ue){this.start=ue,this.end={line:L,column:R},this.source=N.source}D.prototype.content=j;function X(ue){var ne=new Error(N.source+":"+L+":"+R+": "+ue);if(ne.reason=ue,ne.filename=N.source,ne.line=L,ne.column=R,ne.source=j,!N.silent)throw ne}function V(ue){var ne=ue.exec(j);if(ne){var B=ne[0];return K(B),j=j.slice(B.length),ne}}function ae(){V(i)}function H(ue){var ne;for(ue=ue||[];ne=re();)ne!==!1&&ue.push(ne);return ue}function re(){var ue=ee();if(!(p!=j.charAt(0)||y!=j.charAt(1))){for(var ne=2;g!=j.charAt(ne)&&(y!=j.charAt(ne)||p!=j.charAt(ne+1));)++ne;if(ne+=2,g===j.charAt(ne-1))return X("End of comment missing");var B=j.slice(2,ne-2);return R+=2,K(B),j=j.slice(ne),R+=2,ue({type:v,comment:B})}}function $(){var ue=ee(),ne=V(a);if(ne){if(re(),!V(o))return X("property missing ':'");var B=V(c),Q=ue({type:S,property:A(ne[0].replace(t,g)),value:B?A(B[0].replace(t,g)):g});return V(s),Q}}function xe(){var ue=[];H(ue);for(var ne;ne=$();)ne!==!1&&(ue.push(ne),H(ue));return ue}return ae(),xe()}function A(j){return j?j.replace(d,g):g}return mf=E,mf}var Cy;function UC(){if(Cy)return ni;Cy=1;var t=ni&&ni.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=i;const l=t(LC());function i(a,o){let c=null;if(!a||typeof a!="string")return c;const s=(0,l.default)(a),d=typeof o=="function";return s.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:y}=m;d?o(p,y,m):y&&(c=c||{},c[p]=y)}),c}return ni}var ha={},Ty;function BC(){if(Ty)return ha;Ty=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,l=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||i.test(p)||t.test(p)},s=function(p,y){return y.toUpperCase()},d=function(p,y){return"".concat(y,"-")},m=function(p,y){return y===void 0&&(y={}),c(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,s))};return ha.camelCase=m,ha}var ma,Ay;function HC(){if(Ay)return ma;Ay=1;var t=ma&&ma.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},l=t(UC()),i=BC();function a(o,c){var s={};return!o||typeof o!="string"||(0,l.default)(o,function(d,m){d&&m&&(s[(0,i.camelCase)(d,c)]=m)}),s}return a.default=a,ma=a,ma}var qC=HC();const IC=sd(qC),t0=n0("end"),jd=n0("start");function n0(t){return l;function l(i){const a=i&&i.position&&i.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function VC(t){const l=jd(t),i=t0(t);if(l&&i)return{start:l,end:i}}function Sa(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Ny(t.position):"start"in t||"end"in t?Ny(t):"line"in t||"column"in t?ed(t):""}function ed(t){return jy(t&&t.line)+":"+jy(t&&t.column)}function Ny(t){return ed(t&&t.start)+"-"+ed(t&&t.end)}function jy(t){return t&&typeof t=="number"?t:1}class Tt extends Error{constructor(l,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",c={},s=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof l=="string"?o=l:!c.cause&&l&&(s=!0,o=l.message,c.cause=l),!c.ruleId&&!c.source&&typeof a=="string"){const m=a.indexOf(":");m===-1?c.ruleId=a:(c.source=a.slice(0,m),c.ruleId=a.slice(m+1))}if(!c.place&&c.ancestors&&c.ancestors){const m=c.ancestors[c.ancestors.length-1];m&&(c.place=m.position)}const d=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=d?d.line:void 0,this.name=Sa(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=s&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Tt.prototype.file="";Tt.prototype.name="";Tt.prototype.reason="";Tt.prototype.message="";Tt.prototype.stack="";Tt.prototype.column=void 0;Tt.prototype.line=void 0;Tt.prototype.ancestors=void 0;Tt.prototype.cause=void 0;Tt.prototype.fatal=void 0;Tt.prototype.place=void 0;Tt.prototype.ruleId=void 0;Tt.prototype.source=void 0;const zd={}.hasOwnProperty,YC=new Map,GC=/[A-Z]/g,FC=new Set(["table","tbody","thead","tfoot","tr"]),XC=new Set(["td","th"]),l0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function QC(t,l){if(!l||l.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=l.filePath||void 0;let a;if(l.development){if(typeof l.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=tT(i,l.jsxDEV)}else{if(typeof l.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof l.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=eT(i,l.jsx,l.jsxs)}const o={Fragment:l.Fragment,ancestors:[],components:l.components||{},create:a,elementAttributeNameCase:l.elementAttributeNameCase||"react",evaluater:l.createEvaluater?l.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:l.ignoreInvalidStyle||!1,passKeys:l.passKeys!==!1,passNode:l.passNode||!1,schema:l.space==="svg"?Nd:OC,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=r0(o,t,void 0);return c&&typeof c!="string"?c:o.create(t,o.Fragment,{children:c||void 0},void 0)}function r0(t,l,i){if(l.type==="element")return ZC(t,l,i);if(l.type==="mdxFlowExpression"||l.type==="mdxTextExpression")return KC(t,l);if(l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement")return $C(t,l,i);if(l.type==="mdxjsEsm")return PC(t,l);if(l.type==="root")return JC(t,l,i);if(l.type==="text")return WC(t,l)}function ZC(t,l,i){const a=t.schema;let o=a;l.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=Nd,t.schema=o),t.ancestors.push(l);const c=a0(t,l.tagName,!1),s=nT(t,l);let d=_d(t,l);return FC.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!EC(m):!0})),i0(t,s,c,l),Md(s,d),t.ancestors.pop(),t.schema=a,t.create(l,c,s,i)}function KC(t,l){if(l.data&&l.data.estree&&t.evaluater){const a=l.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}Ca(t,l.position)}function PC(t,l){if(l.data&&l.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(l.data.estree);Ca(t,l.position)}function $C(t,l,i){const a=t.schema;let o=a;l.name==="svg"&&a.space==="html"&&(o=Nd,t.schema=o),t.ancestors.push(l);const c=l.name===null?t.Fragment:a0(t,l.name,!0),s=lT(t,l),d=_d(t,l);return i0(t,s,c,l),Md(s,d),t.ancestors.pop(),t.schema=a,t.create(l,c,s,i)}function JC(t,l,i){const a={};return Md(a,_d(t,l)),t.create(l,t.Fragment,a,i)}function WC(t,l){return l.value}function i0(t,l,i,a){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(l.node=a)}function Md(t,l){if(l.length>0){const i=l.length>1?l:l[0];i&&(t.children=i)}}function eT(t,l,i){return a;function a(o,c,s,d){const p=Array.isArray(s.children)?i:l;return d?p(c,s,d):p(c,s)}}function tT(t,l){return i;function i(a,o,c,s){const d=Array.isArray(c.children),m=jd(a);return l(o,c,s,d,{columnNumber:m?m.column-1:void 0,fileName:t,lineNumber:m?m.line:void 0},void 0)}}function nT(t,l){const i={};let a,o;for(o in l.properties)if(o!=="children"&&zd.call(l.properties,o)){const c=rT(t,o,l.properties[o]);if(c){const[s,d]=c;t.tableCellAlignToStyle&&s==="align"&&typeof d=="string"&&XC.has(l.tagName)?a=d:i[s]=d}}if(a){const c=i.style||(i.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function lT(t,l){const i={};for(const a of l.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const c=a.data.estree.body[0];c.type;const s=c.expression;s.type;const d=s.properties[0];d.type,Object.assign(i,t.evaluater.evaluateExpression(d.argument))}else Ca(t,l.position);else{const o=a.name;let c;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const d=a.value.data.estree.body[0];d.type,c=t.evaluater.evaluateExpression(d.expression)}else Ca(t,l.position);else c=a.value===null?!0:a.value;i[o]=c}return i}function _d(t,l){const i=[];let a=-1;const o=t.passKeys?new Map:YC;for(;++a<l.children.length;){const c=l.children[a];let s;if(t.passKeys){const m=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(m){const p=o.get(m)||0;s=m+"-"+p,o.set(m,p+1)}}const d=r0(t,c,s);d!==void 0&&i.push(d)}return i}function rT(t,l,i){const a=MC(t.schema,l);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?bC(i):RC(i)),a.property==="style"){let o=typeof i=="object"?i:iT(t,String(i));return t.stylePropertyNameCase==="css"&&(o=aT(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?NC[a.property]||a.property:a.attribute,i]}}function iT(t,l){try{return IC(l,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const a=i,o=new Tt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=l0+"#cannot-parse-style-attribute",o}}function a0(t,l,i){let a;if(!i)a={type:"Literal",value:l};else if(l.includes(".")){const o=l.split(".");let c=-1,s;for(;++c<o.length;){const d=vy(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};s=s?{type:"MemberExpression",object:s,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}a=s}else a=vy(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return zd.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);Ca(t)}function Ca(t,l){const i=new Tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:l,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=l0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function aT(t){const l={};let i;for(i in t)zd.call(t,i)&&(l[uT(i)]=t[i]);return l}function uT(t){let l=t.replace(GC,oT);return l.slice(0,3)==="ms-"&&(l="-"+l),l}function oT(t){return"-"+t.toLowerCase()}const pf={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},sT={};function Dd(t,l){const i=sT,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return u0(t,a,o)}function u0(t,l,i){if(cT(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(l&&"alt"in t&&t.alt)return t.alt;if("children"in t)return zy(t.children,l,i)}return Array.isArray(t)?zy(t,l,i):""}function zy(t,l,i){const a=[];let o=-1;for(;++o<t.length;)a[o]=u0(t[o],l,i);return a.join("")}function cT(t){return!!(t&&typeof t=="object")}const My=document.createElement("i");function Od(t){const l="&"+t+";";My.innerHTML=l;const i=My.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===l?!1:i}function en(t,l,i,a){const o=t.length;let c=0,s;if(l<0?l=-l>o?0:o+l:l=l>o?o:l,i=i>0?i:0,a.length<1e4)s=Array.from(a),s.unshift(l,i),t.splice(...s);else for(i&&t.splice(l,i);c<a.length;)s=a.slice(c,c+1e4),s.unshift(l,0),t.splice(...s),c+=1e4,l+=1e4}function hn(t,l){return t.length>0?(en(t,t.length,0,l),t):l}const _y={}.hasOwnProperty;function o0(t){const l={};let i=-1;for(;++i<t.length;)fT(l,t[i]);return l}function fT(t,l){let i;for(i in l){const o=(_y.call(t,i)?t[i]:void 0)||(t[i]={}),c=l[i];let s;if(c)for(s in c){_y.call(o,s)||(o[s]=[]);const d=c[s];dT(o[s],Array.isArray(d)?d:d?[d]:[])}}}function dT(t,l){let i=-1;const a=[];for(;++i<l.length;)(l[i].add==="after"?t:a).push(l[i]);en(t,0,0,a)}function s0(t,l){const i=Number.parseInt(t,l);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Sn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const zt=Ol(/[A-Za-z]/),Ct=Ol(/[\dA-Za-z]/),hT=Ol(/[#-'*+\--9=?A-Z^-~]/);function vo(t){return t!==null&&(t<32||t===127)}const td=Ol(/\d/),mT=Ol(/[\dA-Fa-f]/),pT=Ol(/[!-/:-@[-`{-~]/);function be(t){return t!==null&&t<-2}function $e(t){return t!==null&&(t<0||t===32)}function De(t){return t===-2||t===-1||t===32}const Ao=Ol(new RegExp("\\p{P}|\\p{S}","u")),ar=Ol(/\s/);function Ol(t){return l;function l(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function gi(t){const l=[];let i=-1,a=0,o=0;for(;++i<t.length;){const c=t.charCodeAt(i);let s="";if(c===37&&Ct(t.charCodeAt(i+1))&&Ct(t.charCodeAt(i+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(s=String.fromCharCode(c));else if(c>55295&&c<57344){const d=t.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(s=String.fromCharCode(c,d),o=1):s="�"}else s=String.fromCharCode(c);s&&(l.push(t.slice(a,i),encodeURIComponent(s)),a=i+o+1,s=""),o&&(i+=o,o=0)}return l.join("")+t.slice(a)}function Ue(t,l,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let c=0;return s;function s(m){return De(m)?(t.enter(i),d(m)):l(m)}function d(m){return De(m)&&c++<o?(t.consume(m),d):(t.exit(i),l(m))}}const gT={tokenize:yT};function yT(t){const l=t.attempt(this.parser.constructs.contentInitial,a,o);let i;return l;function a(d){if(d===null){t.consume(d);return}return t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),Ue(t,l,"linePrefix")}function o(d){return t.enter("paragraph"),c(d)}function c(d){const m=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=m),i=m,s(d)}function s(d){if(d===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(d);return}return be(d)?(t.consume(d),t.exit("chunkText"),c):(t.consume(d),s)}}const xT={tokenize:bT},Dy={tokenize:vT};function bT(t){const l=this,i=[];let a=0,o,c,s;return d;function d(R){if(a<i.length){const K=i[a];return l.containerState=K[1],t.attempt(K[0].continuation,m,p)(R)}return p(R)}function m(R){if(a++,l.containerState._closeFlow){l.containerState._closeFlow=void 0,o&&L();const K=l.events.length;let ee=K,D;for(;ee--;)if(l.events[ee][0]==="exit"&&l.events[ee][1].type==="chunkFlow"){D=l.events[ee][1].end;break}N(a);let X=K;for(;X<l.events.length;)l.events[X][1].end={...D},X++;return en(l.events,ee+1,0,l.events.slice(K)),l.events.length=X,p(R)}return d(R)}function p(R){if(a===i.length){if(!o)return v(R);if(o.currentConstruct&&o.currentConstruct.concrete)return E(R);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(Dy,y,g)(R)}function y(R){return o&&L(),N(a),v(R)}function g(R){return l.parser.lazy[l.now().line]=a!==i.length,s=l.now().offset,E(R)}function v(R){return l.containerState={},t.attempt(Dy,S,E)(R)}function S(R){return a++,i.push([l.currentConstruct,l.containerState]),v(R)}function E(R){if(R===null){o&&L(),N(0),t.consume(R);return}return o=o||l.parser.flow(l.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),A(R)}function A(R){if(R===null){j(t.exit("chunkFlow"),!0),N(0),t.consume(R);return}return be(R)?(t.consume(R),j(t.exit("chunkFlow")),a=0,l.interrupt=void 0,d):(t.consume(R),A)}function j(R,K){const ee=l.sliceStream(R);if(K&&ee.push(null),R.previous=c,c&&(c.next=R),c=R,o.defineSkip(R.start),o.write(ee),l.parser.lazy[R.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<s&&(!o.events[D][1].end||o.events[D][1].end.offset>s))return;const X=l.events.length;let V=X,ae,H;for(;V--;)if(l.events[V][0]==="exit"&&l.events[V][1].type==="chunkFlow"){if(ae){H=l.events[V][1].end;break}ae=!0}for(N(a),D=X;D<l.events.length;)l.events[D][1].end={...H},D++;en(l.events,V+1,0,l.events.slice(X)),l.events.length=D}}function N(R){let K=i.length;for(;K-- >R;){const ee=i[K];l.containerState=ee[1],ee[0].exit.call(l,t)}i.length=R}function L(){o.write([null]),c=void 0,o=void 0,l.containerState._closeFlow=void 0}}function vT(t,l,i){return Ue(t,t.attempt(this.parser.constructs.document,l,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function di(t){if(t===null||$e(t)||ar(t))return 1;if(Ao(t))return 2}function No(t,l,i){const a=[];let o=-1;for(;++o<t.length;){const c=t[o].resolveAll;c&&!a.includes(c)&&(l=c(l,i),a.push(c))}return l}const nd={name:"attention",resolveAll:ST,tokenize:kT};function ST(t,l){let i=-1,a,o,c,s,d,m,p,y;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(a=i;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&l.sliceSerialize(t[a][1]).charCodeAt(0)===l.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[a][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;m=t[a][1].end.offset-t[a][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[i][1].start};Oy(g,-m),Oy(v,m),s={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},d={type:m>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:v},c={type:m>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[i][1].start}},o={type:m>1?"strong":"emphasis",start:{...s.start},end:{...d.end}},t[a][1].end={...s.start},t[i][1].start={...d.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=hn(p,[["enter",t[a][1],l],["exit",t[a][1],l]])),p=hn(p,[["enter",o,l],["enter",s,l],["exit",s,l],["enter",c,l]]),p=hn(p,No(l.parser.constructs.insideSpan.null,t.slice(a+1,i),l)),p=hn(p,[["exit",c,l],["enter",d,l],["exit",d,l],["exit",o,l]]),t[i][1].end.offset-t[i][1].start.offset?(y=2,p=hn(p,[["enter",t[i][1],l],["exit",t[i][1],l]])):y=0,en(t,a-1,i-a+3,p),i=a+p.length-y-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function kT(t,l){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=di(a);let c;return s;function s(m){return c=m,t.enter("attentionSequence"),d(m)}function d(m){if(m===c)return t.consume(m),d;const p=t.exit("attentionSequence"),y=di(m),g=!y||y===2&&o||i.includes(m),v=!o||o===2&&y||i.includes(a);return p._open=!!(c===42?g:g&&(o||!v)),p._close=!!(c===42?v:v&&(y||!g)),l(m)}}function Oy(t,l){t.column+=l,t.offset+=l,t._bufferIndex+=l}const wT={name:"autolink",tokenize:ET};function ET(t,l,i){let a=0;return o;function o(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(S){return zt(S)?(t.consume(S),s):S===64?i(S):p(S)}function s(S){return S===43||S===45||S===46||Ct(S)?(a=1,d(S)):p(S)}function d(S){return S===58?(t.consume(S),a=0,m):(S===43||S===45||S===46||Ct(S))&&a++<32?(t.consume(S),d):(a=0,p(S))}function m(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),l):S===null||S===32||S===60||vo(S)?i(S):(t.consume(S),m)}function p(S){return S===64?(t.consume(S),y):hT(S)?(t.consume(S),p):i(S)}function y(S){return Ct(S)?g(S):i(S)}function g(S){return S===46?(t.consume(S),a=0,y):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),l):v(S)}function v(S){if((S===45||Ct(S))&&a++<63){const E=S===45?v:g;return t.consume(S),E}return i(S)}}const Ma={partial:!0,tokenize:CT};function CT(t,l,i){return a;function a(c){return De(c)?Ue(t,o,"linePrefix")(c):o(c)}function o(c){return c===null||be(c)?l(c):i(c)}}const c0={continuation:{tokenize:AT},exit:NT,name:"blockQuote",tokenize:TT};function TT(t,l,i){const a=this;return o;function o(s){if(s===62){const d=a.containerState;return d.open||(t.enter("blockQuote",{_container:!0}),d.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),c}return i(s)}function c(s){return De(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),l):(t.exit("blockQuotePrefix"),l(s))}}function AT(t,l,i){const a=this;return o;function o(s){return De(s)?Ue(t,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):c(s)}function c(s){return t.attempt(c0,l,i)(s)}}function NT(t){t.exit("blockQuote")}const f0={name:"characterEscape",tokenize:jT};function jT(t,l,i){return a;function a(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),o}function o(c){return pT(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),l):i(c)}}const d0={name:"characterReference",tokenize:zT};function zT(t,l,i){const a=this;let o=0,c,s;return d;function d(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),m}function m(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),c=31,s=Ct,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,s=mT,y):(t.enter("characterReferenceValue"),c=7,s=td,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return s===Ct&&!Od(a.sliceSerialize(v))?i(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),l)}return s(g)&&o++<c?(t.consume(g),y):i(g)}}const Ry={partial:!0,tokenize:_T},Ly={concrete:!0,name:"codeFenced",tokenize:MT};function MT(t,l,i){const a=this,o={partial:!0,tokenize:ee};let c=0,s=0,d;return m;function m(D){return p(D)}function p(D){const X=a.events[a.events.length-1];return c=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,d=D,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===d?(s++,t.consume(D),y):s<3?i(D):(t.exit("codeFencedFenceSequence"),De(D)?Ue(t,g,"whitespace")(D):g(D))}function g(D){return D===null||be(D)?(t.exit("codeFencedFence"),a.interrupt?l(D):t.check(Ry,A,K)(D)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(D))}function v(D){return D===null||be(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(D)):De(D)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ue(t,S,"whitespace")(D)):D===96&&D===d?i(D):(t.consume(D),v)}function S(D){return D===null||be(D)?g(D):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(D))}function E(D){return D===null||be(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(t.consume(D),E)}function A(D){return t.attempt(o,K,j)(D)}function j(D){return t.enter("lineEnding"),t.consume(D),t.exit("lineEnding"),N}function N(D){return c>0&&De(D)?Ue(t,L,"linePrefix",c+1)(D):L(D)}function L(D){return D===null||be(D)?t.check(Ry,A,K)(D):(t.enter("codeFlowValue"),R(D))}function R(D){return D===null||be(D)?(t.exit("codeFlowValue"),L(D)):(t.consume(D),R)}function K(D){return t.exit("codeFenced"),l(D)}function ee(D,X,V){let ae=0;return H;function H(ne){return D.enter("lineEnding"),D.consume(ne),D.exit("lineEnding"),re}function re(ne){return D.enter("codeFencedFence"),De(ne)?Ue(D,$,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):$(ne)}function $(ne){return ne===d?(D.enter("codeFencedFenceSequence"),xe(ne)):V(ne)}function xe(ne){return ne===d?(ae++,D.consume(ne),xe):ae>=s?(D.exit("codeFencedFenceSequence"),De(ne)?Ue(D,ue,"whitespace")(ne):ue(ne)):V(ne)}function ue(ne){return ne===null||be(ne)?(D.exit("codeFencedFence"),X(ne)):V(ne)}}}function _T(t,l,i){const a=this;return o;function o(s){return s===null?i(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c)}function c(s){return a.parser.lazy[a.now().line]?i(s):l(s)}}const gf={name:"codeIndented",tokenize:OT},DT={partial:!0,tokenize:RT};function OT(t,l,i){const a=this;return o;function o(p){return t.enter("codeIndented"),Ue(t,c,"linePrefix",5)(p)}function c(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?s(p):i(p)}function s(p){return p===null?m(p):be(p)?t.attempt(DT,s,m)(p):(t.enter("codeFlowValue"),d(p))}function d(p){return p===null||be(p)?(t.exit("codeFlowValue"),s(p)):(t.consume(p),d)}function m(p){return t.exit("codeIndented"),l(p)}}function RT(t,l,i){const a=this;return o;function o(s){return a.parser.lazy[a.now().line]?i(s):be(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):Ue(t,c,"linePrefix",5)(s)}function c(s){const d=a.events[a.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(s):be(s)?o(s):i(s)}}const LT={name:"codeText",previous:BT,resolve:UT,tokenize:HT};function UT(t){let l=t.length-4,i=3,a,o;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[l][1].type==="lineEnding"||t[l][1].type==="space")){for(a=i;++a<l;)if(t[a][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[l][1].type="codeTextPadding",i+=2,l-=2;break}}for(a=i-1,l++;++a<=l;)o===void 0?a!==l&&t[a][1].type!=="lineEnding"&&(o=a):(a===l||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),l-=a-o-2,a=o+2),o=void 0);return t}function BT(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function HT(t,l,i){let a=0,o,c;return s;function s(g){return t.enter("codeText"),t.enter("codeTextSequence"),d(g)}function d(g){return g===96?(t.consume(g),a++,d):(t.exit("codeTextSequence"),m(g))}function m(g){return g===null?i(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),m):g===96?(c=t.enter("codeTextSequence"),o=0,y(g)):be(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),m):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||be(g)?(t.exit("codeTextData"),m(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),l(g)):(c.type="codeTextData",p(g))}}class qT{constructor(l){this.left=l?[...l]:[],this.right=[]}get(l){if(l<0||l>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+l+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return l<this.left.length?this.left[l]:this.right[this.right.length-l+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(l,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(l,a):l>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-l+this.left.length).reverse():this.left.slice(l).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(l,i,a){const o=i||0;this.setCursor(Math.trunc(l));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&pa(this.left,a),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(l){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(l)}pushMany(l){this.setCursor(Number.POSITIVE_INFINITY),pa(this.left,l)}unshift(l){this.setCursor(0),this.right.push(l)}unshiftMany(l){this.setCursor(0),pa(this.right,l.reverse())}setCursor(l){if(!(l===this.left.length||l>this.left.length&&this.right.length===0||l<0&&this.left.length===0))if(l<this.left.length){const i=this.left.splice(l,Number.POSITIVE_INFINITY);pa(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-l,Number.POSITIVE_INFINITY);pa(this.left,i.reverse())}}}function pa(t,l){let i=0;if(l.length<1e4)t.push(...l);else for(;i<l.length;)t.push(...l.slice(i,i+1e4)),i+=1e4}function h0(t){const l={};let i=-1,a,o,c,s,d,m,p;const y=new qT(t);for(;++i<y.length;){for(;i in l;)i=l[i];if(a=y.get(i),i&&a[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(m=a[1]._tokenizer.events,c=0,c<m.length&&m[c][1].type==="lineEndingBlank"&&(c+=2),c<m.length&&m[c][1].type==="content"))for(;++c<m.length&&m[c][1].type!=="content";)m[c][1].type==="chunkText"&&(m[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(l,IT(y,i)),i=l[i],p=!0);else if(a[1]._container){for(c=i,o=void 0;c--;)if(s=y.get(c),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=c);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},d=y.slice(o,i),d.unshift(a),y.splice(o,i-o+1,d))}}return en(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function IT(t,l){const i=t.get(l)[1],a=t.get(l)[2];let o=l-1;const c=[];let s=i._tokenizer;s||(s=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const d=s.events,m=[],p={};let y,g,v=-1,S=i,E=0,A=0;const j=[A];for(;S;){for(;t.get(++o)[1]!==S;);c.push(o),S._tokenizer||(y=a.sliceStream(S),S.next||y.push(null),g&&s.defineSkip(S.start),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(y),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=i;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(A=v+1,j.push(A),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(s.events=[],S?(S._tokenizer=void 0,S.previous=void 0):j.pop(),v=j.length;v--;){const N=d.slice(j[v],j[v+1]),L=c.pop();m.push([L,L+N.length-1]),t.splice(L,2,N)}for(m.reverse(),v=-1;++v<m.length;)p[E+m[v][0]]=E+m[v][1],E+=m[v][1]-m[v][0]-1;return p}const VT={resolve:GT,tokenize:FT},YT={partial:!0,tokenize:XT};function GT(t){return h0(t),t}function FT(t,l){let i;return a;function a(d){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),o(d)}function o(d){return d===null?c(d):be(d)?t.check(YT,s,c)(d):(t.consume(d),o)}function c(d){return t.exit("chunkContent"),t.exit("content"),l(d)}function s(d){return t.consume(d),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function XT(t,l,i){const a=this;return o;function o(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Ue(t,c,"linePrefix")}function c(s){if(s===null||be(s))return i(s);const d=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?l(s):t.interrupt(a.parser.constructs.flow,i,l)(s)}}function m0(t,l,i,a,o,c,s,d,m){const p=m||Number.POSITIVE_INFINITY;let y=0;return g;function g(N){return N===60?(t.enter(a),t.enter(o),t.enter(c),t.consume(N),t.exit(c),v):N===null||N===32||N===41||vo(N)?i(N):(t.enter(a),t.enter(s),t.enter(d),t.enter("chunkString",{contentType:"string"}),A(N))}function v(N){return N===62?(t.enter(c),t.consume(N),t.exit(c),t.exit(o),t.exit(a),l):(t.enter(d),t.enter("chunkString",{contentType:"string"}),S(N))}function S(N){return N===62?(t.exit("chunkString"),t.exit(d),v(N)):N===null||N===60||be(N)?i(N):(t.consume(N),N===92?E:S)}function E(N){return N===60||N===62||N===92?(t.consume(N),S):S(N)}function A(N){return!y&&(N===null||N===41||$e(N))?(t.exit("chunkString"),t.exit(d),t.exit(s),t.exit(a),l(N)):y<p&&N===40?(t.consume(N),y++,A):N===41?(t.consume(N),y--,A):N===null||N===32||N===40||vo(N)?i(N):(t.consume(N),N===92?j:A)}function j(N){return N===40||N===41||N===92?(t.consume(N),A):A(N)}}function p0(t,l,i,a,o,c){const s=this;let d=0,m;return p;function p(S){return t.enter(a),t.enter(o),t.consume(S),t.exit(o),t.enter(c),y}function y(S){return d>999||S===null||S===91||S===93&&!m||S===94&&!d&&"_hiddenFootnoteSupport"in s.parser.constructs?i(S):S===93?(t.exit(c),t.enter(o),t.consume(S),t.exit(o),t.exit(a),l):be(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||be(S)||d++>999?(t.exit("chunkString"),y(S)):(t.consume(S),m||(m=!De(S)),S===92?v:g)}function v(S){return S===91||S===92||S===93?(t.consume(S),d++,g):g(S)}}function g0(t,l,i,a,o,c){let s;return d;function d(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),s=v===40?41:v,m):i(v)}function m(v){return v===s?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),l):(t.enter(c),p(v))}function p(v){return v===s?(t.exit(c),m(s)):v===null?i(v):be(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Ue(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===s||v===null||be(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===s||v===92?(t.consume(v),y):y(v)}}function ka(t,l){let i;return a;function a(o){return be(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i=!0,a):De(o)?Ue(t,a,i?"linePrefix":"lineSuffix")(o):l(o)}}const QT={name:"definition",tokenize:KT},ZT={partial:!0,tokenize:PT};function KT(t,l,i){const a=this;let o;return c;function c(S){return t.enter("definition"),s(S)}function s(S){return p0.call(a,t,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function d(S){return o=Sn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),m):i(S)}function m(S){return $e(S)?ka(t,p)(S):p(S)}function p(S){return m0(t,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function y(S){return t.attempt(ZT,g,g)(S)}function g(S){return De(S)?Ue(t,v,"whitespace")(S):v(S)}function v(S){return S===null||be(S)?(t.exit("definition"),a.parser.defined.push(o),l(S)):i(S)}}function PT(t,l,i){return a;function a(d){return $e(d)?ka(t,o)(d):i(d)}function o(d){return g0(t,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return De(d)?Ue(t,s,"whitespace")(d):s(d)}function s(d){return d===null||be(d)?l(d):i(d)}}const $T={name:"hardBreakEscape",tokenize:JT};function JT(t,l,i){return a;function a(c){return t.enter("hardBreakEscape"),t.consume(c),o}function o(c){return be(c)?(t.exit("hardBreakEscape"),l(c)):i(c)}}const WT={name:"headingAtx",resolve:e3,tokenize:t3};function e3(t,l){let i=t.length-2,a=3,o,c;return t[a][1].type==="whitespace"&&(a+=2),i-2>a&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&t[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[i][1].end},c={type:"chunkText",start:t[a][1].start,end:t[i][1].end,contentType:"text"},en(t,a,i-a+1,[["enter",o,l],["enter",c,l],["exit",c,l],["exit",o,l]])),t}function t3(t,l,i){let a=0;return o;function o(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),s(y)}function s(y){return y===35&&a++<6?(t.consume(y),s):y===null||$e(y)?(t.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(t.enter("atxHeadingSequence"),m(y)):y===null||be(y)?(t.exit("atxHeading"),l(y)):De(y)?Ue(t,d,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function m(y){return y===35?(t.consume(y),m):(t.exit("atxHeadingSequence"),d(y))}function p(y){return y===null||y===35||$e(y)?(t.exit("atxHeadingText"),d(y)):(t.consume(y),p)}}const n3=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Uy=["pre","script","style","textarea"],l3={concrete:!0,name:"htmlFlow",resolveTo:a3,tokenize:u3},r3={partial:!0,tokenize:s3},i3={partial:!0,tokenize:o3};function a3(t){let l=t.length;for(;l--&&!(t[l][0]==="enter"&&t[l][1].type==="htmlFlow"););return l>1&&t[l-2][1].type==="linePrefix"&&(t[l][1].start=t[l-2][1].start,t[l+1][1].start=t[l-2][1].start,t.splice(l-2,2)),t}function u3(t,l,i){const a=this;let o,c,s,d,m;return p;function p(C){return y(C)}function y(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),g}function g(C){return C===33?(t.consume(C),v):C===47?(t.consume(C),c=!0,A):C===63?(t.consume(C),o=3,a.interrupt?l:T):zt(C)?(t.consume(C),s=String.fromCharCode(C),j):i(C)}function v(C){return C===45?(t.consume(C),o=2,S):C===91?(t.consume(C),o=5,d=0,E):zt(C)?(t.consume(C),o=4,a.interrupt?l:T):i(C)}function S(C){return C===45?(t.consume(C),a.interrupt?l:T):i(C)}function E(C){const te="CDATA[";return C===te.charCodeAt(d++)?(t.consume(C),d===te.length?a.interrupt?l:$:E):i(C)}function A(C){return zt(C)?(t.consume(C),s=String.fromCharCode(C),j):i(C)}function j(C){if(C===null||C===47||C===62||$e(C)){const te=C===47,J=s.toLowerCase();return!te&&!c&&Uy.includes(J)?(o=1,a.interrupt?l(C):$(C)):n3.includes(s.toLowerCase())?(o=6,te?(t.consume(C),N):a.interrupt?l(C):$(C)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(C):c?L(C):R(C))}return C===45||Ct(C)?(t.consume(C),s+=String.fromCharCode(C),j):i(C)}function N(C){return C===62?(t.consume(C),a.interrupt?l:$):i(C)}function L(C){return De(C)?(t.consume(C),L):H(C)}function R(C){return C===47?(t.consume(C),H):C===58||C===95||zt(C)?(t.consume(C),K):De(C)?(t.consume(C),R):H(C)}function K(C){return C===45||C===46||C===58||C===95||Ct(C)?(t.consume(C),K):ee(C)}function ee(C){return C===61?(t.consume(C),D):De(C)?(t.consume(C),ee):R(C)}function D(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),m=C,X):De(C)?(t.consume(C),D):V(C)}function X(C){return C===m?(t.consume(C),m=null,ae):C===null||be(C)?i(C):(t.consume(C),X)}function V(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||$e(C)?ee(C):(t.consume(C),V)}function ae(C){return C===47||C===62||De(C)?R(C):i(C)}function H(C){return C===62?(t.consume(C),re):i(C)}function re(C){return C===null||be(C)?$(C):De(C)?(t.consume(C),re):i(C)}function $(C){return C===45&&o===2?(t.consume(C),B):C===60&&o===1?(t.consume(C),Q):C===62&&o===4?(t.consume(C),_):C===63&&o===3?(t.consume(C),T):C===93&&o===5?(t.consume(C),we):be(C)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(r3,M,xe)(C)):C===null||be(C)?(t.exit("htmlFlowData"),xe(C)):(t.consume(C),$)}function xe(C){return t.check(i3,ue,M)(C)}function ue(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),ne}function ne(C){return C===null||be(C)?xe(C):(t.enter("htmlFlowData"),$(C))}function B(C){return C===45?(t.consume(C),T):$(C)}function Q(C){return C===47?(t.consume(C),s="",ce):$(C)}function ce(C){if(C===62){const te=s.toLowerCase();return Uy.includes(te)?(t.consume(C),_):$(C)}return zt(C)&&s.length<8?(t.consume(C),s+=String.fromCharCode(C),ce):$(C)}function we(C){return C===93?(t.consume(C),T):$(C)}function T(C){return C===62?(t.consume(C),_):C===45&&o===2?(t.consume(C),T):$(C)}function _(C){return C===null||be(C)?(t.exit("htmlFlowData"),M(C)):(t.consume(C),_)}function M(C){return t.exit("htmlFlow"),l(C)}}function o3(t,l,i){const a=this;return o;function o(s){return be(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c):i(s)}function c(s){return a.parser.lazy[a.now().line]?i(s):l(s)}}function s3(t,l,i){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(Ma,l,i)}}const c3={name:"htmlText",tokenize:f3};function f3(t,l,i){const a=this;let o,c,s;return d;function d(T){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(T),m}function m(T){return T===33?(t.consume(T),p):T===47?(t.consume(T),ee):T===63?(t.consume(T),R):zt(T)?(t.consume(T),V):i(T)}function p(T){return T===45?(t.consume(T),y):T===91?(t.consume(T),c=0,E):zt(T)?(t.consume(T),L):i(T)}function y(T){return T===45?(t.consume(T),S):i(T)}function g(T){return T===null?i(T):T===45?(t.consume(T),v):be(T)?(s=g,Q(T)):(t.consume(T),g)}function v(T){return T===45?(t.consume(T),S):g(T)}function S(T){return T===62?B(T):T===45?v(T):g(T)}function E(T){const _="CDATA[";return T===_.charCodeAt(c++)?(t.consume(T),c===_.length?A:E):i(T)}function A(T){return T===null?i(T):T===93?(t.consume(T),j):be(T)?(s=A,Q(T)):(t.consume(T),A)}function j(T){return T===93?(t.consume(T),N):A(T)}function N(T){return T===62?B(T):T===93?(t.consume(T),N):A(T)}function L(T){return T===null||T===62?B(T):be(T)?(s=L,Q(T)):(t.consume(T),L)}function R(T){return T===null?i(T):T===63?(t.consume(T),K):be(T)?(s=R,Q(T)):(t.consume(T),R)}function K(T){return T===62?B(T):R(T)}function ee(T){return zt(T)?(t.consume(T),D):i(T)}function D(T){return T===45||Ct(T)?(t.consume(T),D):X(T)}function X(T){return be(T)?(s=X,Q(T)):De(T)?(t.consume(T),X):B(T)}function V(T){return T===45||Ct(T)?(t.consume(T),V):T===47||T===62||$e(T)?ae(T):i(T)}function ae(T){return T===47?(t.consume(T),B):T===58||T===95||zt(T)?(t.consume(T),H):be(T)?(s=ae,Q(T)):De(T)?(t.consume(T),ae):B(T)}function H(T){return T===45||T===46||T===58||T===95||Ct(T)?(t.consume(T),H):re(T)}function re(T){return T===61?(t.consume(T),$):be(T)?(s=re,Q(T)):De(T)?(t.consume(T),re):ae(T)}function $(T){return T===null||T===60||T===61||T===62||T===96?i(T):T===34||T===39?(t.consume(T),o=T,xe):be(T)?(s=$,Q(T)):De(T)?(t.consume(T),$):(t.consume(T),ue)}function xe(T){return T===o?(t.consume(T),o=void 0,ne):T===null?i(T):be(T)?(s=xe,Q(T)):(t.consume(T),xe)}function ue(T){return T===null||T===34||T===39||T===60||T===61||T===96?i(T):T===47||T===62||$e(T)?ae(T):(t.consume(T),ue)}function ne(T){return T===47||T===62||$e(T)?ae(T):i(T)}function B(T){return T===62?(t.consume(T),t.exit("htmlTextData"),t.exit("htmlText"),l):i(T)}function Q(T){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),ce}function ce(T){return De(T)?Ue(t,we,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):we(T)}function we(T){return t.enter("htmlTextData"),s(T)}}const Rd={name:"labelEnd",resolveAll:p3,resolveTo:g3,tokenize:y3},d3={tokenize:x3},h3={tokenize:b3},m3={tokenize:v3};function p3(t){let l=-1;const i=[];for(;++l<t.length;){const a=t[l][1];if(i.push(t[l]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",l+=o}}return t.length!==i.length&&en(t,0,t.length,i),t}function g3(t,l){let i=t.length,a=0,o,c,s,d;for(;i--;)if(o=t[i][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(t[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=i,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(s=i);const m={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[c][1].start},end:{...t[s][1].end}},y={type:"labelText",start:{...t[c+a+2][1].end},end:{...t[s-2][1].start}};return d=[["enter",m,l],["enter",p,l]],d=hn(d,t.slice(c+1,c+a+3)),d=hn(d,[["enter",y,l]]),d=hn(d,No(l.parser.constructs.insideSpan.null,t.slice(c+a+4,s-3),l)),d=hn(d,[["exit",y,l],t[s-2],t[s-1],["exit",p,l]]),d=hn(d,t.slice(s+1)),d=hn(d,[["exit",m,l]]),en(t,c,t.length,d),t}function y3(t,l,i){const a=this;let o=a.events.length,c,s;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){c=a.events[o][1];break}return d;function d(v){return c?c._inactive?g(v):(s=a.parser.defined.includes(Sn(a.sliceSerialize({start:c.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),m):i(v)}function m(v){return v===40?t.attempt(d3,y,s?y:g)(v):v===91?t.attempt(h3,y,s?p:g)(v):s?y(v):g(v)}function p(v){return t.attempt(m3,y,g)(v)}function y(v){return l(v)}function g(v){return c._balanced=!0,i(v)}}function x3(t,l,i){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return $e(g)?ka(t,c)(g):c(g)}function c(g){return g===41?y(g):m0(t,s,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function s(g){return $e(g)?ka(t,m)(g):y(g)}function d(g){return i(g)}function m(g){return g===34||g===39||g===40?g0(t,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return $e(g)?ka(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),l):i(g)}}function b3(t,l,i){const a=this;return o;function o(d){return p0.call(a,t,c,s,"reference","referenceMarker","referenceString")(d)}function c(d){return a.parser.defined.includes(Sn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?l(d):i(d)}function s(d){return i(d)}}function v3(t,l,i){return a;function a(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),o}function o(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),l):i(c)}}const S3={name:"labelStartImage",resolveAll:Rd.resolveAll,tokenize:k3};function k3(t,l,i){const a=this;return o;function o(d){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(d),t.exit("labelImageMarker"),c}function c(d){return d===91?(t.enter("labelMarker"),t.consume(d),t.exit("labelMarker"),t.exit("labelImage"),s):i(d)}function s(d){return d===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(d):l(d)}}const w3={name:"labelStartLink",resolveAll:Rd.resolveAll,tokenize:E3};function E3(t,l,i){const a=this;return o;function o(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),c}function c(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(s):l(s)}}const yf={name:"lineEnding",tokenize:C3};function C3(t,l){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Ue(t,l,"linePrefix")}}const xo={name:"thematicBreak",tokenize:T3};function T3(t,l,i){let a=0,o;return c;function c(p){return t.enter("thematicBreak"),s(p)}function s(p){return o=p,d(p)}function d(p){return p===o?(t.enter("thematicBreakSequence"),m(p)):a>=3&&(p===null||be(p))?(t.exit("thematicBreak"),l(p)):i(p)}function m(p){return p===o?(t.consume(p),a++,m):(t.exit("thematicBreakSequence"),De(p)?Ue(t,d,"whitespace")(p):d(p))}}const Yt={continuation:{tokenize:z3},exit:_3,name:"list",tokenize:j3},A3={partial:!0,tokenize:D3},N3={partial:!0,tokenize:M3};function j3(t,l,i){const a=this,o=a.events[a.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return d;function d(S){const E=a.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!a.containerState.marker||S===a.containerState.marker:td(S)){if(a.containerState.type||(a.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(xo,i,p)(S):p(S);if(!a.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),m(S)}return i(S)}function m(S){return td(S)&&++s<10?(t.consume(S),m):(!a.interrupt||s<2)&&(a.containerState.marker?S===a.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),p(S)):i(S)}function p(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||S,t.check(Ma,a.interrupt?i:y,t.attempt(A3,v,g))}function y(S){return a.containerState.initialBlankLine=!0,c++,v(S)}function g(S){return De(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),v):i(S)}function v(S){return a.containerState.size=c+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,l(S)}}function z3(t,l,i){const a=this;return a.containerState._closeFlow=void 0,t.check(Ma,o,c);function o(d){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Ue(t,l,"listItemIndent",a.containerState.size+1)(d)}function c(d){return a.containerState.furtherBlankLines||!De(d)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,s(d)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(N3,l,s)(d))}function s(d){return a.containerState._closeFlow=!0,a.interrupt=void 0,Ue(t,t.attempt(Yt,l,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function M3(t,l,i){const a=this;return Ue(t,o,"listItemIndent",a.containerState.size+1);function o(c){const s=a.events[a.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===a.containerState.size?l(c):i(c)}}function _3(t){t.exit(this.containerState.type)}function D3(t,l,i){const a=this;return Ue(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const s=a.events[a.events.length-1];return!De(c)&&s&&s[1].type==="listItemPrefixWhitespace"?l(c):i(c)}}const By={name:"setextUnderline",resolveTo:O3,tokenize:R3};function O3(t,l){let i=t.length,a,o,c;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){a=i;break}t[i][1].type==="paragraph"&&(o=i)}else t[i][1].type==="content"&&t.splice(i,1),!c&&t[i][1].type==="definition"&&(c=i);const s={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",c?(t.splice(o,0,["enter",s,l]),t.splice(c+1,0,["exit",t[a][1],l]),t[a][1].end={...t[c][1].end}):t[a][1]=s,t.push(["exit",s,l]),t}function R3(t,l,i){const a=this;let o;return c;function c(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,s(p)):i(p)}function s(p){return t.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===o?(t.consume(p),d):(t.exit("setextHeadingLineSequence"),De(p)?Ue(t,m,"lineSuffix")(p):m(p))}function m(p){return p===null||be(p)?(t.exit("setextHeadingLine"),l(p)):i(p)}}const L3={tokenize:U3};function U3(t){const l=this,i=t.attempt(Ma,a,t.attempt(this.parser.constructs.flowInitial,o,Ue(t,t.attempt(this.parser.constructs.flow,o,t.attempt(VT,o)),"linePrefix")));return i;function a(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),l.currentConstruct=void 0,i}function o(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),l.currentConstruct=void 0,i}}const B3={resolveAll:x0()},H3=y0("string"),q3=y0("text");function y0(t){return{resolveAll:x0(t==="text"?I3:void 0),tokenize:l};function l(i){const a=this,o=this.parser.constructs[t],c=i.attempt(o,s,d);return s;function s(y){return p(y)?c(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),m}function m(y){return p(y)?(i.exit("data"),c(y)):(i.consume(y),m)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const S=g[v];if(!S.previous||S.previous.call(a,a.previous))return!0}return!1}}}function x0(t){return l;function l(i,a){let o=-1,c;for(;++o<=i.length;)c===void 0?i[o]&&i[o][1].type==="data"&&(c=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==c+2&&(i[c][1].end=i[o-1][1].end,i.splice(c+2,o-c-2),o=c+2),c=void 0);return t?t(i,a):i}}function I3(t,l){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const a=t[i-1][1],o=l.sliceStream(a);let c=o.length,s=-1,d=0,m;for(;c--;){const p=o[c];if(typeof p=="string"){for(s=p.length;p.charCodeAt(s-1)===32;)d++,s--;if(s)break;s=-1}else if(p===-2)m=!0,d++;else if(p!==-1){c++;break}}if(l._contentTypeTextTrailing&&i===t.length&&(d=0),d){const p={type:i===t.length||m||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?s:a.start._bufferIndex+s,_index:a.start._index+c,line:a.end.line,column:a.end.column-d,offset:a.end.offset-d},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(i,0,["enter",p,l],["exit",p,l]),i+=2)}i++}return t}const V3={42:Yt,43:Yt,45:Yt,48:Yt,49:Yt,50:Yt,51:Yt,52:Yt,53:Yt,54:Yt,55:Yt,56:Yt,57:Yt,62:c0},Y3={91:QT},G3={[-2]:gf,[-1]:gf,32:gf},F3={35:WT,42:xo,45:[By,xo],60:l3,61:By,95:xo,96:Ly,126:Ly},X3={38:d0,92:f0},Q3={[-5]:yf,[-4]:yf,[-3]:yf,33:S3,38:d0,42:nd,60:[wT,c3],91:w3,92:[$T,f0],93:Rd,95:nd,96:LT},Z3={null:[nd,B3]},K3={null:[42,95]},P3={null:[]},$3=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:K3,contentInitial:Y3,disable:P3,document:V3,flow:F3,flowInitial:G3,insideSpan:Z3,string:X3,text:Q3},Symbol.toStringTag,{value:"Module"}));function J3(t,l,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},c=[];let s=[],d=[];const m={attempt:X(ee),check:X(D),consume:L,enter:R,exit:K,interrupt:X(D,{interrupt:!0})},p={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:g};let y=l.tokenize.call(p,m);return l.resolveAll&&c.push(l),p;function g(re){return s=hn(s,re),j(),s[s.length-1]!==null?[]:(V(l,0),p.events=No(c,p.events,p),p.events)}function v(re,$){return eA(S(re),$)}function S(re){return W3(s,re)}function E(){const{_bufferIndex:re,_index:$,line:xe,column:ue,offset:ne}=a;return{_bufferIndex:re,_index:$,line:xe,column:ue,offset:ne}}function A(re){o[re.line]=re.column,H()}function j(){let re;for(;a._index<s.length;){const $=s[a._index];if(typeof $=="string")for(re=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===re&&a._bufferIndex<$.length;)N($.charCodeAt(a._bufferIndex));else N($)}}function N(re){y=y(re)}function L(re){be(re)?(a.line++,a.column=1,a.offset+=re===-3?2:1,H()):re!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=re}function R(re,$){const xe=$||{};return xe.type=re,xe.start=E(),p.events.push(["enter",xe,p]),d.push(xe),xe}function K(re){const $=d.pop();return $.end=E(),p.events.push(["exit",$,p]),$}function ee(re,$){V(re,$.from)}function D(re,$){$.restore()}function X(re,$){return xe;function xe(ue,ne,B){let Q,ce,we,T;return Array.isArray(ue)?M(ue):"tokenize"in ue?M([ue]):_(ue);function _(le){return he;function he(Ae){const pe=Ae!==null&&le[Ae],at=Ae!==null&&le.null,_t=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(at)?at:at?[at]:[]];return M(_t)(Ae)}}function M(le){return Q=le,ce=0,le.length===0?B:C(le[ce])}function C(le){return he;function he(Ae){return T=ae(),we=le,le.partial||(p.currentConstruct=le),le.name&&p.parser.constructs.disable.null.includes(le.name)?J():le.tokenize.call($?Object.assign(Object.create(p),$):p,m,te,J)(Ae)}}function te(le){return re(we,T),ne}function J(le){return T.restore(),++ce<Q.length?C(Q[ce]):B}}}function V(re,$){re.resolveAll&&!c.includes(re)&&c.push(re),re.resolve&&en(p.events,$,p.events.length-$,re.resolve(p.events.slice($),p)),re.resolveTo&&(p.events=re.resolveTo(p.events,p))}function ae(){const re=E(),$=p.previous,xe=p.currentConstruct,ue=p.events.length,ne=Array.from(d);return{from:ue,restore:B};function B(){a=re,p.previous=$,p.currentConstruct=xe,p.events.length=ue,d=ne,H()}}function H(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function W3(t,l){const i=l.start._index,a=l.start._bufferIndex,o=l.end._index,c=l.end._bufferIndex;let s;if(i===o)s=[t[i].slice(a,c)];else{if(s=t.slice(i,o),a>-1){const d=s[0];typeof d=="string"?s[0]=d.slice(a):s.shift()}c>0&&s.push(t[o].slice(0,c))}return s}function eA(t,l){let i=-1;const a=[];let o;for(;++i<t.length;){const c=t[i];let s;if(typeof c=="string")s=c;else switch(c){case-5:{s="\r";break}case-4:{s=`
347
348
  `;break}case-3:{s=`\r
348
- `;break}case-2:{s=l?" ":" ";break}case-1:{if(!l&&o)continue;s=" ";break}default:s=String.fromCharCode(c)}o=c===-2,a.push(s)}return a.join("")}function H3(t){const a={constructs:l0([R3,...(t||{}).extensions||[]]),content:o(eT),defined:[],document:o(nT),flow:o(v3),lazy:{},string:o(w3),text:o(E3)};return a;function o(c){return s;function s(d){return L3(a,c,d)}}}function q3(t){for(;!o0(t););return t}const By=/[\0\t\n\r]/g;function I3(){let t=1,l="",i=!0,a;return o;function o(c,s,d){const m=[];let p,y,g,v,S;for(c=l+(typeof c=="string"?c.toString():new TextDecoder(s||void 0).decode(c)),g=0,l="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(By.lastIndex=g,p=By.exec(c),v=p&&p.index!==void 0?p.index:c.length,S=c.charCodeAt(v),!p){l=c.slice(g);break}if(S===10&&g===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),g<v&&(m.push(c.slice(g,v)),t+=v-g),S){case 0:{m.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,m.push(-2);t++<y;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&m.push(-5),l&&m.push(l),m.push(null)),m}}const V3=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Y3(t){return t.replace(V3,G3)}function G3(t,l,i){if(l)return l;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),c=o===120||o===88;return r0(i.slice(c?2:1),c?16:10)}return Od(i)||t}const m0={}.hasOwnProperty;function F3(t,l,i){return l&&typeof l=="object"&&(i=l,l=void 0),X3(i)(q3(H3(i).document().write(I3()(t,l,!0))))}function X3(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(dr),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:c(cr),blockQuote:c(at),characterEscape:ae,characterReference:ae,codeFenced:c(_t),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:c(_t,s),codeText:c(wn,s),codeTextData:ae,data:ae,codeFlowValue:ae,definition:c(rl),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:c(Dt),hardBreakEscape:c(fr),hardBreakTrailing:c(fr),htmlFlow:c(Da,s),htmlFlowData:ae,htmlText:c(Da,s),htmlTextData:ae,image:c(Oa),label:s,link:c(dr),listItem:c(yi),listItemValue:v,listOrdered:c(hr,g),listUnordered:c(hr),paragraph:c(Do),reference:C,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:c(cr),strong:c(Oo),thematicBreak:c(Ro)},exit:{atxHeading:m(),atxHeadingSequence:ee,autolink:m(),autolinkEmail:pe,autolinkProtocol:Ae,blockQuote:m(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:$,characterReferenceMarkerNumeric:$,characterReferenceValue:le,characterReference:he,codeFenced:m(j),codeFencedFence:A,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:H,codeIndented:m(N),codeText:m(ne),codeTextData:H,data:H,definition:m(),definitionDestinationString:W,definitionLabelString:R,definitionTitleString:L,emphasis:m(),hardBreakEscape:m(P),hardBreakTrailing:m(P),htmlFlow:m(be),htmlFlowData:H,htmlText:m(ue),htmlTextData:H,image:m(Q),label:we,labelText:ce,lineEnding:re,link:m(B),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:te,resourceDestinationString:T,resourceTitleString:_,resource:M,setextHeading:m(V),setextHeadingLineSequence:X,setextHeadingText:D,strong:m(),thematicBreak:m()}};p0(l,(t||{}).mdastExtensions||[]);const i={};return a;function a(Z){let oe={type:"root",children:[]};const Se={stack:[oe],tokenStack:[],config:l,enter:d,exit:p,buffer:s,resume:y,data:i},ze=[];let Ie=-1;for(;++Ie<Z.length;)if(Z[Ie][1].type==="listOrdered"||Z[Ie][1].type==="listUnordered")if(Z[Ie][0]==="enter")ze.push(Ie);else{const Ft=ze.pop();Ie=o(Z,Ft,Ie)}for(Ie=-1;++Ie<Z.length;){const Ft=l[Z[Ie][0]];m0.call(Ft,Z[Ie][1].type)&&Ft[Z[Ie][1].type].call(Object.assign({sliceSerialize:Z[Ie][2].sliceSerialize},Se),Z[Ie][1])}if(Se.tokenStack.length>0){const Ft=Se.tokenStack[Se.tokenStack.length-1];(Ft[1]||Hy).call(Se,void 0,Ft[0])}for(oe.position={start:Ml(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ml(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<l.transforms.length;)oe=l.transforms[Ie](oe)||oe;return oe}function o(Z,oe,Se){let ze=oe-1,Ie=-1,Ft=!1,On,Nt,dt,Ot;for(;++ze<=Se;){const Ze=Z[ze];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?Ie++:Ie--,Ot=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(On&&!Ot&&!Ie&&!dt&&(dt=ze),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!Ie&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||Ie===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(On){let il=ze;for(Nt=void 0;il--;){const gn=Z[il];if(gn[1].type==="lineEnding"||gn[1].type==="lineEndingBlank"){if(gn[0]==="exit")continue;Nt&&(Z[Nt][1].type="lineEndingBlank",Ft=!0),gn[1].type="lineEnding",Nt=il}else if(!(gn[1].type==="linePrefix"||gn[1].type==="blockQuotePrefix"||gn[1].type==="blockQuotePrefixWhitespace"||gn[1].type==="blockQuoteMarker"||gn[1].type==="listItemIndent"))break}dt&&(!Nt||dt<Nt)&&(On._spread=!0),On.end=Object.assign({},Nt?Z[Nt][1].start:Ze[1].end),Z.splice(Nt||ze,0,["exit",On,Ze[2]]),ze++,Se++}if(Ze[1].type==="listItemPrefix"){const il={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};On=il,Z.splice(ze,0,["enter",il,Ze[2]]),ze++,Se++,dt=void 0,Ot=!0}}}return Z[oe][1]._spread=Ft,Se}function c(Z,oe){return Se;function Se(ze){d.call(this,Z(ze),ze),oe&&oe.call(this,ze)}}function s(){this.stack.push({type:"fragment",children:[]})}function d(Z,oe,Se){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([oe,Se||void 0]),Z.position={start:Ml(oe.start),end:void 0}}function m(Z){return oe;function oe(Se){Z&&Z.call(this,Se),p.call(this,Se)}}function p(Z,oe){const Se=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==Z.type&&(oe?oe.call(this,Z,ze[0]):(ze[1]||Hy).call(this,Z,ze[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Sa({start:Z.start,end:Z.end})+"): it’s not open");Se.position.end=Ml(Z.end)}function y(){return Dd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(Z){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=Z}function E(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=Z}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/(\r?\n|\r)$/g,"")}function R(Z){const oe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=oe,Se.identifier=Sn(this.sliceSerialize(Z)).toLowerCase()}function L(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function W(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function ee(Z){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Se=this.sliceSerialize(Z).length;oe.depth=Se}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function X(Z){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(Z){const Se=this.stack[this.stack.length-1].children;let ze=Se[Se.length-1];(!ze||ze.type!=="text")&&(ze=At(),ze.position={start:Ml(Z.start),end:void 0},Se.push(ze)),this.stack.push(ze)}function H(Z){const oe=this.stack.pop();oe.value+=this.sliceSerialize(Z),oe.position.end=Ml(Z.end)}function re(Z){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=oe.children[oe.children.length-1];Se.position.end=Ml(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(oe.type)&&(ae.call(this,Z),H.call(this,Z))}function P(){this.data.atHardBreak=!0}function be(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ue(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ne(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function B(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ce(Z){const oe=this.sliceSerialize(Z),Se=this.stack[this.stack.length-2];Se.label=Y3(oe),Se.identifier=Sn(oe).toLowerCase()}function we(){const Z=this.stack[this.stack.length-1],oe=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const ze=Z.children;Se.children=ze}else Se.alt=oe}function T(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function _(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function M(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function te(Z){const oe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=oe,Se.identifier=Sn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function $(Z){this.data.characterReferenceType=Z.type}function le(Z){const oe=this.sliceSerialize(Z),Se=this.data.characterReferenceType;let ze;Se?(ze=r0(oe,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Od(oe);const Ie=this.stack[this.stack.length-1];Ie.value+=ze}function he(Z){const oe=this.stack.pop();oe.position.end=Ml(Z.end)}function Ae(Z){H.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(Z)}function pe(Z){H.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(Z)}function at(){return{type:"blockquote",children:[]}}function _t(){return{type:"code",lang:null,meta:null,value:""}}function wn(){return{type:"inlineCode",value:""}}function rl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Dt(){return{type:"emphasis",children:[]}}function cr(){return{type:"heading",depth:0,children:[]}}function fr(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Oa(){return{type:"image",title:null,url:"",alt:null}}function dr(){return{type:"link",title:null,url:"",children:[]}}function hr(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function yi(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Do(){return{type:"paragraph",children:[]}}function Oo(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function Ro(){return{type:"thematicBreak"}}}function Ml(t){return{line:t.line,column:t.column,offset:t.offset}}function p0(t,l){let i=-1;for(;++i<l.length;){const a=l[i];Array.isArray(a)?p0(t,a):Q3(t,a)}}function Q3(t,l){let i;for(i in l)if(m0.call(l,i))switch(i){case"canContainEols":{const a=l[i];a&&t[i].push(...a);break}case"transforms":{const a=l[i];a&&t[i].push(...a);break}case"enter":case"exit":{const a=l[i];a&&Object.assign(t[i],a);break}}}function Hy(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+Sa({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+Sa({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Sa({start:l.start,end:l.end})+") is still open")}function Z3(t){const l=this;l.parser=i;function i(a){return F3(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function K3(t,l){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,i),t.applyData(l,i)}function P3(t,l){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,i),[t.applyData(l,i),{type:"text",value:`
349
- `}]}function $3(t,l){const i=l.value?l.value+`
350
- `:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return l.meta&&(c.data={meta:l.meta}),t.patch(l,c),c=t.applyData(l,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(l,c),c}function J3(t,l){const i={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function W3(t,l){const i={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function eA(t,l){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),o=gi(a.toLowerCase()),c=t.footnoteOrder.indexOf(a);let s,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),s=t.footnoteOrder.length):s=c+1,d+=1,t.footnoteCounts.set(a,d);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(l,p),t.applyData(l,p)}function tA(t,l){const i={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function nA(t,l){if(t.options.allowDangerousHtml){const i={type:"raw",value:l.value};return t.patch(l,i),t.applyData(l,i)}}function g0(t,l){const i=l.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const o=t.all(l),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=a:o.push({type:"text",value:a}),o}function lA(t,l){const i=String(l.identifier).toUpperCase(),a=t.definitionById.get(i);if(!a)return g0(t,l);const o={src:gi(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"img",properties:o,children:[]};return t.patch(l,c),t.applyData(l,c)}function rA(t,l){const i={src:gi(l.url)};l.alt!==null&&l.alt!==void 0&&(i.alt=l.alt),l.title!==null&&l.title!==void 0&&(i.title=l.title);const a={type:"element",tagName:"img",properties:i,children:[]};return t.patch(l,a),t.applyData(l,a)}function iA(t,l){const i={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(l,a),t.applyData(l,a)}function aA(t,l){const i=String(l.identifier).toUpperCase(),a=t.definitionById.get(i);if(!a)return g0(t,l);const o={href:gi(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"a",properties:o,children:t.all(l)};return t.patch(l,c),t.applyData(l,c)}function uA(t,l){const i={href:gi(l.url)};l.title!==null&&l.title!==void 0&&(i.title=l.title);const a={type:"element",tagName:"a",properties:i,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function oA(t,l,i){const a=t.all(l),o=i?sA(i):y0(l),c={},s=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&s.push({type:"text",value:`
349
+ `;break}case-2:{s=l?" ":" ";break}case-1:{if(!l&&o)continue;s=" ";break}default:s=String.fromCharCode(c)}o=c===-2,a.push(s)}return a.join("")}function tA(t){const a={constructs:o0([$3,...(t||{}).extensions||[]]),content:o(gT),defined:[],document:o(xT),flow:o(L3),lazy:{},string:o(H3),text:o(q3)};return a;function o(c){return s;function s(d){return J3(a,c,d)}}}function nA(t){for(;!h0(t););return t}const Hy=/[\0\t\n\r]/g;function lA(){let t=1,l="",i=!0,a;return o;function o(c,s,d){const m=[];let p,y,g,v,S;for(c=l+(typeof c=="string"?c.toString():new TextDecoder(s||void 0).decode(c)),g=0,l="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(Hy.lastIndex=g,p=Hy.exec(c),v=p&&p.index!==void 0?p.index:c.length,S=c.charCodeAt(v),!p){l=c.slice(g);break}if(S===10&&g===v&&a)m.push(-3),a=void 0;else switch(a&&(m.push(-5),a=void 0),g<v&&(m.push(c.slice(g,v)),t+=v-g),S){case 0:{m.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,m.push(-2);t++<y;)m.push(-1);break}case 10:{m.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return d&&(a&&m.push(-5),l&&m.push(l),m.push(null)),m}}const rA=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function iA(t){return t.replace(rA,aA)}function aA(t,l,i){if(l)return l;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),c=o===120||o===88;return s0(i.slice(c?2:1),c?16:10)}return Od(i)||t}const b0={}.hasOwnProperty;function uA(t,l,i){return l&&typeof l=="object"&&(i=l,l=void 0),oA(i)(nA(tA(i).document().write(lA()(t,l,!0))))}function oA(t){const l={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(dr),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:c(cr),blockQuote:c(at),characterEscape:ae,characterReference:ae,codeFenced:c(_t),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:c(_t,s),codeText:c(wn,s),codeTextData:ae,data:ae,codeFlowValue:ae,definition:c(rl),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:c(Dt),hardBreakEscape:c(fr),hardBreakTrailing:c(fr),htmlFlow:c(Da,s),htmlFlowData:ae,htmlText:c(Da,s),htmlTextData:ae,image:c(Oa),label:s,link:c(dr),listItem:c(yi),listItemValue:v,listOrdered:c(hr,g),listUnordered:c(hr),paragraph:c(Do),reference:C,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:c(cr),strong:c(Oo),thematicBreak:c(Ro)},exit:{atxHeading:m(),atxHeadingSequence:ee,autolink:m(),autolinkEmail:pe,autolinkProtocol:Ae,blockQuote:m(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:le,characterReference:he,codeFenced:m(j),codeFencedFence:A,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:H,codeIndented:m(N),codeText:m(ne),codeTextData:H,data:H,definition:m(),definitionDestinationString:K,definitionLabelString:L,definitionTitleString:R,emphasis:m(),hardBreakEscape:m($),hardBreakTrailing:m($),htmlFlow:m(xe),htmlFlowData:H,htmlText:m(ue),htmlTextData:H,image:m(Q),label:we,labelText:ce,lineEnding:re,link:m(B),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:te,resourceDestinationString:T,resourceTitleString:_,resource:M,setextHeading:m(V),setextHeadingLineSequence:X,setextHeadingText:D,strong:m(),thematicBreak:m()}};v0(l,(t||{}).mdastExtensions||[]);const i={};return a;function a(Z){let oe={type:"root",children:[]};const Se={stack:[oe],tokenStack:[],config:l,enter:d,exit:p,buffer:s,resume:y,data:i},ze=[];let Ie=-1;for(;++Ie<Z.length;)if(Z[Ie][1].type==="listOrdered"||Z[Ie][1].type==="listUnordered")if(Z[Ie][0]==="enter")ze.push(Ie);else{const Ft=ze.pop();Ie=o(Z,Ft,Ie)}for(Ie=-1;++Ie<Z.length;){const Ft=l[Z[Ie][0]];b0.call(Ft,Z[Ie][1].type)&&Ft[Z[Ie][1].type].call(Object.assign({sliceSerialize:Z[Ie][2].sliceSerialize},Se),Z[Ie][1])}if(Se.tokenStack.length>0){const Ft=Se.tokenStack[Se.tokenStack.length-1];(Ft[1]||qy).call(Se,void 0,Ft[0])}for(oe.position={start:Ml(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:Ml(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ie=-1;++Ie<l.transforms.length;)oe=l.transforms[Ie](oe)||oe;return oe}function o(Z,oe,Se){let ze=oe-1,Ie=-1,Ft=!1,On,Nt,dt,Ot;for(;++ze<=Se;){const Ze=Z[ze];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?Ie++:Ie--,Ot=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(On&&!Ot&&!Ie&&!dt&&(dt=ze),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!Ie&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||Ie===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(On){let il=ze;for(Nt=void 0;il--;){const gn=Z[il];if(gn[1].type==="lineEnding"||gn[1].type==="lineEndingBlank"){if(gn[0]==="exit")continue;Nt&&(Z[Nt][1].type="lineEndingBlank",Ft=!0),gn[1].type="lineEnding",Nt=il}else if(!(gn[1].type==="linePrefix"||gn[1].type==="blockQuotePrefix"||gn[1].type==="blockQuotePrefixWhitespace"||gn[1].type==="blockQuoteMarker"||gn[1].type==="listItemIndent"))break}dt&&(!Nt||dt<Nt)&&(On._spread=!0),On.end=Object.assign({},Nt?Z[Nt][1].start:Ze[1].end),Z.splice(Nt||ze,0,["exit",On,Ze[2]]),ze++,Se++}if(Ze[1].type==="listItemPrefix"){const il={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};On=il,Z.splice(ze,0,["enter",il,Ze[2]]),ze++,Se++,dt=void 0,Ot=!0}}}return Z[oe][1]._spread=Ft,Se}function c(Z,oe){return Se;function Se(ze){d.call(this,Z(ze),ze),oe&&oe.call(this,ze)}}function s(){this.stack.push({type:"fragment",children:[]})}function d(Z,oe,Se){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([oe,Se||void 0]),Z.position={start:Ml(oe.start),end:void 0}}function m(Z){return oe;function oe(Se){Z&&Z.call(this,Se),p.call(this,Se)}}function p(Z,oe){const Se=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==Z.type&&(oe?oe.call(this,Z,ze[0]):(ze[1]||qy).call(this,Z,ze[0]));else throw new Error("Cannot close `"+Z.type+"` ("+Sa({start:Z.start,end:Z.end})+"): it’s not open");Se.position.end=Ml(Z.end)}function y(){return Dd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(Z){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=Z}function E(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=Z}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/(\r?\n|\r)$/g,"")}function L(Z){const oe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=oe,Se.identifier=Sn(this.sliceSerialize(Z)).toLowerCase()}function R(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function K(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function ee(Z){const oe=this.stack[this.stack.length-1];if(!oe.depth){const Se=this.sliceSerialize(Z).length;oe.depth=Se}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function X(Z){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(Z){const Se=this.stack[this.stack.length-1].children;let ze=Se[Se.length-1];(!ze||ze.type!=="text")&&(ze=At(),ze.position={start:Ml(Z.start),end:void 0},Se.push(ze)),this.stack.push(ze)}function H(Z){const oe=this.stack.pop();oe.value+=this.sliceSerialize(Z),oe.position.end=Ml(Z.end)}function re(Z){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=oe.children[oe.children.length-1];Se.position.end=Ml(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&l.canContainEols.includes(oe.type)&&(ae.call(this,Z),H.call(this,Z))}function $(){this.data.atHardBreak=!0}function xe(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ue(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ne(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function B(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function Q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function ce(Z){const oe=this.sliceSerialize(Z),Se=this.stack[this.stack.length-2];Se.label=iA(oe),Se.identifier=Sn(oe).toLowerCase()}function we(){const Z=this.stack[this.stack.length-1],oe=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const ze=Z.children;Se.children=ze}else Se.alt=oe}function T(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function _(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function M(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function te(Z){const oe=this.resume(),Se=this.stack[this.stack.length-1];Se.label=oe,Se.identifier=Sn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function J(Z){this.data.characterReferenceType=Z.type}function le(Z){const oe=this.sliceSerialize(Z),Se=this.data.characterReferenceType;let ze;Se?(ze=s0(oe,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Od(oe);const Ie=this.stack[this.stack.length-1];Ie.value+=ze}function he(Z){const oe=this.stack.pop();oe.position.end=Ml(Z.end)}function Ae(Z){H.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(Z)}function pe(Z){H.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(Z)}function at(){return{type:"blockquote",children:[]}}function _t(){return{type:"code",lang:null,meta:null,value:""}}function wn(){return{type:"inlineCode",value:""}}function rl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Dt(){return{type:"emphasis",children:[]}}function cr(){return{type:"heading",depth:0,children:[]}}function fr(){return{type:"break"}}function Da(){return{type:"html",value:""}}function Oa(){return{type:"image",title:null,url:"",alt:null}}function dr(){return{type:"link",title:null,url:"",children:[]}}function hr(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function yi(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Do(){return{type:"paragraph",children:[]}}function Oo(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function Ro(){return{type:"thematicBreak"}}}function Ml(t){return{line:t.line,column:t.column,offset:t.offset}}function v0(t,l){let i=-1;for(;++i<l.length;){const a=l[i];Array.isArray(a)?v0(t,a):sA(t,a)}}function sA(t,l){let i;for(i in l)if(b0.call(l,i))switch(i){case"canContainEols":{const a=l[i];a&&t[i].push(...a);break}case"transforms":{const a=l[i];a&&t[i].push(...a);break}case"enter":case"exit":{const a=l[i];a&&Object.assign(t[i],a);break}}}function qy(t,l){throw t?new Error("Cannot close `"+t.type+"` ("+Sa({start:t.start,end:t.end})+"): a different token (`"+l.type+"`, "+Sa({start:l.start,end:l.end})+") is open"):new Error("Cannot close document, a token (`"+l.type+"`, "+Sa({start:l.start,end:l.end})+") is still open")}function cA(t){const l=this;l.parser=i;function i(a){return uA(a,{...l.data("settings"),...t,extensions:l.data("micromarkExtensions")||[],mdastExtensions:l.data("fromMarkdownExtensions")||[]})}}function fA(t,l){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(l),!0)};return t.patch(l,i),t.applyData(l,i)}function dA(t,l){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(l,i),[t.applyData(l,i),{type:"text",value:`
350
+ `}]}function hA(t,l){const i=l.value?l.value+`
351
+ `:"",a={},o=l.lang?l.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return l.meta&&(c.data={meta:l.meta}),t.patch(l,c),c=t.applyData(l,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(l,c),c}function mA(t,l){const i={type:"element",tagName:"del",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function pA(t,l){const i={type:"element",tagName:"em",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function gA(t,l){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(l.identifier).toUpperCase(),o=gi(a.toLowerCase()),c=t.footnoteOrder.indexOf(a);let s,d=t.footnoteCounts.get(a);d===void 0?(d=0,t.footnoteOrder.push(a),s=t.footnoteOrder.length):s=c+1,d+=1,t.footnoteCounts.set(a,d);const m={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(l,m);const p={type:"element",tagName:"sup",properties:{},children:[m]};return t.patch(l,p),t.applyData(l,p)}function yA(t,l){const i={type:"element",tagName:"h"+l.depth,properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function xA(t,l){if(t.options.allowDangerousHtml){const i={type:"raw",value:l.value};return t.patch(l,i),t.applyData(l,i)}}function S0(t,l){const i=l.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(l.label||l.identifier)+"]"),l.type==="imageReference")return[{type:"text",value:"!["+l.alt+a}];const o=t.all(l),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=a:o.push({type:"text",value:a}),o}function bA(t,l){const i=String(l.identifier).toUpperCase(),a=t.definitionById.get(i);if(!a)return S0(t,l);const o={src:gi(a.url||""),alt:l.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"img",properties:o,children:[]};return t.patch(l,c),t.applyData(l,c)}function vA(t,l){const i={src:gi(l.url)};l.alt!==null&&l.alt!==void 0&&(i.alt=l.alt),l.title!==null&&l.title!==void 0&&(i.title=l.title);const a={type:"element",tagName:"img",properties:i,children:[]};return t.patch(l,a),t.applyData(l,a)}function SA(t,l){const i={type:"text",value:l.value.replace(/\r?\n|\r/g," ")};t.patch(l,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(l,a),t.applyData(l,a)}function kA(t,l){const i=String(l.identifier).toUpperCase(),a=t.definitionById.get(i);if(!a)return S0(t,l);const o={href:gi(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"a",properties:o,children:t.all(l)};return t.patch(l,c),t.applyData(l,c)}function wA(t,l){const i={href:gi(l.url)};l.title!==null&&l.title!==void 0&&(i.title=l.title);const a={type:"element",tagName:"a",properties:i,children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function EA(t,l,i){const a=t.all(l),o=i?CA(i):k0(l),c={},s=[];if(typeof l.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:l.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<a.length;){const y=a[d];(o||d!==0||y.type!=="element"||y.tagName!=="p")&&s.push({type:"text",value:`
351
352
  `}),y.type==="element"&&y.tagName==="p"&&!o?s.push(...y.children):s.push(y)}const m=a[a.length-1];m&&(o||m.type!=="element"||m.tagName!=="p")&&s.push({type:"text",value:`
352
- `});const p={type:"element",tagName:"li",properties:c,children:s};return t.patch(l,p),t.applyData(l,p)}function sA(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const i=t.children;let a=-1;for(;!l&&++a<i.length;)l=y0(i[a])}return l}function y0(t){const l=t.spread;return l??t.children.length>1}function cA(t,l){const i={},a=t.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(i.start=l.start);++o<a.length;){const s=a[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:l.ordered?"ol":"ul",properties:i,children:t.wrap(a,!0)};return t.patch(l,c),t.applyData(l,c)}function fA(t,l){const i={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function dA(t,l){const i={type:"root",children:t.wrap(t.all(l))};return t.patch(l,i),t.applyData(l,i)}function hA(t,l){const i={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function mA(t,l){const i=t.all(l),a=i.shift(),o=[];if(a){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],s),o.push(s)}if(i.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},d=jd(l.children[1]),m=Px(l.children[l.children.length-1]);d&&m&&(s.position={start:d,end:m}),o.push(s)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(l,c),t.applyData(l,c)}function pA(t,l,i){const a=i?i.children:void 0,c=(a?a.indexOf(l):1)===0?"th":"td",s=i&&i.type==="table"?i.align:void 0,d=s?s.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const g=l.children[m],v={},S=s?s[m]:void 0;S&&(v.align=S);let E={type:"element",tagName:c,properties:v,children:[]};g&&(E.children=t.all(g),t.patch(g,E),E=t.applyData(g,E)),p.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,y),t.applyData(l,y)}function gA(t,l){const i={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}const qy=9,Iy=32;function yA(t){const l=String(t),i=/\r?\n|\r/g;let a=i.exec(l),o=0;const c=[];for(;a;)c.push(Vy(l.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(l);return c.push(Vy(l.slice(o),o>0,!1)),c.join("")}function Vy(t,l,i){let a=0,o=t.length;if(l){let c=t.codePointAt(a);for(;c===qy||c===Iy;)a++,c=t.codePointAt(a)}if(i){let c=t.codePointAt(o-1);for(;c===qy||c===Iy;)o--,c=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function bA(t,l){const i={type:"text",value:yA(String(l.value))};return t.patch(l,i),t.applyData(l,i)}function xA(t,l){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,i),t.applyData(l,i)}const vA={blockquote:K3,break:P3,code:$3,delete:J3,emphasis:W3,footnoteReference:eA,heading:tA,html:nA,imageReference:lA,image:rA,inlineCode:iA,linkReference:aA,link:uA,listItem:oA,list:cA,paragraph:fA,root:dA,strong:hA,table:mA,tableCell:gA,tableRow:pA,text:bA,thematicBreak:xA,toml:uo,yaml:uo,definition:uo,footnoteDefinition:uo};function uo(){}const b0=-1,jo=0,wa=1,So=2,Ld=3,Ud=4,Bd=5,Hd=6,x0=7,v0=8,{defineProperty:SA}=Object,S0=typeof self=="object"?self:globalThis,Yy=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new S0[t](l)},kA=(t,l)=>{const i=(o,c)=>(t.set(c,o),o),a=o=>{if(t.has(o))return t.get(o);const[c,s]=l[o];switch(c){case jo:case b0:return i(s,o);case wa:{const d=i([],o);for(const m of s)d.push(a(m));return d}case So:{const d=i({},o);for(const[m,p]of s){const y=a(m),g=a(p);y==="__proto__"?SA(d,y,{value:g,configurable:!0,enumerable:!0,writable:!0}):d[y]=g}return d}case Ld:return i(new Date(s),o);case Ud:{const{source:d,flags:m}=s;return i(new RegExp(d,m),o)}case Bd:{const d=i(new Map,o);for(const[m,p]of s)d.set(a(m),a(p));return d}case Hd:{const d=i(new Set,o);for(const m of s)d.add(a(m));return d}case x0:{const{name:d,message:m}=s;return i(typeof S0[d]=="function"?Yy(d,m):new Error(m),o)}case v0:return i(BigInt(s),o);case"BigInt":return i(Object(BigInt(s)),o);case"ArrayBuffer":return i(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:d}=new Uint8Array(s);return i(new DataView(d),s)}case"-0":return-0}return i(Yy(c,s),o)};return a},Gy=t=>kA(new Map,t)(0),tr="",{toString:wA}={},{keys:EA,is:CA}=Object,ga=t=>{const l=typeof t;if(l!=="object"||!t)return[jo,l];const i=wA.call(t).slice(8,-1);switch(i){case"Array":return[wa,tr];case"Object":return[So,tr];case"Date":return[Ld,tr];case"RegExp":return[Ud,tr];case"Map":return[Bd,tr];case"Set":return[Hd,tr];case"DataView":return[wa,i]}return i.includes("Array")?[wa,i]:t instanceof Error?[x0,t.name||"Error"]:[So,i]},oo=([t,l])=>t===jo&&(l==="function"||l==="symbol"),TA=(t,l,i,a)=>{const o=(s,d)=>{const m=a.push(s)-1;return i.set(d,m),m},c=s=>{if(i.has(s))return i.get(s);let[d,m]=ga(s);switch(d){case jo:{let y=s;switch(m){case"bigint":d=v0,y=s.toString();break;case"number":if(!s&&CA(s,-0))return a.push(["-0"])-1;break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([b0],s)}return o([d,y],s)}case wa:{if(m){let v=s;return m==="DataView"?v=new Uint8Array(s.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(s)),o([m,[...v]],s)}const y=[],g=o([d,y],s);for(const v of s)y.push(c(v));return g}case So:{if(m)switch(m){case"BigInt":return o([m,s.toString()],s);case"Boolean":case"Number":case"String":return o([m,s.valueOf()],s)}if(l&&"toJSON"in s)return c(s.toJSON());const y=[],g=o([d,y],s);for(const v of EA(s))(t||!oo(ga(s[v])))&&y.push([c(v),c(s[v])]);return g}case Ld:return o([d,isNaN(s.getTime())?tr:s.toISOString()],s);case Ud:{const{source:y,flags:g}=s;return o([d,{source:y,flags:g}],s)}case Bd:{const y=[],g=o([d,y],s);for(const[v,S]of s)(t||!(oo(ga(v))||oo(ga(S))))&&y.push([c(v),c(S)]);return g}case Hd:{const y=[],g=o([d,y],s);for(const v of s)(t||!oo(ga(v)))&&y.push(c(v));return g}}const{message:p}=s;return o([d,{name:m,message:p}],s)};return c},Fy=(t,{json:l,lossy:i}={})=>{const a=[];return TA(!(l||i),!!l,new Map,a)(t),a},ko=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?Gy(Fy(t,l)):structuredClone(t):(t,l)=>Gy(Fy(t,l));function AA(t,l){const i=[{type:"text",value:"↩"}];return l>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),i}function NA(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function jA(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||AA,a=t.options.footnoteBackLabel||NA,o=t.options.footnoteLabel||"Footnotes",c=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const y=t.all(p),g=String(p.identifier).toUpperCase(),v=gi(g.toLowerCase());let S=0;const E=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++S<=A;){E.length>0&&E.push({type:"text",value:" "});let R=typeof i=="string"?i:i(m,S);typeof R=="string"&&(R={type:"text",value:R}),E.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,S),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const j=y[y.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const R=j.children[j.children.length-1];R&&R.type==="text"?R.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...E)}else y.push(...E);const N={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(p,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...ko(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
353
+ `});const p={type:"element",tagName:"li",properties:c,children:s};return t.patch(l,p),t.applyData(l,p)}function CA(t){let l=!1;if(t.type==="list"){l=t.spread||!1;const i=t.children;let a=-1;for(;!l&&++a<i.length;)l=k0(i[a])}return l}function k0(t){const l=t.spread;return l??t.children.length>1}function TA(t,l){const i={},a=t.all(l);let o=-1;for(typeof l.start=="number"&&l.start!==1&&(i.start=l.start);++o<a.length;){const s=a[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:l.ordered?"ol":"ul",properties:i,children:t.wrap(a,!0)};return t.patch(l,c),t.applyData(l,c)}function AA(t,l){const i={type:"element",tagName:"p",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function NA(t,l){const i={type:"root",children:t.wrap(t.all(l))};return t.patch(l,i),t.applyData(l,i)}function jA(t,l){const i={type:"element",tagName:"strong",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}function zA(t,l){const i=t.all(l),a=i.shift(),o=[];if(a){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(l.children[0],s),o.push(s)}if(i.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},d=jd(l.children[1]),m=t0(l.children[l.children.length-1]);d&&m&&(s.position={start:d,end:m}),o.push(s)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(l,c),t.applyData(l,c)}function MA(t,l,i){const a=i?i.children:void 0,c=(a?a.indexOf(l):1)===0?"th":"td",s=i&&i.type==="table"?i.align:void 0,d=s?s.length:l.children.length;let m=-1;const p=[];for(;++m<d;){const g=l.children[m],v={},S=s?s[m]:void 0;S&&(v.align=S);let E={type:"element",tagName:c,properties:v,children:[]};g&&(E.children=t.all(g),t.patch(g,E),E=t.applyData(g,E)),p.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,y),t.applyData(l,y)}function _A(t,l){const i={type:"element",tagName:"td",properties:{},children:t.all(l)};return t.patch(l,i),t.applyData(l,i)}const Iy=9,Vy=32;function DA(t){const l=String(t),i=/\r?\n|\r/g;let a=i.exec(l),o=0;const c=[];for(;a;)c.push(Yy(l.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(l);return c.push(Yy(l.slice(o),o>0,!1)),c.join("")}function Yy(t,l,i){let a=0,o=t.length;if(l){let c=t.codePointAt(a);for(;c===Iy||c===Vy;)a++,c=t.codePointAt(a)}if(i){let c=t.codePointAt(o-1);for(;c===Iy||c===Vy;)o--,c=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function OA(t,l){const i={type:"text",value:DA(String(l.value))};return t.patch(l,i),t.applyData(l,i)}function RA(t,l){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(l,i),t.applyData(l,i)}const LA={blockquote:fA,break:dA,code:hA,delete:mA,emphasis:pA,footnoteReference:gA,heading:yA,html:xA,imageReference:bA,image:vA,inlineCode:SA,linkReference:kA,link:wA,listItem:EA,list:TA,paragraph:AA,root:NA,strong:jA,table:zA,tableCell:_A,tableRow:MA,text:OA,thematicBreak:RA,toml:uo,yaml:uo,definition:uo,footnoteDefinition:uo};function uo(){}const w0=-1,jo=0,wa=1,So=2,Ld=3,Ud=4,Bd=5,Hd=6,E0=7,C0=8,{defineProperty:UA}=Object,T0=typeof self=="object"?self:globalThis,Gy=(t,l)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new T0[t](l)},BA=(t,l)=>{const i=(o,c)=>(t.set(c,o),o),a=o=>{if(t.has(o))return t.get(o);const[c,s]=l[o];switch(c){case jo:case w0:return i(s,o);case wa:{const d=i([],o);for(const m of s)d.push(a(m));return d}case So:{const d=i({},o);for(const[m,p]of s){const y=a(m),g=a(p);y==="__proto__"?UA(d,y,{value:g,configurable:!0,enumerable:!0,writable:!0}):d[y]=g}return d}case Ld:return i(new Date(s),o);case Ud:{const{source:d,flags:m}=s;return i(new RegExp(d,m),o)}case Bd:{const d=i(new Map,o);for(const[m,p]of s)d.set(a(m),a(p));return d}case Hd:{const d=i(new Set,o);for(const m of s)d.add(a(m));return d}case E0:{const{name:d,message:m}=s;return i(typeof T0[d]=="function"?Gy(d,m):new Error(m),o)}case C0:return i(BigInt(s),o);case"BigInt":return i(Object(BigInt(s)),o);case"ArrayBuffer":return i(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:d}=new Uint8Array(s);return i(new DataView(d),s)}case"-0":return-0}return i(Gy(c,s),o)};return a},Fy=t=>BA(new Map,t)(0),tr="",{toString:HA}={},{keys:qA,is:IA}=Object,ga=t=>{const l=typeof t;if(l!=="object"||!t)return[jo,l];const i=HA.call(t).slice(8,-1);switch(i){case"Array":return[wa,tr];case"Object":return[So,tr];case"Date":return[Ld,tr];case"RegExp":return[Ud,tr];case"Map":return[Bd,tr];case"Set":return[Hd,tr];case"DataView":return[wa,i]}return i.includes("Array")?[wa,i]:t instanceof Error?[E0,t.name||"Error"]:[So,i]},oo=([t,l])=>t===jo&&(l==="function"||l==="symbol"),VA=(t,l,i,a)=>{const o=(s,d)=>{const m=a.push(s)-1;return i.set(d,m),m},c=s=>{if(i.has(s))return i.get(s);let[d,m]=ga(s);switch(d){case jo:{let y=s;switch(m){case"bigint":d=C0,y=s.toString();break;case"number":if(!s&&IA(s,-0))return a.push(["-0"])-1;break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+m);y=null;break;case"undefined":return o([w0],s)}return o([d,y],s)}case wa:{if(m){let v=s;return m==="DataView"?v=new Uint8Array(s.buffer):m==="ArrayBuffer"&&(v=new Uint8Array(s)),o([m,[...v]],s)}const y=[],g=o([d,y],s);for(const v of s)y.push(c(v));return g}case So:{if(m)switch(m){case"BigInt":return o([m,s.toString()],s);case"Boolean":case"Number":case"String":return o([m,s.valueOf()],s)}if(l&&"toJSON"in s)return c(s.toJSON());const y=[],g=o([d,y],s);for(const v of qA(s))(t||!oo(ga(s[v])))&&y.push([c(v),c(s[v])]);return g}case Ld:return o([d,isNaN(s.getTime())?tr:s.toISOString()],s);case Ud:{const{source:y,flags:g}=s;return o([d,{source:y,flags:g}],s)}case Bd:{const y=[],g=o([d,y],s);for(const[v,S]of s)(t||!(oo(ga(v))||oo(ga(S))))&&y.push([c(v),c(S)]);return g}case Hd:{const y=[],g=o([d,y],s);for(const v of s)(t||!oo(ga(v)))&&y.push(c(v));return g}}const{message:p}=s;return o([d,{name:m,message:p}],s)};return c},Xy=(t,{json:l,lossy:i}={})=>{const a=[];return VA(!(l||i),!!l,new Map,a)(t),a},ko=typeof structuredClone=="function"?(t,l)=>l&&("json"in l||"lossy"in l)?Fy(Xy(t,l)):structuredClone(t):(t,l)=>Fy(Xy(t,l));function YA(t,l){const i=[{type:"text",value:"↩"}];return l>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(l)}]}),i}function GA(t,l){return"Back to reference "+(t+1)+(l>1?"-"+l:"")}function FA(t){const l=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||YA,a=t.options.footnoteBackLabel||GA,o=t.options.footnoteLabel||"Footnotes",c=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let m=-1;for(;++m<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[m]);if(!p)continue;const y=t.all(p),g=String(p.identifier).toUpperCase(),v=gi(g.toLowerCase());let S=0;const E=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++S<=A;){E.length>0&&E.push({type:"text",value:" "});let L=typeof i=="string"?i:i(m,S);typeof L=="string"&&(L={type:"text",value:L}),E.push({type:"element",tagName:"a",properties:{href:"#"+l+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(m,S),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const j=y[y.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const L=j.children[j.children.length-1];L&&L.type==="text"?L.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...E)}else y.push(...E);const N={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(y,!0)};t.patch(p,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...ko(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
353
354
  `},{type:"element",tagName:"ol",properties:{},children:t.wrap(d,!0)},{type:"text",value:`
354
- `}]}}const zo=(function(t){if(t==null)return DA;if(typeof t=="function")return Mo(t);if(typeof t=="object")return Array.isArray(t)?zA(t):MA(t);if(typeof t=="string")return _A(t);throw new Error("Expected function, string, or object as test")});function zA(t){const l=[];let i=-1;for(;++i<t.length;)l[i]=zo(t[i]);return Mo(a);function a(...o){let c=-1;for(;++c<l.length;)if(l[c].apply(this,o))return!0;return!1}}function MA(t){const l=t;return Mo(i);function i(a){const o=a;let c;for(c in t)if(o[c]!==l[c])return!1;return!0}}function _A(t){return Mo(l);function l(i){return i&&i.type===t}}function Mo(t){return l;function l(i,a,o){return!!(OA(i)&&t.call(this,i,typeof a=="number"?a:void 0,o||void 0))}}function DA(){return!0}function OA(t){return t!==null&&typeof t=="object"&&"type"in t}const k0=[],RA=!0,td=!1,LA="skip";function w0(t,l,i,a){let o;typeof l=="function"&&typeof i!="function"?(a=i,i=l):o=l;const c=zo(o),s=a?-1:1;d(t,void 0,[])();function d(m,p,y){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=k0,E,A,j;if((!l||c(m,p,y[y.length-1]||void 0))&&(S=UA(i(m,y)),S[0]===td))return S;if("children"in m&&m.children){const N=m;if(N.children&&S[0]!==LA)for(A=(a?N.children.length:-1)+s,j=y.concat(N);A>-1&&A<N.children.length;){const R=N.children[A];if(E=d(R,A,j)(),E[0]===td)return E;A=typeof E[1]=="number"?E[1]:A+s}}return S}}}function UA(t){return Array.isArray(t)?t:typeof t=="number"?[RA,t]:t==null?k0:[t]}function qd(t,l,i,a){let o,c,s;typeof l=="function"&&typeof i!="function"?(c=void 0,s=l,o=i):(c=l,s=i,o=a),w0(t,c,d,o);function d(m,p){const y=p[p.length-1],g=y?y.children.indexOf(m):void 0;return s(m,g,y)}}const nd={}.hasOwnProperty,BA={};function HA(t,l){const i=l||BA,a=new Map,o=new Map,c=new Map,s={...vA,...i.handlers},d={all:p,applyData:IA,definitionById:a,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:s,one:m,options:i,patch:qA,wrap:YA};return qd(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function m(y,g){const v=y.type,S=d.handlers[v];if(nd.call(d.handlers,v)&&S)return S(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:A,...j}=y,N=ko(j);return N.children=d.all(y),N}return ko(y)}return(d.options.unknownHandler||VA)(d,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let S=-1;for(;++S<v.length;){const E=d.one(v[S],y);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Xy(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=Xy(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function qA(t,l){t.position&&(l.position=TC(t))}function IA(t,l){let i=l;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,c=t.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const s="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:s}}i.type==="element"&&c&&Object.assign(i.properties,ko(c)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function VA(t,l){const i=l.data||{},a="value"in l&&!(nd.call(i,"hProperties")||nd.call(i,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function YA(t,l){const i=[];let a=-1;for(l&&i.push({type:"text",value:`
355
+ `}]}}const zo=(function(t){if(t==null)return KA;if(typeof t=="function")return Mo(t);if(typeof t=="object")return Array.isArray(t)?XA(t):QA(t);if(typeof t=="string")return ZA(t);throw new Error("Expected function, string, or object as test")});function XA(t){const l=[];let i=-1;for(;++i<t.length;)l[i]=zo(t[i]);return Mo(a);function a(...o){let c=-1;for(;++c<l.length;)if(l[c].apply(this,o))return!0;return!1}}function QA(t){const l=t;return Mo(i);function i(a){const o=a;let c;for(c in t)if(o[c]!==l[c])return!1;return!0}}function ZA(t){return Mo(l);function l(i){return i&&i.type===t}}function Mo(t){return l;function l(i,a,o){return!!(PA(i)&&t.call(this,i,typeof a=="number"?a:void 0,o||void 0))}}function KA(){return!0}function PA(t){return t!==null&&typeof t=="object"&&"type"in t}const A0=[],$A=!0,ld=!1,JA="skip";function N0(t,l,i,a){let o;typeof l=="function"&&typeof i!="function"?(a=i,i=l):o=l;const c=zo(o),s=a?-1:1;d(t,void 0,[])();function d(m,p,y){const g=m&&typeof m=="object"?m:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(m.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=A0,E,A,j;if((!l||c(m,p,y[y.length-1]||void 0))&&(S=WA(i(m,y)),S[0]===ld))return S;if("children"in m&&m.children){const N=m;if(N.children&&S[0]!==JA)for(A=(a?N.children.length:-1)+s,j=y.concat(N);A>-1&&A<N.children.length;){const L=N.children[A];if(E=d(L,A,j)(),E[0]===ld)return E;A=typeof E[1]=="number"?E[1]:A+s}}return S}}}function WA(t){return Array.isArray(t)?t:typeof t=="number"?[$A,t]:t==null?A0:[t]}function qd(t,l,i,a){let o,c,s;typeof l=="function"&&typeof i!="function"?(c=void 0,s=l,o=i):(c=l,s=i,o=a),N0(t,c,d,o);function d(m,p){const y=p[p.length-1],g=y?y.children.indexOf(m):void 0;return s(m,g,y)}}const rd={}.hasOwnProperty,eN={};function tN(t,l){const i=l||eN,a=new Map,o=new Map,c=new Map,s={...LA,...i.handlers},d={all:p,applyData:lN,definitionById:a,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:s,one:m,options:i,patch:nN,wrap:iN};return qd(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),d;function m(y,g){const v=y.type,S=d.handlers[v];if(rd.call(d.handlers,v)&&S)return S(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in y){const{children:A,...j}=y,N=ko(j);return N.children=d.all(y),N}return ko(y)}return(d.options.unknownHandler||rN)(d,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let S=-1;for(;++S<v.length;){const E=d.one(v[S],y);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Qy(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=Qy(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function nN(t,l){t.position&&(l.position=VC(t))}function lN(t,l){let i=l;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,c=t.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const s="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:s}}i.type==="element"&&c&&Object.assign(i.properties,ko(c)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function rN(t,l){const i=l.data||{},a="value"in l&&!(rd.call(i,"hProperties")||rd.call(i,"hChildren"))?{type:"text",value:l.value}:{type:"element",tagName:"div",properties:{},children:t.all(l)};return t.patch(l,a),t.applyData(l,a)}function iN(t,l){const i=[];let a=-1;for(l&&i.push({type:"text",value:`
355
356
  `});++a<t.length;)a&&i.push({type:"text",value:`
356
357
  `}),i.push(t[a]);return l&&t.length>0&&i.push({type:"text",value:`
357
- `}),i}function Xy(t){let l=0,i=t.charCodeAt(l);for(;i===9||i===32;)l++,i=t.charCodeAt(l);return t.slice(l)}function Qy(t,l){const i=HA(t,l),a=i.one(t,void 0),o=jA(i),c=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
358
- `},o),c}function GA(t,l){return t&&"run"in t?async function(i,a){const o=Qy(i,{file:a,...l});await t.run(o,a)}:function(i,a){return Qy(i,{file:a,...t||l})}}function Zy(t){if(t)throw t}var bf,Ky;function FA(){if(Ky)return bf;Ky=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},c=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},s=function(p,y){i&&y.name==="__proto__"?i(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return bf=function m(){var p,y,g,v,S,E,A=arguments[0],j=1,N=arguments.length,R=!1;for(typeof A=="boolean"&&(R=A,A=arguments[1]||{},j=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});j<N;++j)if(p=arguments[j],p!=null)for(y in p)g=d(A,y),v=d(p,y),A!==v&&(R&&v&&(c(v)||(S=o(v)))?(S?(S=!1,E=g&&o(g)?g:[]):E=g&&c(g)?g:{},s(A,{name:y,newValue:m(R,E,v)})):typeof v<"u"&&s(A,{name:y,newValue:v}));return A},bf}var XA=FA();const xf=sd(XA);function ld(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function QA(){const t=[],l={run:i,use:a};return l;function i(...o){let c=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);d(null,...o);function d(m,...p){const y=t[++c];let g=-1;if(m){s(m);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?ZA(y,d)(...p):s(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function ZA(t,l){let i;return a;function a(...s){const d=t.length>s.length;let m;d&&s.push(o);try{m=t.apply(this,s)}catch(p){const y=p;if(d&&i)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(c,o):m instanceof Error?o(m):c(m))}function o(s,...d){i||(i=!0,l(s,...d))}function c(s){o(null,s)}}const zn={basename:KA,dirname:PA,extname:$A,join:JA,sep:"/"};function KA(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');_a(t);let i=0,a=-1,o=t.length,c;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(c){i=o+1;break}}else a<0&&(c=!0,a=o+1);return a<0?"":t.slice(i,a)}if(l===t)return"";let s=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(c){i=o+1;break}}else s<0&&(c=!0,s=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=s));return i===a?a=s:a<0&&(a=t.length),t.slice(i,a)}function PA(t){if(_a(t),t.length===0)return".";let l=-1,i=t.length,a;for(;--i;)if(t.codePointAt(i)===47){if(a){l=i;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function $A(t){_a(t);let l=t.length,i=-1,a=0,o=-1,c=0,s;for(;l--;){const d=t.codePointAt(l);if(d===47){if(s){a=l+1;break}continue}i<0&&(s=!0,i=l+1),d===46?o<0?o=l:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||i<0||c===0||c===1&&o===i-1&&o===a+1?"":t.slice(o,i)}function JA(...t){let l=-1,i;for(;++l<t.length;)_a(t[l]),t[l]&&(i=i===void 0?t[l]:i+"/"+t[l]);return i===void 0?".":WA(i)}function WA(t){_a(t);const l=t.codePointAt(0)===47;let i=eN(t,!l);return i.length===0&&!l&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),l?"/"+i:i}function eN(t,l){let i="",a=0,o=-1,c=0,s=-1,d,m;for(;++s<=t.length;){if(s<t.length)d=t.codePointAt(s);else{if(d===47)break;d=47}if(d===47){if(!(o===s-1||c===1))if(o!==s-1&&c===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",a=0):(i=i.slice(0,m),a=i.length-1-i.lastIndexOf("/")),o=s,c=0;continue}}else if(i.length>0){i="",a=0,o=s,c=0;continue}}l&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+t.slice(o+1,s):i=t.slice(o+1,s),a=s-o-1;o=s,c=0}else d===46&&c>-1?c++:c=-1}return i}function _a(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const tN={cwd:nN};function nN(){return"/"}function rd(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function lN(t){if(typeof t=="string")t=new URL(t);else if(!rd(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return rN(t)}function rN(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let i=-1;for(;++i<l.length;)if(l.codePointAt(i)===37&&l.codePointAt(i+1)===50){const a=l.codePointAt(i+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const vf=["history","path","basename","stem","extname","dirname"];class E0{constructor(l){let i;l?rd(l)?i={path:l}:typeof l=="string"||iN(l)?i={value:l}:i=l:i={},this.cwd="cwd"in i?"":tN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<vf.length;){const c=vf[a];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let o;for(o in i)vf.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?zn.basename(this.path):void 0}set basename(l){kf(l,"basename"),Sf(l,"basename"),this.path=zn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?zn.dirname(this.path):void 0}set dirname(l){Py(this.basename,"dirname"),this.path=zn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?zn.extname(this.path):void 0}set extname(l){if(Sf(l,"extname"),Py(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){rd(l)&&(l=lN(l)),kf(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?zn.basename(this.path,this.extname):void 0}set stem(l){kf(l,"stem"),Sf(l,"stem"),this.path=zn.join(this.dirname||"",l+(this.extname||""))}fail(l,i,a){const o=this.message(l,i,a);throw o.fatal=!0,o}info(l,i,a){const o=this.message(l,i,a);return o.fatal=void 0,o}message(l,i,a){const o=new Tt(l,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Sf(t,l){if(t&&t.includes(zn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+zn.sep+"`")}function kf(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function Py(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function iN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const aN=(function(t){const a=this.constructor.prototype,o=a[t],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,a),c}),uN={}.hasOwnProperty;class Id extends aN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=QA()}copy(){const l=new Id;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];l.use(...a)}return l.data(xf(!0,{},this.namespace)),l}data(l,i){return typeof l=="string"?arguments.length===2?(Cf("data",this.frozen),this.namespace[l]=i,this):uN.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Cf("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const i=so(l),a=this.parser||this.Parser;return wf("parse",a),a(String(i),i)}process(l,i){const a=this;return this.freeze(),wf("process",this.parser||this.Parser),Ef("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(c,s){const d=so(l),m=a.parse(d);a.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const S=g,E=a.stringify(S,v);cN(E)?v.value=E:v.result=E,p(y,v)});function p(y,g){y||!g?s(y):c?c(g):i(void 0,g)}}}processSync(l){let i=!1,a;return this.freeze(),wf("processSync",this.parser||this.Parser),Ef("processSync",this.compiler||this.Compiler),this.process(l,o),Jy("processSync","process",i),a;function o(c,s){i=!0,Zy(c),a=s}}run(l,i,a){$y(l),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?c(void 0,a):new Promise(c);function c(s,d){const m=so(i);o.run(l,m,p);function p(y,g,v){const S=g||l;y?d(y):s?s(S):a(void 0,S,v)}}}runSync(l,i){let a=!1,o;return this.run(l,i,c),Jy("runSync","run",a),o;function c(s,d){Zy(s),o=d,a=!0}}stringify(l,i){this.freeze();const a=so(i),o=this.compiler||this.Compiler;return Ef("stringify",o),$y(l),o(l,a)}use(l,...i){const a=this.attachers,o=this.namespace;if(Cf("use",this.frozen),l!=null)if(typeof l=="function")m(l,i);else if(typeof l=="object")Array.isArray(l)?d(l):s(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function c(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else s(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function s(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=xf(!0,o.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[S,...E]=y;const A=a[v][1];ld(A)&&ld(S)&&(S=xf(!0,A,S)),a[v]=[p,S,...E]}}}}const oN=new Id().freeze();function wf(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Ef(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Cf(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $y(t){if(!ld(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Jy(t,l,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function so(t){return sN(t)?t:new E0(t)}function sN(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function cN(t){return typeof t=="string"||fN(t)}function fN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const dN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Wy=[],eb={allowDangerousHtml:!0},hN=/^(https?|ircs?|mailto|xmpp)$/i,mN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function pN(t){const l=gN(t),i=yN(t);return bN(l.runSync(l.parse(i),i),t)}function gN(t){const l=t.rehypePlugins||Wy,i=t.remarkPlugins||Wy,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...eb}:eb;return oN().use(Z3).use(i).use(GA,a).use(l)}function yN(t){const l=t.children||"",i=new E0;return typeof l=="string"&&(i.value=l),i}function bN(t,l){const i=l.allowedElements,a=l.allowElement,o=l.components,c=l.disallowedElements,s=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||xN;for(const y of mN)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+dN+y.id,void 0);return qd(t,p),MC(t,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return s?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let S;for(S in pf)if(Object.hasOwn(pf,S)&&Object.hasOwn(y.properties,S)){const E=y.properties[S],A=pf[S];(A===null||A.includes(y.tagName))&&(y.properties[S]=m(String(E||""),S,y))}}if(y.type==="element"){let S=i?!i.includes(y.tagName):c?c.includes(y.tagName):!1;if(!S&&a&&typeof g=="number"&&(S=!a(y,g,v)),S&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function xN(t){const l=t.indexOf(":"),i=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||i!==-1&&l>i||a!==-1&&l>a||hN.test(t.slice(0,l))?t:""}function tb(t,l){const i=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=i.indexOf(l);for(;o!==-1;)a++,o=i.indexOf(l,o+l.length);return a}function vN(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function SN(t,l,i){const o=zo((i||{}).ignore||[]),c=kN(l);let s=-1;for(;++s<c.length;)w0(t,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const S=y[g],E=v?v.children:void 0;if(o(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=c[s][0],S=c[s][1];let E=0;const j=g.children.indexOf(p);let N=!1,R=[];v.lastIndex=0;let L=v.exec(p.value);for(;L;){const W=L.index,ee={index:L.index,input:L.input,stack:[...y,p]};let D=S(...L,ee);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=W+1:(E!==W&&R.push({type:"text",value:p.value.slice(E,W)}),Array.isArray(D)?R.push(...D):D&&R.push(D),E=W+L[0].length,N=!0),!v.global)break;L=v.exec(p.value)}return N?(E<p.value.length&&R.push({type:"text",value:p.value.slice(E)}),g.children.splice(j,1,...R)):R=[p],j+R.length}}function kN(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<i.length;){const o=i[a];l.push([wN(o[0]),EN(o[1])])}return l}function wN(t){return typeof t=="string"?new RegExp(vN(t),"g"):t}function EN(t){return typeof t=="function"?t:function(){return t}}const Tf="phrasing",Af=["autolink","link","image","label"];function CN(){return{transforms:[_N],enter:{literalAutolink:AN,literalAutolinkEmail:Nf,literalAutolinkHttp:Nf,literalAutolinkWww:Nf},exit:{literalAutolink:MN,literalAutolinkEmail:zN,literalAutolinkHttp:NN,literalAutolinkWww:jN}}}function TN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Tf,notInConstruct:Af},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Tf,notInConstruct:Af},{character:":",before:"[ps]",after:"\\/",inConstruct:Tf,notInConstruct:Af}]}}function AN(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Nf(t){this.config.enter.autolinkProtocol.call(this,t)}function NN(t){this.config.exit.autolinkProtocol.call(this,t)}function jN(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function zN(t){this.config.exit.autolinkEmail.call(this,t)}function MN(t){this.exit(t)}function _N(t){SN(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,DN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ON]],{ignore:["link","linkReference"]})}function DN(t,l,i,a,o){let c="";if(!C0(o)||(/^w/i.test(l)&&(i=l+i,l="",c="http://"),!RN(i)))return!1;const s=LN(i+a);if(!s[0])return!1;const d={type:"link",title:null,url:c+l+s[0],children:[{type:"text",value:l+s[0]}]};return s[1]?[d,{type:"text",value:s[1]}]:d}function ON(t,l,i,a){return!C0(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+i,children:[{type:"text",value:l+"@"+i}]}}function RN(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function LN(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let i=l[0],a=i.indexOf(")");const o=tb(t,"(");let c=tb(t,")");for(;a!==-1&&o>c;)t+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),c++;return[t,i]}function C0(t,l){const i=t.input.charCodeAt(t.index-1);return(t.index===0||ar(i)||Ao(i))&&(!l||i!==47)}T0.peek=FN;function UN(){this.buffer()}function BN(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function HN(){this.buffer()}function qN(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function IN(t){const l=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Sn(this.sliceSerialize(t)).toLowerCase(),i.label=l}function VN(t){this.exit(t)}function YN(t){const l=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Sn(this.sliceSerialize(t)).toLowerCase(),i.label=l}function GN(t){this.exit(t)}function FN(){return"["}function T0(t,l,i,a){const o=i.createTracker(a);let c=o.move("[^");const s=i.enter("footnoteReference"),d=i.enter("reference");return c+=o.move(i.safe(i.associationId(t),{after:"]",before:c})),d(),s(),c+=o.move("]"),c}function XN(){return{enter:{gfmFootnoteCallString:UN,gfmFootnoteCall:BN,gfmFootnoteDefinitionLabelString:HN,gfmFootnoteDefinition:qN},exit:{gfmFootnoteCallString:IN,gfmFootnoteCall:VN,gfmFootnoteDefinitionLabelString:YN,gfmFootnoteDefinition:GN}}}function QN(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:i,footnoteReference:T0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,o,c,s){const d=c.createTracker(s);let m=d.move("[^");const p=c.enter("footnoteDefinition"),y=c.enter("label");return m+=d.move(c.safe(c.associationId(a),{before:m,after:"]"})),y(),m+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),m+=d.move((l?`
359
- `:" ")+c.indentLines(c.containerFlow(a,d.current()),l?A0:ZN))),p(),m}}function ZN(t,l,i){return l===0?t:A0(t,l,i)}function A0(t,l,i){return(i?"":" ")+t}const KN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];N0.peek=ej;function PN(){return{canContainEols:["delete"],enter:{strikethrough:JN},exit:{strikethrough:WN}}}function $N(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:KN}],handlers:{delete:N0}}}function JN(t){this.enter({type:"delete",children:[]},t)}function WN(t){this.exit(t)}function N0(t,l,i,a){const o=i.createTracker(a),c=i.enter("strikethrough");let s=o.move("~~");return s+=i.containerPhrasing(t,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),c(),s}function ej(){return"~"}function tj(t){return t.length}function nj(t,l){const i=l||{},a=(i.align||[]).concat(),o=i.stringLength||tj,c=[],s=[],d=[],m=[];let p=0,y=-1;for(;++y<t.length;){const A=[],j=[];let N=-1;for(t[y].length>p&&(p=t[y].length);++N<t[y].length;){const R=lj(t[y][N]);if(i.alignDelimiters!==!1){const L=o(R);j[N]=L,(m[N]===void 0||L>m[N])&&(m[N]=L)}A.push(R)}s[y]=A,d[y]=j}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)c[g]=nb(a[g]);else{const A=nb(a);for(;++g<p;)c[g]=A}g=-1;const v=[],S=[];for(;++g<p;){const A=c[g];let j="",N="";A===99?(j=":",N=":"):A===108?j=":":A===114&&(N=":");let R=i.alignDelimiters===!1?1:Math.max(1,m[g]-j.length-N.length);const L=j+"-".repeat(R)+N;i.alignDelimiters!==!1&&(R=j.length+R+N.length,R>m[g]&&(m[g]=R),S[g]=R),v[g]=L}s.splice(1,0,v),d.splice(1,0,S),y=-1;const E=[];for(;++y<s.length;){const A=s[y],j=d[y];g=-1;const N=[];for(;++g<p;){const R=A[g]||"";let L="",W="";if(i.alignDelimiters!==!1){const ee=m[g]-(j[g]||0),D=c[g];D===114?L=" ".repeat(ee):D===99?ee%2?(L=" ".repeat(ee/2+.5),W=" ".repeat(ee/2-.5)):(L=" ".repeat(ee/2),W=L):W=" ".repeat(ee)}i.delimiterStart!==!1&&!g&&N.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&R==="")&&(i.delimiterStart!==!1||g)&&N.push(" "),i.alignDelimiters!==!1&&N.push(L),N.push(R),i.alignDelimiters!==!1&&N.push(W),i.padding!==!1&&N.push(" "),(i.delimiterEnd!==!1||g!==p-1)&&N.push("|")}E.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return E.join(`
360
- `)}function lj(t){return t==null?"":String(t)}function nb(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function rj(t,l,i,a){const o=i.enter("blockquote"),c=i.createTracker(a);c.move("> "),c.shift(2);const s=i.indentLines(i.containerFlow(t,c.current()),ij);return o(),s}function ij(t,l,i){return">"+(i?"":" ")+t}function aj(t,l){return lb(t,l.inConstruct,!0)&&!lb(t,l.notInConstruct,!1)}function lb(t,l,i){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return i;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function rb(t,l,i,a){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
361
- `&&aj(i.stack,i.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
362
- `}function uj(t,l){const i=String(t);let a=i.indexOf(l),o=a,c=0,s=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++c>s&&(s=c):c=1,o=a+l.length,a=i.indexOf(l,o);return s}function oj(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function sj(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function cj(t,l,i,a){const o=sj(i),c=t.value||"",s=o==="`"?"GraveAccent":"Tilde";if(oj(t,i)){const g=i.enter("codeIndented"),v=i.indentLines(c,fj);return g(),v}const d=i.createTracker(a),m=o.repeat(Math.max(uj(c,o)+1,3)),p=i.enter("codeFenced");let y=d.move(m);if(t.lang){const g=i.enter(`codeFencedLang${s}`);y+=d.move(i.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=i.enter(`codeFencedMeta${s}`);y+=d.move(" "),y+=d.move(i.safe(t.meta,{before:y,after:`
358
+ `}),i}function Qy(t){let l=0,i=t.charCodeAt(l);for(;i===9||i===32;)l++,i=t.charCodeAt(l);return t.slice(l)}function Zy(t,l){const i=tN(t,l),a=i.one(t,void 0),o=FA(i),c=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
359
+ `},o),c}function aN(t,l){return t&&"run"in t?async function(i,a){const o=Zy(i,{file:a,...l});await t.run(o,a)}:function(i,a){return Zy(i,{file:a,...t||l})}}function Ky(t){if(t)throw t}var xf,Py;function uN(){if(Py)return xf;Py=1;var t=Object.prototype.hasOwnProperty,l=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):l.call(p)==="[object Array]"},c=function(p){if(!p||l.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},s=function(p,y){i&&y.name==="__proto__"?i(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},d=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return xf=function m(){var p,y,g,v,S,E,A=arguments[0],j=1,N=arguments.length,L=!1;for(typeof A=="boolean"&&(L=A,A=arguments[1]||{},j=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});j<N;++j)if(p=arguments[j],p!=null)for(y in p)g=d(A,y),v=d(p,y),A!==v&&(L&&v&&(c(v)||(S=o(v)))?(S?(S=!1,E=g&&o(g)?g:[]):E=g&&c(g)?g:{},s(A,{name:y,newValue:m(L,E,v)})):typeof v<"u"&&s(A,{name:y,newValue:v}));return A},xf}var oN=uN();const bf=sd(oN);function id(t){if(typeof t!="object"||t===null)return!1;const l=Object.getPrototypeOf(t);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function sN(){const t=[],l={run:i,use:a};return l;function i(...o){let c=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);d(null,...o);function d(m,...p){const y=t[++c];let g=-1;if(m){s(m);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?cN(y,d)(...p):s(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),l}}function cN(t,l){let i;return a;function a(...s){const d=t.length>s.length;let m;d&&s.push(o);try{m=t.apply(this,s)}catch(p){const y=p;if(d&&i)throw y;return o(y)}d||(m&&m.then&&typeof m.then=="function"?m.then(c,o):m instanceof Error?o(m):c(m))}function o(s,...d){i||(i=!0,l(s,...d))}function c(s){o(null,s)}}const zn={basename:fN,dirname:dN,extname:hN,join:mN,sep:"/"};function fN(t,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');_a(t);let i=0,a=-1,o=t.length,c;if(l===void 0||l.length===0||l.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(c){i=o+1;break}}else a<0&&(c=!0,a=o+1);return a<0?"":t.slice(i,a)}if(l===t)return"";let s=-1,d=l.length-1;for(;o--;)if(t.codePointAt(o)===47){if(c){i=o+1;break}}else s<0&&(c=!0,s=o+1),d>-1&&(t.codePointAt(o)===l.codePointAt(d--)?d<0&&(a=o):(d=-1,a=s));return i===a?a=s:a<0&&(a=t.length),t.slice(i,a)}function dN(t){if(_a(t),t.length===0)return".";let l=-1,i=t.length,a;for(;--i;)if(t.codePointAt(i)===47){if(a){l=i;break}}else a||(a=!0);return l<0?t.codePointAt(0)===47?"/":".":l===1&&t.codePointAt(0)===47?"//":t.slice(0,l)}function hN(t){_a(t);let l=t.length,i=-1,a=0,o=-1,c=0,s;for(;l--;){const d=t.codePointAt(l);if(d===47){if(s){a=l+1;break}continue}i<0&&(s=!0,i=l+1),d===46?o<0?o=l:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||i<0||c===0||c===1&&o===i-1&&o===a+1?"":t.slice(o,i)}function mN(...t){let l=-1,i;for(;++l<t.length;)_a(t[l]),t[l]&&(i=i===void 0?t[l]:i+"/"+t[l]);return i===void 0?".":pN(i)}function pN(t){_a(t);const l=t.codePointAt(0)===47;let i=gN(t,!l);return i.length===0&&!l&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),l?"/"+i:i}function gN(t,l){let i="",a=0,o=-1,c=0,s=-1,d,m;for(;++s<=t.length;){if(s<t.length)d=t.codePointAt(s);else{if(d===47)break;d=47}if(d===47){if(!(o===s-1||c===1))if(o!==s-1&&c===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(m=i.lastIndexOf("/"),m!==i.length-1){m<0?(i="",a=0):(i=i.slice(0,m),a=i.length-1-i.lastIndexOf("/")),o=s,c=0;continue}}else if(i.length>0){i="",a=0,o=s,c=0;continue}}l&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+t.slice(o+1,s):i=t.slice(o+1,s),a=s-o-1;o=s,c=0}else d===46&&c>-1?c++:c=-1}return i}function _a(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const yN={cwd:xN};function xN(){return"/"}function ad(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function bN(t){if(typeof t=="string")t=new URL(t);else if(!ad(t)){const l=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw l.code="ERR_INVALID_ARG_TYPE",l}if(t.protocol!=="file:"){const l=new TypeError("The URL must be of scheme file");throw l.code="ERR_INVALID_URL_SCHEME",l}return vN(t)}function vN(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const l=t.pathname;let i=-1;for(;++i<l.length;)if(l.codePointAt(i)===37&&l.codePointAt(i+1)===50){const a=l.codePointAt(i+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(l)}const vf=["history","path","basename","stem","extname","dirname"];class j0{constructor(l){let i;l?ad(l)?i={path:l}:typeof l=="string"||SN(l)?i={value:l}:i=l:i={},this.cwd="cwd"in i?"":yN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<vf.length;){const c=vf[a];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let o;for(o in i)vf.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?zn.basename(this.path):void 0}set basename(l){kf(l,"basename"),Sf(l,"basename"),this.path=zn.join(this.dirname||"",l)}get dirname(){return typeof this.path=="string"?zn.dirname(this.path):void 0}set dirname(l){$y(this.basename,"dirname"),this.path=zn.join(l||"",this.basename)}get extname(){return typeof this.path=="string"?zn.extname(this.path):void 0}set extname(l){if(Sf(l,"extname"),$y(this.dirname,"extname"),l){if(l.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(l.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=zn.join(this.dirname,this.stem+(l||""))}get path(){return this.history[this.history.length-1]}set path(l){ad(l)&&(l=bN(l)),kf(l,"path"),this.path!==l&&this.history.push(l)}get stem(){return typeof this.path=="string"?zn.basename(this.path,this.extname):void 0}set stem(l){kf(l,"stem"),Sf(l,"stem"),this.path=zn.join(this.dirname||"",l+(this.extname||""))}fail(l,i,a){const o=this.message(l,i,a);throw o.fatal=!0,o}info(l,i,a){const o=this.message(l,i,a);return o.fatal=void 0,o}message(l,i,a){const o=new Tt(l,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(l){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(l||void 0).decode(this.value)}}function Sf(t,l){if(t&&t.includes(zn.sep))throw new Error("`"+l+"` cannot be a path: did not expect `"+zn.sep+"`")}function kf(t,l){if(!t)throw new Error("`"+l+"` cannot be empty")}function $y(t,l){if(!t)throw new Error("Setting `"+l+"` requires `path` to be set too")}function SN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const kN=(function(t){const a=this.constructor.prototype,o=a[t],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,a),c}),wN={}.hasOwnProperty;class Id extends kN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=sN()}copy(){const l=new Id;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];l.use(...a)}return l.data(bf(!0,{},this.namespace)),l}data(l,i){return typeof l=="string"?arguments.length===2?(Cf("data",this.frozen),this.namespace[l]=i,this):wN.call(this.namespace,l)&&this.namespace[l]||void 0:l?(Cf("data",this.frozen),this.namespace=l,this):this.namespace}freeze(){if(this.frozen)return this;const l=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(l,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(l){this.freeze();const i=so(l),a=this.parser||this.Parser;return wf("parse",a),a(String(i),i)}process(l,i){const a=this;return this.freeze(),wf("process",this.parser||this.Parser),Ef("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(c,s){const d=so(l),m=a.parse(d);a.run(m,d,function(y,g,v){if(y||!g||!v)return p(y);const S=g,E=a.stringify(S,v);TN(E)?v.value=E:v.result=E,p(y,v)});function p(y,g){y||!g?s(y):c?c(g):i(void 0,g)}}}processSync(l){let i=!1,a;return this.freeze(),wf("processSync",this.parser||this.Parser),Ef("processSync",this.compiler||this.Compiler),this.process(l,o),Wy("processSync","process",i),a;function o(c,s){i=!0,Ky(c),a=s}}run(l,i,a){Jy(l),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?c(void 0,a):new Promise(c);function c(s,d){const m=so(i);o.run(l,m,p);function p(y,g,v){const S=g||l;y?d(y):s?s(S):a(void 0,S,v)}}}runSync(l,i){let a=!1,o;return this.run(l,i,c),Wy("runSync","run",a),o;function c(s,d){Ky(s),o=d,a=!0}}stringify(l,i){this.freeze();const a=so(i),o=this.compiler||this.Compiler;return Ef("stringify",o),Jy(l),o(l,a)}use(l,...i){const a=this.attachers,o=this.namespace;if(Cf("use",this.frozen),l!=null)if(typeof l=="function")m(l,i);else if(typeof l=="object")Array.isArray(l)?d(l):s(l);else throw new TypeError("Expected usable value, not `"+l+"`");return this;function c(p){if(typeof p=="function")m(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;m(y,g)}else s(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function s(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(o.settings=bf(!0,o.settings,p.settings))}function d(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[S,...E]=y;const A=a[v][1];id(A)&&id(S)&&(S=bf(!0,A,S)),a[v]=[p,S,...E]}}}}const EN=new Id().freeze();function wf(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Ef(t,l){if(typeof l!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function Cf(t,l){if(l)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jy(t){if(!id(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Wy(t,l,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function so(t){return CN(t)?t:new j0(t)}function CN(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function TN(t){return typeof t=="string"||AN(t)}function AN(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const NN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ex=[],tx={allowDangerousHtml:!0},jN=/^(https?|ircs?|mailto|xmpp)$/i,zN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function MN(t){const l=_N(t),i=DN(t);return ON(l.runSync(l.parse(i),i),t)}function _N(t){const l=t.rehypePlugins||ex,i=t.remarkPlugins||ex,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...tx}:tx;return EN().use(cA).use(i).use(aN,a).use(l)}function DN(t){const l=t.children||"",i=new j0;return typeof l=="string"&&(i.value=l),i}function ON(t,l){const i=l.allowedElements,a=l.allowElement,o=l.components,c=l.disallowedElements,s=l.skipHtml,d=l.unwrapDisallowed,m=l.urlTransform||RN;for(const y of zN)Object.hasOwn(l,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+NN+y.id,void 0);return qd(t,p),QC(t,{Fragment:x.Fragment,components:o,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return s?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let S;for(S in pf)if(Object.hasOwn(pf,S)&&Object.hasOwn(y.properties,S)){const E=y.properties[S],A=pf[S];(A===null||A.includes(y.tagName))&&(y.properties[S]=m(String(E||""),S,y))}}if(y.type==="element"){let S=i?!i.includes(y.tagName):c?c.includes(y.tagName):!1;if(!S&&a&&typeof g=="number"&&(S=!a(y,g,v)),S&&v&&typeof g=="number")return d&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function RN(t){const l=t.indexOf(":"),i=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return l===-1||o!==-1&&l>o||i!==-1&&l>i||a!==-1&&l>a||jN.test(t.slice(0,l))?t:""}function nx(t,l){const i=String(t);if(typeof l!="string")throw new TypeError("Expected character");let a=0,o=i.indexOf(l);for(;o!==-1;)a++,o=i.indexOf(l,o+l.length);return a}function LN(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function UN(t,l,i){const o=zo((i||{}).ignore||[]),c=BN(l);let s=-1;for(;++s<c.length;)N0(t,"text",d);function d(p,y){let g=-1,v;for(;++g<y.length;){const S=y[g],E=v?v.children:void 0;if(o(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return m(p,y)}function m(p,y){const g=y[y.length-1],v=c[s][0],S=c[s][1];let E=0;const j=g.children.indexOf(p);let N=!1,L=[];v.lastIndex=0;let R=v.exec(p.value);for(;R;){const K=R.index,ee={index:R.index,input:R.input,stack:[...y,p]};let D=S(...R,ee);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?v.lastIndex=K+1:(E!==K&&L.push({type:"text",value:p.value.slice(E,K)}),Array.isArray(D)?L.push(...D):D&&L.push(D),E=K+R[0].length,N=!0),!v.global)break;R=v.exec(p.value)}return N?(E<p.value.length&&L.push({type:"text",value:p.value.slice(E)}),g.children.splice(j,1,...L)):L=[p],j+L.length}}function BN(t){const l=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<i.length;){const o=i[a];l.push([HN(o[0]),qN(o[1])])}return l}function HN(t){return typeof t=="string"?new RegExp(LN(t),"g"):t}function qN(t){return typeof t=="function"?t:function(){return t}}const Tf="phrasing",Af=["autolink","link","image","label"];function IN(){return{transforms:[ZN],enter:{literalAutolink:YN,literalAutolinkEmail:Nf,literalAutolinkHttp:Nf,literalAutolinkWww:Nf},exit:{literalAutolink:QN,literalAutolinkEmail:XN,literalAutolinkHttp:GN,literalAutolinkWww:FN}}}function VN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Tf,notInConstruct:Af},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Tf,notInConstruct:Af},{character:":",before:"[ps]",after:"\\/",inConstruct:Tf,notInConstruct:Af}]}}function YN(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function Nf(t){this.config.enter.autolinkProtocol.call(this,t)}function GN(t){this.config.exit.autolinkProtocol.call(this,t)}function FN(t){this.config.exit.data.call(this,t);const l=this.stack[this.stack.length-1];l.type,l.url="http://"+this.sliceSerialize(t)}function XN(t){this.config.exit.autolinkEmail.call(this,t)}function QN(t){this.exit(t)}function ZN(t){UN(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,KN],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),PN]],{ignore:["link","linkReference"]})}function KN(t,l,i,a,o){let c="";if(!z0(o)||(/^w/i.test(l)&&(i=l+i,l="",c="http://"),!$N(i)))return!1;const s=JN(i+a);if(!s[0])return!1;const d={type:"link",title:null,url:c+l+s[0],children:[{type:"text",value:l+s[0]}]};return s[1]?[d,{type:"text",value:s[1]}]:d}function PN(t,l,i,a){return!z0(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+l+"@"+i,children:[{type:"text",value:l+"@"+i}]}}function $N(t){const l=t.split(".");return!(l.length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))}function JN(t){const l=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!l)return[t,void 0];t=t.slice(0,l.index);let i=l[0],a=i.indexOf(")");const o=nx(t,"(");let c=nx(t,")");for(;a!==-1&&o>c;)t+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),c++;return[t,i]}function z0(t,l){const i=t.input.charCodeAt(t.index-1);return(t.index===0||ar(i)||Ao(i))&&(!l||i!==47)}M0.peek=uj;function WN(){this.buffer()}function ej(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function tj(){this.buffer()}function nj(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function lj(t){const l=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Sn(this.sliceSerialize(t)).toLowerCase(),i.label=l}function rj(t){this.exit(t)}function ij(t){const l=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=Sn(this.sliceSerialize(t)).toLowerCase(),i.label=l}function aj(t){this.exit(t)}function uj(){return"["}function M0(t,l,i,a){const o=i.createTracker(a);let c=o.move("[^");const s=i.enter("footnoteReference"),d=i.enter("reference");return c+=o.move(i.safe(i.associationId(t),{after:"]",before:c})),d(),s(),c+=o.move("]"),c}function oj(){return{enter:{gfmFootnoteCallString:WN,gfmFootnoteCall:ej,gfmFootnoteDefinitionLabelString:tj,gfmFootnoteDefinition:nj},exit:{gfmFootnoteCallString:lj,gfmFootnoteCall:rj,gfmFootnoteDefinitionLabelString:ij,gfmFootnoteDefinition:aj}}}function sj(t){let l=!1;return t&&t.firstLineBlank&&(l=!0),{handlers:{footnoteDefinition:i,footnoteReference:M0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,o,c,s){const d=c.createTracker(s);let m=d.move("[^");const p=c.enter("footnoteDefinition"),y=c.enter("label");return m+=d.move(c.safe(c.associationId(a),{before:m,after:"]"})),y(),m+=d.move("]:"),a.children&&a.children.length>0&&(d.shift(4),m+=d.move((l?`
360
+ `:" ")+c.indentLines(c.containerFlow(a,d.current()),l?_0:cj))),p(),m}}function cj(t,l,i){return l===0?t:_0(t,l,i)}function _0(t,l,i){return(i?"":" ")+t}const fj=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];D0.peek=gj;function dj(){return{canContainEols:["delete"],enter:{strikethrough:mj},exit:{strikethrough:pj}}}function hj(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:fj}],handlers:{delete:D0}}}function mj(t){this.enter({type:"delete",children:[]},t)}function pj(t){this.exit(t)}function D0(t,l,i,a){const o=i.createTracker(a),c=i.enter("strikethrough");let s=o.move("~~");return s+=i.containerPhrasing(t,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),c(),s}function gj(){return"~"}function yj(t){return t.length}function xj(t,l){const i=l||{},a=(i.align||[]).concat(),o=i.stringLength||yj,c=[],s=[],d=[],m=[];let p=0,y=-1;for(;++y<t.length;){const A=[],j=[];let N=-1;for(t[y].length>p&&(p=t[y].length);++N<t[y].length;){const L=bj(t[y][N]);if(i.alignDelimiters!==!1){const R=o(L);j[N]=R,(m[N]===void 0||R>m[N])&&(m[N]=R)}A.push(L)}s[y]=A,d[y]=j}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)c[g]=lx(a[g]);else{const A=lx(a);for(;++g<p;)c[g]=A}g=-1;const v=[],S=[];for(;++g<p;){const A=c[g];let j="",N="";A===99?(j=":",N=":"):A===108?j=":":A===114&&(N=":");let L=i.alignDelimiters===!1?1:Math.max(1,m[g]-j.length-N.length);const R=j+"-".repeat(L)+N;i.alignDelimiters!==!1&&(L=j.length+L+N.length,L>m[g]&&(m[g]=L),S[g]=L),v[g]=R}s.splice(1,0,v),d.splice(1,0,S),y=-1;const E=[];for(;++y<s.length;){const A=s[y],j=d[y];g=-1;const N=[];for(;++g<p;){const L=A[g]||"";let R="",K="";if(i.alignDelimiters!==!1){const ee=m[g]-(j[g]||0),D=c[g];D===114?R=" ".repeat(ee):D===99?ee%2?(R=" ".repeat(ee/2+.5),K=" ".repeat(ee/2-.5)):(R=" ".repeat(ee/2),K=R):K=" ".repeat(ee)}i.delimiterStart!==!1&&!g&&N.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&L==="")&&(i.delimiterStart!==!1||g)&&N.push(" "),i.alignDelimiters!==!1&&N.push(R),N.push(L),i.alignDelimiters!==!1&&N.push(K),i.padding!==!1&&N.push(" "),(i.delimiterEnd!==!1||g!==p-1)&&N.push("|")}E.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return E.join(`
361
+ `)}function bj(t){return t==null?"":String(t)}function lx(t){const l=typeof t=="string"?t.codePointAt(0):0;return l===67||l===99?99:l===76||l===108?108:l===82||l===114?114:0}function vj(t,l,i,a){const o=i.enter("blockquote"),c=i.createTracker(a);c.move("> "),c.shift(2);const s=i.indentLines(i.containerFlow(t,c.current()),Sj);return o(),s}function Sj(t,l,i){return">"+(i?"":" ")+t}function kj(t,l){return rx(t,l.inConstruct,!0)&&!rx(t,l.notInConstruct,!1)}function rx(t,l,i){if(typeof l=="string"&&(l=[l]),!l||l.length===0)return i;let a=-1;for(;++a<l.length;)if(t.includes(l[a]))return!0;return!1}function ix(t,l,i,a){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
362
+ `&&kj(i.stack,i.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
363
+ `}function wj(t,l){const i=String(t);let a=i.indexOf(l),o=a,c=0,s=0;if(typeof l!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++c>s&&(s=c):c=1,o=a+l.length,a=i.indexOf(l,o);return s}function Ej(t,l){return!!(l.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Cj(t){const l=t.options.fence||"`";if(l!=="`"&&l!=="~")throw new Error("Cannot serialize code with `"+l+"` for `options.fence`, expected `` ` `` or `~`");return l}function Tj(t,l,i,a){const o=Cj(i),c=t.value||"",s=o==="`"?"GraveAccent":"Tilde";if(Ej(t,i)){const g=i.enter("codeIndented"),v=i.indentLines(c,Aj);return g(),v}const d=i.createTracker(a),m=o.repeat(Math.max(wj(c,o)+1,3)),p=i.enter("codeFenced");let y=d.move(m);if(t.lang){const g=i.enter(`codeFencedLang${s}`);y+=d.move(i.safe(t.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=i.enter(`codeFencedMeta${s}`);y+=d.move(" "),y+=d.move(i.safe(t.meta,{before:y,after:`
363
364
  `,encode:["`"],...d.current()})),g()}return y+=d.move(`
364
365
  `),c&&(y+=d.move(c+`
365
- `)),y+=d.move(m),p(),y}function fj(t,l,i){return(i?"":" ")+t}function Vd(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function dj(t,l,i,a){const o=Vd(i),c=o==='"'?"Quote":"Apostrophe",s=i.enter("definition");let d=i.enter("label");const m=i.createTracker(a);let p=m.move("[");return p+=m.move(i.safe(i.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=i.enter("destinationRaw"),p+=m.move(i.safe(t.url,{before:p,after:t.title?" ":`
366
- `,...m.current()}))),d(),t.title&&(d=i.enter(`title${c}`),p+=m.move(" "+o),p+=m.move(i.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),s(),p}function hj(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function Ta(t){return"&#x"+t.toString(16).toUpperCase()+";"}function wo(t,l,i){const a=di(t),o=di(l);return a===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}j0.peek=mj;function j0(t,l,i,a){const o=hj(i),c=i.enter("emphasis"),s=i.createTracker(a),d=s.move(o);let m=s.move(i.containerPhrasing(t,{after:o,before:d,...s.current()}));const p=m.charCodeAt(0),y=wo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=Ta(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=wo(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+Ta(g));const S=s.move(o);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+S}function mj(t,l,i){return i.options.emphasis||"*"}function pj(t,l){let i=!1;return qd(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,td}),!!((!t.depth||t.depth<3)&&Dd(t)&&(l.options.setext||i))}function gj(t,l,i,a){const o=Math.max(Math.min(6,t.depth||1),1),c=i.createTracker(a);if(pj(t,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(t,{...c.current(),before:`
366
+ `)),y+=d.move(m),p(),y}function Aj(t,l,i){return(i?"":" ")+t}function Vd(t){const l=t.options.quote||'"';if(l!=='"'&&l!=="'")throw new Error("Cannot serialize title with `"+l+"` for `options.quote`, expected `\"`, or `'`");return l}function Nj(t,l,i,a){const o=Vd(i),c=o==='"'?"Quote":"Apostrophe",s=i.enter("definition");let d=i.enter("label");const m=i.createTracker(a);let p=m.move("[");return p+=m.move(i.safe(i.associationId(t),{before:p,after:"]",...m.current()})),p+=m.move("]: "),d(),!t.url||/[\0- \u007F]/.test(t.url)?(d=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=i.enter("destinationRaw"),p+=m.move(i.safe(t.url,{before:p,after:t.title?" ":`
367
+ `,...m.current()}))),d(),t.title&&(d=i.enter(`title${c}`),p+=m.move(" "+o),p+=m.move(i.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),s(),p}function jj(t){const l=t.options.emphasis||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize emphasis with `"+l+"` for `options.emphasis`, expected `*`, or `_`");return l}function Ta(t){return"&#x"+t.toString(16).toUpperCase()+";"}function wo(t,l,i){const a=di(t),o=di(l);return a===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}O0.peek=zj;function O0(t,l,i,a){const o=jj(i),c=i.enter("emphasis"),s=i.createTracker(a),d=s.move(o);let m=s.move(i.containerPhrasing(t,{after:o,before:d,...s.current()}));const p=m.charCodeAt(0),y=wo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=Ta(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=wo(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+Ta(g));const S=s.move(o);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+S}function zj(t,l,i){return i.options.emphasis||"*"}function Mj(t,l){let i=!1;return qd(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,ld}),!!((!t.depth||t.depth<3)&&Dd(t)&&(l.options.setext||i))}function _j(t,l,i,a){const o=Math.max(Math.min(6,t.depth||1),1),c=i.createTracker(a);if(Mj(t,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(t,{...c.current(),before:`
367
368
  `,after:`
368
369
  `});return g(),y(),v+`
369
370
  `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
370
371
  `))+1))}const s="#".repeat(o),d=i.enter("headingAtx"),m=i.enter("phrasing");c.move(s+" ");let p=i.containerPhrasing(t,{before:"# ",after:`
371
- `,...c.current()});return/^[\t ]/.test(p)&&(p=Ta(p.charCodeAt(0))+p.slice(1)),p=p?s+" "+p:s,i.options.closeAtx&&(p+=" "+s),m(),d(),p}z0.peek=yj;function z0(t){return t.value||""}function yj(){return"<"}M0.peek=bj;function M0(t,l,i,a){const o=Vd(i),c=o==='"'?"Quote":"Apostrophe",s=i.enter("image");let d=i.enter("label");const m=i.createTracker(a);let p=m.move("![");return p+=m.move(i.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=i.enter("destinationRaw"),p+=m.move(i.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),d(),t.title&&(d=i.enter(`title${c}`),p+=m.move(" "+o),p+=m.move(i.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),p+=m.move(")"),s(),p}function bj(){return"!"}_0.peek=xj;function _0(t,l,i,a){const o=t.referenceType,c=i.enter("imageReference");let s=i.enter("label");const d=i.createTracker(a);let m=d.move("![");const p=i.safe(t.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),s();const y=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:m,after:"]",...d.current()});return s(),i.stack=y,c(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function xj(){return"!"}D0.peek=vj;function D0(t,l,i){let a=t.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++c<i.unsafe.length;){const s=i.unsafe[c],d=i.compilePattern(s);let m;if(s.atBreak)for(;m=d.exec(a);){let p=m.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(m.index+1)}}return o+a+o}function vj(){return"`"}function O0(t,l){const i=Dd(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}R0.peek=Sj;function R0(t,l,i,a){const o=Vd(i),c=o==='"'?"Quote":"Apostrophe",s=i.createTracker(a);let d,m;if(O0(t,i)){const y=i.stack;i.stack=[],d=i.enter("autolink");let g=s.move("<");return g+=s.move(i.containerPhrasing(t,{before:g,after:">",...s.current()})),g+=s.move(">"),d(),i.stack=y,g}d=i.enter("link"),m=i.enter("label");let p=s.move("[");return p+=s.move(i.containerPhrasing(t,{before:p,after:"](",...s.current()})),p+=s.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=i.enter("destinationLiteral"),p+=s.move("<"),p+=s.move(i.safe(t.url,{before:p,after:">",...s.current()})),p+=s.move(">")):(m=i.enter("destinationRaw"),p+=s.move(i.safe(t.url,{before:p,after:t.title?" ":")",...s.current()}))),m(),t.title&&(m=i.enter(`title${c}`),p+=s.move(" "+o),p+=s.move(i.safe(t.title,{before:p,after:o,...s.current()})),p+=s.move(o),m()),p+=s.move(")"),d(),p}function Sj(t,l,i){return O0(t,i)?"<":"["}L0.peek=kj;function L0(t,l,i,a){const o=t.referenceType,c=i.enter("linkReference");let s=i.enter("label");const d=i.createTracker(a);let m=d.move("[");const p=i.containerPhrasing(t,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),s();const y=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:m,after:"]",...d.current()});return s(),i.stack=y,c(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function kj(){return"["}function Yd(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function wj(t){const l=Yd(t),i=t.options.bulletOther;if(!i)return l==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+i+"`) to be different");return i}function Ej(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function U0(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function Cj(t,l,i,a){const o=i.enter("list"),c=i.bulletCurrent;let s=t.ordered?Ej(i):Yd(i);const d=t.ordered?s==="."?")":".":wj(i);let m=l&&i.bulletLastUsed?s===i.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),U0(i)===s&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(s=d),i.bulletCurrent=s;const p=i.containerFlow(t,a);return i.bulletLastUsed=s,i.bulletCurrent=c,o(),p}function Tj(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function Aj(t,l,i,a){const o=Tj(i);let c=i.bulletCurrent||Yd(i);l&&l.type==="list"&&l.ordered&&(c=(typeof l.start=="number"&&l.start>-1?l.start:1)+(i.options.incrementListMarker===!1?0:l.children.indexOf(t))+c);let s=c.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(s=Math.ceil(s/4)*4);const d=i.createTracker(a);d.move(c+" ".repeat(s-c.length)),d.shift(s);const m=i.enter("listItem"),p=i.indentLines(i.containerFlow(t,d.current()),y);return m(),p;function y(g,v,S){return v?(S?"":" ".repeat(s))+g:(S?c:c+" ".repeat(s-c.length))+g}}function Nj(t,l,i,a){const o=i.enter("paragraph"),c=i.enter("phrasing"),s=i.containerPhrasing(t,a);return c(),o(),s}const jj=zo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zj(t,l,i,a){return(t.children.some(function(s){return jj(s)})?i.containerPhrasing:i.containerFlow).call(i,t,a)}function Mj(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}B0.peek=_j;function B0(t,l,i,a){const o=Mj(i),c=i.enter("strong"),s=i.createTracker(a),d=s.move(o+o);let m=s.move(i.containerPhrasing(t,{after:o,before:d,...s.current()}));const p=m.charCodeAt(0),y=wo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=Ta(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=wo(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+Ta(g));const S=s.move(o+o);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+S}function _j(t,l,i){return i.options.strong||"*"}function Dj(t,l,i,a){return i.safe(t.value,a)}function Oj(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function Rj(t,l,i){const a=(U0(i)+(i.options.ruleSpaces?" ":"")).repeat(Oj(i));return i.options.ruleSpaces?a.slice(0,-1):a}const H0={blockquote:rj,break:rb,code:cj,definition:dj,emphasis:j0,hardBreak:rb,heading:gj,html:z0,image:M0,imageReference:_0,inlineCode:D0,link:R0,linkReference:L0,list:Cj,listItem:Aj,paragraph:Nj,root:zj,strong:B0,text:Dj,thematicBreak:Rj};function Lj(){return{enter:{table:Uj,tableData:ib,tableHeader:ib,tableRow:Hj},exit:{codeText:qj,table:Bj,tableData:jf,tableHeader:jf,tableRow:jf}}}function Uj(t){const l=t._align;this.enter({type:"table",align:l.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function Bj(t){this.exit(t),this.data.inTable=void 0}function Hj(t){this.enter({type:"tableRow",children:[]},t)}function jf(t){this.exit(t)}function ib(t){this.enter({type:"tableCell",children:[]},t)}function qj(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,Ij));const i=this.stack[this.stack.length-1];i.type,i.value=l,this.exit(t)}function Ij(t,l){return l==="|"?l:t}function Vj(t){const l=t||{},i=l.tableCellPadding,a=l.tablePipeAlign,o=l.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
372
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:s,tableCell:m,tableRow:d}};function s(S,E,A,j){return p(y(S,A,j),S.align)}function d(S,E,A,j){const N=g(S,A,j),R=p([N]);return R.slice(0,R.indexOf(`
373
- `))}function m(S,E,A,j){const N=A.enter("tableCell"),R=A.enter("phrasing"),L=A.containerPhrasing(S,{...j,before:c,after:c});return R(),N(),L}function p(S,E){return nj(S,{align:E,alignDelimiters:a,padding:i,stringLength:o})}function y(S,E,A){const j=S.children;let N=-1;const R=[],L=E.enter("table");for(;++N<j.length;)R[N]=g(j[N],E,A);return L(),R}function g(S,E,A){const j=S.children;let N=-1;const R=[],L=E.enter("tableRow");for(;++N<j.length;)R[N]=m(j[N],S,E,A);return L(),R}function v(S,E,A){let j=H0.inlineCode(S,E,A);return A.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function Yj(){return{exit:{taskListCheckValueChecked:ab,taskListCheckValueUnchecked:ab,paragraph:Fj}}}function Gj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xj}}}function ab(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function Fj(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const a=i.children[0];if(a&&a.type==="text"){const o=l.children;let c=-1,s;for(;++c<o.length;){const d=o[c];if(d.type==="paragraph"){s=d;break}}s===i&&(a.value=a.value.slice(1),a.value.length===0?i.children.shift():i.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,i.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function Xj(t,l,i,a){const o=t.children[0],c=typeof t.checked=="boolean"&&o&&o.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",d=i.createTracker(a);c&&d.move(s);let m=H0.listItem(t,l,i,{...a,...d.current()});return c&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+s}}function Qj(){return[CN(),XN(),PN(),Lj(),Yj()]}function Zj(t){return{extensions:[TN(),QN(t),$N(),Vj(t),Gj()]}}const Kj={tokenize:t4,partial:!0},q0={tokenize:n4,partial:!0},I0={tokenize:l4,partial:!0},V0={tokenize:r4,partial:!0},Pj={tokenize:i4,partial:!0},Y0={name:"wwwAutolink",tokenize:Wj,previous:F0},G0={name:"protocolAutolink",tokenize:e4,previous:X0},ll={name:"emailAutolink",tokenize:Jj,previous:Q0},Dn={};function $j(){return{text:Dn}}let er=48;for(;er<123;)Dn[er]=ll,er++,er===58?er=65:er===91&&(er=97);Dn[43]=ll;Dn[45]=ll;Dn[46]=ll;Dn[95]=ll;Dn[72]=[ll,G0];Dn[104]=[ll,G0];Dn[87]=[ll,Y0];Dn[119]=[ll,Y0];function Jj(t,l,i){const a=this;let o,c;return s;function s(g){return!id(g)||!Q0.call(a,a.previous)||Gd(a.events)?i(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return id(g)?(t.consume(g),d):g===64?(t.consume(g),m):i(g)}function m(g){return g===46?t.check(Pj,y,p)(g):g===45||g===95||Ct(g)?(c=!0,t.consume(g),m):y(g)}function p(g){return t.consume(g),o=!0,m}function y(g){return c&&o&&zt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):i(g)}}function Wj(t,l,i){const a=this;return o;function o(s){return s!==87&&s!==119||!F0.call(a,a.previous)||Gd(a.events)?i(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Kj,t.attempt(q0,t.attempt(I0,c),i),i)(s))}function c(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(s)}}function e4(t,l,i){const a=this;let o="",c=!1;return s;function s(g){return(g===72||g===104)&&X0.call(a,a.previous)&&!Gd(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):i(g)}function d(g){if(zt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),m}return i(g)}function m(g){return g===47?(t.consume(g),c?p:(c=!0,m)):i(g)}function p(g){return g===null||vo(g)||$e(g)||ar(g)||Ao(g)?i(g):t.attempt(q0,t.attempt(I0,y),i)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function t4(t,l,i){let a=0;return o;function o(s){return(s===87||s===119)&&a<3?(a++,t.consume(s),o):s===46&&a===3?(t.consume(s),c):i(s)}function c(s){return s===null?i(s):l(s)}}function n4(t,l,i){let a,o,c;return s;function s(p){return p===46||p===95?t.check(V0,m,d)(p):p===null||$e(p)||ar(p)||p!==45&&Ao(p)?m(p):(c=!0,t.consume(p),s)}function d(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),s}function m(p){return o||a||!c?i(p):l(p)}}function l4(t,l){let i=0,a=0;return o;function o(s){return s===40?(i++,t.consume(s),o):s===41&&a<i?c(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(V0,l,c)(s):s===null||$e(s)||ar(s)?l(s):(t.consume(s),o)}function c(s){return s===41&&a++,t.consume(s),o}}function r4(t,l,i){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),c):d===93?(t.consume(d),o):d===60||d===null||$e(d)||ar(d)?l(d):i(d)}function o(d){return d===null||d===40||d===91||$e(d)||ar(d)?l(d):a(d)}function c(d){return zt(d)?s(d):i(d)}function s(d){return d===59?(t.consume(d),a):zt(d)?(t.consume(d),s):i(d)}}function i4(t,l,i){return a;function a(c){return t.consume(c),o}function o(c){return Ct(c)?i(c):l(c)}}function F0(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||$e(t)}function X0(t){return!zt(t)}function Q0(t){return!(t===47||id(t))}function id(t){return t===43||t===45||t===46||t===95||Ct(t)}function Gd(t){let l=t.length,i=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const a4={tokenize:m4,partial:!0};function u4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:f4,continuation:{tokenize:d4},exit:h4}},text:{91:{name:"gfmFootnoteCall",tokenize:c4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:o4,resolveTo:s4}}}}function o4(t,l,i){const a=this;let o=a.events.length;const c=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){s=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!s||!s._balanced)return i(m);const p=Sn(a.sliceSerialize({start:s.end,end:a.now()}));return p.codePointAt(0)!==94||!c.includes(p.slice(1))?i(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function s4(t,l){let i=t.length;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[t[i+1],t[i+2],["enter",a,l],t[i+3],t[i+4],["enter",o,l],["exit",o,l],["enter",c,l],["enter",s,l],["exit",s,l],["exit",c,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(i,t.length-i+1,...d),t}function c4(t,l,i){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c=0,s;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?i(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(c>999||g===93&&!s||g===null||g===91||$e(g))return i(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(Sn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):i(g)}return $e(g)||(s=!0),c++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),c++,p):p(g)}}function f4(t,l,i){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c,s=0,d;return m;function m(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):i(E)}function y(E){if(s>999||E===93&&!d||E===null||E===91||$e(E))return i(E);if(E===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return c=Sn(a.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return $e(E)||(d=!0),s++,t.consume(E),E===92?g:y}function g(E){return E===91||E===92||E===93?(t.consume(E),s++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),o.includes(c)||o.push(c),Ue(t,S,"gfmFootnoteDefinitionWhitespace")):i(E)}function S(E){return l(E)}}function d4(t,l,i){return t.check(Ma,l,t.attempt(a4,l,i))}function h4(t){t.exit("gfmFootnoteDefinition")}function m4(t,l,i){const a=this;return Ue(t,o,"gfmFootnoteDefinitionIndent",5);function o(c){const s=a.events[a.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?l(c):i(c)}}function p4(t){let i=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:c,resolveAll:o};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(s,d){let m=-1;for(;++m<s.length;)if(s[m][0]==="enter"&&s[m][1].type==="strikethroughSequenceTemporary"&&s[m][1]._close){let p=m;for(;p--;)if(s[p][0]==="exit"&&s[p][1].type==="strikethroughSequenceTemporary"&&s[p][1]._open&&s[m][1].end.offset-s[m][1].start.offset===s[p][1].end.offset-s[p][1].start.offset){s[m][1].type="strikethroughSequence",s[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},s[p][1].start),end:Object.assign({},s[m][1].end)},g={type:"strikethroughText",start:Object.assign({},s[p][1].end),end:Object.assign({},s[m][1].start)},v=[["enter",y,d],["enter",s[p][1],d],["exit",s[p][1],d],["enter",g,d]],S=d.parser.constructs.insideSpan.null;S&&en(v,v.length,0,No(S,s.slice(p+1,m),d)),en(v,v.length,0,[["exit",g,d],["enter",s[m][1],d],["exit",s[m][1],d],["exit",y,d]]),en(s,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<s.length;)s[m][1].type==="strikethroughSequenceTemporary"&&(s[m][1].type="data");return s}function c(s,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(E){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(E):(s.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const A=di(p);if(E===126)return g>1?m(E):(s.consume(E),g++,S);if(g<2&&!i)return m(E);const j=s.exit("strikethroughSequenceTemporary"),N=di(E);return j._open=!N||N===2&&!!A,j._close=!A||A===2&&!!N,d(E)}}}class g4{constructor(){this.map=[]}add(l,i,a){y4(this,l,i,a)}consume(l){if(this.map.sort(function(c,s){return c[0]-s[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(l.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),l.length=this.map[i][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const c of o)l.push(c);o=a.pop()}this.map.length=0}}function y4(t,l,i,a){let o=0;if(!(i===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=i,t.map[o][2].push(...a);return}o+=1}t.map.push([l,i,a])}}function b4(t,l){let i=!1;const a=[];for(;l<t.length;){const o=t[l];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const c=a.length-1;a[c]=a[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);l+=1}return a}function x4(){return{flow:{null:{name:"table",tokenize:v4,resolveAll:S4}}}}function v4(t,l,i){const a=this;let o=0,c=0,s;return d;function d(H){let re=a.events.length-1;for(;re>-1;){const ue=a.events[re][1].type;if(ue==="lineEnding"||ue==="linePrefix")re--;else break}const P=re>-1?a.events[re][1].type:null,be=P==="tableHead"||P==="tableRow"?D:m;return be===D&&a.parser.lazy[a.now().line]?i(H):be(H)}function m(H){return t.enter("tableHead"),t.enter("tableRow"),p(H)}function p(H){return H===124||(s=!0,c+=1),y(H)}function y(H){return H===null?i(H):xe(H)?c>1?(c=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),S):i(H):De(H)?Ue(t,y,"whitespace")(H):(c+=1,s&&(s=!1,o+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),s=!0,y):(t.enter("data"),g(H)))}function g(H){return H===null||H===124||$e(H)?(t.exit("data"),y(H)):(t.consume(H),H===92?v:g)}function v(H){return H===92||H===124?(t.consume(H),g):g(H)}function S(H){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(H):(t.enter("tableDelimiterRow"),s=!1,De(H)?Ue(t,E,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):E(H))}function E(H){return H===45||H===58?j(H):H===124?(s=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),A):ee(H)}function A(H){return De(H)?Ue(t,j,"whitespace")(H):j(H)}function j(H){return H===58?(c+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),N):H===45?(c+=1,N(H)):H===null||xe(H)?W(H):ee(H)}function N(H){return H===45?(t.enter("tableDelimiterFiller"),R(H)):ee(H)}function R(H){return H===45?(t.consume(H),R):H===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),L):(t.exit("tableDelimiterFiller"),L(H))}function L(H){return De(H)?Ue(t,W,"whitespace")(H):W(H)}function W(H){return H===124?E(H):H===null||xe(H)?!s||o!==c?ee(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(H)):ee(H)}function ee(H){return i(H)}function D(H){return t.enter("tableRow"),X(H)}function X(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),X):H===null||xe(H)?(t.exit("tableRow"),l(H)):De(H)?Ue(t,X,"whitespace")(H):(t.enter("data"),V(H))}function V(H){return H===null||H===124||$e(H)?(t.exit("data"),X(H)):(t.consume(H),H===92?ae:V)}function ae(H){return H===92||H===124?(t.consume(H),V):V(H)}}function S4(t,l){let i=-1,a=!0,o=0,c=[0,0,0,0],s=[0,0,0,0],d=!1,m=0,p,y,g;const v=new g4;for(;++i<t.length;){const S=t[i],E=S[1];S[0]==="enter"?E.type==="tableHead"?(d=!1,m!==0&&(ub(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",p,l]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(a=!0,g=void 0,c=[0,0,0,0],s=[0,i+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",y,l]])),o=E.type==="tableDelimiterRow"?2:y?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(a=!1,s[2]===0&&(c[1]!==0&&(s[0]=s[1],g=co(v,l,c,o,void 0,g),c=[0,0,0,0]),s[2]=i)):E.type==="tableCellDivider"&&(a?a=!1:(c[1]!==0&&(s[0]=s[1],g=co(v,l,c,o,void 0,g)),c=s,s=[c[1],i,0,0])):E.type==="tableHead"?(d=!0,m=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(m=i,c[1]!==0?(s[0]=s[1],g=co(v,l,c,o,i,g)):s[1]!==0&&(g=co(v,l,s,o,i,g)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=i)}for(m!==0&&ub(v,l,m,p,y),v.consume(l.events),i=-1;++i<l.events.length;){const S=l.events[i];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=b4(l.events,i))}return t}function co(t,l,i,a,o,c){const s=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},ui(l.events,i[0])),t.add(i[0],0,[["exit",c,l]]));const m=ui(l.events,i[1]);if(c={type:s,start:Object.assign({},m),end:Object.assign({},m)},t.add(i[1],0,[["enter",c,l]]),i[2]!==0){const p=ui(l.events,i[2]),y=ui(l.events,i[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(i[2],0,[["enter",g,l]]),a!==2){const v=l.events[i[2]],S=l.events[i[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,A=i[3]-i[2]-1;t.add(E,A,[])}}t.add(i[3]+1,0,[["exit",g,l]])}return o!==void 0&&(c.end=Object.assign({},ui(l.events,o)),t.add(o,0,[["exit",c,l]]),c=void 0),c}function ub(t,l,i,a,o){const c=[],s=ui(l.events,i);o&&(o.end=Object.assign({},s),c.push(["exit",o,l])),a.end=Object.assign({},s),c.push(["exit",a,l]),t.add(i+1,0,c)}function ui(t,l){const i=t[l],a=i[0]==="enter"?"start":"end";return i[1][a]}const k4={name:"tasklistCheck",tokenize:E4};function w4(){return{text:{91:k4}}}function E4(t,l,i){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),c)}function c(m){return $e(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),s):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),s):i(m)}function s(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):i(m)}function d(m){return xe(m)?l(m):De(m)?t.check({tokenize:C4},l,i)(m):i(m)}}function C4(t,l,i){return Ue(t,a,"whitespace");function a(o){return o===null?i(o):l(o)}}function T4(t){return l0([$j(),u4(),p4(t),x4(),w4()])}const A4={};function N4(t){const l=this,i=t||A4,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),c=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),s=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(T4(i)),c.push(Qj()),s.push(Zj(i))}const j4="modulepreload",z4=function(t){return"/"+t},ob={},Fd=function(l,i,a){let o=Promise.resolve();if(i&&i.length>0){let s=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=s(i.map(p=>{if(p=z4(p),p in ob)return;ob[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":j4,y||(v.as="script"),v.crossOrigin="",v.href=p,m&&v.setAttribute("nonce",m),document.head.appendChild(v),y)return new Promise((S,E)=>{v.addEventListener("load",S),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(s){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=s,window.dispatchEvent(d),!d.defaultPrevented)throw s}return o.then(s=>{for(const d of s||[])d.status==="rejected"&&c(d.reason);return l().catch(c)})};let zf=null;const Mf=new Map;function Z0(){return zf||(zf=Fd(async()=>{const{createHighlighter:t}=await import("./index-DA-_KrIR.js");return{createHighlighter:t}},[]).then(({createHighlighter:t})=>t({themes:["github-dark"],langs:["plaintext"]}))),zf}function M4(t){const l=Mf.get(t);if(l)return l;const i=Fd(()=>import("./index-DA-_KrIR.js"),[]).then(async({bundledLanguages:a,isSpecialLang:o})=>{if(o(t))return;const c=a[t];if(!c)throw new Error(`unknown lang: ${t}`);const s=await Z0();s.getLoadedLanguages().includes(t)||await s.loadLanguage(c)}).catch(a=>{throw Mf.delete(t),a});return Mf.set(t,i),i}function _4({code:t,language:l}){const[i,a]=k.useState(null),[o,c]=k.useState(0),[s,d]=k.useState(!1),m=k.useRef(null);k.useEffect(()=>{let y=!1;async function g(){const v=await Z0();if(y)return;let S="plaintext";if(l){const{isSpecialLang:E}=await Fd(async()=>{const{isSpecialLang:j}=await import("./index-DA-_KrIR.js");return{isSpecialLang:j}},[]),A=v.getLoadedLanguages();E(l)||A.includes(l)?S=l:(M4(l).then(()=>{y||c(j=>j+1)}).catch(()=>{}),S="plaintext")}try{const E=v.codeToHtml(t,{lang:S,theme:"github-dark"});y||a(E)}catch{}}return a(null),g().catch(()=>{}),()=>{y=!0}},[t,l,o]),k.useEffect(()=>()=>{m.current!==null&&clearTimeout(m.current)},[]);const p=k.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{d(!0),m.current!==null&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}).catch(()=>{})},[t]);return b.jsxs("div",{className:"relative group rounded-md bg-secondary overflow-hidden mb-2",children:[l&&b.jsx("div",{className:"text-[10px] text-muted-foreground px-3 pt-1.5 select-none",children:l}),b.jsx("button",{onClick:p,"aria-label":"Copy code",className:"absolute top-1.5 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity rounded p-1 text-muted-foreground hover:text-foreground hover:bg-white/10",children:s?b.jsx(dd,{size:13,strokeWidth:2.5}):b.jsx(bb,{size:13,strokeWidth:2})}),i!==null?b.jsx("div",{className:"overflow-x-auto text-xs leading-5 [&>pre]:p-3 [&>pre]:m-0 [&>pre]:bg-transparent! [&>pre]:font-mono",dangerouslySetInnerHTML:{__html:i}}):b.jsx("pre",{className:"overflow-x-auto p-3 font-mono text-xs leading-5 text-foreground",children:b.jsx("code",{children:t})})]})}const D4={h1:({children:t})=>b.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>b.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>b.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>b.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>b.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>b.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>b.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>b.jsx("blockquote",{className:"mb-2 border-l-2 border-brand/50 pl-3 italic text-muted-foreground",children:t}),a:({href:t,children:l})=>t&&/^(https?:\/\/|\/(?!\/)|#)/i.test(t)?b.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:l}):b.jsx("span",{className:"text-muted-foreground",children:l}),strong:({children:t})=>b.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>b.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>b.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>b.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:b.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>b.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>b.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>b.jsx("td",{className:"border-t border-border px-3 py-1.5",children:t}),code:({children:t,className:l})=>{var a;return((a=/language-(\w+)/.exec(l??""))==null?void 0:a[1])?b.jsx("code",{className:se("text-xs",l),children:t}):b.jsx("code",{className:"rounded bg-secondary px-1 py-0.5 font-mono text-[11px] text-foreground",children:t})},pre:({children:t})=>{var o,c,s;const l=t,i=(c=/language-(\w+)/.exec(((o=l==null?void 0:l.props)==null?void 0:o.className)??""))==null?void 0:c[1],a=String(((s=l==null?void 0:l.props)==null?void 0:s.children)??"").replace(/\n$/,"");return b.jsx(_4,{code:a,language:i})}};function K0({text:t,className:l}){return b.jsx("div",{className:se("text-sm text-foreground",l),children:b.jsx(pN,{remarkPlugins:[N4],components:D4,children:t})})}function O4(){return b.jsx("span",{className:"streaming-cursor","aria-hidden":"true"})}const R4=/^[ \t]*(`{3,}|~{4,})/;function L4(t,l){if(l>=t.length)return l;const i=t.lastIndexOf(`
374
- `,l-1)+1,a=t.slice(i,l);if(R4.test(a)){const o=t.indexOf(`
375
- `,l);return o===-1?t.length:o+1}return l}function U4({text:t,isStreaming:l,speed:i=80,onComplete:a}){const o=k.useRef(0),[c,s]=k.useState(0),d=k.useRef(null),m=k.useRef(null),p=k.useRef(!1),y=k.useRef(a);k.useEffect(()=>{y.current=a},[a]);const g=k.useRef(i);k.useEffect(()=>{g.current=i});const v=!l&&o.current===0&&t.length>0,S=k.useCallback(()=>{if(d.current!==null)return;function N(R){var H;const L=m.current??R,W=R-L;m.current=R;const ee=g.current/1e3,D=Math.max(1,Math.floor(ee*W)),X=o.current,V=t.length;if(X<V){const re=Math.min(X+D,V),P=L4(t,re);o.current=P,s(P)}if(o.current>=t.length&&!l){d.current=null,m.current=null,p.current||(p.current=!0,(H=y.current)==null||H.call(y));return}d.current=requestAnimationFrame(N)}d.current=requestAnimationFrame(N)},[t,l]);k.useEffect(()=>{var N;if(v){o.current=t.length,s(t.length),p.current||(p.current=!0,(N=y.current)==null||N.call(y));return}return(o.current<t.length||l)&&S(),()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},[t,l,v]);const E=v?t.length:c,A=t.slice(0,E),j=E<t.length||l;return b.jsxs("span",{className:"streaming-text-root",children:[b.jsx(K0,{text:A}),j&&b.jsx(O4,{})]})}function P0({kind:t,text:l,className:i}){const[a,o]=k.useState(!1),c=k.useRef(null);k.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);function s(){navigator.clipboard.writeText(l).then(()=>{o(!0),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>o(!1),2e3)}).catch(()=>{})}return b.jsx("div",{className:se("absolute top-1 right-1","opacity-0 group-hover:opacity-100 transition-opacity duration-150",i),children:b.jsx("div",{className:"flex items-center gap-0.5 rounded-md border border-border bg-card px-1 py-0.5 shadow-sm",children:t==="assistant"&&b.jsx(B4,{onClick:s,title:a?"Copied!":"Copy",children:a?b.jsx(dd,{className:"h-3.5 w-3.5 text-status-running"}):b.jsx(bb,{className:"h-3.5 w-3.5"})})})})}function B4({onClick:t,title:l,children:i}){return b.jsx("button",{type:"button",onClick:t,title:l,className:"h-6 w-6 rounded flex items-center justify-center hover:bg-secondary text-muted-foreground hover:text-foreground transition-colors",children:i})}function $0({text:t}){return b.jsxs("div",{className:"group relative flex flex-col items-end gap-1",children:[b.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground/50",children:"You"}),b.jsx("p",{className:"max-w-2xl text-sm leading-relaxed text-foreground whitespace-pre-wrap text-right",children:t}),b.jsx(P0,{kind:"user",text:t})]})}function J0({text:t,isStreaming:l=!1}){return b.jsxs("div",{className:"group relative flex flex-col gap-1",children:[b.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-brand/60",children:"Agent"}),b.jsx("div",{className:"max-w-3xl",children:l?b.jsx(U4,{text:t,isStreaming:!0}):b.jsx(K0,{text:t})}),b.jsx(P0,{kind:"assistant",text:t})]})}function W0({message:t}){return b.jsxs("div",{className:"flex items-start gap-2.5 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3",children:[b.jsx(yb,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),b.jsx("p",{className:"text-sm leading-relaxed text-status-failed",children:t})]})}function ev({text:t}){return b.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",children:[b.jsx(xb,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function tv({item:t}){return b.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),b.jsx("span",{className:"text-xs text-foreground",children:t.label}),b.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",t.status==="completed"?"text-status-running":"",t.status==="failed"?"text-status-failed":"",t.status==="running"?"text-status-blocked":""),children:t.status})]})}function H4(t){const l=[];let i=0;for(;i<t.length;){const a=t[i];if(a===void 0){i++;continue}if(a.kind!=="subagent"){l.push({kind:"item",item:a}),i++;continue}const o=[];for(;i<t.length;){const c=t[i];if(c===void 0||c.kind!=="subagent")break;o.push(c),i++}l.push({kind:"subagent-group",items:o,id:o[0].id})}return l}function q4(t,l=!1){switch(t.kind){case"user":return b.jsx($0,{text:t.text});case"assistant":return b.jsx(J0,{text:t.text,isStreaming:l});case"thinking":return b.jsx(Rx,{text:t.text});case"tool":return b.jsx(wE,{...t});case"error":return b.jsx(W0,{message:t.message});case"notice":return b.jsx(ev,{text:t.text});case"bg_job":return b.jsx(tv,{item:t});case"subagent":return null}}function I4(t,l=!1){switch(t.kind){case"user":return b.jsx($0,{text:t.text});case"assistant":return b.jsx(J0,{text:t.text,isStreaming:l});case"thinking":return b.jsx(Rx,{text:t.text});case"error":return b.jsx(W0,{message:t.message});case"notice":return b.jsx(ev,{text:t.text});case"bg_job":return b.jsx(tv,{item:t});default:return null}}function V4({items:t,totals:l,spineMode:i=!0,turnActive:a=!1}){const o=k.useMemo(()=>H4(t),[t]),c=nC(t),s=k.useMemo(()=>{var m;for(let p=t.length-1;p>=0;p--)if(((m=t[p])==null?void 0:m.kind)==="assistant")return t[p].id;return null},[t]),d=k.useCallback((m,p)=>{const y=m.kind==="user"&&p>0,g=a&&m.id===s;return b.jsxs("div",{children:[y&&b.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),b.jsx("div",{className:"py-2 px-1",children:I4(m,g)})]},m.id)},[a,s]);return b.jsxs("div",{className:"flex flex-col gap-0 max-w-4xl mx-auto w-full",children:[l&&b.jsx(Ux,{totals:l,className:"sticky top-0 z-10 mb-4 rounded-md border border-border bg-card px-3 py-1.5"}),t.length===0?b.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):i?b.jsx(tC,{slots:c,renderTextItem:d}):o.map((m,p)=>{if(m.kind==="item"){const{item:g}=m,v=g.kind==="user"&&p>0,S=a&&g.id===s;return b.jsxs("div",{children:[v&&b.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),b.jsx("div",{className:"py-2 px-1",children:q4(g,S)})]},g.id)}const y=_E(m.items);return b.jsx("div",{className:"py-2 px-1",children:b.jsx(jE,{roots:y})},m.id)})]})}const ad="afk_web_token",Y4="__AFK_WEB_TOKEN__";let xa=null;function G4(){xa=null;try{sessionStorage.removeItem(ad)}catch{}}function nv(){if(xa)return xa;const t=document.querySelector('meta[name="afk-token"]'),l=t==null?void 0:t.content;if(l&&l!==Y4){xa=l;try{sessionStorage.setItem(ad,l)}catch{}return F4(),l}try{const i=sessionStorage.getItem(ad);if(i)return xa=i,i}catch{}return""}function F4(){const t=new URL(window.location.href);(t.searchParams.has("token")||t.searchParams.has("k"))&&(t.searchParams.delete("token"),t.searchParams.delete("k"),window.history.replaceState({},"",t.toString()))}async function lt(t,l={}){const i=nv(),a=new Headers(l.headers);i&&a.set("Authorization",`Bearer ${i}`),l.body&&!a.has("Content-Type")&&a.set("Content-Type","application/json");const o=await fetch(t,{...l,headers:a});if(!o.ok){o.status===401&&G4();const c=await o.text().catch(()=>o.statusText);throw new X4(o.status,c)}return o.json()}class X4 extends Error{constructor(l,i){super(`API ${l}: ${i}`),this.status=l,this.name="ApiError"}}const Q4={preference:"Preference",convention:"Convention",decision:"Decision",learning:"Learning"};function Z4({type:t}){return b.jsx("span",{className:se("inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium",t==="fact"?"bg-blue-500/15 text-blue-400":"bg-violet-500/15 text-violet-400"),children:t})}function K4({category:t}){return t?b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-zinc-700 text-zinc-300",children:Q4[t]??t}):null}function P4({result:t}){const l=t.content.length>200?t.content.slice(0,200)+"…":t.content,i=t.created_at?new Date(t.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):null;return b.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx(Z4,{type:t.type}),b.jsx(K4,{category:t.category}),i&&b.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:i})]}),b.jsx("p",{className:"text-sm text-zinc-300 leading-relaxed whitespace-pre-wrap break-words",children:l})]})}function $4({pct:t,truncated:l}){const i=Math.min(t,100),a=t>=100?"bg-red-500":t>=80?"bg-amber-400":"bg-accent";return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:b.jsx("div",{className:se("h-full rounded-full transition-all",a),style:{width:`${i}%`}})}),l&&b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-amber-400/15 text-amber-400",children:"Truncated"})]})}function J4({hot:t}){if(!t)return null;const{content:l,usage:i}=t;return b.jsxs("section",{className:"space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),b.jsxs("span",{className:"text-xs text-zinc-500",children:[i.tokens.toLocaleString()," / ",i.maxTokens.toLocaleString()," tokens"]})]}),b.jsx($4,{pct:i.pct,truncated:i.truncated}),l?b.jsx("pre",{className:"rounded-md border border-zinc-800 bg-zinc-950 p-3 text-xs text-zinc-300 font-mono overflow-x-auto whitespace-pre-wrap max-h-48",children:l}):b.jsx("p",{className:"text-xs text-zinc-500 italic",children:"No hot memory loaded."})]})}const W4=[{value:"",label:"All Categories"},{value:"preference",label:"Preference"},{value:"convention",label:"Convention"},{value:"decision",label:"Decision"},{value:"learning",label:"Learning"}];function ez(){const[t,l]=k.useState(null),[i,a]=k.useState(""),[o,c]=k.useState(""),[s,d]=k.useState(null),[m,p]=k.useState(!1),[y,g]=k.useState(null);k.useEffect(()=>{lt("/api/memory/hot").then(l).catch(()=>{})},[]);const v=k.useCallback(async S=>{S.preventDefault(),p(!0),g(null);try{const E=new URLSearchParams({q:i,limit:"20"});o&&E.set("category",o);const A=await lt(`/api/memory/search?${E.toString()}`);d(A.results)}catch(E){g(E instanceof Error?E.message:"Search failed")}finally{p(!1)}},[i,o]);return b.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[b.jsx(J4,{hot:t}),b.jsxs("section",{className:"space-y-3",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),b.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[b.jsx("input",{type:"text",value:i,onChange:S=>a(S.target.value),placeholder:"FTS5 query…",className:"flex-1 min-w-0 rounded-md border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:ring-1 focus:ring-accent"}),b.jsx("select",{value:o,onChange:S=>c(S.target.value),className:"rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-100 focus:outline-none focus:ring-1 focus:ring-accent",children:W4.map(S=>b.jsx("option",{value:S.value,children:S.label},S.value))}),b.jsx("button",{type:"submit",disabled:m,className:"rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white disabled:opacity-50 hover:opacity-90 transition-opacity",children:m?"Searching…":"Search"})]}),y&&b.jsx("p",{className:"text-xs text-red-400",children:y}),s!==null&&b.jsx("div",{className:"space-y-2",children:s.length===0?b.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):s.map(S=>b.jsx(P4,{result:S},`${S.type}-${S.created_at}-${S.content.slice(0,32)}`))})]})]})}const tz={success:{label:"Success",className:"bg-status-done/20 text-status-done border-status-done/30"},error:{label:"Error",className:"bg-status-failed/20 text-status-failed border-status-failed/30"},skipped:{label:"Skipped",className:"bg-muted text-muted-foreground border-border"}};function nz(t){if(t<1e3)return`${t}ms`;const l=Math.floor(t/1e3);return l<60?`${l}s`:`${Math.floor(l/60)}m ${l%60}s`}function lz(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function rz({schedule:t,onClose:l}){const[i,a]=k.useState([]),[o,c]=k.useState(!0),[s,d]=k.useState(null);return k.useEffect(()=>{let m=!1;return c(!0),d(null),lt(`/api/schedules/${t.id}/history`).then(p=>{m||a(p.history)}).catch(p=>{m||d(p instanceof Error?p.message:"Failed to load history")}).finally(()=>{m||c(!1)}),()=>{m=!0}},[t.id]),k.useEffect(()=>{const m=p=>{p.key==="Escape"&&l()};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[l]),b.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:m=>{m.target===m.currentTarget&&l()},children:b.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[b.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsx("button",{onClick:l,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:"✕"})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),s&&b.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:s}),!o&&!s&&i.length===0&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!s&&i.length>0&&b.jsx("ul",{className:"space-y-2",children:i.map((m,p)=>{const y=tz[m.status];return b.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[b.jsx("span",{className:se("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",y.className),children:y.label}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex items-center justify-between gap-2",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:lz(m.triggeredAt)}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:nz(m.durationMs)})]}),m.errorMessage&&b.jsx("p",{className:"mt-1 truncate font-mono text-xs text-status-failed",children:m.errorMessage})]})]},`${m.taskId}-${m.triggeredAt}-${p}`)})})]})]})})}function iz({status:t}){return t?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:se("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:"text-sm text-muted-foreground",children:t.running?`Running${t.tasks!=null?` (${t.tasks} task${t.tasks!==1?"s":""})`:""}`:"Stopped"})]}):null}function lv({checked:t,onChange:l,disabled:i}){return b.jsx("button",{role:"switch","aria-checked":t,onClick:a=>{a.stopPropagation(),l()},disabled:i,className:se("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",t?"bg-brand":"bg-muted"),children:b.jsx("span",{className:se("block size-4 rounded-full bg-white shadow transition-transform",t?"translate-x-4":"translate-x-0")})})}function az({schedule:t,onToggle:l,onDelete:i,onShowHistory:a}){const[o,c]=k.useState(!1),[s,d]=k.useState(!1),m=async()=>{c(!0),await l(t.id).finally(()=>c(!1))},p=async g=>{g.stopPropagation(),window.confirm(`Delete schedule "${t.name}"? This cannot be undone.`)&&(d(!0),await i(t.id).finally(()=>d(!1)))},y=t.trigger==="both"?"cron + session start":t.trigger??"cron";return b.jsxs("div",{className:se("group flex cursor-pointer flex-col gap-3 rounded-xl border border-border bg-card p-4","transition-colors hover:border-brand/40 hover:bg-accent/30",!t.enabled&&"opacity-60"),onClick:()=>a(t),children:[b.jsxs("div",{className:"flex items-start justify-between gap-3",children:[b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[b.jsx(lv,{checked:t.enabled,onChange:()=>{m()},disabled:o}),b.jsx("button",{onClick:p,disabled:s,"aria-label":`Delete schedule ${t.name}`,className:se("flex size-7 items-center justify-center rounded-md text-muted-foreground","opacity-0 transition-opacity group-hover:opacity-100","hover:bg-destructive/20 hover:text-status-failed","disabled:cursor-not-allowed disabled:opacity-40"),children:"🗑"})]})]}),b.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[b.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:y}),t.notifyOn&&t.notifyOn!=="never"&&b.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),b.jsx("span",{className:"ml-auto",children:"Click for history"})]})]})}const uz={name:"",command:"",cron:"",trigger:"cron",notifyOn:"failure",enabled:!0};function oz({onCreated:t,onCancel:l}){const[i,a]=k.useState(uz),[o,c]=k.useState(!1),[s,d]=k.useState(null),m=async g=>{if(g.preventDefault(),d(null),!i.name.trim()){d("Name is required.");return}if(!i.command.trim()){d("Command is required.");return}if(!i.cron.trim()){d("Cron expression is required.");return}c(!0);try{const v=await lt("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});t(v.schedule,v.syncNote)}catch(v){d(v instanceof Error?v.message:"Failed to create schedule.")}finally{c(!1)}},p=(g,v)=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:g}),v]}),y=se("h-8 rounded-md border border-border bg-card px-3 text-sm","placeholder:text-muted-foreground/50","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed disabled:opacity-50");return b.jsxs("form",{onSubmit:g=>{m(g)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[b.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[p("Name *",b.jsx("input",{type:"text",className:y,placeholder:"e.g. Nightly cleanup",value:i.name,onChange:g=>a(v=>({...v,name:g.target.value})),required:!0,disabled:o})),p("Cron expression *",b.jsx("input",{type:"text",className:se(y,"font-mono"),placeholder:"0 2 * * *",value:i.cron,onChange:g=>a(v=>({...v,cron:g.target.value})),required:!0,disabled:o}))]}),p("Command *",b.jsx("input",{type:"text",className:se(y,"font-mono"),placeholder:"/my-skill --auto",value:i.command,onChange:g=>a(v=>({...v,command:g.target.value})),required:!0,disabled:o})),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[p("Trigger",b.jsxs("select",{className:y,value:i.trigger,onChange:g=>a(v=>({...v,trigger:g.target.value})),disabled:o,children:[b.jsx("option",{value:"cron",children:"cron"}),b.jsx("option",{value:"sessionstart",children:"session start"}),b.jsx("option",{value:"both",children:"both"})]})),p("Notify on",b.jsxs("select",{className:y,value:i.notifyOn,onChange:g=>a(v=>({...v,notifyOn:g.target.value})),disabled:o,children:[b.jsx("option",{value:"failure",children:"failure"}),b.jsx("option",{value:"always",children:"always"}),b.jsx("option",{value:"never",children:"never"})]})),b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),b.jsx("div",{className:"flex h-8 items-center",children:b.jsx(lv,{checked:i.enabled,onChange:()=>a(g=>({...g,enabled:!g.enabled})),disabled:o})})]})]}),s&&b.jsx("p",{className:"rounded-md border border-status-failed/30 bg-status-failed/10 px-3 py-2 text-xs text-status-failed",children:s}),b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[b.jsx("button",{type:"button",onClick:l,disabled:o,className:se("h-8 rounded-md px-3 text-sm text-muted-foreground","hover:bg-accent hover:text-foreground","disabled:cursor-not-allowed disabled:opacity-50"),children:"Cancel"}),b.jsx("button",{type:"submit",disabled:o,className:se("h-8 rounded-md bg-brand px-4 text-sm font-medium text-white","hover:bg-brand/90","disabled:cursor-not-allowed disabled:opacity-50"),children:o?"Creating…":"Create"})]})]})}function sz(){const[t,l]=k.useState([]),[i,a]=k.useState(null),[o,c]=k.useState(!0),[s,d]=k.useState(null),[m,p]=k.useState(null),[y,g]=k.useState(!1),[v,S]=k.useState(null);k.useEffect(()=>{let N=!1;return c(!0),d(null),Promise.all([lt("/api/schedules"),lt("/api/daemon/status")]).then(([R,L])=>{N||(l(R.schedules),a(L))}).catch(R=>{N||d(R instanceof Error?R.message:"Failed to load schedules")}).finally(()=>{N||c(!1)}),()=>{N=!0}},[]);const E=k.useCallback(async N=>{const R=await lt(`/api/schedules/${N}/toggle`,{method:"POST"});l(L=>L.map(W=>W.id===N?{...W,enabled:R.enabled}:W)),R.syncNote&&(S(R.syncNote),setTimeout(()=>S(null),8e3))},[]),A=k.useCallback(async N=>{await lt(`/api/schedules/${N}`,{method:"DELETE"}),l(R=>R.filter(L=>L.id!==N))},[]),j=k.useCallback((N,R)=>{l(L=>[...L,N]),g(!1),R&&(S(R),setTimeout(()=>S(null),8e3))},[]);return o?b.jsx("div",{className:"flex flex-1 items-center justify-center",children:b.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):b.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(iz,{status:i}),b.jsx("button",{onClick:()=>g(N=>!N),className:se("h-7 rounded-md px-3 text-xs font-medium",y?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:y?"Cancel":"+ New Schedule"})]})]}),y&&b.jsx(oz,{onCreated:j,onCancel:()=>g(!1)}),v&&b.jsx("p",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-700 dark:text-yellow-400",children:v}),s&&b.jsx("p",{className:"rounded-lg border border-status-failed/30 bg-status-failed/10 px-4 py-3 text-sm text-status-failed",children:s}),!s&&t.length===0&&!y&&b.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),b.jsx("div",{className:"grid gap-3",children:t.map(N=>b.jsx(az,{schedule:N,onToggle:E,onDelete:A,onShowHistory:p},N.id))}),m&&b.jsx(rz,{schedule:m,onClose:()=>p(null)})]})}function cz(t,l){const i=(l??Date.now())-t;if(i<1e3)return`${i}ms`;const a=Math.floor(i/1e3);if(a<60)return`${a}s`;const o=Math.floor(a/60);return o<60?`${o}m ${a%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function fz(t){const l=Math.floor((Date.now()-t)/1e3);if(l<60)return`${l}s ago`;const i=Math.floor(l/60);if(i<60)return`${i}m ago`;const a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function dz(t){const l=t.lastIndexOf("/");return l!==-1?t.slice(l+1):t}const hz={running:"bg-green-500/20 text-green-400 border border-green-500/30",completed:"bg-blue-500/20 text-blue-400 border border-blue-500/30",failed:"bg-red-500/20 text-red-400 border border-red-500/30",cancelled:"bg-neutral-500/20 text-neutral-400 border border-neutral-500/30"};function fo(t){return t.status!=="running"}function mz({status:t}){return b.jsxs("span",{className:se("inline-flex items-center gap-1.5 rounded px-1.5 py-0.5 text-xs font-medium",hz[t]),children:[t==="running"&&b.jsx("span",{className:"size-1.5 rounded-full bg-green-400 animate-pulse"}),t]})}function sb({job:t,now:l,onCancel:i}){const[a,o]=k.useState(!1),[c,s]=k.useState(!1),[d,m]=k.useState(null),p=cz(t.startedAt,t.status==="running"?l:t.endedAt),y=fz(t.startedAt),g=a?hd:Eo,v=async S=>{S.stopPropagation(),m(null),s(!0);try{await i(t.jobId)}catch(E){m(E instanceof Error?E.message:String(E))}finally{s(!1)}};return b.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[b.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(S=>!S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(E=>!E))},className:"w-full text-left px-4 py-3 flex flex-col gap-2 hover:bg-neutral-800/50 transition-colors cursor-pointer",children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[b.jsx(g,{className:"size-3.5 shrink-0 text-neutral-500"}),b.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),b.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[b.jsx(mz,{status:t.status}),t.status==="running"&&b.jsxs("button",{type:"button",onClick:v,disabled:c,"aria-label":`Cancel job ${t.jobId}`,className:se("flex items-center gap-1 rounded px-1.5 py-0.5 text-xs","text-neutral-500 hover:text-red-400 hover:bg-red-500/10","disabled:opacity-40 transition-colors"),children:[b.jsx(md,{className:"size-3"}),c?"Cancelling…":"Cancel"]})]})]}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[b.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:dz(t.model)}),b.jsx("span",{children:p}),b.jsx("span",{children:y})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&b.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[b.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",b.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),d&&b.jsx("p",{className:"pl-5 text-xs text-red-400",title:d,children:d.length>200?d.slice(0,200)+"…":d})]}),a&&b.jsxs("div",{className:"border-t border-neutral-800 px-4 py-3 bg-neutral-950 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-xs",children:[b.jsx(vn,{label:"Job ID",value:t.jobId,mono:!0}),b.jsx(vn,{label:"Subagent ID",value:t.subagentId,mono:!0}),b.jsx(vn,{label:"Model",value:t.model,mono:!0}),b.jsx(vn,{label:"Status",value:t.status}),b.jsx(vn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&b.jsx(vn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),b.jsx(vn,{label:"Duration",value:p}),t.parentSessionId&&b.jsx(vn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&b.jsx(vn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),b.jsx(vn,{label:"Prompt hash",value:t.promptHash,mono:!0}),b.jsx(vn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function vn({label:t,value:l,mono:i=!1}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),b.jsx("span",{className:se("text-neutral-300 break-all",i&&"font-mono"),children:l})]})}function cb({label:t,count:l}){return b.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[b.jsx("span",{children:t}),b.jsx("span",{className:"rounded-full bg-neutral-800 px-1.5 py-0.5 text-neutral-400 normal-case",children:l})]})}function pz(){const[t,l]=k.useState([]),[i,a]=k.useState(!0),[o,c]=k.useState(null),[s,d]=k.useState(()=>Date.now()),m=k.useRef(null),p=k.useCallback((E=!1)=>{E||a(!0),c(null),lt("/api/bg-jobs").then(({jobs:A})=>l([...A].sort((j,N)=>N.startedAt-j.startedAt))).catch(A=>c(A instanceof Error?A.message:String(A))).finally(()=>{E||a(!1)})},[]);k.useEffect(()=>{p()},[p]),k.useEffect(()=>{const E=t.some(A=>!fo(A));return E&&!m.current&&(m.current=setInterval(()=>p(!0),5e3)),!E&&m.current&&(clearInterval(m.current),m.current=null),()=>{m.current&&(clearInterval(m.current),m.current=null)}},[t,p]),k.useEffect(()=>{if(!t.some(j=>!fo(j)))return;const A=setInterval(()=>d(Date.now()),1e3);return()=>clearInterval(A)},[t]);const y=k.useCallback(async E=>{await lt(`/api/bg-jobs/${encodeURIComponent(E)}/cancel`,{method:"POST"}),l(A=>A.map(j=>j.jobId===E?{...j,status:"cancelled"}:j))},[]),g=t.filter(E=>E.status==="running"),v=t.filter(E=>fo(E)),S=t.some(E=>!fo(E));return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[b.jsx(gb,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&b.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),b.jsxs("button",{onClick:()=>p(),disabled:i,className:"flex items-center gap-1.5 rounded px-2 py-1 text-xs text-neutral-400 hover:text-neutral-200 hover:bg-neutral-800 disabled:opacity-50 transition-colors",children:[b.jsx(rk,{className:se("size-3",i&&"animate-spin")}),"Refresh"]})]}),o&&b.jsx("p",{className:"rounded border border-red-900/40 bg-red-950/30 px-3 py-2 text-xs text-red-400",children:o}),!i&&t.length===0&&!o&&b.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),g.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(cb,{label:"Running",count:g.length}),g.map(E=>b.jsx(sb,{job:E,now:s,onCancel:y},E.jobId))]}),v.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(cb,{label:"Settled",count:v.length}),v.map(E=>b.jsx(sb,{job:E,now:s,onCancel:y},E.jobId))]})]})}function ya({icon:t,title:l,children:i}){return b.jsxs("section",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(t,{className:"size-4 text-muted-foreground"}),b.jsx("h2",{className:"text-sm font-semibold",children:l})]}),b.jsx("div",{className:"rounded-xl border border-border bg-card",children:i})]})}function Vt({label:t,value:l,mono:i=!1,last:a=!1}){return b.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[b.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),b.jsx("span",{className:se("min-w-0 truncate text-right text-xs",i?"font-mono text-zinc-300":"text-zinc-200"),children:l})]})}function gz({model:t,last:l}){return b.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!l&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.id})]})}const fb=[{keys:"⌘K",description:"Open command palette"},{keys:"⌘1",description:"Go to Sessions"},{keys:"⌘2",description:"Go to Memory"},{keys:"⌘3",description:"Go to Schedules"},{keys:"⌘4",description:"Go to Background Jobs"}];function yz({keys:t,description:l,last:i}){return b.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!i&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:l}),b.jsx("kbd",{className:"rounded border border-border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:t})]})}function bz({status:t}){return t?b.jsxs("span",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:se("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:se("text-xs",t.running?"text-zinc-200":"text-muted-foreground"),children:t.running?`Running${t.tasks!=null?` · ${t.tasks} task${t.tasks!==1?"s":""}`:""}`:"Stopped"})]}):b.jsx("span",{className:"text-xs text-muted-foreground",children:"–"})}function xz(){var o;const[t,l]=k.useState({config:null,models:null,daemon:null,configError:null,modelsError:null,daemonError:null});k.useEffect(()=>{let c=!1;const s=d=>d instanceof Error?d.message:"Failed to load";return Promise.all([lt("/api/config").then(d=>({ok:!0,config:d}),d=>({ok:!1,error:s(d)})),lt("/api/models").then(d=>({ok:!0,models:d.models}),d=>({ok:!1,error:s(d)})),lt("/api/daemon/status").then(d=>({ok:!0,daemon:d}),d=>({ok:!1,error:s(d)}))]).then(([d,m,p])=>{c||l({config:d.ok?d.config:null,configError:d.ok?null:d.error,models:m.ok?m.models:null,modelsError:m.ok?null:m.error,daemon:p.ok?p.daemon:null,daemonError:p.ok?null:p.error})}).catch(()=>{}),()=>{c=!0}},[]);const i=t.config,a=b.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return b.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[b.jsxs(ya,{icon:xb,title:"About",children:[b.jsx(Vt,{label:"AFK version",value:i?i.version:a,mono:!0}),b.jsx(Vt,{label:"Node.js",value:i?i.nodeVersion:a,mono:!0}),b.jsx(Vt,{label:"App",value:"AFK Dashboard",last:!0})]}),b.jsxs(ya,{icon:YS,title:"Model",children:[b.jsx(Vt,{label:"Default model",value:i?i.model:a,mono:!0}),t.modelsError?b.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?b.jsx(Vt,{label:"Available tiers",value:a,last:!0}):t.models.length===0?b.jsx(Vt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((c,s)=>{var d;return b.jsx(gz,{model:c,last:s===(((d=t.models)==null?void 0:d.length)??0)-1},c.id)})]}),b.jsxs(ya,{icon:FS,title:"Paths",children:[b.jsx(Vt,{label:"AFK home",value:i?i.afkHome:a,mono:!0}),b.jsx(Vt,{label:"State dir",value:i?i.stateDir:a,mono:!0}),b.jsx(Vt,{label:"Config dir",value:i?i.configDir:a,mono:!0,last:!0})]}),b.jsxs(ya,{icon:oi,title:"Web Server",children:[b.jsx(Vt,{label:"Host",value:i?i.webHost:a,mono:!0}),b.jsx(Vt,{label:"Port",value:i?String(i.webPort):a,mono:!0}),b.jsx(Vt,{label:"Daemon",value:b.jsx(bz,{status:t.daemon})}),!t.daemonError&&b.jsx(Vt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&b.jsx(Vt,{label:"Daemon error",value:t.daemonError,last:!0})]}),b.jsx(ya,{icon:XS,title:"Keyboard Shortcuts",children:fb.map((c,s)=>b.jsx(yz,{keys:c.keys,description:c.description,last:s===fb.length-1},c.keys))})]})}function ud(t){return t.startsWith("/")?t.slice(1):t}function rv(t){return`/${ud(t)}`}function iv(t,l){return ud(t).startsWith(ud(l))}function vz({query:t,commands:l,onSelect:i,visible:a}){const[o,c]=k.useState(0),s=k.useRef(null),d=l.filter(m=>iv(m.name,t)).slice(0,8);return k.useEffect(()=>{c(0)},[t]),k.useEffect(()=>{var p;const m=(p=s.current)==null?void 0:p.children[o];m==null||m.scrollIntoView({block:"nearest"})},[o]),!a||d.length===0?null:b.jsx("ul",{ref:s,role:"listbox","aria-label":"Slash commands",className:se("absolute bottom-full left-0 mb-1 w-full max-h-56 overflow-y-auto","rounded-lg border border-border bg-popover shadow-lg z-50","text-sm"),children:d.map((m,p)=>b.jsxs("li",{role:"option","aria-selected":p===o,className:se("flex items-baseline gap-2 px-3 py-2 cursor-pointer select-none",p===o?"bg-accent text-accent-foreground":"hover:bg-accent/50"),onMouseEnter:()=>c(p),onMouseDown:y=>{y.preventDefault(),i(m.name)},children:[b.jsx("span",{className:"font-mono font-semibold shrink-0",children:rv(m.name)}),b.jsx("span",{className:"text-muted-foreground truncate",children:m.summary})]},m.name))})}function Sz(t,l,i,a,o,c,s){return!l||i===0?!1:t.key==="ArrowDown"?(o((a+1)%i),!0):t.key==="ArrowUp"?(o((a-1+i)%i),!0):t.key==="Enter"?(c(a),!0):t.key==="Escape"?(s(),!0):!1}function kz(t){const l=t.trim();return l?l.startsWith("/")||l.startsWith("./")||l.startsWith("~/")||/^[\w.]/.test(l):!1}function wz({onInsert:t}){const[l,i]=k.useState(!1),[a,o]=k.useState(""),[c,s]=k.useState(!1),d=k.useRef(null),m=k.useRef(null),p=k.useRef(null),y=k.useCallback(()=>{i(!1),s(!1),o("")},[]),g=k.useCallback(()=>{var S;const v=a.trim();if(!kz(v)){s(!0),(S=d.current)==null||S.focus();return}t(`@${v}`),y()},[a,t,y]);return k.useEffect(()=>{l&&requestAnimationFrame(()=>{var v;return(v=d.current)==null?void 0:v.focus()})},[l]),k.useEffect(()=>{if(!l)return;function v(S){const E=S.target;m.current&&!m.current.contains(E)&&p.current&&!p.current.contains(E)&&y()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[l,y]),b.jsxs("div",{className:"relative",children:[b.jsx("button",{ref:p,type:"button",onClick:()=>l?y():i(!0),"aria-label":"Insert file reference","aria-expanded":l,className:se("flex h-8 w-8 items-center justify-center rounded-md text-sm","transition-colors hover:bg-accent hover:text-accent-foreground",l&&"bg-accent text-accent-foreground"),title:"Insert @file reference",children:b.jsx(GS,{className:"h-4 w-4"})}),l&&b.jsxs("div",{ref:m,role:"dialog","aria-label":"Insert file path",className:se("absolute bottom-full left-0 mb-2 w-72 rounded-lg border","bg-popover p-3 shadow-lg animate-fade-in"),children:[b.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",b.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",b.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{ref:d,type:"text",value:a,onChange:v=>{o(v.target.value),s(!1)},onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),g()),v.key==="Escape"&&y()},placeholder:"src/foo.ts or ~/file.ts",autoComplete:"off",spellCheck:!1,className:se("flex-1 rounded-md border bg-secondary px-2 py-1 text-sm","placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",c&&"border-destructive")}),b.jsx("button",{type:"button",onClick:g,className:se("rounded-md bg-primary px-3 py-1 text-sm font-medium","text-primary-foreground hover:bg-primary/90"),children:"Add"})]}),c&&b.jsx("p",{className:"mt-1 text-xs text-destructive",children:"Enter a valid file path."})]})]})}const Ez=[{id:"sonnet",label:"Sonnet"},{id:"haiku",label:"Haiku"},{id:"opus",label:"Opus"}],Cz="sonnet";function Tz({onSelect:t,current:l,className:i}){const[a,o]=k.useState(Ez),c=k.useRef(!1);k.useEffect(()=>{let m=!1;return lt("/api/models").then(p=>{!m&&p.models.length>0&&o(p.models)}).catch(()=>{}),()=>{m=!0}},[]);const s=l??Cz;k.useEffect(()=>{c.current||(c.current=!0,t(s))},[t,s]);const d=k.useCallback(m=>{t(m.target.value)},[t]);return b.jsxs("div",{className:se("relative inline-flex items-center",i),children:[b.jsx("select",{value:s,onChange:d,"aria-label":"Model",className:se("appearance-none rounded-md border bg-secondary pl-2 pr-7 py-1","text-xs font-medium text-secondary-foreground","cursor-pointer focus:outline-none focus:ring-1 focus:ring-ring"),children:a.map(m=>b.jsx("option",{value:m.id,children:m.label},m.id))}),b.jsx(hd,{className:"pointer-events-none absolute right-1.5 h-3 w-3 text-muted-foreground"})]})}function Az({queue:t}){const{entries:l,moveItemUp:i,moveItemDown:a,removeItem:o,editItem:c}=t;return l.length===0?null:b.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[b.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",l.length,")"]}),l.map((s,d)=>b.jsx(Nz,{text:s.text,isFirst:d===0,isLast:d===l.length-1,onMoveUp:()=>i(d),onMoveDown:()=>a(d),onRemove:()=>o(d),onEdit:m=>c(d,m)},s.id))]})}function Nz({text:t,isFirst:l,isLast:i,onMoveUp:a,onMoveDown:o,onRemove:c,onEdit:s}){const[d,m]=k.useState(!1),[p,y]=k.useState(t),g=k.useRef(null);k.useEffect(()=>{var A;d&&((A=g.current)==null||A.focus())},[d]);const v=k.useCallback(()=>{y(t),m(!0)},[t]),S=k.useCallback(()=>{const A=p.trim();A&&A!==t&&s(A),m(!1)},[p,t,s]),E=k.useCallback(()=>{m(!1),y(t)},[t]);return b.jsxs("div",{className:se("group flex items-center gap-1.5 rounded-md border border-border/50","bg-secondary/50 px-2 py-1 text-sm animate-fade-in"),children:[d?b.jsx("input",{ref:g,type:"text",value:p,onChange:A=>y(A.target.value),onKeyDown:A=>{A.key==="Enter"&&S(),A.key==="Escape"&&E()},onBlur:S,className:se("min-w-0 flex-1 bg-transparent text-sm","focus:outline-none")}):b.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),b.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[d?b.jsx(ba,{label:"Confirm edit",onClick:S,children:b.jsx(dd,{className:"h-3 w-3"})}):b.jsx(ba,{label:"Edit",onClick:v,children:b.jsx(ek,{className:"h-3 w-3"})}),b.jsx(ba,{label:"Move up",onClick:a,disabled:l,children:b.jsx(RS,{className:"h-3 w-3"})}),b.jsx(ba,{label:"Move down",onClick:o,disabled:i,children:b.jsx(pb,{className:"h-3 w-3"})}),b.jsx(ba,{label:"Remove",onClick:c,destructive:!0,children:b.jsx(md,{className:"h-3 w-3"})})]})]})}function ba({label:t,onClick:l,disabled:i,destructive:a,children:o}){return b.jsx("button",{type:"button",onClick:l,disabled:i,"aria-label":t,title:t,className:se("flex h-5 w-5 items-center justify-center rounded","transition-colors",i?"cursor-not-allowed opacity-30":a?"hover:bg-destructive/20 hover:text-destructive":"hover:bg-accent hover:text-accent-foreground"),children:o})}let va=null;function jz(){va=null}async function zz(){return va||(va=(await lt("/api/commands")).commands,va)}function Mz(t){return t.startsWith("/")&&t.indexOf(" ")===-1?t.slice(1):null}function _z({sessionId:t,sessionMode:l,isBusy:i,queue:a,onModelSelect:o,currentModel:c}){const[s,d]=k.useState(""),[m,p]=k.useState(!1),[y,g]=k.useState([]),[v,S]=k.useState(0),E=k.useRef(null),A=l==="readonly",j=Mz(s),N=j!==null&&y.length>0,R=N?y.filter(V=>iv(V.name,j)).slice(0,8):[];k.useEffect(()=>{const V=()=>{document.visibilityState==="visible"&&jz()};return document.addEventListener("visibilitychange",V),()=>document.removeEventListener("visibilitychange",V)},[]),k.useEffect(()=>{const V=E.current;if(!V)return;V.style.height="auto";const H=(parseInt(getComputedStyle(V).lineHeight)||20)*5;V.style.height=`${Math.min(V.scrollHeight,H)}px`},[s]),k.useEffect(()=>{j!==null&&zz().then(g).catch(()=>{})},[j]);const L=k.useCallback(async()=>{const V=s.trim();if(!(!V||m||A)){p(!0);try{await lt(`/api/sessions/${t}/prompt`,{method:"POST",body:JSON.stringify({text:V})}),d("")}catch{}finally{p(!1)}}},[s,m,A,t]),W=k.useCallback(async()=>{try{await lt(`/api/sessions/${t}/interrupt`,{method:"POST"})}catch{}},[t]),ee=k.useCallback(V=>{var ae;d(`${rv(V)} `),S(0),(ae=E.current)==null||ae.focus()},[]),D=k.useCallback(V=>{if(Sz(V,N,R.length,v,S,H=>{const re=R[H];re&&ee(re.name)},()=>d(H=>H))){V.preventDefault();return}if(V.key==="Enter"&&!V.shiftKey)if(V.preventDefault(),i&&a){const H=s.trim();H&&(a.enqueue(H),d(""))}else L()},[N,R,v,ee,L,i,s,a]),X=k.useCallback(V=>{const ae=E.current;if(!ae){d(B=>B+" "+V+" ");return}const H=ae.selectionStart??ae.value.length,re=ae.selectionEnd??H,P=ae.value.slice(0,H),be=ae.value.slice(re),ue=P.length>0&&!/\s$/.test(P)?" ":"",ne=P+ue+V+" "+be;d(ne),requestAnimationFrame(()=>{const B=H+ue.length+V.length+1;ae.setSelectionRange(B,B),ae.focus()})},[]);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"pointer-events-none h-8 bg-gradient-to-t from-background/80 to-transparent"}),b.jsxs("div",{className:se("relative flex flex-col gap-2","border-t border-border/50 px-4 py-3","backdrop-blur-xl bg-background/80","shadow-[0_-4px_16px_-4px_rgba(0,0,0,0.1)]",A&&"opacity-50"),children:[a&&b.jsx(Az,{queue:a}),b.jsx(vz,{query:j??"",commands:y,onSelect:ee,visible:N}),b.jsxs("div",{className:"flex items-end gap-2",children:[b.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[b.jsx(wz,{onInsert:X}),o&&b.jsx(Tz,{onSelect:o,current:c})]}),b.jsx("textarea",{ref:E,rows:1,value:s,disabled:A||m,onChange:V=>d(V.target.value),onKeyDown:D,placeholder:A?"Read-only session":"Send a message… (/ for commands)",className:se("flex-1 resize-none rounded-xl border border-input bg-background","px-3 py-2 text-sm leading-5 shadow-sm","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed")}),i?b.jsx("button",{onClick:()=>void W(),title:"Stop",className:"shrink-0 flex items-center justify-center h-9 w-9 rounded-lg bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",children:b.jsx(Sb,{className:"h-4 w-4 fill-current"})}):b.jsx("button",{onClick:()=>void L(),disabled:!s.trim()||m||A,title:"Send",className:se("shrink-0 flex items-center justify-center h-9 w-9 rounded-lg","bg-primary text-primary-foreground hover:bg-primary/90 transition-colors","disabled:opacity-40 disabled:cursor-not-allowed"),children:b.jsx(ik,{className:"h-4 w-4"})})]})]})]})}async function Dz(t){await lt("/api/approve",{method:"POST",body:JSON.stringify(t)})}function Oz({approval:t,onAnswered:l}){const{id:i,request:a}=t,[o,c]=k.useState(typeof a.questionDefault=="string"?a.questionDefault:""),[s,d]=k.useState(!1),[m,p]=k.useState(null),y=async(v,S)=>{d(!0),p(null);try{await Dz({requestId:i,response:{action:v,content:S}}),l()}catch{p("Failed to submit — try again")}finally{d(!1)}},g=a.type??"confirm";return b.jsxs("div",{className:se("rounded-lg border-2 border-yellow-500/60 bg-yellow-500/5 p-3 text-sm","flex flex-col gap-2"),children:[b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsx(uk,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),b.jsxs("div",{className:"flex-1 min-w-0",children:[a.title&&b.jsx("p",{className:"font-semibold text-foreground",children:a.title}),a.message&&b.jsx("p",{className:"text-muted-foreground",children:a.message}),a.description&&b.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:a.description})]}),b.jsx("button",{onClick:()=>void y("decline"),disabled:s,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:b.jsx(md,{className:"h-4 w-4"})})]}),g==="text"&&b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{type:"text",value:o,onChange:v=>c(v.target.value),disabled:s,className:se("flex-1 rounded border border-input bg-background px-2 py-1 text-sm","focus:outline-none focus:ring-1 focus:ring-ring")}),b.jsx(ho,{onClick:()=>void y("accept",{text:o}),disabled:s,label:"Submit",variant:"primary"})]}),g==="confirm"&&b.jsxs("div",{className:"flex gap-2 justify-end",children:[b.jsx(ho,{onClick:()=>void y("decline"),disabled:s,label:"No",variant:"ghost"}),b.jsx(ho,{onClick:()=>void y("accept"),disabled:s,label:"Yes",variant:"primary"})]}),(g==="choice"||g==="multi_choice")&&b.jsx("div",{className:"flex flex-wrap gap-1.5",children:(a.choices??[]).map(v=>b.jsx(ho,{onClick:()=>void y("accept",{choice:v}),disabled:s,label:v,variant:"outline"},v))}),m&&b.jsx("p",{className:"text-xs text-red-400",children:m})]})}function ho({onClick:t,disabled:l,label:i,variant:a}){return b.jsx("button",{onClick:t,disabled:l,className:se("rounded px-3 py-1 text-xs font-medium transition-colors disabled:opacity-50",a==="primary"&&"bg-primary text-primary-foreground hover:bg-primary/90",a==="ghost"&&"text-muted-foreground hover:text-foreground hover:bg-accent",a==="outline"&&"border border-border hover:bg-accent"),children:i})}function Rz({approvals:t,onDismiss:l}){const[i,a]=k.useState(new Set),o=t.filter(s=>!i.has(s.id));if(o.length===0)return null;const c=s=>{a(d=>new Set([...d,s])),l==null||l()};return b.jsx("div",{className:"flex flex-col gap-2",children:o.map(s=>b.jsx(Oz,{approval:s,onAnswered:()=>c(s.id)},s.id))})}function Lz({open:t,onClose:l,children:i}){return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:se("fixed inset-0 z-40 bg-black/50 transition-opacity duration-200 md:hidden",t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:l,"aria-hidden":"true"}),b.jsx("div",{className:se("fixed inset-y-0 left-0 z-50 w-64 bg-sidebar transition-transform duration-200 ease-in-out md:hidden",t?"translate-x-0":"-translate-x-full"),role:"dialog","aria-modal":"true",children:i})]})}function Uz({onClick:t,className:l}){return b.jsx("button",{onClick:t,className:se("inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-muted hover:text-foreground md:hidden",l),"aria-label":"Open sidebar",children:b.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}const Bz=k.createContext(null),Hz={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-muted text-muted-foreground border border-border"};function qz({children:t}){const[l,i]=k.useState([]),a=k.useRef(0),o=k.useCallback((c,s="info")=>{const d=++a.current;i(m=>[...m.slice(-2),{id:d,message:c,type:s}]),setTimeout(()=>{i(m=>m.filter(p=>p.id!==d))},3e3)},[]);return b.jsxs(Bz.Provider,{value:{toast:o},children:[t,b.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none","aria-live":"polite","aria-label":"Notifications",children:l.map(c=>b.jsx("div",{className:se("pointer-events-auto max-w-sm rounded-lg px-4 py-3 text-sm shadow-lg animate-slide-in-right",Hz[c.type]),children:c.message},c.id))})]})}const Iz=1e4;function Vz(){const[t,l]=k.useState([]),[i,a]=k.useState(!0),[o,c]=k.useState(null),s=k.useRef(void 0),d=k.useCallback(async()=>{try{const m=await lt("/api/sessions");l(Yz(m.sessions)),c(null)}catch(m){c(m instanceof Error?m.message:"Failed to fetch sessions")}finally{a(!1)}},[]);return k.useEffect(()=>(d(),s.current=setInterval(()=>void d(),Iz),()=>clearInterval(s.current)),[d]),{sessions:t,loading:i,error:o,refresh:d}}function Yz(t){return[...t].sort((l,i)=>{const a=db(l)?1:0,o=db(i)?1:0;if(a!==o)return o-a;const c=l.updatedAt?new Date(l.updatedAt).getTime():0;return(i.updatedAt?new Date(i.updatedAt).getTime():0)-c})}function db(t){return t.mode==="live"||t.alive===!0}const Gz=1e3;function Fz(){const[t,l]=k.useState([]),i=k.useRef(void 0),a=k.useCallback(async()=>{try{const c=await lt("/api/pending");l(c.pending)}catch{}},[]);k.useEffect(()=>(a(),i.current=setInterval(()=>void a(),Gz),()=>clearInterval(i.current)),[a]);const o=new Set(t.map(c=>c.sessionId).filter(c=>!!c));return{approvals:t,pendingSessionIds:o}}const Xz=15e3,Qz=500;function Zz(t){const i=t.replace(/\r\n/g,`
372
+ `,...c.current()});return/^[\t ]/.test(p)&&(p=Ta(p.charCodeAt(0))+p.slice(1)),p=p?s+" "+p:s,i.options.closeAtx&&(p+=" "+s),m(),d(),p}R0.peek=Dj;function R0(t){return t.value||""}function Dj(){return"<"}L0.peek=Oj;function L0(t,l,i,a){const o=Vd(i),c=o==='"'?"Quote":"Apostrophe",s=i.enter("image");let d=i.enter("label");const m=i.createTracker(a);let p=m.move("![");return p+=m.move(i.safe(t.alt,{before:p,after:"]",...m.current()})),p+=m.move("]("),d(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(d=i.enter("destinationLiteral"),p+=m.move("<"),p+=m.move(i.safe(t.url,{before:p,after:">",...m.current()})),p+=m.move(">")):(d=i.enter("destinationRaw"),p+=m.move(i.safe(t.url,{before:p,after:t.title?" ":")",...m.current()}))),d(),t.title&&(d=i.enter(`title${c}`),p+=m.move(" "+o),p+=m.move(i.safe(t.title,{before:p,after:o,...m.current()})),p+=m.move(o),d()),p+=m.move(")"),s(),p}function Oj(){return"!"}U0.peek=Rj;function U0(t,l,i,a){const o=t.referenceType,c=i.enter("imageReference");let s=i.enter("label");const d=i.createTracker(a);let m=d.move("![");const p=i.safe(t.alt,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),s();const y=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:m,after:"]",...d.current()});return s(),i.stack=y,c(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function Rj(){return"!"}B0.peek=Lj;function B0(t,l,i){let a=t.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++c<i.unsafe.length;){const s=i.unsafe[c],d=i.compilePattern(s);let m;if(s.atBreak)for(;m=d.exec(a);){let p=m.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(m.index+1)}}return o+a+o}function Lj(){return"`"}function H0(t,l){const i=Dd(t);return!!(!l.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}q0.peek=Uj;function q0(t,l,i,a){const o=Vd(i),c=o==='"'?"Quote":"Apostrophe",s=i.createTracker(a);let d,m;if(H0(t,i)){const y=i.stack;i.stack=[],d=i.enter("autolink");let g=s.move("<");return g+=s.move(i.containerPhrasing(t,{before:g,after:">",...s.current()})),g+=s.move(">"),d(),i.stack=y,g}d=i.enter("link"),m=i.enter("label");let p=s.move("[");return p+=s.move(i.containerPhrasing(t,{before:p,after:"](",...s.current()})),p+=s.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=i.enter("destinationLiteral"),p+=s.move("<"),p+=s.move(i.safe(t.url,{before:p,after:">",...s.current()})),p+=s.move(">")):(m=i.enter("destinationRaw"),p+=s.move(i.safe(t.url,{before:p,after:t.title?" ":")",...s.current()}))),m(),t.title&&(m=i.enter(`title${c}`),p+=s.move(" "+o),p+=s.move(i.safe(t.title,{before:p,after:o,...s.current()})),p+=s.move(o),m()),p+=s.move(")"),d(),p}function Uj(t,l,i){return H0(t,i)?"<":"["}I0.peek=Bj;function I0(t,l,i,a){const o=t.referenceType,c=i.enter("linkReference");let s=i.enter("label");const d=i.createTracker(a);let m=d.move("[");const p=i.containerPhrasing(t,{before:m,after:"]",...d.current()});m+=d.move(p+"]["),s();const y=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:m,after:"]",...d.current()});return s(),i.stack=y,c(),o==="full"||!p||p!==g?m+=d.move(g+"]"):o==="shortcut"?m=m.slice(0,-1):m+=d.move("]"),m}function Bj(){return"["}function Yd(t){const l=t.options.bullet||"*";if(l!=="*"&&l!=="+"&&l!=="-")throw new Error("Cannot serialize items with `"+l+"` for `options.bullet`, expected `*`, `+`, or `-`");return l}function Hj(t){const l=Yd(t),i=t.options.bulletOther;if(!i)return l==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===l)throw new Error("Expected `bullet` (`"+l+"`) and `bulletOther` (`"+i+"`) to be different");return i}function qj(t){const l=t.options.bulletOrdered||".";if(l!=="."&&l!==")")throw new Error("Cannot serialize items with `"+l+"` for `options.bulletOrdered`, expected `.` or `)`");return l}function V0(t){const l=t.options.rule||"*";if(l!=="*"&&l!=="-"&&l!=="_")throw new Error("Cannot serialize rules with `"+l+"` for `options.rule`, expected `*`, `-`, or `_`");return l}function Ij(t,l,i,a){const o=i.enter("list"),c=i.bulletCurrent;let s=t.ordered?qj(i):Yd(i);const d=t.ordered?s==="."?")":".":Hj(i);let m=l&&i.bulletLastUsed?s===i.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(m=!0),V0(i)===s&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){m=!0;break}}}}m&&(s=d),i.bulletCurrent=s;const p=i.containerFlow(t,a);return i.bulletLastUsed=s,i.bulletCurrent=c,o(),p}function Vj(t){const l=t.options.listItemIndent||"one";if(l!=="tab"&&l!=="one"&&l!=="mixed")throw new Error("Cannot serialize items with `"+l+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return l}function Yj(t,l,i,a){const o=Vj(i);let c=i.bulletCurrent||Yd(i);l&&l.type==="list"&&l.ordered&&(c=(typeof l.start=="number"&&l.start>-1?l.start:1)+(i.options.incrementListMarker===!1?0:l.children.indexOf(t))+c);let s=c.length+1;(o==="tab"||o==="mixed"&&(l&&l.type==="list"&&l.spread||t.spread))&&(s=Math.ceil(s/4)*4);const d=i.createTracker(a);d.move(c+" ".repeat(s-c.length)),d.shift(s);const m=i.enter("listItem"),p=i.indentLines(i.containerFlow(t,d.current()),y);return m(),p;function y(g,v,S){return v?(S?"":" ".repeat(s))+g:(S?c:c+" ".repeat(s-c.length))+g}}function Gj(t,l,i,a){const o=i.enter("paragraph"),c=i.enter("phrasing"),s=i.containerPhrasing(t,a);return c(),o(),s}const Fj=zo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Xj(t,l,i,a){return(t.children.some(function(s){return Fj(s)})?i.containerPhrasing:i.containerFlow).call(i,t,a)}function Qj(t){const l=t.options.strong||"*";if(l!=="*"&&l!=="_")throw new Error("Cannot serialize strong with `"+l+"` for `options.strong`, expected `*`, or `_`");return l}Y0.peek=Zj;function Y0(t,l,i,a){const o=Qj(i),c=i.enter("strong"),s=i.createTracker(a),d=s.move(o+o);let m=s.move(i.containerPhrasing(t,{after:o,before:d,...s.current()}));const p=m.charCodeAt(0),y=wo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(m=Ta(p)+m.slice(1));const g=m.charCodeAt(m.length-1),v=wo(a.after.charCodeAt(0),g,o);v.inside&&(m=m.slice(0,-1)+Ta(g));const S=s.move(o+o);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},d+m+S}function Zj(t,l,i){return i.options.strong||"*"}function Kj(t,l,i,a){return i.safe(t.value,a)}function Pj(t){const l=t.options.ruleRepetition||3;if(l<3)throw new Error("Cannot serialize rules with repetition `"+l+"` for `options.ruleRepetition`, expected `3` or more");return l}function $j(t,l,i){const a=(V0(i)+(i.options.ruleSpaces?" ":"")).repeat(Pj(i));return i.options.ruleSpaces?a.slice(0,-1):a}const G0={blockquote:vj,break:ix,code:Tj,definition:Nj,emphasis:O0,hardBreak:ix,heading:_j,html:R0,image:L0,imageReference:U0,inlineCode:B0,link:q0,linkReference:I0,list:Ij,listItem:Yj,paragraph:Gj,root:Xj,strong:Y0,text:Kj,thematicBreak:$j};function Jj(){return{enter:{table:Wj,tableData:ax,tableHeader:ax,tableRow:t4},exit:{codeText:n4,table:e4,tableData:jf,tableHeader:jf,tableRow:jf}}}function Wj(t){const l=t._align;this.enter({type:"table",align:l.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function e4(t){this.exit(t),this.data.inTable=void 0}function t4(t){this.enter({type:"tableRow",children:[]},t)}function jf(t){this.exit(t)}function ax(t){this.enter({type:"tableCell",children:[]},t)}function n4(t){let l=this.resume();this.data.inTable&&(l=l.replace(/\\([\\|])/g,l4));const i=this.stack[this.stack.length-1];i.type,i.value=l,this.exit(t)}function l4(t,l){return l==="|"?l:t}function r4(t){const l=t||{},i=l.tableCellPadding,a=l.tablePipeAlign,o=l.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
373
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:s,tableCell:m,tableRow:d}};function s(S,E,A,j){return p(y(S,A,j),S.align)}function d(S,E,A,j){const N=g(S,A,j),L=p([N]);return L.slice(0,L.indexOf(`
374
+ `))}function m(S,E,A,j){const N=A.enter("tableCell"),L=A.enter("phrasing"),R=A.containerPhrasing(S,{...j,before:c,after:c});return L(),N(),R}function p(S,E){return xj(S,{align:E,alignDelimiters:a,padding:i,stringLength:o})}function y(S,E,A){const j=S.children;let N=-1;const L=[],R=E.enter("table");for(;++N<j.length;)L[N]=g(j[N],E,A);return R(),L}function g(S,E,A){const j=S.children;let N=-1;const L=[],R=E.enter("tableRow");for(;++N<j.length;)L[N]=m(j[N],S,E,A);return R(),L}function v(S,E,A){let j=G0.inlineCode(S,E,A);return A.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function i4(){return{exit:{taskListCheckValueChecked:ux,taskListCheckValueUnchecked:ux,paragraph:u4}}}function a4(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:o4}}}function ux(t){const l=this.stack[this.stack.length-2];l.type,l.checked=t.type==="taskListCheckValueChecked"}function u4(t){const l=this.stack[this.stack.length-2];if(l&&l.type==="listItem"&&typeof l.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const a=i.children[0];if(a&&a.type==="text"){const o=l.children;let c=-1,s;for(;++c<o.length;){const d=o[c];if(d.type==="paragraph"){s=d;break}}s===i&&(a.value=a.value.slice(1),a.value.length===0?i.children.shift():i.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,i.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function o4(t,l,i,a){const o=t.children[0],c=typeof t.checked=="boolean"&&o&&o.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",d=i.createTracker(a);c&&d.move(s);let m=G0.listItem(t,l,i,{...a,...d.current()});return c&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(y){return y+s}}function s4(){return[IN(),oj(),dj(),Jj(),i4()]}function c4(t){return{extensions:[VN(),sj(t),hj(),r4(t),a4()]}}const f4={tokenize:y4,partial:!0},F0={tokenize:x4,partial:!0},X0={tokenize:b4,partial:!0},Q0={tokenize:v4,partial:!0},d4={tokenize:S4,partial:!0},Z0={name:"wwwAutolink",tokenize:p4,previous:P0},K0={name:"protocolAutolink",tokenize:g4,previous:$0},ll={name:"emailAutolink",tokenize:m4,previous:J0},Dn={};function h4(){return{text:Dn}}let er=48;for(;er<123;)Dn[er]=ll,er++,er===58?er=65:er===91&&(er=97);Dn[43]=ll;Dn[45]=ll;Dn[46]=ll;Dn[95]=ll;Dn[72]=[ll,K0];Dn[104]=[ll,K0];Dn[87]=[ll,Z0];Dn[119]=[ll,Z0];function m4(t,l,i){const a=this;let o,c;return s;function s(g){return!ud(g)||!J0.call(a,a.previous)||Gd(a.events)?i(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return ud(g)?(t.consume(g),d):g===64?(t.consume(g),m):i(g)}function m(g){return g===46?t.check(d4,y,p)(g):g===45||g===95||Ct(g)?(c=!0,t.consume(g),m):y(g)}function p(g){return t.consume(g),o=!0,m}function y(g){return c&&o&&zt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),l(g)):i(g)}}function p4(t,l,i){const a=this;return o;function o(s){return s!==87&&s!==119||!P0.call(a,a.previous)||Gd(a.events)?i(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(f4,t.attempt(F0,t.attempt(X0,c),i),i)(s))}function c(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),l(s)}}function g4(t,l,i){const a=this;let o="",c=!1;return s;function s(g){return(g===72||g===104)&&$0.call(a,a.previous)&&!Gd(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),d):i(g)}function d(g){if(zt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),d;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),m}return i(g)}function m(g){return g===47?(t.consume(g),c?p:(c=!0,m)):i(g)}function p(g){return g===null||vo(g)||$e(g)||ar(g)||Ao(g)?i(g):t.attempt(F0,t.attempt(X0,y),i)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),l(g)}}function y4(t,l,i){let a=0;return o;function o(s){return(s===87||s===119)&&a<3?(a++,t.consume(s),o):s===46&&a===3?(t.consume(s),c):i(s)}function c(s){return s===null?i(s):l(s)}}function x4(t,l,i){let a,o,c;return s;function s(p){return p===46||p===95?t.check(Q0,m,d)(p):p===null||$e(p)||ar(p)||p!==45&&Ao(p)?m(p):(c=!0,t.consume(p),s)}function d(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),s}function m(p){return o||a||!c?i(p):l(p)}}function b4(t,l){let i=0,a=0;return o;function o(s){return s===40?(i++,t.consume(s),o):s===41&&a<i?c(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(Q0,l,c)(s):s===null||$e(s)||ar(s)?l(s):(t.consume(s),o)}function c(s){return s===41&&a++,t.consume(s),o}}function v4(t,l,i){return a;function a(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(t.consume(d),a):d===38?(t.consume(d),c):d===93?(t.consume(d),o):d===60||d===null||$e(d)||ar(d)?l(d):i(d)}function o(d){return d===null||d===40||d===91||$e(d)||ar(d)?l(d):a(d)}function c(d){return zt(d)?s(d):i(d)}function s(d){return d===59?(t.consume(d),a):zt(d)?(t.consume(d),s):i(d)}}function S4(t,l,i){return a;function a(c){return t.consume(c),o}function o(c){return Ct(c)?i(c):l(c)}}function P0(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||$e(t)}function $0(t){return!zt(t)}function J0(t){return!(t===47||ud(t))}function ud(t){return t===43||t===45||t===46||t===95||Ct(t)}function Gd(t){let l=t.length,i=!1;for(;l--;){const a=t[l][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const k4={tokenize:z4,partial:!0};function w4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:A4,continuation:{tokenize:N4},exit:j4}},text:{91:{name:"gfmFootnoteCall",tokenize:T4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:E4,resolveTo:C4}}}}function E4(t,l,i){const a=this;let o=a.events.length;const c=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s;for(;o--;){const m=a.events[o][1];if(m.type==="labelImage"){s=m;break}if(m.type==="gfmFootnoteCall"||m.type==="labelLink"||m.type==="label"||m.type==="image"||m.type==="link")break}return d;function d(m){if(!s||!s._balanced)return i(m);const p=Sn(a.sliceSerialize({start:s.end,end:a.now()}));return p.codePointAt(0)!==94||!c.includes(p.slice(1))?i(m):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(m),t.exit("gfmFootnoteCallLabelMarker"),l(m))}}function C4(t,l){let i=t.length;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[t[i+1],t[i+2],["enter",a,l],t[i+3],t[i+4],["enter",o,l],["exit",o,l],["enter",c,l],["enter",s,l],["exit",s,l],["exit",c,l],t[t.length-2],t[t.length-1],["exit",a,l]];return t.splice(i,t.length-i+1,...d),t}function T4(t,l,i){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c=0,s;return d;function d(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),m}function m(g){return g!==94?i(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(c>999||g===93&&!s||g===null||g===91||$e(g))return i(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(Sn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),l):i(g)}return $e(g)||(s=!0),c++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),c++,p):p(g)}}function A4(t,l,i){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c,s=0,d;return m;function m(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):i(E)}function y(E){if(s>999||E===93&&!d||E===null||E===91||$e(E))return i(E);if(E===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return c=Sn(a.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return $e(E)||(d=!0),s++,t.consume(E),E===92?g:y}function g(E){return E===91||E===92||E===93?(t.consume(E),s++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),o.includes(c)||o.push(c),Ue(t,S,"gfmFootnoteDefinitionWhitespace")):i(E)}function S(E){return l(E)}}function N4(t,l,i){return t.check(Ma,l,t.attempt(k4,l,i))}function j4(t){t.exit("gfmFootnoteDefinition")}function z4(t,l,i){const a=this;return Ue(t,o,"gfmFootnoteDefinitionIndent",5);function o(c){const s=a.events[a.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?l(c):i(c)}}function M4(t){let i=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:c,resolveAll:o};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(s,d){let m=-1;for(;++m<s.length;)if(s[m][0]==="enter"&&s[m][1].type==="strikethroughSequenceTemporary"&&s[m][1]._close){let p=m;for(;p--;)if(s[p][0]==="exit"&&s[p][1].type==="strikethroughSequenceTemporary"&&s[p][1]._open&&s[m][1].end.offset-s[m][1].start.offset===s[p][1].end.offset-s[p][1].start.offset){s[m][1].type="strikethroughSequence",s[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},s[p][1].start),end:Object.assign({},s[m][1].end)},g={type:"strikethroughText",start:Object.assign({},s[p][1].end),end:Object.assign({},s[m][1].start)},v=[["enter",y,d],["enter",s[p][1],d],["exit",s[p][1],d],["enter",g,d]],S=d.parser.constructs.insideSpan.null;S&&en(v,v.length,0,No(S,s.slice(p+1,m),d)),en(v,v.length,0,[["exit",g,d],["enter",s[m][1],d],["exit",s[m][1],d],["exit",y,d]]),en(s,p-1,m-p+3,v),m=p+v.length-2;break}}for(m=-1;++m<s.length;)s[m][1].type==="strikethroughSequenceTemporary"&&(s[m][1].type="data");return s}function c(s,d,m){const p=this.previous,y=this.events;let g=0;return v;function v(E){return p===126&&y[y.length-1][1].type!=="characterEscape"?m(E):(s.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const A=di(p);if(E===126)return g>1?m(E):(s.consume(E),g++,S);if(g<2&&!i)return m(E);const j=s.exit("strikethroughSequenceTemporary"),N=di(E);return j._open=!N||N===2&&!!A,j._close=!A||A===2&&!!N,d(E)}}}class _4{constructor(){this.map=[]}add(l,i,a){D4(this,l,i,a)}consume(l){if(this.map.sort(function(c,s){return c[0]-s[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(l.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),l.length=this.map[i][0];a.push(l.slice()),l.length=0;let o=a.pop();for(;o;){for(const c of o)l.push(c);o=a.pop()}this.map.length=0}}function D4(t,l,i,a){let o=0;if(!(i===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===l){t.map[o][1]+=i,t.map[o][2].push(...a);return}o+=1}t.map.push([l,i,a])}}function O4(t,l){let i=!1;const a=[];for(;l<t.length;){const o=t[l];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[l+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[l-1][1].type==="tableDelimiterMarker"){const c=a.length-1;a[c]=a[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);l+=1}return a}function R4(){return{flow:{null:{name:"table",tokenize:L4,resolveAll:U4}}}}function L4(t,l,i){const a=this;let o=0,c=0,s;return d;function d(H){let re=a.events.length-1;for(;re>-1;){const ue=a.events[re][1].type;if(ue==="lineEnding"||ue==="linePrefix")re--;else break}const $=re>-1?a.events[re][1].type:null,xe=$==="tableHead"||$==="tableRow"?D:m;return xe===D&&a.parser.lazy[a.now().line]?i(H):xe(H)}function m(H){return t.enter("tableHead"),t.enter("tableRow"),p(H)}function p(H){return H===124||(s=!0,c+=1),y(H)}function y(H){return H===null?i(H):be(H)?c>1?(c=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(H),t.exit("lineEnding"),S):i(H):De(H)?Ue(t,y,"whitespace")(H):(c+=1,s&&(s=!1,o+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),s=!0,y):(t.enter("data"),g(H)))}function g(H){return H===null||H===124||$e(H)?(t.exit("data"),y(H)):(t.consume(H),H===92?v:g)}function v(H){return H===92||H===124?(t.consume(H),g):g(H)}function S(H){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(H):(t.enter("tableDelimiterRow"),s=!1,De(H)?Ue(t,E,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):E(H))}function E(H){return H===45||H===58?j(H):H===124?(s=!0,t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),A):ee(H)}function A(H){return De(H)?Ue(t,j,"whitespace")(H):j(H)}function j(H){return H===58?(c+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),N):H===45?(c+=1,N(H)):H===null||be(H)?K(H):ee(H)}function N(H){return H===45?(t.enter("tableDelimiterFiller"),L(H)):ee(H)}function L(H){return H===45?(t.consume(H),L):H===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(H),t.exit("tableDelimiterMarker"),R):(t.exit("tableDelimiterFiller"),R(H))}function R(H){return De(H)?Ue(t,K,"whitespace")(H):K(H)}function K(H){return H===124?E(H):H===null||be(H)?!s||o!==c?ee(H):(t.exit("tableDelimiterRow"),t.exit("tableHead"),l(H)):ee(H)}function ee(H){return i(H)}function D(H){return t.enter("tableRow"),X(H)}function X(H){return H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),X):H===null||be(H)?(t.exit("tableRow"),l(H)):De(H)?Ue(t,X,"whitespace")(H):(t.enter("data"),V(H))}function V(H){return H===null||H===124||$e(H)?(t.exit("data"),X(H)):(t.consume(H),H===92?ae:V)}function ae(H){return H===92||H===124?(t.consume(H),V):V(H)}}function U4(t,l){let i=-1,a=!0,o=0,c=[0,0,0,0],s=[0,0,0,0],d=!1,m=0,p,y,g;const v=new _4;for(;++i<t.length;){const S=t[i],E=S[1];S[0]==="enter"?E.type==="tableHead"?(d=!1,m!==0&&(ox(v,l,m,p,y),y=void 0,m=0),p={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",p,l]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(a=!0,g=void 0,c=[0,0,0,0],s=[0,i+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",y,l]])),o=E.type==="tableDelimiterRow"?2:y?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(a=!1,s[2]===0&&(c[1]!==0&&(s[0]=s[1],g=co(v,l,c,o,void 0,g),c=[0,0,0,0]),s[2]=i)):E.type==="tableCellDivider"&&(a?a=!1:(c[1]!==0&&(s[0]=s[1],g=co(v,l,c,o,void 0,g)),c=s,s=[c[1],i,0,0])):E.type==="tableHead"?(d=!0,m=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(m=i,c[1]!==0?(s[0]=s[1],g=co(v,l,c,o,i,g)):s[1]!==0&&(g=co(v,l,s,o,i,g)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=i)}for(m!==0&&ox(v,l,m,p,y),v.consume(l.events),i=-1;++i<l.events.length;){const S=l.events[i];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=O4(l.events,i))}return t}function co(t,l,i,a,o,c){const s=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},ui(l.events,i[0])),t.add(i[0],0,[["exit",c,l]]));const m=ui(l.events,i[1]);if(c={type:s,start:Object.assign({},m),end:Object.assign({},m)},t.add(i[1],0,[["enter",c,l]]),i[2]!==0){const p=ui(l.events,i[2]),y=ui(l.events,i[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(i[2],0,[["enter",g,l]]),a!==2){const v=l.events[i[2]],S=l.events[i[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,A=i[3]-i[2]-1;t.add(E,A,[])}}t.add(i[3]+1,0,[["exit",g,l]])}return o!==void 0&&(c.end=Object.assign({},ui(l.events,o)),t.add(o,0,[["exit",c,l]]),c=void 0),c}function ox(t,l,i,a,o){const c=[],s=ui(l.events,i);o&&(o.end=Object.assign({},s),c.push(["exit",o,l])),a.end=Object.assign({},s),c.push(["exit",a,l]),t.add(i+1,0,c)}function ui(t,l){const i=t[l],a=i[0]==="enter"?"start":"end";return i[1][a]}const B4={name:"tasklistCheck",tokenize:q4};function H4(){return{text:{91:B4}}}function q4(t,l,i){const a=this;return o;function o(m){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(m):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),c)}function c(m){return $e(m)?(t.enter("taskListCheckValueUnchecked"),t.consume(m),t.exit("taskListCheckValueUnchecked"),s):m===88||m===120?(t.enter("taskListCheckValueChecked"),t.consume(m),t.exit("taskListCheckValueChecked"),s):i(m)}function s(m){return m===93?(t.enter("taskListCheckMarker"),t.consume(m),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),d):i(m)}function d(m){return be(m)?l(m):De(m)?t.check({tokenize:I4},l,i)(m):i(m)}}function I4(t,l,i){return Ue(t,a,"whitespace");function a(o){return o===null?i(o):l(o)}}function V4(t){return o0([h4(),w4(),M4(t),R4(),H4()])}const Y4={};function G4(t){const l=this,i=t||Y4,a=l.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),c=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),s=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(V4(i)),c.push(s4()),s.push(c4(i))}const F4="modulepreload",X4=function(t){return"/"+t},sx={},Fd=function(l,i,a){let o=Promise.resolve();if(i&&i.length>0){let s=function(p){return Promise.all(p.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),m=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=s(i.map(p=>{if(p=X4(p),p in sx)return;sx[p]=!0;const y=p.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":F4,y||(v.as="script"),v.crossOrigin="",v.href=p,m&&v.setAttribute("nonce",m),document.head.appendChild(v),y)return new Promise((S,E)=>{v.addEventListener("load",S),v.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(s){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=s,window.dispatchEvent(d),!d.defaultPrevented)throw s}return o.then(s=>{for(const d of s||[])d.status==="rejected"&&c(d.reason);return l().catch(c)})};let zf=null;const Mf=new Map;function W0(){return zf||(zf=Fd(async()=>{const{createHighlighter:t}=await import("./index-MIgeDul2.js");return{createHighlighter:t}},[]).then(({createHighlighter:t})=>t({themes:["github-dark"],langs:["plaintext"]}))),zf}function Q4(t){const l=Mf.get(t);if(l)return l;const i=Fd(()=>import("./index-MIgeDul2.js"),[]).then(async({bundledLanguages:a,isSpecialLang:o})=>{if(o(t))return;const c=a[t];if(!c)throw new Error(`unknown lang: ${t}`);const s=await W0();s.getLoadedLanguages().includes(t)||await s.loadLanguage(c)}).catch(a=>{throw Mf.delete(t),a});return Mf.set(t,i),i}function Z4({code:t,language:l}){const[i,a]=k.useState(null),[o,c]=k.useState(0),[s,d]=k.useState(!1),m=k.useRef(null);k.useEffect(()=>{let y=!1;async function g(){const v=await W0();if(y)return;let S="plaintext";if(l){const{isSpecialLang:E}=await Fd(async()=>{const{isSpecialLang:j}=await import("./index-MIgeDul2.js");return{isSpecialLang:j}},[]),A=v.getLoadedLanguages();E(l)||A.includes(l)?S=l:(Q4(l).then(()=>{y||c(j=>j+1)}).catch(()=>{}),S="plaintext")}try{const E=v.codeToHtml(t,{lang:S,theme:"github-dark"});y||a(E)}catch{}}return a(null),g().catch(()=>{}),()=>{y=!0}},[t,l,o]),k.useEffect(()=>()=>{m.current!==null&&clearTimeout(m.current)},[]);const p=k.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{d(!0),m.current!==null&&clearTimeout(m.current),m.current=setTimeout(()=>d(!1),2e3)}).catch(()=>{})},[t]);return x.jsxs("div",{className:"relative group rounded-md bg-secondary overflow-hidden mb-2",children:[l&&x.jsx("div",{className:"text-[10px] text-muted-foreground px-3 pt-1.5 select-none",children:l}),x.jsx("button",{onClick:p,"aria-label":"Copy code",className:"absolute top-1.5 right-2 z-10 opacity-0 group-hover:opacity-100 transition-opacity rounded p-1 text-muted-foreground hover:text-foreground hover:bg-white/10",children:s?x.jsx(dd,{size:13,strokeWidth:2.5}):x.jsx(bx,{size:13,strokeWidth:2})}),i!==null?x.jsx("div",{className:"overflow-x-auto text-xs leading-5 [&>pre]:p-3 [&>pre]:m-0 [&>pre]:bg-transparent! [&>pre]:font-mono",dangerouslySetInnerHTML:{__html:i}}):x.jsx("pre",{className:"overflow-x-auto p-3 font-mono text-xs leading-5 text-foreground",children:x.jsx("code",{children:t})})]})}const K4={h1:({children:t})=>x.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>x.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>x.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>x.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>x.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>x.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>x.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>x.jsx("blockquote",{className:"mb-2 border-l-2 border-brand/50 pl-3 italic text-muted-foreground",children:t}),a:({href:t,children:l})=>t&&/^(https?:\/\/|\/(?!\/)|#)/i.test(t)?x.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:l}):x.jsx("span",{className:"text-muted-foreground",children:l}),strong:({children:t})=>x.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>x.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>x.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>x.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:x.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>x.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>x.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>x.jsx("td",{className:"border-t border-border px-3 py-1.5",children:t}),code:({children:t,className:l})=>{var a;return((a=/language-(\w+)/.exec(l??""))==null?void 0:a[1])?x.jsx("code",{className:se("text-xs",l),children:t}):x.jsx("code",{className:"rounded bg-secondary px-1 py-0.5 font-mono text-[11px] text-foreground",children:t})},pre:({children:t})=>{var o,c,s;const l=t,i=(c=/language-(\w+)/.exec(((o=l==null?void 0:l.props)==null?void 0:o.className)??""))==null?void 0:c[1],a=String(((s=l==null?void 0:l.props)==null?void 0:s.children)??"").replace(/\n$/,"");return x.jsx(Z4,{code:a,language:i})}};function ev({text:t,className:l}){return x.jsx("div",{className:se("text-sm text-foreground",l),children:x.jsx(MN,{remarkPlugins:[G4],components:K4,children:t})})}function P4(){return x.jsx("span",{className:"streaming-cursor","aria-hidden":"true"})}const $4=/^[ \t]*(`{3,}|~{4,})/;function J4(t,l){if(l>=t.length)return l;const i=t.lastIndexOf(`
375
+ `,l-1)+1,a=t.slice(i,l);if($4.test(a)){const o=t.indexOf(`
376
+ `,l);return o===-1?t.length:o+1}return l}function W4({text:t,isStreaming:l,speed:i=80,onComplete:a}){const o=k.useRef(0),[c,s]=k.useState(0),d=k.useRef(null),m=k.useRef(null),p=k.useRef(!1),y=k.useRef(a);k.useEffect(()=>{y.current=a},[a]);const g=k.useRef(i);k.useEffect(()=>{g.current=i});const v=!l&&o.current===0&&t.length>0,S=k.useCallback(()=>{if(d.current!==null)return;function N(L){var H;const R=m.current??L,K=L-R;m.current=L;const ee=g.current/1e3,D=Math.max(1,Math.floor(ee*K)),X=o.current,V=t.length;if(X<V){const re=Math.min(X+D,V),$=J4(t,re);o.current=$,s($)}if(o.current>=t.length&&!l){d.current=null,m.current=null,p.current||(p.current=!0,(H=y.current)==null||H.call(y));return}d.current=requestAnimationFrame(N)}d.current=requestAnimationFrame(N)},[t,l]);k.useEffect(()=>{var N;if(v){o.current=t.length,s(t.length),p.current||(p.current=!0,(N=y.current)==null||N.call(y));return}return(o.current<t.length||l)&&S(),()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},[t,l,v]);const E=v?t.length:c,A=t.slice(0,E),j=E<t.length||l;return x.jsxs("span",{className:"streaming-text-root",children:[x.jsx(ev,{text:A}),j&&x.jsx(P4,{})]})}function tv({kind:t,text:l,className:i}){const[a,o]=k.useState(!1),c=k.useRef(null);k.useEffect(()=>()=>{c.current!==null&&clearTimeout(c.current)},[]);function s(){navigator.clipboard.writeText(l).then(()=>{o(!0),c.current!==null&&clearTimeout(c.current),c.current=setTimeout(()=>o(!1),2e3)}).catch(()=>{})}return x.jsx("div",{className:se("absolute top-1 right-1","opacity-0 group-hover:opacity-100 transition-opacity duration-150",i),children:x.jsx("div",{className:"flex items-center gap-0.5 rounded-md border border-border bg-card px-1 py-0.5 shadow-sm",children:t==="assistant"&&x.jsx(ez,{onClick:s,title:a?"Copied!":"Copy",children:a?x.jsx(dd,{className:"h-3.5 w-3.5 text-status-running"}):x.jsx(bx,{className:"h-3.5 w-3.5"})})})})}function ez({onClick:t,title:l,children:i}){return x.jsx("button",{type:"button",onClick:t,title:l,className:"h-6 w-6 rounded flex items-center justify-center hover:bg-secondary text-muted-foreground hover:text-foreground transition-colors",children:i})}function nv({text:t}){return x.jsxs("div",{className:"group relative flex flex-col items-end gap-1",children:[x.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground/50",children:"You"}),x.jsx("p",{className:"max-w-2xl text-sm leading-relaxed text-foreground whitespace-pre-wrap text-right",children:t}),x.jsx(tv,{kind:"user",text:t})]})}function lv({text:t,isStreaming:l=!1}){return x.jsxs("div",{className:"group relative flex flex-col gap-1",children:[x.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-brand/60",children:"Agent"}),x.jsx("div",{className:"max-w-3xl",children:l?x.jsx(W4,{text:t,isStreaming:!0}):x.jsx(ev,{text:t})}),x.jsx(tv,{kind:"assistant",text:t})]})}function rv({message:t}){return x.jsxs("div",{className:"flex items-start gap-2.5 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3",children:[x.jsx(xx,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),x.jsx("p",{className:"text-sm leading-relaxed text-status-failed",children:t})]})}function iv({text:t}){return x.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",children:[x.jsx(vx,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),x.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function av({item:t}){return x.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[x.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),x.jsx("span",{className:"text-xs text-foreground",children:t.label}),x.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",t.status==="completed"?"text-status-running":"",t.status==="failed"?"text-status-failed":"",t.status==="running"?"text-status-blocked":""),children:t.status})]})}function tz(t){const l=[];let i=0;for(;i<t.length;){const a=t[i];if(a===void 0){i++;continue}if(a.kind!=="subagent"){l.push({kind:"item",item:a}),i++;continue}const o=[];for(;i<t.length;){const c=t[i];if(c===void 0||c.kind!=="subagent")break;o.push(c),i++}l.push({kind:"subagent-group",items:o,id:o[0].id})}return l}function nz(t,l=!1){switch(t.kind){case"user":return x.jsx(nv,{text:t.text});case"assistant":return x.jsx(lv,{text:t.text,isStreaming:l});case"thinking":return x.jsx(Lb,{text:t.text});case"tool":return x.jsx(HE,{...t});case"error":return x.jsx(rv,{message:t.message});case"notice":return x.jsx(iv,{text:t.text});case"bg_job":return x.jsx(av,{item:t});case"subagent":return null}}function lz(t,l=!1){switch(t.kind){case"user":return x.jsx(nv,{text:t.text});case"assistant":return x.jsx(lv,{text:t.text,isStreaming:l});case"thinking":return x.jsx(Lb,{text:t.text});case"error":return x.jsx(rv,{message:t.message});case"notice":return x.jsx(iv,{text:t.text});case"bg_job":return x.jsx(av,{item:t});default:return null}}function rz({sessionId:t,...l}){return x.jsx(Hb.Provider,{value:t??null,children:x.jsx(iz,{...l})})}function iz({items:t,totals:l,spineMode:i=!0,turnActive:a=!1}){const o=k.useMemo(()=>tz(t),[t]),c=xC(t),s=k.useMemo(()=>{var m;for(let p=t.length-1;p>=0;p--)if(((m=t[p])==null?void 0:m.kind)==="assistant")return t[p].id;return null},[t]),d=k.useCallback((m,p)=>{const y=m.kind==="user"&&p>0,g=a&&m.id===s;return x.jsxs("div",{children:[y&&x.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),x.jsx("div",{className:"py-2 px-1",children:lz(m,g)})]},m.id)},[a,s]);return x.jsxs("div",{className:"flex flex-col gap-0 max-w-4xl mx-auto w-full",children:[l&&x.jsx(Vb,{totals:l,className:"sticky top-0 z-10 mb-4 rounded-md border border-border bg-card px-3 py-1.5"}),t.length===0?x.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):i?x.jsx(yC,{slots:c,renderTextItem:d}):o.map((m,p)=>{if(m.kind==="item"){const{item:g}=m,v=g.kind==="user"&&p>0,S=a&&g.id===s;return x.jsxs("div",{children:[v&&x.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),x.jsx("div",{className:"py-2 px-1",children:nz(g,S)})]},g.id)}const y=ZE(m.items);return x.jsx("div",{className:"py-2 px-1",children:x.jsx(FE,{roots:y})},m.id)})]})}const az={preference:"Preference",convention:"Convention",decision:"Decision",learning:"Learning"};function uz({type:t}){return x.jsx("span",{className:se("inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium",t==="fact"?"bg-blue-500/15 text-blue-400":"bg-violet-500/15 text-violet-400"),children:t})}function oz({category:t}){return t?x.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-zinc-700 text-zinc-300",children:az[t]??t}):null}function sz({result:t}){const l=t.content.length>200?t.content.slice(0,200)+"…":t.content,i=t.created_at?new Date(t.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):null;return x.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[x.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[x.jsx(uz,{type:t.type}),x.jsx(oz,{category:t.category}),i&&x.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:i})]}),x.jsx("p",{className:"text-sm text-zinc-300 leading-relaxed whitespace-pre-wrap break-words",children:l})]})}function cz({pct:t,truncated:l}){const i=Math.min(t,100),a=t>=100?"bg-red-500":t>=80?"bg-amber-400":"bg-accent";return x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:x.jsx("div",{className:se("h-full rounded-full transition-all",a),style:{width:`${i}%`}})}),l&&x.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-amber-400/15 text-amber-400",children:"Truncated"})]})}function fz({hot:t}){if(!t)return null;const{content:l,usage:i}=t;return x.jsxs("section",{className:"space-y-2",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),x.jsxs("span",{className:"text-xs text-zinc-500",children:[i.tokens.toLocaleString()," / ",i.maxTokens.toLocaleString()," tokens"]})]}),x.jsx(cz,{pct:i.pct,truncated:i.truncated}),l?x.jsx("pre",{className:"rounded-md border border-zinc-800 bg-zinc-950 p-3 text-xs text-zinc-300 font-mono overflow-x-auto whitespace-pre-wrap max-h-48",children:l}):x.jsx("p",{className:"text-xs text-zinc-500 italic",children:"No hot memory loaded."})]})}const dz=[{value:"",label:"All Categories"},{value:"preference",label:"Preference"},{value:"convention",label:"Convention"},{value:"decision",label:"Decision"},{value:"learning",label:"Learning"}];function hz(){const[t,l]=k.useState(null),[i,a]=k.useState(""),[o,c]=k.useState(""),[s,d]=k.useState(null),[m,p]=k.useState(!1),[y,g]=k.useState(null);k.useEffect(()=>{tt("/api/memory/hot").then(l).catch(()=>{})},[]);const v=k.useCallback(async S=>{S.preventDefault(),p(!0),g(null);try{const E=new URLSearchParams({q:i,limit:"20"});o&&E.set("category",o);const A=await tt(`/api/memory/search?${E.toString()}`);d(A.results)}catch(E){g(E instanceof Error?E.message:"Search failed")}finally{p(!1)}},[i,o]);return x.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[x.jsx(fz,{hot:t}),x.jsxs("section",{className:"space-y-3",children:[x.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),x.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[x.jsx("input",{type:"text",value:i,onChange:S=>a(S.target.value),placeholder:"FTS5 query…",className:"flex-1 min-w-0 rounded-md border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:ring-1 focus:ring-accent"}),x.jsx("select",{value:o,onChange:S=>c(S.target.value),className:"rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-100 focus:outline-none focus:ring-1 focus:ring-accent",children:dz.map(S=>x.jsx("option",{value:S.value,children:S.label},S.value))}),x.jsx("button",{type:"submit",disabled:m,className:"rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white disabled:opacity-50 hover:opacity-90 transition-opacity",children:m?"Searching…":"Search"})]}),y&&x.jsx("p",{className:"text-xs text-red-400",children:y}),s!==null&&x.jsx("div",{className:"space-y-2",children:s.length===0?x.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):s.map(S=>x.jsx(sz,{result:S},`${S.type}-${S.created_at}-${S.content.slice(0,32)}`))})]})]})}const mz={success:{label:"Success",className:"bg-status-done/20 text-status-done border-status-done/30"},error:{label:"Error",className:"bg-status-failed/20 text-status-failed border-status-failed/30"},skipped:{label:"Skipped",className:"bg-muted text-muted-foreground border-border"}};function pz(t){if(t<1e3)return`${t}ms`;const l=Math.floor(t/1e3);return l<60?`${l}s`:`${Math.floor(l/60)}m ${l%60}s`}function gz(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function yz({schedule:t,onClose:l}){const[i,a]=k.useState([]),[o,c]=k.useState(!0),[s,d]=k.useState(null);return k.useEffect(()=>{let m=!1;return c(!0),d(null),tt(`/api/schedules/${t.id}/history`).then(p=>{m||a(p.history)}).catch(p=>{m||d(p instanceof Error?p.message:"Failed to load history")}).finally(()=>{m||c(!1)}),()=>{m=!0}},[t.id]),k.useEffect(()=>{const m=p=>{p.key==="Escape"&&l()};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[l]),x.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:m=>{m.target===m.currentTarget&&l()},children:x.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[x.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[x.jsxs("div",{children:[x.jsx("h2",{className:"text-sm font-semibold",children:t.name}),x.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),x.jsx("button",{onClick:l,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:"✕"})]}),x.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&x.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),s&&x.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:s}),!o&&!s&&i.length===0&&x.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!s&&i.length>0&&x.jsx("ul",{className:"space-y-2",children:i.map((m,p)=>{const y=mz[m.status];return x.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[x.jsx("span",{className:se("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",y.className),children:y.label}),x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsxs("div",{className:"flex items-center justify-between gap-2",children:[x.jsx("span",{className:"text-xs text-muted-foreground",children:gz(m.triggeredAt)}),x.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:pz(m.durationMs)})]}),m.errorMessage&&x.jsx("p",{className:"mt-1 truncate font-mono text-xs text-status-failed",children:m.errorMessage})]})]},`${m.taskId}-${m.triggeredAt}-${p}`)})})]})]})})}function xz({status:t}){return t?x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("span",{className:se("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),x.jsx("span",{className:"text-sm text-muted-foreground",children:t.running?`Running${t.tasks!=null?` (${t.tasks} task${t.tasks!==1?"s":""})`:""}`:"Stopped"})]}):null}function uv({checked:t,onChange:l,disabled:i}){return x.jsx("button",{role:"switch","aria-checked":t,onClick:a=>{a.stopPropagation(),l()},disabled:i,className:se("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",t?"bg-brand":"bg-muted"),children:x.jsx("span",{className:se("block size-4 rounded-full bg-white shadow transition-transform",t?"translate-x-4":"translate-x-0")})})}function bz({schedule:t,onToggle:l,onDelete:i,onShowHistory:a}){const[o,c]=k.useState(!1),[s,d]=k.useState(!1),m=async()=>{c(!0),await l(t.id).finally(()=>c(!1))},p=async g=>{g.stopPropagation(),window.confirm(`Delete schedule "${t.name}"? This cannot be undone.`)&&(d(!0),await i(t.id).finally(()=>d(!1)))},y=t.trigger==="both"?"cron + session start":t.trigger??"cron";return x.jsxs("div",{className:se("group flex cursor-pointer flex-col gap-3 rounded-xl border border-border bg-card p-4","transition-colors hover:border-brand/40 hover:bg-accent/30",!t.enabled&&"opacity-60"),onClick:()=>a(t),children:[x.jsxs("div",{className:"flex items-start justify-between gap-3",children:[x.jsxs("div",{className:"min-w-0 flex-1",children:[x.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),x.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),x.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[x.jsx(uv,{checked:t.enabled,onChange:()=>{m()},disabled:o}),x.jsx("button",{onClick:p,disabled:s,"aria-label":`Delete schedule ${t.name}`,className:se("flex size-7 items-center justify-center rounded-md text-muted-foreground","opacity-0 transition-opacity group-hover:opacity-100","hover:bg-destructive/20 hover:text-status-failed","disabled:cursor-not-allowed disabled:opacity-40"),children:"🗑"})]})]}),x.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),x.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[x.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:y}),t.notifyOn&&t.notifyOn!=="never"&&x.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),x.jsx("span",{className:"ml-auto",children:"Click for history"})]})]})}const vz={name:"",command:"",cron:"",trigger:"cron",notifyOn:"failure",enabled:!0};function Sz({onCreated:t,onCancel:l}){const[i,a]=k.useState(vz),[o,c]=k.useState(!1),[s,d]=k.useState(null),m=async g=>{if(g.preventDefault(),d(null),!i.name.trim()){d("Name is required.");return}if(!i.command.trim()){d("Command is required.");return}if(!i.cron.trim()){d("Cron expression is required.");return}c(!0);try{const v=await tt("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});t(v.schedule,v.syncNote)}catch(v){d(v instanceof Error?v.message:"Failed to create schedule.")}finally{c(!1)}},p=(g,v)=>x.jsxs("div",{className:"flex flex-col gap-1",children:[x.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:g}),v]}),y=se("h-8 rounded-md border border-border bg-card px-3 text-sm","placeholder:text-muted-foreground/50","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed disabled:opacity-50");return x.jsxs("form",{onSubmit:g=>{m(g)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[x.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),x.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[p("Name *",x.jsx("input",{type:"text",className:y,placeholder:"e.g. Nightly cleanup",value:i.name,onChange:g=>a(v=>({...v,name:g.target.value})),required:!0,disabled:o})),p("Cron expression *",x.jsx("input",{type:"text",className:se(y,"font-mono"),placeholder:"0 2 * * *",value:i.cron,onChange:g=>a(v=>({...v,cron:g.target.value})),required:!0,disabled:o}))]}),p("Command *",x.jsx("input",{type:"text",className:se(y,"font-mono"),placeholder:"/my-skill --auto",value:i.command,onChange:g=>a(v=>({...v,command:g.target.value})),required:!0,disabled:o})),x.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[p("Trigger",x.jsxs("select",{className:y,value:i.trigger,onChange:g=>a(v=>({...v,trigger:g.target.value})),disabled:o,children:[x.jsx("option",{value:"cron",children:"cron"}),x.jsx("option",{value:"sessionstart",children:"session start"}),x.jsx("option",{value:"both",children:"both"})]})),p("Notify on",x.jsxs("select",{className:y,value:i.notifyOn,onChange:g=>a(v=>({...v,notifyOn:g.target.value})),disabled:o,children:[x.jsx("option",{value:"failure",children:"failure"}),x.jsx("option",{value:"always",children:"always"}),x.jsx("option",{value:"never",children:"never"})]})),x.jsxs("div",{className:"flex flex-col gap-1",children:[x.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),x.jsx("div",{className:"flex h-8 items-center",children:x.jsx(uv,{checked:i.enabled,onChange:()=>a(g=>({...g,enabled:!g.enabled})),disabled:o})})]})]}),s&&x.jsx("p",{className:"rounded-md border border-status-failed/30 bg-status-failed/10 px-3 py-2 text-xs text-status-failed",children:s}),x.jsxs("div",{className:"flex items-center justify-end gap-2",children:[x.jsx("button",{type:"button",onClick:l,disabled:o,className:se("h-8 rounded-md px-3 text-sm text-muted-foreground","hover:bg-accent hover:text-foreground","disabled:cursor-not-allowed disabled:opacity-50"),children:"Cancel"}),x.jsx("button",{type:"submit",disabled:o,className:se("h-8 rounded-md bg-brand px-4 text-sm font-medium text-white","hover:bg-brand/90","disabled:cursor-not-allowed disabled:opacity-50"),children:o?"Creating…":"Create"})]})]})}function kz(){const[t,l]=k.useState([]),[i,a]=k.useState(null),[o,c]=k.useState(!0),[s,d]=k.useState(null),[m,p]=k.useState(null),[y,g]=k.useState(!1),[v,S]=k.useState(null);k.useEffect(()=>{let N=!1;return c(!0),d(null),Promise.all([tt("/api/schedules"),tt("/api/daemon/status")]).then(([L,R])=>{N||(l(L.schedules),a(R))}).catch(L=>{N||d(L instanceof Error?L.message:"Failed to load schedules")}).finally(()=>{N||c(!1)}),()=>{N=!0}},[]);const E=k.useCallback(async N=>{const L=await tt(`/api/schedules/${N}/toggle`,{method:"POST"});l(R=>R.map(K=>K.id===N?{...K,enabled:L.enabled}:K)),L.syncNote&&(S(L.syncNote),setTimeout(()=>S(null),8e3))},[]),A=k.useCallback(async N=>{await tt(`/api/schedules/${N}`,{method:"DELETE"}),l(L=>L.filter(R=>R.id!==N))},[]),j=k.useCallback((N,L)=>{l(R=>[...R,N]),g(!1),L&&(S(L),setTimeout(()=>S(null),8e3))},[]);return o?x.jsx("div",{className:"flex flex-1 items-center justify-center",children:x.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):x.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(xz,{status:i}),x.jsx("button",{onClick:()=>g(N=>!N),className:se("h-7 rounded-md px-3 text-xs font-medium",y?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:y?"Cancel":"+ New Schedule"})]})]}),y&&x.jsx(Sz,{onCreated:j,onCancel:()=>g(!1)}),v&&x.jsx("p",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-700 dark:text-yellow-400",children:v}),s&&x.jsx("p",{className:"rounded-lg border border-status-failed/30 bg-status-failed/10 px-4 py-3 text-sm text-status-failed",children:s}),!s&&t.length===0&&!y&&x.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),x.jsx("div",{className:"grid gap-3",children:t.map(N=>x.jsx(bz,{schedule:N,onToggle:E,onDelete:A,onShowHistory:p},N.id))}),m&&x.jsx(yz,{schedule:m,onClose:()=>p(null)})]})}function wz(t,l){const i=(l??Date.now())-t;if(i<1e3)return`${i}ms`;const a=Math.floor(i/1e3);if(a<60)return`${a}s`;const o=Math.floor(a/60);return o<60?`${o}m ${a%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function Ez(t){const l=Math.floor((Date.now()-t)/1e3);if(l<60)return`${l}s ago`;const i=Math.floor(l/60);if(i<60)return`${i}m ago`;const a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function Cz(t){const l=t.lastIndexOf("/");return l!==-1?t.slice(l+1):t}const Tz={running:"bg-green-500/20 text-green-400 border border-green-500/30",completed:"bg-blue-500/20 text-blue-400 border border-blue-500/30",failed:"bg-red-500/20 text-red-400 border border-red-500/30",cancelled:"bg-neutral-500/20 text-neutral-400 border border-neutral-500/30"};function fo(t){return t.status!=="running"}function Az({status:t}){return x.jsxs("span",{className:se("inline-flex items-center gap-1.5 rounded px-1.5 py-0.5 text-xs font-medium",Tz[t]),children:[t==="running"&&x.jsx("span",{className:"size-1.5 rounded-full bg-green-400 animate-pulse"}),t]})}function cx({job:t,now:l,onCancel:i}){const[a,o]=k.useState(!1),[c,s]=k.useState(!1),[d,m]=k.useState(null),p=wz(t.startedAt,t.status==="running"?l:t.endedAt),y=Ez(t.startedAt),g=a?hd:Eo,v=async S=>{S.stopPropagation(),m(null),s(!0);try{await i(t.jobId)}catch(E){m(E instanceof Error?E.message:String(E))}finally{s(!1)}};return x.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[x.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(S=>!S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(E=>!E))},className:"w-full text-left px-4 py-3 flex flex-col gap-2 hover:bg-neutral-800/50 transition-colors cursor-pointer",children:[x.jsxs("div",{className:"flex items-start justify-between gap-2",children:[x.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[x.jsx(g,{className:"size-3.5 shrink-0 text-neutral-500"}),x.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),x.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[x.jsx(Az,{status:t.status}),t.status==="running"&&x.jsxs("button",{type:"button",onClick:v,disabled:c,"aria-label":`Cancel job ${t.jobId}`,className:se("flex items-center gap-1 rounded px-1.5 py-0.5 text-xs","text-neutral-500 hover:text-red-400 hover:bg-red-500/10","disabled:opacity-40 transition-colors"),children:[x.jsx(md,{className:"size-3"}),c?"Cancelling…":"Cancel"]})]})]}),x.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[x.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:Cz(t.model)}),x.jsx("span",{children:p}),x.jsx("span",{children:y})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&x.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[x.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",x.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),d&&x.jsx("p",{className:"pl-5 text-xs text-red-400",title:d,children:d.length>200?d.slice(0,200)+"…":d})]}),a&&x.jsxs("div",{className:"border-t border-neutral-800 px-4 py-3 bg-neutral-950 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-xs",children:[x.jsx(vn,{label:"Job ID",value:t.jobId,mono:!0}),x.jsx(vn,{label:"Subagent ID",value:t.subagentId,mono:!0}),x.jsx(vn,{label:"Model",value:t.model,mono:!0}),x.jsx(vn,{label:"Status",value:t.status}),x.jsx(vn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&x.jsx(vn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),x.jsx(vn,{label:"Duration",value:p}),t.parentSessionId&&x.jsx(vn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&x.jsx(vn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),x.jsx(vn,{label:"Prompt hash",value:t.promptHash,mono:!0}),x.jsx(vn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function vn({label:t,value:l,mono:i=!1}){return x.jsxs(x.Fragment,{children:[x.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),x.jsx("span",{className:se("text-neutral-300 break-all",i&&"font-mono"),children:l})]})}function fx({label:t,count:l}){return x.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[x.jsx("span",{children:t}),x.jsx("span",{className:"rounded-full bg-neutral-800 px-1.5 py-0.5 text-neutral-400 normal-case",children:l})]})}function Nz(){const[t,l]=k.useState([]),[i,a]=k.useState(!0),[o,c]=k.useState(null),[s,d]=k.useState(()=>Date.now()),m=k.useRef(null),p=k.useCallback((E=!1)=>{E||a(!0),c(null),tt("/api/bg-jobs").then(({jobs:A})=>l([...A].sort((j,N)=>N.startedAt-j.startedAt))).catch(A=>c(A instanceof Error?A.message:String(A))).finally(()=>{E||a(!1)})},[]);k.useEffect(()=>{p()},[p]),k.useEffect(()=>{const E=t.some(A=>!fo(A));return E&&!m.current&&(m.current=setInterval(()=>p(!0),5e3)),!E&&m.current&&(clearInterval(m.current),m.current=null),()=>{m.current&&(clearInterval(m.current),m.current=null)}},[t,p]),k.useEffect(()=>{if(!t.some(j=>!fo(j)))return;const A=setInterval(()=>d(Date.now()),1e3);return()=>clearInterval(A)},[t]);const y=k.useCallback(async E=>{await tt(`/api/bg-jobs/${encodeURIComponent(E)}/cancel`,{method:"POST"}),l(A=>A.map(j=>j.jobId===E?{...j,status:"cancelled"}:j))},[]),g=t.filter(E=>E.status==="running"),v=t.filter(E=>fo(E)),S=t.some(E=>!fo(E));return x.jsxs("div",{className:"flex flex-col gap-4",children:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[x.jsx(yx,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&x.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),x.jsxs("button",{onClick:()=>p(),disabled:i,className:"flex items-center gap-1.5 rounded px-2 py-1 text-xs text-neutral-400 hover:text-neutral-200 hover:bg-neutral-800 disabled:opacity-50 transition-colors",children:[x.jsx(ok,{className:se("size-3",i&&"animate-spin")}),"Refresh"]})]}),o&&x.jsx("p",{className:"rounded border border-red-900/40 bg-red-950/30 px-3 py-2 text-xs text-red-400",children:o}),!i&&t.length===0&&!o&&x.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),g.length>0&&x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx(fx,{label:"Running",count:g.length}),g.map(E=>x.jsx(cx,{job:E,now:s,onCancel:y},E.jobId))]}),v.length>0&&x.jsxs("div",{className:"flex flex-col gap-2",children:[x.jsx(fx,{label:"Settled",count:v.length}),v.map(E=>x.jsx(cx,{job:E,now:s,onCancel:y},E.jobId))]})]})}function ya({icon:t,title:l,children:i}){return x.jsxs("section",{className:"space-y-3",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(t,{className:"size-4 text-muted-foreground"}),x.jsx("h2",{className:"text-sm font-semibold",children:l})]}),x.jsx("div",{className:"rounded-xl border border-border bg-card",children:i})]})}function Vt({label:t,value:l,mono:i=!1,last:a=!1}){return x.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[x.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),x.jsx("span",{className:se("min-w-0 truncate text-right text-xs",i?"font-mono text-zinc-300":"text-zinc-200"),children:l})]})}function jz({model:t,last:l}){return x.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!l&&"border-b border-border"),children:[x.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),x.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.id})]})}const dx=[{keys:"⌘K",description:"Open command palette"},{keys:"⌘1",description:"Go to Sessions"},{keys:"⌘2",description:"Go to Memory"},{keys:"⌘3",description:"Go to Schedules"},{keys:"⌘4",description:"Go to Background Jobs"}];function zz({keys:t,description:l,last:i}){return x.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!i&&"border-b border-border"),children:[x.jsx("span",{className:"text-xs text-zinc-200",children:l}),x.jsx("kbd",{className:"rounded border border-border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:t})]})}function Mz({status:t}){return t?x.jsxs("span",{className:"flex items-center gap-1.5",children:[x.jsx("span",{className:se("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),x.jsx("span",{className:se("text-xs",t.running?"text-zinc-200":"text-muted-foreground"),children:t.running?`Running${t.tasks!=null?` · ${t.tasks} task${t.tasks!==1?"s":""}`:""}`:"Stopped"})]}):x.jsx("span",{className:"text-xs text-muted-foreground",children:"–"})}function _z(){var o;const[t,l]=k.useState({config:null,models:null,daemon:null,configError:null,modelsError:null,daemonError:null});k.useEffect(()=>{let c=!1;const s=d=>d instanceof Error?d.message:"Failed to load";return Promise.all([tt("/api/config").then(d=>({ok:!0,config:d}),d=>({ok:!1,error:s(d)})),tt("/api/models").then(d=>({ok:!0,models:d.models}),d=>({ok:!1,error:s(d)})),tt("/api/daemon/status").then(d=>({ok:!0,daemon:d}),d=>({ok:!1,error:s(d)}))]).then(([d,m,p])=>{c||l({config:d.ok?d.config:null,configError:d.ok?null:d.error,models:m.ok?m.models:null,modelsError:m.ok?null:m.error,daemon:p.ok?p.daemon:null,daemonError:p.ok?null:p.error})}).catch(()=>{}),()=>{c=!0}},[]);const i=t.config,a=x.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return x.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[x.jsxs(ya,{icon:vx,title:"About",children:[x.jsx(Vt,{label:"AFK version",value:i?i.version:a,mono:!0}),x.jsx(Vt,{label:"Node.js",value:i?i.nodeVersion:a,mono:!0}),x.jsx(Vt,{label:"App",value:"AFK Dashboard",last:!0})]}),x.jsxs(ya,{icon:QS,title:"Model",children:[x.jsx(Vt,{label:"Default model",value:i?i.model:a,mono:!0}),t.modelsError?x.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?x.jsx(Vt,{label:"Available tiers",value:a,last:!0}):t.models.length===0?x.jsx(Vt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((c,s)=>{var d;return x.jsx(jz,{model:c,last:s===(((d=t.models)==null?void 0:d.length)??0)-1},c.id)})]}),x.jsxs(ya,{icon:KS,title:"Paths",children:[x.jsx(Vt,{label:"AFK home",value:i?i.afkHome:a,mono:!0}),x.jsx(Vt,{label:"State dir",value:i?i.stateDir:a,mono:!0}),x.jsx(Vt,{label:"Config dir",value:i?i.configDir:a,mono:!0,last:!0})]}),x.jsxs(ya,{icon:oi,title:"Web Server",children:[x.jsx(Vt,{label:"Host",value:i?i.webHost:a,mono:!0}),x.jsx(Vt,{label:"Port",value:i?String(i.webPort):a,mono:!0}),x.jsx(Vt,{label:"Daemon",value:x.jsx(Mz,{status:t.daemon})}),!t.daemonError&&x.jsx(Vt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&x.jsx(Vt,{label:"Daemon error",value:t.daemonError,last:!0})]}),x.jsx(ya,{icon:PS,title:"Keyboard Shortcuts",children:dx.map((c,s)=>x.jsx(zz,{keys:c.keys,description:c.description,last:s===dx.length-1},c.keys))})]})}function od(t){return t.startsWith("/")?t.slice(1):t}function ov(t){return`/${od(t)}`}function sv(t,l){return od(t).startsWith(od(l))}function Dz({query:t,commands:l,onSelect:i,visible:a}){const[o,c]=k.useState(0),s=k.useRef(null),d=l.filter(m=>sv(m.name,t)).slice(0,8);return k.useEffect(()=>{c(0)},[t]),k.useEffect(()=>{var p;const m=(p=s.current)==null?void 0:p.children[o];m==null||m.scrollIntoView({block:"nearest"})},[o]),!a||d.length===0?null:x.jsx("ul",{ref:s,role:"listbox","aria-label":"Slash commands",className:se("absolute bottom-full left-0 mb-1 w-full max-h-56 overflow-y-auto","rounded-lg border border-border bg-popover shadow-lg z-50","text-sm"),children:d.map((m,p)=>x.jsxs("li",{role:"option","aria-selected":p===o,className:se("flex items-baseline gap-2 px-3 py-2 cursor-pointer select-none",p===o?"bg-accent text-accent-foreground":"hover:bg-accent/50"),onMouseEnter:()=>c(p),onMouseDown:y=>{y.preventDefault(),i(m.name)},children:[x.jsx("span",{className:"font-mono font-semibold shrink-0",children:ov(m.name)}),x.jsx("span",{className:"text-muted-foreground truncate",children:m.summary})]},m.name))})}function Oz(t,l,i,a,o,c,s){return!l||i===0?!1:t.key==="ArrowDown"?(o((a+1)%i),!0):t.key==="ArrowUp"?(o((a-1+i)%i),!0):t.key==="Enter"?(c(a),!0):t.key==="Escape"?(s(),!0):!1}function Rz(t){const l=t.trim();return l?l.startsWith("/")||l.startsWith("./")||l.startsWith("~/")||/^[\w.]/.test(l):!1}function Lz({onInsert:t}){const[l,i]=k.useState(!1),[a,o]=k.useState(""),[c,s]=k.useState(!1),d=k.useRef(null),m=k.useRef(null),p=k.useRef(null),y=k.useCallback(()=>{i(!1),s(!1),o("")},[]),g=k.useCallback(()=>{var S;const v=a.trim();if(!Rz(v)){s(!0),(S=d.current)==null||S.focus();return}t(`@${v}`),y()},[a,t,y]);return k.useEffect(()=>{l&&requestAnimationFrame(()=>{var v;return(v=d.current)==null?void 0:v.focus()})},[l]),k.useEffect(()=>{if(!l)return;function v(S){const E=S.target;m.current&&!m.current.contains(E)&&p.current&&!p.current.contains(E)&&y()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[l,y]),x.jsxs("div",{className:"relative",children:[x.jsx("button",{ref:p,type:"button",onClick:()=>l?y():i(!0),"aria-label":"Insert file reference","aria-expanded":l,className:se("flex h-8 w-8 items-center justify-center rounded-md text-sm","transition-colors hover:bg-accent hover:text-accent-foreground",l&&"bg-accent text-accent-foreground"),title:"Insert @file reference",children:x.jsx(ZS,{className:"h-4 w-4"})}),l&&x.jsxs("div",{ref:m,role:"dialog","aria-label":"Insert file path",className:se("absolute bottom-full left-0 mb-2 w-72 rounded-lg border","bg-popover p-3 shadow-lg animate-fade-in"),children:[x.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",x.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",x.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx("input",{ref:d,type:"text",value:a,onChange:v=>{o(v.target.value),s(!1)},onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),g()),v.key==="Escape"&&y()},placeholder:"src/foo.ts or ~/file.ts",autoComplete:"off",spellCheck:!1,className:se("flex-1 rounded-md border bg-secondary px-2 py-1 text-sm","placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",c&&"border-destructive")}),x.jsx("button",{type:"button",onClick:g,className:se("rounded-md bg-primary px-3 py-1 text-sm font-medium","text-primary-foreground hover:bg-primary/90"),children:"Add"})]}),c&&x.jsx("p",{className:"mt-1 text-xs text-destructive",children:"Enter a valid file path."})]})]})}const Uz=[{id:"sonnet",label:"Sonnet"},{id:"haiku",label:"Haiku"},{id:"opus",label:"Opus"}],Bz="sonnet";function Hz({onSelect:t,current:l,className:i}){const[a,o]=k.useState(Uz),c=k.useRef(!1);k.useEffect(()=>{let m=!1;return tt("/api/models").then(p=>{!m&&p.models.length>0&&o(p.models)}).catch(()=>{}),()=>{m=!0}},[]);const s=l??Bz;k.useEffect(()=>{c.current||(c.current=!0,t(s))},[t,s]);const d=k.useCallback(m=>{t(m.target.value)},[t]);return x.jsxs("div",{className:se("relative inline-flex items-center",i),children:[x.jsx("select",{value:s,onChange:d,"aria-label":"Model",className:se("appearance-none rounded-md border bg-secondary pl-2 pr-7 py-1","text-xs font-medium text-secondary-foreground","cursor-pointer focus:outline-none focus:ring-1 focus:ring-ring"),children:a.map(m=>x.jsx("option",{value:m.id,children:m.label},m.id))}),x.jsx(hd,{className:"pointer-events-none absolute right-1.5 h-3 w-3 text-muted-foreground"})]})}function qz({queue:t}){const{entries:l,moveItemUp:i,moveItemDown:a,removeItem:o,editItem:c}=t;return l.length===0?null:x.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[x.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",l.length,")"]}),l.map((s,d)=>x.jsx(Iz,{text:s.text,isFirst:d===0,isLast:d===l.length-1,onMoveUp:()=>i(d),onMoveDown:()=>a(d),onRemove:()=>o(d),onEdit:m=>c(d,m)},s.id))]})}function Iz({text:t,isFirst:l,isLast:i,onMoveUp:a,onMoveDown:o,onRemove:c,onEdit:s}){const[d,m]=k.useState(!1),[p,y]=k.useState(t),g=k.useRef(null);k.useEffect(()=>{var A;d&&((A=g.current)==null||A.focus())},[d]);const v=k.useCallback(()=>{y(t),m(!0)},[t]),S=k.useCallback(()=>{const A=p.trim();A&&A!==t&&s(A),m(!1)},[p,t,s]),E=k.useCallback(()=>{m(!1),y(t)},[t]);return x.jsxs("div",{className:se("group flex items-center gap-1.5 rounded-md border border-border/50","bg-secondary/50 px-2 py-1 text-sm animate-fade-in"),children:[d?x.jsx("input",{ref:g,type:"text",value:p,onChange:A=>y(A.target.value),onKeyDown:A=>{A.key==="Enter"&&S(),A.key==="Escape"&&E()},onBlur:S,className:se("min-w-0 flex-1 bg-transparent text-sm","focus:outline-none")}):x.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),x.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[d?x.jsx(xa,{label:"Confirm edit",onClick:S,children:x.jsx(dd,{className:"h-3 w-3"})}):x.jsx(xa,{label:"Edit",onClick:v,children:x.jsx(rk,{className:"h-3 w-3"})}),x.jsx(xa,{label:"Move up",onClick:a,disabled:l,children:x.jsx(HS,{className:"h-3 w-3"})}),x.jsx(xa,{label:"Move down",onClick:o,disabled:i,children:x.jsx(gx,{className:"h-3 w-3"})}),x.jsx(xa,{label:"Remove",onClick:c,destructive:!0,children:x.jsx(md,{className:"h-3 w-3"})})]})]})}function xa({label:t,onClick:l,disabled:i,destructive:a,children:o}){return x.jsx("button",{type:"button",onClick:l,disabled:i,"aria-label":t,title:t,className:se("flex h-5 w-5 items-center justify-center rounded","transition-colors",i?"cursor-not-allowed opacity-30":a?"hover:bg-destructive/20 hover:text-destructive":"hover:bg-accent hover:text-accent-foreground"),children:o})}let va=null;function Vz(){va=null}async function Yz(){return va||(va=(await tt("/api/commands")).commands,va)}function Gz(t){return t.startsWith("/")&&t.indexOf(" ")===-1?t.slice(1):null}function Fz({sessionId:t,sessionMode:l,isBusy:i,queue:a,onModelSelect:o,currentModel:c}){const[s,d]=k.useState(""),[m,p]=k.useState(!1),[y,g]=k.useState([]),[v,S]=k.useState(0),E=k.useRef(null),A=l==="readonly",j=Gz(s),N=j!==null&&y.length>0,L=N?y.filter(V=>sv(V.name,j)).slice(0,8):[];k.useEffect(()=>{const V=()=>{document.visibilityState==="visible"&&Vz()};return document.addEventListener("visibilitychange",V),()=>document.removeEventListener("visibilitychange",V)},[]),k.useEffect(()=>{const V=E.current;if(!V)return;V.style.height="auto";const H=(parseInt(getComputedStyle(V).lineHeight)||20)*5;V.style.height=`${Math.min(V.scrollHeight,H)}px`},[s]),k.useEffect(()=>{j!==null&&Yz().then(g).catch(()=>{})},[j]);const R=k.useCallback(async()=>{const V=s.trim();if(!(!V||m||A)){p(!0);try{await tt(`/api/sessions/${t}/prompt`,{method:"POST",body:JSON.stringify({text:V})}),d("")}catch{}finally{p(!1)}}},[s,m,A,t]),K=k.useCallback(async()=>{try{await tt(`/api/sessions/${t}/interrupt`,{method:"POST"})}catch{}},[t]),ee=k.useCallback(V=>{var ae;d(`${ov(V)} `),S(0),(ae=E.current)==null||ae.focus()},[]),D=k.useCallback(V=>{if(Oz(V,N,L.length,v,S,H=>{const re=L[H];re&&ee(re.name)},()=>d(H=>H))){V.preventDefault();return}if(V.key==="Enter"&&!V.shiftKey)if(V.preventDefault(),i&&a){const H=s.trim();H&&(a.enqueue(H),d(""))}else R()},[N,L,v,ee,R,i,s,a]),X=k.useCallback(V=>{const ae=E.current;if(!ae){d(B=>B+" "+V+" ");return}const H=ae.selectionStart??ae.value.length,re=ae.selectionEnd??H,$=ae.value.slice(0,H),xe=ae.value.slice(re),ue=$.length>0&&!/\s$/.test($)?" ":"",ne=$+ue+V+" "+xe;d(ne),requestAnimationFrame(()=>{const B=H+ue.length+V.length+1;ae.setSelectionRange(B,B),ae.focus()})},[]);return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"pointer-events-none h-8 bg-gradient-to-t from-background/80 to-transparent"}),x.jsxs("div",{className:se("relative flex flex-col gap-2","border-t border-border/50 px-4 py-3","backdrop-blur-xl bg-background/80","shadow-[0_-4px_16px_-4px_rgba(0,0,0,0.1)]",A&&"opacity-50"),children:[a&&x.jsx(qz,{queue:a}),x.jsx(Dz,{query:j??"",commands:y,onSelect:ee,visible:N}),x.jsxs("div",{className:"flex items-end gap-2",children:[x.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[x.jsx(Lz,{onInsert:X}),o&&x.jsx(Hz,{onSelect:o,current:c})]}),x.jsx("textarea",{ref:E,rows:1,value:s,disabled:A||m,onChange:V=>d(V.target.value),onKeyDown:D,placeholder:A?"Read-only session":"Send a message… (/ for commands)",className:se("flex-1 resize-none rounded-xl border border-input bg-background","px-3 py-2 text-sm leading-5 shadow-sm","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed")}),i?x.jsx("button",{onClick:()=>void K(),title:"Stop",className:"shrink-0 flex items-center justify-center h-9 w-9 rounded-lg bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",children:x.jsx(kx,{className:"h-4 w-4 fill-current"})}):x.jsx("button",{onClick:()=>void R(),disabled:!s.trim()||m||A,title:"Send",className:se("shrink-0 flex items-center justify-center h-9 w-9 rounded-lg","bg-primary text-primary-foreground hover:bg-primary/90 transition-colors","disabled:opacity-40 disabled:cursor-not-allowed"),children:x.jsx(sk,{className:"h-4 w-4"})})]})]})]})}async function Xz(t){await tt("/api/approve",{method:"POST",body:JSON.stringify(t)})}function Qz({approval:t,onAnswered:l}){const{id:i,request:a}=t,[o,c]=k.useState(typeof a.questionDefault=="string"?a.questionDefault:""),[s,d]=k.useState(!1),[m,p]=k.useState(null),y=async(v,S)=>{d(!0),p(null);try{await Xz({requestId:i,response:{action:v,content:S}}),l()}catch{p("Failed to submit — try again")}finally{d(!1)}},g=a.type??"confirm";return x.jsxs("div",{className:se("rounded-lg border-2 border-yellow-500/60 bg-yellow-500/5 p-3 text-sm","flex flex-col gap-2"),children:[x.jsxs("div",{className:"flex items-start gap-2",children:[x.jsx(fk,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),x.jsxs("div",{className:"flex-1 min-w-0",children:[a.title&&x.jsx("p",{className:"font-semibold text-foreground",children:a.title}),a.message&&x.jsx("p",{className:"text-muted-foreground",children:a.message}),a.description&&x.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:a.description})]}),x.jsx("button",{onClick:()=>void y("decline"),disabled:s,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:x.jsx(md,{className:"h-4 w-4"})})]}),g==="text"&&x.jsxs("div",{className:"flex gap-2",children:[x.jsx("input",{type:"text",value:o,onChange:v=>c(v.target.value),disabled:s,className:se("flex-1 rounded border border-input bg-background px-2 py-1 text-sm","focus:outline-none focus:ring-1 focus:ring-ring")}),x.jsx(ho,{onClick:()=>void y("accept",{text:o}),disabled:s,label:"Submit",variant:"primary"})]}),g==="confirm"&&x.jsxs("div",{className:"flex gap-2 justify-end",children:[x.jsx(ho,{onClick:()=>void y("decline"),disabled:s,label:"No",variant:"ghost"}),x.jsx(ho,{onClick:()=>void y("accept"),disabled:s,label:"Yes",variant:"primary"})]}),(g==="choice"||g==="multi_choice")&&x.jsx("div",{className:"flex flex-wrap gap-1.5",children:(a.choices??[]).map(v=>x.jsx(ho,{onClick:()=>void y("accept",{choice:v}),disabled:s,label:v,variant:"outline"},v))}),m&&x.jsx("p",{className:"text-xs text-red-400",children:m})]})}function ho({onClick:t,disabled:l,label:i,variant:a}){return x.jsx("button",{onClick:t,disabled:l,className:se("rounded px-3 py-1 text-xs font-medium transition-colors disabled:opacity-50",a==="primary"&&"bg-primary text-primary-foreground hover:bg-primary/90",a==="ghost"&&"text-muted-foreground hover:text-foreground hover:bg-accent",a==="outline"&&"border border-border hover:bg-accent"),children:i})}function Zz({approvals:t,onDismiss:l}){const[i,a]=k.useState(new Set),o=t.filter(s=>!i.has(s.id));if(o.length===0)return null;const c=s=>{a(d=>new Set([...d,s])),l==null||l()};return x.jsx("div",{className:"flex flex-col gap-2",children:o.map(s=>x.jsx(Qz,{approval:s,onAnswered:()=>c(s.id)},s.id))})}function Kz({open:t,onClose:l,children:i}){return x.jsxs(x.Fragment,{children:[x.jsx("div",{className:se("fixed inset-0 z-40 bg-black/50 transition-opacity duration-200 md:hidden",t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:l,"aria-hidden":"true"}),x.jsx("div",{className:se("fixed inset-y-0 left-0 z-50 w-64 bg-sidebar transition-transform duration-200 ease-in-out md:hidden",t?"translate-x-0":"-translate-x-full"),role:"dialog","aria-modal":"true",children:i})]})}function Pz({onClick:t,className:l}){return x.jsx("button",{onClick:t,className:se("inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-muted hover:text-foreground md:hidden",l),"aria-label":"Open sidebar",children:x.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:x.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}const $z=k.createContext(null),Jz={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-muted text-muted-foreground border border-border"};function Wz({children:t}){const[l,i]=k.useState([]),a=k.useRef(0),o=k.useCallback((c,s="info")=>{const d=++a.current;i(m=>[...m.slice(-2),{id:d,message:c,type:s}]),setTimeout(()=>{i(m=>m.filter(p=>p.id!==d))},3e3)},[]);return x.jsxs($z.Provider,{value:{toast:o},children:[t,x.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none","aria-live":"polite","aria-label":"Notifications",children:l.map(c=>x.jsx("div",{className:se("pointer-events-auto max-w-sm rounded-lg px-4 py-3 text-sm shadow-lg animate-slide-in-right",Jz[c.type]),children:c.message},c.id))})]})}const e5=1e4;function t5(){const[t,l]=k.useState([]),[i,a]=k.useState(!0),[o,c]=k.useState(null),s=k.useRef(void 0),d=k.useCallback(async()=>{try{const m=await tt("/api/sessions");l(n5(m.sessions)),c(null)}catch(m){c(m instanceof Error?m.message:"Failed to fetch sessions")}finally{a(!1)}},[]);return k.useEffect(()=>(d(),s.current=setInterval(()=>void d(),e5),()=>clearInterval(s.current)),[d]),{sessions:t,loading:i,error:o,refresh:d}}function n5(t){return[...t].sort((l,i)=>{const a=hx(l)?1:0,o=hx(i)?1:0;if(a!==o)return o-a;const c=l.updatedAt?new Date(l.updatedAt).getTime():0;return(i.updatedAt?new Date(i.updatedAt).getTime():0)-c})}function hx(t){return t.mode==="live"||t.alive===!0}const l5=1e3;function r5(){const[t,l]=k.useState([]),i=k.useRef(void 0),a=k.useCallback(async()=>{try{const c=await tt("/api/pending");l(c.pending)}catch{}},[]);k.useEffect(()=>(a(),i.current=setInterval(()=>void a(),l5),()=>clearInterval(i.current)),[a]);const o=new Set(t.map(c=>c.sessionId).filter(c=>!!c));return{approvals:t,pendingSessionIds:o}}const i5=15e3,a5=500;function u5(t){const i=t.replace(/\r\n/g,`
376
377
  `).split(`
377
378
 
378
379
  `),a=i.pop()??"",o=[];for(const c of i){if(c.trim()==="")continue;let s,d;for(const m of c.split(`
379
- `))m.startsWith("id: ")?s=m.slice(4):m.startsWith("id:")?s=m.slice(3).trimStart():m.startsWith("data: ")?d=m.slice(6):m.startsWith("data:")&&(d=m.slice(5).trimStart());d!==void 0&&o.push({id:s,data:d})}return{events:o,remainder:a}}function Kz(t){return typeof t=="object"&&t!==null&&t.end===!0}function Pz(t){const[l,i]=k.useState([]),[a,o]=k.useState("connecting"),[c,s]=k.useState(null),d=k.useRef(void 0),m=k.useRef(void 0),p=k.useRef(0),y=k.useRef(!1);return k.useEffect(()=>{if(t===null){i([]),o("connecting"),s(null);return}const g=t;i([]),s(null),y.current=!1,m.current=void 0,p.current=0;async function v(){if(y.current)return;o(p.current===0?"connecting":"reconnecting");let S=!1;const E=new AbortController;d.current=E;const A=nv(),j={};A&&(j.authorization=`Bearer ${A}`),m.current!==void 0&&(j["last-event-id"]=m.current);try{const L=await fetch(`/api/sessions/${encodeURIComponent(g)}/stream`,{headers:j,signal:E.signal});if(!L.ok){if(L.status===401||L.status===403||L.status===404){y.current=!0;const X=L.status===401?"unauthorized":L.status===403?"forbidden":"not-found";s(X),o("closed");return}throw new Error(`stream ${L.status}`)}if(L.body===null)throw new Error("stream: no body");p.current=0,o("open");const W=L.body.getReader(),ee=new TextDecoder;let D="";e:for(;;){const{done:X,value:V}=await W.read();if(y.current||X)break;D+=ee.decode(V,{stream:!0});const{events:ae,remainder:H}=Zz(D);D=H;for(const re of ae){re.id!==void 0&&(m.current=re.id);let P;try{P=JSON.parse(re.data)}catch{continue}if(Kz(P)){S=!0,y.current=!0;break e}i(be=>[...be,P])}}}catch(L){if(L instanceof DOMException&&L.name==="AbortError")return}if(y.current){S&&o("ended");return}p.current+=1;const N=.75+Math.random()*.5,R=Math.min(Qz*2**(p.current-1),Xz)*N;setTimeout(()=>void v(),R)}return v(),()=>{var S;y.current=!0,(S=d.current)==null||S.abort(),o("closed")}},[t]),{events:l,status:a,error:c}}let od=0;function $z(){od=0}function wt(t){return od+=1,`${t}_${od}`}function Qe(t){return typeof t=="string"?t:void 0}function dn(t){return typeof t=="number"?t:void 0}function Jz(t,l,i){if(typeof t.kind=="string")switch(t.kind){case"user":return{kind:"user",id:wt("u"),text:Qe(t.text)??""};case"assistant":return{kind:"assistant",id:wt("a"),text:Qe(t.text)??""};case"thinking":return{kind:"thinking",id:wt("th"),text:Qe(t.text)??""};case"tool":{const a=Qe(t.input)??"";if(a.trim()==="…")return;const o=Qe(t.toolUseId),c={kind:"tool",id:wt("t"),name:Qe(t.toolName)??"tool",toolUseId:o,inputPreview:a,status:"ok",outputUnavailable:!0};return l!==void 0&&o!==void 0&&l.set(o,c),c}case"tool_result":{const a=Qe(t.toolUseId),o=Qe(t.content)??Qe(t.output)??"",c=dn(t.durationMs),s=Qe(t.diff);if(l!==void 0&&a!==void 0){const d=l.get(a);if(d!==void 0){d.output=o,d.outputUnavailable=!1,d.status="ok",c!==void 0&&(d.durationMs=c),s!==void 0&&(d.diff=s);return}}return{kind:"notice",id:wt("n"),text:`tool result: ${o.slice(0,80)}`}}case"tool_error":{const a=Qe(t.content)??"",o=a.split(`
380
- `,1)[0]??"";return{kind:"tool",id:wt("t"),name:Qe(t.toolName)??"error",inputPreview:o,status:"error",output:a}}case"error":return{kind:"error",id:wt("e"),message:Qe(t.message)??"error"};case"done":{const a=t.costUsd,o=t.durationMs,c=[];typeof a=="number"&&c.push(`$${a.toFixed(4)}`),typeof o=="number"&&c.push(`${(o/1e3).toFixed(1)}s`);const s=dn(t.inputTokens),d=dn(t.outputTokens),m=dn(t.cacheReadTokens);if(s!==void 0||d!==void 0){const p=[];s!==void 0&&p.push(`${s}in`),d!==void 0&&p.push(`${d}out`),m!==void 0&&p.push(`${m}cache`),c.push(p.join("/"))}return{kind:"notice",id:wt("n"),text:c.length?`turn complete · ${c.join(" · ")}`:"turn complete"}}case"paused":return{kind:"notice",id:wt("n"),text:"paused — usage limit"};case"resumed":return{kind:"notice",id:wt("n"),text:"resumed"};case"tool_activity":{const a=dn(t.activeCount)??0;if(a===0)return{kind:"notice",id:wt("n"),text:"tool wave complete"};const o=a===1?"tool":"tools";return{kind:"notice",id:wt("n"),text:`Running ${a} ${o} in parallel`}}case"rate_limit":{const a=dn(t.retryAfterMs),o=a!==void 0?` (retrying in ${Math.ceil(a/1e3)}s)`:"";return{kind:"notice",id:wt("n"),text:`Rate limited${o}`}}case"progress":return{kind:"notice",id:wt("n"),text:Qe(t.message)??"progress"};case"subagent_lifecycle":{const a=Qe(t.subagentId)??"subagent",o=Qe(t.status)??"unknown",c=Qe(t.agentType),s=c?`${c} (${a.slice(0,8)})`:a.slice(0,12);if(i!==void 0){const m=i.get(a);if(m!==void 0){m.status=o;const p=dn(t.durationMs);p!==void 0&&(m.durationMs=p);const y=dn(t.totalCostUsd);y!==void 0&&(m.totalCostUsd=y);const g=dn(t.turnCount);g!==void 0&&(m.turnCount=g);const v=Qe(t.stopReason);v!==void 0&&(m.stopReason=v);return}}const d={kind:"subagent",id:wt("sa"),subagentId:a,parentId:Qe(t.parentId),status:o,label:s,model:Qe(t.model),agentType:Qe(t.agentType),durationMs:dn(t.durationMs),totalCostUsd:dn(t.totalCostUsd),promptHead:Qe(t.promptHead),turnCount:dn(t.turnCount),stopReason:Qe(t.stopReason),parentToolUseId:Qe(t.parentToolUseId)};return i==null||i.set(a,d),d}case"background_job":{const a=Qe(t.jobId)??"job",o=Qe(t.status)??"unknown",c=Qe(t.label)??a.slice(0,12);return{kind:"bg_job",id:wt("bj"),jobId:a,status:o,label:c}}case"plan_mode":{const a=Qe(t.mode)??"default";return{kind:"notice",id:wt("n"),text:`Switched to ${a} mode`}}default:return}}function Wz(t,l){if(l.kind!=="done")return t;const i=l.costUsd,a=l.durationMs,o=l.inputTokens,c=l.outputTokens,s=l.cacheReadTokens;return{costUsd:t.costUsd+(typeof i=="number"?i:0),durationMs:t.durationMs+(typeof a=="number"?a:0),turns:t.turns+1,inputTokens:(t.inputTokens??0)+(typeof o=="number"?o:0),outputTokens:(t.outputTokens??0)+(typeof c=="number"?c:0),cacheReadTokens:(t.cacheReadTokens??0)+(typeof s=="number"?s:0)}}const _f={costUsd:0,durationMs:0,turns:0};function e5(t){const{events:l,status:i,error:a}=Pz(t),[o,c]=k.useState([]),[s,d]=k.useState(_f),[m,p]=k.useState(!1),[y,g]=k.useState(0),v=k.useRef(new Map),S=k.useRef(new Map);k.useEffect(()=>{$z(),v.current=new Map,S.current=new Map,c([]),d(_f),p(!1),g(0)},[t]);const E=k.useRef(0);return k.useEffect(()=>{const A=l.slice(E.current);if(A.length===0)return;E.current=l.length;const j=v.current,N=[];let R=_f,L=!1,W=null,ee=0;for(const D of A){const X=D,V=X.record??D,ae=X.replay===!0;V.kind==="user"?W=!0:(V.kind==="done"||V.kind==="error")&&(W=!1),V.kind==="done"&&!ae&&(ee+=1),R=Wz(R,V);const H=Jz(V,j,S.current);H!==void 0?N.push(H):(V.kind==="tool_result"||V.kind==="subagent_lifecycle")&&(L=!0)}N.length>0?c(D=>[...D,...N]):L&&c(D=>[...D]),(R.costUsd!==0||R.durationMs!==0||R.turns!==0)&&d(D=>({costUsd:D.costUsd+R.costUsd,durationMs:D.durationMs+R.durationMs,turns:D.turns+R.turns,inputTokens:(D.inputTokens??0)+(R.inputTokens??0),outputTokens:(D.outputTokens??0)+(R.outputTokens??0),cacheReadTokens:(D.cacheReadTokens??0)+(R.cacheReadTokens??0)})),W!==null&&p(W),ee>0&&g(D=>D+ee)},[l]),k.useEffect(()=>{E.current=0},[t]),{items:o,totals:s,status:i,error:a,turnActive:m,liveTurns:y}}const t5=50,n5=200;function l5(){const t=k.useRef(null),[l,i]=k.useState(!0),[a,o]=k.useState(!1);k.useEffect(()=>{const s=t.current;if(s===null)return;function d(){if(s===null)return;const m=s.scrollHeight-s.scrollTop-s.clientHeight;i(m<=t5),o(m>n5)}return s.addEventListener("scroll",d,{passive:!0}),()=>s.removeEventListener("scroll",d)},[]);const c=k.useCallback(()=>{const s=t.current;s!==null&&(s.scrollTop=s.scrollHeight)},[]);return{containerRef:t,scrollToBottom:c,isPinned:l,showScrollButton:a}}function _o(t,l){return Number.isInteger(l)&&l>=0&&l<t.length}function r5(t,l){if(!_o(t,l)||l===0)return t.slice();const i=t.slice(),a=i[l-1],o=i[l];return a===void 0||o===void 0?t.slice():(i[l-1]=o,i[l]=a,i)}function i5(t,l){if(!_o(t,l)||l===t.length-1)return t.slice();const i=t.slice(),a=i[l+1],o=i[l];return a===void 0||o===void 0?t.slice():(i[l+1]=o,i[l]=a,i)}function a5(t,l){if(!_o(t,l))return t.slice();const i=t.slice();return i.splice(l,1),i}function u5(t,l,i){if(!_o(t,l))return t.slice();const a=t.slice();return a[l]={...a[l],text:i},a}function o5({submit:t,isLive:l}){const[i,a]=k.useState([]),o=k.useRef(!1),c=k.useRef(0),s=k.useRef([]),d=k.useCallback(E=>{const A=c.current++,j=[...s.current,{id:A,text:E}];s.current=j,a(j)},[]),m=k.useCallback(E=>{const A=r5(s.current,E);s.current=A,a(A)},[]),p=k.useCallback(E=>{const A=i5(s.current,E);s.current=A,a(A)},[]),y=k.useCallback(E=>{const A=a5(s.current,E);s.current=A,a(A)},[]),g=k.useCallback((E,A)=>{const j=u5(s.current,E,A);s.current=j,a(j)},[]),v=k.useCallback(()=>{s.current=[],a([])},[]),S=k.useCallback(async()=>{if(o.current||!l)return;const E=s.current[0];if(E===void 0)return;const A=E.id,j=E.text;o.current=!0,t(j).then(()=>{const N=s.current.filter(R=>R.id!==A);s.current=N,a(N)}).catch(()=>{}).finally(()=>{o.current=!1})},[t,l]);return{entries:i,enqueue:d,moveItemUp:m,moveItemDown:p,removeItem:y,editItem:g,clear:v,flush:S}}function s5(){return b.jsx(qz,{children:b.jsx(c5,{})})}function c5(){const{sessions:t,loading:l}=Vz(),{approvals:i,pendingSessionIds:a}=Fz(),[o,c]=k.useState("sessions"),[s,d]=k.useState(null),[m,p]=k.useState(!1),[y,g]=k.useState(!1),v=t.find(Q=>Q.id===s),{items:S,totals:E,status:A,turnActive:j,liveTurns:N}=e5(s),{containerRef:R,scrollToBottom:L,isPinned:W,showScrollButton:ee}=l5();k.useEffect(()=>{W&&L()},[S.length,W,L]);const D=Q=>{c(Q),g(!1)},X=Q=>{d(Q),g(!1)},V=j,[ae,H]=k.useState("sonnet"),re=k.useCallback(async()=>{try{const Q=await lt("/api/sessions",{method:"POST"});d(Q.session.id)}catch{}},[]),P=k.useRef(null),be=k.useCallback(async Q=>{if(!s)throw new Error("no session");const ce=new AbortController;P.current=ce,await lt(`/api/sessions/${s}/prompt`,{method:"POST",body:JSON.stringify({text:Q}),signal:ce.signal})},[s]),ue=o5({submit:be,isLive:(v==null?void 0:v.mode)==="live"}),ne=k.useRef(0);k.useEffect(()=>{var Q;(Q=P.current)==null||Q.abort(),P.current=null,ue.clear(),ne.current=0},[s]),k.useEffect(()=>{N>ne.current&&ue.flush(),ne.current=N},[N,ue.flush]);const B=b.jsx(u2,{sessions:t,pendingSessionIds:a,selectedSessionId:s,onSelectSession:X,activeNav:o,onNavChange:D,collapsed:m,onToggleCollapse:()=>p(Q=>!Q)});return b.jsxs("div",{className:"flex h-screen overflow-hidden",children:[b.jsx(mE,{onNavigate:D}),b.jsx(gE,{onNavigate:D}),b.jsx("div",{className:"hidden md:block",children:B}),b.jsx(Lz,{open:y,onClose:()=>g(!1),children:B}),b.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[b.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Uz,{className:"md:hidden",onClick:()=>g(!0)}),b.jsxs("h1",{className:"text-sm font-medium text-muted-foreground",children:[o==="sessions"&&"Sessions",o==="memory"&&"Memory",o==="schedules"&&"Schedules",o==="jobs"&&"Background Jobs",o==="settings"&&"Settings"]}),o==="sessions"&&v&&b.jsx(d5,{status:A})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&b.jsx("button",{onClick:()=>void re(),title:"New Session",className:"flex items-center justify-center h-7 w-7 rounded-md hover:bg-accent transition-colors text-muted-foreground hover:text-foreground",children:b.jsx(lk,{className:"h-4 w-4"})}),o==="sessions"&&v&&b.jsx(Ux,{totals:E}),b.jsx("kbd",{className:"hidden rounded border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground sm:inline-block",children:"⌘K"})]})]}),b.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[ee&&o==="sessions"&&b.jsxs("button",{onClick:L,className:"animate-fade-in fixed bottom-24 left-1/2 z-20 -translate-x-1/2 flex items-center gap-1.5 rounded-full bg-brand px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-lg hover:bg-brand/90 transition-colors",children:[b.jsx(pb,{className:"size-3"}),"New messages"]}),b.jsxs("div",{ref:R,className:"relative flex flex-1 flex-col overflow-y-auto",children:[b.jsxs("div",{className:"flex-1",children:[o==="sessions"&&b.jsx(f5,{loading:l,sessions:t,selectedSession:v,items:S,totals:E,status:A,turnActive:j}),o==="memory"&&b.jsx(ez,{}),o==="schedules"&&b.jsx(sz,{}),o==="jobs"&&b.jsx(pz,{}),o==="settings"&&b.jsx(xz,{})]}),o==="sessions"&&v&&v.mode==="live"&&b.jsxs("div",{className:"shrink-0",children:[i.length>0&&b.jsx(Rz,{approvals:i}),b.jsx(_z,{sessionId:v.id,sessionMode:v.mode,isBusy:V,queue:ue,onModelSelect:H,currentModel:ae})]})]})]})]})]})}function f5({loading:t,sessions:l,selectedSession:i,items:a,totals:o,status:c,turnActive:s}){return t&&!l.length?b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[b.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&l.length===0?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",b.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):i&&a.length>0?b.jsx(V4,{items:a,totals:o,turnActive:s}):i?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("div",{className:"flex flex-col items-center gap-2",children:c==="connecting"||c==="reconnecting"?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):b.jsx("span",{className:"text-sm",children:"No transcript data"})})}):b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function d5({status:t}){return t==="open"?b.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?b.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?b.jsx("span",{className:"size-2 rounded-full bg-muted-foreground",title:"Session ended"}):null}const av=document.getElementById("root");if(!av)throw new Error("Root element #root not found");MS.createRoot(av).render(b.jsx(k.StrictMode,{children:b.jsx(s5,{})}));export{Fd as _,lC as a,xC as b,tb as c,pC as f,bC as h,Nd as s,oC as w};
380
+ `))m.startsWith("id: ")?s=m.slice(4):m.startsWith("id:")?s=m.slice(3).trimStart():m.startsWith("data: ")?d=m.slice(6):m.startsWith("data:")&&(d=m.slice(5).trimStart());d!==void 0&&o.push({id:s,data:d})}return{events:o,remainder:a}}function o5(t){return typeof t=="object"&&t!==null&&t.end===!0}function s5(t){const[l,i]=k.useState([]),[a,o]=k.useState("connecting"),[c,s]=k.useState(null),d=k.useRef(void 0),m=k.useRef(void 0),p=k.useRef(0),y=k.useRef(!1);return k.useEffect(()=>{if(t===null){i([]),o("connecting"),s(null);return}const g=t;i([]),s(null),y.current=!1,m.current=void 0,p.current=0;async function v(){if(y.current)return;o(p.current===0?"connecting":"reconnecting");let S=!1;const E=new AbortController;d.current=E;const A=Ub(),j={};A&&(j.authorization=`Bearer ${A}`),m.current!==void 0&&(j["last-event-id"]=m.current);try{const R=await fetch(`/api/sessions/${encodeURIComponent(g)}/stream`,{headers:j,signal:E.signal});if(!R.ok){if(R.status===401||R.status===403||R.status===404){y.current=!0;const X=R.status===401?"unauthorized":R.status===403?"forbidden":"not-found";s(X),o("closed");return}throw new Error(`stream ${R.status}`)}if(R.body===null)throw new Error("stream: no body");p.current=0,o("open");const K=R.body.getReader(),ee=new TextDecoder;let D="";e:for(;;){const{done:X,value:V}=await K.read();if(y.current||X)break;D+=ee.decode(V,{stream:!0});const{events:ae,remainder:H}=u5(D);D=H;for(const re of ae){re.id!==void 0&&(m.current=re.id);let $;try{$=JSON.parse(re.data)}catch{continue}if(o5($)){S=!0,y.current=!0;break e}i(xe=>[...xe,$])}}}catch(R){if(R instanceof DOMException&&R.name==="AbortError")return}if(y.current){S&&o("ended");return}p.current+=1;const N=.75+Math.random()*.5,L=Math.min(a5*2**(p.current-1),i5)*N;setTimeout(()=>void v(),L)}return v(),()=>{var S;y.current=!0,(S=d.current)==null||S.abort(),o("closed")}},[t]),{events:l,status:a,error:c}}const _f={costUsd:0,durationMs:0,turns:0};function c5(t){const{events:l,status:i,error:a}=s5(t),[o,c]=k.useState([]),[s,d]=k.useState(_f),[m,p]=k.useState(!1),[y,g]=k.useState(0),v=k.useRef(new Map),S=k.useRef(new Map);k.useEffect(()=>{TE(),v.current=new Map,S.current=new Map,c([]),d(_f),p(!1),g(0)},[t]);const E=k.useRef(0);return k.useEffect(()=>{const A=l.slice(E.current);if(A.length===0)return;E.current=l.length;const j=v.current,N=[];let L=_f,R=!1,K=null,ee=0;for(const D of A){const X=D,V=X.record??D,ae=X.replay===!0;V.kind==="user"?K=!0:(V.kind==="done"||V.kind==="error")&&(K=!1),V.kind==="done"&&!ae&&(ee+=1),L=_E(L,V);const H=ME(V,j,S.current);H!==void 0?N.push(H):(V.kind==="tool_result"||V.kind==="subagent_lifecycle")&&(R=!0)}N.length>0?c(D=>[...D,...N]):R&&c(D=>[...D]),(L.costUsd!==0||L.durationMs!==0||L.turns!==0)&&d(D=>({costUsd:D.costUsd+L.costUsd,durationMs:D.durationMs+L.durationMs,turns:D.turns+L.turns,inputTokens:(D.inputTokens??0)+(L.inputTokens??0),outputTokens:(D.outputTokens??0)+(L.outputTokens??0),cacheReadTokens:(D.cacheReadTokens??0)+(L.cacheReadTokens??0)})),K!==null&&p(K),ee>0&&g(D=>D+ee)},[l]),k.useEffect(()=>{E.current=0},[t]),{items:o,totals:s,status:i,error:a,turnActive:m,liveTurns:y}}const f5=50,d5=200;function h5(){const t=k.useRef(null),[l,i]=k.useState(!0),[a,o]=k.useState(!1);k.useEffect(()=>{const s=t.current;if(s===null)return;function d(){if(s===null)return;const m=s.scrollHeight-s.scrollTop-s.clientHeight;i(m<=f5),o(m>d5)}return s.addEventListener("scroll",d,{passive:!0}),()=>s.removeEventListener("scroll",d)},[]);const c=k.useCallback(()=>{const s=t.current;s!==null&&(s.scrollTop=s.scrollHeight)},[]);return{containerRef:t,scrollToBottom:c,isPinned:l,showScrollButton:a}}function _o(t,l){return Number.isInteger(l)&&l>=0&&l<t.length}function m5(t,l){if(!_o(t,l)||l===0)return t.slice();const i=t.slice(),a=i[l-1],o=i[l];return a===void 0||o===void 0?t.slice():(i[l-1]=o,i[l]=a,i)}function p5(t,l){if(!_o(t,l)||l===t.length-1)return t.slice();const i=t.slice(),a=i[l+1],o=i[l];return a===void 0||o===void 0?t.slice():(i[l+1]=o,i[l]=a,i)}function g5(t,l){if(!_o(t,l))return t.slice();const i=t.slice();return i.splice(l,1),i}function y5(t,l,i){if(!_o(t,l))return t.slice();const a=t.slice();return a[l]={...a[l],text:i},a}function x5({submit:t,isLive:l}){const[i,a]=k.useState([]),o=k.useRef(!1),c=k.useRef(0),s=k.useRef([]),d=k.useCallback(E=>{const A=c.current++,j=[...s.current,{id:A,text:E}];s.current=j,a(j)},[]),m=k.useCallback(E=>{const A=m5(s.current,E);s.current=A,a(A)},[]),p=k.useCallback(E=>{const A=p5(s.current,E);s.current=A,a(A)},[]),y=k.useCallback(E=>{const A=g5(s.current,E);s.current=A,a(A)},[]),g=k.useCallback((E,A)=>{const j=y5(s.current,E,A);s.current=j,a(j)},[]),v=k.useCallback(()=>{s.current=[],a([])},[]),S=k.useCallback(async()=>{if(o.current||!l)return;const E=s.current[0];if(E===void 0)return;const A=E.id,j=E.text;o.current=!0,t(j).then(()=>{const N=s.current.filter(L=>L.id!==A);s.current=N,a(N)}).catch(()=>{}).finally(()=>{o.current=!1})},[t,l]);return{entries:i,enqueue:d,moveItemUp:m,moveItemDown:p,removeItem:y,editItem:g,clear:v,flush:S}}function b5(){return x.jsx(Wz,{children:x.jsx(v5,{})})}function v5(){const{sessions:t,loading:l}=t5(),{approvals:i,pendingSessionIds:a}=r5(),[o,c]=k.useState("sessions"),[s,d]=k.useState(null),[m,p]=k.useState(!1),[y,g]=k.useState(!1),v=t.find(Q=>Q.id===s),{items:S,totals:E,status:A,turnActive:j,liveTurns:N}=c5(s),{containerRef:L,scrollToBottom:R,isPinned:K,showScrollButton:ee}=h5();k.useEffect(()=>{K&&R()},[S.length,K,R]);const D=Q=>{c(Q),g(!1)},X=Q=>{d(Q),g(!1)},V=j,[ae,H]=k.useState("sonnet"),re=k.useCallback(async()=>{try{const Q=await tt("/api/sessions",{method:"POST"});d(Q.session.id)}catch{}},[]),$=k.useRef(null),xe=k.useCallback(async Q=>{if(!s)throw new Error("no session");const ce=new AbortController;$.current=ce,await tt(`/api/sessions/${s}/prompt`,{method:"POST",body:JSON.stringify({text:Q}),signal:ce.signal})},[s]),ue=x5({submit:xe,isLive:(v==null?void 0:v.mode)==="live"}),ne=k.useRef(0);k.useEffect(()=>{var Q;(Q=$.current)==null||Q.abort(),$.current=null,ue.clear(),ne.current=0},[s]),k.useEffect(()=>{N>ne.current&&ue.flush(),ne.current=N},[N,ue.flush]);const B=x.jsx(f2,{sessions:t,pendingSessionIds:a,selectedSessionId:s,onSelectSession:X,activeNav:o,onNavChange:D,collapsed:m,onToggleCollapse:()=>p(Q=>!Q)});return x.jsxs("div",{className:"flex h-screen overflow-hidden",children:[x.jsx(xE,{onNavigate:D}),x.jsx(vE,{onNavigate:D}),x.jsx("div",{className:"hidden md:block",children:B}),x.jsx(Kz,{open:y,onClose:()=>g(!1),children:B}),x.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[x.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsx(Pz,{className:"md:hidden",onClick:()=>g(!0)}),x.jsxs("h1",{className:"text-sm font-medium text-muted-foreground",children:[o==="sessions"&&"Sessions",o==="memory"&&"Memory",o==="schedules"&&"Schedules",o==="jobs"&&"Background Jobs",o==="settings"&&"Settings"]}),o==="sessions"&&v&&x.jsx(k5,{status:A})]}),x.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&x.jsx("button",{onClick:()=>void re(),title:"New Session",className:"flex items-center justify-center h-7 w-7 rounded-md hover:bg-accent transition-colors text-muted-foreground hover:text-foreground",children:x.jsx(uk,{className:"h-4 w-4"})}),o==="sessions"&&v&&x.jsx(Vb,{totals:E}),x.jsx("kbd",{className:"hidden rounded border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground sm:inline-block",children:"⌘K"})]})]}),x.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[ee&&o==="sessions"&&x.jsxs("button",{onClick:R,className:"animate-fade-in fixed bottom-24 left-1/2 z-20 -translate-x-1/2 flex items-center gap-1.5 rounded-full bg-brand px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-lg hover:bg-brand/90 transition-colors",children:[x.jsx(gx,{className:"size-3"}),"New messages"]}),x.jsxs("div",{ref:L,className:"relative flex flex-1 flex-col overflow-y-auto",children:[x.jsxs("div",{className:"flex-1",children:[o==="sessions"&&x.jsx(S5,{loading:l,sessions:t,selectedSession:v,items:S,totals:E,status:A,turnActive:j}),o==="memory"&&x.jsx(hz,{}),o==="schedules"&&x.jsx(kz,{}),o==="jobs"&&x.jsx(Nz,{}),o==="settings"&&x.jsx(_z,{})]}),o==="sessions"&&v&&v.mode==="live"&&x.jsxs("div",{className:"shrink-0",children:[i.length>0&&x.jsx(Zz,{approvals:i}),x.jsx(Fz,{sessionId:v.id,sessionMode:v.mode,isBusy:V,queue:ue,onModelSelect:H,currentModel:ae})]})]})]})]})]})}function S5({loading:t,sessions:l,selectedSession:i,items:a,totals:o,status:c,turnActive:s}){return t&&!l.length?x.jsx("div",{className:"flex h-full items-center justify-center",children:x.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[x.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),x.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&l.length===0?x.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:x.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",x.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):i&&a.length>0?x.jsx(rz,{sessionId:i.id,items:a,totals:o,turnActive:s}):i?x.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:x.jsx("div",{className:"flex flex-col items-center gap-2",children:c==="connecting"||c==="reconnecting"?x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),x.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):x.jsx("span",{className:"text-sm",children:"No transcript data"})})}):x.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:x.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function k5({status:t}){return t==="open"?x.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?x.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?x.jsx("span",{className:"size-2 rounded-full bg-muted-foreground",title:"Session ended"}):null}const cv=document.getElementById("root");if(!cv)throw new Error("Root element #root not found");RS.createRoot(cv).render(x.jsx(k.StrictMode,{children:x.jsx(b5,{})}));export{Fd as _,bC as a,RC as b,nx as c,MC as f,OC as h,Nd as s,EC as w};