agent-afk 5.222.2 → 5.222.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/cup-frame-renderer.d.ts +2 -0
- package/dist/cli/terminal-compositor.types.d.ts +1 -0
- package/dist/cli.mjs +6 -6
- package/dist/config/env.d.ts +8 -0
- package/dist/index.mjs +225 -225
- package/dist/telegram/session-manager.d.ts +1 -0
- package/dist/telegram/session-manager.demand-load.d.ts +3 -0
- package/dist/telegram.mjs +303 -303
- package/dist/web-ui-assets/assets/{index-DpEHdhDh.js → index-D7vSiG8f.js} +1 -1
- package/dist/web-ui-assets/assets/{index-C8iQq5Dx.js → index-pNhgW5dG.js} +47 -47
- package/dist/web-ui-assets/index.html +1 -1
- package/package.json +1 -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
|
|
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={};/**
|
|
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
|
|
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 y=wS(),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
|
|
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"),b=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 w={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||w}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||w}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 b: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:b,_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={};/**
|
|
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
|
|
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=[],b=1,g=null,v=3,S=!1,w=!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),!w)if(i(m)!==null)w=!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:{w=!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:b++,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),w||S||(w=!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={};/**
|
|
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
|
|
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 b=2;b<arguments.length;b++)p+="&args[]="+encodeURIComponent(arguments[b])}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,b){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:b}}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 b=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,b)},Et.flushSync=function(m){var p=s.T,b=a.p;try{if(s.T=null,a.p=2,m)return m()}finally{s.T=p,a.p=b,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 b=p.as,g=d(b,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;b==="style"?a.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):b==="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 b=d(p.as,p.crossOrigin);a.d.M(m,{crossOrigin:b,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 b=p.as,g=d(b,p.crossOrigin);a.d.L(m,b,{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 b=d(p.as,p.crossOrigin);a.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:b,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,b){return s.H.useFormState(m,p,b)},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}/**
|
|
34
34
|
* @license React
|
|
35
35
|
* react-dom-client.production.js
|
|
36
36
|
*
|
|
@@ -38,20 +38,20 @@ 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
|
|
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,E=f.child;E;){if(E===r){x=!0,r=f,u=h;break}if(E===u){x=!0,u=f,r=h;break}E=E.sibling}if(!x){for(E=h.child;E;){if(E===r){x=!0,r=h,u=f;break}if(E===u){x=!0,u=h,r=f;break}E=E.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 b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(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"),w=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 w: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(`
|
|
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],
|
|
44
|
-
`),I=
|
|
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],E=h[1];if(x&&E){var z=x.split(`
|
|
44
|
+
`),I=E.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 Gd(){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&&Fd(e,u,0),h!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~n))}function Fd(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 Xd(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 Qd(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 Zd(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Dg(e.type))}function Kd(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,Pd="__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=yg(e);e!==null;){if(r=e[bt])return r;e=yg(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[Pd];return n||(n=e[Pd]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pt(e){e[vi]=!0}var $d=new Set,Jd={};function Ll(e,n){br(e,n),br(e+"Capture",n)}function br(e,n){for(Jd[e]=n,e=0;e<n.length;e++)$d.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]*$"),Wd={},eh={};function hv(e){return dr.call(eh,e)?!0:dr.call(Wd,e)?!1:dv.test(e)?eh[e]=!0:(Wd[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 th(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=th(e)?"checked":"value";e._valueTracker=mv(e,n,""+e[n])}}function nh(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),u="";return e&&(u=th(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 lh(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 rh(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 ih(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 ah(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 uh(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&&ah(e,f,u)}else for(var h in n)n.hasOwnProperty(h)&&ah(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 oh(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&&nh(u)}break e;case"textarea":rh(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&xr(e,!!r.multiple,n,!1)}}}var Qo=!1;function sh(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,oh(n),e)))for(n=0;n<e.length;n++)oh(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 ch(){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 fh(){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:fh,this.isPropagationStopped=fh,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}}),dh=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}),hh=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}),mh=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,ph=Un&&(!es||Ti&&8<Ti&&11>=Ti),gh=" ",yh=!1;function bh(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 xh(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 xh(n);case"keypress":return n.which!==32?null:(yh=!0,gh);case"textInput":return e=n.data,e===gh&&yh?null:e;default:return null}}function Xv(e,n){if(wr)return e==="compositionend"||!es&&bh(e,n)?(e=ch(),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 ph&&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 vh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Qv[e.type]:n==="textarea"}function Sh(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){lg(e,0)}function Za(e){var n=Si(e);if(nh(n))return e}function kh(e,n){if(e==="change")return n}var wh=!1;if(Un){var ts;if(Un){var ns="oninput"in document;if(!ns){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),ns=typeof Eh.oninput=="function"}ts=ns}else ts=!1;wh=ts&&(!document.documentMode||9<document.documentMode)}function Ch(){Ai&&(Ai.detachEvent("onpropertychange",Th),Ni=Ai=null)}function Th(e){if(e.propertyName==="value"&&Za(Ni)){var n=[];Sh(n,Ni,e,Xo(e)),sh(Zv,n)}}function Kv(e,n,r){e==="focusin"?(Ch(),Ai=n,Ni=r,Ai.attachEvent("onpropertychange",Th)):e==="focusout"&&Ch()}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 Ah(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nh(e,n){var r=Ah(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=Ah(r)}}function jh(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?jh(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function zh(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 Mh(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={},_h={};Un&&(_h=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 _h)return as[e]=n[r];return e}var Dh=Hl("animationend"),Oh=Hl("animationiteration"),Rh=Hl("animationstart"),t1=Hl("transitionrun"),n1=Hl("transitionstart"),l1=Hl("transitioncancel"),Lh=Hl("transitionend"),Uh=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){Uh.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&&Bh(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 Bh(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 Hh(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 qh(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 Ih=new WeakMap;function rn(e,n){if(typeof e=="object"&&e!==null){var r=Ih.get(e);return r!==void 0?r:(n={value:e,source:n,stack:Oa(n)},Ih.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 Vh(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),Vh(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 Yh(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 Gh(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),lh(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),ih(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||ug(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 Fh(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 Fh(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),Fh(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=gg(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Je=gg(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 Xh(Yl,e)}function nu(e,n){return Yl===null&&Gl(e),Xh(e,n)}function Xh(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(Qh,Qh),n}function Qh(){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 Zh=B.S;B.S=function(e,n){Mp=At(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&o1(e,n),Zh!==null&&Zh(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 Kh(){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 Ph(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $h(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,Wh(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,Wh(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 Jh(){if(Ql===null)throw Error(a(459));var e=Ql;return Ql=null,e}function Wh(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=[]),$h(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 em(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=em(!0),tm=em(!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),Bh(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,Xd(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 nm(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function lm(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)nm(r[e],n)}var Lr=_(null),ou=_(0);function rm(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 im(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?Vm:Qs,Kl=!1,h=r(u,f),Kl=!1,Ur&&(h=um(n,r,u,f)),am(e),h}function am(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 um(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=Ym,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=$h(Br,e,n),n=Te,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,B.H=n===null||n.memoizedState===null?Vm: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 om(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(fm.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},cm.bind(null,u,f,r,n),null),Ke===null)throw Error(a(349));h||(Vn&127)!==0||sm(u,n,r)}return r}function sm(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 cm(e,n,r,u){n.value=r,n.getSnapshot=u,dm(n)&&hm(e)}function fm(e,n,r){return r(function(){dm(n)&&hm(e)})}function dm(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!Xt(e,r)}catch{return!0}}function hm(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 mm(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,pm(n,h)):(h.next=r.next,n.pending=r.next=h)}}function pm(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),gm(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),gm(e,n,h)}catch(I){qs(e,n,I)}}function gm(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(u){ym(e,n,u)},function(u){return qs(e,n,u)}):ym(e,n,r)}function ym(e,n,r){n.status="fulfilled",n.value=r,bm(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,pm(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,bm(n),n=n.next;while(n!==u)}e.action=null}function bm(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function xm(e,n){return n}function vm(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:xm,lastRenderedState:n},r.queue=u,r=Hm.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 Sm(e){var n=it();return km(n,Ge,e)}function km(e,n,r){if(n=Us(e,n,xm)[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 wm(e){var n=it(),r=Ge;if(r!==null)return km(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 Em(){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 Cm(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 Tm(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 Am(e,n){return gu(4,2,e,n)}function Nm(e,n){return gu(4,4,e,n)}function jm(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 zm(e,n,r){r=r!=null?r.concat([e]):null,gu(4,4,jm.bind(null,n,e),r)}function Vs(){}function Mm(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 _m(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=Dp(),Te.lanes|=e,xl|=e,r)}function Dm(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=Dp(),Te.lanes|=e,xl|=e,n)}function Om(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=Rm(e).queue;Om(e,f,n,ce,r===null?p1:function(){return Lm(e),r(u)})}function Rm(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 Lm(e){var n=Rm(e);n.next===null&&(n=e.alternate.memoizedState),Vi(e,n.next.queue,{},Jt())}function Fs(){return vt(ia)}function Um(){return it().memoizedState}function Bm(){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)?qm(n,r):(r=ss(e,n,r,u),r!==null&&(It(r,e,u),Im(r,n,u)))}function Hm(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))qm(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),Im(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 qm(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 Im(e,n,r){if((r&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,r|=u,n.lanes=r,Xd(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 Vm={readContext:vt,use:hu,useCallback:function(e,n){return jt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:Cm,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,pu(4194308,4,jm.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=Hm.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=Om.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||sm(u,n,r)}f.memoizedState=r;var h={value:r,getSnapshot:n};return f.queue=h,Cm(fm.bind(null,u,h,e),[e]),u.flags|=2048,Hr(9,{destroy:void 0},cm.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:vm,useActionState:vm,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:Mm,useContext:vt,useEffect:Is,useImperativeHandle:zm,useInsertionEffect:Am,useLayoutEffect:Nm,useMemo:_m,useReducer:mu,useRef:Em,useState:function(){return mu(Yn)},useDebugValue:Vs,useDeferredValue:function(e,n){var r=it();return Dm(r,Ge.memoizedState,e,n)},useTransition:function(){var e=mu(Yn)[0],n=it().memoizedState;return[typeof e=="boolean"?e:Ii(e),n]},useSyncExternalStore:om,useId:Um,useHostTransitionStatus:Fs,useFormState:Sm,useActionState:Sm,useOptimistic:function(e,n){var r=it();return mm(r,Ge,e,n)},useMemoCache:Ls,useCacheRefresh:Bm};Qs.useEffectEvent=Tm;var Ym={readContext:vt,use:hu,useCallback:Mm,useContext:vt,useEffect:Is,useImperativeHandle:zm,useInsertionEffect:Am,useLayoutEffect:Nm,useMemo:_m,useReducer:Bs,useRef:Em,useState:function(){return Bs(Yn)},useDebugValue:Vs,useDeferredValue:function(e,n){var r=it();return Ge===null?Ys(r,e,n):Dm(r,Ge.memoizedState,e,n)},useTransition:function(){var e=Bs(Yn)[0],n=it().memoizedState;return[typeof e=="boolean"?e:Ii(e),n]},useSyncExternalStore:om,useId:Um,useHostTransitionStatus:Fs,useFormState:wm,useActionState:wm,useOptimistic:function(e,n){var r=it();return Ge!==null?mm(r,Ge,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Ls,useCacheRefresh:Bm};Ym.useEffectEvent=Tm;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 Gm(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 Fm(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 Xm(e){Ka(e)}function Qm(e){console.error(e)}function Zm(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 Km(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 Pm(e){return e=hl(e),e.tag=3,e}function $m(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(){Km(n,r,u)}}var x=r.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Km(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=Pm(f),$m(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?tm(n,null,r,u):Zl(n,e.child,r,u)}function Jm(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 Wm(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,ep(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 ep(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 tp(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 np(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?rm(n,h):Ns(),im(n);else return u=n.lanes=536870912,np(e,n,h!==null?h.baseLanes|r:r,r,u)}else h!==null?(lu(n,h.cachePool),rm(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 np(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(),im(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 lp(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=pg(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=qh(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=lp(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=Qd(u,r),x!==0&&x!==h.retryLane))throw h.retryLane=x,ql(e,x),It(u,e,x),$s;zu(),n=lp(e,n,r)}else e=h.treeContext,Je=cn(x.nextSibling),xt=n,Le=!0,sl=null,on=!1,e!==null&&Yh(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 rp(e,n,r,u,f,h){return Gl(n),n.updateQueue=null,r=um(n,u,r,f),am(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 ip(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)&&Fm(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||Gm(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)&&Fm(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||Gm(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 ap(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:Kh()}}function tc(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=$t),e}function up(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=pg(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=qh(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=Qd(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&&Yh(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=Kh(),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 op(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 sp(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&&op(e,r,n);else if(e.tag===19)op(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?up(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 sp(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,tp(e,n,r,n.pendingProps);case 24:fl(n,ut,e.memoizedState.cache)}return Gn(e,n,r)}function cp(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&&Vh(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=ip(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=Jm(null,n,e,u,r);break e}else if(f===X){n.tag=14,n=Wm(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),ip(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=ap(e,n,u,r);break e}else if(u!==f){f=rn(Error(a(424)),n),_i(f),n=ap(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=tm(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=Sg(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=Sg(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return at(n),e===null&&Le&&(u=n.stateNode=bg(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 up(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 Jm(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 Wm(e,n,n.type,n.pendingProps,r);case 15:return ep(e,n,n.type,n.pendingProps,r);case 19:return sp(e,n,r);case 31:return x1(e,n,r);case 22:return tp(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(Up())e.flags|=8192;else throw Ql=iu,ws}else e.flags&=-16777217}function fp(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Tg(n))if(Up())e.flags|=8192;else throw Ql=iu,ws}function ku(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Gd():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),fp(n,h)):(We(n),ac(n,f,null,u,r))):h?h!==e.memoizedState?(Fn(n),We(n),fp(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)?Gh(n):(e=bg(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))Gh(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||ug(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;)Hh(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 dp(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 hp(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{lm(n,r)}catch(u){Ye(e,e.return,u)}}}function mp(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 pp(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 gp(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||gp(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 yp(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,bp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function w1(e,n){if(e=e.containerInfo,Mc=Gu,e=zh(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 xp(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&&hp(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{lm(e,n)}catch(x){Ye(r,r.return,x)}}break;case 27:n===null&&u&4&&yp(r);case 26:case 5:Zn(e,r),n===null&&u&4&&pp(r),u&512&&Qi(r,r.return);break;case 12:Zn(e,r);break;case 31:Zn(e,r),u&4&&kp(e,r);break;case 13:Zn(e,r),u&4&&wp(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 vp(e){var n=e.alternate;n!==null&&(e.alternate=null,vp(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;)Sp(e,n,r),r=r.sibling}function Sp(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,hg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),$r(e)):hg(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"&&mp(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 kp(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 wp(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 bp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new bp),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));Sp(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;)Ep(n,e),n=n.sibling}var bn=null;function Ep(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=Eg("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=Eg("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 Cg(f,e.type,e.stateNode);else e.stateNode=wg(f,u,e.memoizedProps);else h!==u?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,u===null?Cg(f,e.type,e.stateNode):wg(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,Cp(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?mg(G,!0):mg(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(gp(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 Cp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Cp(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;)xp(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"&&mp(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++)nm(z[f],w)}catch(I){Ye(u,u.return,I)}}r&&x&64&&hp(h),Qi(h,h.return);break;case 27:yp(h);case 26:case 5:Kn(f,h,r),r&&u===null&&x&4&&pp(h),Qi(h,h.return);break;case 12:Kn(f,h,r);break;case 31:Kn(f,h,r),r&&x&4&&kp(f,h);break;case 13:Kn(f,h,r),r&&x&4&&wp(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;)Tp(e,n,r,u),n=n.sibling}function Tp(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;)Ap(e,n,r),e=e.sibling}function Ap(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 Np(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,zp(u,e)}Np(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jp(e),e=e.sibling}function jp(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,zp(u,e)}Np(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 zp(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(vp(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,Mp=0,Au=1/0,Nu=null,vl=null,ht=0,Sl=null,Gr=null,$n=0,gc=0,yc=null,_p=null,Ji=0,bc=null;function Jt(){return(qe&2)!==0&&Oe!==0?Oe&-Oe:B.T!==null?Ec():Zd()}function Dp(){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 Op(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=fg(Rp.bind(null,u,r,qt,Nu,pc,n,$t,Jl,Yr,bl,h,"Throttled",-0,0),f);break e}Rp(u,r,qt,Nu,pc,n,$t,Jl,Yr,bl,h,null,-0,0)}}break}while(!0);An(e)}function Rp(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},Ap(n,h,J);var me=(h&62914560)===h?Tu-At():(h&4194048)===h?Mp-At():0;if(me=fS(J,me),me!==null){$n=h,e.cancelPendingCommit=me(Yp.bind(null,e,n,h,r,u,f,x,w,z,F,J,null,Y,G)),kl(e,h,x,!I);return}}Yp(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&&Fd(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;)dp(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 Lp(e,n){Te=null,B.H=Yi,n===Or||n===ru?(n=Jh(),Ve=3):n===ws?(n=Jh(),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 Up(){var e=Zt.current;return e===null?!0:(Oe&4194048)===Oe?sn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===sn:!1}function Bp(){var e=B.H;return B.H=Yi,e===null?Yi:e}function Hp(){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=Bp(),h=Hp();(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){Lp(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;)qp(Me)}function j1(e,n){var r=qe;qe|=2;var u=Bp(),f=Hp();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(Ph(h)){Ve=0,Pt=null,Ip(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:Ph(h)?(Ve=0,Pt=null,Ip(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?Tg(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){Lp(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();)qp(Me)}function qp(e){var n=cp(e.alternate,e,Pn);e.memoizedProps=e.pendingProps,n===null?Mu(e):Me=n}function Ip(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=rp(r,n,n.pendingProps,n.type,void 0,Oe);break;case 11:n=rp(r,n,n.pendingProps,n.type.render,n.ref,Oe);break;case 5:Rs(n);default:dp(r,n),n=Me=Hh(n,Pn),n=cp(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))),Vp(n,e)):Mu(n)}function Mu(e){var n=e;do{if((n.flags&32768)!==0){Vp(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 Vp(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 Yp(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,_p=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,O1(Se,function(){return Zp(),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,Gp(),Fp(),Xp()}}function Gp(){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{Ep(n,e);var h=_c,x=zh(e.containerInfo),w=h.focusedElem,z=h.selectionRange;if(x!==w&&w&&w.ownerDocument&&jh(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=Nh(w,ve),O=Nh(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 Fp(){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{xp(e,n.alternate,n)}finally{qe=f,Q.p=u,B.T=r}}ht=3}}function Xp(){if(ht===4||ht===3){ht=0,Oo();var e=Sl,n=Gr,r=$n,u=_p;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?ht=5:(ht=0,Gr=Sl=null,Qp(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 Qp(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Di(n)))}function _u(){return Gp(),Fp(),Xp(),Zp()}function Zp(){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,jp(h.current),Tp(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,Qp(e,n)}}function Kp(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)Kp(e,e,r);else for(;n!==null;){if(n.tag===3){Kp(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=Pm(2),u=ml(n,r,2),u!==null&&($m(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 Pp(e,n){n===0&&(n=Gd()),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),Pp(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),Pp(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,eg(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,eg(u,h));u=u.next}while(r);wc=!1}}function R1(){$p()}function $p(){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=Jp(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 Jp(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=Wp.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 Wp(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:(Op(e,u,n),Jp(e,At()),e.callbackNode!=null&&e.callbackNode===r?Wp.bind(null,e):null)}function eg(e,n){if(_u())return null;Op(e,n,!0)}function L1(){Z1(function(){(qe&6)!==0?hr(Z,R1):$p()})}function Ec(){if(wl===0){var e=_r;e===0&&(e=Ra,Ra<<=1,(Ra&261888)===0&&(Ra=256)),wl=e}return wl}function tg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Va(""+e)}function ng(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=tg((f[Rt]||null).action),x=u.submitter;x&&(n=(n=x[Rt]||null)?tg(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?ng(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?ng(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(Dh,"onAnimationEnd"),yn(Oh,"onAnimationIteration"),yn(Rh,"onAnimationStart"),yn("dblclick","onDoubleClick"),yn("focusin","onFocus"),yn("focusout","onBlur"),yn(t1,"onTransitionRun"),yn(n1,"onTransitionStart"),yn(l1,"onTransitionCancel"),yn(Lh,"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 lg(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)||(rg(n,e,2,!1),r.add(u))}function Ac(e,n,r){var u=0;n&&(u|=4),rg(r,e,u,n)}var Ru="_reactListening"+Math.random().toString(36).slice(2);function Nc(e){if(!e[Ru]){e[Ru]=!0,$d.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 rg(e,n,r,u){switch(Dg(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}sh(function(){var I=h,F=Xo(r),J=[];e:{var Y=Uh.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=dh;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 Dh:case Oh:case Rh:G=Ev;break;case Lh: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=mh;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=dh,K="onMouseLeave",U="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ve=mh,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&&ig(J,Y,G,ve,!1),me!==null&&Xe!==null&&ig(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=kh;else if(vh(Y))if(wh)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=kh):Be=$v;if(Be&&(Be=Be(e,I))){Sh(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":(vh(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,Mh(J,r,F);break;case"selectionchange":if(e1)break;case"keydown":case"keyup":Mh(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?bh(e,r)&&(Re="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Re="onCompositionStart");Re&&(ph&&r.locale!=="ko"&&(wr||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&wr&&(Ne=ch()):(ul=F,Ko="value"in ul?ul.value:ul.textContent,wr=!0)),ge=Lu(I,Re),0<ge.length&&(Re=new hh(Re,e,null,r,F),J.push({event:Re,listeners:ge}),Ne?Re.data=Ne:(Ne=xh(r),Ne!==null&&(Re.data=Ne)))),(Ne=Gv?Fv(e,r):Xv(e,r))&&(Re=Lu(I,"onBeforeInput"),0<Re.length&&(ge=new hh("onBeforeInput","beforeinput",null,r,F),J.push({event:ge,listeners:Re}),ge.data=Ne)),U1(J,e,I,r,F)}lg(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 ig(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 ag(e){return(typeof e=="string"?e:""+e).replace(V1,`
|
|
49
|
-
`).replace(Y1,"")}function ug(e,n){return n=ag(n),ag(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":uh(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":uh(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(!Jd.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)}}lh(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)}ih(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)}rh(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 og(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&&og(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&&og(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 sg(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 cg(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 fg=typeof setTimeout=="function"?setTimeout:void 0,Q1=typeof clearTimeout=="function"?clearTimeout:void 0,dg=typeof Promise=="function"?Promise:void 0,Z1=typeof queueMicrotask=="function"?queueMicrotask:typeof dg<"u"?function(e){return dg.resolve(null).then(e).catch(K1)}:fg;function K1(e){setTimeout(function(){throw e})}function El(e){return e==="head"}function hg(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 mg(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 pg(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 gg(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 yg(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 bg(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,xg=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"?Lm(n):Jn.r(e)}var Zr=typeof document>"u"?null:document;function vg(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+'"]'),xg.has(f)||(xg.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),vg("dns-prefetch",e,null)}function nS(e,n){Jn.C(e,n),vg("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 Sg(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 kg(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 wg(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=kg(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 Eg(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 Cg(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 Tg(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=kg(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 Ag(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 Ng(e){return e?(e=Ar,e):Ar}function jg(e,n,r,u,f,h){f=Ng(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 zg(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){zg(e,n),(e=e.alternate)&&zg(e,n)}function Mg(e){if(e.tag===13||e.tag===31){var n=ql(e,67108864);n!==null&&It(n,e,67108864),Vc(e,67108864)}}function _g(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),Og(e,u);else if(yS(f,e,n,r,u))u.stopPropagation();else if(Og(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 Dg(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 Og(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&&Mg(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 Rg(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,Kd(e.priority,function(){_g(r)});return}}else if(n===31){if(n=d(r),n!==null){e.blockedOn=n,Kd(e.priority,function(){_g(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&&Mg(n),e.blockedOn=r,!1;n.shift()}return!0}function Lg(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(Lg),ua.forEach(Lg)}function Qu(e,n){e.blockedOn===n&&(e.blockedOn=null,Xc||(Xc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,bS)))}var Zu=null;function Ug(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);)Rg(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||Ug(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),Ug(r)}}}function Bg(){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();jg(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;jg(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=Zd();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&&Rg(e)}};var Hg=l.version;if(Hg!=="19.2.8")throw Error(a(527,Hg,"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?b(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=Xm,h=Qm,x=Zm;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=Ag(e,1,!1,null,null,r,u,null,f,h,x,Bg),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=Xm,x=Qm,w=Zm,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=Ag(e,1,!0,n,r??null,u,f,z,h,x,w,Bg),n.context=Ng(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 Kg;function zS(){if(Kg)return Pc.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(),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: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 E=u&134217727;return E!==0?(u=E&~h,u!==0?f=Rl(u):(x&=E,x!==0?f=Rl(x):r||(r=E&~e,r!==0&&(f=Rl(r))))):(E=u&~h,E!==0?f=Rl(E):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 E=e.entanglements,z=e.expirationTimes,I=e.hiddenUpdates;for(r=x&~r;0<r;){var F=31-Ze(r),J=1<<F;E[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,E){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"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?e.name=""+tn(E):e.removeAttribute("name")}function ih(e,n,r,u,f,h,x,E){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,E||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=E?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 E in e)e.hasOwnProperty(E)&&(r=e[E],this[E]=r?r(h):h[E]);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 E=h;h=f;for(var z=0;z<n.length;z++)if(E.context===n[z]){h.lanes|=r,E=h.alternate,E!==null&&(E.lanes|=r),bs(h.return,r,e),u||(x=null);break e}h=E.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 E=f.type;Xt(f.pendingProps.value,x.value)||(e!==null?e.push(E):e=[E])}}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 E(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 w: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:E(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 w: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,E(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 w: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 w: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,E=f.shared.pending;if(E!==null){f.shared.pending=null;var z=E,I=z.next;z.next=null,x===null?h=I:x.next=I,x=z;var F=e.alternate;F!==null&&(F=F.updateQueue,E=F.lastBaseUpdate,E!==x&&(E===null?F.firstBaseUpdate=I:E.next=I,F.lastBaseUpdate=z))}if(h!==null){var J=f.baseState;x=0,F=I=z=null,E=h;do{var Y=E.lane&-536870913,G=Y!==E.lane;if(G?(Oe&Y)===Y:(u&Y)===Y){Y!==0&&Y===_r&&(As=!0),F!==null&&(F=F.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var me=e,ve=E;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=E.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:E.tag,payload:E.payload,callback:E.callback,next:null},F===null?(I=F=G,z=J):F=F.next=G,x|=Y;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;G=E,E=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 E=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?(E=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?(E=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=E,!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 E=r(f,u),z=B.S;z!==null&&z(x,E),bm(e,n,E)}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,E={};B.T=E,Xs(e,!1,n,r);try{var z=f(),I=B.S;if(I!==null&&I(E,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&&E.types!==null&&(x.types=E.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,E=h(x,r);if(f.hasEagerState=!0,f.eagerState=E,Xt(E,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 E=u.stack;this.componentDidCatch(u.value,{componentStack:E!==null?E:""})})}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 E in u)E!=="ref"&&(x[E]=u[E])}else x=u;return Gl(n),u=_s(e,n,r,x,h,f),E=Ds(),e!==null&&!st?(Os(e,n,f),Gn(e,n,f)):(Le&&E&&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 E=n.memoizedProps,z=Pl(r,E);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",E=n.pendingProps!==E,F||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(E||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,E||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)),E=r.getDerivedStateFromProps,(I=typeof E=="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 E=="function"&&(Zs(n,r,E,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 E=u.children;return u=u.fallback,f?(gl(),f=n.mode,E=Su({mode:"hidden",children:E},f),u=Il(u,f,r,null),E.return=n,u.return=n,E.sibling=u,n.child=E,u=n.child,u.memoizedState=ec(r),u.childLanes=tc(e,x,r),n.memoizedState=Ws,Gi(null,u)):(pl(n),nc(n,E))}var z=e.memoizedState;if(z!==null&&(E=z.dehydrated,E!==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(),E=u.fallback,f=n.mode,u=Su({mode:"visible",children:u.children},f),E=Il(E,f,r,null),E.flags|=2,u.return=n,E.return=n,u.sibling=E,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(E)){if(x=E.nextSibling&&E.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(E)||zu(),n=lc(e,n,r)}else Lc(E)?(n.flags|=192,n.child=e.child,n=null):(e=z.treeContext,Je=cn(E.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(),E=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?E=Bn(I,E):(E=Il(E,f,r,null),E.flags|=2),E.return=n,u.return=n,u.sibling=E,n.child=u,Gi(null,u),u=n.child,E=e.child.memoizedState,E===null?E=ec(r):(f=E.cachePool,f!==null?(z=ut._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=$h(),E={baseLanes:E.baseLanes|r,cachePool:f}),u.memoizedState=E,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,E=(x&2)!==0;if(E?(x=x&1|2,n.flags|=128):x&=1,C(rt,x),St(e,n,u,r),u=Le?Mi:0,!E&&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(E){Ye(n,n.return,E)}}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,E=x.destroy;if(E!==void 0){x.destroy=void 0,f=n;var z=r,I=E;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,E=-1,z=-1,I=0,F=0,J=e,Y=null;t:for(;;){for(var G;J!==r||f!==0&&J.nodeType!==3||(E=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&&(E=x),Y===h&&++F===u&&(z=x),(G=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=G}r=E===-1||z===-1?null:{start:E,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,E=x;e:for(;E!==null;){switch(E.tag){case 27:if(El(E.type)){et=E.stateNode,Ut=!1;break e}break;case 5:et=E.stateNode,Ut=!1;break e;case 3:case 4:et=E.stateNode.containerInfo,Ut=!0;break e}E=E.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 E=0;E<x.length;E++)if(h=x[E],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(E,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(E=0;E<x.length;E++)if(h=x[E],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(E,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{E=z.stateNode;var J=z.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;E.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 E=oc(e);wu(e,E,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 E=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],E)}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,E=h.onPostCommit;typeof E=="function"&&E(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,E=r,z=u,I=x.flags;switch(x.tag){case 0:case 11:case 15:qr(h,x,E,z,f),Xi(8,x);break;case 23:break;case 22:var F=x.stateNode;x.memoizedState!==null?F._visibility&2?qr(h,x,E,z,f):Zi(h,x):(F._visibility|=2,qr(h,x,E,z,f)),f&&I&2048&&fc(x.alternate,x);break;case 24:qr(h,x,E,z,f),f&&I&2048&&dc(x.alternate,x);break;default:qr(h,x,E,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 E=e;f=$i;var z=E.current.memoizedState.isDehydrated;if(z&&(Fr(E,x).flags|=256),x=vc(E,x,!1),x!==2){if(hc&&!z){E.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,E,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,E,z,F,J,null,Y,G)),kl(e,h,x,!I);return}}Fp(e,n,h,r,u,f,x,E,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 E=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,E,z,I),r&&Vr){x=0;break e}break;default:I=Ve,Ve=0,Pt=null,Xr(e,E,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 E=Me;if(x?Ng(x):E.stateNode.complete){Ve=0,Pt=null;var z=E.sibling;if(z!==null)Me=z;else{var I=E.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,E,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,E,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),E=h.focusedElem,z=h.selectionRange;if(x!==E&&E&&E.ownerDocument&&Mh(E.ownerDocument.documentElement,E)){if(z!==null&&ls(E)){var I=z.start,F=z.end;if(F===void 0&&(F=I),"selectionStart"in E)E.selectionStart=I,E.selectionEnd=Math.min(F,E.value.length);else{var J=E.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var G=Y.getSelection(),me=E.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(E,ve),O=zh(E,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=E;G=G.parentNode;)G.nodeType===1&&J.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<J.length;E++){var K=J[E];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 E=u[x];h(E.value,{componentStack:E.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 E=qe;if(qe|=4,Mp(h.current),Np(h,h.current,x,r),qe=E,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,E=u.pingedLanes;h=(1<<31-Ze(42|e)+1)-1,h&=f&~(x&~E),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),E=1<<x,z=f[x];z===-1?((E&r)===0||(E&u)!==0)&&(f[x]=ov(E,n)):z<=n&&(e.expiredLanes|=E),h&=~E}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 E=new Xa("action","action",null,u,f);e.push({event:E,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"&&(E.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 E=u[x],z=E.instance,I=E.currentTarget;if(E=E.listener,z!==h&&f.isPropagationStopped())break e;h=E,f.currentTarget=I;try{h(f)}catch(F){Ka(F)}f.currentTarget=null,h=z}else for(x=0;x<u.length;x++){if(E=u[x],z=E.instance,I=E.currentTarget,E=E.listener,z!==h&&f.isPropagationStopped())break e;h=E,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 E=u.stateNode.containerInfo;if(E===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(;E!==null;){if(x=pr(E),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){u=h=x;continue e}E=E.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 E=r,z=E.alternate,I=E.stateNode;if(E=E.tag,z!==null&&z===u)break;E!==5&&E!==26&&E!==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 E=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":E=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,E,z,I,x,f,!1);return;case"select":_e("invalid",e),u=x=h=null;for(f in r)if(r.hasOwnProperty(f)&&(E=r[f],E!=null))switch(f){case"value":h=E;break;case"defaultValue":x=E;break;case"multiple":u=E;default:Fe(e,n,f,E,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)&&(E=r[x],E!=null))switch(x){case"value":u=E;break;case"defaultValue":f=E;break;case"children":h=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(a(91));break;default:Fe(e,n,x,E,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(E in r)r.hasOwnProperty(E)&&(u=r[E],u!=null&&Fe(e,n,E,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,E=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":E=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,E,z,I,F,h,f);return;case"select":G=x=E=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":E=h;break;case"multiple":x=h;default:h!==z&&Fe(e,n,f,h,u,z)}n=E,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(E in r)if(f=r[E],r.hasOwnProperty(E)&&f!=null&&!u.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:Fe(e,n,E,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,E=f.duration;if(h&&E&&cg(x)){for(x=0,E=f.responseEnd,u+=1;u<r.length;u++){var z=r[u],I=z.startTime;if(I>E)break;var F=z.transferSize,J=z.initiatorType;F&&cg(J)&&(z=z.responseEnd,x+=F*(z<E?1:(E-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,E=h.nodeName;h[vi]||E==="SCRIPT"||E==="STYLE"||E==="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 E={loading:0,preload:null};if(x=u.querySelector(la(h)))E.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(){E.loading|=1}),z.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Hu(x,n,u)}x={type:"stylesheet",instance:x,count:1,state:E},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(E,z){x.onload=E,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 E=u[x];if(E.dataset.precedence===n)h=E;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 E=u.get(x);E?E.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(E,z){x.onload=E,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,E,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,E,z,I,F,J){return e=new hS(e,n,r,x,z,I,F,J,E),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 E=h;for(E.pendingLanes|=2,E.entangledLanes|=2;x;){var z=1<<31-Ze(x);E.entanglements[1]|=z,x&=~z}An(h),(qe&6)===0&&(Au=At()+500,Wi(0))}}break;case 31:case 13:E=ql(h,2),E!==null&&It(E,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 E=null;if(h&&h.hasAttribute("formAction")){if(f=h,x=h[Rt]||null)E=x.formAction;else if(Fc(f)!==null)continue}else E=x.action;typeof E=="function"?r[u+1]=E:(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?b(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,E=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&&(E=r.onRecoverableError),r.formState!==void 0&&(z=r.formState)),n=jg(e,1,!0,n,r??null,u,f,z,h,x,E,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();/**
|
|
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(),
|
|
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();/**
|
|
55
55
|
* @license lucide-react v0.468.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
@@ -61,17 +61,17 @@ Error generating stack: `+u.message+`
|
|
|
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:
|
|
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,b])=>k.createElement(p,b)),...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:
|
|
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};/**
|
|
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
|
|
74
|
+
*/const pb=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.
|
|
@@ -81,7 +81,7 @@ Error generating stack: `+u.message+`
|
|
|
81
81
|
*
|
|
82
82
|
* This source code is licensed under the ISC license.
|
|
83
83
|
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/const
|
|
84
|
+
*/const fd=ke("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
85
85
|
* @license lucide-react v0.468.0 - ISC
|
|
86
86
|
*
|
|
87
87
|
* This source code is licensed under the ISC license.
|
|
@@ -91,7 +91,7 @@ Error generating stack: `+u.message+`
|
|
|
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
|
|
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"}]]);/**
|
|
95
95
|
* @license lucide-react v0.468.0 - ISC
|
|
96
96
|
*
|
|
97
97
|
* This source code is licensed under the ISC license.
|
|
@@ -106,12 +106,12 @@ Error generating stack: `+u.message+`
|
|
|
106
106
|
*
|
|
107
107
|
* This source code is licensed under the ISC license.
|
|
108
108
|
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const
|
|
109
|
+
*/const dd=ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
110
110
|
* @license lucide-react v0.468.0 - ISC
|
|
111
111
|
*
|
|
112
112
|
* This source code is licensed under the ISC license.
|
|
113
113
|
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const
|
|
114
|
+
*/const hd=ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
115
115
|
* @license lucide-react v0.468.0 - ISC
|
|
116
116
|
*
|
|
117
117
|
* This source code is licensed under the ISC license.
|
|
@@ -121,7 +121,7 @@ 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
|
|
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"}]]);/**
|
|
125
125
|
* @license lucide-react v0.468.0 - ISC
|
|
126
126
|
*
|
|
127
127
|
* This source code is licensed under the ISC license.
|
|
@@ -146,7 +146,7 @@ Error generating stack: `+u.message+`
|
|
|
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
|
|
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"}]]);/**
|
|
150
150
|
* @license lucide-react v0.468.0 - ISC
|
|
151
151
|
*
|
|
152
152
|
* This source code is licensed under the ISC license.
|
|
@@ -161,7 +161,7 @@ Error generating stack: `+u.message+`
|
|
|
161
161
|
*
|
|
162
162
|
* This source code is licensed under the ISC license.
|
|
163
163
|
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
-
*/const
|
|
164
|
+
*/const Df=ke("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
165
165
|
* @license lucide-react v0.468.0 - ISC
|
|
166
166
|
*
|
|
167
167
|
* This source code is licensed under the ISC license.
|
|
@@ -196,7 +196,7 @@ 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
|
|
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"}]]);/**
|
|
200
200
|
* @license lucide-react v0.468.0 - ISC
|
|
201
201
|
*
|
|
202
202
|
* This source code is licensed under the ISC license.
|
|
@@ -271,7 +271,7 @@ Error generating stack: `+u.message+`
|
|
|
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
|
|
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"}]]);/**
|
|
275
275
|
* @license lucide-react v0.468.0 - ISC
|
|
276
276
|
*
|
|
277
277
|
* This source code is licensed under the ISC license.
|
|
@@ -281,12 +281,12 @@ Error generating stack: `+u.message+`
|
|
|
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
|
|
284
|
+
*/const Sb=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.
|
|
288
288
|
* See the LICENSE file in the root directory of this source tree.
|
|
289
|
-
*/const
|
|
289
|
+
*/const Of=ke("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
290
290
|
* @license lucide-react v0.468.0 - ISC
|
|
291
291
|
*
|
|
292
292
|
* This source code is licensed under the ISC license.
|
|
@@ -296,12 +296,12 @@ Error generating stack: `+u.message+`
|
|
|
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
|
|
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"}]]);/**
|
|
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 hd=ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function kb(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=kb(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=kb(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}),wb=(t=new Map,l=null,i)=>({nextPart:t,validators:l,classGroupId:i}),xo="-",Pg=[],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 Eb(d,m,l)},getConflictingClassGroupIds:(s,d)=>{if(d){const m=a[s],p=i[s];return m?p?sk(p,m):m:p||Pg}return i[s]||Pg}}},Eb=(t,l,i)=>{if(t.length-l===0)return i.classGroupId;const o=t[l],c=i.nextPart.get(o);if(c){const p=Eb(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 b=s[p];if(b.validator(d))return b.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=wb();for(const a in t){const o=t[a];md(o,i,a,l)}return i},md=(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:Cb(l,t);a.classGroupId=i},bk=(t,l,i,a)=>{if(vk(t)){md(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];md(m,Cb(l,d),i,a)}},Cb=(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=wb(),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)}}},Of="!",$g=":",kk=[],Jg=(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 b=o.length;for(let A=0;A<b;A++){const j=o[A];if(s===0&&d===0){if(j===$g){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(Of)?(v=g.slice(0,-1),S=!0):g.startsWith(Of)&&(v=g.slice(1),S=!0);const E=p&&p>m?p-m:void 0;return Jg(c,S,v,E)};if(l){const o=l+$g,c=a;a=s=>s.startsWith(o)?c(s.slice(o.length)):Jg(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 b=m.length-1;b>=0;b-=1){const g=m[b],{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+Of: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=Tb(i))&&(o&&(o+=" "),o+=a);return o},Tb=t=>{if(typeof t=="string")return t;let l,i="";for(let a=0;a<t.length;a++)t[a]&&(l=Tb(t[a]))&&(i&&(i+=" "),i+=l);return i},zk=(t,...l)=>{let i,a,o,c;const s=m=>{const p=l.reduce((b,g)=>g(b),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 b=Nk(m,i);return o(m,b),b};return c=s,(...m)=>c(jk(...m))},Mk=[],mt=t=>{const l=i=>i[t]||Mk;return l.isThemeGetter=!0,l},Ab=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nb=/^\((?:(\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),jb=()=>!0,Bk=t=>Ok.test(t)&&!Rk.test(t),pd=()=>!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,_b,pd),fe=t=>Ab.test(t),Wl=t=>Dl(t,Db,Bk),Wg=t=>Dl(t,$k,je),Gk=t=>Dl(t,Rb,jb),Fk=t=>Dl(t,Ob,pd),ey=t=>Dl(t,zb,pd),Xk=t=>Dl(t,Mb,qk),Ju=t=>Dl(t,Lb,Hk),de=t=>Nb.test(t),fa=t=>ur(t,Db),Qk=t=>ur(t,Ob),ty=t=>ur(t,zb),Zk=t=>ur(t,_b),Kk=t=>ur(t,Mb),Wu=t=>ur(t,Lb,!0),Pk=t=>ur(t,Rb,!0),Dl=(t,l,i)=>{const a=Ab.exec(t);return a?a[1]?l(a[1]):i(a[2]):!1},ur=(t,l,i=!1)=>{const a=Nb.exec(t);return a?a[1]?l(a[1]):i:!1},zb=t=>t==="position"||t==="percentage",Mb=t=>t==="image"||t==="url",_b=t=>t==="length"||t==="size"||t==="bg-size",Db=t=>t==="length",$k=t=>t==="number",Ob=t=>t==="family-name",Rb=t=>t==="number"||t==="weight",Lb=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"),b=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(),ty,ey,{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,ty,ey],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:[jb],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,Wg]}],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",b,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,Wg]}],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 y.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&&y.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 y.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:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:c}),y.jsx(n2,{status:o,className:"shrink-0"})]}),y.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&y.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&y.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:r2(t.cwd)}),y.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?l2(t.updatedAt):""})]})]})}const a2=[{id:"sessions",label:"Sessions",icon:y.jsx(PS,{className:"size-4"})},{id:"memory",label:"Memory",icon:y.jsx(cd,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:y.jsx(BS,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:y.jsx(pb,{className:"size-4"})},{id:"settings",label:"Settings",icon:y.jsx(xb,{className:"size-4"})}];function u2({sessions:t,pendingSessionIds:l,selectedSessionId:i,onSelectSession:a,activeNav:o,onNavChange:c,collapsed:s,onToggleCollapse:d}){return y.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:[y.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!s&&y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),y.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),y.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?y.jsx(WS,{className:"size-4"}):y.jsx(JS,{className:"size-4"})})]}),y.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:a2.map(m=>y.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&&y.jsx("span",{children:m.label})]},m.id))}),o==="sessions"&&!s&&y.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?y.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):y.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(m=>y.jsx(i2,{session:m,pendingSessionIds:l,selected:i===m.id,onSelect:a},m.id))})})]})}var ny=1,o2=.9,s2=.8,c2=.17,tf=.1,nf=.999,f2=.9999,d2=.99,h2=/[\\\/_+.#"@\[\(\{&]/,m2=/[\\\/_+.#"@\[\(\{&]/g,p2=/[\s-]/,Ub=/[\s-]/g;function Rf(t,l,i,a,o,c,s){if(c===l.length)return o===t.length?ny:d2;var d=`${o},${c}`;if(s[d]!==void 0)return s[d];for(var m=a.charAt(c),p=i.indexOf(m,o),b=0,g,v,S,E;p>=0;)g=Rf(t,l,i,a,p+1,c+1,s),g>b&&(p===o?g*=ny: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(Ub),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=Rf(t,l,i,a,p+1,c+2,s),v*tf>g&&(g=v*tf)),g>b&&(b=g),p=i.indexOf(m,p+1);return s[d]=b,b}function ly(t){return t.toLowerCase().replace(Ub," ")}function g2(t,l,i){return t=i&&i.length>0?`${t+" "+i.join(" ")}`:t,Rf(t,l,ly(t),ly(l),0,0,{})}var y2=Object.defineProperty,hi=(t,l)=>y2(t,"name",{value:l,configurable:!0}),Bb=!!(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(!Bb)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 Lf(t){if(!Bb)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}hi(Lf,"getOwnerDocument");function Hb(t,l=!1){const{activeElement:i}=Lf(t);if(!(i!=null&&i.nodeName))return null;if(qb(i)&&i.contentDocument)return Hb(i.contentDocument.body,l);if(l){const a=i.getAttribute("aria-activedescendant");if(a){const o=Lf(i).getElementById(a);if(o)return o}}return i}hi(Hb,"getActiveElement");function qb(t){return t.tagName==="IFRAME"}hi(qb,"isFrame");var x2=Object.defineProperty,gd=(t,l)=>x2(t,"name",{value:l,configurable:!0});function Uf(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}gd(Uf,"setRef");function rr(...t){return l=>{let i=!1;const a=t.map(o=>{const c=Uf(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():Uf(t[o],null)}}}}gd(rr,"composeRefs");function mi(...t){return k.useCallback(rr(...t),t)}gd(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 y.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 Ib(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 y.jsx(A.Provider,{value:j,children:S})},"Provider");p.displayName=c+"Provider";function b(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(b,"useContext"),[p,b]}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,Vb(o,...l)]}mn(Ib,"createContextScope");function Vb(...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(Vb,"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}),ry=Aa[" useEffectEvent ".trim().toString()],iy=Aa[" useInsertionEffect ".trim().toString()];function Yb(t){if(typeof ry=="function")return ry(t);const l=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof iy=="function"?iy(()=>{l.current=t}):ci(()=>{l.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=l.current)==null?void 0:a.call(l,...i)}),[])}A2(Yb,"useEffectEvent");var N2=Object.defineProperty,Na=(t,l)=>N2(t,"name",{value:l,configurable:!0}),j2=Aa[" useInsertionEffect ".trim().toString()]||ci;function Gb({prop:t,defaultProp:l,onChange:i=Na(()=>{},"onChange"),caller:a}){const[o,c,s]=Fb({defaultProp:l,onChange:i}),d=t!==void 0,m=d?t:o,p=k.useCallback(b=>{var g;if(d){const v=Xb(b)?b(t):b;v!==t&&((g=s.current)==null||g.call(s,v))}else c(b)},[d,t,c,s]);return[m,p]}Na(Gb,"useControllableState");function Fb({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(Fb,"useUncontrolledState");function Xb(t){return typeof t=="function"}Na(Xb,"isFunction");var ay=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=Yb(s),b=[{...i,state:c}];a&&b.push(a);const[g,v]=k.useReducer((j,N)=>{if(N.type===ay)return{...j,state:N.state};const R=t(j,N);return m&&!Object.is(R.state,j.state)&&p(R.state),R},...b),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:ay,state:o})},[o,g.state,m]),[A,v]}Na(z2,"useControllableStateReducer");var Qb=db(),M2=Object.defineProperty,kn=(t,l)=>M2(t,"name",{value:l,configurable:!0});function yd(t){const l=k.forwardRef((i,a)=>{let{children:o,...c}=i,s=null,d=!1;const m=[];Bf(o)&&typeof eo=="function"&&(o=eo(o._payload)),k.Children.forEach(o,v=>{var S;if($b(v)){d=!0;const E=v;let A="child"in E.props?E.props.child:E.props.children;Bf(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?Pb(s):void 0,b=mi(a,p);if(!s){if(o||o===0)throw new Error(d?L2(t):R2(t));return o}const g=Kb(c,s.props??{});return s.type!==k.Fragment&&(g.ref=a?b:p),k.cloneElement(s,g)});return l.displayName=`${t}.Slot`,l}kn(yd,"createSlot");var Zb=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=Zb,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 Kb(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(Kb,"mergeProps");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)}kn(Pb,"getElementRef");function $b(t){return k.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Zb}kn($b,"isSlottable");var O2=Symbol.for("react.lazy");function Bf(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===O2&&"_payload"in t&&Jb(t._payload)}kn(Bf,"isLazyComponent");function Jb(t){return typeof t=="object"&&t!==null&&"then"in t}kn(Jb,"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=yd(`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),y.jsx(m,{...d,ref:c})});return a.displayName=`Primitive.${l}`,{...t,[l]:a}},{});function Wb(t,l){t&&Qb.flushSync(()=>t.dispatchEvent(l))}B2(Wb,"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}),Hf="dismissableLayer.update",Y2="dismissableLayer.pointerDownOutside",G2="dismissableLayer.focusOutside",uy,ex=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,...b}=l,g=k.useContext(ex),[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=nx(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=lx(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&&(uy=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),qf(),()=>{a&&(g.layersWithOutsidePointerEventsDisabled.delete(v),g.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=uy))}},[v,E,a,g]),k.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),qf())},[v,g]),k.useEffect(()=>{const P=yt(()=>A({}),"handleUpdate");return document.addEventListener(Hf,P),()=>document.removeEventListener(Hf,P)},[]),y.jsx(pn.div,{...b,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 tx(){const t=k.useContext(ex),[l,i]=k.useState(null);return k.useEffect(()=>{if(l)return t.dismissableSurfaces.add(l),()=>{t.dismissableSurfaces.delete(l)}},[l,t.dismissableSurfaces]),i}yt(tx,"useDismissableLayerSurface");var X2=yt(()=>!0,"IS_TRUE");function nx(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),b=k.useRef(new Map),g=k.useRef(()=>{});return k.useEffect(()=>{function v(){p.current=!1,o.current=!1,b.current.clear()}yt(v,"resetOutsideInteraction");function S(){return Array.from(b.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))||b.current.set(L.type,!0),L.type==="click"&&window.setTimeout(()=>{p.current&&g.current()},0)}yt(E,"handleInteractionCapture");function A(L){p.current&&b.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||bd(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,b.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(nx,"usePointerDownOutside");function lx(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(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(lx,"useFocusOutside");function qf(){const t=new CustomEvent(Hf);document.dispatchEvent(t)}yt(qf,"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?Wb(o,c):o.dispatchEvent(c)}yt(bd,"handleAndDispatchCustomEvent");var Q2=Object.defineProperty,Mt=(t,l)=>Q2(t,"name",{value:l,configurable:!0}),lf="focusScope.autoFocusOnMount",rf="focusScope.autoFocusOnUnmount",oy={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),b=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){sy.add(E);const j=document.activeElement;if(!m.contains(j)){const R=new CustomEvent(lf,oy);m.addEventListener(lf,b),m.dispatchEvent(R),R.defaultPrevented||(rx(sx(xd(m)),{select:!0}),document.activeElement===j&&el(m))}return()=>{m.removeEventListener(lf,b),setTimeout(()=>{const R=new CustomEvent(rf,oy);m.addEventListener(rf,g),m.dispatchEvent(R),R.defaultPrevented||el(j??document.body,{select:!0}),m.removeEventListener(rf,g),sy.remove(E)},0)}}},[m,b,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]=ix(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 y.jsx(pn.div,{tabIndex:-1,...d,ref:S,onKeyDown:A})},"FocusScope"));function rx(t,{select:l=!1}={}){const i=document.activeElement;for(const a of t)if(el(a,{select:l}),document.activeElement!==i)return}Mt(rx,"focusFirst");function ix(t){const l=xd(t),i=If(l,t),a=If(l.reverse(),t);return[i,a]}Mt(ix,"getTabbableEdges");function xd(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(xd,"getTabbableCandidates");function If(t,l){const i=typeof l.checkVisibility=="function"&&l.checkVisibility({checkVisibilityCSS:!0});for(const a of t)if(!(i?!a.checkVisibility({checkVisibilityCSS:!0}):ax(a,{upTo:l})))return a}Mt(If,"findVisible");function ax(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(ax,"isHidden");function ux(t){return t instanceof HTMLInputElement&&"select"in t}Mt(ux,"isSelectableInput");function el(t,{select:l=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&ux(t)&&l&&t.select()}}Mt(el,"focus");var sy=ox();function ox(){let t=[];return{add(l){const i=t[0];l!==i&&(i==null||i.pause()),t=Vf(t,l),t.unshift(l)},remove(l){var i;t=Vf(t,l),(i=t[0])==null||i.resume()}}}Mt(ox,"createFocusScopesStack");function Vf(t,l){const i=[...t],a=i.indexOf(l);return a!==-1&&i.splice(a,1),i}Mt(Vf,"arrayRemove");function sx(t){return t.filter(l=>l.tagName!=="A")}Mt(sx,"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?Qb.createPortal(y.jsx(pn.div,{...o,ref:i}),d):null},"Portal")),J2=Object.defineProperty,tl=(t,l)=>J2(t,"name",{value:l,configurable:!0});function cx(t,l){return k.useReducer((i,a)=>l[i][a]??i,t)}tl(cx,"useStateMachine");var vd=tl(t=>{const{present:l,children:i}=t,a=fx(l),o=typeof i=="function"?i({present:a.isPresent}):k.Children.only(i),c=dx(a.ref,hx(o));return typeof i=="function"||a.isPresent?k.cloneElement(o,{ref:c}):null},"Presence");function fx(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]=cx(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 b=a.current,g=o.current;if(g!==t){const S=c.current,E=ri(b);t?(s.current=E,p("MOUNT")):E==="none"||(b==null?void 0:b.display)==="none"?p("UNMOUNT"):p(g&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),ci(()=>{if(l){let b;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",b=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(b),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(b=>{if(b){const g=getComputedStyle(b);a.current=g,s.current=ri(g)}else a.current=null;i(b)},[])}}tl(fx,"usePresence");function Yf(t,l){if(typeof t=="function")return t(l);t!=null&&(t.current=l)}tl(Yf,"setRef");function dx(...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=Yf(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():Yf(a[s],null)}}},[])}tl(dx,"useStableComposedRefs");function ri(t){return(t==null?void 0:t.animationName)||"none"}tl(ri,"getAnimationName");function hx(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(hx,"getElementRef");var W2=Object.defineProperty,Sd=(t,l)=>W2(t,"name",{value:l,configurable:!0}),to=0,jn=null;function ew(t){return kd(),t.children}Sd(ew,"FocusGuards");function kd(){k.useEffect(()=>{jn||(jn={start:Gf(),end:Gf()});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)}},[])}Sd(kd,"useFocusGuards");function Gf(){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}Sd(Gf,"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 mx(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,cy=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=cy.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)})}cy.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 b=s;s=[],b.forEach(c)},p=function(){return Promise.resolve().then(m)};p(),i={push:function(b){s.push(b),p()},filter:function(b){return s=s.filter(b),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 px=function(t){var l=t.sideCar,i=mx(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))};px.isSideCarExport=!0;function cw(t,l){return t.useMedium(l),px}var gx=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,b=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=mx(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,b&&k.createElement(ee,{sideCar:gx,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])}},yx=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=yx(),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"),`
|
|
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 b=s[p];if(b.validator(d))return b.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 b=o.length;for(let A=0;A<b;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 w=p&&p>m?p-m:void 0;return ey(c,S,v,w)};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 b=m.length-1;b>=0;b-=1){const g=m[b],{isExternal:v,modifiers:S,hasImportantModifier:w,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=w?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((b,g)=>g(b),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 b=Nk(m,i);return o(m,b),b};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"),b=mt("shadow"),g=mt("inset-shadow"),v=mt("text-shadow"),S=mt("drop-shadow"),w=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",w,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",b,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 y.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&&y.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 y.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:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:c}),y.jsx(n2,{status:o,className:"shrink-0"})]}),y.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&y.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&y.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:r2(t.cwd)}),y.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?l2(t.updatedAt):""})]})]})}const a2=[{id:"sessions",label:"Sessions",icon:y.jsx(PS,{className:"size-4"})},{id:"memory",label:"Memory",icon:y.jsx(fd,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:y.jsx(BS,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:y.jsx(gb,{className:"size-4"})},{id:"settings",label:"Settings",icon:y.jsx(vb,{className:"size-4"})}];function u2({sessions:t,pendingSessionIds:l,selectedSessionId:i,onSelectSession:a,activeNav:o,onNavChange:c,collapsed:s,onToggleCollapse:d}){return y.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:[y.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!s&&y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),y.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),y.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?y.jsx(WS,{className:"size-4"}):y.jsx(JS,{className:"size-4"})})]}),y.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:a2.map(m=>y.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&&y.jsx("span",{children:m.label})]},m.id))}),o==="sessions"&&!s&&y.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?y.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):y.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(m=>y.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),b=0,g,v,S,w;p>=0;)g=Lf(t,l,i,a,p+1,c+1,s),g>b&&(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,w=t.slice(o,p-1).match(Bb),w&&o>0&&(g*=Math.pow(nf,w.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>b&&(b=g),p=i.indexOf(m,p+1);return s[d]=b,b}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 y.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,...w}=g,A=((N=v==null?void 0:v[t])==null?void 0:N[m])||d,j=k.useMemo(()=>w,Object.values(w));return y.jsx(A.Provider,{value:j,children:S})},"Provider");p.displayName=c+"Provider";function b(g,v,S={}){var N;const{optional:w=!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(!w)throw new Error(`\`${g}\` must be used within \`${c}\``)}return mn(b,"useContext"),[p,b]}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(b=>{var g;if(d){const v=Qb(b)?b(t):b;v!==t&&((g=s.current)==null||g.call(s,v))}else c(b)},[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),b=[{...i,state:c}];a&&b.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},...b),S=g.state,w=k.useRef(S);k.useEffect(()=>{w.current!==S&&(w.current=S,m||p(S))},[S,w,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 w=v;let A="child"in w.props?w.props.child:w.props.children;Hf(A)&&typeof eo=="function"&&(A=eo(A._payload)),s=D2(w,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,b=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?b: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),y.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,...b}=l,g=k.useContext(tx),[v,S]=k.useState(null),w=(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:w,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())},w),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 w.addEventListener("keydown",re,{capture:!0}),()=>w.removeEventListener("keydown",re,{capture:!0})},[w,H,re]),k.useEffect(()=>{if(v)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(sy=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),If(),()=>{a&&(g.layersWithOutsidePointerEventsDisabled.delete(v),g.layersWithOutsidePointerEventsDisabled.size===0&&(w.body.style.pointerEvents=sy))}},[v,w,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)},[]),y.jsx(pn.div,{...b,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),b=k.useRef(new Map),g=k.useRef(()=>{});return k.useEffect(()=>{function v(){p.current=!1,o.current=!1,b.current.clear()}yt(v,"resetOutsideInteraction");function S(){return Array.from(b.current.values()).some(Boolean)}yt(S,"isOutsideInteractionIntercepted");function w(L){if(!p.current)return;const W=L.target;W instanceof Node&&[...c].some(D=>D.contains(W))||b.current.set(L.type,!0),L.type==="click"&&window.setTimeout(()=>{p.current&&g.current()},0)}yt(w,"handleInteractionCapture");function A(L){p.current&&b.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,b.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,w,!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,w,!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),b=fi(c),g=fi(s),v=k.useRef(null),S=mi(i,p),w=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(o){let j=function(W){if(w.paused||!m)return;const ee=W.target;m.contains(ee)?v.current=ee:el(v.current,{select:!0})},N=function(W){if(w.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,w.paused]),k.useEffect(()=>{if(m){fy.add(w);const j=document.activeElement;if(!m.contains(j)){const R=new CustomEvent(lf,cy);m.addEventListener(lf,b),m.dispatchEvent(R),R.defaultPrevented||(ix(cx(vd(m)),{select:!0}),document.activeElement===j&&el(m))}return()=>{m.removeEventListener(lf,b),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(w)},0)}}},[m,b,g,w]);const A=k.useCallback(j=>{if(!a&&!o||w.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,w.paused]);return y.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(y.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 b=a.current,g=o.current;if(g!==t){const S=c.current,w=ri(b);t?(s.current=w,p("MOUNT")):w==="none"||(b==null?void 0:b.display)==="none"?p("UNMOUNT"):p(g&&S!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),ci(()=>{if(l){let b;const g=l.ownerDocument.defaultView??window,v=tl(w=>{const j=ri(a.current).includes(CSS.escape(w.animationName));if(w.target===l&&j&&(p("ANIMATION_END"),!o.current)){const N=l.style.animationFillMode;l.style.animationFillMode="forwards",b=g.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=N)})}},"handleAnimationEnd"),S=tl(w=>{w.target===l&&(c.current=ri(a.current))},"handleAnimationStart");return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",v),l.addEventListener("animationend",v),()=>{g.clearTimeout(b),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(b=>{if(b){const g=getComputedStyle(b);a.current=g,s.current=ri(g)}else a.current=null;i(b)},[])}}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 b=s;s=[],b.forEach(c)},p=function(){return Promise.resolve().then(m)};p(),i={push:function(b){s.push(b),p()},filter:function(b){return s=s.filter(b),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,b=t.enabled,g=t.shards,v=t.sideCar,S=t.noRelative,w=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,b&&k.createElement(ee,{sideCar:yx,removeScrollBar:p,shards:g,noRelative:S,noIsolation:w,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
305
|
.`.concat(nw,` {
|
|
306
306
|
overflow: hidden `).concat(a,`;
|
|
307
307
|
padding-right: `).concat(d,"px ").concat(a,`;
|
|
@@ -338,43 +338,43 @@ Error generating stack: `+u.message+`
|
|
|
338
338
|
body[`).concat(si,`] {
|
|
339
339
|
`).concat(lw,": ").concat(d,`px;
|
|
340
340
|
}
|
|
341
|
-
`)},
|
|
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,b=s>0,g=0,v=0;do{if(!d)break;var S=Sx(t,d),w=S[0],A=S[1],j=S[2],N=A-j-c*w;(w||N)&&vx(t,d)&&(g+=N,v+=w);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(b&&Math.abs(g)<1||!b&&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`
|
|
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(yx)[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(my),!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=dy(X,D);if(!re)return!0;if(re?ee=X:(ee=X==="v"?"h":"v",re=dy(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?hy(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(my).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)},[]),b=k.useCallback(function(A){i.current=lo(A),a.current=void 0},[]),g=k.useCallback(function(A){p(A.type,hy(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",b,Jr),function(){Wr=Wr.filter(function(A){return A!==c}),document.removeEventListener("wheel",m,Jr),document.removeEventListener("touchmove",m,Jr),document.removeEventListener("touchstart",b,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(gx,Ow);var Sx=k.forwardRef(function(t,l){return k.createElement(Co,Mn({},t,{ref:l,sideCar:Lw}))});Sx.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,kx=function(t){return t&&(t.host||kx(t.parentNode))},Bw=function(t,l){return l.map(function(i){if(t.contains(i))return i;var a=kx(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 b=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))b(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 b(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}),wd="Dialog",[wx,h5]=Ib(wd),[Vw,or]=wx(wd),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,b]=Gb({prop:a,defaultProp:o??!1,onChange:c,caller:wd}),[g,v]=k.useState(0),[S,E]=k.useState(0);return y.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:b,onOpenToggle:k.useCallback(()=>b(A=>!A),[b]),modal:s,children:i})},"Dialog"),Ex="DialogPortal",[Gw,Cx]=wx(Ex,{forceMount:void 0}),Fw=nl(t=>{const{__scopeDialog:l,forceMount:i,children:a,container:o}=t,c=or(Ex,l);return y.jsx(Gw,{scope:l,forceMount:i,children:k.Children.map(a,s=>y.jsx(vd,{present:i||c.open,children:y.jsx($2,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Xf="DialogOverlay",Xw=k.forwardRef(nl(function(l,i){const a=Cx(Xf,l.__scopeDialog),{forceMount:o=a.forceMount,...c}=l,s=or(Xf,l.__scopeDialog);return s.modal?y.jsx(vd,{present:o||s.open,children:y.jsx(Zw,{...c,ref:i})}):null},"DialogOverlay")),Qw=yd("DialogOverlay.RemoveScroll"),Zw=k.forwardRef(nl(function(l,i){const{__scopeDialog:a,...o}=l,c=or(Xf,a),s=tx(),d=mi(i,s);return y.jsx(Sx,{as:Qw,allowPinchZoom:!0,shards:[c.contentRef],children:y.jsx(pn.div,{"data-state":Ed(c.open),...o,ref:d,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),Ea="DialogContent",Kw=k.forwardRef(nl(function(l,i){const a=Cx(Ea,l.__scopeDialog),{forceMount:o=a.forceMount,...c}=l,s=or(Ea,l.__scopeDialog);return y.jsx(vd,{present:o||s.open,children:s.modal?y.jsx(Pw,{...c,ref:i}):y.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)},[]),y.jsx(Tx,{...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 y.jsx(Tx,{...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,b;(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;((b=a.triggerRef.current)==null?void 0:b.contains(d))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&c.current&&s.preventDefault()}})},"DialogContentNonModal")),Tx=k.forwardRef(nl(function(l,i){const{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,...d}=l,m=or(Ea,a);return kd(),y.jsx(y.Fragment,{children:y.jsx(Z2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:s,children:y.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":Ed(m.open),...d,ref:i,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})},"DialogContentImpl"));function Ed(t){return t?"open":"closed"}nl(Ed,"getState");var da='[cmdk-group=""]',cf='[cmdk-group-items=""]',Jw='[cmdk-group-heading=""]',Ax='[cmdk-item=""]',py=`${Ax}:not([aria-disabled="true"])`,Qf="cmdk-item-select",ii="data-value",Ww=(t,l,i)=>g2(t,l,i),Nx=k.createContext(void 0),ja=()=>k.useContext(Nx),jx=k.createContext(void 0),Cd=()=>k.useContext(jx),zx=k.createContext(void 0),Mx=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=_x(t),{label:m,children:p,value:b,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(b!==void 0){let M=b.trim();i.current.value=M,X.emit()}},[b]),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(`${Ax}[aria-selected="true"]`)}function ne(){var M;return Array.from(((M=ee.current)==null?void 0:M.querySelectorAll(py))||[])}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(py);$?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(Qf);$.dispatchEvent(le)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:V.inputId,id:V.labelId,style:dE},m),To(t,M=>k.createElement(jx.Provider,{value:X},k.createElement(Nx.Provider,{value:V},M))))}),eE=k.forwardRef((t,l)=>{var i,a;let o=_n(),c=k.useRef(null),s=k.useContext(zx),d=ja(),m=_x(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 b=Dx(o,c,[t.value,t.children,c],t.keywords),g=Cd(),v=_l(D=>D.value&&D.value===b.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(Qf,E),()=>D.removeEventListener(Qf,E)},[S,t.onSelect,t.disabled]);function E(){var D,X;A(),(X=(D=m.current).onSelect)==null||X.call(D,b.current)}function A(){g.setState("value",b.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(),b=ja(),g=_l(S=>o||b.filter()===!1?!0:S.search?S.filtered.groups.has(s):!0);ir(()=>b.group(s),[]),Dx(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(zx.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=Cd(),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,b=c.current,g,v=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let S=p.offsetHeight;b.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(Mx,{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(Mx,{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 _x(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=Cd(),i=()=>t(l.snapshot());return k.useSyncExternalStore(l.subscribe,i,i)}function Dx(t,l,i,a=[]){let o=k.useRef(),c=ja();return ir(()=>{var s;let d=(()=>{var p;for(let b of i){if(typeof b=="string")return b.trim();if(typeof b=="object"&&"current"in b)return b.current?(p=b.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:cd,value:"memory"},{label:"Schedules",icon:US,value:"schedules"},{label:"Jobs",icon:LS,value:"jobs"},{label:"Settings",icon:xb,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?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>i(!1),children:[y.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),y.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:y.jsxs(ti,{children:[y.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[y.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:[y.jsx("circle",{cx:"11",cy:"11",r:"8"}),y.jsx("path",{d:"m21 21-4.35-4.35"})]}),y.jsx(ti.Input,{autoFocus:!0,placeholder:"Search commands…",className:se("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),y.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),y.jsxs(ti.List,{className:"max-h-64 overflow-y-auto py-2",children:[y.jsx(ti.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),y.jsx(ti.Group,{heading:"Navigation",className:"px-2",children:hE.map(({label:o,icon:c,value:s})=>y.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:[y.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 gy=200;function Ox({text:t,isStreaming:l=!1}){const[i,a]=k.useState(!1),o=t.length>gy,c=o&&!i?t.slice(0,gy)+"…":t;return y.jsxs("details",{className:"group rounded-md border border-border/30 bg-muted/20",children:[y.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:[y.jsx(cd,{className:["h-3.5 w-3.5 shrink-0 text-brand/60",l?"animate-pulse":""].filter(Boolean).join(" ")}),y.jsx("span",{className:"font-medium",children:"Thinking"}),t.length>0&&y.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums",children:[t.length.toLocaleString()," chars"]}),l&&y.jsx("span",{className:"ml-0.5 flex items-center gap-px",children:[0,150,300].map(s=>y.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-muted-foreground/50 animate-shimmer-pulse",style:{animationDelay:`${s}ms`}},s))})]}),y.jsxs("div",{className:"border-t border-border/30 px-3 py-2",children:[y.jsx("p",{className:"whitespace-pre-wrap break-words text-xs italic leading-relaxed text-muted-foreground/70",children:c}),o&&y.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 y.jsx("div",{className:se("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:y.jsx("div",{className:"min-h-0 overflow-hidden",children:l})})}function bE({diff:t}){const l=t.split(`
|
|
345
|
-
`);return y.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:y.jsx("table",{className:"w-full border-collapse",children:y.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 y.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:[y.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:a+1}),y.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:Df,colorClass:"text-cat-shell"},test_run:{Icon:Df,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:_f,colorClass:"text-cat-web"},web_request:{Icon:_f,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:Sb,colorClass:"text-cat-other"}}function SE({status:t}){return t==="running"?y.jsx(KS,{className:"h-3.5 w-3.5 shrink-0 animate-spin-slow text-status-blocked","aria-label":"running"}):t==="ok"?y.jsx(qS,{className:"h-3.5 w-3.5 shrink-0 text-status-running","aria-label":"ok"}):y.jsx(gb,{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:y.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,b]=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 y.jsxs("div",{className:se("rounded-md border bg-card text-sm",i==="error"?"border-status-failed/40":"border-border"),children:[y.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[y.jsx(E,{className:se("h-3.5 w-3.5 shrink-0",A)}),y.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:t}),y.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[y.jsx(kE,{ms:s,live:i==="running"?g:void 0}),y.jsx(SE,{status:i})]})]}),N.length>0&&y.jsx("button",{type:"button",onClick:()=>b(R=>!R),className:"w-full border-t border-border/50 px-3 py-1.5 text-left","aria-expanded":p,children:y.jsx("p",{className:se("font-mono text-[11px] text-muted-foreground",!p&&"line-clamp-2"),children:N})}),j&&y.jsxs("div",{className:"border-t border-border/50",children:[y.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:[y.jsx(Eo,{className:se("h-3 w-3 shrink-0 transition-transform duration-150",d&&"rotate-90")}),"Output"]}),y.jsx(yE,{open:d,children:y.jsxs("div",{className:"px-3 pb-2 pt-1",children:[o&&y.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not available (replayed session)"}),c&&y.jsx(bE,{diff:c}),!c&&a&&y.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 y.jsx(tk,{className:se(l,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return y.jsx(HS,{className:se(l,"text-status-running"),"aria-label":"succeeded"});case"failed":return y.jsx(VS,{className:se(l,"text-status-failed"),"aria-label":"failed"});case"cancelled":return y.jsx(vb,{className:se(l,"text-muted-foreground"),"aria-label":"cancelled"});default:return y.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 y.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?y.jsx(Eo,{className:se("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",l&&"rotate-90")}):y.jsx("span",{className:"h-3 w-3 shrink-0"}),y.jsx("span",{className:"mt-0.5",children:y.jsx(TE,{status:o.status})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&y.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&&y.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&&y.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:CE(o.totalCostUsd)}),y.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",AE(o.status)),children:o.status})]}),o.promptHead&&y.jsxs("p",{className:"mt-0.5 line-clamp-1 text-[11px] italic text-muted-foreground",children:["“",o.promptHead,"”"]})]})]})}function Rx({node:t,isChild:l=!1}){const[i,a]=k.useState(!0),o=t.children.length>0;return y.jsxs("div",{children:[y.jsx(NE,{node:t,isExpanded:i,onToggle:()=>a(c=>!c),isChild:l}),o&&i&&y.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((c,s)=>y.jsx("div",{className:se(s<t.children.length-1&&"border-b border-border/30"),children:y.jsx(Rx,{node:c,isChild:!0})},c.item.subagentId))})]})}function jE({roots:t,className:l}){return t.length===0?null:y.jsx("div",{className:se("rounded-md border border-border bg-card",l),children:t.map((i,a)=>y.jsx("div",{className:se(a<t.length-1&&"border-b border-border/50"),children:y.jsx(Rx,{node:i})},i.item.subagentId))})}function ff(){return y.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function ao({label:t,value:l}){return y.jsxs("span",{className:"flex items-baseline gap-1",children:[y.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),y.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 Lx({totals:t,className:l}){if(!t)return y.jsx("div",{className:se("flex items-center gap-2 text-xs text-muted-foreground",l),children:y.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const i=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return y.jsxs("div",{className:se("flex flex-wrap items-center gap-2",l),children:[y.jsx(ao,{label:"turns",value:String(t.turns)}),y.jsx(ff,{}),y.jsx(ao,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),i>0&&y.jsxs(y.Fragment,{children:[y.jsx(ff,{}),y.jsx(ao,{label:"tokens",value:ME(i)})]}),y.jsx(ff,{}),y.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 Ux(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 Bx(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 g=0;g<t.length;g++){const v=t[g];v!==void 0&&(v.kind==="tool"&&(l.push(v),a.set(v.id,g)),v.kind==="subagent"&&(i.push(v),a.set(v.id,g)))}const o=new Map;for(const g of l)g.toolUseId&&o.set(g.toolUseId,g);const c=new Map,s=new Map,d=new Set;for(const g of l)c.set(g.id,FE(g,a.get(g.id)??0));for(const g of i)s.set(g.subagentId,XE(g,a.get(g.id)??0));const m=[],p=[];for(const g of i){const v=s.get(g.subagentId);if(v){if(g.parentToolUseId){const S=o.get(g.parentToolUseId);if(S){const E=c.get(S.id);if(E){E.kind="agent",E.children.push(v),d.add(S.id);continue}}p.push(v);continue}if(g.parentId){const S=s.get(g.parentId);if(S){S.children.push(v);continue}p.push(v);continue}m.push(v)}}const b=[];for(const g of p){const v=i.find(E=>E.subagentId===g.sourceId);if(!v){m.push(g);continue}let S=!1;if(v.parentToolUseId){const E=o.get(v.parentToolUseId);if(E){const A=c.get(E.id);A&&(A.kind="agent",A.children.push(g),d.add(E.id),S=!0)}}if(!S&&v.parentId){const E=s.get(v.parentId);E&&(E.children.push(g),S=!0)}S||b.push(g)}for(const g of b)m.push(g);for(const g of l)if(!d.has(g.id)){const v=c.get(g.id);v&&m.push(v)}return m.sort((g,v)=>g.seq-v.seq),m}const ZE={read:li,write:mo,shell:Df,agent:po,skill:ak,dag:$S,mcp:nk,web:_f,browser:oi,plan:ZS,other:Sb},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 Hx(t){let l=0;for(const i of t.children)i.kind==="tool"&&l++,l+=Hx(i);return l}function qx(t){let l=t.durationMs??0;for(const i of t.children)l+=qx(i);return l}function PE({category:t,status:l}){const i=ZE[t],a=KE[t];return y.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 y.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-status-failed",children:"Failed"});if(t.status==="cancelled")return y.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:"Cancelled"});const l=Hx(t),i=t.durationMs??qx(t),a=t.costUsd,o=[];return l>0&&o.push(`${l} tool${l!==1?"s":""}`),i>0&&o.push(Ux(i)),a!=null&&a>0&&o.push(Bx(a)),y.jsxs("div",{className:"mt-0.5 pl-5 text-[11px] text-muted-foreground",children:["Done",o.length>0?` (${o.join(" · ")})`:""]})}function Ix({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?dd:Eo;return y.jsxs("div",{className:se("relative",l>0&&"pl-3"),children:[y.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?y.jsx(m,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}):y.jsx("span",{className:"h-3 w-3 shrink-0","aria-hidden":!0}),y.jsx(PE,{category:t.category,status:t.status}),y.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&&y.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.model}),d&&t.agentType&&y.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&&y.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:[t.turnCount," turn",t.turnCount!==1?"s":""]}),t.durationMs!=null&&t.durationMs>0&&y.jsx("span",{className:"text-[10px] font-mono text-muted-foreground tabular-nums",children:Ux(t.durationMs)}),d&&t.costUsd!=null&&t.costUsd>0&&y.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:Bx(t.costUsd)})]}),d&&t.preview&&y.jsx("div",{className:"pl-5 text-[11px] italic text-muted-foreground/60 line-clamp-1 leading-tight",children:t.preview}),d&&!o&&s&&y.jsx(df,{node:t}),s&&o&&y.jsxs("div",{className:se("relative mt-0.5 ml-[22px]","border-l-2 border-spine"),children:[t.children.map((p,b)=>{const g=b===t.children.length-1;return y.jsxs("div",{className:"relative",children:[y.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&&y.jsx("div",{className:"absolute left-[-2px] top-[10px] bottom-0 w-[2px] bg-background","aria-hidden":!0}),y.jsx("div",{className:"pl-3",children:y.jsx(Ix,{node:p,depth:l+1,isLast:g})})]},p.id)}),d&&t.status!=="running"&&y.jsx(df,{node:t})]}),d&&(!s||!o)&&t.status!=="running"&&(s?null:y.jsx(df,{node:t}))]})}function $E({nodes:t,className:l}){return y.jsxs("div",{className:se("relative pl-3 border-l-2 border-spine/40",l),children:[y.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-widest text-muted-foreground/40 select-none",children:"Execution"}),t.length===0?y.jsx("div",{className:"text-[11px] text-muted-foreground/30 italic py-1",children:"No activity yet"}):y.jsx("div",{className:"flex flex-col gap-0.5",children:t.map((i,a)=>y.jsx(Ix,{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 y.jsx(y.Fragment,{children:t.map((i,a)=>i.kind==="text"?l(i.item,a):y.jsx("div",{className:"py-2 px-1",children:y.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 yy(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"?by(t.value):!1:by(t)}function by(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 Vx(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 Zf(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(),Kf=sr(),ie=sr(),Pe=sr(),lr=sr(),Wt=sr();function sr(){return 2**++sC}const Pf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ft,commaOrSpaceSeparated:Wt,commaSeparated:lr,number:ie,overloadedBoolean:Kf,spaceSeparated:Pe},Symbol.toStringTag,{value:"Module"})),hf=Object.keys(Pf);class Td extends Gt{constructor(l,i,a,o){let c=-1;if(super(l,i),xy(this,"space",o),typeof a=="number")for(;++c<hf.length;){const s=hf[c];xy(this,hf[c],(a&Pf[s])===Pf[s])}}}Td.prototype.defined=!0;function xy(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 Td(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),l[a]=c,i[Zf(a)]=a,i[Zf(c.attribute)]=a}return new za(l,i,t.space)}const Yx=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 Gx(t,l){return l in t?t[l]:l}function Fx(t,l){return Gx(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:Kf,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:Kf,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:Fx}),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:Gx}),Xx=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()}}),Qx=pi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fx}),Zx=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,vy=/-[a-z]/g,mC=/^data[-\w.:]+$/i;function pC(t,l){const i=Zf(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(vy,yC);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=l.slice(4);if(!vy.test(c)){let s=c.replace(hC,gC);s.charAt(0)!=="-"&&(s="-"+s),l="data"+s}}o=Td}return new o(a,l)}function gC(t){return"-"+t.toLowerCase()}function yC(t){return t.charAt(1).toUpperCase()}const bC=Vx([Yx,cC,Xx,Qx,Zx],"html"),Ad=Vx([Yx,fC,Xx,Qx,Zx],"svg");function xC(t){return t.join(" ").trim()}var ni={},mf,Sy;function vC(){if(Sy)return mf;Sy=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="/",b="*",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)||b!=j.charAt(1))){for(var ne=2;g!=j.charAt(ne)&&(b!=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 ky;function SC(){if(ky)return ni;ky=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:b}=m;d?o(p,b,m):b&&(c=c||{},c[p]=b)}),c}return ni}var ha={},wy;function kC(){if(wy)return ha;wy=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,b){return b.toUpperCase()},d=function(p,b){return"".concat(b,"-")},m=function(p,b){return b===void 0&&(b={}),c(p)?p:(p=p.toLowerCase(),b.reactCompat?p=p.replace(o,d):p=p.replace(a,d),p.replace(l,s))};return ha.camelCase=m,ha}var ma,Ey;function wC(){if(Ey)return ma;Ey=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=od(EC),Kx=Px("end"),Nd=Px("start");function Px(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=Nd(t),i=Kx(t);if(l&&i)return{start:l,end:i}}function Sa(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?Cy(t.position):"start"in t||"end"in t?Cy(t):"line"in t||"column"in t?$f(t):""}function $f(t){return Ty(t&&t.line)+":"+Ty(t&&t.column)}function Cy(t){return $f(t&&t.start)+"-"+$f(t&&t.end)}function Ty(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 jd={}.hasOwnProperty,AC=new Map,NC=/[A-Z]/g,jC=new Set(["table","tbody","thead","tfoot","tr"]),zC=new Set(["td","th"]),$x="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"?Ad:bC,stylePropertyNameCase:l.stylePropertyNameCase||"dom",tableCellAlignToStyle:l.tableCellAlignToStyle!==!1},c=Jx(o,t,void 0);return c&&typeof c!="string"?c:o.create(t,o.Fragment,{children:c||void 0},void 0)}function Jx(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=Ad,t.schema=o),t.ancestors.push(l);const c=e0(t,l.tagName,!1),s=qC(t,l);let d=Md(t,l);return jC.has(l.tagName)&&(d=d.filter(function(m){return typeof m=="string"?!oC(m):!0})),Wx(t,s,c,l),zd(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=Ad,t.schema=o),t.ancestors.push(l);const c=l.name===null?t.Fragment:e0(t,l.name,!0),s=IC(t,l),d=Md(t,l);return Wx(t,s,c,l),zd(s,d),t.ancestors.pop(),t.schema=a,t.create(l,c,s,i)}function LC(t,l,i){const a={};return zd(a,Md(t,l)),t.create(l,t.Fragment,a,i)}function UC(t,l){return l.value}function Wx(t,l,i,a){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(l.node=a)}function zd(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=Nd(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"&&jd.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 Md(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=Jx(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=$x+"#cannot-parse-style-attribute",o}}function e0(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=yy(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=yy(l)&&!/^[a-z]/.test(l)?{type:"Identifier",name:l}:{type:"Literal",value:l};if(a.type==="Literal"){const o=a.value;return jd.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=$x+"#cannot-handle-mdx-estrees-without-createevaluater",i}function GC(t){const l={};let i;for(i in t)jd.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 _d(t,l){const i=QC,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return t0(t,a,o)}function t0(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 Ay(t.children,l,i)}return Array.isArray(t)?Ay(t,l,i):""}function Ay(t,l,i){const a=[];let o=-1;for(;++o<t.length;)a[o]=t0(t[o],l,i);return a.join("")}function ZC(t){return!!(t&&typeof t=="object")}const Ny=document.createElement("i");function Dd(t){const l="&"+t+";";Ny.innerHTML=l;const i=Ny.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 jy={}.hasOwnProperty;function n0(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=(jy.call(t,i)?t[i]:void 0)||(t[i]={}),c=l[i];let s;if(c)for(s in c){jy.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 l0(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 Jf=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},zy={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(zy,b,g)(L)}function b(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(zy,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 Wf={name:"attention",resolveAll:iT,tokenize:aT};function iT(t,l){let i=-1,a,o,c,s,d,m,p,b;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};My(g,-m),My(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?(b=2,p=hn(p,[["enter",t[i][1],l],["exit",t[i][1],l]])):b=0,en(t,a-1,i-a+3,p),i=a+p.length-b-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"),b=di(m),g=!b||b===2&&o||i.includes(m),v=!o||o===2&&b||i.includes(a);return p._open=!!(c===42?g:g&&(o||!v)),p._close=!!(c===42?v:v&&(b||!g)),l(m)}}function My(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),b):$C(S)?(t.consume(S),p):i(S)}function b(S){return Ct(S)?g(S):i(S)}function g(S){return S===46?(t.consume(S),a=0,b):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 r0={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(r0,l,i)(s)}}function dT(t){t.exit("blockQuote")}const i0={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 a0={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,b(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,b):(t.enter("characterReferenceValue"),c=7,s=Jf,b(g))}function b(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return s===Ct&&!Dd(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),b):i(g)}}const _y={partial:!0,tokenize:gT},Dy={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"),b(D)}function b(D){return D===d?(s++,t.consume(D),b):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(_y,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(_y,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 b=a.events[a.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[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,b(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 b(g){return g===96?(t.consume(g),o++,b):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 u0(t){const l={};let i=-1,a,o,c,s,d,m,p;const b=new ET(t);for(;++i<b.length;){for(;i in l;)i=l[i];if(a=b.get(i),i&&a[1].type==="chunkFlow"&&b.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(b,i)),i=l[i],p=!0);else if(a[1]._container){for(c=i,o=void 0;c--;)if(s=b.get(c),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(b.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={...b.get(o)[1].start},d=b.slice(o,i),d.unshift(a),b.splice(o,i-o+1,d))}}return en(t,0,Number.POSITIVE_INFINITY,b.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 b,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||(b=a.sliceStream(S),S.next||b.push(null),g&&s.defineSkip(S.start),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(b),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 u0(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 o0(t,l,i,a,o,c,s,d,m){const p=m||Number.POSITIVE_INFINITY;let b=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!b&&(N===null||N===41||$e(N))?(t.exit("chunkString"),t.exit(d),t.exit(s),t.exit(a),l(N)):b<p&&N===40?(t.consume(N),b++,A):N===41?(t.consume(N),b--,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 s0(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),b}function b(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"),b):(t.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||xe(S)||d++>999?(t.exit("chunkString"),b(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 c0(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"}),b(v))}function b(v){return v===s||v===null||xe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:b)}function g(v){return v===s||v===92?(t.consume(v),b):b(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 s0.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 o0(t,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function b(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 c0(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(b){return t.enter("atxHeading"),c(b)}function c(b){return t.enter("atxHeadingSequence"),s(b)}function s(b){return b===35&&a++<6?(t.consume(b),s):b===null||$e(b)?(t.exit("atxHeadingSequence"),d(b)):i(b)}function d(b){return b===35?(t.enter("atxHeadingSequence"),m(b)):b===null||xe(b)?(t.exit("atxHeading"),l(b)):De(b)?Ue(t,d,"whitespace")(b):(t.enter("atxHeadingText"),p(b))}function m(b){return b===35?(t.consume(b),m):(t.exit("atxHeadingSequence"),d(b))}function p(b){return b===null||b===35||$e(b)?(t.exit("atxHeadingText"),d(b)):(t.consume(b),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"],Oy=["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 b(C)}function b(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&&Oy.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 Oy.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),b):T===91?(t.consume(T),c=0,E):zt(T)?(t.consume(T),R):i(T)}function b(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 Od={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}},b={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",b,l]]),d=hn(d,No(l.parser.constructs.insideSpan.null,t.slice(c+a+4,s-3),l)),d=hn(d,[["exit",b,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,b,s?b:g)(v):v===91?t.attempt($T,b,s?p:g)(v):s?b(v):g(v)}function p(v){return t.attempt(JT,b,g)(v)}function b(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?b(g):o0(t,s,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function s(g){return $e(g)?ka(t,m)(g):b(g)}function d(g){return i(g)}function m(g){return g===34||g===39||g===40?c0(t,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function p(g){return $e(g)?ka(t,b)(g):b(g)}function b(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 s0.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:Od.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:Od.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:Jf(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 Jf(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:b,t.attempt(f3,v,g))}function b(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 Ry={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 b=a.events.length,g;for(;b--;)if(a.events[b][1].type!=="lineEnding"&&a.events[b][1].type!=="linePrefix"&&a.events[b][1].type!=="content"){g=a.events[b][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:d0()},w3=f0("string"),E3=f0("text");function f0(t){return{resolveAll:d0(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(b){return p(b)?c(b):d(b)}function d(b){if(b===null){i.consume(b);return}return i.enter("data"),i.consume(b),m}function m(b){return p(b)?(i.exit("data"),c(b)):(i.consume(b),m)}function p(b){if(b===null)return!0;const g=o[b];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 d0(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:r0},A3={91:MT},N3={[-2]:gf,[-1]:gf,32:gf},j3={35:UT,42:bo,45:[Ry,bo],60:IT,61:Ry,95:bo,96:Dy,126:Dy},z3={38:a0,92:i0},M3={[-5]:yf,[-4]:yf,[-3]:yf,33:i3,38:a0,42:Wf,60:[uT,ZT],91:u3,92:[RT,i0],93:Od,95:Wf,96:vT},_3={null:[Wf,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 b=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){b=b(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
|
+
`)},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)},[]),b=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",b,Jr),function(){Wr=Wr.filter(function(A){return A!==c}),document.removeEventListener("wheel",m,Jr),document.removeEventListener("touchmove",m,Jr),document.removeEventListener("touchstart",b,Jr)}},[]);var S=t.removeScrollBar,w=t.inert;return k.createElement(k.Fragment,null,w?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 b=function(g){!g||m.has(g)||Array.prototype.forEach.call(g.children,function(v){if(d.has(v))b(v);else try{var S=v.getAttribute(a),w=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&&w&&ro.set(v,!0),j===1&&v.setAttribute(i,"true"),w||v.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return b(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,b]=Fb({prop:a,defaultProp:o??!1,onChange:c,caller:Ed}),[g,v]=k.useState(0),[S,w]=k.useState(0);return y.jsx(Vw,{scope:l,triggerRef:d,contentRef:m,contentId:_n(),titleId:_n(),descriptionId:_n(),titlePresent:g>0,descriptionPresent:S>0,setTitleCount:v,setDescriptionCount:w,open:p,onOpenChange:b,onOpenToggle:k.useCallback(()=>b(A=>!A),[b]),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 y.jsx(Gw,{scope:l,forceMount:i,children:k.Children.map(a,s=>y.jsx(Sd,{present:i||c.open,children:y.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?y.jsx(Sd,{present:o||s.open,children:y.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 y.jsx(kx,{as:Qw,allowPinchZoom:!0,shards:[c.contentRef],children:y.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 y.jsx(Sd,{present:o||s.open,children:s.modal?y.jsx(Pw,{...c,ref:i}):y.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)},[]),y.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 y.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,b;(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;((b=a.triggerRef.current)==null?void 0:b.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(),y.jsx(y.Fragment,{children:y.jsx(Z2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:s,children:y.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:b,onValueChange:g,filter:v,shouldFilter:S,loop:w,disablePointerSelection:A=!1,vimBindings:j=!0,...N}=t,R=_n(),L=_n(),W=_n(),ee=k.useRef(null),D=cE();ir(()=>{if(b!==void 0){let M=b.trim();i.current.value=M,X.emit()}},[b]),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 b=Ox(o,c,[t.value,t.children,c],t.keywords),g=Td(),v=_l(D=>D.value&&D.value===b.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,w),()=>D.removeEventListener(Zf,w)},[S,t.onSelect,t.disabled]);function w(){var D,X;A(),(X=(D=m.current).onSelect)==null||X.call(D,b.current)}function A(){g.setState("value",b.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:w},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(),b=ja(),g=_l(S=>o||b.filter()===!1?!0:S.search?S.filtered.groups.has(s):!0);ir(()=>b.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,b=c.current,g,v=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let S=p.offsetHeight;b.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 b of i){if(typeof b=="string")return b.trim();if(typeof b=="object"&&"current"in b)return b.current?(p=b.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?y.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>i(!1),children:[y.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),y.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:y.jsxs(ti,{children:[y.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[y.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:[y.jsx("circle",{cx:"11",cy:"11",r:"8"}),y.jsx("path",{d:"m21 21-4.35-4.35"})]}),y.jsx(ti.Input,{autoFocus:!0,placeholder:"Search commands…",className:se("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),y.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),y.jsxs(ti.List,{className:"max-h-64 overflow-y-auto py-2",children:[y.jsx(ti.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),y.jsx(ti.Group,{heading:"Navigation",className:"px-2",children:hE.map(({label:o,icon:c,value:s})=>y.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:[y.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 y.jsxs("details",{className:"group rounded-md border border-border/30 bg-muted/20",children:[y.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:[y.jsx(fd,{className:["h-3.5 w-3.5 shrink-0 text-brand/60",l?"animate-pulse":""].filter(Boolean).join(" ")}),y.jsx("span",{className:"font-medium",children:"Thinking"}),t.length>0&&y.jsxs("span",{className:"text-[10px] text-muted-foreground/50 tabular-nums",children:[t.length.toLocaleString()," chars"]}),l&&y.jsx("span",{className:"ml-0.5 flex items-center gap-px",children:[0,150,300].map(s=>y.jsx("span",{className:"inline-block h-1 w-1 rounded-full bg-muted-foreground/50 animate-shimmer-pulse",style:{animationDelay:`${s}ms`}},s))})]}),y.jsxs("div",{className:"border-t border-border/30 px-3 py-2",children:[y.jsx("p",{className:"whitespace-pre-wrap break-words text-xs italic leading-relaxed text-muted-foreground/70",children:c}),o&&y.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 y.jsx("div",{className:se("grid transition-[grid-template-rows] duration-200 ease-out",t?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:y.jsx("div",{className:"min-h-0 overflow-hidden",children:l})})}function bE({diff:t}){const l=t.split(`
|
|
345
|
+
`);return y.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:y.jsx("table",{className:"w-full border-collapse",children:y.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 y.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:[y.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:a+1}),y.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"?y.jsx(KS,{className:"h-3.5 w-3.5 shrink-0 animate-spin-slow text-status-blocked","aria-label":"running"}):t==="ok"?y.jsx(qS,{className:"h-3.5 w-3.5 shrink-0 text-status-running","aria-label":"ok"}):y.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:y.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,b]=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:w,colorClass:A}=vE(t),j=c||o||a&&a.trim().length>0,N=l.trim();return y.jsxs("div",{className:se("rounded-md border bg-card text-sm",i==="error"?"border-status-failed/40":"border-border"),children:[y.jsxs("div",{className:"flex items-center gap-2 px-3 py-2",children:[y.jsx(w,{className:se("h-3.5 w-3.5 shrink-0",A)}),y.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:t}),y.jsxs("div",{className:"ml-auto flex items-center gap-1.5",children:[y.jsx(kE,{ms:s,live:i==="running"?g:void 0}),y.jsx(SE,{status:i})]})]}),N.length>0&&y.jsx("button",{type:"button",onClick:()=>b(R=>!R),className:"w-full border-t border-border/50 px-3 py-1.5 text-left","aria-expanded":p,children:y.jsx("p",{className:se("font-mono text-[11px] text-muted-foreground",!p&&"line-clamp-2"),children:N})}),j&&y.jsxs("div",{className:"border-t border-border/50",children:[y.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:[y.jsx(Eo,{className:se("h-3 w-3 shrink-0 transition-transform duration-150",d&&"rotate-90")}),"Output"]}),y.jsx(yE,{open:d,children:y.jsxs("div",{className:"px-3 pb-2 pt-1",children:[o&&y.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not available (replayed session)"}),c&&y.jsx(bE,{diff:c}),!c&&a&&y.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 y.jsx(tk,{className:se(l,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return y.jsx(HS,{className:se(l,"text-status-running"),"aria-label":"succeeded"});case"failed":return y.jsx(VS,{className:se(l,"text-status-failed"),"aria-label":"failed"});case"cancelled":return y.jsx(Sb,{className:se(l,"text-muted-foreground"),"aria-label":"cancelled"});default:return y.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 y.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?y.jsx(Eo,{className:se("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",l&&"rotate-90")}):y.jsx("span",{className:"h-3 w-3 shrink-0"}),y.jsx("span",{className:"mt-0.5",children:y.jsx(TE,{status:o.status})}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&y.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&&y.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&&y.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:CE(o.totalCostUsd)}),y.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",AE(o.status)),children:o.status})]}),o.promptHead&&y.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 y.jsxs("div",{children:[y.jsx(NE,{node:t,isExpanded:i,onToggle:()=>a(c=>!c),isChild:l}),o&&i&&y.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((c,s)=>y.jsx("div",{className:se(s<t.children.length-1&&"border-b border-border/30"),children:y.jsx(Lx,{node:c,isChild:!0})},c.item.subagentId))})]})}function jE({roots:t,className:l}){return t.length===0?null:y.jsx("div",{className:se("rounded-md border border-border bg-card",l),children:t.map((i,a)=>y.jsx("div",{className:se(a<t.length-1&&"border-b border-border/50"),children:y.jsx(Lx,{node:i})},i.item.subagentId))})}function ff(){return y.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function ao({label:t,value:l}){return y.jsxs("span",{className:"flex items-baseline gap-1",children:[y.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),y.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 y.jsx("div",{className:se("flex items-center gap-2 text-xs text-muted-foreground",l),children:y.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const i=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return y.jsxs("div",{className:se("flex flex-wrap items-center gap-2",l),children:[y.jsx(ao,{label:"turns",value:String(t.turns)}),y.jsx(ff,{}),y.jsx(ao,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),i>0&&y.jsxs(y.Fragment,{children:[y.jsx(ff,{}),y.jsx(ao,{label:"tokens",value:ME(i)})]}),y.jsx(ff,{}),y.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 g=0;g<t.length;g++){const v=t[g];v!==void 0&&(v.kind==="tool"&&(l.push(v),a.set(v.id,g)),v.kind==="subagent"&&(i.push(v),a.set(v.id,g)))}const o=new Map;for(const g of l)g.toolUseId&&o.set(g.toolUseId,g);const c=new Map,s=new Map,d=new Set;for(const g of l)c.set(g.id,FE(g,a.get(g.id)??0));for(const g of i)s.set(g.subagentId,XE(g,a.get(g.id)??0));const m=[],p=[];for(const g of i){const v=s.get(g.subagentId);if(v){if(g.parentToolUseId){const S=o.get(g.parentToolUseId);if(S){const w=c.get(S.id);if(w){w.kind="agent",w.children.push(v),d.add(S.id);continue}}p.push(v);continue}if(g.parentId){const S=s.get(g.parentId);if(S){S.children.push(v);continue}p.push(v);continue}m.push(v)}}const b=[];for(const g of p){const v=i.find(w=>w.subagentId===g.sourceId);if(!v){m.push(g);continue}let S=!1;if(v.parentToolUseId){const w=o.get(v.parentToolUseId);if(w){const A=c.get(w.id);A&&(A.kind="agent",A.children.push(g),d.add(w.id),S=!0)}}if(!S&&v.parentId){const w=s.get(v.parentId);w&&(w.children.push(g),S=!0)}S||b.push(g)}for(const g of b)m.push(g);for(const g of l){const v=c.get(g.id);v&&m.push(v)}return m.sort((g,v)=>g.seq-v.seq),m}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 y.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 y.jsx("div",{className:"mt-0.5 pl-5 text-[11px] text-status-failed",children:"Failed"});if(t.status==="cancelled")return y.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)),y.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 y.jsxs("div",{className:se("relative",l>0&&"pl-3"),children:[y.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?y.jsx(m,{className:"h-3 w-3 shrink-0 text-muted-foreground/50"}):y.jsx("span",{className:"h-3 w-3 shrink-0","aria-hidden":!0}),y.jsx(PE,{category:t.category,status:t.status}),y.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&&y.jsx("span",{className:"bg-secondary rounded px-1 py-0.5 text-[10px] font-mono text-muted-foreground",children:t.model}),d&&t.agentType&&y.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&&y.jsxs("span",{className:"text-[10px] font-mono text-muted-foreground",children:[t.turnCount," turn",t.turnCount!==1?"s":""]}),t.durationMs!=null&&t.durationMs>0&&y.jsx("span",{className:"text-[10px] font-mono text-muted-foreground tabular-nums",children:Bx(t.durationMs)}),d&&t.costUsd!=null&&t.costUsd>0&&y.jsx("span",{className:"text-[10px] font-mono text-muted-foreground",children:Hx(t.costUsd)})]}),d&&t.preview&&y.jsx("div",{className:"pl-5 text-[11px] italic text-muted-foreground/60 line-clamp-1 leading-tight",children:t.preview}),d&&!o&&s&&y.jsx(df,{node:t}),s&&o&&y.jsxs("div",{className:se("relative mt-0.5 ml-[22px]","border-l-2 border-spine"),children:[t.children.map((p,b)=>{const g=b===t.children.length-1;return y.jsxs("div",{className:"relative",children:[y.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&&y.jsx("div",{className:"absolute left-[-2px] top-[10px] bottom-0 w-[2px] bg-background","aria-hidden":!0}),y.jsx("div",{className:"pl-3",children:y.jsx(Vx,{node:p,depth:l+1,isLast:g})})]},p.id)}),d&&t.status!=="running"&&y.jsx(df,{node:t})]}),d&&(!s||!o)&&t.status!=="running"&&(s?null:y.jsx(df,{node:t}))]})}function $E({nodes:t,className:l}){return y.jsxs("div",{className:se("relative pl-3 border-l-2 border-spine/40",l),children:[y.jsx("div",{className:"mb-1 text-[10px] uppercase tracking-widest text-muted-foreground/40 select-none",children:"Execution"}),t.length===0?y.jsx("div",{className:"text-[11px] text-muted-foreground/30 italic py-1",children:"No activity yet"}):y.jsx("div",{className:"flex flex-col gap-0.5",children:t.map((i,a)=>y.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 y.jsx(y.Fragment,{children:t.map((i,a)=>i.kind==="text"?l(i.item,a):y.jsx("div",{className:"py-2 px-1",children:y.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="/",b="*",g="",v="comment",S="declaration";function w(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)||b!=j.charAt(1))){for(var ne=2;g!=j.charAt(ne)&&(b!=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=w,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:b}=m;d?o(p,b,m):b&&(c=c||{},c[p]=b)}),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,b){return b.toUpperCase()},d=function(p,b){return"".concat(b,"-")},m=function(p,b){return b===void 0&&(b={}),c(p)?p:(p=p.toLowerCase(),b.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 w(L);l.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return l.containerState={},t.check(_y,b,g)(L)}function b(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,w(L)}function v(L){return l.containerState={},t.attempt(_y,S,w)(L)}function S(L){return a++,i.push([l.currentConstruct,l.containerState]),v(L)}function w(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,b;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?(b=2,p=hn(p,[["enter",t[i][1],l],["exit",t[i][1],l]])):b=0,en(t,a-1,i-a+3,p),i=a+p.length-b-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"),b=di(m),g=!b||b===2&&o||i.includes(m),v=!o||o===2&&b||i.includes(a);return p._open=!!(c===42?g:g&&(o||!v)),p._close=!!(c===42?v:v&&(b||!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),b):$C(S)?(t.consume(S),p):i(S)}function b(S){return Ct(S)?g(S):i(S)}function g(S){return S===46?(t.consume(S),a=0,b):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 w=S===45?v:g;return t.consume(S),w}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,b(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,b):(t.enter("characterReferenceValue"),c=7,s=Wf,b(g))}function b(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),b):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"),b(D)}function b(D){return D===d?(s++,t.consume(D),b):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"}),w(D))}function w(D){return D===null||xe(D)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(t.consume(D),w)}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 b=a.events[a.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[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,b(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 b(g){return g===96?(t.consume(g),o++,b):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 b=new ET(t);for(;++i<b.length;){for(;i in l;)i=l[i];if(a=b.get(i),i&&a[1].type==="chunkFlow"&&b.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(b,i)),i=l[i],p=!0);else if(a[1]._container){for(c=i,o=void 0;c--;)if(s=b.get(c),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(b.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={...b.get(o)[1].start},d=b.slice(o,i),d.unshift(a),b.splice(o,i-o+1,d))}}return en(t,0,Number.POSITIVE_INFINITY,b.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 b,g,v=-1,S=i,w=0,A=0;const j=[A];for(;S;){for(;t.get(++o)[1]!==S;);c.push(o),S._tokenizer||(b=a.sliceStream(S),S.next||b.push(null),g&&s.defineSkip(S.start),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(b),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[w+m[v][0]]=w+m[v][1],w+=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 b=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?w:S)}function w(N){return N===60||N===62||N===92?(t.consume(N),S):S(N)}function A(N){return!b&&(N===null||N===41||$e(N))?(t.exit("chunkString"),t.exit(d),t.exit(s),t.exit(a),l(N)):b<p&&N===40?(t.consume(N),b++,A):N===41?(t.consume(N),b--,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),b}function b(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"),b):(t.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||xe(S)||d++>999?(t.exit("chunkString"),b(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"}),b(v))}function b(v){return v===s||v===null||xe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:b)}function g(v){return v===s||v===92?(t.consume(v),b):b(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,b,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function b(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(b){return t.enter("atxHeading"),c(b)}function c(b){return t.enter("atxHeadingSequence"),s(b)}function s(b){return b===35&&a++<6?(t.consume(b),s):b===null||$e(b)?(t.exit("atxHeadingSequence"),d(b)):i(b)}function d(b){return b===35?(t.enter("atxHeadingSequence"),m(b)):b===null||xe(b)?(t.exit("atxHeading"),l(b)):De(b)?Ue(t,d,"whitespace")(b):(t.enter("atxHeadingText"),p(b))}function m(b){return b===35?(t.consume(b),m):(t.exit("atxHeadingSequence"),d(b))}function p(b){return b===null||b===35||$e(b)?(t.exit("atxHeadingText"),d(b)):(t.consume(b),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 b(C)}function b(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,w):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 w(C){const te="CDATA[";return C===te.charCodeAt(d++)?(t.consume(C),d===te.length?a.interrupt?l:P:w):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),b):T===91?(t.consume(T),c=0,w):zt(T)?(t.consume(T),R):i(T)}function b(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 w(T){const _="CDATA[";return T===_.charCodeAt(c++)?(t.consume(T),c===_.length?A:w):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}},b={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",b,l]]),d=hn(d,No(l.parser.constructs.insideSpan.null,t.slice(c+a+4,s-3),l)),d=hn(d,[["exit",b,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,b,s?b:g)(v):v===91?t.attempt($T,b,s?p:g)(v):s?b(v):g(v)}function p(v){return t.attempt(JT,b,g)(v)}function b(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?b(g):s0(t,s,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function s(g){return $e(g)?ka(t,m)(g):b(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):b(g)}function p(g){return $e(g)?ka(t,b)(g):b(g)}function b(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 w=a.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||S===a.containerState.marker:Wf(S)){if(a.containerState.type||(a.containerState.type=w,t.enter(w,{_container:!0})),w==="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:b,t.attempt(f3,v,g))}function b(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 b=a.events.length,g;for(;b--;)if(a.events[b][1].type!=="lineEnding"&&a.events[b][1].type!=="linePrefix"&&a.events[b][1].type!=="content"){g=a.events[b][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(b){return p(b)?c(b):d(b)}function d(b){if(b===null){i.consume(b);return}return i.enter("data"),i.consume(b),m}function m(b){return p(b)?(i.exit("data"),c(b)):(i.consume(b),m)}function p(b){if(b===null)return!0;const g=o[b];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:w,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:g};let b=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 w(){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){b=b(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=w(),p.events.push(["enter",be,p]),d.push(be),be}function W(re){const P=d.pop();return P.end=w(),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=w(),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=`
|
|
347
347
|
`;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:n0([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(;!u0(t););return t}const Ly=/[\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,b,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(Ly.lastIndex=g,p=Ly.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(b=Math.ceil(t/4)*4,m.push(-2);t++<b;)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 l0(i.slice(c?2:1),c?16:10)}return Dd(i)||t}const h0={}.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()}};m0(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:b,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]];h0.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]||Uy).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]||Uy).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 b(){return _d(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=l0(oe,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Dd(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 m0(t,l){let i=-1;for(;++i<l.length;){const a=l[i];Array.isArray(a)?m0(t,a):Q3(t,a)}}function Q3(t,l){let i;for(i in l)if(h0.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 Uy(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:`
|
|
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,b,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(b=Math.ceil(t/4)*4,m.push(-2);t++<b;)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:w,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:b,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 b(){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 w(){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
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
|
|
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 b=a[0];let g;b&&b.type==="element"&&b.tagName==="p"?g=b:(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 b=a[d];(o||d!==0||b.type!=="element"||b.tagName!=="p")&&s.push({type:"text",value:`
|
|
351
351
|
`}),b.type==="element"&&b.tagName==="p"&&!o?s.push(...b.children):s.push(b)}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=
|
|
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 w={type:"element",tagName:c,properties:v,children:[]};g&&(w.children=t.all(g),t.patch(g,w),w=t.applyData(g,w)),p.push(w)}const b={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(l,b),t.applyData(l,b)}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 b=a(m),g=a(p);b==="__proto__"?SA(d,b,{value:g,configurable:!0,enumerable:!0,writable:!0}):d[b]=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 b=s;switch(m){case"bigint":d=v0,b=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);b=null;break;case"undefined":return o([b0],s)}return o([d,b],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 b=[],g=o([d,b],s);for(const v of s)b.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 b=[],g=o([d,b],s);for(const v of EA(s))(t||!oo(ga(s[v])))&&b.push([c(v),c(s[v])]);return g}case Ld:return o([d,isNaN(s.getTime())?tr:s.toISOString()],s);case Ud:{const{source:b,flags:g}=s;return o([d,{source:b,flags:g}],s)}case Bd:{const b=[],g=o([d,b],s);for(const[v,S]of s)(t||!(oo(ga(v))||oo(ga(S))))&&b.push([c(v),c(S)]);return g}case Hd:{const b=[],g=o([d,b],s);for(const v of s)(t||!oo(ga(v)))&&b.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 b=t.all(p),g=String(p.identifier).toUpperCase(),v=gi(g.toLowerCase());let S=0;const w=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++S<=A;){w.length>0&&w.push({type:"text",value:" "});let R=typeof i=="string"?i:i(m,S);typeof R=="string"&&(R={type:"text",value:R}),w.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=b[b.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(...w)}else b.push(...w);const N={type:"element",tagName:"li",properties:{id:l+"fn-"+v},children:t.wrap(b,!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
353
|
`},{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
|
|
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,b){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,w,A,j;if((!l||c(m,p,b[b.length-1]||void 0))&&(S=UA(i(m,b)),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=b.concat(N);A>-1&&A<N.children.length;){const R=N.children[A];if(w=d(R,A,j)(),w[0]===td)return w;A=typeof w[1]=="number"?w[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 b=p[p.length-1],g=b?b.children.indexOf(m):void 0;return s(m,g,b)}}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(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const g=b.type==="definition"?a:o,v=String(b.identifier).toUpperCase();g.has(v)||g.set(v,b)}}),d;function m(b,g){const v=b.type,S=d.handlers[v];if(nd.call(d.handlers,v)&&S)return S(d,b,g);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in b){const{children:A,...j}=b,N=ko(j);return N.children=d.all(b),N}return ko(b)}return(d.options.unknownHandler||VA)(d,b,g)}function p(b){const g=[];if("children"in b){const v=b.children;let S=-1;for(;++S<v.length;){const w=d.one(v[S],b);if(w){if(S&&v[S-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Xy(w.value)),!Array.isArray(w)&&w.type==="element")){const A=w.children[0];A&&A.type==="text"&&(A.value=Xy(A.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}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
355
|
`});++a<t.length;)a&&i.push({type:"text",value:`
|
|
356
356
|
`}),i.push(t[a]);return l&&t.length>0&&i.push({type:"text",value:`
|
|
357
|
-
`}),i}function
|
|
358
|
-
`},o),c}function GA(t,l){return t&&"run"in t?async function(i,a){const o=Fy(i,{file:a,...l});await t.run(o,a)}:function(i,a){return Fy(i,{file:a,...t||l})}}function Xy(t){if(t)throw t}var bf,Qy;function FA(){if(Qy)return bf;Qy=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 b=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},s=function(p,b){i&&b.name==="__proto__"?i(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},d=function(p,b){if(b==="__proto__")if(t.call(p,b)){if(a)return a(p,b).value}else return;return p[b]};return bf=function m(){var p,b,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(b in p)g=d(A,b),v=d(p,b),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:b,newValue:m(R,E,v)})):typeof v<"u"&&s(A,{name:b,newValue:v}));return A},bf}var XA=FA();const xf=od(XA);function nd(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 b=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,b?ZA(b,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 b=p;if(d&&i)throw b;return o(b)}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 ld(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(!ld(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 w0{constructor(l){let i;l?ld(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){Zy(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"),Zy(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){ld(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 Zy(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 qd 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 qd;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(b,g,v){if(b||!g||!v)return p(b);const S=g,E=a.stringify(S,v);cN(E)?v.value=E:v.result=E,p(b,v)});function p(b,g){b||!g?s(b):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),Py("processSync","process",i),a;function o(c,s){i=!0,Xy(c),a=s}}run(l,i,a){Ky(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(b,g,v){const S=g||l;b?d(b):s?s(S):a(void 0,S,v)}}}runSync(l,i){let a=!1,o;return this.run(l,i,c),Py("runSync","run",a),o;function c(s,d){Xy(s),o=d,a=!0}}stringify(l,i){this.freeze();const a=so(i),o=this.compiler||this.Compiler;return Ef("stringify",o),Ky(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[b,...g]=p;m(b,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 b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const g=p[b];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,b){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...b]);else if(b.length>0){let[S,...E]=b;const A=a[v][1];nd(A)&&nd(S)&&(S=xf(!0,A,S)),a[v]=[p,S,...E]}}}}const oN=new qd().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 Ky(t){if(!nd(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Py(t,l,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+l+"` instead")}function so(t){return sN(t)?t:new w0(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",$y=[],Jy={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||$y,i=t.remarkPlugins||$y,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Jy}:Jy;return oN().use(Z3).use(i).use(GA,a).use(l)}function yN(t){const l=t.children||"",i=new w0;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 b of mN)Object.hasOwn(l,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+dN+b.id,void 0);return Hd(t,p),MC(t,{Fragment:y.Fragment,components:o,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(b,g,v){if(b.type==="raw"&&v&&typeof g=="number")return s?v.children.splice(g,1):v.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let S;for(S in pf)if(Object.hasOwn(pf,S)&&Object.hasOwn(b.properties,S)){const E=b.properties[S],A=pf[S];(A===null||A.includes(b.tagName))&&(b.properties[S]=m(String(E||""),S,b))}}if(b.type==="element"){let S=i?!i.includes(b.tagName):c?c.includes(b.tagName):!1;if(!S&&a&&typeof g=="number"&&(S=!a(b,g,v)),S&&v&&typeof g=="number")return d&&b.children?v.children.splice(g,1,...b.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 Wy(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;)k0(t,"text",d);function d(p,b){let g=-1,v;for(;++g<b.length;){const S=b[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,b)}function m(p,b){const g=b[b.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:[...b,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(!E0(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!E0(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=Wy(t,"(");let c=Wy(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 E0(t,l){const i=t.input.charCodeAt(t.index-1);return(t.index===0||ar(i)||Ao(i))&&(!l||i!==47)}C0.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 C0(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:C0},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"),b=c.enter("label");return m+=d.move(c.safe(c.associationId(a),{before:m,after:"]"})),b(),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?
|
|
360
|
-
`)}function lj(t){return t==null?"":String(t)}function
|
|
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 b=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!b&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},s=function(p,b){i&&b.name==="__proto__"?i(p,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):p[b.name]=b.newValue},d=function(p,b){if(b==="__proto__")if(t.call(p,b)){if(a)return a(p,b).value}else return;return p[b]};return bf=function m(){var p,b,g,v,S,w,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(b in p)g=d(A,b),v=d(p,b),A!==v&&(R&&v&&(c(v)||(S=o(v)))?(S?(S=!1,w=g&&o(g)?g:[]):w=g&&c(g)?g:{},s(A,{name:b,newValue:m(R,w,v)})):typeof v<"u"&&s(A,{name:b,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 b=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,b?ZA(b,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 b=p;if(d&&i)throw b;return o(b)}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(b,g,v){if(b||!g||!v)return p(b);const S=g,w=a.stringify(S,v);cN(w)?v.value=w:v.result=w,p(b,v)});function p(b,g){b||!g?s(b):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(b,g,v){const S=g||l;b?d(b):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[b,...g]=p;m(b,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 b=-1;if(p!=null)if(Array.isArray(p))for(;++b<p.length;){const g=p[b];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function m(p,b){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...b]);else if(b.length>0){let[S,...w]=b;const A=a[v][1];ld(A)&&ld(S)&&(S=xf(!0,A,S)),a[v]=[p,S,...w]}}}}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 b of mN)Object.hasOwn(l,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+dN+b.id,void 0);return qd(t,p),MC(t,{Fragment:y.Fragment,components:o,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(b,g,v){if(b.type==="raw"&&v&&typeof g=="number")return s?v.children.splice(g,1):v.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let S;for(S in pf)if(Object.hasOwn(pf,S)&&Object.hasOwn(b.properties,S)){const w=b.properties[S],A=pf[S];(A===null||A.includes(b.tagName))&&(b.properties[S]=m(String(w||""),S,b))}}if(b.type==="element"){let S=i?!i.includes(b.tagName):c?c.includes(b.tagName):!1;if(!S&&a&&typeof g=="number"&&(S=!a(b,g,v)),S&&v&&typeof g=="number")return d&&b.children?v.children.splice(g,1,...b.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,b){let g=-1,v;for(;++g<b.length;){const S=b[g],w=v?v.children:void 0;if(o(S,w?w.indexOf(S):void 0,v))return;v=S}if(v)return m(p,b)}function m(p,b){const g=b[b.length-1],v=c[s][0],S=c[s][1];let w=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:[...b,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:(w!==W&&R.push({type:"text",value:p.value.slice(w,W)}),Array.isArray(D)?R.push(...D):D&&R.push(D),w=W+L[0].length,N=!0),!v.global)break;L=v.exec(p.value)}return N?(w<p.value.length&&R.push({type:"text",value:p.value.slice(w)}),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"),b=c.enter("label");return m+=d.move(c.safe(c.associationId(a),{before:m,after:"]"})),b(),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,b=-1;for(;++b<t.length;){const A=[],j=[];let N=-1;for(t[b].length>p&&(p=t[b].length);++N<t[b].length;){const R=lj(t[b][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[b]=A,d[b]=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),b=-1;const w=[];for(;++b<s.length;){const A=s[b],j=d[b];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("|")}w.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return w.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
361
|
`&&aj(i.stack,i.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
362
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 b=d.move(m);if(t.lang){const g=i.enter(`codeFencedLang${s}`);b+=d.move(i.safe(t.lang,{before:b,after:" ",encode:["`"],...d.current()})),g()}if(t.lang&&t.meta){const g=i.enter(`codeFencedMeta${s}`);b+=d.move(" "),b+=d.move(i.safe(t.meta,{before:b,after:`
|
|
363
363
|
`,encode:["`"],...d.current()})),g()}return b+=d.move(`
|
|
364
364
|
`),c&&(b+=d.move(c+`
|
|
365
|
-
`)),b+=d.move(m),p(),b}function fj(t,l,i){return(i?"":" ")+t}function
|
|
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}}
|
|
365
|
+
`)),b+=d.move(m),p(),b}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),b=wo(a.before.charCodeAt(a.before.length-1),p,o);b.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:b.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 b=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(t,{...c.current(),before:`
|
|
367
367
|
`,after:`
|
|
368
368
|
`});return g(),b(),v+`
|
|
369
369
|
`+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
370
370
|
`))+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}
|
|
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,
|
|
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 b(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=B0.inlineCode(S,E,A);return A.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function Yj(){return{exit:{taskListCheckValueChecked:rb,taskListCheckValueUnchecked:rb,paragraph:Fj}}}function Gj(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Xj}}}function rb(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=B0.listItem(t,l,i,{...a,...d.current()});return c&&(m=m.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),m;function p(b){return b+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},H0={tokenize:n4,partial:!0},q0={tokenize:l4,partial:!0},I0={tokenize:r4,partial:!0},Pj={tokenize:i4,partial:!0},V0={name:"wwwAutolink",tokenize:Wj,previous:G0},Y0={name:"protocolAutolink",tokenize:e4,previous:F0},ll={name:"emailAutolink",tokenize:Jj,previous:X0},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,Y0];Dn[104]=[ll,Y0];Dn[87]=[ll,V0];Dn[119]=[ll,V0];function Jj(t,l,i){const a=this;let o,c;return s;function s(g){return!rd(g)||!X0.call(a,a.previous)||Yd(a.events)?i(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),d(g))}function d(g){return rd(g)?(t.consume(g),d):g===64?(t.consume(g),m):i(g)}function m(g){return g===46?t.check(Pj,b,p)(g):g===45||g===95||Ct(g)?(c=!0,t.consume(g),m):b(g)}function p(g){return t.consume(g),o=!0,m}function b(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||!G0.call(a,a.previous)||Yd(a.events)?i(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(Kj,t.attempt(H0,t.attempt(q0,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)&&F0.call(a,a.previous)&&!Yd(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(H0,t.attempt(q0,b),i)(g)}function b(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(I0,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(I0,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 G0(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||$e(t)}function F0(t){return!zt(t)}function X0(t){return!(t===47||rd(t))}function rd(t){return t===43||t===45||t===46||t===95||Ct(t)}function Yd(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?b:p}function b(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",b):i(E)}function b(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:b}function g(E){return E===91||E===92||E===93?(t.consume(E),s++,b):b(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 b={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",b,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",b,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,b=this.events;let g=0;return v;function v(E){return p===126&&b[b.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),b(H)}function b(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,b,"whitespace")(H):(c+=1,s&&(s=!1,o+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),s=!0,b):(t.enter("data"),g(H)))}function g(H){return H===null||H===124||$e(H)?(t.exit("data"),b(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,b,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&&(ib(v,l,m,p,b),b=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,b={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",b,l]])),o=E.type==="tableDelimiterRow"?2:b?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&&ib(v,l,m,p,b),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]),b=ui(l.events,i[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},b)};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 ib(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 n0([$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},ab={},Q0=function(l,i,a){let o=Promise.resolve();if(i&&i.length>0){let s=function(p){return Promise.all(p.map(b=>Promise.resolve(b).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 ab)return;ab[p]=!0;const b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":j4,b||(v.as="script"),v.crossOrigin="",v.href=p,m&&v.setAttribute("nonce",m),document.head.appendChild(v),b)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 ub=new Map;function Z0(){return zf||(zf=Q0(async()=>{const{createHighlighter:t}=await import("./index-DpEHdhDh.js");return{createHighlighter:t}},[]).then(({createHighlighter:t})=>t({themes:["github-dark"],langs:["plaintext"]}))),zf}function M4(t){const l=ub.get(t);if(l)return l;const i=Q0(()=>import("./index-DpEHdhDh.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)});return ub.set(t,i),i}function _4({code:t,language:l}){const[i,a]=k.useState(null),[o,c]=k.useState(!1),s=k.useRef(null);k.useEffect(()=>{let m=!1;async function p(){const b=await Z0();if(m)return;let g="plaintext";l&&(b.getLoadedLanguages().includes(l)?g=l:(M4(l).then(()=>{m||a(null)}).catch(()=>{}),g="plaintext"));try{const v=b.codeToHtml(t,{lang:g,theme:"github-dark"});m||a(v)}catch{}}return a(null),p().catch(()=>{}),()=>{m=!0}},[t,l]),k.useEffect(()=>()=>{s.current!==null&&clearTimeout(s.current)},[]);const d=k.useCallback(()=>{navigator.clipboard.writeText(t).then(()=>{c(!0),s.current!==null&&clearTimeout(s.current),s.current=setTimeout(()=>c(!1),2e3)}).catch(()=>{})},[t]);return y.jsxs("div",{className:"relative group rounded-md bg-secondary overflow-hidden mb-2",children:[l&&y.jsx("div",{className:"text-[10px] text-muted-foreground px-3 pt-1.5 select-none",children:l}),y.jsx("button",{onClick:d,"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:o?y.jsx(fd,{size:13,strokeWidth:2.5}):y.jsx(yb,{size:13,strokeWidth:2})}),i!==null?y.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}}):y.jsx("pre",{className:"overflow-x-auto p-3 font-mono text-xs leading-5 text-foreground",children:y.jsx("code",{children:t})})]})}const D4={h1:({children:t})=>y.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>y.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>y.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>y.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>y.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>y.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>y.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>y.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)?y.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:l}):y.jsx("span",{className:"text-muted-foreground",children:l}),strong:({children:t})=>y.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>y.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>y.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>y.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:y.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>y.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>y.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>y.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])?y.jsx("code",{className:se("text-xs",l),children:t}):y.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 y.jsx(_4,{code:a,language:i})}};function K0({text:t,className:l}){return y.jsx("div",{className:se("text-sm text-foreground",l),children:y.jsx(pN,{remarkPlugins:[N4],components:D4,children:t})})}function O4(){return y.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(`
|
|
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 b=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:m,after:"]",...d.current()});return s(),i.stack=b,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 b=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=b,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 b=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:m,after:"]",...d.current()});return s(),i.stack=b,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 b=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&b&&(!b.children||!b.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&&b){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()),b);return m(),p;function b(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),b=wo(a.before.charCodeAt(a.before.length-1),p,o);b.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:b.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,w,A,j){return p(b(S,A,j),S.align)}function d(S,w,A,j){const N=g(S,A,j),R=p([N]);return R.slice(0,R.indexOf(`
|
|
373
|
+
`))}function m(S,w,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,w){return nj(S,{align:w,alignDelimiters:a,padding:i,stringLength:o})}function b(S,w,A){const j=S.children;let N=-1;const R=[],L=w.enter("table");for(;++N<j.length;)R[N]=g(j[N],w,A);return L(),R}function g(S,w,A){const j=S.children;let N=-1;const R=[],L=w.enter("tableRow");for(;++N<j.length;)R[N]=m(j[N],S,w,A);return L(),R}function v(S,w,A){let j=H0.inlineCode(S,w,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(b){return b+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,b,p)(g):g===45||g===95||Ct(g)?(c=!0,t.consume(g),m):b(g)}function p(g){return t.consume(g),o=!0,m}function b(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,b),i)(g)}function b(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?b:p}function b(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(w){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(w){return w===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",b):i(w)}function b(w){if(s>999||w===93&&!d||w===null||w===91||$e(w))return i(w);if(w===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return c=Sn(a.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(w),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return $e(w)||(d=!0),s++,t.consume(w),w===92?g:b}function g(w){return w===91||w===92||w===93?(t.consume(w),s++,b):b(w)}function v(w){return w===58?(t.enter("definitionMarker"),t.consume(w),t.exit("definitionMarker"),o.includes(c)||o.push(c),Ue(t,S,"gfmFootnoteDefinitionWhitespace")):i(w)}function S(w){return l(w)}}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 b={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",b,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",b,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,b=this.events;let g=0;return v;function v(w){return p===126&&b[b.length-1][1].type!=="characterEscape"?m(w):(s.enter("strikethroughSequenceTemporary"),S(w))}function S(w){const A=di(p);if(w===126)return g>1?m(w):(s.consume(w),g++,S);if(g<2&&!i)return m(w);const j=s.exit("strikethroughSequenceTemporary"),N=di(w);return j._open=!N||N===2&&!!A,j._close=!A||A===2&&!!N,d(w)}}}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),b(H)}function b(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,b,"whitespace")(H):(c+=1,s&&(s=!1,o+=1),H===124?(t.enter("tableCellDivider"),t.consume(H),t.exit("tableCellDivider"),s=!0,b):(t.enter("data"),g(H)))}function g(H){return H===null||H===124||$e(H)?(t.exit("data"),b(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,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):w(H))}function w(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?w(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,b,g;const v=new g4;for(;++i<t.length;){const S=t[i],w=S[1];S[0]==="enter"?w.type==="tableHead"?(d=!1,m!==0&&(ub(v,l,m,p,b),b=void 0,m=0),p={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(i,0,[["enter",p,l]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,c=[0,0,0,0],s=[0,i+1,0,0],d&&(d=!1,b={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},v.add(i,0,[["enter",b,l]])),o=w.type==="tableDelimiterRow"?2:b?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.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)):w.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])):w.type==="tableHead"?(d=!0,m=i):w.type==="tableRow"||w.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&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(s[3]=i)}for(m!==0&&ub(v,l,m,p,b),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]),b=ui(l.events,i[3]),g={type:d,start:Object.assign({},p),end:Object.assign({},b)};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 w=i[2]+1,A=i[3]-i[2]-1;t.add(w,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(b=>Promise.resolve(b).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 b=p.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const v=document.createElement("link");if(v.rel=b?"stylesheet":j4,b||(v.as="script"),v.crossOrigin="",v.href=p,m&&v.setAttribute("nonce",m),document.head.appendChild(v),b)return new Promise((S,w)=>{v.addEventListener("load",S),v.addEventListener("error",()=>w(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-D7vSiG8f.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-D7vSiG8f.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 b=!1;async function g(){const v=await Z0();if(b)return;let S="plaintext";if(l){const{isSpecialLang:w}=await Fd(async()=>{const{isSpecialLang:j}=await import("./index-D7vSiG8f.js");return{isSpecialLang:j}},[]),A=v.getLoadedLanguages();w(l)||A.includes(l)?S=l:(M4(l).then(()=>{b||c(j=>j+1)}).catch(()=>{}),S="plaintext")}try{const w=v.codeToHtml(t,{lang:S,theme:"github-dark"});b||a(w)}catch{}}return a(null),g().catch(()=>{}),()=>{b=!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 y.jsxs("div",{className:"relative group rounded-md bg-secondary overflow-hidden mb-2",children:[l&&y.jsx("div",{className:"text-[10px] text-muted-foreground px-3 pt-1.5 select-none",children:l}),y.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?y.jsx(dd,{size:13,strokeWidth:2.5}):y.jsx(bb,{size:13,strokeWidth:2})}),i!==null?y.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}}):y.jsx("pre",{className:"overflow-x-auto p-3 font-mono text-xs leading-5 text-foreground",children:y.jsx("code",{children:t})})]})}const D4={h1:({children:t})=>y.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>y.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>y.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>y.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>y.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>y.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>y.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>y.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)?y.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:l}):y.jsx("span",{className:"text-muted-foreground",children:l}),strong:({children:t})=>y.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>y.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>y.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>y.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:y.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>y.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>y.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>y.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])?y.jsx("code",{className:se("text-xs",l),children:t}):y.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 y.jsx(_4,{code:a,language:i})}};function K0({text:t,className:l}){return y.jsx("div",{className:se("text-sm text-foreground",l),children:y.jsx(pN,{remarkPlugins:[N4],components:D4,children:t})})}function O4(){return y.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
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),b=k.useRef(a);k.useEffect(()=>{b.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=b.current)==null||H.call(b));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=b.current)==null||N.call(b));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 y.jsxs("span",{className:"streaming-text-root",children:[y.jsx(K0,{text:A}),j&&y.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 y.jsx("div",{className:se("absolute top-1 right-1","opacity-0 group-hover:opacity-100 transition-opacity duration-150",i),children:y.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"&&y.jsx(B4,{onClick:s,title:a?"Copied!":"Copy",children:a?y.jsx(fd,{className:"h-3.5 w-3.5 text-status-running"}):y.jsx(yb,{className:"h-3.5 w-3.5"})})})})}function B4({onClick:t,title:l,children:i}){return y.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 y.jsxs("div",{className:"group relative flex flex-col items-end gap-1",children:[y.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground/50",children:"You"}),y.jsx("p",{className:"max-w-2xl text-sm leading-relaxed text-foreground whitespace-pre-wrap text-right",children:t}),y.jsx(P0,{kind:"user",text:t})]})}function J0({text:t,isStreaming:l=!1}){return y.jsxs("div",{className:"group relative flex flex-col gap-1",children:[y.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-brand/60",children:"Agent"}),y.jsx("div",{className:"max-w-3xl",children:l?y.jsx(U4,{text:t,isStreaming:!0}):y.jsx(K0,{text:t})}),y.jsx(P0,{kind:"assistant",text:t})]})}function W0({message:t}){return y.jsxs("div",{className:"flex items-start gap-2.5 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3",children:[y.jsx(gb,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),y.jsx("p",{className:"text-sm leading-relaxed text-status-failed",children:t})]})}function ev({text:t}){return y.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",children:[y.jsx(bb,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),y.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function tv({item:t}){return y.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[y.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),y.jsx("span",{className:"text-xs text-foreground",children:t.label}),y.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 y.jsx($0,{text:t.text});case"assistant":return y.jsx(J0,{text:t.text,isStreaming:l});case"thinking":return y.jsx(Ox,{text:t.text});case"tool":return y.jsx(wE,{...t});case"error":return y.jsx(W0,{message:t.message});case"notice":return y.jsx(ev,{text:t.text});case"bg_job":return y.jsx(tv,{item:t});case"subagent":return null}}function I4(t,l=!1){switch(t.kind){case"user":return y.jsx($0,{text:t.text});case"assistant":return y.jsx(J0,{text:t.text,isStreaming:l});case"thinking":return y.jsx(Ox,{text:t.text});case"error":return y.jsx(W0,{message:t.message});case"notice":return y.jsx(ev,{text:t.text});case"bg_job":return y.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 b=m.kind==="user"&&p>0,g=a&&m.id===s;return y.jsxs("div",{children:[b&&y.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),y.jsx("div",{className:"py-2 px-1",children:I4(m,g)})]},m.id)},[a,s]);return y.jsxs("div",{className:"flex flex-col gap-0 max-w-4xl mx-auto w-full",children:[l&&y.jsx(Lx,{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?y.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):i?y.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 y.jsxs("div",{children:[v&&y.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),y.jsx("div",{className:"py-2 px-1",children:q4(g,S)})]},g.id)}const b=_E(m.items);return y.jsx("div",{className:"py-2 px-1",children:y.jsx(jE,{roots:b})},m.id)})]})}const id="afk_web_token",Y4="__AFK_WEB_TOKEN__";let xa=null;function G4(){xa=null;try{sessionStorage.removeItem(id)}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(id,l)}catch{}return F4(),l}try{const i=sessionStorage.getItem(id);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 y.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?y.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 y.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[y.jsx(Z4,{type:t.type}),y.jsx(K4,{category:t.category}),i&&y.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:i})]}),y.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 y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:y.jsx("div",{className:se("h-full rounded-full transition-all",a),style:{width:`${i}%`}})}),l&&y.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 y.jsxs("section",{className:"space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),y.jsxs("span",{className:"text-xs text-zinc-500",children:[i.tokens.toLocaleString()," / ",i.maxTokens.toLocaleString()," tokens"]})]}),y.jsx($4,{pct:i.pct,truncated:i.truncated}),l?y.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}):y.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),[b,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 y.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[y.jsx(J4,{hot:t}),y.jsxs("section",{className:"space-y-3",children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),y.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[y.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"}),y.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=>y.jsx("option",{value:S.value,children:S.label},S.value))}),y.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"})]}),b&&y.jsx("p",{className:"text-xs text-red-400",children:b}),s!==null&&y.jsx("div",{className:"space-y-2",children:s.length===0?y.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):s.map(S=>y.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]),y.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:y.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"text-sm font-semibold",children:t.name}),y.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),y.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:"✕"})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&y.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),s&&y.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:s}),!o&&!s&&i.length===0&&y.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!s&&i.length>0&&y.jsx("ul",{className:"space-y-2",children:i.map((m,p)=>{const b=tz[m.status];return y.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[y.jsx("span",{className:se("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",b.className),children:b.label}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex items-center justify-between gap-2",children:[y.jsx("span",{className:"text-xs text-muted-foreground",children:lz(m.triggeredAt)}),y.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:nz(m.durationMs)})]}),m.errorMessage&&y.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?y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:se("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),y.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 y.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:y.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)))},b=t.trigger==="both"?"cron + session start":t.trigger??"cron";return y.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:[y.jsxs("div",{className:"flex items-start justify-between gap-3",children:[y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),y.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[y.jsx(lv,{checked:t.enabled,onChange:()=>{m()},disabled:o}),y.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:"🗑"})]})]}),y.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),y.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[y.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:b}),t.notifyOn&&t.notifyOn!=="never"&&y.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),y.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)=>y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:g}),v]}),b=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 y.jsxs("form",{onSubmit:g=>{m(g)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[y.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[p("Name *",y.jsx("input",{type:"text",className:b,placeholder:"e.g. Nightly cleanup",value:i.name,onChange:g=>a(v=>({...v,name:g.target.value})),required:!0,disabled:o})),p("Cron expression *",y.jsx("input",{type:"text",className:se(b,"font-mono"),placeholder:"0 2 * * *",value:i.cron,onChange:g=>a(v=>({...v,cron:g.target.value})),required:!0,disabled:o}))]}),p("Command *",y.jsx("input",{type:"text",className:se(b,"font-mono"),placeholder:"/my-skill --auto",value:i.command,onChange:g=>a(v=>({...v,command:g.target.value})),required:!0,disabled:o})),y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[p("Trigger",y.jsxs("select",{className:b,value:i.trigger,onChange:g=>a(v=>({...v,trigger:g.target.value})),disabled:o,children:[y.jsx("option",{value:"cron",children:"cron"}),y.jsx("option",{value:"sessionstart",children:"session start"}),y.jsx("option",{value:"both",children:"both"})]})),p("Notify on",y.jsxs("select",{className:b,value:i.notifyOn,onChange:g=>a(v=>({...v,notifyOn:g.target.value})),disabled:o,children:[y.jsx("option",{value:"failure",children:"failure"}),y.jsx("option",{value:"always",children:"always"}),y.jsx("option",{value:"never",children:"never"})]})),y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),y.jsx("div",{className:"flex h-8 items-center",children:y.jsx(lv,{checked:i.enabled,onChange:()=>a(g=>({...g,enabled:!g.enabled})),disabled:o})})]})]}),s&&y.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}),y.jsxs("div",{className:"flex items-center justify-end gap-2",children:[y.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"}),y.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),[b,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?y.jsx("div",{className:"flex flex-1 items-center justify-center",children:y.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):y.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(iz,{status:i}),y.jsx("button",{onClick:()=>g(N=>!N),className:se("h-7 rounded-md px-3 text-xs font-medium",b?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:b?"Cancel":"+ New Schedule"})]})]}),b&&y.jsx(oz,{onCreated:j,onCancel:()=>g(!1)}),v&&y.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&&y.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&&!b&&y.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),y.jsx("div",{className:"grid gap-3",children:t.map(N=>y.jsx(az,{schedule:N,onToggle:E,onDelete:A,onShowHistory:p},N.id))}),m&&y.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 y.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"&&y.jsx("span",{className:"size-1.5 rounded-full bg-green-400 animate-pulse"}),t]})}function ob({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),b=fz(t.startedAt),g=a?dd: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 y.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[y.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:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[y.jsx(g,{className:"size-3.5 shrink-0 text-neutral-500"}),y.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),y.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[y.jsx(mz,{status:t.status}),t.status==="running"&&y.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:[y.jsx(hd,{className:"size-3"}),c?"Cancelling…":"Cancel"]})]})]}),y.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[y.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:dz(t.model)}),y.jsx("span",{children:p}),y.jsx("span",{children:b})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&y.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[y.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",y.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),d&&y.jsx("p",{className:"pl-5 text-xs text-red-400",title:d,children:d.length>200?d.slice(0,200)+"…":d})]}),a&&y.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:[y.jsx(vn,{label:"Job ID",value:t.jobId,mono:!0}),y.jsx(vn,{label:"Subagent ID",value:t.subagentId,mono:!0}),y.jsx(vn,{label:"Model",value:t.model,mono:!0}),y.jsx(vn,{label:"Status",value:t.status}),y.jsx(vn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&y.jsx(vn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),y.jsx(vn,{label:"Duration",value:p}),t.parentSessionId&&y.jsx(vn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&y.jsx(vn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),y.jsx(vn,{label:"Prompt hash",value:t.promptHash,mono:!0}),y.jsx(vn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function vn({label:t,value:l,mono:i=!1}){return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),y.jsx("span",{className:se("text-neutral-300 break-all",i&&"font-mono"),children:l})]})}function sb({label:t,count:l}){return y.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[y.jsx("span",{children:t}),y.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 b=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 y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[y.jsx(pb,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&y.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),y.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:[y.jsx(rk,{className:se("size-3",i&&"animate-spin")}),"Refresh"]})]}),o&&y.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&&y.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),g.length>0&&y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(sb,{label:"Running",count:g.length}),g.map(E=>y.jsx(ob,{job:E,now:s,onCancel:b},E.jobId))]}),v.length>0&&y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(sb,{label:"Settled",count:v.length}),v.map(E=>y.jsx(ob,{job:E,now:s,onCancel:b},E.jobId))]})]})}function ya({icon:t,title:l,children:i}){return y.jsxs("section",{className:"space-y-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(t,{className:"size-4 text-muted-foreground"}),y.jsx("h2",{className:"text-sm font-semibold",children:l})]}),y.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 y.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[y.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),y.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 y.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!l&&"border-b border-border"),children:[y.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),y.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.id})]})}const cb=[{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 y.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!i&&"border-b border-border"),children:[y.jsx("span",{className:"text-xs text-zinc-200",children:l}),y.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?y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:se("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),y.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"})]}):y.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=y.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return y.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[y.jsxs(ya,{icon:bb,title:"About",children:[y.jsx(Vt,{label:"AFK version",value:i?i.version:a,mono:!0}),y.jsx(Vt,{label:"Node.js",value:i?i.nodeVersion:a,mono:!0}),y.jsx(Vt,{label:"App",value:"AFK Dashboard",last:!0})]}),y.jsxs(ya,{icon:YS,title:"Model",children:[y.jsx(Vt,{label:"Default model",value:i?i.model:a,mono:!0}),t.modelsError?y.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?y.jsx(Vt,{label:"Available tiers",value:a,last:!0}):t.models.length===0?y.jsx(Vt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((c,s)=>{var d;return y.jsx(gz,{model:c,last:s===(((d=t.models)==null?void 0:d.length)??0)-1},c.id)})]}),y.jsxs(ya,{icon:FS,title:"Paths",children:[y.jsx(Vt,{label:"AFK home",value:i?i.afkHome:a,mono:!0}),y.jsx(Vt,{label:"State dir",value:i?i.stateDir:a,mono:!0}),y.jsx(Vt,{label:"Config dir",value:i?i.configDir:a,mono:!0,last:!0})]}),y.jsxs(ya,{icon:oi,title:"Web Server",children:[y.jsx(Vt,{label:"Host",value:i?i.webHost:a,mono:!0}),y.jsx(Vt,{label:"Port",value:i?String(i.webPort):a,mono:!0}),y.jsx(Vt,{label:"Daemon",value:y.jsx(bz,{status:t.daemon})}),!t.daemonError&&y.jsx(Vt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&y.jsx(Vt,{label:"Daemon error",value:t.daemonError,last:!0})]}),y.jsx(ya,{icon:XS,title:"Keyboard Shortcuts",children:cb.map((c,s)=>y.jsx(yz,{keys:c.keys,description:c.description,last:s===cb.length-1},c.keys))})]})}function ad(t){return t.startsWith("/")?t.slice(1):t}function rv(t){return`/${ad(t)}`}function iv(t,l){return ad(t).startsWith(ad(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:y.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)=>y.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:b=>{b.preventDefault(),i(m.name)},children:[y.jsx("span",{className:"font-mono font-semibold shrink-0",children:rv(m.name)}),y.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),b=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}`),b()},[a,t,b]);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)&&b()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[l,b]),y.jsxs("div",{className:"relative",children:[y.jsx("button",{ref:p,type:"button",onClick:()=>l?b():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:y.jsx(GS,{className:"h-4 w-4"})}),l&&y.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:[y.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",y.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",y.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),y.jsxs("div",{className:"flex gap-2",children:[y.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"&&b()},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")}),y.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&&y.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 y.jsxs("div",{className:se("relative inline-flex items-center",i),children:[y.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=>y.jsx("option",{value:m.id,children:m.label},m.id))}),y.jsx(dd,{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:y.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[y.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",l.length,")"]}),l.map((s,d)=>y.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,b]=k.useState(t),g=k.useRef(null);k.useEffect(()=>{var A;d&&((A=g.current)==null||A.focus())},[d]);const v=k.useCallback(()=>{b(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),b(t)},[t]);return y.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?y.jsx("input",{ref:g,type:"text",value:p,onChange:A=>b(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")}):y.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),y.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[d?y.jsx(ba,{label:"Confirm edit",onClick:S,children:y.jsx(fd,{className:"h-3 w-3"})}):y.jsx(ba,{label:"Edit",onClick:v,children:y.jsx(ek,{className:"h-3 w-3"})}),y.jsx(ba,{label:"Move up",onClick:a,disabled:l,children:y.jsx(RS,{className:"h-3 w-3"})}),y.jsx(ba,{label:"Move down",onClick:o,disabled:i,children:y.jsx(mb,{className:"h-3 w-3"})}),y.jsx(ba,{label:"Remove",onClick:c,destructive:!0,children:y.jsx(hd,{className:"h-3 w-3"})})]})]})}function ba({label:t,onClick:l,disabled:i,destructive:a,children:o}){return y.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),[b,g]=k.useState([]),[v,S]=k.useState(0),E=k.useRef(null),A=l==="readonly",j=Mz(s),N=j!==null&&b.length>0,R=N?b.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 y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"pointer-events-none h-8 bg-gradient-to-t from-background/80 to-transparent"}),y.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&&y.jsx(Az,{queue:a}),y.jsx(vz,{query:j??"",commands:b,onSelect:ee,visible:N}),y.jsxs("div",{className:"flex items-end gap-2",children:[y.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[y.jsx(wz,{onInsert:X}),o&&y.jsx(Tz,{onSelect:o,current:c})]}),y.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?y.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:y.jsx(vb,{className:"h-4 w-4 fill-current"})}):y.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:y.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),b=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 y.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:[y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx(uk,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[a.title&&y.jsx("p",{className:"font-semibold text-foreground",children:a.title}),a.message&&y.jsx("p",{className:"text-muted-foreground",children:a.message}),a.description&&y.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:a.description})]}),y.jsx("button",{onClick:()=>void b("decline"),disabled:s,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:y.jsx(hd,{className:"h-4 w-4"})})]}),g==="text"&&y.jsxs("div",{className:"flex gap-2",children:[y.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")}),y.jsx(ho,{onClick:()=>void b("accept",{text:o}),disabled:s,label:"Submit",variant:"primary"})]}),g==="confirm"&&y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsx(ho,{onClick:()=>void b("decline"),disabled:s,label:"No",variant:"ghost"}),y.jsx(ho,{onClick:()=>void b("accept"),disabled:s,label:"Yes",variant:"primary"})]}),(g==="choice"||g==="multi_choice")&&y.jsx("div",{className:"flex flex-wrap gap-1.5",children:(a.choices??[]).map(v=>y.jsx(ho,{onClick:()=>void b("accept",{choice:v}),disabled:s,label:v,variant:"outline"},v))}),m&&y.jsx("p",{className:"text-xs text-red-400",children:m})]})}function ho({onClick:t,disabled:l,label:i,variant:a}){return y.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 y.jsx("div",{className:"flex flex-col gap-2",children:o.map(s=>y.jsx(Oz,{approval:s,onAnswered:()=>c(s.id)},s.id))})}function Lz({open:t,onClose:l,children:i}){return y.jsxs(y.Fragment,{children:[y.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"}),y.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 y.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:y.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:y.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 y.jsxs(Bz.Provider,{value:{toast:o},children:[t,y.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=>y.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=fb(l)?1:0,o=fb(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 fb(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,`
|
|
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),b=k.useRef(a);k.useEffect(()=>{b.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=b.current)==null||H.call(b));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=b.current)==null||N.call(b));return}return(o.current<t.length||l)&&S(),()=>{d.current!==null&&(cancelAnimationFrame(d.current),d.current=null)}},[t,l,v]);const w=v?t.length:c,A=t.slice(0,w),j=w<t.length||l;return y.jsxs("span",{className:"streaming-text-root",children:[y.jsx(K0,{text:A}),j&&y.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 y.jsx("div",{className:se("absolute top-1 right-1","opacity-0 group-hover:opacity-100 transition-opacity duration-150",i),children:y.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"&&y.jsx(B4,{onClick:s,title:a?"Copied!":"Copy",children:a?y.jsx(dd,{className:"h-3.5 w-3.5 text-status-running"}):y.jsx(bb,{className:"h-3.5 w-3.5"})})})})}function B4({onClick:t,title:l,children:i}){return y.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 y.jsxs("div",{className:"group relative flex flex-col items-end gap-1",children:[y.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-muted-foreground/50",children:"You"}),y.jsx("p",{className:"max-w-2xl text-sm leading-relaxed text-foreground whitespace-pre-wrap text-right",children:t}),y.jsx(P0,{kind:"user",text:t})]})}function J0({text:t,isStreaming:l=!1}){return y.jsxs("div",{className:"group relative flex flex-col gap-1",children:[y.jsx("span",{className:"text-[11px] font-medium uppercase tracking-widest text-brand/60",children:"Agent"}),y.jsx("div",{className:"max-w-3xl",children:l?y.jsx(U4,{text:t,isStreaming:!0}):y.jsx(K0,{text:t})}),y.jsx(P0,{kind:"assistant",text:t})]})}function W0({message:t}){return y.jsxs("div",{className:"flex items-start gap-2.5 rounded-xl border border-destructive/20 bg-destructive/5 px-4 py-3",children:[y.jsx(yb,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),y.jsx("p",{className:"text-sm leading-relaxed text-status-failed",children:t})]})}function ev({text:t}){return y.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2",children:[y.jsx(xb,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-muted-foreground"}),y.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function tv({item:t}){return y.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[y.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),y.jsx("span",{className:"text-xs text-foreground",children:t.label}),y.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 y.jsx($0,{text:t.text});case"assistant":return y.jsx(J0,{text:t.text,isStreaming:l});case"thinking":return y.jsx(Rx,{text:t.text});case"tool":return y.jsx(wE,{...t});case"error":return y.jsx(W0,{message:t.message});case"notice":return y.jsx(ev,{text:t.text});case"bg_job":return y.jsx(tv,{item:t});case"subagent":return null}}function I4(t,l=!1){switch(t.kind){case"user":return y.jsx($0,{text:t.text});case"assistant":return y.jsx(J0,{text:t.text,isStreaming:l});case"thinking":return y.jsx(Rx,{text:t.text});case"error":return y.jsx(W0,{message:t.message});case"notice":return y.jsx(ev,{text:t.text});case"bg_job":return y.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 b=m.kind==="user"&&p>0,g=a&&m.id===s;return y.jsxs("div",{children:[b&&y.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),y.jsx("div",{className:"py-2 px-1",children:I4(m,g)})]},m.id)},[a,s]);return y.jsxs("div",{className:"flex flex-col gap-0 max-w-4xl mx-auto w-full",children:[l&&y.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?y.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):i?y.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 y.jsxs("div",{children:[v&&y.jsx("div",{className:"my-6 border-t border-border/40","aria-hidden":"true"}),y.jsx("div",{className:"py-2 px-1",children:q4(g,S)})]},g.id)}const b=_E(m.items);return y.jsx("div",{className:"py-2 px-1",children:y.jsx(jE,{roots:b})},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 y.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?y.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 y.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[y.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[y.jsx(Z4,{type:t.type}),y.jsx(K4,{category:t.category}),i&&y.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:i})]}),y.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 y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:y.jsx("div",{className:se("h-full rounded-full transition-all",a),style:{width:`${i}%`}})}),l&&y.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 y.jsxs("section",{className:"space-y-2",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),y.jsxs("span",{className:"text-xs text-zinc-500",children:[i.tokens.toLocaleString()," / ",i.maxTokens.toLocaleString()," tokens"]})]}),y.jsx($4,{pct:i.pct,truncated:i.truncated}),l?y.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}):y.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),[b,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 w=new URLSearchParams({q:i,limit:"20"});o&&w.set("category",o);const A=await lt(`/api/memory/search?${w.toString()}`);d(A.results)}catch(w){g(w instanceof Error?w.message:"Search failed")}finally{p(!1)}},[i,o]);return y.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[y.jsx(J4,{hot:t}),y.jsxs("section",{className:"space-y-3",children:[y.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),y.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[y.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"}),y.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=>y.jsx("option",{value:S.value,children:S.label},S.value))}),y.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"})]}),b&&y.jsx("p",{className:"text-xs text-red-400",children:b}),s!==null&&y.jsx("div",{className:"space-y-2",children:s.length===0?y.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):s.map(S=>y.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]),y.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:y.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[y.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[y.jsxs("div",{children:[y.jsx("h2",{className:"text-sm font-semibold",children:t.name}),y.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),y.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:"✕"})]}),y.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&y.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),s&&y.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:s}),!o&&!s&&i.length===0&&y.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!s&&i.length>0&&y.jsx("ul",{className:"space-y-2",children:i.map((m,p)=>{const b=tz[m.status];return y.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[y.jsx("span",{className:se("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",b.className),children:b.label}),y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsxs("div",{className:"flex items-center justify-between gap-2",children:[y.jsx("span",{className:"text-xs text-muted-foreground",children:lz(m.triggeredAt)}),y.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:nz(m.durationMs)})]}),m.errorMessage&&y.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?y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx("span",{className:se("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),y.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 y.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:y.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)))},b=t.trigger==="both"?"cron + session start":t.trigger??"cron";return y.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:[y.jsxs("div",{className:"flex items-start justify-between gap-3",children:[y.jsxs("div",{className:"min-w-0 flex-1",children:[y.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),y.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),y.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[y.jsx(lv,{checked:t.enabled,onChange:()=>{m()},disabled:o}),y.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:"🗑"})]})]}),y.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),y.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[y.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:b}),t.notifyOn&&t.notifyOn!=="never"&&y.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),y.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)=>y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:g}),v]}),b=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 y.jsxs("form",{onSubmit:g=>{m(g)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[y.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[p("Name *",y.jsx("input",{type:"text",className:b,placeholder:"e.g. Nightly cleanup",value:i.name,onChange:g=>a(v=>({...v,name:g.target.value})),required:!0,disabled:o})),p("Cron expression *",y.jsx("input",{type:"text",className:se(b,"font-mono"),placeholder:"0 2 * * *",value:i.cron,onChange:g=>a(v=>({...v,cron:g.target.value})),required:!0,disabled:o}))]}),p("Command *",y.jsx("input",{type:"text",className:se(b,"font-mono"),placeholder:"/my-skill --auto",value:i.command,onChange:g=>a(v=>({...v,command:g.target.value})),required:!0,disabled:o})),y.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[p("Trigger",y.jsxs("select",{className:b,value:i.trigger,onChange:g=>a(v=>({...v,trigger:g.target.value})),disabled:o,children:[y.jsx("option",{value:"cron",children:"cron"}),y.jsx("option",{value:"sessionstart",children:"session start"}),y.jsx("option",{value:"both",children:"both"})]})),p("Notify on",y.jsxs("select",{className:b,value:i.notifyOn,onChange:g=>a(v=>({...v,notifyOn:g.target.value})),disabled:o,children:[y.jsx("option",{value:"failure",children:"failure"}),y.jsx("option",{value:"always",children:"always"}),y.jsx("option",{value:"never",children:"never"})]})),y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),y.jsx("div",{className:"flex h-8 items-center",children:y.jsx(lv,{checked:i.enabled,onChange:()=>a(g=>({...g,enabled:!g.enabled})),disabled:o})})]})]}),s&&y.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}),y.jsxs("div",{className:"flex items-center justify-end gap-2",children:[y.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"}),y.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),[b,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 w=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?y.jsx("div",{className:"flex flex-1 items-center justify-center",children:y.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):y.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(iz,{status:i}),y.jsx("button",{onClick:()=>g(N=>!N),className:se("h-7 rounded-md px-3 text-xs font-medium",b?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:b?"Cancel":"+ New Schedule"})]})]}),b&&y.jsx(oz,{onCreated:j,onCancel:()=>g(!1)}),v&&y.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&&y.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&&!b&&y.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),y.jsx("div",{className:"grid gap-3",children:t.map(N=>y.jsx(az,{schedule:N,onToggle:w,onDelete:A,onShowHistory:p},N.id))}),m&&y.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 y.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"&&y.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),b=fz(t.startedAt),g=a?hd:Eo,v=async S=>{S.stopPropagation(),m(null),s(!0);try{await i(t.jobId)}catch(w){m(w instanceof Error?w.message:String(w))}finally{s(!1)}};return y.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[y.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(S=>!S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(w=>!w))},className:"w-full text-left px-4 py-3 flex flex-col gap-2 hover:bg-neutral-800/50 transition-colors cursor-pointer",children:[y.jsxs("div",{className:"flex items-start justify-between gap-2",children:[y.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[y.jsx(g,{className:"size-3.5 shrink-0 text-neutral-500"}),y.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),y.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[y.jsx(mz,{status:t.status}),t.status==="running"&&y.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:[y.jsx(md,{className:"size-3"}),c?"Cancelling…":"Cancel"]})]})]}),y.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[y.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:dz(t.model)}),y.jsx("span",{children:p}),y.jsx("span",{children:b})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&y.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[y.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",y.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),d&&y.jsx("p",{className:"pl-5 text-xs text-red-400",title:d,children:d.length>200?d.slice(0,200)+"…":d})]}),a&&y.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:[y.jsx(vn,{label:"Job ID",value:t.jobId,mono:!0}),y.jsx(vn,{label:"Subagent ID",value:t.subagentId,mono:!0}),y.jsx(vn,{label:"Model",value:t.model,mono:!0}),y.jsx(vn,{label:"Status",value:t.status}),y.jsx(vn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&y.jsx(vn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),y.jsx(vn,{label:"Duration",value:p}),t.parentSessionId&&y.jsx(vn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&y.jsx(vn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),y.jsx(vn,{label:"Prompt hash",value:t.promptHash,mono:!0}),y.jsx(vn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function vn({label:t,value:l,mono:i=!1}){return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),y.jsx("span",{className:se("text-neutral-300 break-all",i&&"font-mono"),children:l})]})}function cb({label:t,count:l}){return y.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[y.jsx("span",{children:t}),y.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((w=!1)=>{w||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(()=>{w||a(!1)})},[]);k.useEffect(()=>{p()},[p]),k.useEffect(()=>{const w=t.some(A=>!fo(A));return w&&!m.current&&(m.current=setInterval(()=>p(!0),5e3)),!w&&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 b=k.useCallback(async w=>{await lt(`/api/bg-jobs/${encodeURIComponent(w)}/cancel`,{method:"POST"}),l(A=>A.map(j=>j.jobId===w?{...j,status:"cancelled"}:j))},[]),g=t.filter(w=>w.status==="running"),v=t.filter(w=>fo(w)),S=t.some(w=>!fo(w));return y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"flex items-center justify-between",children:[y.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[y.jsx(gb,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&y.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),y.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:[y.jsx(rk,{className:se("size-3",i&&"animate-spin")}),"Refresh"]})]}),o&&y.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&&y.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),g.length>0&&y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(cb,{label:"Running",count:g.length}),g.map(w=>y.jsx(sb,{job:w,now:s,onCancel:b},w.jobId))]}),v.length>0&&y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(cb,{label:"Settled",count:v.length}),v.map(w=>y.jsx(sb,{job:w,now:s,onCancel:b},w.jobId))]})]})}function ya({icon:t,title:l,children:i}){return y.jsxs("section",{className:"space-y-3",children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(t,{className:"size-4 text-muted-foreground"}),y.jsx("h2",{className:"text-sm font-semibold",children:l})]}),y.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 y.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[y.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),y.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 y.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!l&&"border-b border-border"),children:[y.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),y.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 y.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!i&&"border-b border-border"),children:[y.jsx("span",{className:"text-xs text-zinc-200",children:l}),y.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?y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx("span",{className:se("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),y.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"})]}):y.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=y.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return y.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[y.jsxs(ya,{icon:xb,title:"About",children:[y.jsx(Vt,{label:"AFK version",value:i?i.version:a,mono:!0}),y.jsx(Vt,{label:"Node.js",value:i?i.nodeVersion:a,mono:!0}),y.jsx(Vt,{label:"App",value:"AFK Dashboard",last:!0})]}),y.jsxs(ya,{icon:YS,title:"Model",children:[y.jsx(Vt,{label:"Default model",value:i?i.model:a,mono:!0}),t.modelsError?y.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?y.jsx(Vt,{label:"Available tiers",value:a,last:!0}):t.models.length===0?y.jsx(Vt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((c,s)=>{var d;return y.jsx(gz,{model:c,last:s===(((d=t.models)==null?void 0:d.length)??0)-1},c.id)})]}),y.jsxs(ya,{icon:FS,title:"Paths",children:[y.jsx(Vt,{label:"AFK home",value:i?i.afkHome:a,mono:!0}),y.jsx(Vt,{label:"State dir",value:i?i.stateDir:a,mono:!0}),y.jsx(Vt,{label:"Config dir",value:i?i.configDir:a,mono:!0,last:!0})]}),y.jsxs(ya,{icon:oi,title:"Web Server",children:[y.jsx(Vt,{label:"Host",value:i?i.webHost:a,mono:!0}),y.jsx(Vt,{label:"Port",value:i?String(i.webPort):a,mono:!0}),y.jsx(Vt,{label:"Daemon",value:y.jsx(bz,{status:t.daemon})}),!t.daemonError&&y.jsx(Vt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&y.jsx(Vt,{label:"Daemon error",value:t.daemonError,last:!0})]}),y.jsx(ya,{icon:XS,title:"Keyboard Shortcuts",children:fb.map((c,s)=>y.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:y.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)=>y.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:b=>{b.preventDefault(),i(m.name)},children:[y.jsx("span",{className:"font-mono font-semibold shrink-0",children:rv(m.name)}),y.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),b=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}`),b()},[a,t,b]);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 w=S.target;m.current&&!m.current.contains(w)&&p.current&&!p.current.contains(w)&&b()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[l,b]),y.jsxs("div",{className:"relative",children:[y.jsx("button",{ref:p,type:"button",onClick:()=>l?b():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:y.jsx(GS,{className:"h-4 w-4"})}),l&&y.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:[y.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",y.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",y.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),y.jsxs("div",{className:"flex gap-2",children:[y.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"&&b()},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")}),y.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&&y.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 y.jsxs("div",{className:se("relative inline-flex items-center",i),children:[y.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=>y.jsx("option",{value:m.id,children:m.label},m.id))}),y.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:y.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[y.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",l.length,")"]}),l.map((s,d)=>y.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,b]=k.useState(t),g=k.useRef(null);k.useEffect(()=>{var A;d&&((A=g.current)==null||A.focus())},[d]);const v=k.useCallback(()=>{b(t),m(!0)},[t]),S=k.useCallback(()=>{const A=p.trim();A&&A!==t&&s(A),m(!1)},[p,t,s]),w=k.useCallback(()=>{m(!1),b(t)},[t]);return y.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?y.jsx("input",{ref:g,type:"text",value:p,onChange:A=>b(A.target.value),onKeyDown:A=>{A.key==="Enter"&&S(),A.key==="Escape"&&w()},onBlur:S,className:se("min-w-0 flex-1 bg-transparent text-sm","focus:outline-none")}):y.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),y.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[d?y.jsx(ba,{label:"Confirm edit",onClick:S,children:y.jsx(dd,{className:"h-3 w-3"})}):y.jsx(ba,{label:"Edit",onClick:v,children:y.jsx(ek,{className:"h-3 w-3"})}),y.jsx(ba,{label:"Move up",onClick:a,disabled:l,children:y.jsx(RS,{className:"h-3 w-3"})}),y.jsx(ba,{label:"Move down",onClick:o,disabled:i,children:y.jsx(pb,{className:"h-3 w-3"})}),y.jsx(ba,{label:"Remove",onClick:c,destructive:!0,children:y.jsx(md,{className:"h-3 w-3"})})]})]})}function ba({label:t,onClick:l,disabled:i,destructive:a,children:o}){return y.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),[b,g]=k.useState([]),[v,S]=k.useState(0),w=k.useRef(null),A=l==="readonly",j=Mz(s),N=j!==null&&b.length>0,R=N?b.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=w.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=w.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=w.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 y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"pointer-events-none h-8 bg-gradient-to-t from-background/80 to-transparent"}),y.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&&y.jsx(Az,{queue:a}),y.jsx(vz,{query:j??"",commands:b,onSelect:ee,visible:N}),y.jsxs("div",{className:"flex items-end gap-2",children:[y.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[y.jsx(wz,{onInsert:X}),o&&y.jsx(Tz,{onSelect:o,current:c})]}),y.jsx("textarea",{ref:w,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?y.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:y.jsx(Sb,{className:"h-4 w-4 fill-current"})}):y.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:y.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),b=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 y.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:[y.jsxs("div",{className:"flex items-start gap-2",children:[y.jsx(uk,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),y.jsxs("div",{className:"flex-1 min-w-0",children:[a.title&&y.jsx("p",{className:"font-semibold text-foreground",children:a.title}),a.message&&y.jsx("p",{className:"text-muted-foreground",children:a.message}),a.description&&y.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:a.description})]}),y.jsx("button",{onClick:()=>void b("decline"),disabled:s,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:y.jsx(md,{className:"h-4 w-4"})})]}),g==="text"&&y.jsxs("div",{className:"flex gap-2",children:[y.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")}),y.jsx(ho,{onClick:()=>void b("accept",{text:o}),disabled:s,label:"Submit",variant:"primary"})]}),g==="confirm"&&y.jsxs("div",{className:"flex gap-2 justify-end",children:[y.jsx(ho,{onClick:()=>void b("decline"),disabled:s,label:"No",variant:"ghost"}),y.jsx(ho,{onClick:()=>void b("accept"),disabled:s,label:"Yes",variant:"primary"})]}),(g==="choice"||g==="multi_choice")&&y.jsx("div",{className:"flex flex-wrap gap-1.5",children:(a.choices??[]).map(v=>y.jsx(ho,{onClick:()=>void b("accept",{choice:v}),disabled:s,label:v,variant:"outline"},v))}),m&&y.jsx("p",{className:"text-xs text-red-400",children:m})]})}function ho({onClick:t,disabled:l,label:i,variant:a}){return y.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 y.jsx("div",{className:"flex flex-col gap-2",children:o.map(s=>y.jsx(Oz,{approval:s,onAnswered:()=>c(s.id)},s.id))})}function Lz({open:t,onClose:l,children:i}){return y.jsxs(y.Fragment,{children:[y.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"}),y.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 y.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:y.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:y.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 y.jsxs(Bz.Provider,{value:{toast:o},children:[t,y.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=>y.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,`
|
|
376
376
|
`).split(`
|
|
377
377
|
|
|
378
378
|
`),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),b=k.useRef(!1);return k.useEffect(()=>{if(t===null){i([]),o("connecting"),s(null);return}const g=t;i([]),s(null),b.current=!1,m.current=void 0,p.current=0;async function v(){if(b.current)return;o(p.current===0?"connecting":"reconnecting");let S=!1;const
|
|
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 b=dn(t.totalCostUsd);b!==void 0&&(m.totalCostUsd=b);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 Mf={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(Mf),[m,p]=k.useState(!1),[b,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(Mf),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=Mf,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:b}}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)},[]),b=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:b,editItem:g,clear:v,flush:S}}function s5(){return y.jsx(qz,{children:y.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),[b,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=y.jsx(u2,{sessions:t,pendingSessionIds:a,selectedSessionId:s,onSelectSession:X,activeNav:o,onNavChange:D,collapsed:m,onToggleCollapse:()=>p(Q=>!Q)});return y.jsxs("div",{className:"flex h-screen overflow-hidden",children:[y.jsx(mE,{onNavigate:D}),y.jsx(gE,{onNavigate:D}),y.jsx("div",{className:"hidden md:block",children:B}),y.jsx(Lz,{open:b,onClose:()=>g(!1),children:B}),y.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[y.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(Uz,{className:"md:hidden",onClick:()=>g(!0)}),y.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&&y.jsx(d5,{status:A})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&y.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:y.jsx(lk,{className:"h-4 w-4"})}),o==="sessions"&&v&&y.jsx(Lx,{totals:E}),y.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"})]})]}),y.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[ee&&o==="sessions"&&y.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:[y.jsx(mb,{className:"size-3"}),"New messages"]}),y.jsxs("div",{ref:R,className:"relative flex flex-1 flex-col overflow-y-auto",children:[y.jsxs("div",{className:"flex-1",children:[o==="sessions"&&y.jsx(f5,{loading:l,sessions:t,selectedSession:v,items:S,totals:E,status:A,turnActive:j}),o==="memory"&&y.jsx(ez,{}),o==="schedules"&&y.jsx(sz,{}),o==="jobs"&&y.jsx(pz,{}),o==="settings"&&y.jsx(xz,{})]}),o==="sessions"&&v&&v.mode==="live"&&y.jsxs("div",{className:"shrink-0",children:[i.length>0&&y.jsx(Rz,{approvals:i}),y.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?y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[y.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),y.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&l.length===0?y.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:y.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",y.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):i&&a.length>0?y.jsx(V4,{items:a,totals:o,turnActive:s}):i?y.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:y.jsx("div",{className:"flex flex-col items-center gap-2",children:c==="connecting"||c==="reconnecting"?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),y.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):y.jsx("span",{className:"text-sm",children:"No transcript data"})})}):y.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:y.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function d5({status:t}){return t==="open"?y.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?y.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?y.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(y.jsx(k.StrictMode,{children:y.jsx(s5,{})}));export{Q0 as _,lC as a,xC as b,Wy as c,pC as f,bC as h,Ad as s,oC as w};
|
|
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),b=k.useRef(!1);return k.useEffect(()=>{if(t===null){i([]),o("connecting"),s(null);return}const g=t;i([]),s(null),b.current=!1,m.current=void 0,p.current=0;async function v(){if(b.current)return;o(p.current===0?"connecting":"reconnecting");let S=!1;const w=new AbortController;d.current=w;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:w.signal});if(!L.ok){if(L.status===401||L.status===403||L.status===404){b.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(b.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,b.current=!0;break e}i(be=>[...be,P])}}}catch(L){if(L instanceof DOMException&&L.name==="AbortError")return}if(b.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;b.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 b=dn(t.totalCostUsd);b!==void 0&&(m.totalCostUsd=b);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),[b,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 w=k.useRef(0);return k.useEffect(()=>{const A=l.slice(w.current);if(A.length===0)return;w.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(()=>{w.current=0},[t]),{items:o,totals:s,status:i,error:a,turnActive:m,liveTurns:b}}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(w=>{const A=c.current++,j=[...s.current,{id:A,text:w}];s.current=j,a(j)},[]),m=k.useCallback(w=>{const A=r5(s.current,w);s.current=A,a(A)},[]),p=k.useCallback(w=>{const A=i5(s.current,w);s.current=A,a(A)},[]),b=k.useCallback(w=>{const A=a5(s.current,w);s.current=A,a(A)},[]),g=k.useCallback((w,A)=>{const j=u5(s.current,w,A);s.current=j,a(j)},[]),v=k.useCallback(()=>{s.current=[],a([])},[]),S=k.useCallback(async()=>{if(o.current||!l)return;const w=s.current[0];if(w===void 0)return;const A=w.id,j=w.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:b,editItem:g,clear:v,flush:S}}function s5(){return y.jsx(qz,{children:y.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),[b,g]=k.useState(!1),v=t.find(Q=>Q.id===s),{items:S,totals:w,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=y.jsx(u2,{sessions:t,pendingSessionIds:a,selectedSessionId:s,onSelectSession:X,activeNav:o,onNavChange:D,collapsed:m,onToggleCollapse:()=>p(Q=>!Q)});return y.jsxs("div",{className:"flex h-screen overflow-hidden",children:[y.jsx(mE,{onNavigate:D}),y.jsx(gE,{onNavigate:D}),y.jsx("div",{className:"hidden md:block",children:B}),y.jsx(Lz,{open:b,onClose:()=>g(!1),children:B}),y.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[y.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[y.jsxs("div",{className:"flex items-center gap-3",children:[y.jsx(Uz,{className:"md:hidden",onClick:()=>g(!0)}),y.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&&y.jsx(d5,{status:A})]}),y.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&y.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:y.jsx(lk,{className:"h-4 w-4"})}),o==="sessions"&&v&&y.jsx(Ux,{totals:w}),y.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"})]})]}),y.jsxs("div",{className:"relative flex flex-1 flex-col overflow-hidden",children:[ee&&o==="sessions"&&y.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:[y.jsx(pb,{className:"size-3"}),"New messages"]}),y.jsxs("div",{ref:R,className:"relative flex flex-1 flex-col overflow-y-auto",children:[y.jsxs("div",{className:"flex-1",children:[o==="sessions"&&y.jsx(f5,{loading:l,sessions:t,selectedSession:v,items:S,totals:w,status:A,turnActive:j}),o==="memory"&&y.jsx(ez,{}),o==="schedules"&&y.jsx(sz,{}),o==="jobs"&&y.jsx(pz,{}),o==="settings"&&y.jsx(xz,{})]}),o==="sessions"&&v&&v.mode==="live"&&y.jsxs("div",{className:"shrink-0",children:[i.length>0&&y.jsx(Rz,{approvals:i}),y.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?y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[y.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),y.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&l.length===0?y.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:y.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",y.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):i&&a.length>0?y.jsx(V4,{items:a,totals:o,turnActive:s}):i?y.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:y.jsx("div",{className:"flex flex-col items-center gap-2",children:c==="connecting"||c==="reconnecting"?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),y.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):y.jsx("span",{className:"text-sm",children:"No transcript data"})})}):y.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:y.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function d5({status:t}){return t==="open"?y.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?y.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?y.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(y.jsx(k.StrictMode,{children:y.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};
|