@teddysc/claude-run 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,318 +0,0 @@
1
- (function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&u(f)}).observe(document,{childList:!0,subtree:!0});function i(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function u(s){if(s.ep)return;s.ep=!0;const c=i(s);fetch(s.href,c)}})();function Jp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var _o={exports:{}},Ta={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Lm;function Ry(){if(Lm)return Ta;Lm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(u,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:n,type:u,key:f,ref:s!==void 0?s:null,props:c}}return Ta.Fragment=a,Ta.jsx=i,Ta.jsxs=i,Ta}var Um;function Ly(){return Um||(Um=1,_o.exports=Ry()),_o.exports}var b=Ly(),Oo={exports:{}},ze={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Bm;function Uy(){if(Bm)return ze;Bm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function v(C){return C===null||typeof C!="object"?null:(C=S&&C[S]||C["@@iterator"],typeof C=="function"?C:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,B={};function A(C,X,k){this.props=C,this.context=X,this.refs=B,this.updater=k||w}A.prototype.isReactComponent={},A.prototype.setState=function(C,X){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,X,"setState")},A.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};function q(){}q.prototype=A.prototype;function H(C,X,k){this.props=C,this.context=X,this.refs=B,this.updater=k||w}var te=H.prototype=new q;te.constructor=H,M(te,A.prototype),te.isPureReactComponent=!0;var ie=Array.isArray;function D(){}var I={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function he(C,X,k){var F=k.ref;return{$$typeof:n,type:C,key:X,ref:F!==void 0?F:null,props:k}}function U(C,X){return he(C.type,X,C.props)}function le(C){return typeof C=="object"&&C!==null&&C.$$typeof===n}function W(C){var X={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(k){return X[k]})}var ye=/\/+/g;function re(C,X){return typeof C=="object"&&C!==null&&C.key!=null?W(""+C.key):X.toString(36)}function $(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(D,D):(C.status="pending",C.then(function(X){C.status==="pending"&&(C.status="fulfilled",C.value=X)},function(X){C.status==="pending"&&(C.status="rejected",C.reason=X)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function R(C,X,k,F,ae){var ue=typeof C;(ue==="undefined"||ue==="boolean")&&(C=null);var Se=!1;if(C===null)Se=!0;else switch(ue){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(C.$$typeof){case n:case a:Se=!0;break;case y:return Se=C._init,R(Se(C._payload),X,k,F,ae)}}if(Se)return ae=ae(C),Se=F===""?"."+re(C,0):F,ie(ae)?(k="",Se!=null&&(k=Se.replace(ye,"$&/")+"/"),R(ae,X,k,"",function(pt){return pt})):ae!=null&&(le(ae)&&(ae=U(ae,k+(ae.key==null||C&&C.key===ae.key?"":(""+ae.key).replace(ye,"$&/")+"/")+Se)),X.push(ae)),1;Se=0;var Ye=F===""?".":F+":";if(ie(C))for(var Le=0;Le<C.length;Le++)F=C[Le],ue=Ye+re(F,Le),Se+=R(F,X,k,ue,ae);else if(Le=v(C),typeof Le=="function")for(C=Le.call(C),Le=0;!(F=C.next()).done;)F=F.value,ue=Ye+re(F,Le++),Se+=R(F,X,k,ue,ae);else if(ue==="object"){if(typeof C.then=="function")return R($(C),X,k,F,ae);throw X=String(C),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function K(C,X,k){if(C==null)return C;var F=[],ae=0;return R(C,F,"","",function(ue){return X.call(k,ue,ae++)}),F}function oe(C){if(C._status===-1){var X=C._result;X=X(),X.then(function(k){(C._status===0||C._status===-1)&&(C._status=1,C._result=k)},function(k){(C._status===0||C._status===-1)&&(C._status=2,C._result=k)}),C._status===-1&&(C._status=0,C._result=X)}if(C._status===1)return C._result.default;throw C._result}var be=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},E={map:K,forEach:function(C,X,k){K(C,function(){X.apply(this,arguments)},k)},count:function(C){var X=0;return K(C,function(){X++}),X},toArray:function(C){return K(C,function(X){return X})||[]},only:function(C){if(!le(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};return ze.Activity=g,ze.Children=E,ze.Component=A,ze.Fragment=i,ze.Profiler=s,ze.PureComponent=H,ze.StrictMode=u,ze.Suspense=p,ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ze.__COMPILER_RUNTIME={__proto__:null,c:function(C){return I.H.useMemoCache(C)}},ze.cache=function(C){return function(){return C.apply(null,arguments)}},ze.cacheSignal=function(){return null},ze.cloneElement=function(C,X,k){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var F=M({},C.props),ae=C.key;if(X!=null)for(ue in X.key!==void 0&&(ae=""+X.key),X)!se.call(X,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&X.ref===void 0||(F[ue]=X[ue]);var ue=arguments.length-2;if(ue===1)F.children=k;else if(1<ue){for(var Se=Array(ue),Ye=0;Ye<ue;Ye++)Se[Ye]=arguments[Ye+2];F.children=Se}return he(C.type,ae,F)},ze.createContext=function(C){return C={$$typeof:f,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:c,_context:C},C},ze.createElement=function(C,X,k){var F,ae={},ue=null;if(X!=null)for(F in X.key!==void 0&&(ue=""+X.key),X)se.call(X,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ae[F]=X[F]);var Se=arguments.length-2;if(Se===1)ae.children=k;else if(1<Se){for(var Ye=Array(Se),Le=0;Le<Se;Le++)Ye[Le]=arguments[Le+2];ae.children=Ye}if(C&&C.defaultProps)for(F in Se=C.defaultProps,Se)ae[F]===void 0&&(ae[F]=Se[F]);return he(C,ue,ae)},ze.createRef=function(){return{current:null}},ze.forwardRef=function(C){return{$$typeof:d,render:C}},ze.isValidElement=le,ze.lazy=function(C){return{$$typeof:y,_payload:{_status:-1,_result:C},_init:oe}},ze.memo=function(C,X){return{$$typeof:m,type:C,compare:X===void 0?null:X}},ze.startTransition=function(C){var X=I.T,k={};I.T=k;try{var F=C(),ae=I.S;ae!==null&&ae(k,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(D,be)}catch(ue){be(ue)}finally{X!==null&&k.types!==null&&(X.types=k.types),I.T=X}},ze.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ze.use=function(C){return I.H.use(C)},ze.useActionState=function(C,X,k){return I.H.useActionState(C,X,k)},ze.useCallback=function(C,X){return I.H.useCallback(C,X)},ze.useContext=function(C){return I.H.useContext(C)},ze.useDebugValue=function(){},ze.useDeferredValue=function(C,X){return I.H.useDeferredValue(C,X)},ze.useEffect=function(C,X){return I.H.useEffect(C,X)},ze.useEffectEvent=function(C){return I.H.useEffectEvent(C)},ze.useId=function(){return I.H.useId()},ze.useImperativeHandle=function(C,X,k){return I.H.useImperativeHandle(C,X,k)},ze.useInsertionEffect=function(C,X){return I.H.useInsertionEffect(C,X)},ze.useLayoutEffect=function(C,X){return I.H.useLayoutEffect(C,X)},ze.useMemo=function(C,X){return I.H.useMemo(C,X)},ze.useOptimistic=function(C,X){return I.H.useOptimistic(C,X)},ze.useReducer=function(C,X,k){return I.H.useReducer(C,X,k)},ze.useRef=function(C){return I.H.useRef(C)},ze.useState=function(C){return I.H.useState(C)},ze.useSyncExternalStore=function(C,X,k){return I.H.useSyncExternalStore(C,X,k)},ze.useTransition=function(){return I.H.useTransition()},ze.version="19.2.4",ze}var Hm;function gc(){return Hm||(Hm=1,Oo.exports=Uy()),Oo.exports}var J=gc(),Do={exports:{}},Ca={},Ro={exports:{}},Lo={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var qm;function By(){return qm||(qm=1,(function(n){function a(R,K){var oe=R.length;R.push(K);e:for(;0<oe;){var be=oe-1>>>1,E=R[be];if(0<s(E,K))R[be]=K,R[oe]=E,oe=be;else break e}}function i(R){return R.length===0?null:R[0]}function u(R){if(R.length===0)return null;var K=R[0],oe=R.pop();if(oe!==K){R[0]=oe;e:for(var be=0,E=R.length,C=E>>>1;be<C;){var X=2*(be+1)-1,k=R[X],F=X+1,ae=R[F];if(0>s(k,oe))F<E&&0>s(ae,k)?(R[be]=ae,R[F]=oe,be=F):(R[be]=k,R[X]=oe,be=X);else if(F<E&&0>s(ae,oe))R[be]=ae,R[F]=oe,be=F;else break e}}return K}function s(R,K){var oe=R.sortIndex-K.sortIndex;return oe!==0?oe:R.id-K.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,d=f.now();n.unstable_now=function(){return f.now()-d}}var p=[],m=[],y=1,g=null,S=3,v=!1,w=!1,M=!1,B=!1,A=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,H=typeof setImmediate<"u"?setImmediate:null;function te(R){for(var K=i(m);K!==null;){if(K.callback===null)u(m);else if(K.startTime<=R)u(m),K.sortIndex=K.expirationTime,a(p,K);else break;K=i(m)}}function ie(R){if(M=!1,te(R),!w)if(i(p)!==null)w=!0,D||(D=!0,W());else{var K=i(m);K!==null&&$(ie,K.startTime-R)}}var D=!1,I=-1,se=5,he=-1;function U(){return B?!0:!(n.unstable_now()-he<se)}function le(){if(B=!1,D){var R=n.unstable_now();he=R;var K=!0;try{e:{w=!1,M&&(M=!1,q(I),I=-1),v=!0;var oe=S;try{t:{for(te(R),g=i(p);g!==null&&!(g.expirationTime>R&&U());){var be=g.callback;if(typeof be=="function"){g.callback=null,S=g.priorityLevel;var E=be(g.expirationTime<=R);if(R=n.unstable_now(),typeof E=="function"){g.callback=E,te(R),K=!0;break t}g===i(p)&&u(p),te(R)}else u(p);g=i(p)}if(g!==null)K=!0;else{var C=i(m);C!==null&&$(ie,C.startTime-R),K=!1}}break e}finally{g=null,S=oe,v=!1}K=void 0}}finally{K?W():D=!1}}}var W;if(typeof H=="function")W=function(){H(le)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,re=ye.port2;ye.port1.onmessage=le,W=function(){re.postMessage(null)}}else W=function(){A(le,0)};function $(R,K){I=A(function(){R(n.unstable_now())},K)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(R){switch(S){case 1:case 2:case 3:var K=3;break;default:K=S}var oe=S;S=K;try{return R()}finally{S=oe}},n.unstable_requestPaint=function(){B=!0},n.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var oe=S;S=R;try{return K()}finally{S=oe}},n.unstable_scheduleCallback=function(R,K,oe){var be=n.unstable_now();switch(typeof oe=="object"&&oe!==null?(oe=oe.delay,oe=typeof oe=="number"&&0<oe?be+oe:be):oe=be,R){case 1:var E=-1;break;case 2:E=250;break;case 5:E=1073741823;break;case 4:E=1e4;break;default:E=5e3}return E=oe+E,R={id:y++,callback:K,priorityLevel:R,startTime:oe,expirationTime:E,sortIndex:-1},oe>be?(R.sortIndex=oe,a(m,R),i(p)===null&&R===i(m)&&(M?(q(I),I=-1):M=!0,$(ie,oe-be))):(R.sortIndex=E,a(p,R),w||v||(w=!0,D||(D=!0,W()))),R},n.unstable_shouldYield=U,n.unstable_wrapCallback=function(R){var K=S;return function(){var oe=S;S=K;try{return R.apply(this,arguments)}finally{S=oe}}}})(Lo)),Lo}var Ym;function Hy(){return Ym||(Ym=1,Ro.exports=By()),Ro.exports}var Uo={exports:{}},St={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Vm;function qy(){if(Vm)return St;Vm=1;var n=gc();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)m+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,m,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:g==null?null:""+g,children:p,containerInfo:m,implementation:y}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,St.createPortal=function(p,m){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,y)},St.flushSync=function(p){var m=f.T,y=u.p;try{if(f.T=null,u.p=2,p)return p()}finally{f.T=m,u.p=y,u.d.f()}},St.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,u.d.C(p,m))},St.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},St.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin),S=typeof m.integrity=="string"?m.integrity:void 0,v=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;y==="style"?u.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:v}):y==="script"&&u.d.X(p,{crossOrigin:g,integrity:S,fetchPriority:v,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},St.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var y=d(m.as,m.crossOrigin);u.d.M(p,{crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&u.d.M(p)},St.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var y=m.as,g=d(y,m.crossOrigin);u.d.L(p,y,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},St.preloadModule=function(p,m){if(typeof p=="string")if(m){var y=d(m.as,m.crossOrigin);u.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:y,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else u.d.m(p)},St.requestFormReset=function(p){u.d.r(p)},St.unstable_batchedUpdates=function(p,m){return p(m)},St.useFormState=function(p,m,y){return f.H.useFormState(p,m,y)},St.useFormStatus=function(){return f.H.useHostTransitionStatus()},St.version="19.2.4",St}var Xm;function Ip(){if(Xm)return Uo.exports;Xm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Uo.exports=qy(),Uo.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var Gm;function Yy(){if(Gm)return Ca;Gm=1;var n=Hy(),a=gc(),i=Ip();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(u(188))}function m(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(u(188));return t!==e?null:e}for(var l=e,r=t;;){var o=l.return;if(o===null)break;var h=o.alternate;if(h===null){if(r=o.return,r!==null){l=r;continue}break}if(o.child===h.child){for(h=o.child;h;){if(h===l)return p(o),e;if(h===r)return p(o),t;h=h.sibling}throw Error(u(188))}if(l.return!==r.return)l=o,r=h;else{for(var x=!1,z=o.child;z;){if(z===l){x=!0,l=o,r=h;break}if(z===r){x=!0,r=o,l=h;break}z=z.sibling}if(!x){for(z=h.child;z;){if(z===l){x=!0,l=h,r=o;break}if(z===r){x=!0,r=h,l=o;break}z=z.sibling}if(!x)throw Error(u(189))}}if(l.alternate!==r)throw Error(u(190))}if(l.tag!==3)throw Error(u(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),H=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),U=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function W(e){return e===null||typeof e!="object"?null:(e=le&&e[le]||e["@@iterator"],typeof e=="function"?e:null)}var ye=Symbol.for("react.client.reference");function re(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ye?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case M:return"Fragment";case A:return"Profiler";case B:return"StrictMode";case ie:return"Suspense";case D:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case H:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:re(e.type)||"Memo";case se:t=e._payload,e=e._init;try{return re(e(t))}catch{}}return null}var $=Array.isArray,R=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe={pending:!1,data:null,method:null,action:null},be=[],E=-1;function C(e){return{current:e}}function X(e){0>E||(e.current=be[E],be[E]=null,E--)}function k(e,t){E++,be[E]=e.current,e.current=t}var F=C(null),ae=C(null),ue=C(null),Se=C(null);function Ye(e,t){switch(k(ue,t),k(ae,e),k(F,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(F),k(F,e)}function Le(){X(F),X(ae),X(ue)}function pt(e){e.memoizedState!==null&&k(Se,e);var t=F.current,l=rm(t,e.type);t!==l&&(k(ae,e),k(F,l))}function rn(e){ae.current===e&&(X(F),X(ae)),Se.current===e&&(X(Se),za._currentValue=oe)}var gl,Bl;function un(e){if(gl===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);gl=t&&t[1]||"",Bl=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+gl+e+Bl}var qn=!1;function Yn(e,t){if(!e||qn)return"";qn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Y){var L=Y}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(Y){L=Y}e.call(Z.prototype)}}else{try{throw Error()}catch(Y){L=Y}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Y){if(Y&&L&&typeof Y.stack=="string")return[Y.stack,L.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=r.DetermineComponentFrameRoot(),x=h[0],z=h[1];if(x&&z){var T=x.split(`
44
- `),O=z.split(`
45
- `);for(o=r=0;r<T.length&&!T[r].includes("DetermineComponentFrameRoot");)r++;for(;o<O.length&&!O[o].includes("DetermineComponentFrameRoot");)o++;if(r===T.length||o===O.length)for(r=T.length-1,o=O.length-1;1<=r&&0<=o&&T[r]!==O[o];)o--;for(;1<=r&&0<=o;r--,o--)if(T[r]!==O[o]){if(r!==1||o!==1)do if(r--,o--,0>o||T[r]!==O[o]){var G=`
46
- `+T[r].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=r&&0<=o);break}}}finally{qn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?un(l):""}function Hl(e,t){switch(e.tag){case 26:case 27:case 5:return un(e.type);case 16:return un("Lazy");case 13:return e.child!==t&&t!==null?un("Suspense Fallback"):un("Suspense");case 19:return un("SuspenseList");case 0:case 15:return Yn(e.type,!1);case 11:return Yn(e.type.render,!1);case 1:return Yn(e.type,!0);case 31:return un("Activity");default:return""}}function ql(e){try{var t="",l=null;do t+=Hl(e,l),l=e,e=e.return;while(e);return t}catch(r){return`
47
- Error generating stack: `+r.message+`
48
- `+r.stack}}var Vn=Object.prototype.hasOwnProperty,ne=n.unstable_scheduleCallback,de=n.unstable_cancelCallback,ve=n.unstable_shouldYield,$e=n.unstable_requestPaint,De=n.unstable_now,at=n.unstable_getCurrentPriorityLevel,V=n.unstable_ImmediatePriority,ee=n.unstable_UserBlockingPriority,ge=n.unstable_NormalPriority,Te=n.unstable_LowPriority,Ue=n.unstable_IdlePriority,Bt=n.log,bn=n.unstable_setDisableYieldValue,wt=null,ft=null;function Ct(e){if(typeof Bt=="function"&&bn(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(wt,e)}catch{}}var Ze=Math.clz32?Math.clz32:Sg,Xn=Math.log,sn=Math.LN2;function Sg(e){return e>>>=0,e===0?32:31-(Xn(e)/sn|0)|0}var Ya=256,Va=262144,Xa=4194304;function xl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ga(e,t,l){var r=e.pendingLanes;if(r===0)return 0;var o=0,h=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var z=r&134217727;return z!==0?(r=z&~h,r!==0?o=xl(r):(x&=z,x!==0?o=xl(x):l||(l=z&~e,l!==0&&(o=xl(l))))):(z=r&~h,z!==0?o=xl(z):x!==0?o=xl(x):l||(l=r&~e,l!==0&&(o=xl(l)))),o===0?0:t!==0&&t!==o&&(t&h)===0&&(h=o&-o,l=t&-t,h>=l||h===32&&(l&4194048)!==0)?t:o}function Ri(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hc(){var e=Xa;return Xa<<=1,(Xa&62914560)===0&&(Xa=4194304),e}function bu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Li(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kg(e,t,l,r,o,h){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var z=e.entanglements,T=e.expirationTimes,O=e.hiddenUpdates;for(l=x&~l;0<l;){var G=31-Ze(l),Z=1<<G;z[G]=0,T[G]=-1;var L=O[G];if(L!==null)for(O[G]=null,G=0;G<L.length;G++){var Y=L[G];Y!==null&&(Y.lane&=-536870913)}l&=~Z}r!==0&&qc(e,r,0),h!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=h&~(x&~t))}function qc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|l&261930}function Yc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var r=31-Ze(l),o=1<<r;o&t|e[r]&t&&(e[r]|=t),l&=~o}}function Vc(e,t){var l=t&-t;return l=(l&42)!==0?1:vu(l),(l&(e.suspendedLanes|t))!==0?0:l}function vu(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 Su(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Xc(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Am(e.type))}function Gc(e,t){var l=K.p;try{return K.p=e,t()}finally{K.p=l}}var Gn=Math.random().toString(36).slice(2),gt="__reactFiber$"+Gn,Nt="__reactProps$"+Gn,Yl="__reactContainer$"+Gn,zu="__reactEvents$"+Gn,wg="__reactListeners$"+Gn,Eg="__reactHandles$"+Gn,Qc="__reactResources$"+Gn,Ui="__reactMarker$"+Gn;function ku(e){delete e[gt],delete e[Nt],delete e[zu],delete e[wg],delete e[Eg]}function Vl(e){var t=e[gt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Yl]||l[gt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=dm(e);e!==null;){if(l=e[gt])return l;e=dm(e)}return t}e=l,l=e.parentNode}return null}function Xl(e){if(e=e[gt]||e[Yl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function Gl(e){var t=e[Qc];return t||(t=e[Qc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dt(e){e[Ui]=!0}var Fc=new Set,Zc={};function yl(e,t){Ql(e,t),Ql(e+"Capture",t)}function Ql(e,t){for(Zc[e]=t,e=0;e<t.length;e++)Fc.add(t[e])}var Tg=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]*$"),Kc={},Jc={};function Cg(e){return Vn.call(Jc,e)?!0:Vn.call(Kc,e)?!1:Tg.test(e)?Jc[e]=!0:(Kc[e]=!0,!1)}function Qa(e,t,l){if(Cg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Fa(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function vn(e,t,l,r){if(r===null)e.removeAttribute(l);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+r)}}function Kt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ic(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ng(e,t,l){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,h=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(x){l=""+x,h.call(this,x)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wu(e){if(!e._valueTracker){var t=Ic(e)?"checked":"value";e._valueTracker=Ng(e,t,""+e[t])}}function $c(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),r="";return e&&(r=Ic(e)?e.checked?"true":"false":e.value),e=r,e!==l?(t.setValue(e),!0):!1}function Za(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 Ag=/[\n"\\]/g;function Jt(e){return e.replace(Ag,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Eu(e,t,l,r,o,h,x,z){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Kt(t)):e.value!==""+Kt(t)&&(e.value=""+Kt(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?Tu(e,x,Kt(t)):l!=null?Tu(e,x,Kt(l)):r!=null&&e.removeAttribute("value"),o==null&&h!=null&&(e.defaultChecked=!!h),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?e.name=""+Kt(z):e.removeAttribute("name")}function Wc(e,t,l,r,o,h,x,z){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),t!=null||l!=null){if(!(h!=="submit"&&h!=="reset"||t!=null)){wu(e);return}l=l!=null?""+Kt(l):"",t=t!=null?""+Kt(t):l,z||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=z?e.checked:!!r,e.defaultChecked=!!r,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),wu(e)}function Tu(e,t,l){t==="number"&&Za(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Fl(e,t,l,r){if(e=e.options,t){t={};for(var o=0;o<l.length;o++)t["$"+l[o]]=!0;for(l=0;l<e.length;l++)o=t.hasOwnProperty("$"+e[l].value),e[l].selected!==o&&(e[l].selected=o),o&&r&&(e[l].defaultSelected=!0)}else{for(l=""+Kt(l),t=null,o=0;o<e.length;o++){if(e[o].value===l){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pc(e,t,l){if(t!=null&&(t=""+Kt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Kt(l):""}function ef(e,t,l,r){if(t==null){if(r!=null){if(l!=null)throw Error(u(92));if($(r)){if(1<r.length)throw Error(u(93));r=r[0]}l=r}l==null&&(l=""),t=l}l=Kt(t),e.defaultValue=l,r=e.textContent,r===l&&r!==""&&r!==null&&(e.value=r),wu(e)}function Zl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var jg=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 tf(e,t,l){var r=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,l):typeof l!="number"||l===0||jg.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function nf(e,t,l){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,l!=null){for(var r in l)!l.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&l[o]!==r&&tf(e,o,r)}else for(var h in t)t.hasOwnProperty(h)&&tf(e,h,t[h])}function Cu(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 Mg=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"]]),_g=/^[\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 Ka(e){return _g.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Sn(){}var Nu=null;function Au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,Jl=null;function lf(e){var t=Xl(e);if(t&&(e=t.stateNode)){var l=e[Nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Eu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Jt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var r=l[t];if(r!==e&&r.form===e.form){var o=r[Nt]||null;if(!o)throw Error(u(90));Eu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<l.length;t++)r=l[t],r.form===e.form&&$c(r)}break e;case"textarea":Pc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Fl(e,!!l.multiple,t,!1)}}}var ju=!1;function af(e,t,l){if(ju)return e(t,l);ju=!0;try{var r=e(t);return r}finally{if(ju=!1,(Kl!==null||Jl!==null)&&(Rr(),Kl&&(t=Kl,e=Jl,Jl=Kl=null,lf(t),e)))for(t=0;t<e.length;t++)lf(e[t])}}function Hi(e,t){var l=e.stateNode;if(l===null)return null;var r=l[Nt]||null;if(r===null)return null;l=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(u(231,t,typeof l));return l}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mu=!1;if(zn)try{var qi={};Object.defineProperty(qi,"passive",{get:function(){Mu=!0}}),window.addEventListener("test",qi,qi),window.removeEventListener("test",qi,qi)}catch{Mu=!1}var Qn=null,_u=null,Ja=null;function rf(){if(Ja)return Ja;var e,t=_u,l=t.length,r,o="value"in Qn?Qn.value:Qn.textContent,h=o.length;for(e=0;e<l&&t[e]===o[e];e++);var x=l-e;for(r=1;r<=x&&t[l-r]===o[h-r];r++);return Ja=o.slice(e,1<r?1-r:void 0)}function Ia(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function $a(){return!0}function uf(){return!1}function At(e){function t(l,r,o,h,x){this._reactName=l,this._targetInst=o,this.type=r,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var z in e)e.hasOwnProperty(z)&&(l=e[z],this[z]=l?l(h):h[z]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?$a:uf,this.isPropagationStopped=uf,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=$a)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=$a)},persist:function(){},isPersistent:$a}),t}var bl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wa=At(bl),Yi=g({},bl,{view:0,detail:0}),Og=At(Yi),Ou,Du,Vi,Pa=g({},Yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lu,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!==Vi&&(Vi&&e.type==="mousemove"?(Ou=e.screenX-Vi.screenX,Du=e.screenY-Vi.screenY):Du=Ou=0,Vi=e),Ou)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),sf=At(Pa),Dg=g({},Pa,{dataTransfer:0}),Rg=At(Dg),Lg=g({},Yi,{relatedTarget:0}),Ru=At(Lg),Ug=g({},bl,{animationName:0,elapsedTime:0,pseudoElement:0}),Bg=At(Ug),Hg=g({},bl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qg=At(Hg),Yg=g({},bl,{data:0}),of=At(Yg),Vg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xg={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"},Gg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Gg[e])?!!t[e]:!1}function Lu(){return Qg}var Fg=g({},Yi,{key:function(e){if(e.key){var t=Vg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ia(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lu,charCode:function(e){return e.type==="keypress"?Ia(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ia(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Zg=At(Fg),Kg=g({},Pa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=At(Kg),Jg=g({},Yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lu}),Ig=At(Jg),$g=g({},bl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Wg=At($g),Pg=g({},Pa,{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}),ex=At(Pg),tx=g({},bl,{newState:0,oldState:0}),nx=At(tx),lx=[9,13,27,32],Uu=zn&&"CompositionEvent"in window,Xi=null;zn&&"documentMode"in document&&(Xi=document.documentMode);var ix=zn&&"TextEvent"in window&&!Xi,ff=zn&&(!Uu||Xi&&8<Xi&&11>=Xi),hf=" ",df=!1;function mf(e,t){switch(e){case"keyup":return lx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Il=!1;function ax(e,t){switch(e){case"compositionend":return pf(t);case"keypress":return t.which!==32?null:(df=!0,hf);case"textInput":return e=t.data,e===hf&&df?null:e;default:return null}}function rx(e,t){if(Il)return e==="compositionend"||!Uu&&mf(e,t)?(e=rf(),Ja=_u=Qn=null,Il=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ff&&t.locale!=="ko"?null:t.data;default:return null}}var ux={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 gf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ux[e.type]:t==="textarea"}function xf(e,t,l,r){Kl?Jl?Jl.push(r):Jl=[r]:Kl=r,t=Vr(t,"onChange"),0<t.length&&(l=new Wa("onChange","change",null,l,r),e.push({event:l,listeners:t}))}var Gi=null,Qi=null;function sx(e){Pd(e,0)}function er(e){var t=Bi(e);if($c(t))return e}function yf(e,t){if(e==="change")return t}var bf=!1;if(zn){var Bu;if(zn){var Hu="oninput"in document;if(!Hu){var vf=document.createElement("div");vf.setAttribute("oninput","return;"),Hu=typeof vf.oninput=="function"}Bu=Hu}else Bu=!1;bf=Bu&&(!document.documentMode||9<document.documentMode)}function Sf(){Gi&&(Gi.detachEvent("onpropertychange",zf),Qi=Gi=null)}function zf(e){if(e.propertyName==="value"&&er(Qi)){var t=[];xf(t,Qi,e,Au(e)),af(sx,t)}}function ox(e,t,l){e==="focusin"?(Sf(),Gi=t,Qi=l,Gi.attachEvent("onpropertychange",zf)):e==="focusout"&&Sf()}function cx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return er(Qi)}function fx(e,t){if(e==="click")return er(t)}function hx(e,t){if(e==="input"||e==="change")return er(t)}function dx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ht=typeof Object.is=="function"?Object.is:dx;function Fi(e,t){if(Ht(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),r=Object.keys(t);if(l.length!==r.length)return!1;for(r=0;r<l.length;r++){var o=l[r];if(!Vn.call(t,o)||!Ht(e[o],t[o]))return!1}return!0}function kf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wf(e,t){var l=kf(e);e=0;for(var r;l;){if(l.nodeType===3){if(r=e+l.textContent.length,e<=t&&r>=t)return{node:l,offset:t-e};e=r}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=kf(l)}}function Ef(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ef(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Za(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Za(e.document)}return t}function qu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var mx=zn&&"documentMode"in document&&11>=document.documentMode,$l=null,Yu=null,Zi=null,Vu=!1;function Cf(e,t,l){var r=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Vu||$l==null||$l!==Za(r)||(r=$l,"selectionStart"in r&&qu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Zi&&Fi(Zi,r)||(Zi=r,r=Vr(Yu,"onSelect"),0<r.length&&(t=new Wa("onSelect","select",null,t,l),e.push({event:t,listeners:r}),t.target=$l)))}function vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Wl={animationend:vl("Animation","AnimationEnd"),animationiteration:vl("Animation","AnimationIteration"),animationstart:vl("Animation","AnimationStart"),transitionrun:vl("Transition","TransitionRun"),transitionstart:vl("Transition","TransitionStart"),transitioncancel:vl("Transition","TransitionCancel"),transitionend:vl("Transition","TransitionEnd")},Xu={},Nf={};zn&&(Nf=document.createElement("div").style,"AnimationEvent"in window||(delete Wl.animationend.animation,delete Wl.animationiteration.animation,delete Wl.animationstart.animation),"TransitionEvent"in window||delete Wl.transitionend.transition);function Sl(e){if(Xu[e])return Xu[e];if(!Wl[e])return e;var t=Wl[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nf)return Xu[e]=t[l];return e}var Af=Sl("animationend"),jf=Sl("animationiteration"),Mf=Sl("animationstart"),px=Sl("transitionrun"),gx=Sl("transitionstart"),xx=Sl("transitioncancel"),_f=Sl("transitionend"),Of=new Map,Gu="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(" ");Gu.push("scrollEnd");function on(e,t){Of.set(e,t),yl(t,[e])}var tr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},It=[],Pl=0,Qu=0;function nr(){for(var e=Pl,t=Qu=Pl=0;t<e;){var l=It[t];It[t++]=null;var r=It[t];It[t++]=null;var o=It[t];It[t++]=null;var h=It[t];if(It[t++]=null,r!==null&&o!==null){var x=r.pending;x===null?o.next=o:(o.next=x.next,x.next=o),r.pending=o}h!==0&&Df(l,o,h)}}function lr(e,t,l,r){It[Pl++]=e,It[Pl++]=t,It[Pl++]=l,It[Pl++]=r,Qu|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Fu(e,t,l,r){return lr(e,t,l,r),ir(e)}function zl(e,t){return lr(e,null,null,t),ir(e)}function Df(e,t,l){e.lanes|=l;var r=e.alternate;r!==null&&(r.lanes|=l);for(var o=!1,h=e.return;h!==null;)h.childLanes|=l,r=h.alternate,r!==null&&(r.childLanes|=l),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(o=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,o&&t!==null&&(o=31-Ze(l),e=h.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=l|536870912),h):null}function ir(e){if(50<pa)throw pa=0,to=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ei={};function yx(e,t,l,r){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qt(e,t,l,r){return new yx(e,t,l,r)}function Zu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kn(e,t){var l=e.alternate;return l===null?(l=qt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Rf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ar(e,t,l,r,o,h){var x=0;if(r=e,typeof e=="function")Zu(e)&&(x=1);else if(typeof e=="string")x=ky(e,l,F.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=qt(31,l,t,o),e.elementType=he,e.lanes=h,e;case M:return kl(l.children,o,h,t);case B:x=8,o|=24;break;case A:return e=qt(12,l,t,o|2),e.elementType=A,e.lanes=h,e;case ie:return e=qt(13,l,t,o),e.elementType=ie,e.lanes=h,e;case D:return e=qt(19,l,t,o),e.elementType=D,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case H:x=10;break e;case q:x=9;break e;case te:x=11;break e;case I:x=14;break e;case se:x=16,r=null;break e}x=29,l=Error(u(130,e===null?"null":typeof e,"")),r=null}return t=qt(x,l,t,o),t.elementType=e,t.type=r,t.lanes=h,t}function kl(e,t,l,r){return e=qt(7,e,r,t),e.lanes=l,e}function Ku(e,t,l){return e=qt(6,e,null,t),e.lanes=l,e}function Lf(e){var t=qt(18,null,null,0);return t.stateNode=e,t}function Ju(e,t,l){return t=qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uf=new WeakMap;function $t(e,t){if(typeof e=="object"&&e!==null){var l=Uf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ql(t)},Uf.set(e,t),t)}return{value:e,source:t,stack:ql(t)}}var ti=[],ni=0,rr=null,Ki=0,Wt=[],Pt=0,Fn=null,dn=1,mn="";function wn(e,t){ti[ni++]=Ki,ti[ni++]=rr,rr=e,Ki=t}function Bf(e,t,l){Wt[Pt++]=dn,Wt[Pt++]=mn,Wt[Pt++]=Fn,Fn=e;var r=dn;e=mn;var o=32-Ze(r)-1;r&=~(1<<o),l+=1;var h=32-Ze(t)+o;if(30<h){var x=o-o%5;h=(r&(1<<x)-1).toString(32),r>>=x,o-=x,dn=1<<32-Ze(t)+o|l<<o|r,mn=h+e}else dn=1<<h|l<<o|r,mn=e}function Iu(e){e.return!==null&&(wn(e,1),Bf(e,1,0))}function $u(e){for(;e===rr;)rr=ti[--ni],ti[ni]=null,Ki=ti[--ni],ti[ni]=null;for(;e===Fn;)Fn=Wt[--Pt],Wt[Pt]=null,mn=Wt[--Pt],Wt[Pt]=null,dn=Wt[--Pt],Wt[Pt]=null}function Hf(e,t){Wt[Pt++]=dn,Wt[Pt++]=mn,Wt[Pt++]=Fn,dn=t.id,mn=t.overflow,Fn=e}var xt=null,We=null,_e=!1,Zn=null,en=!1,Wu=Error(u(519));function Kn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ji($t(t,e)),Wu}function qf(e){var t=e.stateNode,l=e.type,r=e.memoizedProps;switch(t[gt]=e,t[Nt]=r,l){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(l=0;l<xa.length;l++)Ne(xa[l],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),Wc(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),ef(t,r.value,r.defaultValue,r.children)}l=r.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||r.suppressHydrationWarning===!0||lm(t.textContent,l)?(r.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),r.onScroll!=null&&Ne("scroll",t),r.onScrollEnd!=null&&Ne("scrollend",t),r.onClick!=null&&(t.onclick=Sn),t=!0):t=!1,t||Kn(e,!0)}function Yf(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:en=!1;return;case 27:case 3:en=!0;return;default:xt=xt.return}}function li(e){if(e!==xt)return!1;if(!_e)return Yf(e),_e=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||xo(e.type,e.memoizedProps)),l=!l),l&&We&&Kn(e),Yf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=hm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));We=hm(e)}else t===27?(t=We,sl(e.type)?(e=zo,zo=null,We=e):We=t):We=xt?nn(e.stateNode.nextSibling):null;return!0}function wl(){We=xt=null,_e=!1}function Pu(){var e=Zn;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),Zn=null),e}function Ji(e){Zn===null?Zn=[e]:Zn.push(e)}var es=C(null),El=null,En=null;function Jn(e,t,l){k(es,t._currentValue),t._currentValue=l}function Tn(e){e._currentValue=es.current,X(es)}function ts(e,t,l){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===l)break;e=e.return}}function ns(e,t,l,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var h=o.dependencies;if(h!==null){var x=o.child;h=h.firstContext;e:for(;h!==null;){var z=h;h=o;for(var T=0;T<t.length;T++)if(z.context===t[T]){h.lanes|=l,z=h.alternate,z!==null&&(z.lanes|=l),ts(h.return,l,e),r||(x=null);break e}h=z.next}}else if(o.tag===18){if(x=o.return,x===null)throw Error(u(341));x.lanes|=l,h=x.alternate,h!==null&&(h.lanes|=l),ts(x,l,e),x=null}else x=o.child;if(x!==null)x.return=o;else for(x=o;x!==null;){if(x===e){x=null;break}if(o=x.sibling,o!==null){o.return=x.return,x=o;break}x=x.return}o=x}}function ii(e,t,l,r){e=null;for(var o=t,h=!1;o!==null;){if(!h){if((o.flags&524288)!==0)h=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var x=o.alternate;if(x===null)throw Error(u(387));if(x=x.memoizedProps,x!==null){var z=o.type;Ht(o.pendingProps.value,x.value)||(e!==null?e.push(z):e=[z])}}else if(o===Se.current){if(x=o.alternate,x===null)throw Error(u(387));x.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(za):e=[za])}o=o.return}e!==null&&ns(t,e,l,r),t.flags|=262144}function ur(e){for(e=e.firstContext;e!==null;){if(!Ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){El=e,En=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function yt(e){return Vf(El,e)}function sr(e,t){return El===null&&Tl(e),Vf(e,t)}function Vf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},En===null){if(e===null)throw Error(u(308));En=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else En=En.next=t;return l}var bx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},vx=n.unstable_scheduleCallback,Sx=n.unstable_NormalPriority,rt={$$typeof:H,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ls(){return{controller:new bx,data:new Map,refCount:0}}function Ii(e){e.refCount--,e.refCount===0&&vx(Sx,function(){e.controller.abort()})}var $i=null,is=0,ai=0,ri=null;function zx(e,t){if($i===null){var l=$i=[];is=0,ai=uo(),ri={status:"pending",value:void 0,then:function(r){l.push(r)}}}return is++,t.then(Xf,Xf),t}function Xf(){if(--is===0&&$i!==null){ri!==null&&(ri.status="fulfilled");var e=$i;$i=null,ai=0,ri=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kx(e,t){var l=[],r={status:"pending",value:null,reason:null,then:function(o){l.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<l.length;o++)(0,l[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<l.length;o++)(0,l[o])(void 0)}),r}var Gf=R.S;R.S=function(e,t){Cd=De(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zx(e,t),Gf!==null&&Gf(e,t)};var Cl=C(null);function as(){var e=Cl.current;return e!==null?e:Ke.pooledCache}function or(e,t){t===null?k(Cl,Cl.current):k(Cl,t.pool)}function Qf(){var e=as();return e===null?null:{parent:rt._currentValue,pool:e}}var ui=Error(u(460)),rs=Error(u(474)),cr=Error(u(542)),fr={then:function(){}};function Ff(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Sn,Sn),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e;default:if(typeof t.status=="string")t.then(Sn,Sn);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e}throw Al=t,ui}}function Nl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Al=l,ui):l}}var Al=null;function Kf(){if(Al===null)throw Error(u(459));var e=Al;return Al=null,e}function Jf(e){if(e===ui||e===cr)throw Error(u(483))}var si=null,Wi=0;function hr(e){var t=Wi;return Wi+=1,si===null&&(si=[]),Zf(si,e,t)}function Pi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function dr(e,t){throw t.$$typeof===S?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function If(e){function t(j,N){if(e){var _=j.deletions;_===null?(j.deletions=[N],j.flags|=16):_.push(N)}}function l(j,N){if(!e)return null;for(;N!==null;)t(j,N),N=N.sibling;return null}function r(j){for(var N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function o(j,N){return j=kn(j,N),j.index=0,j.sibling=null,j}function h(j,N,_){return j.index=_,e?(_=j.alternate,_!==null?(_=_.index,_<N?(j.flags|=67108866,N):_):(j.flags|=67108866,N)):(j.flags|=1048576,N)}function x(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function z(j,N,_,Q){return N===null||N.tag!==6?(N=Ku(_,j.mode,Q),N.return=j,N):(N=o(N,_),N.return=j,N)}function T(j,N,_,Q){var me=_.type;return me===M?G(j,N,_.props.children,Q,_.key):N!==null&&(N.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===se&&Nl(me)===N.type)?(N=o(N,_.props),Pi(N,_),N.return=j,N):(N=ar(_.type,_.key,_.props,null,j.mode,Q),Pi(N,_),N.return=j,N)}function O(j,N,_,Q){return N===null||N.tag!==4||N.stateNode.containerInfo!==_.containerInfo||N.stateNode.implementation!==_.implementation?(N=Ju(_,j.mode,Q),N.return=j,N):(N=o(N,_.children||[]),N.return=j,N)}function G(j,N,_,Q,me){return N===null||N.tag!==7?(N=kl(_,j.mode,Q,me),N.return=j,N):(N=o(N,_),N.return=j,N)}function Z(j,N,_){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Ku(""+N,j.mode,_),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case v:return _=ar(N.type,N.key,N.props,null,j.mode,_),Pi(_,N),_.return=j,_;case w:return N=Ju(N,j.mode,_),N.return=j,N;case se:return N=Nl(N),Z(j,N,_)}if($(N)||W(N))return N=kl(N,j.mode,_,null),N.return=j,N;if(typeof N.then=="function")return Z(j,hr(N),_);if(N.$$typeof===H)return Z(j,sr(j,N),_);dr(j,N)}return null}function L(j,N,_,Q){var me=N!==null?N.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return me!==null?null:z(j,N,""+_,Q);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case v:return _.key===me?T(j,N,_,Q):null;case w:return _.key===me?O(j,N,_,Q):null;case se:return _=Nl(_),L(j,N,_,Q)}if($(_)||W(_))return me!==null?null:G(j,N,_,Q,null);if(typeof _.then=="function")return L(j,N,hr(_),Q);if(_.$$typeof===H)return L(j,N,sr(j,_),Q);dr(j,_)}return null}function Y(j,N,_,Q,me){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return j=j.get(_)||null,z(N,j,""+Q,me);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case v:return j=j.get(Q.key===null?_:Q.key)||null,T(N,j,Q,me);case w:return j=j.get(Q.key===null?_:Q.key)||null,O(N,j,Q,me);case se:return Q=Nl(Q),Y(j,N,_,Q,me)}if($(Q)||W(Q))return j=j.get(_)||null,G(N,j,Q,me,null);if(typeof Q.then=="function")return Y(j,N,_,hr(Q),me);if(Q.$$typeof===H)return Y(j,N,_,sr(N,Q),me);dr(N,Q)}return null}function ce(j,N,_,Q){for(var me=null,Be=null,fe=N,we=N=0,Me=null;fe!==null&&we<_.length;we++){fe.index>we?(Me=fe,fe=null):Me=fe.sibling;var He=L(j,fe,_[we],Q);if(He===null){fe===null&&(fe=Me);break}e&&fe&&He.alternate===null&&t(j,fe),N=h(He,N,we),Be===null?me=He:Be.sibling=He,Be=He,fe=Me}if(we===_.length)return l(j,fe),_e&&wn(j,we),me;if(fe===null){for(;we<_.length;we++)fe=Z(j,_[we],Q),fe!==null&&(N=h(fe,N,we),Be===null?me=fe:Be.sibling=fe,Be=fe);return _e&&wn(j,we),me}for(fe=r(fe);we<_.length;we++)Me=Y(fe,j,we,_[we],Q),Me!==null&&(e&&Me.alternate!==null&&fe.delete(Me.key===null?we:Me.key),N=h(Me,N,we),Be===null?me=Me:Be.sibling=Me,Be=Me);return e&&fe.forEach(function(dl){return t(j,dl)}),_e&&wn(j,we),me}function xe(j,N,_,Q){if(_==null)throw Error(u(151));for(var me=null,Be=null,fe=N,we=N=0,Me=null,He=_.next();fe!==null&&!He.done;we++,He=_.next()){fe.index>we?(Me=fe,fe=null):Me=fe.sibling;var dl=L(j,fe,He.value,Q);if(dl===null){fe===null&&(fe=Me);break}e&&fe&&dl.alternate===null&&t(j,fe),N=h(dl,N,we),Be===null?me=dl:Be.sibling=dl,Be=dl,fe=Me}if(He.done)return l(j,fe),_e&&wn(j,we),me;if(fe===null){for(;!He.done;we++,He=_.next())He=Z(j,He.value,Q),He!==null&&(N=h(He,N,we),Be===null?me=He:Be.sibling=He,Be=He);return _e&&wn(j,we),me}for(fe=r(fe);!He.done;we++,He=_.next())He=Y(fe,j,we,He.value,Q),He!==null&&(e&&He.alternate!==null&&fe.delete(He.key===null?we:He.key),N=h(He,N,we),Be===null?me=He:Be.sibling=He,Be=He);return e&&fe.forEach(function(Dy){return t(j,Dy)}),_e&&wn(j,we),me}function Fe(j,N,_,Q){if(typeof _=="object"&&_!==null&&_.type===M&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case v:e:{for(var me=_.key;N!==null;){if(N.key===me){if(me=_.type,me===M){if(N.tag===7){l(j,N.sibling),Q=o(N,_.props.children),Q.return=j,j=Q;break e}}else if(N.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===se&&Nl(me)===N.type){l(j,N.sibling),Q=o(N,_.props),Pi(Q,_),Q.return=j,j=Q;break e}l(j,N);break}else t(j,N);N=N.sibling}_.type===M?(Q=kl(_.props.children,j.mode,Q,_.key),Q.return=j,j=Q):(Q=ar(_.type,_.key,_.props,null,j.mode,Q),Pi(Q,_),Q.return=j,j=Q)}return x(j);case w:e:{for(me=_.key;N!==null;){if(N.key===me)if(N.tag===4&&N.stateNode.containerInfo===_.containerInfo&&N.stateNode.implementation===_.implementation){l(j,N.sibling),Q=o(N,_.children||[]),Q.return=j,j=Q;break e}else{l(j,N);break}else t(j,N);N=N.sibling}Q=Ju(_,j.mode,Q),Q.return=j,j=Q}return x(j);case se:return _=Nl(_),Fe(j,N,_,Q)}if($(_))return ce(j,N,_,Q);if(W(_)){if(me=W(_),typeof me!="function")throw Error(u(150));return _=me.call(_),xe(j,N,_,Q)}if(typeof _.then=="function")return Fe(j,N,hr(_),Q);if(_.$$typeof===H)return Fe(j,N,sr(j,_),Q);dr(j,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,N!==null&&N.tag===6?(l(j,N.sibling),Q=o(N,_),Q.return=j,j=Q):(l(j,N),Q=Ku(_,j.mode,Q),Q.return=j,j=Q),x(j)):l(j,N)}return function(j,N,_,Q){try{Wi=0;var me=Fe(j,N,_,Q);return si=null,me}catch(fe){if(fe===ui||fe===cr)throw fe;var Be=qt(29,fe,null,j.mode);return Be.lanes=Q,Be.return=j,Be}finally{}}}var jl=If(!0),$f=If(!1),In=!1;function us(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ss(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function $n(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wn(e,t,l){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=ir(e),Df(e,null,l),t}return lr(e,r,t,l),ir(e)}function ea(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Yc(e,l)}}function os(e,t){var l=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,l===r)){var o=null,h=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};h===null?o=h=x:h=h.next=x,l=l.next}while(l!==null);h===null?o=h=t:h=h.next=t}else o=h=t;l={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:h,shared:r.shared,callbacks:r.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var cs=!1;function ta(){if(cs){var e=ri;if(e!==null)throw e}}function na(e,t,l,r){cs=!1;var o=e.updateQueue;In=!1;var h=o.firstBaseUpdate,x=o.lastBaseUpdate,z=o.shared.pending;if(z!==null){o.shared.pending=null;var T=z,O=T.next;T.next=null,x===null?h=O:x.next=O,x=T;var G=e.alternate;G!==null&&(G=G.updateQueue,z=G.lastBaseUpdate,z!==x&&(z===null?G.firstBaseUpdate=O:z.next=O,G.lastBaseUpdate=T))}if(h!==null){var Z=o.baseState;x=0,G=O=T=null,z=h;do{var L=z.lane&-536870913,Y=L!==z.lane;if(Y?(je&L)===L:(r&L)===L){L!==0&&L===ai&&(cs=!0),G!==null&&(G=G.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var ce=e,xe=z;L=t;var Fe=l;switch(xe.tag){case 1:if(ce=xe.payload,typeof ce=="function"){Z=ce.call(Fe,Z,L);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=xe.payload,L=typeof ce=="function"?ce.call(Fe,Z,L):ce,L==null)break e;Z=g({},Z,L);break e;case 2:In=!0}}L=z.callback,L!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=o.callbacks,Y===null?o.callbacks=[L]:Y.push(L))}else Y={lane:L,tag:z.tag,payload:z.payload,callback:z.callback,next:null},G===null?(O=G=Y,T=Z):G=G.next=Y,x|=L;if(z=z.next,z===null){if(z=o.shared.pending,z===null)break;Y=z,z=Y.next,Y.next=null,o.lastBaseUpdate=Y,o.shared.pending=null}}while(!0);G===null&&(T=Z),o.baseState=T,o.firstBaseUpdate=O,o.lastBaseUpdate=G,h===null&&(o.shared.lanes=0),ll|=x,e.lanes=x,e.memoizedState=Z}}function Wf(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Pf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Wf(l[e],t)}var oi=C(null),mr=C(0);function eh(e,t){e=Rn,k(mr,e),k(oi,t),Rn=e|t.baseLanes}function fs(){k(mr,Rn),k(oi,oi.current)}function hs(){Rn=mr.current,X(oi),X(mr)}var Yt=C(null),tn=null;function Pn(e){var t=e.alternate;k(lt,lt.current&1),k(Yt,e),tn===null&&(t===null||oi.current!==null||t.memoizedState!==null)&&(tn=e)}function ds(e){k(lt,lt.current),k(Yt,e),tn===null&&(tn=e)}function th(e){e.tag===22?(k(lt,lt.current),k(Yt,e),tn===null&&(tn=e)):el()}function el(){k(lt,lt.current),k(Yt,Yt.current)}function Vt(e){X(Yt),tn===e&&(tn=null),X(lt)}var lt=C(0);function pr(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||vo(l)||So(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cn=0,ke=null,Ge=null,ut=null,gr=!1,ci=!1,Ml=!1,xr=0,la=0,fi=null,wx=0;function tt(){throw Error(u(321))}function ms(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ht(e[l],t[l]))return!1;return!0}function ps(e,t,l,r,o,h){return Cn=h,ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Bh:js,Ml=!1,h=l(r,o),Ml=!1,ci&&(h=lh(t,l,r,o)),nh(e),h}function nh(e){R.H=ra;var t=Ge!==null&&Ge.next!==null;if(Cn=0,ut=Ge=ke=null,gr=!1,la=0,fi=null,t)throw Error(u(300));e===null||st||(e=e.dependencies,e!==null&&ur(e)&&(st=!0))}function lh(e,t,l,r){ke=e;var o=0;do{if(ci&&(fi=null),la=0,ci=!1,25<=o)throw Error(u(301));if(o+=1,ut=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)}R.H=Hh,h=t(l,r)}while(ci);return h}function Ex(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?ia(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(ke.flags|=1024),t}function gs(){var e=xr!==0;return xr=0,e}function xs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function ys(e){if(gr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gr=!1}Cn=0,ut=Ge=ke=null,ci=!1,la=xr=0,fi=null}function Et(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ut===null?ke.memoizedState=ut=e:ut=ut.next=e,ut}function it(){if(Ge===null){var e=ke.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=ut===null?ke.memoizedState:ut.next;if(t!==null)ut=t,Ge=e;else{if(e===null)throw ke.alternate===null?Error(u(467)):Error(u(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},ut===null?ke.memoizedState=ut=e:ut=ut.next=e}return ut}function yr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ia(e){var t=la;return la+=1,fi===null&&(fi=[]),e=Zf(fi,e,t),t=ke,(ut===null?t.memoizedState:ut.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Bh:js),e}function br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ia(e);if(e.$$typeof===H)return yt(e)}throw Error(u(438,String(e)))}function bs(e){var t=null,l=ke.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var r=ke.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=yr(),ke.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),r=0;r<e;r++)l[r]=U;return t.index++,l}function Nn(e,t){return typeof t=="function"?t(e):t}function vr(e){var t=it();return vs(t,Ge,e)}function vs(e,t,l){var r=e.queue;if(r===null)throw Error(u(311));r.lastRenderedReducer=l;var o=e.baseQueue,h=r.pending;if(h!==null){if(o!==null){var x=o.next;o.next=h.next,h.next=x}t.baseQueue=o=h,r.pending=null}if(h=e.baseState,o===null)e.memoizedState=h;else{t=o.next;var z=x=null,T=null,O=t,G=!1;do{var Z=O.lane&-536870913;if(Z!==O.lane?(je&Z)===Z:(Cn&Z)===Z){var L=O.revertLane;if(L===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),Z===ai&&(G=!0);else if((Cn&L)===L){O=O.next,L===ai&&(G=!0);continue}else Z={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(z=T=Z,x=h):T=T.next=Z,ke.lanes|=L,ll|=L;Z=O.action,Ml&&l(h,Z),h=O.hasEagerState?O.eagerState:l(h,Z)}else L={lane:Z,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},T===null?(z=T=L,x=h):T=T.next=L,ke.lanes|=Z,ll|=Z;O=O.next}while(O!==null&&O!==t);if(T===null?x=h:T.next=z,!Ht(h,e.memoizedState)&&(st=!0,G&&(l=ri,l!==null)))throw l;e.memoizedState=h,e.baseState=x,e.baseQueue=T,r.lastRenderedState=h}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ss(e){var t=it(),l=t.queue;if(l===null)throw Error(u(311));l.lastRenderedReducer=e;var r=l.dispatch,o=l.pending,h=t.memoizedState;if(o!==null){l.pending=null;var x=o=o.next;do h=e(h,x.action),x=x.next;while(x!==o);Ht(h,t.memoizedState)||(st=!0),t.memoizedState=h,t.baseQueue===null&&(t.baseState=h),l.lastRenderedState=h}return[h,r]}function ih(e,t,l){var r=ke,o=it(),h=_e;if(h){if(l===void 0)throw Error(u(407));l=l()}else l=t();var x=!Ht((Ge||o).memoizedState,l);if(x&&(o.memoizedState=l,st=!0),o=o.queue,ws(uh.bind(null,r,o,e),[e]),o.getSnapshot!==t||x||ut!==null&&ut.memoizedState.tag&1){if(r.flags|=2048,hi(9,{destroy:void 0},rh.bind(null,r,o,l,t),null),Ke===null)throw Error(u(349));h||(Cn&127)!==0||ah(r,t,l)}return l}function ah(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ke.updateQueue,t===null?(t=yr(),ke.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rh(e,t,l,r){t.value=l,t.getSnapshot=r,sh(t)&&oh(e)}function uh(e,t,l){return l(function(){sh(t)&&oh(e)})}function sh(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ht(e,l)}catch{return!0}}function oh(e){var t=zl(e,2);t!==null&&Dt(t,e,2)}function zs(e){var t=Et();if(typeof e=="function"){var l=e;if(e=l(),Ml){Ct(!0);try{l()}finally{Ct(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:e},t}function ch(e,t,l,r){return e.baseState=l,vs(e,Ge,typeof r=="function"?r:Nn)}function Tx(e,t,l,r,o){if(kr(e))throw Error(u(485));if(e=t.action,e!==null){var h={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};R.T!==null?l(!0):h.isTransition=!1,r(h),l=t.pending,l===null?(h.next=t.pending=h,fh(t,h)):(h.next=l.next,t.pending=l.next=h)}}function fh(e,t){var l=t.action,r=t.payload,o=e.state;if(t.isTransition){var h=R.T,x={};R.T=x;try{var z=l(o,r),T=R.S;T!==null&&T(x,z),hh(e,t,z)}catch(O){ks(e,t,O)}finally{h!==null&&x.types!==null&&(h.types=x.types),R.T=h}}else try{h=l(o,r),hh(e,t,h)}catch(O){ks(e,t,O)}}function hh(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(r){dh(e,t,r)},function(r){return ks(e,t,r)}):dh(e,t,l)}function dh(e,t,l){t.status="fulfilled",t.value=l,mh(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,fh(e,l)))}function ks(e,t,l){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=l,mh(t),t=t.next;while(t!==r)}e.action=null}function mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ph(e,t){return t}function gh(e,t){if(_e){var l=Ke.formState;if(l!==null){e:{var r=ke;if(_e){if(We){t:{for(var o=We,h=en;o.nodeType!==8;){if(!h){o=null;break t}if(o=nn(o.nextSibling),o===null){o=null;break t}}h=o.data,o=h==="F!"||h==="F"?o:null}if(o){We=nn(o.nextSibling),r=o.data==="F!";break e}}Kn(r)}r=!1}r&&(t=l[0])}}return l=Et(),l.memoizedState=l.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ph,lastRenderedState:t},l.queue=r,l=Rh.bind(null,ke,r),r.dispatch=l,r=zs(!1),h=As.bind(null,ke,!1,r.queue),r=Et(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,l=Tx.bind(null,ke,o,h,l),o.dispatch=l,r.memoizedState=e,[t,l,!1]}function xh(e){var t=it();return yh(t,Ge,e)}function yh(e,t,l){if(t=vs(e,t,ph)[0],e=vr(Nn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=ia(t)}catch(x){throw x===ui?cr:x}else r=t;t=it();var o=t.queue,h=o.dispatch;return l!==t.memoizedState&&(ke.flags|=2048,hi(9,{destroy:void 0},Cx.bind(null,o,l),null)),[r,h,e]}function Cx(e,t){e.action=t}function bh(e){var t=it(),l=Ge;if(l!==null)return yh(t,l,e);it(),t=t.memoizedState,l=it();var r=l.queue.dispatch;return l.memoizedState=e,[t,r,!1]}function hi(e,t,l,r){return e={tag:e,create:l,deps:r,inst:t,next:null},t=ke.updateQueue,t===null&&(t=yr(),ke.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(r=l.next,l.next=e,e.next=r,t.lastEffect=e),e}function vh(){return it().memoizedState}function Sr(e,t,l,r){var o=Et();ke.flags|=e,o.memoizedState=hi(1|t,{destroy:void 0},l,r===void 0?null:r)}function zr(e,t,l,r){var o=it();r=r===void 0?null:r;var h=o.memoizedState.inst;Ge!==null&&r!==null&&ms(r,Ge.memoizedState.deps)?o.memoizedState=hi(t,h,l,r):(ke.flags|=e,o.memoizedState=hi(1|t,h,l,r))}function Sh(e,t){Sr(8390656,8,e,t)}function ws(e,t){zr(2048,8,e,t)}function Nx(e){ke.flags|=4;var t=ke.updateQueue;if(t===null)t=yr(),ke.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function zh(e){var t=it().memoizedState;return Nx({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function kh(e,t){return zr(4,2,e,t)}function wh(e,t){return zr(4,4,e,t)}function Eh(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Th(e,t,l){l=l!=null?l.concat([e]):null,zr(4,4,Eh.bind(null,t,e),l)}function Es(){}function Ch(e,t){var l=it();t=t===void 0?null:t;var r=l.memoizedState;return t!==null&&ms(t,r[1])?r[0]:(l.memoizedState=[e,t],e)}function Nh(e,t){var l=it();t=t===void 0?null:t;var r=l.memoizedState;if(t!==null&&ms(t,r[1]))return r[0];if(r=e(),Ml){Ct(!0);try{e()}finally{Ct(!1)}}return l.memoizedState=[r,t],r}function Ts(e,t,l){return l===void 0||(Cn&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ad(),ke.lanes|=e,ll|=e,l)}function Ah(e,t,l,r){return Ht(l,t)?l:oi.current!==null?(e=Ts(e,l,r),Ht(e,t)||(st=!0),e):(Cn&42)===0||(Cn&1073741824)!==0&&(je&261930)===0?(st=!0,e.memoizedState=l):(e=Ad(),ke.lanes|=e,ll|=e,t)}function jh(e,t,l,r,o){var h=K.p;K.p=h!==0&&8>h?h:8;var x=R.T,z={};R.T=z,As(e,!1,t,l);try{var T=o(),O=R.S;if(O!==null&&O(z,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var G=kx(T,r);aa(e,t,G,Qt(e))}else aa(e,t,r,Qt(e))}catch(Z){aa(e,t,{then:function(){},status:"rejected",reason:Z},Qt())}finally{K.p=h,x!==null&&z.types!==null&&(x.types=z.types),R.T=x}}function Ax(){}function Cs(e,t,l,r){if(e.tag!==5)throw Error(u(476));var o=Mh(e).queue;jh(e,o,t,oe,l===null?Ax:function(){return _h(e),l(r)})}function Mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:oe,baseState:oe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:oe},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _h(e){var t=Mh(e);t.next===null&&(t=e.alternate.memoizedState),aa(e,t.next.queue,{},Qt())}function Ns(){return yt(za)}function Oh(){return it().memoizedState}function Dh(){return it().memoizedState}function jx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Qt();e=$n(l);var r=Wn(t,e,l);r!==null&&(Dt(r,t,l),ea(r,t,l)),t={cache:ls()},e.payload=t;return}t=t.return}}function Mx(e,t,l){var r=Qt();l={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},kr(e)?Lh(t,l):(l=Fu(e,t,l,r),l!==null&&(Dt(l,e,r),Uh(l,t,r)))}function Rh(e,t,l){var r=Qt();aa(e,t,l,r)}function aa(e,t,l,r){var o={lane:r,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(kr(e))Lh(t,o);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=t.lastRenderedReducer,h!==null))try{var x=t.lastRenderedState,z=h(x,l);if(o.hasEagerState=!0,o.eagerState=z,Ht(z,x))return lr(e,t,o,0),Ke===null&&nr(),!1}catch{}finally{}if(l=Fu(e,t,o,r),l!==null)return Dt(l,e,r),Uh(l,t,r),!0}return!1}function As(e,t,l,r){if(r={lane:2,revertLane:uo(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},kr(e)){if(t)throw Error(u(479))}else t=Fu(e,l,r,2),t!==null&&Dt(t,e,2)}function kr(e){var t=e.alternate;return e===ke||t!==null&&t===ke}function Lh(e,t){ci=gr=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Uh(e,t,l){if((l&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,l|=r,t.lanes=l,Yc(e,l)}}var ra={readContext:yt,use:br,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};ra.useEffectEvent=tt;var Bh={readContext:yt,use:br,useCallback:function(e,t){return Et().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Sh,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Sr(4194308,4,Eh.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Sr(4194308,4,e,t)},useInsertionEffect:function(e,t){Sr(4,2,e,t)},useMemo:function(e,t){var l=Et();t=t===void 0?null:t;var r=e();if(Ml){Ct(!0);try{e()}finally{Ct(!1)}}return l.memoizedState=[r,t],r},useReducer:function(e,t,l){var r=Et();if(l!==void 0){var o=l(t);if(Ml){Ct(!0);try{l(t)}finally{Ct(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=Mx.bind(null,ke,e),[r.memoizedState,e]},useRef:function(e){var t=Et();return e={current:e},t.memoizedState=e},useState:function(e){e=zs(e);var t=e.queue,l=Rh.bind(null,ke,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Es,useDeferredValue:function(e,t){var l=Et();return Ts(l,e,t)},useTransition:function(){var e=zs(!1);return e=jh.bind(null,ke,e.queue,!0,!1),Et().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var r=ke,o=Et();if(_e){if(l===void 0)throw Error(u(407));l=l()}else{if(l=t(),Ke===null)throw Error(u(349));(je&127)!==0||ah(r,t,l)}o.memoizedState=l;var h={value:l,getSnapshot:t};return o.queue=h,Sh(uh.bind(null,r,h,e),[e]),r.flags|=2048,hi(9,{destroy:void 0},rh.bind(null,r,h,l,t),null),l},useId:function(){var e=Et(),t=Ke.identifierPrefix;if(_e){var l=mn,r=dn;l=(r&~(1<<32-Ze(r)-1)).toString(32)+l,t="_"+t+"R_"+l,l=xr++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=wx++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Ns,useFormState:gh,useActionState:gh,useOptimistic:function(e){var t=Et();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=As.bind(null,ke,!0,l),l.dispatch=t,[e,t]},useMemoCache:bs,useCacheRefresh:function(){return Et().memoizedState=jx.bind(null,ke)},useEffectEvent:function(e){var t=Et(),l={impl:e};return t.memoizedState=l,function(){if((qe&2)!==0)throw Error(u(440));return l.impl.apply(void 0,arguments)}}},js={readContext:yt,use:br,useCallback:Ch,useContext:yt,useEffect:ws,useImperativeHandle:Th,useInsertionEffect:kh,useLayoutEffect:wh,useMemo:Nh,useReducer:vr,useRef:vh,useState:function(){return vr(Nn)},useDebugValue:Es,useDeferredValue:function(e,t){var l=it();return Ah(l,Ge.memoizedState,e,t)},useTransition:function(){var e=vr(Nn)[0],t=it().memoizedState;return[typeof e=="boolean"?e:ia(e),t]},useSyncExternalStore:ih,useId:Oh,useHostTransitionStatus:Ns,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var l=it();return ch(l,Ge,e,t)},useMemoCache:bs,useCacheRefresh:Dh};js.useEffectEvent=zh;var Hh={readContext:yt,use:br,useCallback:Ch,useContext:yt,useEffect:ws,useImperativeHandle:Th,useInsertionEffect:kh,useLayoutEffect:wh,useMemo:Nh,useReducer:Ss,useRef:vh,useState:function(){return Ss(Nn)},useDebugValue:Es,useDeferredValue:function(e,t){var l=it();return Ge===null?Ts(l,e,t):Ah(l,Ge.memoizedState,e,t)},useTransition:function(){var e=Ss(Nn)[0],t=it().memoizedState;return[typeof e=="boolean"?e:ia(e),t]},useSyncExternalStore:ih,useId:Oh,useHostTransitionStatus:Ns,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var l=it();return Ge!==null?ch(l,Ge,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:bs,useCacheRefresh:Dh};Hh.useEffectEvent=zh;function Ms(e,t,l,r){t=e.memoizedState,l=l(r,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var _s={enqueueSetState:function(e,t,l){e=e._reactInternals;var r=Qt(),o=$n(r);o.payload=t,l!=null&&(o.callback=l),t=Wn(e,o,r),t!==null&&(Dt(t,e,r),ea(t,e,r))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var r=Qt(),o=$n(r);o.tag=1,o.payload=t,l!=null&&(o.callback=l),t=Wn(e,o,r),t!==null&&(Dt(t,e,r),ea(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Qt(),r=$n(l);r.tag=2,t!=null&&(r.callback=t),t=Wn(e,r,l),t!==null&&(Dt(t,e,l),ea(t,e,l))}};function qh(e,t,l,r,o,h,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,h,x):t.prototype&&t.prototype.isPureReactComponent?!Fi(l,r)||!Fi(o,h):!0}function Yh(e,t,l,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,r),t.state!==e&&_s.enqueueReplaceState(t,t.state,null)}function _l(e,t){var l=t;if("ref"in t){l={};for(var r in t)r!=="ref"&&(l[r]=t[r])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var o in e)l[o]===void 0&&(l[o]=e[o])}return l}function Vh(e){tr(e)}function Xh(e){console.error(e)}function Gh(e){tr(e)}function wr(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Qh(e,t,l){try{var r=e.onCaughtError;r(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Os(e,t,l){return l=$n(l),l.tag=3,l.payload={element:null},l.callback=function(){wr(e,t)},l}function Fh(e){return e=$n(e),e.tag=3,e}function Zh(e,t,l,r){var o=l.type.getDerivedStateFromError;if(typeof o=="function"){var h=r.value;e.payload=function(){return o(h)},e.callback=function(){Qh(t,l,r)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Qh(t,l,r),typeof o!="function"&&(il===null?il=new Set([this]):il.add(this));var z=r.stack;this.componentDidCatch(r.value,{componentStack:z!==null?z:""})})}function _x(e,t,l,r,o){if(l.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=l.alternate,t!==null&&ii(t,l,o,!0),l=Yt.current,l!==null){switch(l.tag){case 31:case 13:return tn===null?Lr():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=o,r===fr?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([r]):t.add(r),io(e,r,o)),!1;case 22:return l.flags|=65536,r===fr?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([r]):l.add(r)),io(e,r,o)),!1}throw Error(u(435,l.tag))}return io(e,r,o),Lr(),!1}if(_e)return t=Yt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Wu&&(e=Error(u(422),{cause:r}),Ji($t(e,l)))):(r!==Wu&&(t=Error(u(423),{cause:r}),Ji($t(t,l))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=$t(r,l),o=Os(e.stateNode,r,o),os(e,o),nt!==4&&(nt=2)),!1;var h=Error(u(520),{cause:r});if(h=$t(h,l),ma===null?ma=[h]:ma.push(h),nt!==4&&(nt=2),t===null)return!0;r=$t(r,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=o&-o,l.lanes|=e,e=Os(l.stateNode,r,e),os(l,e),!1;case 1:if(t=l.type,h=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(il===null||!il.has(h))))return l.flags|=65536,o&=-o,l.lanes|=o,o=Fh(o),Zh(o,e,l,r),os(l,o),!1}l=l.return}while(l!==null);return!1}var Ds=Error(u(461)),st=!1;function bt(e,t,l,r){t.child=e===null?$f(t,null,l,r):jl(t,e.child,l,r)}function Kh(e,t,l,r,o){l=l.render;var h=t.ref;if("ref"in r){var x={};for(var z in r)z!=="ref"&&(x[z]=r[z])}else x=r;return Tl(t),r=ps(e,t,l,x,h,o),z=gs(),e!==null&&!st?(xs(e,t,o),An(e,t,o)):(_e&&z&&Iu(t),t.flags|=1,bt(e,t,r,o),t.child)}function Jh(e,t,l,r,o){if(e===null){var h=l.type;return typeof h=="function"&&!Zu(h)&&h.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=h,Ih(e,t,h,r,o)):(e=ar(l.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(h=e.child,!Vs(e,o)){var x=h.memoizedProps;if(l=l.compare,l=l!==null?l:Fi,l(x,r)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=kn(h,r),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,l,r,o){if(e!==null){var h=e.memoizedProps;if(Fi(h,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=h,Vs(e,o))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,An(e,t,o)}return Rs(e,t,l,r,o)}function $h(e,t,l,r){var o=r.children,h=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(h=h!==null?h.baseLanes|l:l,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~h}else r=0,t.child=null;return Wh(e,t,h,l,r)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&or(t,h!==null?h.cachePool:null),h!==null?eh(t,h):fs(),th(t);else return r=t.lanes=536870912,Wh(e,t,h!==null?h.baseLanes|l:l,l,r)}else h!==null?(or(t,h.cachePool),eh(t,h),el(),t.memoizedState=null):(e!==null&&or(t,null),fs(),el());return bt(e,t,o,l),t.child}function ua(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wh(e,t,l,r,o){var h=as();return h=h===null?null:{parent:rt._currentValue,pool:h},t.memoizedState={baseLanes:l,cachePool:h},e!==null&&or(t,null),fs(),th(t),e!==null&&ii(e,t,r,!0),t.childLanes=o,null}function Er(e,t){return t=Cr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,l){return jl(t,e.child,null,l),e=Er(t,t.pendingProps),e.flags|=2,Vt(t),t.memoizedState=null,e}function Ox(e,t,l){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(r.mode==="hidden")return e=Er(t,r),t.lanes=536870912,ua(null,e);if(ds(t),(e=We)?(e=fm(e,en),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:dn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},l=Lf(e),l.return=t,t.child=l,xt=t,We=null)):e=null,e===null)throw Kn(t);return t.lanes=536870912,null}return Er(t,r)}var h=e.memoizedState;if(h!==null){var x=h.dehydrated;if(ds(t),o)if(t.flags&256)t.flags&=-257,t=Ph(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(st||ii(e,t,l,!1),o=(l&e.childLanes)!==0,st||o){if(r=Ke,r!==null&&(x=Vc(r,l),x!==0&&x!==h.retryLane))throw h.retryLane=x,zl(e,x),Dt(r,e,x),Ds;Lr(),t=Ph(e,t,l)}else e=h.treeContext,We=nn(x.nextSibling),xt=t,_e=!0,Zn=null,en=!1,e!==null&&Hf(t,e),t=Er(t,r),t.flags|=4096;return t}return e=kn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tr(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(u(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Rs(e,t,l,r,o){return Tl(t),l=ps(e,t,l,r,void 0,o),r=gs(),e!==null&&!st?(xs(e,t,o),An(e,t,o)):(_e&&r&&Iu(t),t.flags|=1,bt(e,t,l,o),t.child)}function ed(e,t,l,r,o,h){return Tl(t),t.updateQueue=null,l=lh(t,r,l,o),nh(e),r=gs(),e!==null&&!st?(xs(e,t,h),An(e,t,h)):(_e&&r&&Iu(t),t.flags|=1,bt(e,t,l,h),t.child)}function td(e,t,l,r,o){if(Tl(t),t.stateNode===null){var h=ei,x=l.contextType;typeof x=="object"&&x!==null&&(h=yt(x)),h=new l(r,h),t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=_s,t.stateNode=h,h._reactInternals=t,h=t.stateNode,h.props=r,h.state=t.memoizedState,h.refs={},us(t),x=l.contextType,h.context=typeof x=="object"&&x!==null?yt(x):ei,h.state=t.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Ms(t,l,x,r),h.state=t.memoizedState),typeof l.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&&_s.enqueueReplaceState(h,h.state,null),na(t,r,h,o),ta(),h.state=t.memoizedState),typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){h=t.stateNode;var z=t.memoizedProps,T=_l(l,z);h.props=T;var O=h.context,G=l.contextType;x=ei,typeof G=="object"&&G!==null&&(x=yt(G));var Z=l.getDerivedStateFromProps;G=typeof Z=="function"||typeof h.getSnapshotBeforeUpdate=="function",z=t.pendingProps!==z,G||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(z||O!==x)&&Yh(t,h,r,x),In=!1;var L=t.memoizedState;h.state=L,na(t,r,h,o),ta(),O=t.memoizedState,z||L!==O||In?(typeof Z=="function"&&(Ms(t,l,Z,r),O=t.memoizedState),(T=In||qh(t,l,T,r,L,O,x))?(G||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"&&(t.flags|=4194308)):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=O),h.props=r,h.state=O,h.context=x,r=T):(typeof h.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{h=t.stateNode,ss(e,t),x=t.memoizedProps,G=_l(l,x),h.props=G,Z=t.pendingProps,L=h.context,O=l.contextType,T=ei,typeof O=="object"&&O!==null&&(T=yt(O)),z=l.getDerivedStateFromProps,(O=typeof z=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==Z||L!==T)&&Yh(t,h,r,T),In=!1,L=t.memoizedState,h.state=L,na(t,r,h,o),ta();var Y=t.memoizedState;x!==Z||L!==Y||In||e!==null&&e.dependencies!==null&&ur(e.dependencies)?(typeof z=="function"&&(Ms(t,l,z,r),Y=t.memoizedState),(G=In||qh(t,l,G,r,L,Y,T)||e!==null&&e.dependencies!==null&&ur(e.dependencies))?(O||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(r,Y,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(r,Y,T)),typeof h.componentDidUpdate=="function"&&(t.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=Y),h.props=r,h.state=Y,h.context=T,r=G):(typeof h.componentDidUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&L===e.memoizedState||(t.flags|=1024),r=!1)}return h=r,Tr(e,t),r=(t.flags&128)!==0,h||r?(h=t.stateNode,l=r&&typeof l.getDerivedStateFromError!="function"?null:h.render(),t.flags|=1,e!==null&&r?(t.child=jl(t,e.child,null,o),t.child=jl(t,null,l,o)):bt(e,t,l,o),t.memoizedState=h.state,e=t.child):e=An(e,t,o),e}function nd(e,t,l,r){return wl(),t.flags|=256,bt(e,t,l,r),t.child}var Ls={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Us(e){return{baseLanes:e,cachePool:Qf()}}function Bs(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Gt),e}function ld(e,t,l){var r=t.pendingProps,o=!1,h=(t.flags&128)!==0,x;if((x=h)||(x=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),x&&(o=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(o?Pn(t):el(),(e=We)?(e=fm(e,en),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Fn!==null?{id:dn,overflow:mn}:null,retryLane:536870912,hydrationErrors:null},l=Lf(e),l.return=t,t.child=l,xt=t,We=null)):e=null,e===null)throw Kn(t);return So(e)?t.lanes=32:t.lanes=536870912,null}var z=r.children;return r=r.fallback,o?(el(),o=t.mode,z=Cr({mode:"hidden",children:z},o),r=kl(r,o,l,null),z.return=t,r.return=t,z.sibling=r,t.child=z,r=t.child,r.memoizedState=Us(l),r.childLanes=Bs(e,x,l),t.memoizedState=Ls,ua(null,r)):(Pn(t),Hs(t,z))}var T=e.memoizedState;if(T!==null&&(z=T.dehydrated,z!==null)){if(h)t.flags&256?(Pn(t),t.flags&=-257,t=qs(e,t,l)):t.memoizedState!==null?(el(),t.child=e.child,t.flags|=128,t=null):(el(),z=r.fallback,o=t.mode,r=Cr({mode:"visible",children:r.children},o),z=kl(z,o,l,null),z.flags|=2,r.return=t,z.return=t,r.sibling=z,t.child=r,jl(t,e.child,null,l),r=t.child,r.memoizedState=Us(l),r.childLanes=Bs(e,x,l),t.memoizedState=Ls,t=ua(null,r));else if(Pn(t),So(z)){if(x=z.nextSibling&&z.nextSibling.dataset,x)var O=x.dgst;x=O,r=Error(u(419)),r.stack="",r.digest=x,Ji({value:r,source:null,stack:null}),t=qs(e,t,l)}else if(st||ii(e,t,l,!1),x=(l&e.childLanes)!==0,st||x){if(x=Ke,x!==null&&(r=Vc(x,l),r!==0&&r!==T.retryLane))throw T.retryLane=r,zl(e,r),Dt(x,e,r),Ds;vo(z)||Lr(),t=qs(e,t,l)}else vo(z)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,We=nn(z.nextSibling),xt=t,_e=!0,Zn=null,en=!1,e!==null&&Hf(t,e),t=Hs(t,r.children),t.flags|=4096);return t}return o?(el(),z=r.fallback,o=t.mode,T=e.child,O=T.sibling,r=kn(T,{mode:"hidden",children:r.children}),r.subtreeFlags=T.subtreeFlags&65011712,O!==null?z=kn(O,z):(z=kl(z,o,l,null),z.flags|=2),z.return=t,r.return=t,r.sibling=z,t.child=r,ua(null,r),r=t.child,z=e.child.memoizedState,z===null?z=Us(l):(o=z.cachePool,o!==null?(T=rt._currentValue,o=o.parent!==T?{parent:T,pool:T}:o):o=Qf(),z={baseLanes:z.baseLanes|l,cachePool:o}),r.memoizedState=z,r.childLanes=Bs(e,x,l),t.memoizedState=Ls,ua(e.child,r)):(Pn(t),l=e.child,e=l.sibling,l=kn(l,{mode:"visible",children:r.children}),l.return=t,l.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=l,t.memoizedState=null,l)}function Hs(e,t){return t=Cr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Cr(e,t){return e=qt(22,e,null,t),e.lanes=0,e}function qs(e,t,l){return jl(t,e.child,null,l),e=Hs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function id(e,t,l){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ts(e.return,t,l)}function Ys(e,t,l,r,o,h){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:l,tailMode:o,treeForkCount:h}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=r,x.tail=l,x.tailMode=o,x.treeForkCount=h)}function ad(e,t,l){var r=t.pendingProps,o=r.revealOrder,h=r.tail;r=r.children;var x=lt.current,z=(x&2)!==0;if(z?(x=x&1|2,t.flags|=128):x&=1,k(lt,x),bt(e,t,r,l),r=_e?Ki:0,!z&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&id(e,l,t);else if(e.tag===19)id(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(l=t.child,o=null;l!==null;)e=l.alternate,e!==null&&pr(e)===null&&(o=l),l=l.sibling;l=o,l===null?(o=t.child,t.child=null):(o=l.sibling,l.sibling=null),Ys(t,!1,o,l,h,r);break;case"backwards":case"unstable_legacy-backwards":for(l=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&pr(e)===null){t.child=o;break}e=o.sibling,o.sibling=l,l=o,o=e}Ys(t,!0,l,null,h,r);break;case"together":Ys(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function An(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ii(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,l=kn(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=kn(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function Vs(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ur(e)))}function Dx(e,t,l){switch(t.tag){case 3:Ye(t,t.stateNode.containerInfo),Jn(t,rt,e.memoizedState.cache),wl();break;case 27:case 5:pt(t);break;case 4:Ye(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ds(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Pn(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ld(e,t,l):(Pn(t),e=An(e,t,l),e!==null?e.sibling:null);Pn(t);break;case 19:var o=(e.flags&128)!==0;if(r=(l&t.childLanes)!==0,r||(ii(e,t,l,!1),r=(l&t.childLanes)!==0),o){if(r)return ad(e,t,l);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),k(lt,lt.current),r)break;return null;case 22:return t.lanes=0,$h(e,t,l,t.pendingProps);case 24:Jn(t,rt,e.memoizedState.cache)}return An(e,t,l)}function rd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!Vs(e,l)&&(t.flags&128)===0)return st=!1,Dx(e,t,l);st=(e.flags&131072)!==0}else st=!1,_e&&(t.flags&1048576)!==0&&Bf(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Nl(t.elementType),t.type=e,typeof e=="function")Zu(e)?(r=_l(e,r),t.tag=1,t=td(null,t,e,r,l)):(t.tag=0,t=Rs(null,t,e,r,l));else{if(e!=null){var o=e.$$typeof;if(o===te){t.tag=11,t=Kh(null,t,e,r,l);break e}else if(o===I){t.tag=14,t=Jh(null,t,e,r,l);break e}}throw t=re(e)||e,Error(u(306,t,""))}}return t;case 0:return Rs(e,t,t.type,t.pendingProps,l);case 1:return r=t.type,o=_l(r,t.pendingProps),td(e,t,r,o,l);case 3:e:{if(Ye(t,t.stateNode.containerInfo),e===null)throw Error(u(387));r=t.pendingProps;var h=t.memoizedState;o=h.element,ss(e,t),na(t,r,null,l);var x=t.memoizedState;if(r=x.cache,Jn(t,rt,r),r!==h.cache&&ns(t,[rt],l,!0),ta(),r=x.element,h.isDehydrated)if(h={element:r,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=h,t.memoizedState=h,t.flags&256){t=nd(e,t,r,l);break e}else if(r!==o){o=$t(Error(u(424)),t),Ji(o),t=nd(e,t,r,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=nn(e.firstChild),xt=t,_e=!0,Zn=null,en=!0,l=$f(t,null,r,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(wl(),r===o){t=An(e,t,l);break e}bt(e,t,r,l)}t=t.child}return t;case 26:return Tr(e,t),e===null?(l=xm(t.type,null,t.pendingProps,null))?t.memoizedState=l:_e||(l=t.type,e=t.pendingProps,r=Xr(ue.current).createElement(l),r[gt]=t,r[Nt]=e,vt(r,l,e),dt(r),t.stateNode=r):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return pt(t),e===null&&_e&&(r=t.stateNode=mm(t.type,t.pendingProps,ue.current),xt=t,en=!0,o=We,sl(t.type)?(zo=o,We=nn(r.firstChild)):We=o),bt(e,t,t.pendingProps.children,l),Tr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((o=r=We)&&(r=cy(r,t.type,t.pendingProps,en),r!==null?(t.stateNode=r,xt=t,We=nn(r.firstChild),en=!1,o=!0):o=!1),o||Kn(t)),pt(t),o=t.type,h=t.pendingProps,x=e!==null?e.memoizedProps:null,r=h.children,xo(o,h)?r=null:x!==null&&xo(o,x)&&(t.flags|=32),t.memoizedState!==null&&(o=ps(e,t,Ex,null,null,l),za._currentValue=o),Tr(e,t),bt(e,t,r,l),t.child;case 6:return e===null&&_e&&((e=l=We)&&(l=fy(l,t.pendingProps,en),l!==null?(t.stateNode=l,xt=t,We=null,e=!0):e=!1),e||Kn(t)),null;case 13:return ld(e,t,l);case 4:return Ye(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=jl(t,null,r,l):bt(e,t,r,l),t.child;case 11:return Kh(e,t,t.type,t.pendingProps,l);case 7:return bt(e,t,t.pendingProps,l),t.child;case 8:return bt(e,t,t.pendingProps.children,l),t.child;case 12:return bt(e,t,t.pendingProps.children,l),t.child;case 10:return r=t.pendingProps,Jn(t,t.type,r.value),bt(e,t,r.children,l),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Tl(t),o=yt(o),r=r(o),t.flags|=1,bt(e,t,r,l),t.child;case 14:return Jh(e,t,t.type,t.pendingProps,l);case 15:return Ih(e,t,t.type,t.pendingProps,l);case 19:return ad(e,t,l);case 31:return Ox(e,t,l);case 22:return $h(e,t,l,t.pendingProps);case 24:return Tl(t),r=yt(rt),e===null?(o=as(),o===null&&(o=Ke,h=ls(),o.pooledCache=h,h.refCount++,h!==null&&(o.pooledCacheLanes|=l),o=h),t.memoizedState={parent:r,cache:o},us(t),Jn(t,rt,o)):((e.lanes&l)!==0&&(ss(e,t),na(t,null,null,l),ta()),o=e.memoizedState,h=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Jn(t,rt,r)):(r=h.cache,Jn(t,rt,r),r!==o.cache&&ns(t,[rt],l,!0))),bt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function jn(e){e.flags|=4}function Xs(e,t,l,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Od())e.flags|=8192;else throw Al=fr,rs}else e.flags&=-16777217}function ud(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zm(t))if(Od())e.flags|=8192;else throw Al=fr,rs}function Nr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hc():536870912,e.lanes|=t,gi|=t)}function sa(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var r=null;l!==null;)l.alternate!==null&&(r=l),l=l.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,r=0;if(t)for(var o=e.child;o!==null;)l|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)l|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=l,t}function Rx(e,t,l){var r=t.pendingProps;switch($u(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return l=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Tn(rt),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(li(t)?jn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Pu())),Pe(t),null;case 26:var o=t.type,h=t.memoizedState;return e===null?(jn(t),h!==null?(Pe(t),ud(t,h)):(Pe(t),Xs(t,o,null,r,l))):h?h!==e.memoizedState?(jn(t),Pe(t),ud(t,h)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&jn(t),Pe(t),Xs(t,o,e,r,l)),null;case 27:if(rn(t),l=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Pe(t),null}e=F.current,li(t)?qf(t):(e=mm(o,r,l),t.stateNode=e,jn(t))}return Pe(t),null;case 5:if(rn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jn(t);else{if(!r){if(t.stateNode===null)throw Error(u(166));return Pe(t),null}if(h=F.current,li(t))qf(t);else{var x=Xr(ue.current);switch(h){case 1:h=x.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:h=x.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":h=x.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":h=x.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":h=x.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof r.is=="string"?x.createElement("select",{is:r.is}):x.createElement("select"),r.multiple?h.multiple=!0:r.size&&(h.size=r.size);break;default:h=typeof r.is=="string"?x.createElement(o,{is:r.is}):x.createElement(o)}}h[gt]=t,h[Nt]=r;e:for(x=t.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===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=h;e:switch(vt(h,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&jn(t)}}return Pe(t),Xs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(e=ue.current,li(t)){if(e=t.stateNode,l=t.memoizedProps,r=null,o=xt,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[gt]=t,e=!!(e.nodeValue===l||r!==null&&r.suppressHydrationWarning===!0||lm(e.nodeValue,l)),e||Kn(t,!0)}else e=Xr(e).createTextNode(r),e[gt]=t,t.stateNode=e}return Pe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(r=li(t),l!==null){if(e===null){if(!r)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[gt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else l=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Vt(t),t):(Vt(t),null);if((t.flags&128)!==0)throw Error(u(558))}return Pe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[gt]=t}else wl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),o=!1}else o=Pu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Vt(t),t):(Vt(t),null)}return Vt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=r!==null,e=e!==null&&e.memoizedState!==null,l&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),h=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(h=r.memoizedState.cachePool.pool),h!==o&&(r.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Nr(t,t.updateQueue),Pe(t),null);case 4:return Le(),e===null&&fo(t.stateNode.containerInfo),Pe(t),null;case 10:return Tn(t.type),Pe(t),null;case 19:if(X(lt),r=t.memoizedState,r===null)return Pe(t),null;if(o=(t.flags&128)!==0,h=r.rendering,h===null)if(o)sa(r,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(h=pr(e),h!==null){for(t.flags|=128,sa(r,!1),e=h.updateQueue,t.updateQueue=e,Nr(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Rf(l,e),l=l.sibling;return k(lt,lt.current&1|2),_e&&wn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>Or&&(t.flags|=128,o=!0,sa(r,!1),t.lanes=4194304)}else{if(!o)if(e=pr(h),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Nr(t,e),sa(r,!0),r.tail===null&&r.tailMode==="hidden"&&!h.alternate&&!_e)return Pe(t),null}else 2*De()-r.renderingStartTime>Or&&l!==536870912&&(t.flags|=128,o=!0,sa(r,!1),t.lanes=4194304);r.isBackwards?(h.sibling=t.child,t.child=h):(e=r.last,e!==null?e.sibling=h:t.child=h,r.last=h)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,l=lt.current,k(lt,o?l&1|2:l&1),_e&&wn(t,r.treeForkCount),e):(Pe(t),null);case 22:case 23:return Vt(t),hs(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(l&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),l=t.updateQueue,l!==null&&Nr(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==l&&(t.flags|=2048),e!==null&&X(Cl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Tn(rt),Pe(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function Lx(e,t){switch($u(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(rt),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rn(t),null;case 31:if(t.memoizedState!==null){if(Vt(t),t.alternate===null)throw Error(u(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));wl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(lt),null;case 4:return Le(),null;case 10:return Tn(t.type),null;case 22:case 23:return Vt(t),hs(),e!==null&&X(Cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(rt),null;case 25:return null;default:return null}}function sd(e,t){switch($u(t),t.tag){case 3:Tn(rt),Le();break;case 26:case 27:case 5:rn(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&Vt(t);break;case 13:Vt(t);break;case 19:X(lt);break;case 10:Tn(t.type);break;case 22:case 23:Vt(t),hs(),e!==null&&X(Cl);break;case 24:Tn(rt)}}function oa(e,t){try{var l=t.updateQueue,r=l!==null?l.lastEffect:null;if(r!==null){var o=r.next;l=o;do{if((l.tag&e)===e){r=void 0;var h=l.create,x=l.inst;r=h(),x.destroy=r}l=l.next}while(l!==o)}}catch(z){Xe(t,t.return,z)}}function tl(e,t,l){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var h=o.next;r=h;do{if((r.tag&e)===e){var x=r.inst,z=x.destroy;if(z!==void 0){x.destroy=void 0,o=t;var T=l,O=z;try{O()}catch(G){Xe(o,T,G)}}}r=r.next}while(r!==h)}}catch(G){Xe(t,t.return,G)}}function od(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Pf(t,l)}catch(r){Xe(e,e.return,r)}}}function cd(e,t,l){l.props=_l(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(r){Xe(e,t,r)}}function ca(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof l=="function"?e.refCleanup=l(r):l.current=r}}catch(o){Xe(e,t,o)}}function pn(e,t){var l=e.ref,r=e.refCleanup;if(l!==null)if(typeof r=="function")try{r()}catch(o){Xe(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(o){Xe(e,t,o)}else l.current=null}function fd(e){var t=e.type,l=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break e;case"img":l.src?r.src=l.src:l.srcSet&&(r.srcset=l.srcSet)}}catch(o){Xe(e,e.return,o)}}function Gs(e,t,l){try{var r=e.stateNode;iy(r,e.type,l,t),r[Nt]=t}catch(o){Xe(e,e.return,o)}}function hd(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function Qs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||hd(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&&sl(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 Fs(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Sn));else if(r!==4&&(r===27&&sl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Fs(e,t,l),e=e.sibling;e!==null;)Fs(e,t,l),e=e.sibling}function Ar(e,t,l){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(r!==4&&(r===27&&sl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ar(e,t,l),e=e.sibling;e!==null;)Ar(e,t,l),e=e.sibling}function dd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);vt(t,r,l),t[gt]=e,t[Nt]=l}catch(h){Xe(e,e.return,h)}}var Mn=!1,ot=!1,Zs=!1,md=typeof WeakSet=="function"?WeakSet:Set,mt=null;function Ux(e,t){if(e=e.containerInfo,po=Ir,e=Tf(e),qu(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var r=l.getSelection&&l.getSelection();if(r&&r.rangeCount!==0){l=r.anchorNode;var o=r.anchorOffset,h=r.focusNode;r=r.focusOffset;try{l.nodeType,h.nodeType}catch{l=null;break e}var x=0,z=-1,T=-1,O=0,G=0,Z=e,L=null;t:for(;;){for(var Y;Z!==l||o!==0&&Z.nodeType!==3||(z=x+o),Z!==h||r!==0&&Z.nodeType!==3||(T=x+r),Z.nodeType===3&&(x+=Z.nodeValue.length),(Y=Z.firstChild)!==null;)L=Z,Z=Y;for(;;){if(Z===e)break t;if(L===l&&++O===o&&(z=x),L===h&&++G===r&&(T=x),(Y=Z.nextSibling)!==null)break;Z=L,L=Z.parentNode}Z=Y}l=z===-1||T===-1?null:{start:z,end:T}}else l=null}l=l||{start:0,end:0}}else l=null;for(go={focusedElem:e,selectionRange:l},Ir=!1,mt=t;mt!==null;)if(t=mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,mt=e;else for(;mt!==null;){switch(t=mt,h=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)o=e[l],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,l=t,o=h.memoizedProps,h=h.memoizedState,r=l.stateNode;try{var ce=_l(l.type,o);e=r.getSnapshotBeforeUpdate(ce,h),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Xe(l,l.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)bo(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,mt=e;break}mt=t.return}}function pd(e,t,l){var r=l.flags;switch(l.tag){case 0:case 11:case 15:On(e,l),r&4&&oa(5,l);break;case 1:if(On(e,l),r&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(x){Xe(l,l.return,x)}else{var o=_l(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Xe(l,l.return,x)}}r&64&&od(l),r&512&&ca(l,l.return);break;case 3:if(On(e,l),r&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Pf(e,t)}catch(x){Xe(l,l.return,x)}}break;case 27:t===null&&r&4&&dd(l);case 26:case 5:On(e,l),t===null&&r&4&&fd(l),r&512&&ca(l,l.return);break;case 12:On(e,l);break;case 31:On(e,l),r&4&&yd(e,l);break;case 13:On(e,l),r&4&&bd(e,l),r&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Fx.bind(null,l),hy(e,l))));break;case 22:if(r=l.memoizedState!==null||Mn,!r){t=t!==null&&t.memoizedState!==null||ot,o=Mn;var h=ot;Mn=r,(ot=t)&&!h?Dn(e,l,(l.subtreeFlags&8772)!==0):On(e,l),Mn=o,ot=h}break;case 30:break;default:On(e,l)}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ku(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,jt=!1;function _n(e,t,l){for(l=l.child;l!==null;)xd(e,t,l),l=l.sibling}function xd(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(wt,l)}catch{}switch(l.tag){case 26:ot||pn(l,t),_n(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ot||pn(l,t);var r=et,o=jt;sl(l.type)&&(et=l.stateNode,jt=!1),_n(e,t,l),ba(l.stateNode),et=r,jt=o;break;case 5:ot||pn(l,t);case 6:if(r=et,o=jt,et=null,_n(e,t,l),et=r,jt=o,et!==null)if(jt)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(h){Xe(l,t,h)}else try{et.removeChild(l.stateNode)}catch(h){Xe(l,t,h)}break;case 18:et!==null&&(jt?(e=et,om(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),wi(e)):om(et,l.stateNode));break;case 4:r=et,o=jt,et=l.stateNode.containerInfo,jt=!0,_n(e,t,l),et=r,jt=o;break;case 0:case 11:case 14:case 15:tl(2,l,t),ot||tl(4,l,t),_n(e,t,l);break;case 1:ot||(pn(l,t),r=l.stateNode,typeof r.componentWillUnmount=="function"&&cd(l,t,r)),_n(e,t,l);break;case 21:_n(e,t,l);break;case 22:ot=(r=ot)||l.memoizedState!==null,_n(e,t,l),ot=r;break;default:_n(e,t,l)}}function yd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{wi(e)}catch(l){Xe(t,t.return,l)}}}function bd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wi(e)}catch(l){Xe(t,t.return,l)}}function Bx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new md),t;default:throw Error(u(435,e.tag))}}function jr(e,t){var l=Bx(e);t.forEach(function(r){if(!l.has(r)){l.add(r);var o=Zx.bind(null,e,r);r.then(o,o)}})}function Mt(e,t){var l=t.deletions;if(l!==null)for(var r=0;r<l.length;r++){var o=l[r],h=e,x=t,z=x;e:for(;z!==null;){switch(z.tag){case 27:if(sl(z.type)){et=z.stateNode,jt=!1;break e}break;case 5:et=z.stateNode,jt=!1;break e;case 3:case 4:et=z.stateNode.containerInfo,jt=!0;break e}z=z.return}if(et===null)throw Error(u(160));xd(h,x,o),et=null,jt=!1,h=o.alternate,h!==null&&(h.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vd(t,e),t=t.sibling}var cn=null;function vd(e,t){var l=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Mt(t,e),_t(e),r&4&&(tl(3,e,e.return),oa(3,e),tl(5,e,e.return));break;case 1:Mt(t,e),_t(e),r&512&&(ot||l===null||pn(l,l.return)),r&64&&Mn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?r:l.concat(r))));break;case 26:var o=cn;if(Mt(t,e),_t(e),r&512&&(ot||l===null||pn(l,l.return)),r&4){var h=l!==null?l.memoizedState:null;if(r=e.memoizedState,l===null)if(r===null)if(e.stateNode===null){e:{r=e.type,l=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":h=o.getElementsByTagName("title")[0],(!h||h[Ui]||h[gt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=o.createElement(r),o.head.insertBefore(h,o.querySelector("head > title"))),vt(h,r,l),h[gt]=e,dt(h),r=h;break e;case"link":var x=vm("link","href",o).get(r+(l.href||""));if(x){for(var z=0;z<x.length;z++)if(h=x[z],h.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&h.getAttribute("rel")===(l.rel==null?null:l.rel)&&h.getAttribute("title")===(l.title==null?null:l.title)&&h.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(z,1);break t}}h=o.createElement(r),vt(h,r,l),o.head.appendChild(h);break;case"meta":if(x=vm("meta","content",o).get(r+(l.content||""))){for(z=0;z<x.length;z++)if(h=x[z],h.getAttribute("content")===(l.content==null?null:""+l.content)&&h.getAttribute("name")===(l.name==null?null:l.name)&&h.getAttribute("property")===(l.property==null?null:l.property)&&h.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&h.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(z,1);break t}}h=o.createElement(r),vt(h,r,l),o.head.appendChild(h);break;default:throw Error(u(468,r))}h[gt]=e,dt(h),r=h}e.stateNode=r}else Sm(o,e.type,e.stateNode);else e.stateNode=bm(o,r,e.memoizedProps);else h!==r?(h===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):h.count--,r===null?Sm(o,e.type,e.stateNode):bm(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Gs(e,e.memoizedProps,l.memoizedProps)}break;case 27:Mt(t,e),_t(e),r&512&&(ot||l===null||pn(l,l.return)),l!==null&&r&4&&Gs(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Mt(t,e),_t(e),r&512&&(ot||l===null||pn(l,l.return)),e.flags&32){o=e.stateNode;try{Zl(o,"")}catch(ce){Xe(e,e.return,ce)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,Gs(e,o,l!==null?l.memoizedProps:o)),r&1024&&(Zs=!0);break;case 6:if(Mt(t,e),_t(e),r&4){if(e.stateNode===null)throw Error(u(162));r=e.memoizedProps,l=e.stateNode;try{l.nodeValue=r}catch(ce){Xe(e,e.return,ce)}}break;case 3:if(Fr=null,o=cn,cn=Gr(t.containerInfo),Mt(t,e),cn=o,_t(e),r&4&&l!==null&&l.memoizedState.isDehydrated)try{wi(t.containerInfo)}catch(ce){Xe(e,e.return,ce)}Zs&&(Zs=!1,Sd(e));break;case 4:r=cn,cn=Gr(e.stateNode.containerInfo),Mt(t,e),_t(e),cn=r;break;case 12:Mt(t,e),_t(e);break;case 31:Mt(t,e),_t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jr(e,r)));break;case 13:Mt(t,e),_t(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(_r=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jr(e,r)));break;case 22:o=e.memoizedState!==null;var T=l!==null&&l.memoizedState!==null,O=Mn,G=ot;if(Mn=O||o,ot=G||T,Mt(t,e),ot=G,Mn=O,_t(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(l===null||T||Mn||ot||Ol(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){T=l=t;try{if(h=T.stateNode,o)x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{z=T.stateNode;var Z=T.memoizedProps.style,L=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;z.style.display=L==null||typeof L=="boolean"?"":(""+L).trim()}}catch(ce){Xe(T,T.return,ce)}}}else if(t.tag===6){if(l===null){T=t;try{T.stateNode.nodeValue=o?"":T.memoizedProps}catch(ce){Xe(T,T.return,ce)}}}else if(t.tag===18){if(l===null){T=t;try{var Y=T.stateNode;o?cm(Y,!0):cm(T.stateNode,!1)}catch(ce){Xe(T,T.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(l=r.retryQueue,l!==null&&(r.retryQueue=null,jr(e,l))));break;case 19:Mt(t,e),_t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,jr(e,r)));break;case 30:break;case 21:break;default:Mt(t,e),_t(e)}}function _t(e){var t=e.flags;if(t&2){try{for(var l,r=e.return;r!==null;){if(hd(r)){l=r;break}r=r.return}if(l==null)throw Error(u(160));switch(l.tag){case 27:var o=l.stateNode,h=Qs(e);Ar(e,h,o);break;case 5:var x=l.stateNode;l.flags&32&&(Zl(x,""),l.flags&=-33);var z=Qs(e);Ar(e,z,x);break;case 3:case 4:var T=l.stateNode.containerInfo,O=Qs(e);Fs(e,O,T);break;default:throw Error(u(161))}}catch(G){Xe(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function On(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pd(e,t.alternate,t),t=t.sibling}function Ol(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:tl(4,t,t.return),Ol(t);break;case 1:pn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&cd(t,t.return,l),Ol(t);break;case 27:ba(t.stateNode);case 26:case 5:pn(t,t.return),Ol(t);break;case 22:t.memoizedState===null&&Ol(t);break;case 30:Ol(t);break;default:Ol(t)}e=e.sibling}}function Dn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,h=t,x=h.flags;switch(h.tag){case 0:case 11:case 15:Dn(o,h,l),oa(4,h);break;case 1:if(Dn(o,h,l),r=h,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(O){Xe(r,r.return,O)}if(r=h,o=r.updateQueue,o!==null){var z=r.stateNode;try{var T=o.shared.hiddenCallbacks;if(T!==null)for(o.shared.hiddenCallbacks=null,o=0;o<T.length;o++)Wf(T[o],z)}catch(O){Xe(r,r.return,O)}}l&&x&64&&od(h),ca(h,h.return);break;case 27:dd(h);case 26:case 5:Dn(o,h,l),l&&r===null&&x&4&&fd(h),ca(h,h.return);break;case 12:Dn(o,h,l);break;case 31:Dn(o,h,l),l&&x&4&&yd(o,h);break;case 13:Dn(o,h,l),l&&x&4&&bd(o,h);break;case 22:h.memoizedState===null&&Dn(o,h,l),ca(h,h.return);break;case 30:break;default:Dn(o,h,l)}t=t.sibling}}function Ks(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Ii(l))}function Js(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ii(e))}function fn(e,t,l,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zd(e,t,l,r),t=t.sibling}function zd(e,t,l,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:fn(e,t,l,r),o&2048&&oa(9,t);break;case 1:fn(e,t,l,r);break;case 3:fn(e,t,l,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ii(e)));break;case 12:if(o&2048){fn(e,t,l,r),e=t.stateNode;try{var h=t.memoizedProps,x=h.id,z=h.onPostCommit;typeof z=="function"&&z(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){Xe(t,t.return,T)}}else fn(e,t,l,r);break;case 31:fn(e,t,l,r);break;case 13:fn(e,t,l,r);break;case 23:break;case 22:h=t.stateNode,x=t.alternate,t.memoizedState!==null?h._visibility&2?fn(e,t,l,r):fa(e,t):h._visibility&2?fn(e,t,l,r):(h._visibility|=2,di(e,t,l,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Ks(x,t);break;case 24:fn(e,t,l,r),o&2048&&Js(t.alternate,t);break;default:fn(e,t,l,r)}}function di(e,t,l,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var h=e,x=t,z=l,T=r,O=x.flags;switch(x.tag){case 0:case 11:case 15:di(h,x,z,T,o),oa(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&2?di(h,x,z,T,o):fa(h,x):(G._visibility|=2,di(h,x,z,T,o)),o&&O&2048&&Ks(x.alternate,x);break;case 24:di(h,x,z,T,o),o&&O&2048&&Js(x.alternate,x);break;default:di(h,x,z,T,o)}t=t.sibling}}function fa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,r=t,o=r.flags;switch(r.tag){case 22:fa(l,r),o&2048&&Ks(r.alternate,r);break;case 24:fa(l,r),o&2048&&Js(r.alternate,r);break;default:fa(l,r)}t=t.sibling}}var ha=8192;function mi(e,t,l){if(e.subtreeFlags&ha)for(e=e.child;e!==null;)kd(e,t,l),e=e.sibling}function kd(e,t,l){switch(e.tag){case 26:mi(e,t,l),e.flags&ha&&e.memoizedState!==null&&wy(l,cn,e.memoizedState,e.memoizedProps);break;case 5:mi(e,t,l);break;case 3:case 4:var r=cn;cn=Gr(e.stateNode.containerInfo),mi(e,t,l),cn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ha,ha=16777216,mi(e,t,l),ha=r):mi(e,t,l));break;default:mi(e,t,l)}}function wd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function da(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];mt=r,Td(r,e)}wd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ed(e),e=e.sibling}function Ed(e){switch(e.tag){case 0:case 11:case 15:da(e),e.flags&2048&&tl(9,e,e.return);break;case 3:da(e);break;case 12:da(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Mr(e)):da(e);break;default:da(e)}}function Mr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var r=t[l];mt=r,Td(r,e)}wd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:tl(8,t,t.return),Mr(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Mr(t));break;default:Mr(t)}e=e.sibling}}function Td(e,t){for(;mt!==null;){var l=mt;switch(l.tag){case 0:case 11:case 15:tl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var r=l.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Ii(l.memoizedState.cache)}if(r=l.child,r!==null)r.return=l,mt=r;else e:for(l=e;mt!==null;){r=mt;var o=r.sibling,h=r.return;if(gd(r),r===l){mt=null;break e}if(o!==null){o.return=h,mt=o;break e}mt=h}}}var Hx={getCacheForType:function(e){var t=yt(rt),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return yt(rt).controller.signal}},qx=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ke=null,Ce=null,je=0,Ve=0,Xt=null,nl=!1,pi=!1,Is=!1,Rn=0,nt=0,ll=0,Dl=0,$s=0,Gt=0,gi=0,ma=null,Ot=null,Ws=!1,_r=0,Cd=0,Or=1/0,Dr=null,il=null,ht=0,al=null,xi=null,Ln=0,Ps=0,eo=null,Nd=null,pa=0,to=null;function Qt(){return(qe&2)!==0&&je!==0?je&-je:R.T!==null?uo():Xc()}function Ad(){if(Gt===0)if((je&536870912)===0||_e){var e=Va;Va<<=1,(Va&3932160)===0&&(Va=262144),Gt=e}else Gt=536870912;return e=Yt.current,e!==null&&(e.flags|=32),Gt}function Dt(e,t,l){(e===Ke&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(yi(e,0),rl(e,je,Gt,!1)),Li(e,l),((qe&2)===0||e!==Ke)&&(e===Ke&&((qe&2)===0&&(Dl|=l),nt===4&&rl(e,je,Gt,!1)),gn(e))}function jd(e,t,l){if((qe&6)!==0)throw Error(u(327));var r=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ri(e,t),o=r?Xx(e,t):lo(e,t,!0),h=r;do{if(o===0){pi&&!r&&rl(e,t,0,!1);break}else{if(l=e.current.alternate,h&&!Yx(l)){o=lo(e,t,!1),h=!1;continue}if(o===2){if(h=t,e.errorRecoveryDisabledLanes&h)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var z=e;o=ma;var T=z.current.memoizedState.isDehydrated;if(T&&(yi(z,x).flags|=256),x=lo(z,x,!1),x!==2){if(Is&&!T){z.errorRecoveryDisabledLanes|=h,Dl|=h,o=4;break e}h=Ot,Ot=o,h!==null&&(Ot===null?Ot=h:Ot.push.apply(Ot,h))}o=x}if(h=!1,o!==2)continue}}if(o===1){yi(e,0),rl(e,t,0,!0);break}e:{switch(r=e,h=o,h){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:rl(r,t,Gt,!nl);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(o=_r+300-De(),10<o)){if(rl(r,t,Gt,!nl),Ga(r,0,!0)!==0)break e;Ln=t,r.timeoutHandle=um(Md.bind(null,r,l,Ot,Dr,Ws,t,Gt,Dl,gi,nl,h,"Throttled",-0,0),o);break e}Md(r,l,Ot,Dr,Ws,t,Gt,Dl,gi,nl,h,null,-0,0)}}break}while(!0);gn(e)}function Md(e,t,l,r,o,h,x,z,T,O,G,Z,L,Y){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},kd(t,h,Z);var ce=(h&62914560)===h?_r-De():(h&4194048)===h?Cd-De():0;if(ce=Ey(Z,ce),ce!==null){Ln=h,e.cancelPendingCommit=ce(Hd.bind(null,e,t,h,l,r,o,x,z,T,G,Z,null,L,Y)),rl(e,h,x,!O);return}}Hd(e,t,h,l,r,o,x,z,T)}function Yx(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var r=0;r<l.length;r++){var o=l[r],h=o.getSnapshot;o=o.value;try{if(!Ht(h(),o))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rl(e,t,l,r){t&=~$s,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var h=31-Ze(o),x=1<<h;r[h]=-1,o&=~x}l!==0&&qc(e,l,t)}function Rr(){return(qe&6)===0?(ga(0),!1):!0}function no(){if(Ce!==null){if(Ve===0)var e=Ce.return;else e=Ce,En=El=null,ys(e),si=null,Wi=0,e=Ce;for(;e!==null;)sd(e.alternate,e),e=e.return;Ce=null}}function yi(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,uy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ln=0,no(),Ke=e,Ce=l=kn(e.current,null),je=t,Ve=0,Xt=null,nl=!1,pi=Ri(e,t),Is=!1,gi=Gt=$s=Dl=ll=nt=0,Ot=ma=null,Ws=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Ze(r),h=1<<o;t|=e[o],r&=~h}return Rn=t,nr(),l}function _d(e,t){ke=null,R.H=ra,t===ui||t===cr?(t=Kf(),Ve=3):t===rs?(t=Kf(),Ve=4):Ve=t===Ds?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Xt=t,Ce===null&&(nt=1,wr(e,$t(t,e.current)))}function Od(){var e=Yt.current;return e===null?!0:(je&4194048)===je?tn===null:(je&62914560)===je||(je&536870912)!==0?e===tn:!1}function Dd(){var e=R.H;return R.H=ra,e===null?ra:e}function Rd(){var e=R.A;return R.A=Hx,e}function Lr(){nt=4,nl||(je&4194048)!==je&&Yt.current!==null||(pi=!0),(ll&134217727)===0&&(Dl&134217727)===0||Ke===null||rl(Ke,je,Gt,!1)}function lo(e,t,l){var r=qe;qe|=2;var o=Dd(),h=Rd();(Ke!==e||je!==t)&&(Dr=null,yi(e,t)),t=!1;var x=nt;e:do try{if(Ve!==0&&Ce!==null){var z=Ce,T=Xt;switch(Ve){case 8:no(),x=6;break e;case 3:case 2:case 9:case 6:Yt.current===null&&(t=!0);var O=Ve;if(Ve=0,Xt=null,bi(e,z,T,O),l&&pi){x=0;break e}break;default:O=Ve,Ve=0,Xt=null,bi(e,z,T,O)}}Vx(),x=nt;break}catch(G){_d(e,G)}while(!0);return t&&e.shellSuspendCounter++,En=El=null,qe=r,R.H=o,R.A=h,Ce===null&&(Ke=null,je=0,nr()),x}function Vx(){for(;Ce!==null;)Ld(Ce)}function Xx(e,t){var l=qe;qe|=2;var r=Dd(),o=Rd();Ke!==e||je!==t?(Dr=null,Or=De()+500,yi(e,t)):pi=Ri(e,t);e:do try{if(Ve!==0&&Ce!==null){t=Ce;var h=Xt;t:switch(Ve){case 1:Ve=0,Xt=null,bi(e,t,h,1);break;case 2:case 9:if(Ff(h)){Ve=0,Xt=null,Ud(t);break}t=function(){Ve!==2&&Ve!==9||Ke!==e||(Ve=7),gn(e)},h.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Ff(h)?(Ve=0,Xt=null,Ud(t)):(Ve=0,Xt=null,bi(e,t,h,7));break;case 5:var x=null;switch(Ce.tag){case 26:x=Ce.memoizedState;case 5:case 27:var z=Ce;if(x?zm(x):z.stateNode.complete){Ve=0,Xt=null;var T=z.sibling;if(T!==null)Ce=T;else{var O=z.return;O!==null?(Ce=O,Ur(O)):Ce=null}break t}}Ve=0,Xt=null,bi(e,t,h,5);break;case 6:Ve=0,Xt=null,bi(e,t,h,6);break;case 8:no(),nt=6;break e;default:throw Error(u(462))}}Gx();break}catch(G){_d(e,G)}while(!0);return En=El=null,R.H=r,R.A=o,qe=l,Ce!==null?0:(Ke=null,je=0,nr(),nt)}function Gx(){for(;Ce!==null&&!ve();)Ld(Ce)}function Ld(e){var t=rd(e.alternate,e,Rn);e.memoizedProps=e.pendingProps,t===null?Ur(e):Ce=t}function Ud(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=ed(l,t,t.pendingProps,t.type,void 0,je);break;case 11:t=ed(l,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:ys(t);default:sd(l,t),t=Ce=Rf(t,Rn),t=rd(l,t,Rn)}e.memoizedProps=e.pendingProps,t===null?Ur(e):Ce=t}function bi(e,t,l,r){En=El=null,ys(t),si=null,Wi=0;var o=t.return;try{if(_x(e,o,t,l,je)){nt=1,wr(e,$t(l,e.current)),Ce=null;return}}catch(h){if(o!==null)throw Ce=o,h;nt=1,wr(e,$t(l,e.current)),Ce=null;return}t.flags&32768?(_e||r===1?e=!0:pi||(je&536870912)!==0?e=!1:(nl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Yt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bd(t,e)):Ur(t)}function Ur(e){var t=e;do{if((t.flags&32768)!==0){Bd(t,nl);return}e=t.return;var l=Rx(t.alternate,t,Rn);if(l!==null){Ce=l;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);nt===0&&(nt=5)}function Bd(e,t){do{var l=Lx(e.alternate,e);if(l!==null){l.flags&=32767,Ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=l}while(e!==null);nt=6,Ce=null}function Hd(e,t,l,r,o,h,x,z,T){e.cancelPendingCommit=null;do Br();while(ht!==0);if((qe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(h=t.lanes|t.childLanes,h|=Qu,kg(e,l,h,x,z,T),e===Ke&&(Ce=Ke=null,je=0),xi=t,al=e,Ln=l,Ps=h,eo=o,Nd=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Kx(ge,function(){return Gd(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=R.T,R.T=null,o=K.p,K.p=2,x=qe,qe|=4;try{Ux(e,t,l)}finally{qe=x,K.p=o,R.T=r}}ht=1,qd(),Yd(),Vd()}}function qd(){if(ht===1){ht=0;var e=al,t=xi,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null;var r=K.p;K.p=2;var o=qe;qe|=4;try{vd(t,e);var h=go,x=Tf(e.containerInfo),z=h.focusedElem,T=h.selectionRange;if(x!==z&&z&&z.ownerDocument&&Ef(z.ownerDocument.documentElement,z)){if(T!==null&&qu(z)){var O=T.start,G=T.end;if(G===void 0&&(G=O),"selectionStart"in z)z.selectionStart=O,z.selectionEnd=Math.min(G,z.value.length);else{var Z=z.ownerDocument||document,L=Z&&Z.defaultView||window;if(L.getSelection){var Y=L.getSelection(),ce=z.textContent.length,xe=Math.min(T.start,ce),Fe=T.end===void 0?xe:Math.min(T.end,ce);!Y.extend&&xe>Fe&&(x=Fe,Fe=xe,xe=x);var j=wf(z,xe),N=wf(z,Fe);if(j&&N&&(Y.rangeCount!==1||Y.anchorNode!==j.node||Y.anchorOffset!==j.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var _=Z.createRange();_.setStart(j.node,j.offset),Y.removeAllRanges(),xe>Fe?(Y.addRange(_),Y.extend(N.node,N.offset)):(_.setEnd(N.node,N.offset),Y.addRange(_))}}}}for(Z=[],Y=z;Y=Y.parentNode;)Y.nodeType===1&&Z.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<Z.length;z++){var Q=Z[z];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}Ir=!!po,go=po=null}finally{qe=o,K.p=r,R.T=l}}e.current=t,ht=2}}function Yd(){if(ht===2){ht=0;var e=al,t=xi,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=R.T,R.T=null;var r=K.p;K.p=2;var o=qe;qe|=4;try{pd(e,t.alternate,t)}finally{qe=o,K.p=r,R.T=l}}ht=3}}function Vd(){if(ht===4||ht===3){ht=0,$e();var e=al,t=xi,l=Ln,r=Nd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?ht=5:(ht=0,xi=al=null,Xd(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(il=null),Su(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(wt,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=R.T,o=K.p,K.p=2,R.T=null;try{for(var h=e.onRecoverableError,x=0;x<r.length;x++){var z=r[x];h(z.value,{componentStack:z.stack})}}finally{R.T=t,K.p=o}}(Ln&3)!==0&&Br(),gn(e),o=e.pendingLanes,(l&261930)!==0&&(o&42)!==0?e===to?pa++:(pa=0,to=e):pa=0,ga(0)}}function Xd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ii(t)))}function Br(){return qd(),Yd(),Vd(),Gd()}function Gd(){if(ht!==5)return!1;var e=al,t=Ps;Ps=0;var l=Su(Ln),r=R.T,o=K.p;try{K.p=32>l?32:l,R.T=null,l=eo,eo=null;var h=al,x=Ln;if(ht=0,xi=al=null,Ln=0,(qe&6)!==0)throw Error(u(331));var z=qe;if(qe|=4,Ed(h.current),zd(h,h.current,x,l),qe=z,ga(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(wt,h)}catch{}return!0}finally{K.p=o,R.T=r,Xd(e,t)}}function Qd(e,t,l){t=$t(l,t),t=Os(e.stateNode,t,2),e=Wn(e,t,2),e!==null&&(Li(e,2),gn(e))}function Xe(e,t,l){if(e.tag===3)Qd(e,e,l);else for(;t!==null;){if(t.tag===3){Qd(t,e,l);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(il===null||!il.has(r))){e=$t(l,e),l=Fh(2),r=Wn(t,l,2),r!==null&&(Zh(l,r,t,e),Li(r,2),gn(r));break}}t=t.return}}function io(e,t,l){var r=e.pingCache;if(r===null){r=e.pingCache=new qx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(l)||(Is=!0,o.add(l),e=Qx.bind(null,e,t,l),t.then(e,e))}function Qx(e,t,l){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ke===e&&(je&l)===l&&(nt===4||nt===3&&(je&62914560)===je&&300>De()-_r?(qe&2)===0&&yi(e,0):$s|=l,gi===je&&(gi=0)),gn(e)}function Fd(e,t){t===0&&(t=Hc()),e=zl(e,t),e!==null&&(Li(e,t),gn(e))}function Fx(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Fd(e,l)}function Zx(e,t){var l=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(l=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(u(314))}r!==null&&r.delete(t),Fd(e,l)}function Kx(e,t){return ne(e,t)}var Hr=null,vi=null,ao=!1,qr=!1,ro=!1,ul=0;function gn(e){e!==vi&&e.next===null&&(vi===null?Hr=vi=e:vi=vi.next=e),qr=!0,ao||(ao=!0,Ix())}function ga(e,t){if(!ro&&qr){ro=!0;do for(var l=!1,r=Hr;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var h=0;else{var x=r.suspendedLanes,z=r.pingedLanes;h=(1<<31-Ze(42|e)+1)-1,h&=o&~(x&~z),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(l=!0,Id(r,h))}else h=je,h=Ga(r,r===Ke?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(h&3)===0||Ri(r,h)||(l=!0,Id(r,h));r=r.next}while(l);ro=!1}}function Jx(){Zd()}function Zd(){qr=ao=!1;var e=0;ul!==0&&ry()&&(e=ul);for(var t=De(),l=null,r=Hr;r!==null;){var o=r.next,h=Kd(r,t);h===0?(r.next=null,l===null?Hr=o:l.next=o,o===null&&(vi=l)):(l=r,(e!==0||(h&3)!==0)&&(qr=!0)),r=o}ht!==0&&ht!==5||ga(e),ul!==0&&(ul=0)}function Kd(e,t){for(var l=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var x=31-Ze(h),z=1<<x,T=o[x];T===-1?((z&l)===0||(z&r)!==0)&&(o[x]=zg(z,t)):T<=t&&(e.expiredLanes|=z),h&=~z}if(t=Ke,l=je,l=Ga(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,l===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&de(r),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ri(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(r!==null&&de(r),Su(l)){case 2:case 8:l=ee;break;case 32:l=ge;break;case 268435456:l=Ue;break;default:l=ge}return r=Jd.bind(null,e),l=ne(l,r),e.callbackPriority=t,e.callbackNode=l,t}return r!==null&&r!==null&&de(r),e.callbackPriority=2,e.callbackNode=null,2}function Jd(e,t){if(ht!==0&&ht!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Br()&&e.callbackNode!==l)return null;var r=je;return r=Ga(e,e===Ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(jd(e,r,t),Kd(e,De()),e.callbackNode!=null&&e.callbackNode===l?Jd.bind(null,e):null)}function Id(e,t){if(Br())return null;jd(e,t,!0)}function Ix(){sy(function(){(qe&6)!==0?ne(V,Jx):Zd()})}function uo(){if(ul===0){var e=ai;e===0&&(e=Ya,Ya<<=1,(Ya&261888)===0&&(Ya=256)),ul=e}return ul}function $d(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ka(""+e)}function Wd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function $x(e,t,l,r,o){if(t==="submit"&&l&&l.stateNode===o){var h=$d((o[Nt]||null).action),x=r.submitter;x&&(t=(t=x[Nt]||null)?$d(t.formAction):x.getAttribute("formAction"),t!==null&&(h=t,x=null));var z=new Wa("action","action",null,r,o);e.push({event:z,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ul!==0){var T=x?Wd(o,x):new FormData(o);Cs(l,{pending:!0,data:T,method:o.method,action:h},null,T)}}else typeof h=="function"&&(z.preventDefault(),T=x?Wd(o,x):new FormData(o),Cs(l,{pending:!0,data:T,method:o.method,action:h},h,T))},currentTarget:o}]})}}for(var so=0;so<Gu.length;so++){var oo=Gu[so],Wx=oo.toLowerCase(),Px=oo[0].toUpperCase()+oo.slice(1);on(Wx,"on"+Px)}on(Af,"onAnimationEnd"),on(jf,"onAnimationIteration"),on(Mf,"onAnimationStart"),on("dblclick","onDoubleClick"),on("focusin","onFocus"),on("focusout","onBlur"),on(px,"onTransitionRun"),on(gx,"onTransitionStart"),on(xx,"onTransitionCancel"),on(_f,"onTransitionEnd"),Ql("onMouseEnter",["mouseout","mouseover"]),Ql("onMouseLeave",["mouseout","mouseover"]),Ql("onPointerEnter",["pointerout","pointerover"]),Ql("onPointerLeave",["pointerout","pointerover"]),yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xa="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(" "),ey=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xa));function Pd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var r=e[l],o=r.event;r=r.listeners;e:{var h=void 0;if(t)for(var x=r.length-1;0<=x;x--){var z=r[x],T=z.instance,O=z.currentTarget;if(z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=O;try{h(o)}catch(G){tr(G)}o.currentTarget=null,h=T}else for(x=0;x<r.length;x++){if(z=r[x],T=z.instance,O=z.currentTarget,z=z.listener,T!==h&&o.isPropagationStopped())break e;h=z,o.currentTarget=O;try{h(o)}catch(G){tr(G)}o.currentTarget=null,h=T}}}}function Ne(e,t){var l=t[zu];l===void 0&&(l=t[zu]=new Set);var r=e+"__bubble";l.has(r)||(em(t,e,2,!1),l.add(r))}function co(e,t,l){var r=0;t&&(r|=4),em(l,e,r,t)}var Yr="_reactListening"+Math.random().toString(36).slice(2);function fo(e){if(!e[Yr]){e[Yr]=!0,Fc.forEach(function(l){l!=="selectionchange"&&(ey.has(l)||co(l,!1,e),co(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yr]||(t[Yr]=!0,co("selectionchange",!1,t))}}function em(e,t,l,r){switch(Am(t)){case 2:var o=Ny;break;case 8:o=Ay;break;default:o=Co}l=o.bind(null,t,l,e),o=void 0,!Mu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,l,{capture:!0,passive:o}):e.addEventListener(t,l,!0):o!==void 0?e.addEventListener(t,l,{passive:o}):e.addEventListener(t,l,!1)}function ho(e,t,l,r,o){var h=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var x=r.tag;if(x===3||x===4){var z=r.stateNode.containerInfo;if(z===o)break;if(x===4)for(x=r.return;x!==null;){var T=x.tag;if((T===3||T===4)&&x.stateNode.containerInfo===o)return;x=x.return}for(;z!==null;){if(x=Vl(z),x===null)return;if(T=x.tag,T===5||T===6||T===26||T===27){r=h=x;continue e}z=z.parentNode}}r=r.return}af(function(){var O=h,G=Au(l),Z=[];e:{var L=Of.get(e);if(L!==void 0){var Y=Wa,ce=e;switch(e){case"keypress":if(Ia(l)===0)break e;case"keydown":case"keyup":Y=Zg;break;case"focusin":ce="focus",Y=Ru;break;case"focusout":ce="blur",Y=Ru;break;case"beforeblur":case"afterblur":Y=Ru;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Rg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=Ig;break;case Af:case jf:case Mf:Y=Bg;break;case _f:Y=Wg;break;case"scroll":case"scrollend":Y=Og;break;case"wheel":Y=ex;break;case"copy":case"cut":case"paste":Y=qg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=cf;break;case"toggle":case"beforetoggle":Y=nx}var xe=(t&4)!==0,Fe=!xe&&(e==="scroll"||e==="scrollend"),j=xe?L!==null?L+"Capture":null:L;xe=[];for(var N=O,_;N!==null;){var Q=N;if(_=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||_===null||j===null||(Q=Hi(N,j),Q!=null&&xe.push(ya(N,Q,_))),Fe)break;N=N.return}0<xe.length&&(L=new Y(L,ce,null,l,G),Z.push({event:L,listeners:xe}))}}if((t&7)===0){e:{if(L=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",L&&l!==Nu&&(ce=l.relatedTarget||l.fromElement)&&(Vl(ce)||ce[Yl]))break e;if((Y||L)&&(L=G.window===G?G:(L=G.ownerDocument)?L.defaultView||L.parentWindow:window,Y?(ce=l.relatedTarget||l.toElement,Y=O,ce=ce?Vl(ce):null,ce!==null&&(Fe=c(ce),xe=ce.tag,ce!==Fe||xe!==5&&xe!==27&&xe!==6)&&(ce=null)):(Y=null,ce=O),Y!==ce)){if(xe=sf,Q="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(xe=cf,Q="onPointerLeave",j="onPointerEnter",N="pointer"),Fe=Y==null?L:Bi(Y),_=ce==null?L:Bi(ce),L=new xe(Q,N+"leave",Y,l,G),L.target=Fe,L.relatedTarget=_,Q=null,Vl(G)===O&&(xe=new xe(j,N+"enter",ce,l,G),xe.target=_,xe.relatedTarget=Fe,Q=xe),Fe=Q,Y&&ce)t:{for(xe=ty,j=Y,N=ce,_=0,Q=j;Q;Q=xe(Q))_++;Q=0;for(var me=N;me;me=xe(me))Q++;for(;0<_-Q;)j=xe(j),_--;for(;0<Q-_;)N=xe(N),Q--;for(;_--;){if(j===N||N!==null&&j===N.alternate){xe=j;break t}j=xe(j),N=xe(N)}xe=null}else xe=null;Y!==null&&tm(Z,L,Y,xe,!1),ce!==null&&Fe!==null&&tm(Z,Fe,ce,xe,!0)}}e:{if(L=O?Bi(O):window,Y=L.nodeName&&L.nodeName.toLowerCase(),Y==="select"||Y==="input"&&L.type==="file")var Be=yf;else if(gf(L))if(bf)Be=hx;else{Be=cx;var fe=ox}else Y=L.nodeName,!Y||Y.toLowerCase()!=="input"||L.type!=="checkbox"&&L.type!=="radio"?O&&Cu(O.elementType)&&(Be=yf):Be=fx;if(Be&&(Be=Be(e,O))){xf(Z,Be,l,G);break e}fe&&fe(e,L,O),e==="focusout"&&O&&L.type==="number"&&O.memoizedProps.value!=null&&Tu(L,"number",L.value)}switch(fe=O?Bi(O):window,e){case"focusin":(gf(fe)||fe.contentEditable==="true")&&($l=fe,Yu=O,Zi=null);break;case"focusout":Zi=Yu=$l=null;break;case"mousedown":Vu=!0;break;case"contextmenu":case"mouseup":case"dragend":Vu=!1,Cf(Z,l,G);break;case"selectionchange":if(mx)break;case"keydown":case"keyup":Cf(Z,l,G)}var we;if(Uu)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Il?mf(e,l)&&(Me="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Me="onCompositionStart");Me&&(ff&&l.locale!=="ko"&&(Il||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Il&&(we=rf()):(Qn=G,_u="value"in Qn?Qn.value:Qn.textContent,Il=!0)),fe=Vr(O,Me),0<fe.length&&(Me=new of(Me,e,null,l,G),Z.push({event:Me,listeners:fe}),we?Me.data=we:(we=pf(l),we!==null&&(Me.data=we)))),(we=ix?ax(e,l):rx(e,l))&&(Me=Vr(O,"onBeforeInput"),0<Me.length&&(fe=new of("onBeforeInput","beforeinput",null,l,G),Z.push({event:fe,listeners:Me}),fe.data=we)),$x(Z,e,O,l,G)}Pd(Z,t)})}function ya(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Vr(e,t){for(var l=t+"Capture",r=[];e!==null;){var o=e,h=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||h===null||(o=Hi(e,l),o!=null&&r.unshift(ya(e,o,h)),o=Hi(e,t),o!=null&&r.push(ya(e,o,h))),e.tag===3)return r;e=e.return}return[]}function ty(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tm(e,t,l,r,o){for(var h=t._reactName,x=[];l!==null&&l!==r;){var z=l,T=z.alternate,O=z.stateNode;if(z=z.tag,T!==null&&T===r)break;z!==5&&z!==26&&z!==27||O===null||(T=O,o?(O=Hi(l,h),O!=null&&x.unshift(ya(l,O,T))):o||(O=Hi(l,h),O!=null&&x.push(ya(l,O,T)))),l=l.return}x.length!==0&&e.push({event:t,listeners:x})}var ny=/\r\n?/g,ly=/\u0000|\uFFFD/g;function nm(e){return(typeof e=="string"?e:""+e).replace(ny,`
49
- `).replace(ly,"")}function lm(e,t){return t=nm(t),nm(e)===t}function Qe(e,t,l,r,o,h){switch(l){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Zl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Zl(e,""+r);break;case"className":Fa(e,"class",r);break;case"tabIndex":Fa(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Fa(e,l,r);break;case"style":nf(e,r,h);break;case"data":if(t!=="object"){Fa(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ka(""+r),e.setAttribute(l,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(l,"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"&&(l==="formAction"?(t!=="input"&&Qe(e,t,"name",o.name,o,null),Qe(e,t,"formEncType",o.formEncType,o,null),Qe(e,t,"formMethod",o.formMethod,o,null),Qe(e,t,"formTarget",o.formTarget,o,null)):(Qe(e,t,"encType",o.encType,o,null),Qe(e,t,"method",o.method,o,null),Qe(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(l);break}r=Ka(""+r),e.setAttribute(l,r);break;case"onClick":r!=null&&(e.onclick=Sn);break;case"onScroll":r!=null&&Ne("scroll",e);break;case"onScrollEnd":r!=null&&Ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}l=Ka(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""+r):e.removeAttribute(l);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":r===!0?e.setAttribute(l,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(l,r):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(l,r):e.removeAttribute(l);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(l):e.setAttribute(l,r);break;case"popover":Ne("beforetoggle",e),Ne("toggle",e),Qa(e,"popover",r);break;case"xlinkActuate":vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":vn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":vn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":vn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":vn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Qa(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Mg.get(l)||l,Qa(e,l,r))}}function mo(e,t,l,r,o,h){switch(l){case"style":nf(e,r,h);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(u(61));if(l=r.__html,l!=null){if(o.children!=null)throw Error(u(60));e.innerHTML=l}}break;case"children":typeof r=="string"?Zl(e,r):(typeof r=="number"||typeof r=="bigint")&&Zl(e,""+r);break;case"onScroll":r!=null&&Ne("scroll",e);break;case"onScrollEnd":r!=null&&Ne("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(o=l.endsWith("Capture"),t=l.slice(2,o?l.length-7:void 0),h=e[Nt]||null,h=h!=null?h[l]:null,typeof h=="function"&&e.removeEventListener(t,h,o),typeof r=="function")){typeof h!="function"&&h!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,r,o);break e}l in e?e[l]=r:r===!0?e.setAttribute(l,""):Qa(e,l,r)}}}function vt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var r=!1,o=!1,h;for(h in l)if(l.hasOwnProperty(h)){var x=l[h];if(x!=null)switch(h){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Qe(e,t,h,x,l,null)}}o&&Qe(e,t,"srcSet",l.srcSet,l,null),r&&Qe(e,t,"src",l.src,l,null);return;case"input":Ne("invalid",e);var z=h=x=o=null,T=null,O=null;for(r in l)if(l.hasOwnProperty(r)){var G=l[r];if(G!=null)switch(r){case"name":o=G;break;case"type":x=G;break;case"checked":T=G;break;case"defaultChecked":O=G;break;case"value":h=G;break;case"defaultValue":z=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(u(137,t));break;default:Qe(e,t,r,G,l,null)}}Wc(e,h,z,T,O,x,o,!1);return;case"select":Ne("invalid",e),r=x=h=null;for(o in l)if(l.hasOwnProperty(o)&&(z=l[o],z!=null))switch(o){case"value":h=z;break;case"defaultValue":x=z;break;case"multiple":r=z;default:Qe(e,t,o,z,l,null)}t=h,l=x,e.multiple=!!r,t!=null?Fl(e,!!r,t,!1):l!=null&&Fl(e,!!r,l,!0);return;case"textarea":Ne("invalid",e),h=o=r=null;for(x in l)if(l.hasOwnProperty(x)&&(z=l[x],z!=null))switch(x){case"value":r=z;break;case"defaultValue":o=z;break;case"children":h=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(91));break;default:Qe(e,t,x,z,l,null)}ef(e,r,o,h);return;case"option":for(T in l)if(l.hasOwnProperty(T)&&(r=l[T],r!=null))switch(T){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Qe(e,t,T,r,l,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(r=0;r<xa.length;r++)Ne(xa[r],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(O in l)if(l.hasOwnProperty(O)&&(r=l[O],r!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Qe(e,t,O,r,l,null)}return;default:if(Cu(t)){for(G in l)l.hasOwnProperty(G)&&(r=l[G],r!==void 0&&mo(e,t,G,r,l,void 0));return}}for(z in l)l.hasOwnProperty(z)&&(r=l[z],r!=null&&Qe(e,t,z,r,l,null))}function iy(e,t,l,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,h=null,x=null,z=null,T=null,O=null,G=null;for(Y in l){var Z=l[Y];if(l.hasOwnProperty(Y)&&Z!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":T=Z;default:r.hasOwnProperty(Y)||Qe(e,t,Y,null,r,Z)}}for(var L in r){var Y=r[L];if(Z=l[L],r.hasOwnProperty(L)&&(Y!=null||Z!=null))switch(L){case"type":h=Y;break;case"name":o=Y;break;case"checked":O=Y;break;case"defaultChecked":G=Y;break;case"value":x=Y;break;case"defaultValue":z=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(u(137,t));break;default:Y!==Z&&Qe(e,t,L,Y,r,Z)}}Eu(e,x,z,T,O,G,h,o);return;case"select":Y=x=z=L=null;for(h in l)if(T=l[h],l.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":Y=T;default:r.hasOwnProperty(h)||Qe(e,t,h,null,r,T)}for(o in r)if(h=r[o],T=l[o],r.hasOwnProperty(o)&&(h!=null||T!=null))switch(o){case"value":L=h;break;case"defaultValue":z=h;break;case"multiple":x=h;default:h!==T&&Qe(e,t,o,h,r,T)}t=z,l=x,r=Y,L!=null?Fl(e,!!l,L,!1):!!r!=!!l&&(t!=null?Fl(e,!!l,t,!0):Fl(e,!!l,l?[]:"",!1));return;case"textarea":Y=L=null;for(z in l)if(o=l[z],l.hasOwnProperty(z)&&o!=null&&!r.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Qe(e,t,z,null,r,o)}for(x in r)if(o=r[x],h=l[x],r.hasOwnProperty(x)&&(o!=null||h!=null))switch(x){case"value":L=o;break;case"defaultValue":Y=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(u(91));break;default:o!==h&&Qe(e,t,x,o,r,h)}Pc(e,L,Y);return;case"option":for(var ce in l)if(L=l[ce],l.hasOwnProperty(ce)&&L!=null&&!r.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:Qe(e,t,ce,null,r,L)}for(T in r)if(L=r[T],Y=l[T],r.hasOwnProperty(T)&&L!==Y&&(L!=null||Y!=null))switch(T){case"selected":e.selected=L&&typeof L!="function"&&typeof L!="symbol";break;default:Qe(e,t,T,L,r,Y)}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 xe in l)L=l[xe],l.hasOwnProperty(xe)&&L!=null&&!r.hasOwnProperty(xe)&&Qe(e,t,xe,null,r,L);for(O in r)if(L=r[O],Y=l[O],r.hasOwnProperty(O)&&L!==Y&&(L!=null||Y!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(u(137,t));break;default:Qe(e,t,O,L,r,Y)}return;default:if(Cu(t)){for(var Fe in l)L=l[Fe],l.hasOwnProperty(Fe)&&L!==void 0&&!r.hasOwnProperty(Fe)&&mo(e,t,Fe,void 0,r,L);for(G in r)L=r[G],Y=l[G],!r.hasOwnProperty(G)||L===Y||L===void 0&&Y===void 0||mo(e,t,G,L,r,Y);return}}for(var j in l)L=l[j],l.hasOwnProperty(j)&&L!=null&&!r.hasOwnProperty(j)&&Qe(e,t,j,null,r,L);for(Z in r)L=r[Z],Y=l[Z],!r.hasOwnProperty(Z)||L===Y||L==null&&Y==null||Qe(e,t,Z,L,r,Y)}function im(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ay(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),r=0;r<l.length;r++){var o=l[r],h=o.transferSize,x=o.initiatorType,z=o.duration;if(h&&z&&im(x)){for(x=0,z=o.responseEnd,r+=1;r<l.length;r++){var T=l[r],O=T.startTime;if(O>z)break;var G=T.transferSize,Z=T.initiatorType;G&&im(Z)&&(T=T.responseEnd,x+=G*(T<z?1:(z-O)/(T-O)))}if(--r,t+=8*(h+x)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var po=null,go=null;function Xr(e){return e.nodeType===9?e:e.ownerDocument}function am(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 rm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var yo=null;function ry(){var e=window.event;return e&&e.type==="popstate"?e===yo?!1:(yo=e,!0):(yo=null,!1)}var um=typeof setTimeout=="function"?setTimeout:void 0,uy=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,sy=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(oy)}:um;function oy(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function om(e,t){var l=t,r=0;do{var o=l.nextSibling;if(e.removeChild(l),o&&o.nodeType===8)if(l=o.data,l==="/$"||l==="/&"){if(r===0){e.removeChild(o),wi(t);return}r--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")r++;else if(l==="html")ba(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ba(l);for(var h=l.firstChild;h;){var x=h.nextSibling,z=h.nodeName;h[Ui]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&h.rel.toLowerCase()==="stylesheet"||l.removeChild(h),h=x}}else l==="body"&&ba(e.ownerDocument.body);l=o}while(l);wi(t)}function cm(e,t){var l=e;e=0;do{var r=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),r&&r.nodeType===8)if(l=r.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=r}while(l)}function bo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":bo(l),ku(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function cy(e,t,l,r){for(;e.nodeType===1;){var o=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Ui])switch(t){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!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var h=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=nn(e.nextSibling),e===null)break}return null}function fy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=nn(e.nextSibling),e===null))return null;return e}function fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nn(e.nextSibling),e===null))return null;return e}function vo(e){return e.data==="$?"||e.data==="$~"}function So(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function hy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var r=function(){t(),l.removeEventListener("DOMContentLoaded",r)};l.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function nn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zo=null;function hm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return nn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function dm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function mm(e,t,l){switch(t=Xr(l),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function ba(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ku(e)}var ln=new Map,pm=new Set;function Gr(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Un=K.d;K.d={f:dy,r:my,D:py,C:gy,L:xy,m:yy,X:vy,S:by,M:Sy};function dy(){var e=Un.f(),t=Rr();return e||t}function my(e){var t=Xl(e);t!==null&&t.tag===5&&t.type==="form"?_h(t):Un.r(e)}var Si=typeof document>"u"?null:document;function gm(e,t,l){var r=Si;if(r&&typeof t=="string"&&t){var o=Jt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof l=="string"&&(o+='[crossorigin="'+l+'"]'),pm.has(o)||(pm.add(o),e={rel:e,crossOrigin:l,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),vt(t,"link",e),dt(t),r.head.appendChild(t)))}}function py(e){Un.D(e),gm("dns-prefetch",e,null)}function gy(e,t){Un.C(e,t),gm("preconnect",e,t)}function xy(e,t,l){Un.L(e,t,l);var r=Si;if(r&&e&&t){var o='link[rel="preload"][as="'+Jt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(o+='[imagesrcset="'+Jt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(o+='[imagesizes="'+Jt(l.imageSizes)+'"]')):o+='[href="'+Jt(e)+'"]';var h=o;switch(t){case"style":h=zi(e);break;case"script":h=ki(e)}ln.has(h)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),ln.set(h,e),r.querySelector(o)!==null||t==="style"&&r.querySelector(va(h))||t==="script"&&r.querySelector(Sa(h))||(t=r.createElement("link"),vt(t,"link",e),dt(t),r.head.appendChild(t)))}}function yy(e,t){Un.m(e,t);var l=Si;if(l&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Jt(r)+'"][href="'+Jt(e)+'"]',h=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=ki(e)}if(!ln.has(h)&&(e=g({rel:"modulepreload",href:e},t),ln.set(h,e),l.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sa(h)))return}r=l.createElement("link"),vt(r,"link",e),dt(r),l.head.appendChild(r)}}}function by(e,t,l){Un.S(e,t,l);var r=Si;if(r&&e){var o=Gl(r).hoistableStyles,h=zi(e);t=t||"default";var x=o.get(h);if(!x){var z={loading:0,preload:null};if(x=r.querySelector(va(h)))z.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=ln.get(h))&&ko(e,l);var T=x=r.createElement("link");dt(T),vt(T,"link",e),T._p=new Promise(function(O,G){T.onload=O,T.onerror=G}),T.addEventListener("load",function(){z.loading|=1}),T.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Qr(x,t,r)}x={type:"stylesheet",instance:x,count:1,state:z},o.set(h,x)}}}function vy(e,t){Un.X(e,t);var l=Si;if(l&&e){var r=Gl(l).hoistableScripts,o=ki(e),h=r.get(o);h||(h=l.querySelector(Sa(o)),h||(e=g({src:e,async:!0},t),(t=ln.get(o))&&wo(e,t),h=l.createElement("script"),dt(h),vt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function Sy(e,t){Un.M(e,t);var l=Si;if(l&&e){var r=Gl(l).hoistableScripts,o=ki(e),h=r.get(o);h||(h=l.querySelector(Sa(o)),h||(e=g({src:e,async:!0,type:"module"},t),(t=ln.get(o))&&wo(e,t),h=l.createElement("script"),dt(h),vt(h,"link",e),l.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},r.set(o,h))}}function xm(e,t,l,r){var o=(o=ue.current)?Gr(o):null;if(!o)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=zi(l.href),l=Gl(o).hoistableStyles,r=l.get(t),r||(r={type:"style",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=zi(l.href);var h=Gl(o).hoistableStyles,x=h.get(e);if(x||(o=o.ownerDocument||o,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,x),(h=o.querySelector(va(e)))&&!h._p&&(x.instance=h,x.state.loading=5),ln.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},ln.set(e,l),h||zy(o,e,l,x.state))),t&&r===null)throw Error(u(528,""));return x}if(t&&r!==null)throw Error(u(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ki(l),l=Gl(o).hoistableScripts,r=l.get(t),r||(r={type:"script",instance:null,count:0,state:null},l.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function zi(e){return'href="'+Jt(e)+'"'}function va(e){return'link[rel="stylesheet"]['+e+"]"}function ym(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function zy(e,t,l,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),vt(t,"link",l),dt(t),e.head.appendChild(t))}function ki(e){return'[src="'+Jt(e)+'"]'}function Sa(e){return"script[async]"+e}function bm(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Jt(l.href)+'"]');if(r)return t.instance=r,dt(r),r;var o=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),dt(r),vt(r,"style",o),Qr(r,l.precedence,e),t.instance=r;case"stylesheet":o=zi(l.href);var h=e.querySelector(va(o));if(h)return t.state.loading|=4,t.instance=h,dt(h),h;r=ym(l),(o=ln.get(o))&&ko(r,o),h=(e.ownerDocument||e).createElement("link"),dt(h);var x=h;return x._p=new Promise(function(z,T){x.onload=z,x.onerror=T}),vt(h,"link",r),t.state.loading|=4,Qr(h,l.precedence,e),t.instance=h;case"script":return h=ki(l.src),(o=e.querySelector(Sa(h)))?(t.instance=o,dt(o),o):(r=l,(o=ln.get(h))&&(r=g({},l),wo(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),dt(o),vt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Qr(r,l.precedence,e));return t.instance}function Qr(e,t,l){for(var r=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,h=o,x=0;x<r.length;x++){var z=r[x];if(z.dataset.precedence===t)h=z;else if(h!==o)break}h?h.parentNode.insertBefore(e,h.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function ko(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function wo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fr=null;function vm(e,t,l){if(Fr===null){var r=new Map,o=Fr=new Map;o.set(l,r)}else o=Fr,r=o.get(l),r||(r=new Map,o.set(l,r));if(r.has(e))return r;for(r.set(e,null),l=l.getElementsByTagName(e),o=0;o<l.length;o++){var h=l[o];if(!(h[Ui]||h[gt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(t)||"";x=e+x;var z=r.get(x);z?z.push(h):r.set(x,[h])}}return r}function Sm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function ky(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function zm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function wy(e,t,l,r){if(l.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var o=zi(r.href),h=t.querySelector(va(o));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Zr.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=h,dt(h);return}h=t.ownerDocument||t,r=ym(r),(o=ln.get(o))&&ko(r,o),h=h.createElement("link"),dt(h);var x=h;x._p=new Promise(function(z,T){x.onload=z,x.onerror=T}),vt(h,"link",r),l.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Zr.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Eo=0;function Ey(e,t){return e.stylesheets&&e.count===0&&Jr(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var r=setTimeout(function(){if(e.stylesheets&&Jr(e,e.stylesheets),e.unsuspend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+t);0<e.imgBytes&&Eo===0&&(Eo=62500*ay());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Jr(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>Eo?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Zr(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Kr=null;function Jr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kr=new Map,t.forEach(Ty,e),Kr=null,Zr.call(e))}function Ty(e,t){if(!(t.state.loading&4)){var l=Kr.get(e);if(l)var r=l.get(null);else{l=new Map,Kr.set(e,l);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<o.length;h++){var x=o[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),r=x)}r&&l.set(null,r)}o=t.instance,x=o.getAttribute("data-precedence"),h=l.get(x)||r,h===r&&l.set(null,o),l.set(x,o),this.count++,r=Zr.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),h?h.parentNode.insertBefore(o,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var za={$$typeof:H,Provider:null,Consumer:null,_currentValue:oe,_currentValue2:oe,_threadCount:0};function Cy(e,t,l,r,o,h,x,z,T){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=bu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bu(0),this.hiddenUpdates=bu(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function km(e,t,l,r,o,h,x,z,T,O,G,Z){return e=new Cy(e,t,l,x,T,O,G,Z,z),t=1,h===!0&&(t|=24),h=qt(3,null,null,t),e.current=h,h.stateNode=e,t=ls(),t.refCount++,e.pooledCache=t,t.refCount++,h.memoizedState={element:r,isDehydrated:l,cache:t},us(h),e}function wm(e){return e?(e=ei,e):ei}function Em(e,t,l,r,o,h){o=wm(o),r.context===null?r.context=o:r.pendingContext=o,r=$n(t),r.payload={element:l},h=h===void 0?null:h,h!==null&&(r.callback=h),l=Wn(e,r,t),l!==null&&(Dt(l,e,t),ea(l,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function To(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=zl(e,67108864);t!==null&&Dt(t,e,67108864),To(e,67108864)}}function Nm(e){if(e.tag===13||e.tag===31){var t=Qt();t=vu(t);var l=zl(e,t);l!==null&&Dt(l,e,t),To(e,t)}}var Ir=!0;function Ny(e,t,l,r){var o=R.T;R.T=null;var h=K.p;try{K.p=2,Co(e,t,l,r)}finally{K.p=h,R.T=o}}function Ay(e,t,l,r){var o=R.T;R.T=null;var h=K.p;try{K.p=8,Co(e,t,l,r)}finally{K.p=h,R.T=o}}function Co(e,t,l,r){if(Ir){var o=No(r);if(o===null)ho(e,t,r,$r,l),jm(e,r);else if(My(o,e,t,l,r))r.stopPropagation();else if(jm(e,r),t&4&&-1<jy.indexOf(e)){for(;o!==null;){var h=Xl(o);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=xl(h.pendingLanes);if(x!==0){var z=h;for(z.pendingLanes|=2,z.entangledLanes|=2;x;){var T=1<<31-Ze(x);z.entanglements[1]|=T,x&=~T}gn(h),(qe&6)===0&&(Or=De()+500,ga(0))}}break;case 31:case 13:z=zl(h,2),z!==null&&Dt(z,h,2),Rr(),To(h,2)}if(h=No(r),h===null&&ho(e,t,r,$r,l),h===o)break;o=h}o!==null&&r.stopPropagation()}else ho(e,t,r,null,l)}}function No(e){return e=Au(e),Ao(e)}var $r=null;function Ao(e){if($r=null,e=Vl(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=f(t),e!==null)return e;e=null}else if(l===31){if(e=d(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $r=e,null}function Am(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(at()){case V:return 2;case ee:return 8;case ge:case Te:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var jo=!1,ol=null,cl=null,fl=null,ka=new Map,wa=new Map,hl=[],jy="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 jm(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":ka.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wa.delete(t.pointerId)}}function Ea(e,t,l,r,o,h){return e===null||e.nativeEvent!==h?(e={blockedOn:t,domEventName:l,eventSystemFlags:r,nativeEvent:h,targetContainers:[o]},t!==null&&(t=Xl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function My(e,t,l,r,o){switch(t){case"focusin":return ol=Ea(ol,e,t,l,r,o),!0;case"dragenter":return cl=Ea(cl,e,t,l,r,o),!0;case"mouseover":return fl=Ea(fl,e,t,l,r,o),!0;case"pointerover":var h=o.pointerId;return ka.set(h,Ea(ka.get(h)||null,e,t,l,r,o)),!0;case"gotpointercapture":return h=o.pointerId,wa.set(h,Ea(wa.get(h)||null,e,t,l,r,o)),!0}return!1}function Mm(e){var t=Vl(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=f(l),t!==null){e.blockedOn=t,Gc(e.priority,function(){Nm(l)});return}}else if(t===31){if(t=d(l),t!==null){e.blockedOn=t,Gc(e.priority,function(){Nm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Wr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=No(e.nativeEvent);if(l===null){l=e.nativeEvent;var r=new l.constructor(l.type,l);Nu=r,l.target.dispatchEvent(r),Nu=null}else return t=Xl(l),t!==null&&Cm(t),e.blockedOn=l,!1;t.shift()}return!0}function _m(e,t,l){Wr(e)&&l.delete(t)}function _y(){jo=!1,ol!==null&&Wr(ol)&&(ol=null),cl!==null&&Wr(cl)&&(cl=null),fl!==null&&Wr(fl)&&(fl=null),ka.forEach(_m),wa.forEach(_m)}function Pr(e,t){e.blockedOn===t&&(e.blockedOn=null,jo||(jo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_y)))}var eu=null;function Om(e){eu!==e&&(eu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){eu===e&&(eu=null);for(var t=0;t<e.length;t+=3){var l=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(Ao(r||l)===null)continue;break}var h=Xl(l);h!==null&&(e.splice(t,3),t-=3,Cs(h,{pending:!0,data:o,method:l.method,action:r},r,o))}}))}function wi(e){function t(T){return Pr(T,e)}ol!==null&&Pr(ol,e),cl!==null&&Pr(cl,e),fl!==null&&Pr(fl,e),ka.forEach(t),wa.forEach(t);for(var l=0;l<hl.length;l++){var r=hl[l];r.blockedOn===e&&(r.blockedOn=null)}for(;0<hl.length&&(l=hl[0],l.blockedOn===null);)Mm(l),l.blockedOn===null&&hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(r=0;r<l.length;r+=3){var o=l[r],h=l[r+1],x=o[Nt]||null;if(typeof h=="function")x||Om(l);else if(x){var z=null;if(h&&h.hasAttribute("formAction")){if(o=h,x=h[Nt]||null)z=x.formAction;else if(Ao(o)!==null)continue}else z=x.action;typeof z=="function"?l[r+1]=z:(l.splice(r,3),r-=3),Om(l)}}}function Dm(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(x){return o=x})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(l,20)}function l(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Mo(e){this._internalRoot=e}tu.prototype.render=Mo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var l=t.current,r=Qt();Em(l,r,e,t,null,null)},tu.prototype.unmount=Mo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Em(e.current,2,null,e,null,null),Rr(),t[Yl]=null}};function tu(e){this._internalRoot=e}tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<hl.length&&t!==0&&t<hl[l].priority;l++);hl.splice(l,0,e),l===0&&Mm(e)}};var Rm=a.version;if(Rm!=="19.2.4")throw Error(u(527,Rm,"19.2.4"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=m(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var Oy={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{wt=nu.inject(Oy),ft=nu}catch{}}return Ca.createRoot=function(e,t){if(!s(e))throw Error(u(299));var l=!1,r="",o=Vh,h=Xh,x=Gh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(h=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=km(e,1,!1,null,null,l,r,null,o,h,x,Dm),e[Yl]=t.current,fo(e),new Mo(t)},Ca.hydrateRoot=function(e,t,l){if(!s(e))throw Error(u(299));var r=!1,o="",h=Vh,x=Xh,z=Gh,T=null;return l!=null&&(l.unstable_strictMode===!0&&(r=!0),l.identifierPrefix!==void 0&&(o=l.identifierPrefix),l.onUncaughtError!==void 0&&(h=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(z=l.onRecoverableError),l.formState!==void 0&&(T=l.formState)),t=km(e,1,!0,t,l??null,r,o,T,h,x,z,Dm),t.context=wm(null),l=t.current,r=Qt(),r=vu(r),o=$n(r),o.callback=null,Wn(l,o,r),l=r,t.current.lanes=l,Li(t,l),gn(t),e[Yl]=t.current,fo(e),new tu(t)},Ca.version="19.2.4",Ca}var Qm;function Vy(){if(Qm)return Do.exports;Qm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Do.exports=Yy(),Do.exports}var Xy=Vy();/**
50
- * @license lucide-react v0.562.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const Gy=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qy=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,u)=>u?u.toUpperCase():i.toLowerCase()),Fm=n=>{const a=Qy(n);return a.charAt(0).toUpperCase()+a.slice(1)},$p=(...n)=>n.filter((a,i,u)=>!!a&&a.trim()!==""&&u.indexOf(a)===i).join(" ").trim(),Fy=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
55
- * @license lucide-react v0.562.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var Zy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
60
- * @license lucide-react v0.562.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const Ky=J.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:u,className:s="",children:c,iconNode:f,...d},p)=>J.createElement("svg",{ref:p,...Zy,width:a,height:a,stroke:n,strokeWidth:u?Number(i)*24/Number(a):i,className:$p("lucide",s),...!c&&!Fy(d)&&{"aria-hidden":"true"},...d},[...f.map(([m,y])=>J.createElement(m,y)),...Array.isArray(c)?c:[c]]));/**
65
- * @license lucide-react v0.562.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const Oe=(n,a)=>{const i=J.forwardRef(({className:u,...s},c)=>J.createElement(Ky,{ref:c,iconNode:a,className:$p(`lucide-${Gy(Fm(n))}`,`lucide-${n}`,u),...s}));return i.displayName=Fm(n),i};/**
70
- * @license lucide-react v0.562.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const Jy=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Iy=Oe("arrow-right",Jy);/**
75
- * @license lucide-react v0.562.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const $y=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Wp=Oe("bot",$y);/**
80
- * @license lucide-react v0.562.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const Wy=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ua=Oe("check",Wy);/**
85
- * @license lucide-react v0.562.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const Py=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Pp=Oe("circle-check",Py);/**
90
- * @license lucide-react v0.562.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const e1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],t1=Oe("circle-question-mark",e1);/**
95
- * @license lucide-react v0.562.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const n1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l1=Oe("circle",n1);/**
100
- * @license lucide-react v0.562.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const i1=[["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"}]],xc=Oe("copy",i1);/**
105
- * @license lucide-react v0.562.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const a1=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],r1=Oe("database",a1);/**
110
- * @license lucide-react v0.562.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const u1=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],yc=Oe("download",u1);/**
115
- * @license lucide-react v0.562.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const s1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],e0=Oe("file-code",s1);/**
120
- * @license lucide-react v0.562.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const o1=[["path",{d:"M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34",key:"o6klzx"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z",key:"zhnas1"}]],c1=Oe("file-pen",o1);/**
125
- * @license lucide-react v0.562.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const f1=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],t0=Oe("file-plus-corner",f1);/**
130
- * @license lucide-react v0.562.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const h1=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],n0=Oe("file-text",h1);/**
135
- * @license lucide-react v0.562.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const d1=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],bc=Oe("folder-open",d1);/**
140
- * @license lucide-react v0.562.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const m1=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],p1=Oe("git-branch",m1);/**
145
- * @license lucide-react v0.562.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const g1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],x1=Oe("globe",g1);/**
150
- * @license lucide-react v0.562.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const y1=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],b1=Oe("hard-drive",y1);/**
155
- * @license lucide-react v0.562.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const v1=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],S1=Oe("lightbulb",v1);/**
160
- * @license lucide-react v0.562.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const z1=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],l0=Oe("list-todo",z1);/**
165
- * @license lucide-react v0.562.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const k1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],i0=Oe("loader-circle",k1);/**
170
- * @license lucide-react v0.562.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const w1=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],E1=Oe("message-square",w1);/**
175
- * @license lucide-react v0.562.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const T1=[["path",{d:"M5 12h14",key:"1ays0h"}]],C1=Oe("minus",T1);/**
180
- * @license lucide-react v0.562.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const N1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],A1=Oe("panel-left",N1);/**
185
- * @license lucide-react v0.562.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const j1=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],M1=Oe("pause",j1);/**
190
- * @license lucide-react v0.562.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const _1=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],O1=Oe("pencil",_1);/**
195
- * @license lucide-react v0.562.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const D1=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],a0=Oe("play",D1);/**
200
- * @license lucide-react v0.562.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const R1=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],L1=Oe("plus",R1);/**
205
- * @license lucide-react v0.562.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const U1=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],B1=Oe("refresh-cw",U1);/**
210
- * @license lucide-react v0.562.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const H1=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ou=Oe("search",H1);/**
215
- * @license lucide-react v0.562.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */const q1=[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],lc=Oe("square-check-big",q1);/**
220
- * @license lucide-react v0.562.0 - ISC
221
- *
222
- * This source code is licensed under the ISC license.
223
- * See the LICENSE file in the root directory of this source tree.
224
- */const Y1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],r0=Oe("square",Y1);/**
225
- * @license lucide-react v0.562.0 - ISC
226
- *
227
- * This source code is licensed under the ISC license.
228
- * See the LICENSE file in the root directory of this source tree.
229
- */const V1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],u0=Oe("terminal",V1);/**
230
- * @license lucide-react v0.562.0 - ISC
231
- *
232
- * This source code is licensed under the ISC license.
233
- * See the LICENSE file in the root directory of this source tree.
234
- */const X1=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],G1=Oe("triangle-alert",X1);/**
235
- * @license lucide-react v0.562.0 - ISC
236
- *
237
- * This source code is licensed under the ISC license.
238
- * See the LICENSE file in the root directory of this source tree.
239
- */const Q1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],F1=Oe("wrench",Q1);/**
240
- * @license lucide-react v0.562.0 - ISC
241
- *
242
- * This source code is licensed under the ISC license.
243
- * See the LICENSE file in the root directory of this source tree.
244
- */const Z1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],vc=Oe("x",Z1);function s0(n){const a=new Date(n),u=new Date().getTime()-a.getTime(),s=Math.floor(u/6e4),c=Math.floor(u/36e5),f=Math.floor(u/864e5);return s<1?"Just now":s<60?`${s}m`:c<24?`${c}h`:f<7?`${f}d`:a.toLocaleDateString()}function Zm(n){if(!Number.isFinite(n))return"";const a=new Date(n),i=new Date,s=a.getFullYear()===i.getFullYear()?{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"};return new Intl.DateTimeFormat(void 0,s).format(a)}function o0(n){return n?n.replace(/^\/Users\/[^/]+/,"~").replace(/^\/home\/[^/]+/,"~"):""}const K1=[/<command-name>[^<]*<\/command-name>/g,/<command-message>[^<]*<\/command-message>/g,/<command-args>[^<]*<\/command-args>/g,/<local-command-stdout>[^<]*<\/local-command-stdout>/g,/<system-reminder>[\s\S]*?<\/system-reminder>/g,/^\s*Caveat:.*?unless the user explicitly asks you to\./s];function Lt(n){if(!n)return"";let a=n;for(const i of K1)a=a.replace(i,"");return a.trim()}var J1=Ip();function Ei(n,a,i){let u=i.initialDeps??[],s,c=!0;function f(){var d,p,m;let y;i.key&&((d=i.debug)!=null&&d.call(i))&&(y=Date.now());const g=n();if(!(g.length!==u.length||g.some((w,M)=>u[M]!==w)))return s;u=g;let v;if(i.key&&((p=i.debug)!=null&&p.call(i))&&(v=Date.now()),s=a(...g),i.key&&((m=i.debug)!=null&&m.call(i))){const w=Math.round((Date.now()-y)*100)/100,M=Math.round((Date.now()-v)*100)/100,B=M/16,A=(q,H)=>{for(q=String(q);q.length<H;)q=" "+q;return q};console.info(`%c⏱ ${A(M,5)} /${A(w,5)} ms`,`
245
- font-size: .6rem;
246
- font-weight: bold;
247
- color: hsl(${Math.max(0,Math.min(120-120*B,120))}deg 100% 31%);`,i==null?void 0:i.key)}return i!=null&&i.onChange&&!(c&&i.skipInitialOnChange)&&i.onChange(s),c=!1,s}return f.updateDeps=d=>{u=d},f}function Km(n,a){if(n===void 0)throw new Error("Unexpected undefined");return n}const I1=(n,a)=>Math.abs(n-a)<1.01,$1=(n,a,i)=>{let u;return function(...s){n.clearTimeout(u),u=n.setTimeout(()=>a.apply(this,s),i)}},Jm=n=>{const{offsetWidth:a,offsetHeight:i}=n;return{width:a,height:i}},W1=n=>n,P1=n=>{const a=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),u=[];for(let s=a;s<=i;s++)u.push(s);return u},eb=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;const s=f=>{const{width:d,height:p}=f;a({width:Math.round(d),height:Math.round(p)})};if(s(Jm(i)),!u.ResizeObserver)return()=>{};const c=new u.ResizeObserver(f=>{const d=()=>{const p=f[0];if(p!=null&&p.borderBoxSize){const m=p.borderBoxSize[0];if(m){s({width:m.inlineSize,height:m.blockSize});return}}s(Jm(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()});return c.observe(i,{box:"border-box"}),()=>{c.unobserve(i)}},Im={passive:!0},$m=typeof window>"u"?!0:"onscrollend"in window,tb=(n,a)=>{const i=n.scrollElement;if(!i)return;const u=n.targetWindow;if(!u)return;let s=0;const c=n.options.useScrollendEvent&&$m?()=>{}:$1(u,()=>{a(s,!1)},n.options.isScrollingResetDelay),f=y=>()=>{const{horizontal:g,isRtl:S}=n.options;s=g?i.scrollLeft*(S&&-1||1):i.scrollTop,c(),a(s,y)},d=f(!0),p=f(!1);i.addEventListener("scroll",d,Im);const m=n.options.useScrollendEvent&&$m;return m&&i.addEventListener("scrollend",p,Im),()=>{i.removeEventListener("scroll",d),m&&i.removeEventListener("scrollend",p)}},nb=(n,a,i)=>{if(a!=null&&a.borderBoxSize){const u=a.borderBoxSize[0];if(u)return Math.round(u[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},lb=(n,{adjustments:a=0,behavior:i},u)=>{var s,c;const f=n+a;(c=(s=u.scrollElement)==null?void 0:s.scrollTo)==null||c.call(s,{[u.options.horizontal?"left":"top"]:f,behavior:i})};class ib{constructor(a){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const u=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(s=>{s.forEach(c=>{const f=()=>{this._measureElement(c.target,c)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(f):f()})}));return{disconnect:()=>{var s;(s=u())==null||s.disconnect(),i=null},observe:s=>{var c;return(c=u())==null?void 0:c.observe(s,{box:"border-box"})},unobserve:s=>{var c;return(c=u())==null?void 0:c.unobserve(s)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([u,s])=>{typeof s>"u"&&delete i[u]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:W1,rangeExtractor:P1,onChange:()=>{},measureElement:nb,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var u,s;(s=(u=this.options).onChange)==null||s.call(u,this,i)},this.maybeNotify=Ei(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const u=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==u){if(this.cleanup(),!u){this.maybeNotify();return}this.scrollElement=u,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(s=>{this.observer.observe(s)}),this.unsubs.push(this.options.observeElementRect(this,s=>{this.scrollRect=s,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(s,c)=>{this.scrollAdjustments=0,this.scrollDirection=c?this.getScrollOffset()<s?"forward":"backward":null,this.scrollOffset=s,this.isScrolling=c,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,u)=>{const s=new Map,c=new Map;for(let f=u-1;f>=0;f--){const d=i[f];if(s.has(d.lane))continue;const p=c.get(d.lane);if(p==null||d.end>p.end?c.set(d.lane,d):d.end<p.end&&s.set(d.lane,!0),s.size===this.options.lanes)break}return c.size===this.options.lanes?Array.from(c.values()).sort((f,d)=>f.end===d.end?f.index-d.index:f.end-d.end)[0]:void 0},this.getMeasurementOptions=Ei(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(i,u,s,c,f,d)=>(this.prevLanes!==void 0&&this.prevLanes!==d&&(this.lanesChangedFlag=!0),this.prevLanes=d,this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:u,scrollMargin:s,getItemKey:c,enabled:f,lanes:d}),{key:!1}),this.getMeasurements=Ei(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:u,scrollMargin:s,getItemKey:c,enabled:f,lanes:d},p)=>{if(!f)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>i)for(const S of this.laneAssignments.keys())S>=i&&this.laneAssignments.delete(S);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(S=>{this.itemSizeCache.set(S.key,S.size)}));const m=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===i&&(this.lanesSettling=!1);const y=this.measurementsCache.slice(0,m),g=new Array(d).fill(void 0);for(let S=0;S<m;S++){const v=y[S];v&&(g[v.lane]=S)}for(let S=m;S<i;S++){const v=c(S),w=this.laneAssignments.get(S);let M,B;if(w!==void 0&&this.options.lanes>1){M=w;const te=g[M],ie=te!==void 0?y[te]:void 0;B=ie?ie.end+this.options.gap:u+s}else{const te=this.options.lanes===1?y[S-1]:this.getFurthestMeasurement(y,S);B=te?te.end+this.options.gap:u+s,M=te?te.lane:S%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(S,M)}const A=p.get(v),q=typeof A=="number"?A:this.options.estimateSize(S),H=B+q;y[S]={index:S,start:B,size:q,end:H,key:v,lane:M},g[M]=S}return this.measurementsCache=y,y},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ei(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,u,s,c)=>this.range=i.length>0&&u>0?ab({measurements:i,outerSize:u,scrollOffset:s,lanes:c}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ei(()=>{let i=null,u=null;const s=this.calculateRange();return s&&(i=s.startIndex,u=s.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,u]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,u]},(i,u,s,c,f)=>c===null||f===null?[]:i({startIndex:c,endIndex:f,overscan:u,count:s}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const u=this.options.indexAttribute,s=i.getAttribute(u);return s?parseInt(s,10):(console.warn(`Missing attribute name '${u}={index}' on measured element.`),-1)},this._measureElement=(i,u)=>{const s=this.indexFromElement(i),c=this.measurementsCache[s];if(!c)return;const f=c.key,d=this.elementsCache.get(f);d!==i&&(d&&this.observer.unobserve(d),this.observer.observe(i),this.elementsCache.set(f,i)),i.isConnected&&this.resizeItem(s,this.options.measureElement(i,u,this))},this.resizeItem=(i,u)=>{const s=this.measurementsCache[i];if(!s)return;const c=this.itemSizeCache.get(s.key)??s.size,f=u-c;f!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,f,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=f,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,u)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((u,s)=>{u.isConnected||(this.observer.unobserve(u),this.elementsCache.delete(s))});return}this._measureElement(i,void 0)},this.getVirtualItems=Ei(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,u)=>{const s=[];for(let c=0,f=i.length;c<f;c++){const d=i[c],p=u[d];s.push(p)}return s},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const u=this.getMeasurements();if(u.length!==0)return Km(u[c0(0,u.length-1,s=>Km(u[s]).start,i)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const i=this.scrollElement.document.documentElement;return this.options.horizontal?i.scrollWidth-this.scrollElement.innerWidth:i.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(i,u,s=0)=>{if(!this.scrollElement)return 0;const c=this.getSize(),f=this.getScrollOffset();u==="auto"&&(u=i>=f+c?"end":"start"),u==="center"?i+=(s-c)/2:u==="end"&&(i-=c);const d=this.getMaxScrollOffset();return Math.max(Math.min(d,i),0)},this.getOffsetForIndex=(i,u="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const s=this.measurementsCache[i];if(!s)return;const c=this.getSize(),f=this.getScrollOffset();if(u==="auto")if(s.end>=f+c-this.options.scrollPaddingEnd)u="end";else if(s.start<=f+this.options.scrollPaddingStart)u="start";else return[f,u];if(u==="end"&&i===this.options.count-1)return[this.getMaxScrollOffset(),u];const d=u==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(d,u,s.size),u]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:u="start",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,u),{adjustments:void 0,behavior:s})},this.scrollToIndex=(i,{align:u="auto",behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1)),this.currentScrollToIndex=i;let c=0;const f=10,d=m=>{if(!this.targetWindow)return;const y=this.getOffsetForIndex(i,m);if(!y){console.warn("Failed to get offset for index:",i);return}const[g,S]=y;this._scrollToOffset(g,{adjustments:void 0,behavior:s}),this.targetWindow.requestAnimationFrame(()=>{const v=()=>{if(this.currentScrollToIndex!==i)return;const w=this.getScrollOffset(),M=this.getOffsetForIndex(i,S);if(!M){console.warn("Failed to get offset for index:",i);return}I1(M[0],w)||p(S)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(v):v()})},p=m=>{this.targetWindow&&this.currentScrollToIndex===i&&(c++,c<f?this.targetWindow.requestAnimationFrame(()=>d(m)):console.warn(`Failed to scroll to index ${i} after ${f} attempts.`))};d(u)},this.scrollBy=(i,{behavior:u}={})=>{u==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:u})},this.getTotalSize=()=>{var i;const u=this.getMeasurements();let s;if(u.length===0)s=this.options.paddingStart;else if(this.options.lanes===1)s=((i=u[u.length-1])==null?void 0:i.end)??0;else{const c=Array(this.options.lanes).fill(null);let f=u.length-1;for(;f>=0&&c.some(d=>d===null);){const d=u[f];c[d.lane]===null&&(c[d.lane]=d.end),f--}s=Math.max(...c.filter(d=>d!==null))}return Math.max(s-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:u,behavior:s})=>{this.options.scrollToFn(i,{behavior:s,adjustments:u},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(a)}}const c0=(n,a,i,u)=>{for(;n<=a;){const s=(n+a)/2|0,c=i(s);if(c<u)n=s+1;else if(c>u)a=s-1;else return s}return n>0?n-1:0};function ab({measurements:n,outerSize:a,scrollOffset:i,lanes:u}){const s=n.length-1,c=p=>n[p].start;if(n.length<=u)return{startIndex:0,endIndex:s};let f=c0(0,s,c,i),d=f;if(u===1)for(;d<s&&n[d].end<i+a;)d++;else if(u>1){const p=Array(u).fill(0);for(;d<s&&p.some(y=>y<i+a);){const y=n[d];p[y.lane]=y.end,d++}const m=Array(u).fill(i+a);for(;f>=0&&m.some(y=>y>=i);){const y=n[f];m[y.lane]=y.start,f--}f=Math.max(0,f-f%u),d=Math.min(s,d+(u-1-d%u))}return{startIndex:f,endIndex:d}}const Wm=typeof document<"u"?J.useLayoutEffect:J.useEffect;function rb({useFlushSync:n=!0,...a}){const i=J.useReducer(()=>({}),{})[1],u={...a,onChange:(c,f)=>{var d;n&&f?J1.flushSync(i):i(),(d=a.onChange)==null||d.call(a,c,f)}},[s]=J.useState(()=>new ib(u));return s.setOptions(u),Wm(()=>s._didMount(),[]),Wm(()=>s._willUpdate()),s}function ub(n){return rb({observeElementRect:eb,observeElementOffset:tb,scrollToFn:lb,...n})}const sb=J.memo(function(a){const{sessions:i,selectedSession:u,onSelectSession:s,loading:c,selectedProject:f,search:d,onSearchChange:p,fullTextEnabled:m,onFullTextEnabledChange:y,fullTextOptions:g,onFullTextOptionsChange:S,excludeUnknownModels:v,onExcludeUnknownModelsChange:w,sessionModels:M,onDeleteUnknownSessions:B,batchMode:A,selectedSessions:q,onToggleBatchMode:H,onToggleSessionSelection:te,onSelectAll:ie,onDeselectAll:D,onBatchExport:I}=a,[se,he]=J.useState(!1),[U,le]=J.useState(null),[W,ye]=J.useState(new Map),re=J.useRef(null);J.useEffect(()=>{if(!m||!d.trim()){he(!1),le(null),ye(new Map);return}const F=new AbortController,ae=setTimeout(()=>{he(!0),le(null),fetch("/api/search",{method:"POST",headers:{"Content-Type":"application/json"},signal:F.signal,body:JSON.stringify({query:d,options:g,project:f??null})}).then(async ue=>{const Se=ue.headers.get("x-claude-run-rg-command");Se&&console.log("[claude-run]",Se);const Ye=await ue.json();if(!ue.ok)throw new Error(Ye.error||"Search failed");const Le=new Map;for(const pt of Ye.matches)Le.set(pt.sessionId,pt.matchCount);ye(Le)}).catch(ue=>{(ue==null?void 0:ue.name)!=="AbortError"&&(ye(new Map),le(ue instanceof Error?ue.message:"Search failed"))}).finally(()=>{he(!1)})},250);return()=>{F.abort(),clearTimeout(ae)}},[m,d,g,f]);const $=J.useMemo(()=>{const F=[];for(const[ae,ue]of M.entries())ue===null&&F.push(ae);return F},[M]),R=$.length,K=J.useMemo(()=>v?i.filter(F=>M.get(F.id)!==null):i,[i,v,M]),oe=J.useMemo(()=>{if(!d.trim())return K;if(m)return se||U?[]:W.size===0?[]:K.filter(ae=>W.has(ae.id));const F=d.toLowerCase();return K.filter(ae=>ae.display.toLowerCase().includes(F)||ae.projectName.toLowerCase().includes(F))},[K,d,m,se,U,W]),be=ub({count:oe.length,getScrollElement:()=>re.current,estimateSize:()=>76,overscan:10,measureElement:F=>F.getBoundingClientRect().height}),E=J.useCallback((F,ae)=>{A?(ae.preventDefault(),te(F.id)):s(F.id)},[A,te,s]),C=q.size,X=C===oe.length&&oe.length>0,k=J.useCallback(()=>{$.length===0||!window.confirm(`Delete ${$.length} unknown-model session${$.length===1?"":"s"}? This removes their session files from disk.`)||B($)},[$,B]);return b.jsxs("div",{className:"h-full overflow-hidden bg-zinc-950 flex flex-col",children:[b.jsxs("div",{className:"px-3 py-2 border-b border-zinc-800/60",children:[b.jsxs("div",{className:"flex items-center gap-2 text-zinc-500",children:[b.jsx("svg",{className:"w-4 h-4 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),b.jsx("input",{type:"text",value:d,onChange:F=>p(F.target.value),placeholder:"Search...",className:"flex-1 bg-transparent text-sm text-zinc-200 placeholder-zinc-600 focus:outline-none"}),b.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[b.jsx("input",{type:"checkbox",checked:m,onChange:F=>y(F.target.checked),className:"accent-cyan-500",title:"Full text search (ripgrep)"}),"Full text"]}),d&&b.jsx("button",{onClick:()=>p(""),className:"text-zinc-600 hover:text-zinc-400 transition-colors",children:b.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),b.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[b.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[b.jsx("input",{type:"checkbox",checked:v,onChange:F=>w(F.target.checked),className:"accent-cyan-500",title:"Hide sessions without a detected model"}),"Hide Unknown model"]}),v&&R>0&&b.jsxs("button",{onClick:k,className:"flex items-center gap-1.5 px-2 py-0.5 text-[10px] rounded border border-red-500/40 text-red-300 hover:bg-red-500/10 transition-colors",title:"Delete unknown-model sessions from disk",children:["Delete Unknown (",R,")"]})]}),m&&b.jsxs("div",{className:"mt-2 flex items-center gap-2 flex-wrap",children:[b.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[b.jsx("span",{children:"Mode"}),b.jsxs("select",{value:g.mode,onChange:F=>S({...g,mode:F.target.value==="regex"?"regex":"literal"}),className:"bg-zinc-900/60 border border-zinc-800/60 rounded px-1.5 py-0.5 text-[10px] text-zinc-200",children:[b.jsx("option",{value:"literal",children:"Literal"}),b.jsx("option",{value:"regex",children:"Regex"})]})]}),b.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[b.jsx("input",{type:"checkbox",checked:g.caseSensitive,onChange:F=>S({...g,caseSensitive:F.target.checked}),className:"accent-cyan-500"}),"Case sensitive"]}),b.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500 select-none",children:[b.jsx("input",{type:"checkbox",checked:g.wordRegexp,onChange:F=>S({...g,wordRegexp:F.target.checked}),className:"accent-cyan-500"}),"Whole word"]}),b.jsxs("label",{className:"flex items-center gap-1.5 text-[10px] text-zinc-500",children:[b.jsx("span",{children:"Max matches/file"}),b.jsx("input",{type:"number",min:1,max:2e3,value:g.maxMatchesPerFile??200,onChange:F=>S({...g,maxMatchesPerFile:Number.parseInt(F.target.value||"200",10)}),className:"w-16 bg-zinc-900/60 border border-zinc-800/60 rounded px-1.5 py-0.5 text-[10px] text-zinc-200"})]}),se&&b.jsx("span",{className:"text-[10px] text-zinc-600",children:"Searching…"})]})]}),b.jsxs("div",{className:"px-3 py-2 border-b border-zinc-800/60 flex items-center gap-2",children:[b.jsx("button",{onClick:H,className:`flex items-center gap-1.5 px-2 py-1 text-xs rounded transition-colors ${A?"bg-cyan-600/20 text-cyan-400 border border-cyan-600/40":"text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800"}`,title:A?"Exit batch mode":"Enter batch mode",children:A?b.jsxs(b.Fragment,{children:[b.jsx(vc,{className:"w-3 h-3"}),"Exit"]}):b.jsxs(b.Fragment,{children:[b.jsx(lc,{className:"w-3 h-3"}),"Select"]})}),A&&b.jsxs(b.Fragment,{children:[b.jsx("button",{onClick:X?D:ie,className:"px-2 py-1 text-xs text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 rounded transition-colors",children:X?"Deselect All":"Select All"}),C>0&&b.jsxs("button",{onClick:I,className:"flex items-center gap-1.5 px-2 py-1 text-xs bg-cyan-600 hover:bg-cyan-500 text-white rounded transition-colors ml-auto",children:[b.jsx(yc,{className:"w-3 h-3"}),"Export (",C,")"]})]})]}),b.jsx("div",{ref:re,className:"flex-1 overflow-y-auto",children:c?b.jsx("div",{className:"flex items-center justify-center py-8",children:b.jsxs("svg",{className:"w-5 h-5 text-zinc-600 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}):oe.length===0?b.jsx("p",{className:"py-8 text-center text-xs text-zinc-600",children:m&&d&&U?U:m&&d&&se?"Searching…":d?m?"No matches in conversation text":"No sessions match":"No sessions found"}):b.jsx("div",{style:{height:`${be.getTotalSize()}px`,width:"100%",position:"relative"},children:be.getVirtualItems().map(F=>{const ae=oe[F.index],ue=q.has(ae.id);return b.jsx("button",{"data-index":F.index,ref:be.measureElement,onClick:Se=>E(ae,Se),style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${F.start}px)`},className:`px-3 py-3.5 text-left transition-colors overflow-hidden border-b border-zinc-800/40 ${A&&ue||u===ae.id&&!A?"bg-cyan-700/30":"hover:bg-zinc-900/60"} ${F.index===0?"border-t border-t-zinc-800/40":""}`,children:b.jsxs("div",{className:"flex items-center gap-2",children:[A&&b.jsx("div",{className:"shrink-0",children:ue?b.jsx(lc,{className:"w-4 h-4 text-cyan-400"}):b.jsx(r0,{className:"w-4 h-4 text-zinc-600"})}),b.jsxs("div",{className:"flex-1 min-w-0",children:[b.jsxs("div",{className:"flex items-center justify-between mb-1",children:[b.jsx("span",{className:"text-[10px] text-zinc-500 font-medium",title:o0(ae.project),children:ae.projectName}),b.jsxs("div",{className:"flex items-center gap-2",children:[m&&d.trim()&&W.has(ae.id)&&b.jsx("span",{className:"text-[10px] text-cyan-400",children:W.get(ae.id)}),b.jsx("span",{className:"text-[10px] text-zinc-600",children:s0(ae.timestamp)})]})]}),b.jsx("p",{className:"text-[12px] text-zinc-300 leading-snug line-clamp-2 wrap-break-word",children:ae.display})]})]})},ae.id)})})}),b.jsx("div",{className:"px-3 py-2 border-t border-zinc-800/60",children:b.jsx("div",{className:"text-[10px] text-zinc-600 text-center",children:A&&C>0?`${C} of ${i.length} selected`:`${i.length} session${i.length!==1?"s":""}`})})]})});function ob(n,a){const i={};return(n[n.length-1]===""?[...n,""]:n).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const cb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hb={};function Pm(n,a){return(hb.jsx?fb:cb).test(n)}const db=/[ \t\n\f\r]/g;function mb(n){return typeof n=="object"?n.type==="text"?ep(n.value):!1:ep(n)}function ep(n){return n.replace(db,"")===""}class Ba{constructor(a,i,u){this.normal=i,this.property=a,u&&(this.space=u)}}Ba.prototype.normal={};Ba.prototype.property={};Ba.prototype.space=void 0;function f0(n,a){const i={},u={};for(const s of n)Object.assign(i,s.property),Object.assign(u,s.normal);return new Ba(i,u,a)}function ic(n){return n.toLowerCase()}class Ut{constructor(a,i){this.attribute=i,this.property=a}}Ut.prototype.attribute="";Ut.prototype.booleanish=!1;Ut.prototype.boolean=!1;Ut.prototype.commaOrSpaceSeparated=!1;Ut.prototype.commaSeparated=!1;Ut.prototype.defined=!1;Ut.prototype.mustUseProperty=!1;Ut.prototype.number=!1;Ut.prototype.overloadedBoolean=!1;Ut.prototype.property="";Ut.prototype.spaceSeparated=!1;Ut.prototype.space=void 0;let pb=0;const Ee=Ul(),ct=Ul(),ac=Ul(),P=Ul(),Ie=Ul(),ji=Ul(),Ft=Ul();function Ul(){return 2**++pb}const rc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ct,commaOrSpaceSeparated:Ft,commaSeparated:ji,number:P,overloadedBoolean:ac,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),Bo=Object.keys(rc);class Sc extends Ut{constructor(a,i,u,s){let c=-1;if(super(a,i),tp(this,"space",s),typeof u=="number")for(;++c<Bo.length;){const f=Bo[c];tp(this,Bo[c],(u&rc[f])===rc[f])}}}Sc.prototype.defined=!0;function tp(n,a,i){i&&(n[a]=i)}function _i(n){const a={},i={};for(const[u,s]of Object.entries(n.properties)){const c=new Sc(u,n.transform(n.attributes||{},u),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(u)&&(c.mustUseProperty=!0),a[u]=c,i[ic(u)]=u,i[ic(c.attribute)]=u}return new Ba(a,i,n.space)}const h0=_i({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Ie,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:P,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Ie,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:ct,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function d0(n,a){return a in n?n[a]:a}function m0(n,a){return d0(n,a.toLowerCase())}const gb=_i({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ji,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Ie,autoFocus:Ee,autoPlay:Ee,blocking:Ie,capture:null,charSet:null,checked:Ee,cite:null,className:Ie,cols:P,colSpan:null,content:null,contentEditable:ct,controls:Ee,controlsList:Ie,coords:P|ji,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:ac,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Ie,height:P,hidden:ac,high:P,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:Ee,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,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:P,pattern:null,ping:Ie,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Ie,required:Ee,reversed:Ee,rows:P,rowSpan:P,sandbox:Ie,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:Ee,useMap:null,value:ct,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,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:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:P,security:null,unselectable:null},space:"html",transform:m0}),xb=_i({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",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:Ft,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:Ie,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:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:Ee,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,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:ji,g2:ji,glyphName:ji,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:Ft,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:P,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:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ft,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ft,rev:Ft,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ft,requiredFeatures:Ft,requiredFonts:Ft,requiredFormats:Ft,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:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:Ft,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ft,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ft,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:d0}),p0=_i({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),g0=_i({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:m0}),x0=_i({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),yb={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"},bb=/[A-Z]/g,np=/-[a-z]/g,vb=/^data[-\w.:]+$/i;function Sb(n,a){const i=ic(a);let u=a,s=Ut;if(i in n.normal)return n.property[n.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&vb.test(a)){if(a.charAt(4)==="-"){const c=a.slice(5).replace(np,kb);u="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=a.slice(4);if(!np.test(c)){let f=c.replace(bb,zb);f.charAt(0)!=="-"&&(f="-"+f),a="data"+f}}s=Sc}return new s(u,a)}function zb(n){return"-"+n.toLowerCase()}function kb(n){return n.charAt(1).toUpperCase()}const wb=f0([h0,gb,p0,g0,x0],"html"),zc=f0([h0,xb,p0,g0,x0],"svg");function Eb(n){return n.join(" ").trim()}var Ti={},Ho,lp;function Tb(){if(lp)return Ho;lp=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,i=/^\s*/,u=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,p=`
248
- `,m="/",y="*",g="",S="comment",v="declaration";function w(B,A){if(typeof B!="string")throw new TypeError("First argument must be a string");if(!B)return[];A=A||{};var q=1,H=1;function te(re){var $=re.match(a);$&&(q+=$.length);var R=re.lastIndexOf(p);H=~R?re.length-R:H+re.length}function ie(){var re={line:q,column:H};return function($){return $.position=new D(re),he(),$}}function D(re){this.start=re,this.end={line:q,column:H},this.source=A.source}D.prototype.content=B;function I(re){var $=new Error(A.source+":"+q+":"+H+": "+re);if($.reason=re,$.filename=A.source,$.line=q,$.column=H,$.source=B,!A.silent)throw $}function se(re){var $=re.exec(B);if($){var R=$[0];return te(R),B=B.slice(R.length),$}}function he(){se(i)}function U(re){var $;for(re=re||[];$=le();)$!==!1&&re.push($);return re}function le(){var re=ie();if(!(m!=B.charAt(0)||y!=B.charAt(1))){for(var $=2;g!=B.charAt($)&&(y!=B.charAt($)||m!=B.charAt($+1));)++$;if($+=2,g===B.charAt($-1))return I("End of comment missing");var R=B.slice(2,$-2);return H+=2,te(R),B=B.slice($),H+=2,re({type:S,comment:R})}}function W(){var re=ie(),$=se(u);if($){if(le(),!se(s))return I("property missing ':'");var R=se(c),K=re({type:v,property:M($[0].replace(n,g)),value:R?M(R[0].replace(n,g)):g});return se(f),K}}function ye(){var re=[];U(re);for(var $;$=W();)$!==!1&&(re.push($),U(re));return re}return he(),ye()}function M(B){return B?B.replace(d,g):g}return Ho=w,Ho}var ip;function Cb(){if(ip)return Ti;ip=1;var n=Ti&&Ti.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=i;const a=n(Tb());function i(u,s){let c=null;if(!u||typeof u!="string")return c;const f=(0,a.default)(u),d=typeof s=="function";return f.forEach(p=>{if(p.type!=="declaration")return;const{property:m,value:y}=p;d?s(m,y,p):y&&(c=c||{},c[m]=y)}),c}return Ti}var Na={},ap;function Nb(){if(ap)return Na;ap=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,i=/^[^-]+$/,u=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,c=function(m){return!m||i.test(m)||n.test(m)},f=function(m,y){return y.toUpperCase()},d=function(m,y){return"".concat(y,"-")},p=function(m,y){return y===void 0&&(y={}),c(m)?m:(m=m.toLowerCase(),y.reactCompat?m=m.replace(s,d):m=m.replace(u,d),m.replace(a,f))};return Na.camelCase=p,Na}var Aa,rp;function Ab(){if(rp)return Aa;rp=1;var n=Aa&&Aa.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(Cb()),i=Nb();function u(s,c){var f={};return!s||typeof s!="string"||(0,a.default)(s,function(d,p){d&&p&&(f[(0,i.camelCase)(d,c)]=p)}),f}return u.default=u,Aa=u,Aa}var jb=Ab();const Mb=Jp(jb),y0=b0("end"),kc=b0("start");function b0(n){return a;function a(i){const u=i&&i.position&&i.position[n]||{};if(typeof u.line=="number"&&u.line>0&&typeof u.column=="number"&&u.column>0)return{line:u.line,column:u.column,offset:typeof u.offset=="number"&&u.offset>-1?u.offset:void 0}}}function _b(n){const a=kc(n),i=y0(n);if(a&&i)return{start:a,end:i}}function _a(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?up(n.position):"start"in n||"end"in n?up(n):"line"in n||"column"in n?uc(n):""}function uc(n){return sp(n&&n.line)+":"+sp(n&&n.column)}function up(n){return uc(n&&n.start)+"-"+uc(n&&n.end)}function sp(n){return n&&typeof n=="number"?n:1}class kt extends Error{constructor(a,i,u){super(),typeof i=="string"&&(u=i,i=void 0);let s="",c={},f=!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 a=="string"?s=a:!c.cause&&a&&(f=!0,s=a.message,c.cause=a),!c.ruleId&&!c.source&&typeof u=="string"){const p=u.indexOf(":");p===-1?c.ruleId=u:(c.source=u.slice(0,p),c.ruleId=u.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.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=s,this.line=d?d.line:void 0,this.name=_a(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=f&&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}}kt.prototype.file="";kt.prototype.name="";kt.prototype.reason="";kt.prototype.message="";kt.prototype.stack="";kt.prototype.column=void 0;kt.prototype.line=void 0;kt.prototype.ancestors=void 0;kt.prototype.cause=void 0;kt.prototype.fatal=void 0;kt.prototype.place=void 0;kt.prototype.ruleId=void 0;kt.prototype.source=void 0;const wc={}.hasOwnProperty,Ob=new Map,Db=/[A-Z]/g,Rb=new Set(["table","tbody","thead","tfoot","tr"]),Lb=new Set(["td","th"]),v0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ub(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=a.filePath||void 0;let u;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");u=Qb(i,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");u=Gb(i,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:u,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?zc:wb,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},c=S0(s,n,void 0);return c&&typeof c!="string"?c:s.create(n,s.Fragment,{children:c||void 0},void 0)}function S0(n,a,i){if(a.type==="element")return Bb(n,a,i);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return Hb(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return Yb(n,a,i);if(a.type==="mdxjsEsm")return qb(n,a);if(a.type==="root")return Vb(n,a,i);if(a.type==="text")return Xb(n,a)}function Bb(n,a,i){const u=n.schema;let s=u;a.tagName.toLowerCase()==="svg"&&u.space==="html"&&(s=zc,n.schema=s),n.ancestors.push(a);const c=k0(n,a.tagName,!1),f=Fb(n,a);let d=Tc(n,a);return Rb.has(a.tagName)&&(d=d.filter(function(p){return typeof p=="string"?!mb(p):!0})),z0(n,f,c,a),Ec(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Hb(n,a){if(a.data&&a.data.estree&&n.evaluater){const u=a.data.estree.body[0];return u.type,n.evaluater.evaluateExpression(u.expression)}Ra(n,a.position)}function qb(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Ra(n,a.position)}function Yb(n,a,i){const u=n.schema;let s=u;a.name==="svg"&&u.space==="html"&&(s=zc,n.schema=s),n.ancestors.push(a);const c=a.name===null?n.Fragment:k0(n,a.name,!0),f=Zb(n,a),d=Tc(n,a);return z0(n,f,c,a),Ec(f,d),n.ancestors.pop(),n.schema=u,n.create(a,c,f,i)}function Vb(n,a,i){const u={};return Ec(u,Tc(n,a)),n.create(a,n.Fragment,u,i)}function Xb(n,a){return a.value}function z0(n,a,i,u){typeof i!="string"&&i!==n.Fragment&&n.passNode&&(a.node=u)}function Ec(n,a){if(a.length>0){const i=a.length>1?a:a[0];i&&(n.children=i)}}function Gb(n,a,i){return u;function u(s,c,f,d){const m=Array.isArray(f.children)?i:a;return d?m(c,f,d):m(c,f)}}function Qb(n,a){return i;function i(u,s,c,f){const d=Array.isArray(c.children),p=kc(u);return a(s,c,f,d,{columnNumber:p?p.column-1:void 0,fileName:n,lineNumber:p?p.line:void 0},void 0)}}function Fb(n,a){const i={};let u,s;for(s in a.properties)if(s!=="children"&&wc.call(a.properties,s)){const c=Kb(n,s,a.properties[s]);if(c){const[f,d]=c;n.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&Lb.has(a.tagName)?u=d:i[f]=d}}if(u){const c=i.style||(i.style={});c[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=u}return i}function Zb(n,a){const i={};for(const u of a.attributes)if(u.type==="mdxJsxExpressionAttribute")if(u.data&&u.data.estree&&n.evaluater){const c=u.data.estree.body[0];c.type;const f=c.expression;f.type;const d=f.properties[0];d.type,Object.assign(i,n.evaluater.evaluateExpression(d.argument))}else Ra(n,a.position);else{const s=u.name;let c;if(u.value&&typeof u.value=="object")if(u.value.data&&u.value.data.estree&&n.evaluater){const d=u.value.data.estree.body[0];d.type,c=n.evaluater.evaluateExpression(d.expression)}else Ra(n,a.position);else c=u.value===null?!0:u.value;i[s]=c}return i}function Tc(n,a){const i=[];let u=-1;const s=n.passKeys?new Map:Ob;for(;++u<a.children.length;){const c=a.children[u];let f;if(n.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const m=s.get(p)||0;f=p+"-"+m,s.set(p,m+1)}}const d=S0(n,c,f);d!==void 0&&i.push(d)}return i}function Kb(n,a,i){const u=Sb(n.schema,a);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=u.commaSeparated?ob(i):Eb(i)),u.property==="style"){let s=typeof i=="object"?i:Jb(n,String(i));return n.stylePropertyNameCase==="css"&&(s=Ib(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&u.space?yb[u.property]||u.property:u.attribute,i]}}function Jb(n,a){try{return Mb(a,{reactCompat:!0})}catch(i){if(n.ignoreInvalidStyle)return{};const u=i,s=new kt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:u,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=v0+"#cannot-parse-style-attribute",s}}function k0(n,a,i){let u;if(!i)u={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let c=-1,f;for(;++c<s.length;){const d=Pm(s[c])?{type:"Identifier",name:s[c]}:{type:"Literal",value:s[c]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(c&&d.type==="Literal"),optional:!1}:d}u=f}else u=Pm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(u.type==="Literal"){const s=u.value;return wc.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(u);Ra(n)}function Ra(n,a){const i=new kt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=n.filePath||void 0,i.url=v0+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Ib(n){const a={};let i;for(i in n)wc.call(n,i)&&(a[$b(i)]=n[i]);return a}function $b(n){let a=n.replace(Db,Wb);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function Wb(n){return"-"+n.toLowerCase()}const qo={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"]},Pb={};function Cc(n,a){const i=Pb,u=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,s=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return w0(n,u,s)}function w0(n,a,i){if(ev(n)){if("value"in n)return n.type==="html"&&!i?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return op(n.children,a,i)}return Array.isArray(n)?op(n,a,i):""}function op(n,a,i){const u=[];let s=-1;for(;++s<n.length;)u[s]=w0(n[s],a,i);return u.join("")}function ev(n){return!!(n&&typeof n=="object")}const cp=document.createElement("i");function Nc(n){const a="&"+n+";";cp.innerHTML=a;const i=cp.textContent;return i.charCodeAt(i.length-1)===59&&n!=="semi"||i===a?!1:i}function Zt(n,a,i,u){const s=n.length;let c=0,f;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,i=i>0?i:0,u.length<1e4)f=Array.from(u),f.unshift(a,i),n.splice(...f);else for(i&&n.splice(a,i);c<u.length;)f=u.slice(c,c+1e4),f.unshift(a,0),n.splice(...f),c+=1e4,a+=1e4}function an(n,a){return n.length>0?(Zt(n,n.length,0,a),n):a}const fp={}.hasOwnProperty;function E0(n){const a={};let i=-1;for(;++i<n.length;)tv(a,n[i]);return a}function tv(n,a){let i;for(i in a){const s=(fp.call(n,i)?n[i]:void 0)||(n[i]={}),c=a[i];let f;if(c)for(f in c){fp.call(s,f)||(s[f]=[]);const d=c[f];nv(s[f],Array.isArray(d)?d:d?[d]:[])}}}function nv(n,a){let i=-1;const u=[];for(;++i<a.length;)(a[i].add==="after"?n:u).push(a[i]);Zt(n,0,0,u)}function T0(n,a){const i=Number.parseInt(n,a);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 hn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=pl(/[A-Za-z]/),zt=pl(/[\dA-Za-z]/),lv=pl(/[#-'*+\--9=?A-Z^-~]/);function cu(n){return n!==null&&(n<32||n===127)}const sc=pl(/\d/),iv=pl(/[\dA-Fa-f]/),av=pl(/[!-/:-@[-`{-~]/);function pe(n){return n!==null&&n<-2}function Je(n){return n!==null&&(n<0||n===32)}function Ae(n){return n===-2||n===-1||n===32}const mu=pl(new RegExp("\\p{P}|\\p{S}","u")),Ll=pl(/\s/);function pl(n){return a;function a(i){return i!==null&&i>-1&&n.test(String.fromCharCode(i))}}function Oi(n){const a=[];let i=-1,u=0,s=0;for(;++i<n.length;){const c=n.charCodeAt(i);let f="";if(c===37&&zt(n.charCodeAt(i+1))&&zt(n.charCodeAt(i+2)))s=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(f=String.fromCharCode(c));else if(c>55295&&c<57344){const d=n.charCodeAt(i+1);c<56320&&d>56319&&d<57344?(f=String.fromCharCode(c,d),s=1):f="�"}else f=String.fromCharCode(c);f&&(a.push(n.slice(u,i),encodeURIComponent(f)),u=i+s+1,f=""),s&&(i+=s,s=0)}return a.join("")+n.slice(u)}function Re(n,a,i,u){const s=u?u-1:Number.POSITIVE_INFINITY;let c=0;return f;function f(p){return Ae(p)?(n.enter(i),d(p)):a(p)}function d(p){return Ae(p)&&c++<s?(n.consume(p),d):(n.exit(i),a(p))}}const rv={tokenize:uv};function uv(n){const a=n.attempt(this.parser.constructs.contentInitial,u,s);let i;return a;function u(d){if(d===null){n.consume(d);return}return n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),Re(n,a,"linePrefix")}function s(d){return n.enter("paragraph"),c(d)}function c(d){const p=n.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=p),i=p,f(d)}function f(d){if(d===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(d);return}return pe(d)?(n.consume(d),n.exit("chunkText"),c):(n.consume(d),f)}}const sv={tokenize:ov},hp={tokenize:cv};function ov(n){const a=this,i=[];let u=0,s,c,f;return d;function d(H){if(u<i.length){const te=i[u];return a.containerState=te[1],n.attempt(te[0].continuation,p,m)(H)}return m(H)}function p(H){if(u++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&q();const te=a.events.length;let ie=te,D;for(;ie--;)if(a.events[ie][0]==="exit"&&a.events[ie][1].type==="chunkFlow"){D=a.events[ie][1].end;break}A(u);let I=te;for(;I<a.events.length;)a.events[I][1].end={...D},I++;return Zt(a.events,ie+1,0,a.events.slice(te)),a.events.length=I,m(H)}return d(H)}function m(H){if(u===i.length){if(!s)return S(H);if(s.currentConstruct&&s.currentConstruct.concrete)return w(H);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(hp,y,g)(H)}function y(H){return s&&q(),A(u),S(H)}function g(H){return a.parser.lazy[a.now().line]=u!==i.length,f=a.now().offset,w(H)}function S(H){return a.containerState={},n.attempt(hp,v,w)(H)}function v(H){return u++,i.push([a.currentConstruct,a.containerState]),S(H)}function w(H){if(H===null){s&&q(),A(0),n.consume(H);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:c}),M(H)}function M(H){if(H===null){B(n.exit("chunkFlow"),!0),A(0),n.consume(H);return}return pe(H)?(n.consume(H),B(n.exit("chunkFlow")),u=0,a.interrupt=void 0,d):(n.consume(H),M)}function B(H,te){const ie=a.sliceStream(H);if(te&&ie.push(null),H.previous=c,c&&(c.next=H),c=H,s.defineSkip(H.start),s.write(ie),a.parser.lazy[H.start.line]){let D=s.events.length;for(;D--;)if(s.events[D][1].start.offset<f&&(!s.events[D][1].end||s.events[D][1].end.offset>f))return;const I=a.events.length;let se=I,he,U;for(;se--;)if(a.events[se][0]==="exit"&&a.events[se][1].type==="chunkFlow"){if(he){U=a.events[se][1].end;break}he=!0}for(A(u),D=I;D<a.events.length;)a.events[D][1].end={...U},D++;Zt(a.events,se+1,0,a.events.slice(I)),a.events.length=D}}function A(H){let te=i.length;for(;te-- >H;){const ie=i[te];a.containerState=ie[1],ie[0].exit.call(a,n)}i.length=H}function q(){s.write([null]),c=void 0,s=void 0,a.containerState._closeFlow=void 0}}function cv(n,a,i){return Re(n,n.attempt(this.parser.constructs.document,a,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Mi(n){if(n===null||Je(n)||Ll(n))return 1;if(mu(n))return 2}function pu(n,a,i){const u=[];let s=-1;for(;++s<n.length;){const c=n[s].resolveAll;c&&!u.includes(c)&&(a=c(a,i),u.push(c))}return a}const oc={name:"attention",resolveAll:fv,tokenize:hv};function fv(n,a){let i=-1,u,s,c,f,d,p,m,y;for(;++i<n.length;)if(n[i][0]==="enter"&&n[i][1].type==="attentionSequence"&&n[i][1]._close){for(u=i;u--;)if(n[u][0]==="exit"&&n[u][1].type==="attentionSequence"&&n[u][1]._open&&a.sliceSerialize(n[u][1]).charCodeAt(0)===a.sliceSerialize(n[i][1]).charCodeAt(0)){if((n[u][1]._close||n[i][1]._open)&&(n[i][1].end.offset-n[i][1].start.offset)%3&&!((n[u][1].end.offset-n[u][1].start.offset+n[i][1].end.offset-n[i][1].start.offset)%3))continue;p=n[u][1].end.offset-n[u][1].start.offset>1&&n[i][1].end.offset-n[i][1].start.offset>1?2:1;const g={...n[u][1].end},S={...n[i][1].start};dp(g,-p),dp(S,p),f={type:p>1?"strongSequence":"emphasisSequence",start:g,end:{...n[u][1].end}},d={type:p>1?"strongSequence":"emphasisSequence",start:{...n[i][1].start},end:S},c={type:p>1?"strongText":"emphasisText",start:{...n[u][1].end},end:{...n[i][1].start}},s={type:p>1?"strong":"emphasis",start:{...f.start},end:{...d.end}},n[u][1].end={...f.start},n[i][1].start={...d.end},m=[],n[u][1].end.offset-n[u][1].start.offset&&(m=an(m,[["enter",n[u][1],a],["exit",n[u][1],a]])),m=an(m,[["enter",s,a],["enter",f,a],["exit",f,a],["enter",c,a]]),m=an(m,pu(a.parser.constructs.insideSpan.null,n.slice(u+1,i),a)),m=an(m,[["exit",c,a],["enter",d,a],["exit",d,a],["exit",s,a]]),n[i][1].end.offset-n[i][1].start.offset?(y=2,m=an(m,[["enter",n[i][1],a],["exit",n[i][1],a]])):y=0,Zt(n,u-1,i-u+3,m),i=u+m.length-y-2;break}}for(i=-1;++i<n.length;)n[i][1].type==="attentionSequence"&&(n[i][1].type="data");return n}function hv(n,a){const i=this.parser.constructs.attentionMarkers.null,u=this.previous,s=Mi(u);let c;return f;function f(p){return c=p,n.enter("attentionSequence"),d(p)}function d(p){if(p===c)return n.consume(p),d;const m=n.exit("attentionSequence"),y=Mi(p),g=!y||y===2&&s||i.includes(p),S=!s||s===2&&y||i.includes(u);return m._open=!!(c===42?g:g&&(s||!S)),m._close=!!(c===42?S:S&&(y||!g)),a(p)}}function dp(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const dv={name:"autolink",tokenize:mv};function mv(n,a,i){let u=0;return s;function s(v){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),c}function c(v){return Tt(v)?(n.consume(v),f):v===64?i(v):m(v)}function f(v){return v===43||v===45||v===46||zt(v)?(u=1,d(v)):m(v)}function d(v){return v===58?(n.consume(v),u=0,p):(v===43||v===45||v===46||zt(v))&&u++<32?(n.consume(v),d):(u=0,m(v))}function p(v){return v===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):v===null||v===32||v===60||cu(v)?i(v):(n.consume(v),p)}function m(v){return v===64?(n.consume(v),y):lv(v)?(n.consume(v),m):i(v)}function y(v){return zt(v)?g(v):i(v)}function g(v){return v===46?(n.consume(v),u=0,y):v===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(v),n.exit("autolinkMarker"),n.exit("autolink"),a):S(v)}function S(v){if((v===45||zt(v))&&u++<63){const w=v===45?S:g;return n.consume(v),w}return i(v)}}const Ha={partial:!0,tokenize:pv};function pv(n,a,i){return u;function u(c){return Ae(c)?Re(n,s,"linePrefix")(c):s(c)}function s(c){return c===null||pe(c)?a(c):i(c)}}const C0={continuation:{tokenize:xv},exit:yv,name:"blockQuote",tokenize:gv};function gv(n,a,i){const u=this;return s;function s(f){if(f===62){const d=u.containerState;return d.open||(n.enter("blockQuote",{_container:!0}),d.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(f),n.exit("blockQuoteMarker"),c}return i(f)}function c(f){return Ae(f)?(n.enter("blockQuotePrefixWhitespace"),n.consume(f),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(f))}}function xv(n,a,i){const u=this;return s;function s(f){return Ae(f)?Re(n,c,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):c(f)}function c(f){return n.attempt(C0,a,i)(f)}}function yv(n){n.exit("blockQuote")}const N0={name:"characterEscape",tokenize:bv};function bv(n,a,i){return u;function u(c){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(c),n.exit("escapeMarker"),s}function s(c){return av(c)?(n.enter("characterEscapeValue"),n.consume(c),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):i(c)}}const A0={name:"characterReference",tokenize:vv};function vv(n,a,i){const u=this;let s=0,c,f;return d;function d(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),p}function p(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),m):(n.enter("characterReferenceValue"),c=31,f=zt,y(g))}function m(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),c=6,f=iv,y):(n.enter("characterReferenceValue"),c=7,f=sc,y(g))}function y(g){if(g===59&&s){const S=n.exit("characterReferenceValue");return f===zt&&!Nc(u.sliceSerialize(S))?i(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return f(g)&&s++<c?(n.consume(g),y):i(g)}}const mp={partial:!0,tokenize:zv},pp={concrete:!0,name:"codeFenced",tokenize:Sv};function Sv(n,a,i){const u=this,s={partial:!0,tokenize:ie};let c=0,f=0,d;return p;function p(D){return m(D)}function m(D){const I=u.events[u.events.length-1];return c=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,d=D,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===d?(f++,n.consume(D),y):f<3?i(D):(n.exit("codeFencedFenceSequence"),Ae(D)?Re(n,g,"whitespace")(D):g(D))}function g(D){return D===null||pe(D)?(n.exit("codeFencedFence"),u.interrupt?a(D):n.check(mp,M,te)(D)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),S(D))}function S(D){return D===null||pe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(D)):Ae(D)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Re(n,v,"whitespace")(D)):D===96&&D===d?i(D):(n.consume(D),S)}function v(D){return D===null||pe(D)?g(D):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),w(D))}function w(D){return D===null||pe(D)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(D)):D===96&&D===d?i(D):(n.consume(D),w)}function M(D){return n.attempt(s,te,B)(D)}function B(D){return n.enter("lineEnding"),n.consume(D),n.exit("lineEnding"),A}function A(D){return c>0&&Ae(D)?Re(n,q,"linePrefix",c+1)(D):q(D)}function q(D){return D===null||pe(D)?n.check(mp,M,te)(D):(n.enter("codeFlowValue"),H(D))}function H(D){return D===null||pe(D)?(n.exit("codeFlowValue"),q(D)):(n.consume(D),H)}function te(D){return n.exit("codeFenced"),a(D)}function ie(D,I,se){let he=0;return U;function U($){return D.enter("lineEnding"),D.consume($),D.exit("lineEnding"),le}function le($){return D.enter("codeFencedFence"),Ae($)?Re(D,W,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):W($)}function W($){return $===d?(D.enter("codeFencedFenceSequence"),ye($)):se($)}function ye($){return $===d?(he++,D.consume($),ye):he>=f?(D.exit("codeFencedFenceSequence"),Ae($)?Re(D,re,"whitespace")($):re($)):se($)}function re($){return $===null||pe($)?(D.exit("codeFencedFence"),I($)):se($)}}}function zv(n,a,i){const u=this;return s;function s(f){return f===null?i(f):(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c)}function c(f){return u.parser.lazy[u.now().line]?i(f):a(f)}}const Yo={name:"codeIndented",tokenize:wv},kv={partial:!0,tokenize:Ev};function wv(n,a,i){const u=this;return s;function s(m){return n.enter("codeIndented"),Re(n,c,"linePrefix",5)(m)}function c(m){const y=u.events[u.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?f(m):i(m)}function f(m){return m===null?p(m):pe(m)?n.attempt(kv,f,p)(m):(n.enter("codeFlowValue"),d(m))}function d(m){return m===null||pe(m)?(n.exit("codeFlowValue"),f(m)):(n.consume(m),d)}function p(m){return n.exit("codeIndented"),a(m)}}function Ev(n,a,i){const u=this;return s;function s(f){return u.parser.lazy[u.now().line]?i(f):pe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),s):Re(n,c,"linePrefix",5)(f)}function c(f){const d=u.events[u.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):pe(f)?s(f):i(f)}}const Tv={name:"codeText",previous:Nv,resolve:Cv,tokenize:Av};function Cv(n){let a=n.length-4,i=3,u,s;if((n[i][1].type==="lineEnding"||n[i][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(u=i;++u<a;)if(n[u][1].type==="codeTextData"){n[i][1].type="codeTextPadding",n[a][1].type="codeTextPadding",i+=2,a-=2;break}}for(u=i-1,a++;++u<=a;)s===void 0?u!==a&&n[u][1].type!=="lineEnding"&&(s=u):(u===a||n[u][1].type==="lineEnding")&&(n[s][1].type="codeTextData",u!==s+2&&(n[s][1].end=n[u-1][1].end,n.splice(s+2,u-s-2),a-=u-s-2,u=s+2),s=void 0);return n}function Nv(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Av(n,a,i){let u=0,s,c;return f;function f(g){return n.enter("codeText"),n.enter("codeTextSequence"),d(g)}function d(g){return g===96?(n.consume(g),u++,d):(n.exit("codeTextSequence"),p(g))}function p(g){return g===null?i(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),p):g===96?(c=n.enter("codeTextSequence"),s=0,y(g)):pe(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),p):(n.enter("codeTextData"),m(g))}function m(g){return g===null||g===32||g===96||pe(g)?(n.exit("codeTextData"),p(g)):(n.consume(g),m)}function y(g){return g===96?(n.consume(g),s++,y):s===u?(n.exit("codeTextSequence"),n.exit("codeText"),a(g)):(c.type="codeTextData",m(g))}}class jv{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,i){const u=i??Number.POSITIVE_INFINITY;return u<this.left.length?this.left.slice(a,u):a>this.left.length?this.right.slice(this.right.length-u+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-u+this.left.length).reverse())}splice(a,i,u){const s=i||0;this.setCursor(Math.trunc(a));const c=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return u&&ja(this.left,u),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),ja(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),ja(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const i=this.left.splice(a,Number.POSITIVE_INFINITY);ja(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);ja(this.left,i.reverse())}}}function ja(n,a){let i=0;if(a.length<1e4)n.push(...a);else for(;i<a.length;)n.push(...a.slice(i,i+1e4)),i+=1e4}function j0(n){const a={};let i=-1,u,s,c,f,d,p,m;const y=new jv(n);for(;++i<y.length;){for(;i in a;)i=a[i];if(u=y.get(i),i&&u[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(p=u[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(u[0]==="enter")u[1].contentType&&(Object.assign(a,Mv(y,i)),i=a[i],m=!0);else if(u[1]._container){for(c=i,s=void 0;c--;)if(f=y.get(c),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),f[1].type="lineEnding",s=c);else if(!(f[1].type==="linePrefix"||f[1].type==="listItemIndent"))break;s&&(u[1].end={...y.get(s)[1].start},d=y.slice(s,i),d.unshift(u),y.splice(s,i-s+1,d))}}return Zt(n,0,Number.POSITIVE_INFINITY,y.slice(0)),!m}function Mv(n,a){const i=n.get(a)[1],u=n.get(a)[2];let s=a-1;const c=[];let f=i._tokenizer;f||(f=u.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const d=f.events,p=[],m={};let y,g,S=-1,v=i,w=0,M=0;const B=[M];for(;v;){for(;n.get(++s)[1]!==v;);c.push(s),v._tokenizer||(y=u.sliceStream(v),v.next||y.push(null),g&&f.defineSkip(v.start),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(y),v._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=i;++S<d.length;)d[S][0]==="exit"&&d[S-1][0]==="enter"&&d[S][1].type===d[S-1][1].type&&d[S][1].start.line!==d[S][1].end.line&&(M=S+1,B.push(M),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(f.events=[],v?(v._tokenizer=void 0,v.previous=void 0):B.pop(),S=B.length;S--;){const A=d.slice(B[S],B[S+1]),q=c.pop();p.push([q,q+A.length-1]),n.splice(q,2,A)}for(p.reverse(),S=-1;++S<p.length;)m[w+p[S][0]]=w+p[S][1],w+=p[S][1]-p[S][0]-1;return m}const _v={resolve:Dv,tokenize:Rv},Ov={partial:!0,tokenize:Lv};function Dv(n){return j0(n),n}function Rv(n,a){let i;return u;function u(d){return n.enter("content"),i=n.enter("chunkContent",{contentType:"content"}),s(d)}function s(d){return d===null?c(d):pe(d)?n.check(Ov,f,c)(d):(n.consume(d),s)}function c(d){return n.exit("chunkContent"),n.exit("content"),a(d)}function f(d){return n.consume(d),n.exit("chunkContent"),i.next=n.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,s}}function Lv(n,a,i){const u=this;return s;function s(f){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),Re(n,c,"linePrefix")}function c(f){if(f===null||pe(f))return i(f);const d=u.events[u.events.length-1];return!u.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?a(f):n.interrupt(u.parser.constructs.flow,i,a)(f)}}function M0(n,a,i,u,s,c,f,d,p){const m=p||Number.POSITIVE_INFINITY;let y=0;return g;function g(A){return A===60?(n.enter(u),n.enter(s),n.enter(c),n.consume(A),n.exit(c),S):A===null||A===32||A===41||cu(A)?i(A):(n.enter(u),n.enter(f),n.enter(d),n.enter("chunkString",{contentType:"string"}),M(A))}function S(A){return A===62?(n.enter(c),n.consume(A),n.exit(c),n.exit(s),n.exit(u),a):(n.enter(d),n.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===62?(n.exit("chunkString"),n.exit(d),S(A)):A===null||A===60||pe(A)?i(A):(n.consume(A),A===92?w:v)}function w(A){return A===60||A===62||A===92?(n.consume(A),v):v(A)}function M(A){return!y&&(A===null||A===41||Je(A))?(n.exit("chunkString"),n.exit(d),n.exit(f),n.exit(u),a(A)):y<m&&A===40?(n.consume(A),y++,M):A===41?(n.consume(A),y--,M):A===null||A===32||A===40||cu(A)?i(A):(n.consume(A),A===92?B:M)}function B(A){return A===40||A===41||A===92?(n.consume(A),M):M(A)}}function _0(n,a,i,u,s,c){const f=this;let d=0,p;return m;function m(v){return n.enter(u),n.enter(s),n.consume(v),n.exit(s),n.enter(c),y}function y(v){return d>999||v===null||v===91||v===93&&!p||v===94&&!d&&"_hiddenFootnoteSupport"in f.parser.constructs?i(v):v===93?(n.exit(c),n.enter(s),n.consume(v),n.exit(s),n.exit(u),a):pe(v)?(n.enter("lineEnding"),n.consume(v),n.exit("lineEnding"),y):(n.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||pe(v)||d++>999?(n.exit("chunkString"),y(v)):(n.consume(v),p||(p=!Ae(v)),v===92?S:g)}function S(v){return v===91||v===92||v===93?(n.consume(v),d++,g):g(v)}}function O0(n,a,i,u,s,c){let f;return d;function d(S){return S===34||S===39||S===40?(n.enter(u),n.enter(s),n.consume(S),n.exit(s),f=S===40?41:S,p):i(S)}function p(S){return S===f?(n.enter(s),n.consume(S),n.exit(s),n.exit(u),a):(n.enter(c),m(S))}function m(S){return S===f?(n.exit(c),p(f)):S===null?i(S):pe(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),Re(n,m,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),y(S))}function y(S){return S===f||S===null||pe(S)?(n.exit("chunkString"),m(S)):(n.consume(S),S===92?g:y)}function g(S){return S===f||S===92?(n.consume(S),y):y(S)}}function Oa(n,a){let i;return u;function u(s){return pe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),i=!0,u):Ae(s)?Re(n,u,i?"linePrefix":"lineSuffix")(s):a(s)}}const Uv={name:"definition",tokenize:Hv},Bv={partial:!0,tokenize:qv};function Hv(n,a,i){const u=this;let s;return c;function c(v){return n.enter("definition"),f(v)}function f(v){return _0.call(u,n,d,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function d(v){return s=hn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)),v===58?(n.enter("definitionMarker"),n.consume(v),n.exit("definitionMarker"),p):i(v)}function p(v){return Je(v)?Oa(n,m)(v):m(v)}function m(v){return M0(n,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function y(v){return n.attempt(Bv,g,g)(v)}function g(v){return Ae(v)?Re(n,S,"whitespace")(v):S(v)}function S(v){return v===null||pe(v)?(n.exit("definition"),u.parser.defined.push(s),a(v)):i(v)}}function qv(n,a,i){return u;function u(d){return Je(d)?Oa(n,s)(d):i(d)}function s(d){return O0(n,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function c(d){return Ae(d)?Re(n,f,"whitespace")(d):f(d)}function f(d){return d===null||pe(d)?a(d):i(d)}}const Yv={name:"hardBreakEscape",tokenize:Vv};function Vv(n,a,i){return u;function u(c){return n.enter("hardBreakEscape"),n.consume(c),s}function s(c){return pe(c)?(n.exit("hardBreakEscape"),a(c)):i(c)}}const Xv={name:"headingAtx",resolve:Gv,tokenize:Qv};function Gv(n,a){let i=n.length-2,u=3,s,c;return n[u][1].type==="whitespace"&&(u+=2),i-2>u&&n[i][1].type==="whitespace"&&(i-=2),n[i][1].type==="atxHeadingSequence"&&(u===i-1||i-4>u&&n[i-2][1].type==="whitespace")&&(i-=u+1===i?2:4),i>u&&(s={type:"atxHeadingText",start:n[u][1].start,end:n[i][1].end},c={type:"chunkText",start:n[u][1].start,end:n[i][1].end,contentType:"text"},Zt(n,u,i-u+1,[["enter",s,a],["enter",c,a],["exit",c,a],["exit",s,a]])),n}function Qv(n,a,i){let u=0;return s;function s(y){return n.enter("atxHeading"),c(y)}function c(y){return n.enter("atxHeadingSequence"),f(y)}function f(y){return y===35&&u++<6?(n.consume(y),f):y===null||Je(y)?(n.exit("atxHeadingSequence"),d(y)):i(y)}function d(y){return y===35?(n.enter("atxHeadingSequence"),p(y)):y===null||pe(y)?(n.exit("atxHeading"),a(y)):Ae(y)?Re(n,d,"whitespace")(y):(n.enter("atxHeadingText"),m(y))}function p(y){return y===35?(n.consume(y),p):(n.exit("atxHeadingSequence"),d(y))}function m(y){return y===null||y===35||Je(y)?(n.exit("atxHeadingText"),d(y)):(n.consume(y),m)}}const Fv=["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"],gp=["pre","script","style","textarea"],Zv={concrete:!0,name:"htmlFlow",resolveTo:Iv,tokenize:$v},Kv={partial:!0,tokenize:Pv},Jv={partial:!0,tokenize:Wv};function Iv(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function $v(n,a,i){const u=this;let s,c,f,d,p;return m;function m(k){return y(k)}function y(k){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(k),g}function g(k){return k===33?(n.consume(k),S):k===47?(n.consume(k),c=!0,M):k===63?(n.consume(k),s=3,u.interrupt?a:E):Tt(k)?(n.consume(k),f=String.fromCharCode(k),B):i(k)}function S(k){return k===45?(n.consume(k),s=2,v):k===91?(n.consume(k),s=5,d=0,w):Tt(k)?(n.consume(k),s=4,u.interrupt?a:E):i(k)}function v(k){return k===45?(n.consume(k),u.interrupt?a:E):i(k)}function w(k){const F="CDATA[";return k===F.charCodeAt(d++)?(n.consume(k),d===F.length?u.interrupt?a:W:w):i(k)}function M(k){return Tt(k)?(n.consume(k),f=String.fromCharCode(k),B):i(k)}function B(k){if(k===null||k===47||k===62||Je(k)){const F=k===47,ae=f.toLowerCase();return!F&&!c&&gp.includes(ae)?(s=1,u.interrupt?a(k):W(k)):Fv.includes(f.toLowerCase())?(s=6,F?(n.consume(k),A):u.interrupt?a(k):W(k)):(s=7,u.interrupt&&!u.parser.lazy[u.now().line]?i(k):c?q(k):H(k))}return k===45||zt(k)?(n.consume(k),f+=String.fromCharCode(k),B):i(k)}function A(k){return k===62?(n.consume(k),u.interrupt?a:W):i(k)}function q(k){return Ae(k)?(n.consume(k),q):U(k)}function H(k){return k===47?(n.consume(k),U):k===58||k===95||Tt(k)?(n.consume(k),te):Ae(k)?(n.consume(k),H):U(k)}function te(k){return k===45||k===46||k===58||k===95||zt(k)?(n.consume(k),te):ie(k)}function ie(k){return k===61?(n.consume(k),D):Ae(k)?(n.consume(k),ie):H(k)}function D(k){return k===null||k===60||k===61||k===62||k===96?i(k):k===34||k===39?(n.consume(k),p=k,I):Ae(k)?(n.consume(k),D):se(k)}function I(k){return k===p?(n.consume(k),p=null,he):k===null||pe(k)?i(k):(n.consume(k),I)}function se(k){return k===null||k===34||k===39||k===47||k===60||k===61||k===62||k===96||Je(k)?ie(k):(n.consume(k),se)}function he(k){return k===47||k===62||Ae(k)?H(k):i(k)}function U(k){return k===62?(n.consume(k),le):i(k)}function le(k){return k===null||pe(k)?W(k):Ae(k)?(n.consume(k),le):i(k)}function W(k){return k===45&&s===2?(n.consume(k),R):k===60&&s===1?(n.consume(k),K):k===62&&s===4?(n.consume(k),C):k===63&&s===3?(n.consume(k),E):k===93&&s===5?(n.consume(k),be):pe(k)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(Kv,X,ye)(k)):k===null||pe(k)?(n.exit("htmlFlowData"),ye(k)):(n.consume(k),W)}function ye(k){return n.check(Jv,re,X)(k)}function re(k){return n.enter("lineEnding"),n.consume(k),n.exit("lineEnding"),$}function $(k){return k===null||pe(k)?ye(k):(n.enter("htmlFlowData"),W(k))}function R(k){return k===45?(n.consume(k),E):W(k)}function K(k){return k===47?(n.consume(k),f="",oe):W(k)}function oe(k){if(k===62){const F=f.toLowerCase();return gp.includes(F)?(n.consume(k),C):W(k)}return Tt(k)&&f.length<8?(n.consume(k),f+=String.fromCharCode(k),oe):W(k)}function be(k){return k===93?(n.consume(k),E):W(k)}function E(k){return k===62?(n.consume(k),C):k===45&&s===2?(n.consume(k),E):W(k)}function C(k){return k===null||pe(k)?(n.exit("htmlFlowData"),X(k)):(n.consume(k),C)}function X(k){return n.exit("htmlFlow"),a(k)}}function Wv(n,a,i){const u=this;return s;function s(f){return pe(f)?(n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),c):i(f)}function c(f){return u.parser.lazy[u.now().line]?i(f):a(f)}}function Pv(n,a,i){return u;function u(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(Ha,a,i)}}const e2={name:"htmlText",tokenize:t2};function t2(n,a,i){const u=this;let s,c,f;return d;function d(E){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(E),p}function p(E){return E===33?(n.consume(E),m):E===47?(n.consume(E),ie):E===63?(n.consume(E),H):Tt(E)?(n.consume(E),se):i(E)}function m(E){return E===45?(n.consume(E),y):E===91?(n.consume(E),c=0,w):Tt(E)?(n.consume(E),q):i(E)}function y(E){return E===45?(n.consume(E),v):i(E)}function g(E){return E===null?i(E):E===45?(n.consume(E),S):pe(E)?(f=g,K(E)):(n.consume(E),g)}function S(E){return E===45?(n.consume(E),v):g(E)}function v(E){return E===62?R(E):E===45?S(E):g(E)}function w(E){const C="CDATA[";return E===C.charCodeAt(c++)?(n.consume(E),c===C.length?M:w):i(E)}function M(E){return E===null?i(E):E===93?(n.consume(E),B):pe(E)?(f=M,K(E)):(n.consume(E),M)}function B(E){return E===93?(n.consume(E),A):M(E)}function A(E){return E===62?R(E):E===93?(n.consume(E),A):M(E)}function q(E){return E===null||E===62?R(E):pe(E)?(f=q,K(E)):(n.consume(E),q)}function H(E){return E===null?i(E):E===63?(n.consume(E),te):pe(E)?(f=H,K(E)):(n.consume(E),H)}function te(E){return E===62?R(E):H(E)}function ie(E){return Tt(E)?(n.consume(E),D):i(E)}function D(E){return E===45||zt(E)?(n.consume(E),D):I(E)}function I(E){return pe(E)?(f=I,K(E)):Ae(E)?(n.consume(E),I):R(E)}function se(E){return E===45||zt(E)?(n.consume(E),se):E===47||E===62||Je(E)?he(E):i(E)}function he(E){return E===47?(n.consume(E),R):E===58||E===95||Tt(E)?(n.consume(E),U):pe(E)?(f=he,K(E)):Ae(E)?(n.consume(E),he):R(E)}function U(E){return E===45||E===46||E===58||E===95||zt(E)?(n.consume(E),U):le(E)}function le(E){return E===61?(n.consume(E),W):pe(E)?(f=le,K(E)):Ae(E)?(n.consume(E),le):he(E)}function W(E){return E===null||E===60||E===61||E===62||E===96?i(E):E===34||E===39?(n.consume(E),s=E,ye):pe(E)?(f=W,K(E)):Ae(E)?(n.consume(E),W):(n.consume(E),re)}function ye(E){return E===s?(n.consume(E),s=void 0,$):E===null?i(E):pe(E)?(f=ye,K(E)):(n.consume(E),ye)}function re(E){return E===null||E===34||E===39||E===60||E===61||E===96?i(E):E===47||E===62||Je(E)?he(E):(n.consume(E),re)}function $(E){return E===47||E===62||Je(E)?he(E):i(E)}function R(E){return E===62?(n.consume(E),n.exit("htmlTextData"),n.exit("htmlText"),a):i(E)}function K(E){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),oe}function oe(E){return Ae(E)?Re(n,be,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):be(E)}function be(E){return n.enter("htmlTextData"),f(E)}}const Ac={name:"labelEnd",resolveAll:a2,resolveTo:r2,tokenize:u2},n2={tokenize:s2},l2={tokenize:o2},i2={tokenize:c2};function a2(n){let a=-1;const i=[];for(;++a<n.length;){const u=n[a][1];if(i.push(n[a]),u.type==="labelImage"||u.type==="labelLink"||u.type==="labelEnd"){const s=u.type==="labelImage"?4:2;u.type="data",a+=s}}return n.length!==i.length&&Zt(n,0,n.length,i),n}function r2(n,a){let i=n.length,u=0,s,c,f,d;for(;i--;)if(s=n[i][1],c){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[i][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(f){if(n[i][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(c=i,s.type!=="labelLink")){u=2;break}}else s.type==="labelEnd"&&(f=i);const p={type:n[c][1].type==="labelLink"?"link":"image",start:{...n[c][1].start},end:{...n[n.length-1][1].end}},m={type:"label",start:{...n[c][1].start},end:{...n[f][1].end}},y={type:"labelText",start:{...n[c+u+2][1].end},end:{...n[f-2][1].start}};return d=[["enter",p,a],["enter",m,a]],d=an(d,n.slice(c+1,c+u+3)),d=an(d,[["enter",y,a]]),d=an(d,pu(a.parser.constructs.insideSpan.null,n.slice(c+u+4,f-3),a)),d=an(d,[["exit",y,a],n[f-2],n[f-1],["exit",m,a]]),d=an(d,n.slice(f+1)),d=an(d,[["exit",p,a]]),Zt(n,c,n.length,d),n}function u2(n,a,i){const u=this;let s=u.events.length,c,f;for(;s--;)if((u.events[s][1].type==="labelImage"||u.events[s][1].type==="labelLink")&&!u.events[s][1]._balanced){c=u.events[s][1];break}return d;function d(S){return c?c._inactive?g(S):(f=u.parser.defined.includes(hn(u.sliceSerialize({start:c.end,end:u.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(S),n.exit("labelMarker"),n.exit("labelEnd"),p):i(S)}function p(S){return S===40?n.attempt(n2,y,f?y:g)(S):S===91?n.attempt(l2,y,f?m:g)(S):f?y(S):g(S)}function m(S){return n.attempt(i2,y,g)(S)}function y(S){return a(S)}function g(S){return c._balanced=!0,i(S)}}function s2(n,a,i){return u;function u(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return Je(g)?Oa(n,c)(g):c(g)}function c(g){return g===41?y(g):M0(n,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function f(g){return Je(g)?Oa(n,p)(g):y(g)}function d(g){return i(g)}function p(g){return g===34||g===39||g===40?O0(n,m,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function m(g){return Je(g)?Oa(n,y)(g):y(g)}function y(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),a):i(g)}}function o2(n,a,i){const u=this;return s;function s(d){return _0.call(u,n,c,f,"reference","referenceMarker","referenceString")(d)}function c(d){return u.parser.defined.includes(hn(u.sliceSerialize(u.events[u.events.length-1][1]).slice(1,-1)))?a(d):i(d)}function f(d){return i(d)}}function c2(n,a,i){return u;function u(c){return n.enter("reference"),n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),s}function s(c){return c===93?(n.enter("referenceMarker"),n.consume(c),n.exit("referenceMarker"),n.exit("reference"),a):i(c)}}const f2={name:"labelStartImage",resolveAll:Ac.resolveAll,tokenize:h2};function h2(n,a,i){const u=this;return s;function s(d){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(d),n.exit("labelImageMarker"),c}function c(d){return d===91?(n.enter("labelMarker"),n.consume(d),n.exit("labelMarker"),n.exit("labelImage"),f):i(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in u.parser.constructs?i(d):a(d)}}const d2={name:"labelStartLink",resolveAll:Ac.resolveAll,tokenize:m2};function m2(n,a,i){const u=this;return s;function s(f){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(f),n.exit("labelMarker"),n.exit("labelLink"),c}function c(f){return f===94&&"_hiddenFootnoteSupport"in u.parser.constructs?i(f):a(f)}}const Vo={name:"lineEnding",tokenize:p2};function p2(n,a){return i;function i(u){return n.enter("lineEnding"),n.consume(u),n.exit("lineEnding"),Re(n,a,"linePrefix")}}const uu={name:"thematicBreak",tokenize:g2};function g2(n,a,i){let u=0,s;return c;function c(m){return n.enter("thematicBreak"),f(m)}function f(m){return s=m,d(m)}function d(m){return m===s?(n.enter("thematicBreakSequence"),p(m)):u>=3&&(m===null||pe(m))?(n.exit("thematicBreak"),a(m)):i(m)}function p(m){return m===s?(n.consume(m),u++,p):(n.exit("thematicBreakSequence"),Ae(m)?Re(n,d,"whitespace")(m):d(m))}}const Rt={continuation:{tokenize:v2},exit:z2,name:"list",tokenize:b2},x2={partial:!0,tokenize:k2},y2={partial:!0,tokenize:S2};function b2(n,a,i){const u=this,s=u.events[u.events.length-1];let c=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,f=0;return d;function d(v){const w=u.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!u.containerState.marker||v===u.containerState.marker:sc(v)){if(u.containerState.type||(u.containerState.type=w,n.enter(w,{_container:!0})),w==="listUnordered")return n.enter("listItemPrefix"),v===42||v===45?n.check(uu,i,m)(v):m(v);if(!u.interrupt||v===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),p(v)}return i(v)}function p(v){return sc(v)&&++f<10?(n.consume(v),p):(!u.interrupt||f<2)&&(u.containerState.marker?v===u.containerState.marker:v===41||v===46)?(n.exit("listItemValue"),m(v)):i(v)}function m(v){return n.enter("listItemMarker"),n.consume(v),n.exit("listItemMarker"),u.containerState.marker=u.containerState.marker||v,n.check(Ha,u.interrupt?i:y,n.attempt(x2,S,g))}function y(v){return u.containerState.initialBlankLine=!0,c++,S(v)}function g(v){return Ae(v)?(n.enter("listItemPrefixWhitespace"),n.consume(v),n.exit("listItemPrefixWhitespace"),S):i(v)}function S(v){return u.containerState.size=c+u.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(v)}}function v2(n,a,i){const u=this;return u.containerState._closeFlow=void 0,n.check(Ha,s,c);function s(d){return u.containerState.furtherBlankLines=u.containerState.furtherBlankLines||u.containerState.initialBlankLine,Re(n,a,"listItemIndent",u.containerState.size+1)(d)}function c(d){return u.containerState.furtherBlankLines||!Ae(d)?(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,f(d)):(u.containerState.furtherBlankLines=void 0,u.containerState.initialBlankLine=void 0,n.attempt(y2,a,f)(d))}function f(d){return u.containerState._closeFlow=!0,u.interrupt=void 0,Re(n,n.attempt(Rt,a,i),"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function S2(n,a,i){const u=this;return Re(n,s,"listItemIndent",u.containerState.size+1);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===u.containerState.size?a(c):i(c)}}function z2(n){n.exit(this.containerState.type)}function k2(n,a,i){const u=this;return Re(n,s,"listItemPrefixWhitespace",u.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(c){const f=u.events[u.events.length-1];return!Ae(c)&&f&&f[1].type==="listItemPrefixWhitespace"?a(c):i(c)}}const xp={name:"setextUnderline",resolveTo:w2,tokenize:E2};function w2(n,a){let i=n.length,u,s,c;for(;i--;)if(n[i][0]==="enter"){if(n[i][1].type==="content"){u=i;break}n[i][1].type==="paragraph"&&(s=i)}else n[i][1].type==="content"&&n.splice(i,1),!c&&n[i][1].type==="definition"&&(c=i);const f={type:"setextHeading",start:{...n[u][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",c?(n.splice(s,0,["enter",f,a]),n.splice(c+1,0,["exit",n[u][1],a]),n[u][1].end={...n[c][1].end}):n[u][1]=f,n.push(["exit",f,a]),n}function E2(n,a,i){const u=this;let s;return c;function c(m){let y=u.events.length,g;for(;y--;)if(u.events[y][1].type!=="lineEnding"&&u.events[y][1].type!=="linePrefix"&&u.events[y][1].type!=="content"){g=u.events[y][1].type==="paragraph";break}return!u.parser.lazy[u.now().line]&&(u.interrupt||g)?(n.enter("setextHeadingLine"),s=m,f(m)):i(m)}function f(m){return n.enter("setextHeadingLineSequence"),d(m)}function d(m){return m===s?(n.consume(m),d):(n.exit("setextHeadingLineSequence"),Ae(m)?Re(n,p,"lineSuffix")(m):p(m))}function p(m){return m===null||pe(m)?(n.exit("setextHeadingLine"),a(m)):i(m)}}const T2={tokenize:C2};function C2(n){const a=this,i=n.attempt(Ha,u,n.attempt(this.parser.constructs.flowInitial,s,Re(n,n.attempt(this.parser.constructs.flow,s,n.attempt(_v,s)),"linePrefix")));return i;function u(c){if(c===null){n.consume(c);return}return n.enter("lineEndingBlank"),n.consume(c),n.exit("lineEndingBlank"),a.currentConstruct=void 0,i}function s(c){if(c===null){n.consume(c);return}return n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),a.currentConstruct=void 0,i}}const N2={resolveAll:R0()},A2=D0("string"),j2=D0("text");function D0(n){return{resolveAll:R0(n==="text"?M2:void 0),tokenize:a};function a(i){const u=this,s=this.parser.constructs[n],c=i.attempt(s,f,d);return f;function f(y){return m(y)?c(y):d(y)}function d(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),p}function p(y){return m(y)?(i.exit("data"),c(y)):(i.consume(y),p)}function m(y){if(y===null)return!0;const g=s[y];let S=-1;if(g)for(;++S<g.length;){const v=g[S];if(!v.previous||v.previous.call(u,u.previous))return!0}return!1}}}function R0(n){return a;function a(i,u){let s=-1,c;for(;++s<=i.length;)c===void 0?i[s]&&i[s][1].type==="data"&&(c=s,s++):(!i[s]||i[s][1].type!=="data")&&(s!==c+2&&(i[c][1].end=i[s-1][1].end,i.splice(c+2,s-c-2),s=c+2),c=void 0);return n?n(i,u):i}}function M2(n,a){let i=0;for(;++i<=n.length;)if((i===n.length||n[i][1].type==="lineEnding")&&n[i-1][1].type==="data"){const u=n[i-1][1],s=a.sliceStream(u);let c=s.length,f=-1,d=0,p;for(;c--;){const m=s[c];if(typeof m=="string"){for(f=m.length;m.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-1}else if(m===-2)p=!0,d++;else if(m!==-1){c++;break}}if(a._contentTypeTextTrailing&&i===n.length&&(d=0),d){const m={type:i===n.length||p||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?f:u.start._bufferIndex+f,_index:u.start._index+c,line:u.end.line,column:u.end.column-d,offset:u.end.offset-d},end:{...u.end}};u.end={...m.start},u.start.offset===u.end.offset?Object.assign(u,m):(n.splice(i,0,["enter",m,a],["exit",m,a]),i+=2)}i++}return n}const _2={42:Rt,43:Rt,45:Rt,48:Rt,49:Rt,50:Rt,51:Rt,52:Rt,53:Rt,54:Rt,55:Rt,56:Rt,57:Rt,62:C0},O2={91:Uv},D2={[-2]:Yo,[-1]:Yo,32:Yo},R2={35:Xv,42:uu,45:[xp,uu],60:Zv,61:xp,95:uu,96:pp,126:pp},L2={38:A0,92:N0},U2={[-5]:Vo,[-4]:Vo,[-3]:Vo,33:f2,38:A0,42:oc,60:[dv,e2],91:d2,92:[Yv,N0],93:Ac,95:oc,96:Tv},B2={null:[oc,N2]},H2={null:[42,95]},q2={null:[]},Y2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:H2,contentInitial:O2,disable:q2,document:_2,flow:R2,flowInitial:D2,insideSpan:B2,string:L2,text:U2},Symbol.toStringTag,{value:"Module"}));function V2(n,a,i){let u={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const s={},c=[];let f=[],d=[];const p={attempt:I(ie),check:I(D),consume:q,enter:H,exit:te,interrupt:I(D,{interrupt:!0})},m={code:null,containerState:{},defineSkip:M,events:[],now:w,parser:n,previous:null,sliceSerialize:S,sliceStream:v,write:g};let y=a.tokenize.call(m,p);return a.resolveAll&&c.push(a),m;function g(le){return f=an(f,le),B(),f[f.length-1]!==null?[]:(se(a,0),m.events=pu(c,m.events,m),m.events)}function S(le,W){return G2(v(le),W)}function v(le){return X2(f,le)}function w(){const{_bufferIndex:le,_index:W,line:ye,column:re,offset:$}=u;return{_bufferIndex:le,_index:W,line:ye,column:re,offset:$}}function M(le){s[le.line]=le.column,U()}function B(){let le;for(;u._index<f.length;){const W=f[u._index];if(typeof W=="string")for(le=u._index,u._bufferIndex<0&&(u._bufferIndex=0);u._index===le&&u._bufferIndex<W.length;)A(W.charCodeAt(u._bufferIndex));else A(W)}}function A(le){y=y(le)}function q(le){pe(le)?(u.line++,u.column=1,u.offset+=le===-3?2:1,U()):le!==-1&&(u.column++,u.offset++),u._bufferIndex<0?u._index++:(u._bufferIndex++,u._bufferIndex===f[u._index].length&&(u._bufferIndex=-1,u._index++)),m.previous=le}function H(le,W){const ye=W||{};return ye.type=le,ye.start=w(),m.events.push(["enter",ye,m]),d.push(ye),ye}function te(le){const W=d.pop();return W.end=w(),m.events.push(["exit",W,m]),W}function ie(le,W){se(le,W.from)}function D(le,W){W.restore()}function I(le,W){return ye;function ye(re,$,R){let K,oe,be,E;return Array.isArray(re)?X(re):"tokenize"in re?X([re]):C(re);function C(ue){return Se;function Se(Ye){const Le=Ye!==null&&ue[Ye],pt=Ye!==null&&ue.null,rn=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(pt)?pt:pt?[pt]:[]];return X(rn)(Ye)}}function X(ue){return K=ue,oe=0,ue.length===0?R:k(ue[oe])}function k(ue){return Se;function Se(Ye){return E=he(),be=ue,ue.partial||(m.currentConstruct=ue),ue.name&&m.parser.constructs.disable.null.includes(ue.name)?ae():ue.tokenize.call(W?Object.assign(Object.create(m),W):m,p,F,ae)(Ye)}}function F(ue){return le(be,E),$}function ae(ue){return E.restore(),++oe<K.length?k(K[oe]):R}}}function se(le,W){le.resolveAll&&!c.includes(le)&&c.push(le),le.resolve&&Zt(m.events,W,m.events.length-W,le.resolve(m.events.slice(W),m)),le.resolveTo&&(m.events=le.resolveTo(m.events,m))}function he(){const le=w(),W=m.previous,ye=m.currentConstruct,re=m.events.length,$=Array.from(d);return{from:re,restore:R};function R(){u=le,m.previous=W,m.currentConstruct=ye,m.events.length=re,d=$,U()}}function U(){u.line in s&&u.column<2&&(u.column=s[u.line],u.offset+=s[u.line]-1)}}function X2(n,a){const i=a.start._index,u=a.start._bufferIndex,s=a.end._index,c=a.end._bufferIndex;let f;if(i===s)f=[n[i].slice(u,c)];else{if(f=n.slice(i,s),u>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(u):f.shift()}c>0&&f.push(n[s].slice(0,c))}return f}function G2(n,a){let i=-1;const u=[];let s;for(;++i<n.length;){const c=n[i];let f;if(typeof c=="string")f=c;else switch(c){case-5:{f="\r";break}case-4:{f=`
249
- `;break}case-3:{f=`\r
250
- `;break}case-2:{f=a?" ":" ";break}case-1:{if(!a&&s)continue;f=" ";break}default:f=String.fromCharCode(c)}s=c===-2,u.push(f)}return u.join("")}function Q2(n){const u={constructs:E0([Y2,...(n||{}).extensions||[]]),content:s(rv),defined:[],document:s(sv),flow:s(T2),lazy:{},string:s(A2),text:s(j2)};return u;function s(c){return f;function f(d){return V2(u,c,d)}}}function F2(n){for(;!j0(n););return n}const yp=/[\0\t\n\r]/g;function Z2(){let n=1,a="",i=!0,u;return s;function s(c,f,d){const p=[];let m,y,g,S,v;for(c=a+(typeof c=="string"?c.toString():new TextDecoder(f||void 0).decode(c)),g=0,a="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(yp.lastIndex=g,m=yp.exec(c),S=m&&m.index!==void 0?m.index:c.length,v=c.charCodeAt(S),!m){a=c.slice(g);break}if(v===10&&g===S&&u)p.push(-3),u=void 0;else switch(u&&(p.push(-5),u=void 0),g<S&&(p.push(c.slice(g,S)),n+=S-g),v){case 0:{p.push(65533),n++;break}case 9:{for(y=Math.ceil(n/4)*4,p.push(-2);n++<y;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:u=!0,n=1}g=S+1}return d&&(u&&p.push(-5),a&&p.push(a),p.push(null)),p}}const K2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function J2(n){return n.replace(K2,I2)}function I2(n,a,i){if(a)return a;if(i.charCodeAt(0)===35){const s=i.charCodeAt(1),c=s===120||s===88;return T0(i.slice(c?2:1),c?16:10)}return Nc(i)||n}const L0={}.hasOwnProperty;function $2(n,a,i){return typeof a!="string"&&(i=a,a=void 0),W2(i)(F2(Q2(i).document().write(Z2()(n,a,!0))))}function W2(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(Vn),autolinkProtocol:he,autolinkEmail:he,atxHeading:c(qn),blockQuote:c(pt),characterEscape:he,characterReference:he,codeFenced:c(rn),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:c(rn,f),codeText:c(gl,f),codeTextData:he,data:he,codeFlowValue:he,definition:c(Bl),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:c(un),hardBreakEscape:c(Yn),hardBreakTrailing:c(Yn),htmlFlow:c(Hl,f),htmlFlowData:he,htmlText:c(Hl,f),htmlTextData:he,image:c(ql),label:f,link:c(Vn),listItem:c(de),listItemValue:S,listOrdered:c(ne,g),listUnordered:c(ne),paragraph:c(ve),reference:k,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:c(qn),strong:c($e),thematicBreak:c(at)},exit:{atxHeading:p(),atxHeadingSequence:ie,autolink:p(),autolinkEmail:Le,autolinkProtocol:Ye,blockQuote:p(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:ue,characterReference:Se,codeFenced:p(B),codeFencedFence:M,codeFencedFenceInfo:v,codeFencedFenceMeta:w,codeFlowValue:U,codeIndented:p(A),codeText:p($),codeTextData:U,data:U,definition:p(),definitionDestinationString:te,definitionLabelString:q,definitionTitleString:H,emphasis:p(),hardBreakEscape:p(W),hardBreakTrailing:p(W),htmlFlow:p(ye),htmlFlowData:U,htmlText:p(re),htmlTextData:U,image:p(K),label:be,labelText:oe,lineEnding:le,link:p(R),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:F,resourceDestinationString:E,resourceTitleString:C,resource:X,setextHeading:p(se),setextHeadingLineSequence:I,setextHeadingText:D,strong:p(),thematicBreak:p()}};U0(a,(n||{}).mdastExtensions||[]);const i={};return u;function u(V){let ee={type:"root",children:[]};const ge={stack:[ee],tokenStack:[],config:a,enter:d,exit:m,buffer:f,resume:y,data:i},Te=[];let Ue=-1;for(;++Ue<V.length;)if(V[Ue][1].type==="listOrdered"||V[Ue][1].type==="listUnordered")if(V[Ue][0]==="enter")Te.push(Ue);else{const Bt=Te.pop();Ue=s(V,Bt,Ue)}for(Ue=-1;++Ue<V.length;){const Bt=a[V[Ue][0]];L0.call(Bt,V[Ue][1].type)&&Bt[V[Ue][1].type].call(Object.assign({sliceSerialize:V[Ue][2].sliceSerialize},ge),V[Ue][1])}if(ge.tokenStack.length>0){const Bt=ge.tokenStack[ge.tokenStack.length-1];(Bt[1]||bp).call(ge,void 0,Bt[0])}for(ee.position={start:ml(V.length>0?V[0][1].start:{line:1,column:1,offset:0}),end:ml(V.length>0?V[V.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue<a.transforms.length;)ee=a.transforms[Ue](ee)||ee;return ee}function s(V,ee,ge){let Te=ee-1,Ue=-1,Bt=!1,bn,wt,ft,Ct;for(;++Te<=ge;){const Ze=V[Te];switch(Ze[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ze[0]==="enter"?Ue++:Ue--,Ct=void 0;break}case"lineEndingBlank":{Ze[0]==="enter"&&(bn&&!Ct&&!Ue&&!ft&&(ft=Te),Ct=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ct=void 0}if(!Ue&&Ze[0]==="enter"&&Ze[1].type==="listItemPrefix"||Ue===-1&&Ze[0]==="exit"&&(Ze[1].type==="listUnordered"||Ze[1].type==="listOrdered")){if(bn){let Xn=Te;for(wt=void 0;Xn--;){const sn=V[Xn];if(sn[1].type==="lineEnding"||sn[1].type==="lineEndingBlank"){if(sn[0]==="exit")continue;wt&&(V[wt][1].type="lineEndingBlank",Bt=!0),sn[1].type="lineEnding",wt=Xn}else if(!(sn[1].type==="linePrefix"||sn[1].type==="blockQuotePrefix"||sn[1].type==="blockQuotePrefixWhitespace"||sn[1].type==="blockQuoteMarker"||sn[1].type==="listItemIndent"))break}ft&&(!wt||ft<wt)&&(bn._spread=!0),bn.end=Object.assign({},wt?V[wt][1].start:Ze[1].end),V.splice(wt||Te,0,["exit",bn,Ze[2]]),Te++,ge++}if(Ze[1].type==="listItemPrefix"){const Xn={type:"listItem",_spread:!1,start:Object.assign({},Ze[1].start),end:void 0};bn=Xn,V.splice(Te,0,["enter",Xn,Ze[2]]),Te++,ge++,ft=void 0,Ct=!0}}}return V[ee][1]._spread=Bt,ge}function c(V,ee){return ge;function ge(Te){d.call(this,V(Te),Te),ee&&ee.call(this,Te)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(V,ee,ge){this.stack[this.stack.length-1].children.push(V),this.stack.push(V),this.tokenStack.push([ee,ge||void 0]),V.position={start:ml(ee.start),end:void 0}}function p(V){return ee;function ee(ge){V&&V.call(this,ge),m.call(this,ge)}}function m(V,ee){const ge=this.stack.pop(),Te=this.tokenStack.pop();if(Te)Te[0].type!==V.type&&(ee?ee.call(this,V,Te[0]):(Te[1]||bp).call(this,V,Te[0]));else throw new Error("Cannot close `"+V.type+"` ("+_a({start:V.start,end:V.end})+"): it’s not open");ge.position.end=ml(V.end)}function y(){return Cc(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function S(V){if(this.data.expectingFirstListItemValue){const ee=this.stack[this.stack.length-2];ee.start=Number.parseInt(this.sliceSerialize(V),10),this.data.expectingFirstListItemValue=void 0}}function v(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.lang=V}function w(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.meta=V}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function B(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.value=V.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.value=V.replace(/(\r?\n|\r)$/g,"")}function q(V){const ee=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ee,ge.identifier=hn(this.sliceSerialize(V)).toLowerCase()}function H(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.title=V}function te(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.url=V}function ie(V){const ee=this.stack[this.stack.length-1];if(!ee.depth){const ge=this.sliceSerialize(V).length;ee.depth=ge}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function I(V){const ee=this.stack[this.stack.length-1];ee.depth=this.sliceSerialize(V).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function he(V){const ge=this.stack[this.stack.length-1].children;let Te=ge[ge.length-1];(!Te||Te.type!=="text")&&(Te=De(),Te.position={start:ml(V.start),end:void 0},ge.push(Te)),this.stack.push(Te)}function U(V){const ee=this.stack.pop();ee.value+=this.sliceSerialize(V),ee.position.end=ml(V.end)}function le(V){const ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ge=ee.children[ee.children.length-1];ge.position.end=ml(V.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(ee.type)&&(he.call(this,V),U.call(this,V))}function W(){this.data.atHardBreak=!0}function ye(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.value=V}function re(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.value=V}function $(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.value=V}function R(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=ee,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function K(){const V=this.stack[this.stack.length-1];if(this.data.inReference){const ee=this.data.referenceType||"shortcut";V.type+="Reference",V.referenceType=ee,delete V.url,delete V.title}else delete V.identifier,delete V.label;this.data.referenceType=void 0}function oe(V){const ee=this.sliceSerialize(V),ge=this.stack[this.stack.length-2];ge.label=J2(ee),ge.identifier=hn(ee).toLowerCase()}function be(){const V=this.stack[this.stack.length-1],ee=this.resume(),ge=this.stack[this.stack.length-1];if(this.data.inReference=!0,ge.type==="link"){const Te=V.children;ge.children=Te}else ge.alt=ee}function E(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.url=V}function C(){const V=this.resume(),ee=this.stack[this.stack.length-1];ee.title=V}function X(){this.data.inReference=void 0}function k(){this.data.referenceType="collapsed"}function F(V){const ee=this.resume(),ge=this.stack[this.stack.length-1];ge.label=ee,ge.identifier=hn(this.sliceSerialize(V)).toLowerCase(),this.data.referenceType="full"}function ae(V){this.data.characterReferenceType=V.type}function ue(V){const ee=this.sliceSerialize(V),ge=this.data.characterReferenceType;let Te;ge?(Te=T0(ee,ge==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Te=Nc(ee);const Ue=this.stack[this.stack.length-1];Ue.value+=Te}function Se(V){const ee=this.stack.pop();ee.position.end=ml(V.end)}function Ye(V){U.call(this,V);const ee=this.stack[this.stack.length-1];ee.url=this.sliceSerialize(V)}function Le(V){U.call(this,V);const ee=this.stack[this.stack.length-1];ee.url="mailto:"+this.sliceSerialize(V)}function pt(){return{type:"blockquote",children:[]}}function rn(){return{type:"code",lang:null,meta:null,value:""}}function gl(){return{type:"inlineCode",value:""}}function Bl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function un(){return{type:"emphasis",children:[]}}function qn(){return{type:"heading",depth:0,children:[]}}function Yn(){return{type:"break"}}function Hl(){return{type:"html",value:""}}function ql(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function ne(V){return{type:"list",ordered:V.type==="listOrdered",start:null,spread:V._spread,children:[]}}function de(V){return{type:"listItem",spread:V._spread,checked:null,children:[]}}function ve(){return{type:"paragraph",children:[]}}function $e(){return{type:"strong",children:[]}}function De(){return{type:"text",value:""}}function at(){return{type:"thematicBreak"}}}function ml(n){return{line:n.line,column:n.column,offset:n.offset}}function U0(n,a){let i=-1;for(;++i<a.length;){const u=a[i];Array.isArray(u)?U0(n,u):P2(n,u)}}function P2(n,a){let i;for(i in a)if(L0.call(a,i))switch(i){case"canContainEols":{const u=a[i];u&&n[i].push(...u);break}case"transforms":{const u=a[i];u&&n[i].push(...u);break}case"enter":case"exit":{const u=a[i];u&&Object.assign(n[i],u);break}}}function bp(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+_a({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+_a({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+_a({start:a.start,end:a.end})+") is still open")}function eS(n){const a=this;a.parser=i;function i(u){return $2(u,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function tS(n,a){const i={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,i),n.applyData(a,i)}function nS(n,a){const i={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,i),[n.applyData(a,i),{type:"text",value:`
251
- `}]}function lS(n,a){const i=a.value?a.value+`
252
- `:"",u={},s=a.lang?a.lang.split(/\s+/):[];s.length>0&&(u.className=["language-"+s[0]]);let c={type:"element",tagName:"code",properties:u,children:[{type:"text",value:i}]};return a.meta&&(c.data={meta:a.meta}),n.patch(a,c),c=n.applyData(a,c),c={type:"element",tagName:"pre",properties:{},children:[c]},n.patch(a,c),c}function iS(n,a){const i={type:"element",tagName:"del",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function aS(n,a){const i={type:"element",tagName:"em",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function rS(n,a){const i=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",u=String(a.identifier).toUpperCase(),s=Oi(u.toLowerCase()),c=n.footnoteOrder.indexOf(u);let f,d=n.footnoteCounts.get(u);d===void 0?(d=0,n.footnoteOrder.push(u),f=n.footnoteOrder.length):f=c+1,d+=1,n.footnoteCounts.set(u,d);const p={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+s,id:i+"fnref-"+s+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(f)}]};n.patch(a,p);const m={type:"element",tagName:"sup",properties:{},children:[p]};return n.patch(a,m),n.applyData(a,m)}function uS(n,a){const i={type:"element",tagName:"h"+a.depth,properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function sS(n,a){if(n.options.allowDangerousHtml){const i={type:"raw",value:a.value};return n.patch(a,i),n.applyData(a,i)}}function B0(n,a){const i=a.referenceType;let u="]";if(i==="collapsed"?u+="[]":i==="full"&&(u+="["+(a.label||a.identifier)+"]"),a.type==="imageReference")return[{type:"text",value:"!["+a.alt+u}];const s=n.all(a),c=s[0];c&&c.type==="text"?c.value="["+c.value:s.unshift({type:"text",value:"["});const f=s[s.length-1];return f&&f.type==="text"?f.value+=u:s.push({type:"text",value:u}),s}function oS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return B0(n,a);const s={src:Oi(u.url||""),alt:a.alt};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"img",properties:s,children:[]};return n.patch(a,c),n.applyData(a,c)}function cS(n,a){const i={src:Oi(a.url)};a.alt!==null&&a.alt!==void 0&&(i.alt=a.alt),a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"img",properties:i,children:[]};return n.patch(a,u),n.applyData(a,u)}function fS(n,a){const i={type:"text",value:a.value.replace(/\r?\n|\r/g," ")};n.patch(a,i);const u={type:"element",tagName:"code",properties:{},children:[i]};return n.patch(a,u),n.applyData(a,u)}function hS(n,a){const i=String(a.identifier).toUpperCase(),u=n.definitionById.get(i);if(!u)return B0(n,a);const s={href:Oi(u.url||"")};u.title!==null&&u.title!==void 0&&(s.title=u.title);const c={type:"element",tagName:"a",properties:s,children:n.all(a)};return n.patch(a,c),n.applyData(a,c)}function dS(n,a){const i={href:Oi(a.url)};a.title!==null&&a.title!==void 0&&(i.title=a.title);const u={type:"element",tagName:"a",properties:i,children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function mS(n,a,i){const u=n.all(a),s=i?pS(i):H0(a),c={},f=[];if(typeof a.checked=="boolean"){const y=u[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},u.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:a.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let d=-1;for(;++d<u.length;){const y=u[d];(s||d!==0||y.type!=="element"||y.tagName!=="p")&&f.push({type:"text",value:`
253
- `}),y.type==="element"&&y.tagName==="p"&&!s?f.push(...y.children):f.push(y)}const p=u[u.length-1];p&&(s||p.type!=="element"||p.tagName!=="p")&&f.push({type:"text",value:`
254
- `});const m={type:"element",tagName:"li",properties:c,children:f};return n.patch(a,m),n.applyData(a,m)}function pS(n){let a=!1;if(n.type==="list"){a=n.spread||!1;const i=n.children;let u=-1;for(;!a&&++u<i.length;)a=H0(i[u])}return a}function H0(n){const a=n.spread;return a??n.children.length>1}function gS(n,a){const i={},u=n.all(a);let s=-1;for(typeof a.start=="number"&&a.start!==1&&(i.start=a.start);++s<u.length;){const f=u[s];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:a.ordered?"ol":"ul",properties:i,children:n.wrap(u,!0)};return n.patch(a,c),n.applyData(a,c)}function xS(n,a){const i={type:"element",tagName:"p",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function yS(n,a){const i={type:"root",children:n.wrap(n.all(a))};return n.patch(a,i),n.applyData(a,i)}function bS(n,a){const i={type:"element",tagName:"strong",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}function vS(n,a){const i=n.all(a),u=i.shift(),s=[];if(u){const f={type:"element",tagName:"thead",properties:{},children:n.wrap([u],!0)};n.patch(a.children[0],f),s.push(f)}if(i.length>0){const f={type:"element",tagName:"tbody",properties:{},children:n.wrap(i,!0)},d=kc(a.children[1]),p=y0(a.children[a.children.length-1]);d&&p&&(f.position={start:d,end:p}),s.push(f)}const c={type:"element",tagName:"table",properties:{},children:n.wrap(s,!0)};return n.patch(a,c),n.applyData(a,c)}function SS(n,a,i){const u=i?i.children:void 0,c=(u?u.indexOf(a):1)===0?"th":"td",f=i&&i.type==="table"?i.align:void 0,d=f?f.length:a.children.length;let p=-1;const m=[];for(;++p<d;){const g=a.children[p],S={},v=f?f[p]:void 0;v&&(S.align=v);let w={type:"element",tagName:c,properties:S,children:[]};g&&(w.children=n.all(g),n.patch(g,w),w=n.applyData(g,w)),m.push(w)}const y={type:"element",tagName:"tr",properties:{},children:n.wrap(m,!0)};return n.patch(a,y),n.applyData(a,y)}function zS(n,a){const i={type:"element",tagName:"td",properties:{},children:n.all(a)};return n.patch(a,i),n.applyData(a,i)}const vp=9,Sp=32;function kS(n){const a=String(n),i=/\r?\n|\r/g;let u=i.exec(a),s=0;const c=[];for(;u;)c.push(zp(a.slice(s,u.index),s>0,!0),u[0]),s=u.index+u[0].length,u=i.exec(a);return c.push(zp(a.slice(s),s>0,!1)),c.join("")}function zp(n,a,i){let u=0,s=n.length;if(a){let c=n.codePointAt(u);for(;c===vp||c===Sp;)u++,c=n.codePointAt(u)}if(i){let c=n.codePointAt(s-1);for(;c===vp||c===Sp;)s--,c=n.codePointAt(s-1)}return s>u?n.slice(u,s):""}function wS(n,a){const i={type:"text",value:kS(String(a.value))};return n.patch(a,i),n.applyData(a,i)}function ES(n,a){const i={type:"element",tagName:"hr",properties:{},children:[]};return n.patch(a,i),n.applyData(a,i)}const TS={blockquote:tS,break:nS,code:lS,delete:iS,emphasis:aS,footnoteReference:rS,heading:uS,html:sS,imageReference:oS,image:cS,inlineCode:fS,linkReference:hS,link:dS,listItem:mS,list:gS,paragraph:xS,root:yS,strong:bS,table:vS,tableCell:zS,tableRow:SS,text:wS,thematicBreak:ES,toml:lu,yaml:lu,definition:lu,footnoteDefinition:lu};function lu(){}const q0=-1,gu=0,Da=1,fu=2,jc=3,Mc=4,_c=5,Oc=6,Y0=7,V0=8,kp=typeof self=="object"?self:globalThis,CS=(n,a)=>{const i=(s,c)=>(n.set(c,s),s),u=s=>{if(n.has(s))return n.get(s);const[c,f]=a[s];switch(c){case gu:case q0:return i(f,s);case Da:{const d=i([],s);for(const p of f)d.push(u(p));return d}case fu:{const d=i({},s);for(const[p,m]of f)d[u(p)]=u(m);return d}case jc:return i(new Date(f),s);case Mc:{const{source:d,flags:p}=f;return i(new RegExp(d,p),s)}case _c:{const d=i(new Map,s);for(const[p,m]of f)d.set(u(p),u(m));return d}case Oc:{const d=i(new Set,s);for(const p of f)d.add(u(p));return d}case Y0:{const{name:d,message:p}=f;return i(new kp[d](p),s)}case V0:return i(BigInt(f),s);case"BigInt":return i(Object(BigInt(f)),s);case"ArrayBuffer":return i(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:d}=new Uint8Array(f);return i(new DataView(d),f)}}return i(new kp[c](f),s)};return u},wp=n=>CS(new Map,n)(0),Ci="",{toString:NS}={},{keys:AS}=Object,Ma=n=>{const a=typeof n;if(a!=="object"||!n)return[gu,a];const i=NS.call(n).slice(8,-1);switch(i){case"Array":return[Da,Ci];case"Object":return[fu,Ci];case"Date":return[jc,Ci];case"RegExp":return[Mc,Ci];case"Map":return[_c,Ci];case"Set":return[Oc,Ci];case"DataView":return[Da,i]}return i.includes("Array")?[Da,i]:i.includes("Error")?[Y0,i]:[fu,i]},iu=([n,a])=>n===gu&&(a==="function"||a==="symbol"),jS=(n,a,i,u)=>{const s=(f,d)=>{const p=u.push(f)-1;return i.set(d,p),p},c=f=>{if(i.has(f))return i.get(f);let[d,p]=Ma(f);switch(d){case gu:{let y=f;switch(p){case"bigint":d=V0,y=f.toString();break;case"function":case"symbol":if(n)throw new TypeError("unable to serialize "+p);y=null;break;case"undefined":return s([q0],f)}return s([d,y],f)}case Da:{if(p){let S=f;return p==="DataView"?S=new Uint8Array(f.buffer):p==="ArrayBuffer"&&(S=new Uint8Array(f)),s([p,[...S]],f)}const y=[],g=s([d,y],f);for(const S of f)y.push(c(S));return g}case fu:{if(p)switch(p){case"BigInt":return s([p,f.toString()],f);case"Boolean":case"Number":case"String":return s([p,f.valueOf()],f)}if(a&&"toJSON"in f)return c(f.toJSON());const y=[],g=s([d,y],f);for(const S of AS(f))(n||!iu(Ma(f[S])))&&y.push([c(S),c(f[S])]);return g}case jc:return s([d,f.toISOString()],f);case Mc:{const{source:y,flags:g}=f;return s([d,{source:y,flags:g}],f)}case _c:{const y=[],g=s([d,y],f);for(const[S,v]of f)(n||!(iu(Ma(S))||iu(Ma(v))))&&y.push([c(S),c(v)]);return g}case Oc:{const y=[],g=s([d,y],f);for(const S of f)(n||!iu(Ma(S)))&&y.push(c(S));return g}}const{message:m}=f;return s([d,{name:p,message:m}],f)};return c},Ep=(n,{json:a,lossy:i}={})=>{const u=[];return jS(!(a||i),!!a,new Map,u)(n),u},hu=typeof structuredClone=="function"?(n,a)=>a&&("json"in a||"lossy"in a)?wp(Ep(n,a)):structuredClone(n):(n,a)=>wp(Ep(n,a));function MS(n,a){const i=[{type:"text",value:"↩"}];return a>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(a)}]}),i}function _S(n,a){return"Back to reference "+(n+1)+(a>1?"-"+a:"")}function OS(n){const a=typeof n.options.clobberPrefix=="string"?n.options.clobberPrefix:"user-content-",i=n.options.footnoteBackContent||MS,u=n.options.footnoteBackLabel||_S,s=n.options.footnoteLabel||"Footnotes",c=n.options.footnoteLabelTagName||"h2",f=n.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let p=-1;for(;++p<n.footnoteOrder.length;){const m=n.footnoteById.get(n.footnoteOrder[p]);if(!m)continue;const y=n.all(m),g=String(m.identifier).toUpperCase(),S=Oi(g.toLowerCase());let v=0;const w=[],M=n.footnoteCounts.get(g);for(;M!==void 0&&++v<=M;){w.length>0&&w.push({type:"text",value:" "});let q=typeof i=="string"?i:i(p,v);typeof q=="string"&&(q={type:"text",value:q}),w.push({type:"element",tagName:"a",properties:{href:"#"+a+"fnref-"+S+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof u=="string"?u:u(p,v),className:["data-footnote-backref"]},children:Array.isArray(q)?q:[q]})}const B=y[y.length-1];if(B&&B.type==="element"&&B.tagName==="p"){const q=B.children[B.children.length-1];q&&q.type==="text"?q.value+=" ":B.children.push({type:"text",value:" "}),B.children.push(...w)}else y.push(...w);const A={type:"element",tagName:"li",properties:{id:a+"fn-"+S},children:n.wrap(y,!0)};n.patch(m,A),d.push(A)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...hu(f),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
255
- `},{type:"element",tagName:"ol",properties:{},children:n.wrap(d,!0)},{type:"text",value:`
256
- `}]}}const xu=(function(n){if(n==null)return US;if(typeof n=="function")return yu(n);if(typeof n=="object")return Array.isArray(n)?DS(n):RS(n);if(typeof n=="string")return LS(n);throw new Error("Expected function, string, or object as test")});function DS(n){const a=[];let i=-1;for(;++i<n.length;)a[i]=xu(n[i]);return yu(u);function u(...s){let c=-1;for(;++c<a.length;)if(a[c].apply(this,s))return!0;return!1}}function RS(n){const a=n;return yu(i);function i(u){const s=u;let c;for(c in n)if(s[c]!==a[c])return!1;return!0}}function LS(n){return yu(a);function a(i){return i&&i.type===n}}function yu(n){return a;function a(i,u,s){return!!(BS(i)&&n.call(this,i,typeof u=="number"?u:void 0,s||void 0))}}function US(){return!0}function BS(n){return n!==null&&typeof n=="object"&&"type"in n}const X0=[],HS=!0,cc=!1,qS="skip";function G0(n,a,i,u){let s;typeof a=="function"&&typeof i!="function"?(u=i,i=a):s=a;const c=xu(s),f=u?-1:1;d(n,void 0,[])();function d(p,m,y){const g=p&&typeof p=="object"?p:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(S,"name",{value:"node ("+(p.type+(v?"<"+v+">":""))+")"})}return S;function S(){let v=X0,w,M,B;if((!a||c(p,m,y[y.length-1]||void 0))&&(v=YS(i(p,y)),v[0]===cc))return v;if("children"in p&&p.children){const A=p;if(A.children&&v[0]!==qS)for(M=(u?A.children.length:-1)+f,B=y.concat(A);M>-1&&M<A.children.length;){const q=A.children[M];if(w=d(q,M,B)(),w[0]===cc)return w;M=typeof w[1]=="number"?w[1]:M+f}}return v}}}function YS(n){return Array.isArray(n)?n:typeof n=="number"?[HS,n]:n==null?X0:[n]}function Dc(n,a,i,u){let s,c,f;typeof a=="function"&&typeof i!="function"?(c=void 0,f=a,s=i):(c=a,f=i,s=u),G0(n,c,d,s);function d(p,m){const y=m[m.length-1],g=y?y.children.indexOf(p):void 0;return f(p,g,y)}}const fc={}.hasOwnProperty,VS={};function XS(n,a){const i=a||VS,u=new Map,s=new Map,c=new Map,f={...TS,...i.handlers},d={all:m,applyData:QS,definitionById:u,footnoteById:s,footnoteCounts:c,footnoteOrder:[],handlers:f,one:p,options:i,patch:GS,wrap:ZS};return Dc(n,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?u:s,S=String(y.identifier).toUpperCase();g.has(S)||g.set(S,y)}}),d;function p(y,g){const S=y.type,v=d.handlers[S];if(fc.call(d.handlers,S)&&v)return v(d,y,g);if(d.options.passThrough&&d.options.passThrough.includes(S)){if("children"in y){const{children:M,...B}=y,A=hu(B);return A.children=d.all(y),A}return hu(y)}return(d.options.unknownHandler||FS)(d,y,g)}function m(y){const g=[];if("children"in y){const S=y.children;let v=-1;for(;++v<S.length;){const w=d.one(S[v],y);if(w){if(v&&S[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Tp(w.value)),!Array.isArray(w)&&w.type==="element")){const M=w.children[0];M&&M.type==="text"&&(M.value=Tp(M.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function GS(n,a){n.position&&(a.position=_b(n))}function QS(n,a){let i=a;if(n&&n.data){const u=n.data.hName,s=n.data.hChildren,c=n.data.hProperties;if(typeof u=="string")if(i.type==="element")i.tagName=u;else{const f="children"in i?i.children:[i];i={type:"element",tagName:u,properties:{},children:f}}i.type==="element"&&c&&Object.assign(i.properties,hu(c)),"children"in i&&i.children&&s!==null&&s!==void 0&&(i.children=s)}return i}function FS(n,a){const i=a.data||{},u="value"in a&&!(fc.call(i,"hProperties")||fc.call(i,"hChildren"))?{type:"text",value:a.value}:{type:"element",tagName:"div",properties:{},children:n.all(a)};return n.patch(a,u),n.applyData(a,u)}function ZS(n,a){const i=[];let u=-1;for(a&&i.push({type:"text",value:`
257
- `});++u<n.length;)u&&i.push({type:"text",value:`
258
- `}),i.push(n[u]);return a&&n.length>0&&i.push({type:"text",value:`
259
- `}),i}function Tp(n){let a=0,i=n.charCodeAt(a);for(;i===9||i===32;)a++,i=n.charCodeAt(a);return n.slice(a)}function Cp(n,a){const i=XS(n,a),u=i.one(n,void 0),s=OS(i),c=Array.isArray(u)?{type:"root",children:u}:u||{type:"root",children:[]};return s&&c.children.push({type:"text",value:`
260
- `},s),c}function KS(n,a){return n&&"run"in n?async function(i,u){const s=Cp(i,{file:u,...a});await n.run(s,u)}:function(i,u){return Cp(i,{file:u,...n||a})}}function Np(n){if(n)throw n}var Xo,Ap;function JS(){if(Ap)return Xo;Ap=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,i=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=function(m){return typeof Array.isArray=="function"?Array.isArray(m):a.call(m)==="[object Array]"},c=function(m){if(!m||a.call(m)!=="[object Object]")return!1;var y=n.call(m,"constructor"),g=m.constructor&&m.constructor.prototype&&n.call(m.constructor.prototype,"isPrototypeOf");if(m.constructor&&!y&&!g)return!1;var S;for(S in m);return typeof S>"u"||n.call(m,S)},f=function(m,y){i&&y.name==="__proto__"?i(m,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):m[y.name]=y.newValue},d=function(m,y){if(y==="__proto__")if(n.call(m,y)){if(u)return u(m,y).value}else return;return m[y]};return Xo=function p(){var m,y,g,S,v,w,M=arguments[0],B=1,A=arguments.length,q=!1;for(typeof M=="boolean"&&(q=M,M=arguments[1]||{},B=2),(M==null||typeof M!="object"&&typeof M!="function")&&(M={});B<A;++B)if(m=arguments[B],m!=null)for(y in m)g=d(M,y),S=d(m,y),M!==S&&(q&&S&&(c(S)||(v=s(S)))?(v?(v=!1,w=g&&s(g)?g:[]):w=g&&c(g)?g:{},f(M,{name:y,newValue:p(q,w,S)})):typeof S<"u"&&f(M,{name:y,newValue:S}));return M},Xo}var IS=JS();const Go=Jp(IS);function hc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function $S(){const n=[],a={run:i,use:u};return a;function i(...s){let c=-1;const f=s.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...s);function d(p,...m){const y=n[++c];let g=-1;if(p){f(p);return}for(;++g<s.length;)(m[g]===null||m[g]===void 0)&&(m[g]=s[g]);s=m,y?WS(y,d)(...m):f(null,...m)}}function u(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function WS(n,a){let i;return u;function u(...f){const d=n.length>f.length;let p;d&&f.push(s);try{p=n.apply(this,f)}catch(m){const y=m;if(d&&i)throw y;return s(y)}d||(p&&p.then&&typeof p.then=="function"?p.then(c,s):p instanceof Error?s(p):c(p))}function s(f,...d){i||(i=!0,a(f,...d))}function c(f){s(null,f)}}const xn={basename:PS,dirname:ez,extname:tz,join:nz,sep:"/"};function PS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');qa(n);let i=0,u=-1,s=n.length,c;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(c){i=s+1;break}}else u<0&&(c=!0,u=s+1);return u<0?"":n.slice(i,u)}if(a===n)return"";let f=-1,d=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(c){i=s+1;break}}else f<0&&(c=!0,f=s+1),d>-1&&(n.codePointAt(s)===a.codePointAt(d--)?d<0&&(u=s):(d=-1,u=f));return i===u?u=f:u<0&&(u=n.length),n.slice(i,u)}function ez(n){if(qa(n),n.length===0)return".";let a=-1,i=n.length,u;for(;--i;)if(n.codePointAt(i)===47){if(u){a=i;break}}else u||(u=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function tz(n){qa(n);let a=n.length,i=-1,u=0,s=-1,c=0,f;for(;a--;){const d=n.codePointAt(a);if(d===47){if(f){u=a+1;break}continue}i<0&&(f=!0,i=a+1),d===46?s<0?s=a:c!==1&&(c=1):s>-1&&(c=-1)}return s<0||i<0||c===0||c===1&&s===i-1&&s===u+1?"":n.slice(s,i)}function nz(...n){let a=-1,i;for(;++a<n.length;)qa(n[a]),n[a]&&(i=i===void 0?n[a]:i+"/"+n[a]);return i===void 0?".":lz(i)}function lz(n){qa(n);const a=n.codePointAt(0)===47;let i=iz(n,!a);return i.length===0&&!a&&(i="."),i.length>0&&n.codePointAt(n.length-1)===47&&(i+="/"),a?"/"+i:i}function iz(n,a){let i="",u=0,s=-1,c=0,f=-1,d,p;for(;++f<=n.length;){if(f<n.length)d=n.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(s===f-1||c===1))if(s!==f-1&&c===2){if(i.length<2||u!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(p=i.lastIndexOf("/"),p!==i.length-1){p<0?(i="",u=0):(i=i.slice(0,p),u=i.length-1-i.lastIndexOf("/")),s=f,c=0;continue}}else if(i.length>0){i="",u=0,s=f,c=0;continue}}a&&(i=i.length>0?i+"/..":"..",u=2)}else i.length>0?i+="/"+n.slice(s+1,f):i=n.slice(s+1,f),u=f-s-1;s=f,c=0}else d===46&&c>-1?c++:c=-1}return i}function qa(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const az={cwd:rz};function rz(){return"/"}function dc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function uz(n){if(typeof n=="string")n=new URL(n);else if(!dc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return sz(n)}function sz(n){if(n.hostname!==""){const u=new TypeError('File URL host must be "localhost" or empty on darwin');throw u.code="ERR_INVALID_FILE_URL_HOST",u}const a=n.pathname;let i=-1;for(;++i<a.length;)if(a.codePointAt(i)===37&&a.codePointAt(i+1)===50){const u=a.codePointAt(i+2);if(u===70||u===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Qo=["history","path","basename","stem","extname","dirname"];class Q0{constructor(a){let i;a?dc(a)?i={path:a}:typeof a=="string"||oz(a)?i={value:a}:i=a:i={},this.cwd="cwd"in i?"":az.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let u=-1;for(;++u<Qo.length;){const c=Qo[u];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let s;for(s in i)Qo.includes(s)||(this[s]=i[s])}get basename(){return typeof this.path=="string"?xn.basename(this.path):void 0}set basename(a){Zo(a,"basename"),Fo(a,"basename"),this.path=xn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?xn.dirname(this.path):void 0}set dirname(a){jp(this.basename,"dirname"),this.path=xn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?xn.extname(this.path):void 0}set extname(a){if(Fo(a,"extname"),jp(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){dc(a)&&(a=uz(a)),Zo(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?xn.basename(this.path,this.extname):void 0}set stem(a){Zo(a,"stem"),Fo(a,"stem"),this.path=xn.join(this.dirname||"",a+(this.extname||""))}fail(a,i,u){const s=this.message(a,i,u);throw s.fatal=!0,s}info(a,i,u){const s=this.message(a,i,u);return s.fatal=void 0,s}message(a,i,u){const s=new kt(a,i,u);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Fo(n,a){if(n&&n.includes(xn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+xn.sep+"`")}function Zo(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function jp(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function oz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const cz=(function(n){const u=this.constructor.prototype,s=u[n],c=function(){return s.apply(c,arguments)};return Object.setPrototypeOf(c,u),c}),fz={}.hasOwnProperty;class Rc extends cz{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=$S()}copy(){const a=new Rc;let i=-1;for(;++i<this.attachers.length;){const u=this.attachers[i];a.use(...u)}return a.data(Go(!0,{},this.namespace)),a}data(a,i){return typeof a=="string"?arguments.length===2?(Io("data",this.frozen),this.namespace[a]=i,this):fz.call(this.namespace,a)&&this.namespace[a]||void 0:a?(Io("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...u]=this.attachers[this.freezeIndex];if(u[0]===!1)continue;u[0]===!0&&(u[0]=void 0);const s=i.call(a,...u);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const i=au(a),u=this.parser||this.Parser;return Ko("parse",u),u(String(i),i)}process(a,i){const u=this;return this.freeze(),Ko("process",this.parser||this.Parser),Jo("process",this.compiler||this.Compiler),i?s(void 0,i):new Promise(s);function s(c,f){const d=au(a),p=u.parse(d);u.run(p,d,function(y,g,S){if(y||!g||!S)return m(y);const v=g,w=u.stringify(v,S);mz(w)?S.value=w:S.result=w,m(y,S)});function m(y,g){y||!g?f(y):c?c(g):i(void 0,g)}}}processSync(a){let i=!1,u;return this.freeze(),Ko("processSync",this.parser||this.Parser),Jo("processSync",this.compiler||this.Compiler),this.process(a,s),_p("processSync","process",i),u;function s(c,f){i=!0,Np(c),u=f}}run(a,i,u){Mp(a),this.freeze();const s=this.transformers;return!u&&typeof i=="function"&&(u=i,i=void 0),u?c(void 0,u):new Promise(c);function c(f,d){const p=au(i);s.run(a,p,m);function m(y,g,S){const v=g||a;y?d(y):f?f(v):u(void 0,v,S)}}}runSync(a,i){let u=!1,s;return this.run(a,i,c),_p("runSync","run",u),s;function c(f,d){Np(f),s=d,u=!0}}stringify(a,i){this.freeze();const u=au(i),s=this.compiler||this.Compiler;return Jo("stringify",s),Mp(a),s(a,u)}use(a,...i){const u=this.attachers,s=this.namespace;if(Io("use",this.frozen),a!=null)if(typeof a=="function")p(a,i);else if(typeof a=="object")Array.isArray(a)?d(a):f(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function c(m){if(typeof m=="function")p(m,[]);else if(typeof m=="object")if(Array.isArray(m)){const[y,...g]=m;p(y,g)}else f(m);else throw new TypeError("Expected usable value, not `"+m+"`")}function f(m){if(!("plugins"in m)&&!("settings"in m))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(m.plugins),m.settings&&(s.settings=Go(!0,s.settings,m.settings))}function d(m){let y=-1;if(m!=null)if(Array.isArray(m))for(;++y<m.length;){const g=m[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+m+"`")}function p(m,y){let g=-1,S=-1;for(;++g<u.length;)if(u[g][0]===m){S=g;break}if(S===-1)u.push([m,...y]);else if(y.length>0){let[v,...w]=y;const M=u[S][1];hc(M)&&hc(v)&&(v=Go(!0,M,v)),u[S]=[m,v,...w]}}}}const hz=new Rc().freeze();function Ko(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Jo(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function Io(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mp(n){if(!hc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function _p(n,a,i){if(!i)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function au(n){return dz(n)?n:new Q0(n)}function dz(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function mz(n){return typeof n=="string"||pz(n)}function pz(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const gz="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Op=[],Dp={allowDangerousHtml:!0},xz=/^(https?|ircs?|mailto|xmpp)$/i,yz=[{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 bz(n){const a=vz(n),i=Sz(n);return zz(a.runSync(a.parse(i),i),n)}function vz(n){const a=n.rehypePlugins||Op,i=n.remarkPlugins||Op,u=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Dp}:Dp;return hz().use(eS).use(i).use(KS,u).use(a)}function Sz(n){const a=n.children||"",i=new Q0;return typeof a=="string"&&(i.value=a),i}function zz(n,a){const i=a.allowedElements,u=a.allowElement,s=a.components,c=a.disallowedElements,f=a.skipHtml,d=a.unwrapDisallowed,p=a.urlTransform||kz;for(const y of yz)Object.hasOwn(a,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+gz+y.id,void 0);return Dc(n,m),Ub(n,{Fragment:b.Fragment,components:s,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function m(y,g,S){if(y.type==="raw"&&S&&typeof g=="number")return f?S.children.splice(g,1):S.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let v;for(v in qo)if(Object.hasOwn(qo,v)&&Object.hasOwn(y.properties,v)){const w=y.properties[v],M=qo[v];(M===null||M.includes(y.tagName))&&(y.properties[v]=p(String(w||""),v,y))}}if(y.type==="element"){let v=i?!i.includes(y.tagName):c?c.includes(y.tagName):!1;if(!v&&u&&typeof g=="number"&&(v=!u(y,g,S)),v&&S&&typeof g=="number")return d&&y.children?S.children.splice(g,1,...y.children):S.children.splice(g,1),g}}}function kz(n){const a=n.indexOf(":"),i=n.indexOf("?"),u=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||i!==-1&&a>i||u!==-1&&a>u||xz.test(n.slice(0,a))?n:""}function Rp(n,a){const i=String(n);if(typeof a!="string")throw new TypeError("Expected character");let u=0,s=i.indexOf(a);for(;s!==-1;)u++,s=i.indexOf(a,s+a.length);return u}function wz(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ez(n,a,i){const s=xu((i||{}).ignore||[]),c=Tz(a);let f=-1;for(;++f<c.length;)G0(n,"text",d);function d(m,y){let g=-1,S;for(;++g<y.length;){const v=y[g],w=S?S.children:void 0;if(s(v,w?w.indexOf(v):void 0,S))return;S=v}if(S)return p(m,y)}function p(m,y){const g=y[y.length-1],S=c[f][0],v=c[f][1];let w=0;const B=g.children.indexOf(m);let A=!1,q=[];S.lastIndex=0;let H=S.exec(m.value);for(;H;){const te=H.index,ie={index:H.index,input:H.input,stack:[...y,m]};let D=v(...H,ie);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?S.lastIndex=te+1:(w!==te&&q.push({type:"text",value:m.value.slice(w,te)}),Array.isArray(D)?q.push(...D):D&&q.push(D),w=te+H[0].length,A=!0),!S.global)break;H=S.exec(m.value)}return A?(w<m.value.length&&q.push({type:"text",value:m.value.slice(w)}),g.children.splice(B,1,...q)):q=[m],B+q.length}}function Tz(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!n[0]||Array.isArray(n[0])?n:[n];let u=-1;for(;++u<i.length;){const s=i[u];a.push([Cz(s[0]),Nz(s[1])])}return a}function Cz(n){return typeof n=="string"?new RegExp(wz(n),"g"):n}function Nz(n){return typeof n=="function"?n:function(){return n}}const $o="phrasing",Wo=["autolink","link","image","label"];function Az(){return{transforms:[Lz],enter:{literalAutolink:Mz,literalAutolinkEmail:Po,literalAutolinkHttp:Po,literalAutolinkWww:Po},exit:{literalAutolink:Rz,literalAutolinkEmail:Dz,literalAutolinkHttp:_z,literalAutolinkWww:Oz}}}function jz(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:$o,notInConstruct:Wo},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:$o,notInConstruct:Wo},{character:":",before:"[ps]",after:"\\/",inConstruct:$o,notInConstruct:Wo}]}}function Mz(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Po(n){this.config.enter.autolinkProtocol.call(this,n)}function _z(n){this.config.exit.autolinkProtocol.call(this,n)}function Oz(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function Dz(n){this.config.exit.autolinkEmail.call(this,n)}function Rz(n){this.exit(n)}function Lz(n){Ez(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Uz],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Bz]],{ignore:["link","linkReference"]})}function Uz(n,a,i,u,s){let c="";if(!F0(s)||(/^w/i.test(a)&&(i=a+i,a="",c="http://"),!Hz(i)))return!1;const f=qz(i+u);if(!f[0])return!1;const d={type:"link",title:null,url:c+a+f[0],children:[{type:"text",value:a+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function Bz(n,a,i,u){return!F0(u,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+i,children:[{type:"text",value:a+"@"+i}]}}function Hz(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function qz(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let i=a[0],u=i.indexOf(")");const s=Rp(n,"(");let c=Rp(n,")");for(;u!==-1&&s>c;)n+=i.slice(0,u+1),i=i.slice(u+1),u=i.indexOf(")"),c++;return[n,i]}function F0(n,a){const i=n.input.charCodeAt(n.index-1);return(n.index===0||Ll(i)||mu(i))&&(!a||i!==47)}Z0.peek=Jz;function Yz(){this.buffer()}function Vz(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function Xz(){this.buffer()}function Gz(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function Qz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=hn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Fz(n){this.exit(n)}function Zz(n){const a=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=hn(this.sliceSerialize(n)).toLowerCase(),i.label=a}function Kz(n){this.exit(n)}function Jz(){return"["}function Z0(n,a,i,u){const s=i.createTracker(u);let c=s.move("[^");const f=i.enter("footnoteReference"),d=i.enter("reference");return c+=s.move(i.safe(i.associationId(n),{after:"]",before:c})),d(),f(),c+=s.move("]"),c}function Iz(){return{enter:{gfmFootnoteCallString:Yz,gfmFootnoteCall:Vz,gfmFootnoteDefinitionLabelString:Xz,gfmFootnoteDefinition:Gz},exit:{gfmFootnoteCallString:Qz,gfmFootnoteCall:Fz,gfmFootnoteDefinitionLabelString:Zz,gfmFootnoteDefinition:Kz}}}function $z(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:i,footnoteReference:Z0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(u,s,c,f){const d=c.createTracker(f);let p=d.move("[^");const m=c.enter("footnoteDefinition"),y=c.enter("label");return p+=d.move(c.safe(c.associationId(u),{before:p,after:"]"})),y(),p+=d.move("]:"),u.children&&u.children.length>0&&(d.shift(4),p+=d.move((a?`
261
- `:" ")+c.indentLines(c.containerFlow(u,d.current()),a?K0:Wz))),m(),p}}function Wz(n,a,i){return a===0?n:K0(n,a,i)}function K0(n,a,i){return(i?"":" ")+n}const Pz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];J0.peek=ik;function ek(){return{canContainEols:["delete"],enter:{strikethrough:nk},exit:{strikethrough:lk}}}function tk(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Pz}],handlers:{delete:J0}}}function nk(n){this.enter({type:"delete",children:[]},n)}function lk(n){this.exit(n)}function J0(n,a,i,u){const s=i.createTracker(u),c=i.enter("strikethrough");let f=s.move("~~");return f+=i.containerPhrasing(n,{...s.current(),before:f,after:"~"}),f+=s.move("~~"),c(),f}function ik(){return"~"}function ak(n){return n.length}function rk(n,a){const i=a||{},u=(i.align||[]).concat(),s=i.stringLength||ak,c=[],f=[],d=[],p=[];let m=0,y=-1;for(;++y<n.length;){const M=[],B=[];let A=-1;for(n[y].length>m&&(m=n[y].length);++A<n[y].length;){const q=uk(n[y][A]);if(i.alignDelimiters!==!1){const H=s(q);B[A]=H,(p[A]===void 0||H>p[A])&&(p[A]=H)}M.push(q)}f[y]=M,d[y]=B}let g=-1;if(typeof u=="object"&&"length"in u)for(;++g<m;)c[g]=Lp(u[g]);else{const M=Lp(u);for(;++g<m;)c[g]=M}g=-1;const S=[],v=[];for(;++g<m;){const M=c[g];let B="",A="";M===99?(B=":",A=":"):M===108?B=":":M===114&&(A=":");let q=i.alignDelimiters===!1?1:Math.max(1,p[g]-B.length-A.length);const H=B+"-".repeat(q)+A;i.alignDelimiters!==!1&&(q=B.length+q+A.length,q>p[g]&&(p[g]=q),v[g]=q),S[g]=H}f.splice(1,0,S),d.splice(1,0,v),y=-1;const w=[];for(;++y<f.length;){const M=f[y],B=d[y];g=-1;const A=[];for(;++g<m;){const q=M[g]||"";let H="",te="";if(i.alignDelimiters!==!1){const ie=p[g]-(B[g]||0),D=c[g];D===114?H=" ".repeat(ie):D===99?ie%2?(H=" ".repeat(ie/2+.5),te=" ".repeat(ie/2-.5)):(H=" ".repeat(ie/2),te=H):te=" ".repeat(ie)}i.delimiterStart!==!1&&!g&&A.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&q==="")&&(i.delimiterStart!==!1||g)&&A.push(" "),i.alignDelimiters!==!1&&A.push(H),A.push(q),i.alignDelimiters!==!1&&A.push(te),i.padding!==!1&&A.push(" "),(i.delimiterEnd!==!1||g!==m-1)&&A.push("|")}w.push(i.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return w.join(`
262
- `)}function uk(n){return n==null?"":String(n)}function Lp(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function sk(n,a,i,u){const s=i.enter("blockquote"),c=i.createTracker(u);c.move("> "),c.shift(2);const f=i.indentLines(i.containerFlow(n,c.current()),ok);return s(),f}function ok(n,a,i){return">"+(i?"":" ")+n}function ck(n,a){return Up(n,a.inConstruct,!0)&&!Up(n,a.notInConstruct,!1)}function Up(n,a,i){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return i;let u=-1;for(;++u<a.length;)if(n.includes(a[u]))return!0;return!1}function Bp(n,a,i,u){let s=-1;for(;++s<i.unsafe.length;)if(i.unsafe[s].character===`
263
- `&&ck(i.stack,i.unsafe[s]))return/[ \t]/.test(u.before)?"":" ";return`\\
264
- `}function fk(n,a){const i=String(n);let u=i.indexOf(a),s=u,c=0,f=0;if(typeof a!="string")throw new TypeError("Expected substring");for(;u!==-1;)u===s?++c>f&&(f=c):c=1,s=u+a.length,u=i.indexOf(a,s);return f}function hk(n,a){return!!(a.options.fences===!1&&n.value&&!n.lang&&/[^ \r\n]/.test(n.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(n.value))}function dk(n){const a=n.options.fence||"`";if(a!=="`"&&a!=="~")throw new Error("Cannot serialize code with `"+a+"` for `options.fence`, expected `` ` `` or `~`");return a}function mk(n,a,i,u){const s=dk(i),c=n.value||"",f=s==="`"?"GraveAccent":"Tilde";if(hk(n,i)){const g=i.enter("codeIndented"),S=i.indentLines(c,pk);return g(),S}const d=i.createTracker(u),p=s.repeat(Math.max(fk(c,s)+1,3)),m=i.enter("codeFenced");let y=d.move(p);if(n.lang){const g=i.enter(`codeFencedLang${f}`);y+=d.move(i.safe(n.lang,{before:y,after:" ",encode:["`"],...d.current()})),g()}if(n.lang&&n.meta){const g=i.enter(`codeFencedMeta${f}`);y+=d.move(" "),y+=d.move(i.safe(n.meta,{before:y,after:`
265
- `,encode:["`"],...d.current()})),g()}return y+=d.move(`
266
- `),c&&(y+=d.move(c+`
267
- `)),y+=d.move(p),m(),y}function pk(n,a,i){return(i?"":" ")+n}function Lc(n){const a=n.options.quote||'"';if(a!=='"'&&a!=="'")throw new Error("Cannot serialize title with `"+a+"` for `options.quote`, expected `\"`, or `'`");return a}function gk(n,a,i,u){const s=Lc(i),c=s==='"'?"Quote":"Apostrophe",f=i.enter("definition");let d=i.enter("label");const p=i.createTracker(u);let m=p.move("[");return m+=p.move(i.safe(i.associationId(n),{before:m,after:"]",...p.current()})),m+=p.move("]: "),d(),!n.url||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=i.enter("destinationRaw"),m+=p.move(i.safe(n.url,{before:m,after:n.title?" ":`
268
- `,...p.current()}))),d(),n.title&&(d=i.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(i.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),f(),m}function xk(n){const a=n.options.emphasis||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize emphasis with `"+a+"` for `options.emphasis`, expected `*`, or `_`");return a}function La(n){return"&#x"+n.toString(16).toUpperCase()+";"}function du(n,a,i){const u=Mi(n),s=Mi(a);return u===void 0?s===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:u===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}I0.peek=yk;function I0(n,a,i,u){const s=xk(i),c=i.enter("emphasis"),f=i.createTracker(u),d=f.move(s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),y=du(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=La(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=du(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+La(g));const v=f.move(s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function yk(n,a,i){return i.options.emphasis||"*"}function bk(n,a){let i=!1;return Dc(n,function(u){if("value"in u&&/\r?\n|\r/.test(u.value)||u.type==="break")return i=!0,cc}),!!((!n.depth||n.depth<3)&&Cc(n)&&(a.options.setext||i))}function vk(n,a,i,u){const s=Math.max(Math.min(6,n.depth||1),1),c=i.createTracker(u);if(bk(n,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),S=i.containerPhrasing(n,{...c.current(),before:`
269
- `,after:`
270
- `});return g(),y(),S+`
271
- `+(s===1?"=":"-").repeat(S.length-(Math.max(S.lastIndexOf("\r"),S.lastIndexOf(`
272
- `))+1))}const f="#".repeat(s),d=i.enter("headingAtx"),p=i.enter("phrasing");c.move(f+" ");let m=i.containerPhrasing(n,{before:"# ",after:`
273
- `,...c.current()});return/^[\t ]/.test(m)&&(m=La(m.charCodeAt(0))+m.slice(1)),m=m?f+" "+m:f,i.options.closeAtx&&(m+=" "+f),p(),d(),m}$0.peek=Sk;function $0(n){return n.value||""}function Sk(){return"<"}W0.peek=zk;function W0(n,a,i,u){const s=Lc(i),c=s==='"'?"Quote":"Apostrophe",f=i.enter("image");let d=i.enter("label");const p=i.createTracker(u);let m=p.move("![");return m+=p.move(i.safe(n.alt,{before:m,after:"]",...p.current()})),m+=p.move("]("),d(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(d=i.enter("destinationLiteral"),m+=p.move("<"),m+=p.move(i.safe(n.url,{before:m,after:">",...p.current()})),m+=p.move(">")):(d=i.enter("destinationRaw"),m+=p.move(i.safe(n.url,{before:m,after:n.title?" ":")",...p.current()}))),d(),n.title&&(d=i.enter(`title${c}`),m+=p.move(" "+s),m+=p.move(i.safe(n.title,{before:m,after:s,...p.current()})),m+=p.move(s),d()),m+=p.move(")"),f(),m}function zk(){return"!"}P0.peek=kk;function P0(n,a,i,u){const s=n.referenceType,c=i.enter("imageReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("![");const m=i.safe(n.alt,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const y=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=y,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function kk(){return"!"}eg.peek=wk;function eg(n,a,i){let u=n.value||"",s="`",c=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(u);)s+="`";for(/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^`|`$/.test(u))&&(u=" "+u+" ");++c<i.unsafe.length;){const f=i.unsafe[c],d=i.compilePattern(f);let p;if(f.atBreak)for(;p=d.exec(u);){let m=p.index;u.charCodeAt(m)===10&&u.charCodeAt(m-1)===13&&m--,u=u.slice(0,m)+" "+u.slice(p.index+1)}}return s+u+s}function wk(){return"`"}function tg(n,a){const i=Cc(n);return!!(!a.options.resourceLink&&n.url&&!n.title&&n.children&&n.children.length===1&&n.children[0].type==="text"&&(i===n.url||"mailto:"+i===n.url)&&/^[a-z][a-z+.-]+:/i.test(n.url)&&!/[\0- <>\u007F]/.test(n.url))}ng.peek=Ek;function ng(n,a,i,u){const s=Lc(i),c=s==='"'?"Quote":"Apostrophe",f=i.createTracker(u);let d,p;if(tg(n,i)){const y=i.stack;i.stack=[],d=i.enter("autolink");let g=f.move("<");return g+=f.move(i.containerPhrasing(n,{before:g,after:">",...f.current()})),g+=f.move(">"),d(),i.stack=y,g}d=i.enter("link"),p=i.enter("label");let m=f.move("[");return m+=f.move(i.containerPhrasing(n,{before:m,after:"](",...f.current()})),m+=f.move("]("),p(),!n.url&&n.title||/[\0- \u007F]/.test(n.url)?(p=i.enter("destinationLiteral"),m+=f.move("<"),m+=f.move(i.safe(n.url,{before:m,after:">",...f.current()})),m+=f.move(">")):(p=i.enter("destinationRaw"),m+=f.move(i.safe(n.url,{before:m,after:n.title?" ":")",...f.current()}))),p(),n.title&&(p=i.enter(`title${c}`),m+=f.move(" "+s),m+=f.move(i.safe(n.title,{before:m,after:s,...f.current()})),m+=f.move(s),p()),m+=f.move(")"),d(),m}function Ek(n,a,i){return tg(n,i)?"<":"["}lg.peek=Tk;function lg(n,a,i,u){const s=n.referenceType,c=i.enter("linkReference");let f=i.enter("label");const d=i.createTracker(u);let p=d.move("[");const m=i.containerPhrasing(n,{before:p,after:"]",...d.current()});p+=d.move(m+"]["),f();const y=i.stack;i.stack=[],f=i.enter("reference");const g=i.safe(i.associationId(n),{before:p,after:"]",...d.current()});return f(),i.stack=y,c(),s==="full"||!m||m!==g?p+=d.move(g+"]"):s==="shortcut"?p=p.slice(0,-1):p+=d.move("]"),p}function Tk(){return"["}function Uc(n){const a=n.options.bullet||"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bullet`, expected `*`, `+`, or `-`");return a}function Ck(n){const a=Uc(n),i=n.options.bulletOther;if(!i)return a==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===a)throw new Error("Expected `bullet` (`"+a+"`) and `bulletOther` (`"+i+"`) to be different");return i}function Nk(n){const a=n.options.bulletOrdered||".";if(a!=="."&&a!==")")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOrdered`, expected `.` or `)`");return a}function ig(n){const a=n.options.rule||"*";if(a!=="*"&&a!=="-"&&a!=="_")throw new Error("Cannot serialize rules with `"+a+"` for `options.rule`, expected `*`, `-`, or `_`");return a}function Ak(n,a,i,u){const s=i.enter("list"),c=i.bulletCurrent;let f=n.ordered?Nk(i):Uc(i);const d=n.ordered?f==="."?")":".":Ck(i);let p=a&&i.bulletLastUsed?f===i.bulletLastUsed:!1;if(!n.ordered){const y=n.children?n.children[0]:void 0;if((f==="*"||f==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(p=!0),ig(i)===f&&y){let g=-1;for(;++g<n.children.length;){const S=n.children[g];if(S&&S.type==="listItem"&&S.children&&S.children[0]&&S.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(f=d),i.bulletCurrent=f;const m=i.containerFlow(n,u);return i.bulletLastUsed=f,i.bulletCurrent=c,s(),m}function jk(n){const a=n.options.listItemIndent||"one";if(a!=="tab"&&a!=="one"&&a!=="mixed")throw new Error("Cannot serialize items with `"+a+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return a}function Mk(n,a,i,u){const s=jk(i);let c=i.bulletCurrent||Uc(i);a&&a.type==="list"&&a.ordered&&(c=(typeof a.start=="number"&&a.start>-1?a.start:1)+(i.options.incrementListMarker===!1?0:a.children.indexOf(n))+c);let f=c.length+1;(s==="tab"||s==="mixed"&&(a&&a.type==="list"&&a.spread||n.spread))&&(f=Math.ceil(f/4)*4);const d=i.createTracker(u);d.move(c+" ".repeat(f-c.length)),d.shift(f);const p=i.enter("listItem"),m=i.indentLines(i.containerFlow(n,d.current()),y);return p(),m;function y(g,S,v){return S?(v?"":" ".repeat(f))+g:(v?c:c+" ".repeat(f-c.length))+g}}function _k(n,a,i,u){const s=i.enter("paragraph"),c=i.enter("phrasing"),f=i.containerPhrasing(n,u);return c(),s(),f}const Ok=xu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Dk(n,a,i,u){return(n.children.some(function(f){return Ok(f)})?i.containerPhrasing:i.containerFlow).call(i,n,u)}function Rk(n){const a=n.options.strong||"*";if(a!=="*"&&a!=="_")throw new Error("Cannot serialize strong with `"+a+"` for `options.strong`, expected `*`, or `_`");return a}ag.peek=Lk;function ag(n,a,i,u){const s=Rk(i),c=i.enter("strong"),f=i.createTracker(u),d=f.move(s+s);let p=f.move(i.containerPhrasing(n,{after:s,before:d,...f.current()}));const m=p.charCodeAt(0),y=du(u.before.charCodeAt(u.before.length-1),m,s);y.inside&&(p=La(m)+p.slice(1));const g=p.charCodeAt(p.length-1),S=du(u.after.charCodeAt(0),g,s);S.inside&&(p=p.slice(0,-1)+La(g));const v=f.move(s+s);return c(),i.attentionEncodeSurroundingInfo={after:S.outside,before:y.outside},d+p+v}function Lk(n,a,i){return i.options.strong||"*"}function Uk(n,a,i,u){return i.safe(n.value,u)}function Bk(n){const a=n.options.ruleRepetition||3;if(a<3)throw new Error("Cannot serialize rules with repetition `"+a+"` for `options.ruleRepetition`, expected `3` or more");return a}function Hk(n,a,i){const u=(ig(i)+(i.options.ruleSpaces?" ":"")).repeat(Bk(i));return i.options.ruleSpaces?u.slice(0,-1):u}const rg={blockquote:sk,break:Bp,code:mk,definition:gk,emphasis:I0,hardBreak:Bp,heading:vk,html:$0,image:W0,imageReference:P0,inlineCode:eg,link:ng,linkReference:lg,list:Ak,listItem:Mk,paragraph:_k,root:Dk,strong:ag,text:Uk,thematicBreak:Hk};function qk(){return{enter:{table:Yk,tableData:Hp,tableHeader:Hp,tableRow:Xk},exit:{codeText:Gk,table:Vk,tableData:ec,tableHeader:ec,tableRow:ec}}}function Yk(n){const a=n._align;this.enter({type:"table",align:a.map(function(i){return i==="none"?null:i}),children:[]},n),this.data.inTable=!0}function Vk(n){this.exit(n),this.data.inTable=void 0}function Xk(n){this.enter({type:"tableRow",children:[]},n)}function ec(n){this.exit(n)}function Hp(n){this.enter({type:"tableCell",children:[]},n)}function Gk(n){let a=this.resume();this.data.inTable&&(a=a.replace(/\\([\\|])/g,Qk));const i=this.stack[this.stack.length-1];i.type,i.value=a,this.exit(n)}function Qk(n,a){return a==="|"?a:n}function Fk(n){const a=n||{},i=a.tableCellPadding,u=a.tablePipeAlign,s=a.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
274
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:S,table:f,tableCell:p,tableRow:d}};function f(v,w,M,B){return m(y(v,M,B),v.align)}function d(v,w,M,B){const A=g(v,M,B),q=m([A]);return q.slice(0,q.indexOf(`
275
- `))}function p(v,w,M,B){const A=M.enter("tableCell"),q=M.enter("phrasing"),H=M.containerPhrasing(v,{...B,before:c,after:c});return q(),A(),H}function m(v,w){return rk(v,{align:w,alignDelimiters:u,padding:i,stringLength:s})}function y(v,w,M){const B=v.children;let A=-1;const q=[],H=w.enter("table");for(;++A<B.length;)q[A]=g(B[A],w,M);return H(),q}function g(v,w,M){const B=v.children;let A=-1;const q=[],H=w.enter("tableRow");for(;++A<B.length;)q[A]=p(B[A],v,w,M);return H(),q}function S(v,w,M){let B=rg.inlineCode(v,w,M);return M.stack.includes("tableCell")&&(B=B.replace(/\|/g,"\\$&")),B}}function Zk(){return{exit:{taskListCheckValueChecked:qp,taskListCheckValueUnchecked:qp,paragraph:Jk}}}function Kk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ik}}}function qp(n){const a=this.stack[this.stack.length-2];a.type,a.checked=n.type==="taskListCheckValueChecked"}function Jk(n){const a=this.stack[this.stack.length-2];if(a&&a.type==="listItem"&&typeof a.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const u=i.children[0];if(u&&u.type==="text"){const s=a.children;let c=-1,f;for(;++c<s.length;){const d=s[c];if(d.type==="paragraph"){f=d;break}}f===i&&(u.value=u.value.slice(1),u.value.length===0?i.children.shift():i.position&&u.position&&typeof u.position.start.offset=="number"&&(u.position.start.column++,u.position.start.offset++,i.position.start=Object.assign({},u.position.start)))}}this.exit(n)}function Ik(n,a,i,u){const s=n.children[0],c=typeof n.checked=="boolean"&&s&&s.type==="paragraph",f="["+(n.checked?"x":" ")+"] ",d=i.createTracker(u);c&&d.move(f);let p=rg.listItem(n,a,i,{...u,...d.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,m)),p;function m(y){return y+f}}function $k(){return[Az(),Iz(),ek(),qk(),Zk()]}function Wk(n){return{extensions:[jz(),$z(n),tk(),Fk(n),Kk()]}}const Pk={tokenize:aw,partial:!0},ug={tokenize:rw,partial:!0},sg={tokenize:uw,partial:!0},og={tokenize:sw,partial:!0},ew={tokenize:ow,partial:!0},cg={name:"wwwAutolink",tokenize:lw,previous:hg},fg={name:"protocolAutolink",tokenize:iw,previous:dg},Hn={name:"emailAutolink",tokenize:nw,previous:mg},yn={};function tw(){return{text:yn}}let Rl=48;for(;Rl<123;)yn[Rl]=Hn,Rl++,Rl===58?Rl=65:Rl===91&&(Rl=97);yn[43]=Hn;yn[45]=Hn;yn[46]=Hn;yn[95]=Hn;yn[72]=[Hn,fg];yn[104]=[Hn,fg];yn[87]=[Hn,cg];yn[119]=[Hn,cg];function nw(n,a,i){const u=this;let s,c;return f;function f(g){return!mc(g)||!mg.call(u,u.previous)||Bc(u.events)?i(g):(n.enter("literalAutolink"),n.enter("literalAutolinkEmail"),d(g))}function d(g){return mc(g)?(n.consume(g),d):g===64?(n.consume(g),p):i(g)}function p(g){return g===46?n.check(ew,y,m)(g):g===45||g===95||zt(g)?(c=!0,n.consume(g),p):y(g)}function m(g){return n.consume(g),s=!0,p}function y(g){return c&&s&&Tt(u.previous)?(n.exit("literalAutolinkEmail"),n.exit("literalAutolink"),a(g)):i(g)}}function lw(n,a,i){const u=this;return s;function s(f){return f!==87&&f!==119||!hg.call(u,u.previous)||Bc(u.events)?i(f):(n.enter("literalAutolink"),n.enter("literalAutolinkWww"),n.check(Pk,n.attempt(ug,n.attempt(sg,c),i),i)(f))}function c(f){return n.exit("literalAutolinkWww"),n.exit("literalAutolink"),a(f)}}function iw(n,a,i){const u=this;let s="",c=!1;return f;function f(g){return(g===72||g===104)&&dg.call(u,u.previous)&&!Bc(u.events)?(n.enter("literalAutolink"),n.enter("literalAutolinkHttp"),s+=String.fromCodePoint(g),n.consume(g),d):i(g)}function d(g){if(Tt(g)&&s.length<5)return s+=String.fromCodePoint(g),n.consume(g),d;if(g===58){const S=s.toLowerCase();if(S==="http"||S==="https")return n.consume(g),p}return i(g)}function p(g){return g===47?(n.consume(g),c?m:(c=!0,p)):i(g)}function m(g){return g===null||cu(g)||Je(g)||Ll(g)||mu(g)?i(g):n.attempt(ug,n.attempt(sg,y),i)(g)}function y(g){return n.exit("literalAutolinkHttp"),n.exit("literalAutolink"),a(g)}}function aw(n,a,i){let u=0;return s;function s(f){return(f===87||f===119)&&u<3?(u++,n.consume(f),s):f===46&&u===3?(n.consume(f),c):i(f)}function c(f){return f===null?i(f):a(f)}}function rw(n,a,i){let u,s,c;return f;function f(m){return m===46||m===95?n.check(og,p,d)(m):m===null||Je(m)||Ll(m)||m!==45&&mu(m)?p(m):(c=!0,n.consume(m),f)}function d(m){return m===95?u=!0:(s=u,u=void 0),n.consume(m),f}function p(m){return s||u||!c?i(m):a(m)}}function uw(n,a){let i=0,u=0;return s;function s(f){return f===40?(i++,n.consume(f),s):f===41&&u<i?c(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?n.check(og,a,c)(f):f===null||Je(f)||Ll(f)?a(f):(n.consume(f),s)}function c(f){return f===41&&u++,n.consume(f),s}}function sw(n,a,i){return u;function u(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?(n.consume(d),u):d===38?(n.consume(d),c):d===93?(n.consume(d),s):d===60||d===null||Je(d)||Ll(d)?a(d):i(d)}function s(d){return d===null||d===40||d===91||Je(d)||Ll(d)?a(d):u(d)}function c(d){return Tt(d)?f(d):i(d)}function f(d){return d===59?(n.consume(d),u):Tt(d)?(n.consume(d),f):i(d)}}function ow(n,a,i){return u;function u(c){return n.consume(c),s}function s(c){return zt(c)?i(c):a(c)}}function hg(n){return n===null||n===40||n===42||n===95||n===91||n===93||n===126||Je(n)}function dg(n){return!Tt(n)}function mg(n){return!(n===47||mc(n))}function mc(n){return n===43||n===45||n===46||n===95||zt(n)}function Bc(n){let a=n.length,i=!1;for(;a--;){const u=n[a][1];if((u.type==="labelLink"||u.type==="labelImage")&&!u._balanced){i=!0;break}if(u._gfmAutolinkLiteralWalkedInto){i=!1;break}}return n.length>0&&!i&&(n[n.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const cw={tokenize:yw,partial:!0};function fw(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:pw,continuation:{tokenize:gw},exit:xw}},text:{91:{name:"gfmFootnoteCall",tokenize:mw},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hw,resolveTo:dw}}}}function hw(n,a,i){const u=this;let s=u.events.length;const c=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let f;for(;s--;){const p=u.events[s][1];if(p.type==="labelImage"){f=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return d;function d(p){if(!f||!f._balanced)return i(p);const m=hn(u.sliceSerialize({start:f.end,end:u.now()}));return m.codePointAt(0)!==94||!c.includes(m.slice(1))?i(p):(n.enter("gfmFootnoteCallLabelMarker"),n.consume(p),n.exit("gfmFootnoteCallLabelMarker"),a(p))}}function dw(n,a){let i=n.length;for(;i--;)if(n[i][1].type==="labelImage"&&n[i][0]==="enter"){n[i][1];break}n[i+1][1].type="data",n[i+3][1].type="gfmFootnoteCallLabelMarker";const u={type:"gfmFootnoteCall",start:Object.assign({},n[i+3][1].start),end:Object.assign({},n[n.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},n[i+3][1].end),end:Object.assign({},n[i+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},n[n.length-1][1].start)},f={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},d=[n[i+1],n[i+2],["enter",u,a],n[i+3],n[i+4],["enter",s,a],["exit",s,a],["enter",c,a],["enter",f,a],["exit",f,a],["exit",c,a],n[n.length-2],n[n.length-1],["exit",u,a]];return n.splice(i,n.length-i+1,...d),n}function mw(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c=0,f;return d;function d(g){return n.enter("gfmFootnoteCall"),n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?i(g):(n.enter("gfmFootnoteCallMarker"),n.consume(g),n.exit("gfmFootnoteCallMarker"),n.enter("gfmFootnoteCallString"),n.enter("chunkString").contentType="string",m)}function m(g){if(c>999||g===93&&!f||g===null||g===91||Je(g))return i(g);if(g===93){n.exit("chunkString");const S=n.exit("gfmFootnoteCallString");return s.includes(hn(u.sliceSerialize(S)))?(n.enter("gfmFootnoteCallLabelMarker"),n.consume(g),n.exit("gfmFootnoteCallLabelMarker"),n.exit("gfmFootnoteCall"),a):i(g)}return Je(g)||(f=!0),c++,n.consume(g),g===92?y:m}function y(g){return g===91||g===92||g===93?(n.consume(g),c++,m):m(g)}}function pw(n,a,i){const u=this,s=u.parser.gfmFootnotes||(u.parser.gfmFootnotes=[]);let c,f=0,d;return p;function p(w){return n.enter("gfmFootnoteDefinition")._container=!0,n.enter("gfmFootnoteDefinitionLabel"),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),m}function m(w){return w===94?(n.enter("gfmFootnoteDefinitionMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionMarker"),n.enter("gfmFootnoteDefinitionLabelString"),n.enter("chunkString").contentType="string",y):i(w)}function y(w){if(f>999||w===93&&!d||w===null||w===91||Je(w))return i(w);if(w===93){n.exit("chunkString");const M=n.exit("gfmFootnoteDefinitionLabelString");return c=hn(u.sliceSerialize(M)),n.enter("gfmFootnoteDefinitionLabelMarker"),n.consume(w),n.exit("gfmFootnoteDefinitionLabelMarker"),n.exit("gfmFootnoteDefinitionLabel"),S}return Je(w)||(d=!0),f++,n.consume(w),w===92?g:y}function g(w){return w===91||w===92||w===93?(n.consume(w),f++,y):y(w)}function S(w){return w===58?(n.enter("definitionMarker"),n.consume(w),n.exit("definitionMarker"),s.includes(c)||s.push(c),Re(n,v,"gfmFootnoteDefinitionWhitespace")):i(w)}function v(w){return a(w)}}function gw(n,a,i){return n.check(Ha,a,n.attempt(cw,a,i))}function xw(n){n.exit("gfmFootnoteDefinition")}function yw(n,a,i){const u=this;return Re(n,s,"gfmFootnoteDefinitionIndent",5);function s(c){const f=u.events[u.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?a(c):i(c)}}function bw(n){let i=(n||{}).singleTilde;const u={name:"strikethrough",tokenize:c,resolveAll:s};return i==null&&(i=!0),{text:{126:u},insideSpan:{null:[u]},attentionMarkers:{null:[126]}};function s(f,d){let p=-1;for(;++p<f.length;)if(f[p][0]==="enter"&&f[p][1].type==="strikethroughSequenceTemporary"&&f[p][1]._close){let m=p;for(;m--;)if(f[m][0]==="exit"&&f[m][1].type==="strikethroughSequenceTemporary"&&f[m][1]._open&&f[p][1].end.offset-f[p][1].start.offset===f[m][1].end.offset-f[m][1].start.offset){f[p][1].type="strikethroughSequence",f[m][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},f[m][1].start),end:Object.assign({},f[p][1].end)},g={type:"strikethroughText",start:Object.assign({},f[m][1].end),end:Object.assign({},f[p][1].start)},S=[["enter",y,d],["enter",f[m][1],d],["exit",f[m][1],d],["enter",g,d]],v=d.parser.constructs.insideSpan.null;v&&Zt(S,S.length,0,pu(v,f.slice(m+1,p),d)),Zt(S,S.length,0,[["exit",g,d],["enter",f[p][1],d],["exit",f[p][1],d],["exit",y,d]]),Zt(f,m-1,p-m+3,S),p=m+S.length-2;break}}for(p=-1;++p<f.length;)f[p][1].type==="strikethroughSequenceTemporary"&&(f[p][1].type="data");return f}function c(f,d,p){const m=this.previous,y=this.events;let g=0;return S;function S(w){return m===126&&y[y.length-1][1].type!=="characterEscape"?p(w):(f.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const M=Mi(m);if(w===126)return g>1?p(w):(f.consume(w),g++,v);if(g<2&&!i)return p(w);const B=f.exit("strikethroughSequenceTemporary"),A=Mi(w);return B._open=!A||A===2&&!!M,B._close=!M||M===2&&!!A,d(w)}}}class vw{constructor(){this.map=[]}add(a,i,u){Sw(this,a,i,u)}consume(a){if(this.map.sort(function(c,f){return c[0]-f[0]}),this.map.length===0)return;let i=this.map.length;const u=[];for(;i>0;)i-=1,u.push(a.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),a.length=this.map[i][0];u.push(a.slice()),a.length=0;let s=u.pop();for(;s;){for(const c of s)a.push(c);s=u.pop()}this.map.length=0}}function Sw(n,a,i,u){let s=0;if(!(i===0&&u.length===0)){for(;s<n.map.length;){if(n.map[s][0]===a){n.map[s][1]+=i,n.map[s][2].push(...u);return}s+=1}n.map.push([a,i,u])}}function zw(n,a){let i=!1;const u=[];for(;a<n.length;){const s=n[a];if(i){if(s[0]==="enter")s[1].type==="tableContent"&&u.push(n[a+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(n[a-1][1].type==="tableDelimiterMarker"){const c=u.length-1;u[c]=u[c]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(i=!0);a+=1}return u}function kw(){return{flow:{null:{name:"table",tokenize:ww,resolveAll:Ew}}}}function ww(n,a,i){const u=this;let s=0,c=0,f;return d;function d(U){let le=u.events.length-1;for(;le>-1;){const re=u.events[le][1].type;if(re==="lineEnding"||re==="linePrefix")le--;else break}const W=le>-1?u.events[le][1].type:null,ye=W==="tableHead"||W==="tableRow"?D:p;return ye===D&&u.parser.lazy[u.now().line]?i(U):ye(U)}function p(U){return n.enter("tableHead"),n.enter("tableRow"),m(U)}function m(U){return U===124||(f=!0,c+=1),y(U)}function y(U){return U===null?i(U):pe(U)?c>1?(c=0,u.interrupt=!0,n.exit("tableRow"),n.enter("lineEnding"),n.consume(U),n.exit("lineEnding"),v):i(U):Ae(U)?Re(n,y,"whitespace")(U):(c+=1,f&&(f=!1,s+=1),U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),f=!0,y):(n.enter("data"),g(U)))}function g(U){return U===null||U===124||Je(U)?(n.exit("data"),y(U)):(n.consume(U),U===92?S:g)}function S(U){return U===92||U===124?(n.consume(U),g):g(U)}function v(U){return u.interrupt=!1,u.parser.lazy[u.now().line]?i(U):(n.enter("tableDelimiterRow"),f=!1,Ae(U)?Re(n,w,"linePrefix",u.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):w(U))}function w(U){return U===45||U===58?B(U):U===124?(f=!0,n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),M):ie(U)}function M(U){return Ae(U)?Re(n,B,"whitespace")(U):B(U)}function B(U){return U===58?(c+=1,f=!0,n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),A):U===45?(c+=1,A(U)):U===null||pe(U)?te(U):ie(U)}function A(U){return U===45?(n.enter("tableDelimiterFiller"),q(U)):ie(U)}function q(U){return U===45?(n.consume(U),q):U===58?(f=!0,n.exit("tableDelimiterFiller"),n.enter("tableDelimiterMarker"),n.consume(U),n.exit("tableDelimiterMarker"),H):(n.exit("tableDelimiterFiller"),H(U))}function H(U){return Ae(U)?Re(n,te,"whitespace")(U):te(U)}function te(U){return U===124?w(U):U===null||pe(U)?!f||s!==c?ie(U):(n.exit("tableDelimiterRow"),n.exit("tableHead"),a(U)):ie(U)}function ie(U){return i(U)}function D(U){return n.enter("tableRow"),I(U)}function I(U){return U===124?(n.enter("tableCellDivider"),n.consume(U),n.exit("tableCellDivider"),I):U===null||pe(U)?(n.exit("tableRow"),a(U)):Ae(U)?Re(n,I,"whitespace")(U):(n.enter("data"),se(U))}function se(U){return U===null||U===124||Je(U)?(n.exit("data"),I(U)):(n.consume(U),U===92?he:se)}function he(U){return U===92||U===124?(n.consume(U),se):se(U)}}function Ew(n,a){let i=-1,u=!0,s=0,c=[0,0,0,0],f=[0,0,0,0],d=!1,p=0,m,y,g;const S=new vw;for(;++i<n.length;){const v=n[i],w=v[1];v[0]==="enter"?w.type==="tableHead"?(d=!1,p!==0&&(Yp(S,a,p,m,y),y=void 0,p=0),m={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},S.add(i,0,[["enter",m,a]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(u=!0,g=void 0,c=[0,0,0,0],f=[0,i+1,0,0],d&&(d=!1,y={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},S.add(i,0,[["enter",y,a]])),s=w.type==="tableDelimiterRow"?2:y?3:1):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(u=!1,f[2]===0&&(c[1]!==0&&(f[0]=f[1],g=ru(S,a,c,s,void 0,g),c=[0,0,0,0]),f[2]=i)):w.type==="tableCellDivider"&&(u?u=!1:(c[1]!==0&&(f[0]=f[1],g=ru(S,a,c,s,void 0,g)),c=f,f=[c[1],i,0,0])):w.type==="tableHead"?(d=!0,p=i):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=i,c[1]!==0?(f[0]=f[1],g=ru(S,a,c,s,i,g)):f[1]!==0&&(g=ru(S,a,f,s,i,g)),s=0):s&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(f[3]=i)}for(p!==0&&Yp(S,a,p,m,y),S.consume(a.events),i=-1;++i<a.events.length;){const v=a.events[i];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=zw(a.events,i))}return n}function ru(n,a,i,u,s,c){const f=u===1?"tableHeader":u===2?"tableDelimiter":"tableData",d="tableContent";i[0]!==0&&(c.end=Object.assign({},Ai(a.events,i[0])),n.add(i[0],0,[["exit",c,a]]));const p=Ai(a.events,i[1]);if(c={type:f,start:Object.assign({},p),end:Object.assign({},p)},n.add(i[1],0,[["enter",c,a]]),i[2]!==0){const m=Ai(a.events,i[2]),y=Ai(a.events,i[3]),g={type:d,start:Object.assign({},m),end:Object.assign({},y)};if(n.add(i[2],0,[["enter",g,a]]),u!==2){const S=a.events[i[2]],v=a.events[i[3]];if(S[1].end=Object.assign({},v[1].end),S[1].type="chunkText",S[1].contentType="text",i[3]>i[2]+1){const w=i[2]+1,M=i[3]-i[2]-1;n.add(w,M,[])}}n.add(i[3]+1,0,[["exit",g,a]])}return s!==void 0&&(c.end=Object.assign({},Ai(a.events,s)),n.add(s,0,[["exit",c,a]]),c=void 0),c}function Yp(n,a,i,u,s){const c=[],f=Ai(a.events,i);s&&(s.end=Object.assign({},f),c.push(["exit",s,a])),u.end=Object.assign({},f),c.push(["exit",u,a]),n.add(i+1,0,c)}function Ai(n,a){const i=n[a],u=i[0]==="enter"?"start":"end";return i[1][u]}const Tw={name:"tasklistCheck",tokenize:Nw};function Cw(){return{text:{91:Tw}}}function Nw(n,a,i){const u=this;return s;function s(p){return u.previous!==null||!u._gfmTasklistFirstContentOfListItem?i(p):(n.enter("taskListCheck"),n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),c)}function c(p){return Je(p)?(n.enter("taskListCheckValueUnchecked"),n.consume(p),n.exit("taskListCheckValueUnchecked"),f):p===88||p===120?(n.enter("taskListCheckValueChecked"),n.consume(p),n.exit("taskListCheckValueChecked"),f):i(p)}function f(p){return p===93?(n.enter("taskListCheckMarker"),n.consume(p),n.exit("taskListCheckMarker"),n.exit("taskListCheck"),d):i(p)}function d(p){return pe(p)?a(p):Ae(p)?n.check({tokenize:Aw},a,i)(p):i(p)}}function Aw(n,a,i){return Re(n,u,"whitespace");function u(s){return s===null?i(s):a(s)}}function jw(n){return E0([tw(),fw(),bw(n),kw(),Cw()])}const Mw={};function _w(n){const a=this,i=n||Mw,u=a.data(),s=u.micromarkExtensions||(u.micromarkExtensions=[]),c=u.fromMarkdownExtensions||(u.fromMarkdownExtensions=[]),f=u.toMarkdownExtensions||(u.toMarkdownExtensions=[]);s.push(jw(i)),c.push($k()),f.push(Wk(i))}function Ow(n){return n==="completed"?b.jsx(Pp,{size:14,className:"text-emerald-400"}):n==="in_progress"?b.jsx(i0,{size:14,className:"text-amber-400 animate-spin"}):b.jsx(l1,{size:14,className:"text-zinc-500"})}function Dw(n){return n==="completed"?"text-zinc-400 line-through":n==="in_progress"?"text-amber-200":"text-zinc-300"}function Rw(n){const{todos:a}=n;if(!a||a.length===0)return null;const i=a.filter(s=>s.status==="completed").length,u=a.length;return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(l0,{size:14,className:"text-violet-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Tasks"}),b.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[i,"/",u]}),b.jsx("div",{className:"w-16 h-1.5 bg-zinc-700 rounded-full overflow-hidden",children:b.jsx("div",{className:"h-full bg-violet-500 transition-all duration-300",style:{width:`${i/u*100}%`}})})]}),b.jsx("ul",{className:"divide-y divide-zinc-800/50",children:a.map((s,c)=>b.jsxs("li",{className:"flex items-start gap-2.5 px-3 py-2 hover:bg-zinc-800/20 transition-colors",children:[b.jsx("span",{className:"mt-0.5 flex-shrink-0",children:Ow(s.status)}),b.jsx("span",{className:`text-xs leading-relaxed ${Dw(s.status)}`,children:s.content})]},c))})]})})}class Lw{diff(a,i,u={}){let s;typeof u=="function"?(s=u,u={}):"callback"in u&&(s=u.callback);const c=this.castInput(a,u),f=this.castInput(i,u),d=this.removeEmpty(this.tokenize(c,u)),p=this.removeEmpty(this.tokenize(f,u));return this.diffWithOptionsObj(d,p,u,s)}diffWithOptionsObj(a,i,u,s){var c;const f=q=>{if(q=this.postProcess(q,u),s){setTimeout(function(){s(q)},0);return}else return q},d=i.length,p=a.length;let m=1,y=d+p;u.maxEditLength!=null&&(y=Math.min(y,u.maxEditLength));const g=(c=u.timeout)!==null&&c!==void 0?c:1/0,S=Date.now()+g,v=[{oldPos:-1,lastComponent:void 0}];let w=this.extractCommon(v[0],i,a,0,u);if(v[0].oldPos+1>=p&&w+1>=d)return f(this.buildValues(v[0].lastComponent,i,a));let M=-1/0,B=1/0;const A=()=>{for(let q=Math.max(M,-m);q<=Math.min(B,m);q+=2){let H;const te=v[q-1],ie=v[q+1];te&&(v[q-1]=void 0);let D=!1;if(ie){const se=ie.oldPos-q;D=ie&&0<=se&&se<d}const I=te&&te.oldPos+1<p;if(!D&&!I){v[q]=void 0;continue}if(!I||D&&te.oldPos<ie.oldPos?H=this.addToPath(ie,!0,!1,0,u):H=this.addToPath(te,!1,!0,1,u),w=this.extractCommon(H,i,a,q,u),H.oldPos+1>=p&&w+1>=d)return f(this.buildValues(H.lastComponent,i,a))||!0;v[q]=H,H.oldPos+1>=p&&(B=Math.min(B,q-1)),w+1>=d&&(M=Math.max(M,q+1))}m++};if(s)(function q(){setTimeout(function(){if(m>y||Date.now()>S)return s(void 0);A()||q()},0)})();else for(;m<=y&&Date.now()<=S;){const q=A();if(q)return q}}addToPath(a,i,u,s,c){const f=a.lastComponent;return f&&!c.oneChangePerToken&&f.added===i&&f.removed===u?{oldPos:a.oldPos+s,lastComponent:{count:f.count+1,added:i,removed:u,previousComponent:f.previousComponent}}:{oldPos:a.oldPos+s,lastComponent:{count:1,added:i,removed:u,previousComponent:f}}}extractCommon(a,i,u,s,c){const f=i.length,d=u.length;let p=a.oldPos,m=p-s,y=0;for(;m+1<f&&p+1<d&&this.equals(u[p+1],i[m+1],c);)m++,p++,y++,c.oneChangePerToken&&(a.lastComponent={count:1,previousComponent:a.lastComponent,added:!1,removed:!1});return y&&!c.oneChangePerToken&&(a.lastComponent={count:y,previousComponent:a.lastComponent,added:!1,removed:!1}),a.oldPos=p,m}equals(a,i,u){return u.comparator?u.comparator(a,i):a===i||!!u.ignoreCase&&a.toLowerCase()===i.toLowerCase()}removeEmpty(a){const i=[];for(let u=0;u<a.length;u++)a[u]&&i.push(a[u]);return i}castInput(a,i){return a}tokenize(a,i){return Array.from(a)}join(a){return a.join("")}postProcess(a,i){return a}get useLongestToken(){return!1}buildValues(a,i,u){const s=[];let c;for(;a;)s.push(a),c=a.previousComponent,delete a.previousComponent,a=c;s.reverse();const f=s.length;let d=0,p=0,m=0;for(;d<f;d++){const y=s[d];if(y.removed)y.value=this.join(u.slice(m,m+y.count)),m+=y.count;else{if(!y.added&&this.useLongestToken){let g=i.slice(p,p+y.count);g=g.map(function(S,v){const w=u[m+v];return w.length>S.length?w:S}),y.value=this.join(g)}else y.value=this.join(i.slice(p,p+y.count));p+=y.count,y.added||(m+=y.count)}}return s}}class Uw extends Lw{constructor(){super(...arguments),this.tokenize=Hw}equals(a,i,u){return u.ignoreWhitespace?((!u.newlineIsToken||!a.includes(`
276
- `))&&(a=a.trim()),(!u.newlineIsToken||!i.includes(`
277
- `))&&(i=i.trim())):u.ignoreNewlineAtEof&&!u.newlineIsToken&&(a.endsWith(`
278
- `)&&(a=a.slice(0,-1)),i.endsWith(`
279
- `)&&(i=i.slice(0,-1))),super.equals(a,i,u)}}const Bw=new Uw;function Vp(n,a,i){return Bw.diff(n,a,i)}function Hw(n,a){a.stripTrailingCr&&(n=n.replace(/\r\n/g,`
280
- `));const i=[],u=n.split(/(\n|\r\n)/);u[u.length-1]||u.pop();for(let s=0;s<u.length;s++){const c=u[s];s%2&&!a.newlineIsToken?i[i.length-1]+=c:i.push(c)}return i}const qw={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Xp(n,a,i,u,s,c,f){let d;f?typeof f=="function"?d={callback:f}:d=f:d={},typeof d.context>"u"&&(d.context=4);const p=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:y}=d;Vp(i,u,Object.assign(Object.assign({},d),{callback:g=>{const S=m(g);y(S)}}))}else return m(Vp(i,u,d));function m(y){if(!y)return;y.push({value:"",lines:[]});function g(q){return q.map(function(H){return" "+H})}const S=[];let v=0,w=0,M=[],B=1,A=1;for(let q=0;q<y.length;q++){const H=y[q],te=H.lines||Vw(H.value);if(H.lines=te,H.added||H.removed){if(!v){const ie=y[q-1];v=B,w=A,ie&&(M=p>0?g(ie.lines.slice(-p)):[],v-=M.length,w-=M.length)}for(const ie of te)M.push((H.added?"+":"-")+ie);H.added?A+=te.length:B+=te.length}else{if(v)if(te.length<=p*2&&q<y.length-2)for(const ie of g(te))M.push(ie);else{const ie=Math.min(te.length,p);for(const I of g(te.slice(0,ie)))M.push(I);const D={oldStart:v,oldLines:B-v+ie,newStart:w,newLines:A-w+ie,lines:M};S.push(D),v=0,w=0,M=[]}B+=te.length,A+=te.length}}for(const q of S)for(let H=0;H<q.lines.length;H++)q.lines[H].endsWith(`
281
- `)?q.lines[H]=q.lines[H].slice(0,-1):(q.lines.splice(H+1,0,"\"),H++);return{oldFileName:n,newFileName:a,oldHeader:s,newHeader:c,hunks:S}}}function pc(n,a){if(a||(a=qw),Array.isArray(n)){if(n.length>1&&!a.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return n.map(u=>pc(u,a)).join(`
282
- `)}const i=[];a.includeIndex&&n.oldFileName==n.newFileName&&i.push("Index: "+n.oldFileName),a.includeUnderline&&i.push("==================================================================="),a.includeFileHeaders&&(i.push("--- "+n.oldFileName+(typeof n.oldHeader>"u"?"":" "+n.oldHeader)),i.push("+++ "+n.newFileName+(typeof n.newHeader>"u"?"":" "+n.newHeader)));for(let u=0;u<n.hunks.length;u++){const s=n.hunks[u];s.oldLines===0&&(s.oldStart-=1),s.newLines===0&&(s.newStart-=1),i.push("@@ -"+s.oldStart+","+s.oldLines+" +"+s.newStart+","+s.newLines+" @@");for(const c of s.lines)i.push(c)}return i.join(`
283
- `)+`
284
- `}function Yw(n,a,i,u,s,c,f){if(typeof f=="function"&&(f={callback:f}),f!=null&&f.callback){const{callback:d}=f;Xp(n,a,i,u,s,c,Object.assign(Object.assign({},f),{callback:p=>{d(p?pc(p,f.headerOptions):void 0)}}))}else{const d=Xp(n,a,i,u,s,c,f);return d?pc(d,f==null?void 0:f.headerOptions):void 0}}function Vw(n){const a=n.endsWith(`
285
- `),i=n.split(`
286
- `).map(u=>u+`
287
- `);return a?i.pop():i.push(i.pop().slice(0,-1)),i}function Di(n){const{text:a,className:i="",title:u="Copy"}=n,[s,c]=J.useState(!1),f=async d=>{d.stopPropagation();try{await navigator.clipboard.writeText(a),c(!0),setTimeout(()=>c(!1),1500)}catch{const p=document.createElement("textarea");p.value=a,document.body.appendChild(p),p.select(),document.execCommand("copy"),document.body.removeChild(p),c(!0),setTimeout(()=>c(!1),1500)}};return b.jsx("button",{onClick:f,className:`p-1 rounded hover:bg-zinc-700/50 transition-colors ${i}`,title:s?"Copied!":u,children:s?b.jsx(Ua,{size:12,className:"text-emerald-400"}):b.jsx(xc,{size:12,className:"text-zinc-500 hover:text-zinc-300"})})}function pg(n){return n.split("/").slice(-2).join("/")}function Xw(n){const a=n.split(`
288
- `),i=[];for(const u of a)u.startsWith("@@")?i.push({type:"header",content:u}):u.startsWith("+")&&!u.startsWith("+++")?i.push({type:"add",content:u.slice(1)}):u.startsWith("-")&&!u.startsWith("---")?i.push({type:"remove",content:u.slice(1)}):u.startsWith(" ")&&i.push({type:"context",content:u.slice(1)});return i}function Gw(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.old_string||"",u=a.new_string||"",s=pg(a.file_path),c=Yw("a/"+s,"b/"+s,i,u,"","",{context:3}),f=Xw(c),d=f.filter(m=>m.type==="add").length,p=f.filter(m=>m.type==="remove").length;return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(c1,{size:14,className:"text-blue-400"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:s}),b.jsxs("div",{className:"flex items-center gap-2 ml-auto text-xs",children:[d>0&&b.jsxs("span",{className:"flex items-center gap-0.5 text-emerald-400",children:[b.jsx(L1,{size:12}),d]}),p>0&&b.jsxs("span",{className:"flex items-center gap-0.5 text-rose-400",children:[b.jsx(C1,{size:12}),p]}),b.jsx(Di,{text:a.file_path})]})]}),b.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:b.jsx("pre",{className:"text-xs font-mono p-0",children:f.map((m,y)=>m.type==="header"?b.jsx("div",{className:"px-3 py-1 bg-blue-900/20 text-blue-300 border-y border-blue-900/30",children:m.content},y):m.type==="add"?b.jsxs("div",{className:"px-3 py-0.5 bg-emerald-900/20 text-emerald-300 border-l-2 border-emerald-500",children:[b.jsx("span",{className:"select-none text-emerald-600 mr-2",children:"+"}),m.content||" "]},y):m.type==="remove"?b.jsxs("div",{className:"px-3 py-0.5 bg-rose-900/20 text-rose-300 border-l-2 border-rose-500",children:[b.jsx("span",{className:"select-none text-rose-600 mr-2",children:"-"}),m.content||" "]},y):b.jsxs("div",{className:"px-3 py-0.5 text-zinc-400",children:[b.jsx("span",{className:"select-none text-zinc-600 mr-2",children:" "}),m.content||" "]},y))})})]})})}function Qw(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=a.content||"",u=pg(a.file_path),s=i.split(`
289
- `).length,c=i.slice(0,500),f=i.length>500;return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(t0,{size:14,className:"text-emerald-400"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:u}),b.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[b.jsxs("span",{className:"text-xs text-zinc-500",children:[s," lines"]}),b.jsx(Di,{text:a.file_path})]})]}),b.jsx("div",{className:"overflow-x-auto max-h-60 overflow-y-auto",children:b.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300",children:[c,f&&b.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-500," more chars)"]})]})})]})})}function Fw(n){const{input:a}=n,[i,u]=J.useState(!1);if(!a||!a.command)return null;const s=a.command,c=a.description,f=()=>{navigator.clipboard.writeText(s),u(!0),setTimeout(()=>u(!1),2e3)};return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(u0,{size:14,className:"text-green-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Command"}),c&&b.jsxs("span",{className:"text-xs text-zinc-500 truncate ml-1",children:["— ",c]}),b.jsx("button",{onClick:f,className:"ml-auto p-1 hover:bg-zinc-700/50 rounded transition-colors",title:"Copy command",children:i?b.jsx(Ua,{size:12,className:"text-green-400"}):b.jsx(xc,{size:12,className:"text-zinc-500"})})]}),b.jsx("div",{className:"p-3 overflow-x-auto",children:b.jsx("div",{className:"flex items-start gap-2",children:b.jsx("pre",{className:"text-xs font-mono m-0 p-0 bg-transparent! text-zinc-200 whitespace-pre-wrap break-all",children:s})})})]})})}function Zw(n){const{content:a,isError:i}=n;if(!a||a.trim().length===0)return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[b.jsx(Pp,{size:14,className:"text-teal-400"}),b.jsx("span",{className:"text-xs text-zinc-400",children:"Command completed successfully (no output)"})]})});const u=a.split(`
290
- `),s=30,c=u.length>s,f=c?u.slice(0,s):u;return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:`border rounded-lg overflow-hidden ${i?"bg-rose-950/20 border-rose-900/30":"bg-zinc-900/70 border-zinc-700/50"}`,children:[b.jsxs("div",{className:`flex items-center gap-2 px-3 py-2 border-b ${i?"border-rose-900/30 bg-rose-900/20":"border-zinc-700/50 bg-zinc-800/30"}`,children:[i?b.jsxs(b.Fragment,{children:[b.jsx(G1,{size:14,className:"text-rose-400"}),b.jsx("span",{className:"text-xs font-medium text-rose-300",children:"Error Output"})]}):b.jsxs(b.Fragment,{children:[b.jsx(a0,{size:14,className:"text-teal-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Output"})]}),b.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),b.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:b.jsxs("pre",{className:`text-xs font-mono p-3 whitespace-pre-wrap break-all ${i?"text-rose-200/80":"text-zinc-300"}`,children:[f.join(`
291
- `),c&&b.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})})]})})}function Kw(n){const{input:a}=n;return!a||!a.pattern?null:b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(ou,{size:14,className:"text-amber-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Search"})]}),b.jsxs("div",{className:"p-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),b.jsx("code",{className:"text-xs font-mono text-amber-300 bg-amber-500/10 px-1.5 py-0.5 rounded",children:a.pattern})]}),a.path&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]}),a.glob&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-xs text-zinc-500",children:"Glob:"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.glob})]}),a.type&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-xs text-zinc-500",children:"Type:"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.type})]})]})]})})}function Jw(n){const{input:a}=n;return!a||!a.pattern?null:b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(bc,{size:14,className:"text-cyan-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Find Files"})]}),b.jsxs("div",{className:"p-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-xs text-zinc-500",children:"Pattern:"}),b.jsx("code",{className:"text-xs font-mono text-cyan-300 bg-cyan-500/10 px-1.5 py-0.5 rounded",children:a.pattern})]}),a.path&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:"text-xs text-zinc-500",children:"Path:"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:a.path})]})]})]})})}function Gp(n){const{content:a,isFileList:i}=n;if(!a||a.trim().length===0)return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-zinc-800/30 border border-zinc-700/50 rounded-lg",children:[b.jsx(ou,{size:14,className:"text-zinc-500"}),b.jsx("span",{className:"text-xs text-zinc-400",children:"No matches found"})]})});const u=a.split(`
292
- `).filter(d=>d.trim()),s=25,c=u.length>s,f=c?u.slice(0,s):u;return i?b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(bc,{size:14,className:"text-cyan-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Files Found"}),b.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," files"]})]}),b.jsxs("div",{className:"overflow-y-auto max-h-60",children:[b.jsx("ul",{className:"divide-y divide-zinc-800/50",children:f.map((d,p)=>b.jsxs("li",{className:"group flex items-center gap-2 px-3 py-1.5 hover:bg-zinc-800/30",children:[b.jsx(n0,{size:12,className:"text-zinc-500 flex-shrink-0"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300 truncate flex-1",children:d}),b.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity",children:b.jsx(Di,{text:d})})]},p))}),c&&b.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more files"]})]})]})}):b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(ou,{size:14,className:"text-amber-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"Results"}),b.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," matches"]})]}),b.jsx("div",{className:"overflow-x-auto max-h-80 overflow-y-auto",children:b.jsxs("pre",{className:"text-xs font-mono p-3 text-zinc-300 whitespace-pre-wrap",children:[f.join(`
293
- `),c&&b.jsxs("div",{className:"text-zinc-500 mt-2 pt-2 border-t border-zinc-700/50",children:["... ",u.length-s," more matches"]})]})})]})})}function Iw(n){return n.split("/").slice(-2).join("/")}function gg(n){var i;const a=n.split(".");return a.length>1?(i=a.pop())==null?void 0:i.toLowerCase():""}function xg(n){return{ts:"TypeScript",tsx:"TypeScript React",js:"JavaScript",jsx:"JavaScript React",py:"Python",rb:"Ruby",go:"Go",rs:"Rust",java:"Java",cpp:"C++",c:"C",css:"CSS",scss:"SCSS",html:"HTML",json:"JSON",yaml:"YAML",yml:"YAML",md:"Markdown",sql:"SQL",sh:"Shell",bash:"Bash"}[n]||null}function $w(n){const{input:a}=n;if(!a||!a.file_path)return null;const i=Iw(a.file_path),u=gg(a.file_path),s=u?xg(u):null;return b.jsx("div",{className:"w-full mt-2",children:b.jsx("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(e0,{size:14,className:"text-sky-400"}),b.jsx("span",{className:"text-xs font-mono text-zinc-300",children:i}),s&&b.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:s}),b.jsxs("div",{className:"flex items-center gap-1 ml-auto",children:[(a.offset||a.limit)&&b.jsxs("span",{className:"text-xs text-zinc-500 mr-1",children:[a.offset&&`from line ${a.offset}`,a.offset&&a.limit&&", ",a.limit&&`${a.limit} lines`]}),b.jsx(Di,{text:a.file_path})]})]})})})}function Ww(n){const{content:a,fileName:i}=n;if(!a)return null;const u=a.split(`
294
- `),s=50,c=u.length>s,f=c?u.slice(0,s):u,d=i?gg(i):"",p=d?xg(d):null;return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(n0,{size:14,className:"text-sky-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:"File Content"}),p&&b.jsx("span",{className:"text-xs text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:p}),b.jsxs("span",{className:"text-xs text-zinc-500 ml-auto",children:[u.length," lines"]})]}),b.jsxs("div",{className:"overflow-x-auto max-h-96 overflow-y-auto",children:[b.jsx("table",{className:"w-full text-xs font-mono",children:b.jsx("tbody",{children:f.map((m,y)=>b.jsxs("tr",{className:"hover:bg-zinc-800/30",children:[b.jsx("td",{className:"select-none text-right pr-3 pl-3 py-0.5 text-zinc-600 border-r border-zinc-800 w-10 sticky left-0 bg-zinc-900/70",children:y+1}),b.jsx("td",{className:"pl-3 pr-3 py-0.5 text-zinc-300 whitespace-pre",children:m||" "})]},y))})}),c&&b.jsxs("div",{className:"px-3 py-2 text-xs text-zinc-500 border-t border-zinc-700/50",children:["... ",u.length-s," more lines"]})]})]})})}function Pw(n){const{input:a}=n;return!a||!a.questions||a.questions.length===0?null:b.jsx("div",{className:"w-full mt-2 space-y-3",children:a.questions.map((i,u)=>b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(t1,{size:14,className:"text-violet-400"}),b.jsx("span",{className:"text-xs font-medium text-zinc-300",children:i.header||"Question"}),i.multiSelect&&b.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded ml-auto",children:"Multi-select"})]}),b.jsxs("div",{className:"p-3 space-y-3",children:[b.jsx("p",{className:"text-sm text-zinc-200",children:i.question}),i.options&&i.options.length>0&&b.jsx("div",{className:"space-y-2",children:i.options.map((s,c)=>{const f=i.multiSelect?lc:r0;return b.jsxs("div",{className:"flex items-start gap-2 px-2 py-1.5 rounded bg-zinc-800/40 border border-zinc-700/30",children:[b.jsx(f,{size:14,className:"text-violet-400/70 mt-0.5 flex-shrink-0"}),b.jsxs("div",{className:"min-w-0",children:[b.jsx("div",{className:"text-xs font-medium text-zinc-200",children:s.label}),s.description&&b.jsx("div",{className:"text-xs text-zinc-500 mt-0.5",children:s.description})]})]},c)})})]})]},u))})}function eE(n){const a=n.toLowerCase();return a==="explore"?"text-cyan-400":a==="plan"?"text-violet-400":a==="claude-code-guide"?"text-amber-400":a==="general-purpose"?"text-emerald-400":"text-blue-400"}function tE(n){const a=n.toLowerCase();return a==="explore"?"bg-cyan-500/10 border-cyan-500/20":a==="plan"?"bg-violet-500/10 border-violet-500/20":a==="claude-code-guide"?"bg-amber-500/10 border-amber-500/20":a==="general-purpose"?"bg-emerald-500/10 border-emerald-500/20":"bg-blue-500/10 border-blue-500/20"}function nE(n){const{input:a}=n;if(!a)return null;const i=eE(a.subagent_type),u=tE(a.subagent_type);return b.jsx("div",{className:"w-full mt-2",children:b.jsxs("div",{className:"bg-zinc-900/70 border border-zinc-700/50 rounded-lg overflow-hidden",children:[b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 border-b border-zinc-700/50 bg-zinc-800/30",children:[b.jsx(Wp,{size:14,className:i}),b.jsx("span",{className:`text-xs font-medium ${i}`,children:a.subagent_type}),a.description&&b.jsxs(b.Fragment,{children:[b.jsx(Iy,{size:10,className:"text-zinc-600"}),b.jsx("span",{className:"text-xs text-zinc-400",children:a.description})]}),b.jsxs("div",{className:"flex items-center gap-1.5 ml-auto",children:[a.resume&&b.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:[b.jsx(B1,{size:10}),"resume"]}),a.run_in_background&&b.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:[b.jsx(M1,{size:10}),"background"]}),a.model&&b.jsx("span",{className:"text-[10px] text-zinc-500 bg-zinc-700/50 px-1.5 py-0.5 rounded",children:a.model})]})]}),b.jsx("div",{className:"p-3",children:b.jsxs("div",{className:`flex items-start gap-2 px-3 py-2 rounded-lg border ${u}`,children:[b.jsx(a0,{size:12,className:`${i} mt-0.5 flex-shrink-0`}),b.jsx("p",{className:"text-xs text-zinc-300 leading-relaxed whitespace-pre-wrap",children:a.prompt})]})})]})})}const yg=J.memo(function(a){const{content:i,className:u=""}=a;return b.jsx("div",{className:`break-words ${u}`,children:b.jsx(bz,{remarkPlugins:[_w],components:{h1:s=>{const{children:c}=s;return b.jsx("div",{className:"text-base font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h2:s=>{const{children:c}=s;return b.jsx("div",{className:"text-sm font-semibold text-zinc-100 mt-3 mb-1.5",children:c})},h3:s=>{const{children:c}=s;return b.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-3 mb-1.5",children:c})},h4:s=>{const{children:c}=s;return b.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h5:s=>{const{children:c}=s;return b.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},h6:s=>{const{children:c}=s;return b.jsx("div",{className:"text-[13px] font-medium text-zinc-100 mt-2 mb-1",children:c})},p:s=>{const{children:c}=s;return b.jsx("p",{className:"text-[13px] leading-relaxed text-zinc-200 whitespace-pre-wrap my-2",children:c})},a:s=>{const{href:c,children:f}=s;return b.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"text-cyan-400 hover:text-cyan-300 underline underline-offset-2",children:f})},strong:s=>{const{children:c}=s;return b.jsx("strong",{className:"font-semibold text-zinc-50",children:c})},em:s=>{const{children:c}=s;return b.jsx("em",{className:"italic text-zinc-200",children:c})},code:s=>{const{children:c}=s;return b.jsx("code",{className:"px-1.5 py-0.5 rounded bg-zinc-800/80 text-cyan-300 text-[12px] font-mono",children:c})},pre:s=>{var p,m,y;const{node:c}=s,f=(p=c==null?void 0:c.children)==null?void 0:p[0];if((f==null?void 0:f.tagName)==="code"){const S=(((m=f.properties)==null?void 0:m.className)||[]).find(M=>M.startsWith("language-")),v=(S==null?void 0:S.replace("language-",""))||"code",w=((y=f.children)==null?void 0:y.map(M=>M.value).join(""))||"";return b.jsxs("div",{className:"relative group my-2 rounded-lg overflow-hidden border border-zinc-700/50",children:[b.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 bg-zinc-900 border-b border-zinc-700/50",children:[b.jsx("span",{className:"text-[10px] text-zinc-500 font-mono",children:v}),b.jsx(Di,{text:w})]}),b.jsx("pre",{className:"text-xs text-zinc-300 bg-zinc-900/80 p-3 overflow-x-auto rounded-t-none!",children:b.jsx("code",{children:w})})]})}const{children:d}=s;return b.jsx("pre",{children:d})},ul:s=>{const{children:c}=s;return b.jsx("ul",{className:"my-2 ml-3 space-y-1 list-disc list-inside text-zinc-200",children:c})},ol:s=>{const{children:c}=s;return b.jsx("ol",{className:"my-2 ml-3 space-y-1 list-decimal list-inside text-zinc-200",children:c})},li:s=>{const{children:c}=s;return b.jsx("li",{className:"text-[13px] leading-relaxed",children:c})},blockquote:s=>{const{children:c}=s;return b.jsx("div",{className:"border-l-2 border-zinc-600 pl-3 my-2 text-zinc-400 italic",children:c})},hr:()=>b.jsx("hr",{className:"border-zinc-700 my-4"}),table:s=>{const{children:c}=s;return b.jsx("div",{className:"my-2 overflow-x-auto rounded-lg border border-zinc-700/50",children:b.jsx("table",{className:"w-full text-[13px]",children:c})})},thead:s=>{const{children:c}=s;return b.jsx("thead",{className:"bg-zinc-900",children:c})},tr:s=>{const{children:c}=s;return b.jsx("tr",{className:"border-b border-zinc-700/50 last:border-b-0",children:c})},th:s=>{const{children:c}=s;return b.jsx("th",{className:"px-3 py-2 text-left font-medium text-zinc-200",children:c})},td:s=>{const{children:c}=s;return b.jsx("td",{className:"px-3 py-2 text-zinc-300",children:c})}},children:i})})});function lE(n){const a=new Map;for(const i of n)i.type==="tool_use"&&i.id&&i.name&&a.set(i.id,i.name);return a}function su(n){return!n||typeof n=="string"?[]:Array.isArray(n)?n:[n]}function iE(n){var i;const a=(i=n.message)==null?void 0:i.content;return a?typeof a=="string"?Lt(a):su(a).filter(u=>u.type==="text"&&u.text).map(u=>Lt(u.text)).join(`
295
- `):""}const aE=J.memo(function(a){var M;const{message:i}=a,u=i.type==="user",s=(M=i.message)==null?void 0:M.content,c=()=>su(s).filter(B=>B.type==="text"),f=()=>su(s).filter(B=>B.type==="tool_use"||B.type==="tool_result"||B.type==="thinking"),d=()=>c().filter(B=>B.text&&Lt(B.text).length>0),p=()=>typeof s=="string"?Lt(s).length>0:d().length>0,m=f(),y=d(),g=p(),S=m.length>0,v=lE(su(s));if(!g&&S)return b.jsx("div",{className:"flex flex-col gap-1 py-0.5",children:m.map((B,A)=>b.jsx(nc,{block:B,toolMap:v},A))});if(!g&&!S)return null;const w=iE(i);return b.jsx("div",{className:`flex ${u?"justify-end":"justify-start"} min-w-0`,children:b.jsxs("div",{className:"max-w-[85%] min-w-0",children:[b.jsxs("div",{className:`relative px-3.5 py-2.5 rounded-2xl overflow-hidden ${u?"bg-indigo-600/80 text-indigo-50 rounded-br-md":"bg-cyan-700/50 text-zinc-100 rounded-bl-md"}`,children:[w&&b.jsx(Di,{text:w,title:"Copy message",className:"absolute top-2 right-2 p-1.5 bg-black/10 hover:bg-black/20 rounded-lg"}),b.jsx("div",{className:w?"pr-10":"",children:typeof s=="string"?u?b.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:Lt(s)}):b.jsx(yg,{content:Lt(s)}):b.jsx("div",{className:"flex flex-col gap-1",children:y.map((B,A)=>b.jsx(nc,{block:B,isUser:u,toolMap:v},A))})})]}),S&&b.jsx("div",{className:"flex flex-col gap-1 mt-1.5",children:m.map((B,A)=>b.jsx(nc,{block:B,toolMap:v},A))})]})})}),Qp={todowrite:l0,read:e0,bash:u0,grep:ou,edit:O1,write:t0,glob:bc,task:Wp},rE=[{patterns:["web","fetch","url"],icon:x1},{patterns:["ask","question"],icon:E1},{patterns:["git","commit"],icon:p1},{patterns:["sql","database","query"],icon:r1},{patterns:["file","disk"],icon:b1}];function uE(n){const a=n.toLowerCase();if(Qp[a])return Qp[a];for(const{patterns:i,icon:u}of rE)if(i.some(s=>a.includes(s)))return u;return F1}function tc(n){return n.split("/").slice(-2).join("/")}const sE={read:n=>n.file_path?tc(String(n.file_path)):null,edit:n=>n.file_path?tc(String(n.file_path)):null,write:n=>n.file_path?tc(String(n.file_path)):null,bash:n=>{if(!n.command)return null;const a=String(n.command);return a.length>50?a.slice(0,50)+"...":a},grep:n=>n.pattern?`"${String(n.pattern)}"`:null,glob:n=>n.pattern?String(n.pattern):null,task:n=>n.description?String(n.description):null};function oE(n,a){if(!a)return null;const i=n.toLowerCase(),u=sE[i];if(u)return u(a);if(i.includes("web")&&a.url)try{return new URL(String(a.url)).hostname}catch{return String(a.url).slice(0,30)}return null}function cE(n){const{toolName:a,input:i}=n,u=a.toLowerCase();return u==="todowrite"&&i.todos?b.jsx(Rw,{todos:i.todos}):u==="edit"&&i.file_path?b.jsx(Gw,{input:i}):u==="write"&&i.file_path?b.jsx(Qw,{input:i}):u==="bash"&&i.command?b.jsx(Fw,{input:i}):u==="grep"&&i.pattern?b.jsx(Kw,{input:i}):u==="glob"&&i.pattern?b.jsx(Jw,{input:i}):u==="read"&&i.file_path?b.jsx($w,{input:i}):u==="askuserquestion"&&i.questions?b.jsx(Pw,{input:i}):u==="task"&&i.prompt?b.jsx(nE,{input:i}):b.jsx("pre",{className:"text-xs text-slate-300 bg-slate-900/50 border border-slate-700/50 rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto",children:JSON.stringify(i,null,2)})}function fE(n){const{toolName:a,content:i,isError:u}=n,s=a.toLowerCase();if(s==="bash")return b.jsx(Zw,{content:i,isError:u});if(s==="glob")return b.jsx(Gp,{content:i,isFileList:!0});if(s==="grep")return b.jsx(Gp,{content:i});if(s==="read")return b.jsx(Ww,{content:i});if(!i||i.trim().length===0)return b.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 bg-teal-500/10 border border-teal-500/20 rounded-lg mt-2",children:[b.jsx(Ua,{size:14,className:"text-teal-400"}),b.jsx("span",{className:"text-xs text-teal-300",children:"Completed successfully"})]});const c=2e3,f=i.length>c,d=f?i.slice(0,c):i;return b.jsxs("pre",{className:`text-xs rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto border ${u?"bg-rose-950/30 text-rose-200/80 border-rose-900/30":"bg-teal-950/30 text-teal-200/80 border-teal-900/30"}`,children:[d,f&&b.jsxs("span",{className:"text-zinc-500",children:["... (",i.length-c," more chars)"]})]})}function nc(n){var f;const{block:a,isUser:i,toolMap:u}=n,[s,c]=J.useState(!1);if(a.type==="text"&&a.text){const d=Lt(a.text);return d?i?b.jsx("div",{className:"whitespace-pre-wrap wrap-break-word text-[13px] leading-relaxed",children:d}):b.jsx(yg,{content:d}):null}if(a.type==="thinking"&&a.thinking)return b.jsxs("div",{className:s?"w-full":"",children:[b.jsxs("button",{onClick:()=>c(!s),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-amber-500/10 hover:bg-amber-500/15 text-[11px] text-amber-400/90 transition-colors border border-amber-500/20",children:[b.jsx(S1,{size:12,className:"opacity-70"}),b.jsx("span",{className:"font-medium",children:"thinking"}),b.jsx("span",{className:"text-[10px] opacity-50 ml-0.5",children:s?"▼":"▶"})]}),s&&b.jsx("pre",{className:"text-xs text-zinc-400 bg-zinc-900/80 border border-zinc-800 rounded-lg p-3 mt-2 whitespace-pre-wrap max-h-80 overflow-y-auto",children:a.thinking})]});if(a.type==="tool_use"){const d=a.input&&typeof a.input=="object"?a.input:void 0,p=d&&Object.keys(d).length>0,m=uE(a.name||""),y=oE(a.name||"",d),g=((f=a.name)==null?void 0:f.toLowerCase())||"",S=g==="todowrite"||g==="edit"||g==="write"||g==="bash"||g==="grep"||g==="glob"||g==="read"||g==="askuserquestion"||g==="task",v=g==="todowrite"||g==="askuserquestion"||g==="task",w=s||v;return b.jsxs("div",{className:w?"w-full":"",children:[b.jsxs("button",{onClick:()=>p&&!v&&c(!s),className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg bg-slate-500/10 hover:bg-slate-500/15 text-[11px] text-slate-300 transition-colors border border-slate-500/20",children:[b.jsx(m,{size:12,className:"opacity-60"}),b.jsx("span",{className:"font-medium text-slate-200",children:a.name}),y&&b.jsx("span",{className:"text-slate-500 font-normal truncate max-w-50",children:y}),p&&!v&&b.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),w&&p&&S?b.jsx(cE,{toolName:a.name||"",input:d}):s&&p&&b.jsx("pre",{className:"text-xs text-slate-300 bg-slate-900/50 border border-slate-700/50 rounded-lg p-3 mt-2 overflow-x-auto whitespace-pre-wrap break-all max-h-80 overflow-y-auto",children:JSON.stringify(d,null,2)})]})}if(a.type==="tool_result"){const d=a.is_error,p=typeof a.content=="string"?a.content:JSON.stringify(a.content,null,2),m=Lt(p),y=m.length>0,g=60,S=y&&!s?m.slice(0,g)+(m.length>g?"...":""):null,v=a.tool_use_id&&u&&u.get(a.tool_use_id)||"";return b.jsxs("div",{className:s?"w-full":"",children:[b.jsxs("button",{onClick:()=>y&&c(!s),className:`inline-flex items-center gap-1.5 px-2.5 py-1 rounded-lg text-[11px] transition-colors border ${d?"bg-rose-500/10 hover:bg-rose-500/15 text-rose-400/90 border-rose-500/20":"bg-teal-500/10 hover:bg-teal-500/15 text-teal-400/90 border-teal-500/20"}`,children:[d?b.jsx(vc,{size:12,className:"opacity-70"}):b.jsx(Ua,{size:12,className:"opacity-70"}),b.jsx("span",{className:"font-medium",children:d?"error":"result"}),S&&!s&&b.jsx("span",{className:`font-normal truncate max-w-50 ${d?"text-rose-500/70":"text-teal-500/70"}`,children:S}),y&&b.jsx("span",{className:"text-[10px] opacity-40 ml-0.5",children:s?"▼":"▶"})]}),s&&y&&b.jsx(fE,{toolName:v,content:m,isError:d})]})}return null}function hE({onClick:n}){return b.jsxs("button",{onClick:n,className:"fixed bottom-4 right-6 flex cursor-pointer items-center gap-1.5 rounded-full bg-zinc-200/90 px-3.5 py-2 text-xs font-medium text-zinc-900 shadow-lg backdrop-blur-sm transition-all hover:bg-zinc-100",children:[b.jsx("svg",{className:"h-3.5 w-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 14l-7 7m0 0l-7-7m7 7V3"})}),b.jsx("span",{children:"Latest"})]})}const dE=10,mE=1e3,pE=3e4,gE=100;function xE(n){const{sessionId:a,onMetaChange:i}=n,[u,s]=J.useState([]),[c,f]=J.useState(!0),[d,p]=J.useState(!0),m=J.useRef(null),y=J.useRef(null),g=J.useRef(0),S=J.useRef(!1),v=J.useRef(0),w=J.useRef(null),M=J.useRef(null),B=J.useRef(!0),A=J.useCallback(()=>{if(!B.current)return;w.current&&w.current.close();const D=new EventSource(`/api/conversation/${a}/stream?offset=${g.current}`);w.current=D,D.addEventListener("messages",I=>{v.current=0;const se=JSON.parse(I.data);f(!1),s(he=>{const U=new Set(he.map(W=>W.uuid).filter(Boolean)),le=se.filter(W=>!U.has(W.uuid));return le.length===0?he:(g.current+=le.length,[...he,...le])})}),D.onerror=()=>{if(D.close(),f(!1),!!B.current&&v.current<dE){const I=Math.min(mE*Math.pow(2,v.current),pE);v.current++,M.current=setTimeout(()=>A(),I)}}},[a]);J.useEffect(()=>(B.current=!0,f(!0),s([]),g.current=0,v.current=0,A(),()=>{B.current=!1,M.current&&clearTimeout(M.current),w.current&&w.current.close()}),[A]);const q=J.useCallback(()=>{y.current&&(S.current=!0,y.current.scrollIntoView({behavior:"instant"}),requestAnimationFrame(()=>{S.current=!1}))},[]);J.useEffect(()=>{d&&q()},[u,d,q]),J.useEffect(()=>{var le;if(!i)return;const D=u.filter(W=>W.type==="user"||W.type==="assistant"),I=new Set,se=[];for(const W of D){const ye=(le=W.message)==null?void 0:le.model;ye&&I.add(ye);const re=W.timestamp;if(typeof re=="string"){const $=Date.parse(re);Number.isNaN($)||se.push($)}else typeof re=="number"&&Number.isFinite(re)&&se.push(re)}const he=se.length>0?Math.min(...se):null,U=se.length>0?Math.max(...se):null;i({models:Array.from(I.values()),startTime:he,endTime:U})},[u,i]);const H=()=>{if(!m.current||S.current)return;const{scrollTop:D,scrollHeight:I,clientHeight:se}=m.current,he=I-D-se<gE;p(he)},te=u.find(D=>D.type==="summary"),ie=u.filter(D=>D.type==="user"||D.type==="assistant");return c?b.jsx("div",{className:"flex h-full items-center justify-center text-zinc-500",children:"Loading..."}):b.jsxs("div",{className:"relative h-full",children:[b.jsx("div",{ref:m,onScroll:H,className:"h-full overflow-y-auto bg-zinc-950",children:b.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-4",children:[te&&b.jsxs("div",{className:"mb-6 rounded-xl border border-zinc-800/60 bg-zinc-900/50 p-4",children:[b.jsx("h2",{className:"text-sm font-medium text-zinc-200 leading-relaxed",children:te.summary}),b.jsxs("p",{className:"mt-2 text-[11px] text-zinc-500",children:[ie.length," messages"]})]}),b.jsx("div",{className:"flex flex-col gap-2",children:ie.map((D,I)=>b.jsx("div",{ref:I===ie.length-1?y:void 0,children:b.jsx(aE,{message:D})},D.uuid||I))})]})}),!d&&b.jsx(hE,{onClick:()=>{p(!0),q()}})]})}function yE(n,a){const{events:i,onError:u,maxRetries:s=10,baseDelay:c=1e3}=a,f=J.useRef(null),d=J.useRef(0),p=J.useRef(null),m=J.useRef(!0),y=J.useRef(i);y.current=i;const g=J.useCallback(()=>{if(!m.current)return;f.current&&f.current.close();const S=new EventSource(n);f.current=S;for(const v of y.current)S.addEventListener(v.eventName,w=>{d.current=0,v.onMessage(w)});S.onerror=()=>{if(S.close(),!!m.current)if(d.current<s){const v=Math.min(c*Math.pow(2,d.current),3e4);d.current++,p.current=setTimeout(()=>{g()},v)}else u==null||u()}},[n,u,s,c]);J.useEffect(()=>(m.current=!0,g(),()=>{m.current=!1,p.current&&clearTimeout(p.current),f.current&&f.current.close()}),[g])}const bE={mode:"full",includeTools:!0,includeThoughts:!0,truncateToolResults:!0,truncationMode:"lines",maxToolResultLength:30};function vE(n){const a=n.name||"unknown",i=n.input;let u=[`**Tool: ${a}**`];return i&&Object.keys(i).length>0&&(u.push("```json"),u.push(JSON.stringify(i,null,2)),u.push("```")),u.join(`
296
- `)}function SE(n,a){let i=0;for(let u=0;u<n.length;u++)if(n[u]===`
297
- `&&(i++,i>=a))return{text:n.slice(0,u),truncated:!0};return{text:n,truncated:!1}}function zE(n,a){const i=n.is_error;let u=typeof n.content=="string"?n.content:JSON.stringify(n.content,null,2);const s=i?"**Error:**":"**Result:**";if(a.truncateToolResults){let f=!1;if(a.truncationMode==="lines"){const d=SE(u,a.maxToolResultLength);u=d.text,f=d.truncated}else u.length>a.maxToolResultLength&&(u=u.slice(0,a.maxToolResultLength),f=!0);if(f){const d=Lt(u);return d?`${s}
298
- \`\`\`
299
- ${d}
300
- ...
301
- (truncated)
302
- \`\`\``:i?"**Error** (empty)":"**Result:** Success"}}const c=Lt(u);return c?`${s}
303
- \`\`\`
304
- ${c}
305
- \`\`\``:i?"**Error** (empty)":"**Result:** Success"}function kE(n){const a=n.thinking||"";return a?`<details>
306
- <summary>💡 Thinking</summary>
307
-
308
- ${a}
309
-
310
- </details>`:""}function wE(n,a,i){if(typeof n=="string")return a.mode==="tools-only"?"":Lt(n);const u=[],s=a.mode==="tools-only";for(const c of n)if(!(s&&c.type!=="tool_use"&&c.type!=="tool_result"))if(c.type==="text"&&c.text){const f=Lt(c.text);f&&u.push(f)}else if(c.type==="thinking"&&c.thinking&&a.includeThoughts){const f=kE(c);f&&u.push(f)}else c.type==="tool_use"?(s||a.includeTools)&&u.push(vE(c)):c.type==="tool_result"&&(s||a.includeTools)&&u.push(zE(c,a));return u.join(`
311
-
312
- `)}function EE(n,a){var s;const i=(s=n.message)==null?void 0:s.content;if(!i)return!1;const u=a.mode==="tools-only";if(typeof i=="string")return u?!1:Lt(i).length>0;if(u){for(const c of i)if(c.type==="tool_use"||c.type==="tool_result")return!0;return!1}for(const c of i)if(c.type==="text"&&c.text&&Lt(c.text).length>0||c.type==="thinking"&&c.thinking&&a.includeThoughts||(c.type==="tool_use"||c.type==="tool_result")&&a.includeTools)return!0;return!1}function TE(n,a){var d,p;if(n.type==="summary"){const m=(d=n.summary)==null?void 0:d.trim();return m?`## Summary
313
-
314
- ${m}`:""}if(n.type!=="user"&&n.type!=="assistant"||!EE(n,a))return"";const i=(p=n.message)==null?void 0:p.content;if(!i)return"";const u=n.type==="user",s=a.mode==="tools-only",c=wE(i,a);if(s&&u)return c.trim()?c:"";const f=u?"**User:**":"**Assistant:**";return c.trim()?`${f}
315
-
316
- ${c}`:""}function bg(n,a,i){const u=[];i&&(u.push(`# ${i.display}`),u.push(""),u.push(`**Project:** ${i.projectName}`),u.push(`**Date:** ${new Date(i.timestamp).toLocaleString()}`),u.push(`**Session ID:** ${i.id}`),u.push(""),u.push("---"),u.push(""));let s=0;for(let c=0;c<n.length;c++){c%50===0&&console.log(`Processing message ${c}/${n.length}`);const f=n[c],d=TE(f,a);d&&d.trim()&&(u.push(d),u.push(""),u.push("---"),u.push(""),s++)}return console.log(`Exported ${s} of ${n.length} messages`),u.join(`
317
- `).trim()}function Fp(n,a){const i=new Blob([n],{type:"text/markdown;charset=utf-8"}),u=URL.createObjectURL(i),s=document.createElement("a");s.href=u,s.download=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(u)}function CE(n){const i=new Date(n.timestamp).toISOString().split("T")[0],u=n.display.slice(0,50).replace(/[^a-zA-Z0-9\s-]/g,"").replace(/\s+/g,"-").toLowerCase();return`${i}-${u}.md`}async function vg(n){const a=new AbortController,i=setTimeout(()=>a.abort(),3e4);try{const u=await fetch(`/api/conversation/${n}`,{signal:a.signal});if(clearTimeout(i),!u.ok)throw new Error(`Failed to fetch conversation: ${u.statusText}`);return u.json()}catch(u){throw clearTimeout(i),u instanceof Error&&u.name==="AbortError"?new Error("Fetch timed out after 30 seconds"):u}}async function NE(n,a,i){const u=[];u.push("# Exported Conversations"),u.push(""),u.push(`**Export Date:** ${new Date().toLocaleString()}`),u.push(`**Total Conversations:** ${n.length}`),u.push(""),u.push("---"),u.push("");for(let s=0;s<n.length;s++){const c=n[s];i==null||i(s+1,n.length);try{const f=await vg(c.id),d=bg(f,a,c);u.push(d),u.push(""),u.push("---"),u.push("")}catch{u.push(`# ${c.display}`),u.push(""),u.push("**Error:** Failed to export this conversation"),u.push(""),u.push("---"),u.push("")}}return u.join(`
318
- `).trim()}function AE(n){const{sessions:a,messages:i,onClose:u}=n,s=a.length>1,[c,f]=J.useState({...bE}),[d,p]=J.useState(!1),[m,y]=J.useState(null),g=J.useCallback(async()=>{console.log("=== EXPORT STARTED ==="),p(!0);try{if(s){const S=await NE(a,c,(w,M)=>y({current:w,total:M})),v=new Date().toISOString().split("T")[0];Fp(S,`${v}-conversations-export.md`)}else{const S=a[0];console.log("Fetching session:",S.id);const v=i??await vg(S.id);console.log("Fetched",v.length,"messages"),await new Promise(M=>setTimeout(M,0)),console.log("Starting markdown conversion...");const w=bg(v,c,S);console.log("Generated",w.length,"chars"),Fp(w,CE(S)),console.log("Download triggered")}u()}catch(S){console.error("Export failed:",S)}finally{p(!1),y(null),console.log("=== EXPORT FINISHED ===")}},[a,i,c,s,u]);return b.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:b.jsxs("div",{className:"w-full max-w-md mx-4 bg-zinc-900 border border-zinc-700 rounded-xl shadow-2xl",children:[b.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-zinc-700",children:[b.jsxs("h2",{className:"text-base font-medium text-zinc-100",children:["Export ",s?`${a.length} Conversations`:"Conversation"]}),b.jsx("button",{onClick:u,disabled:d,className:"p-1.5 hover:bg-zinc-800 rounded-lg transition-colors disabled:opacity-50",children:b.jsx(vc,{className:"w-4 h-4 text-zinc-400"})})]}),b.jsxs("div",{className:"px-5 py-4 space-y-4",children:[!s&&a[0]&&b.jsxs("div",{className:"p-3 bg-zinc-800/50 rounded-lg border border-zinc-700/50",children:[b.jsx("p",{className:"text-sm text-zinc-300 line-clamp-2",children:a[0].display}),b.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:a[0].projectName})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Export Mode"}),b.jsxs("div",{className:"space-y-2",children:[b.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[b.jsx("input",{type:"radio",name:"exportMode",checked:c.mode==="full",onChange:()=>f(S=>({...S,mode:"full"})),disabled:d,className:"w-4 h-4 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsxs("div",{children:[b.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Full conversation"}),b.jsx("p",{className:"text-xs text-zinc-500",children:"Include messages and optionally tools/thoughts"})]})]}),b.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[b.jsx("input",{type:"radio",name:"exportMode",checked:c.mode==="tools-only",onChange:()=>f(S=>({...S,mode:"tools-only"})),disabled:d,className:"w-4 h-4 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsxs("div",{children:[b.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Tools only"}),b.jsx("p",{className:"text-xs text-zinc-500",children:"Only tool calls and results, exclude conversation text"})]})]})]})]}),c.mode==="full"&&b.jsxs("div",{className:"space-y-3",children:[b.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Content Options"}),b.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[b.jsx("input",{type:"checkbox",checked:c.includeTools,onChange:S=>f(v=>({...v,includeTools:S.target.checked})),disabled:d,className:"w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsxs("div",{children:[b.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Include tool calls and results"}),b.jsx("p",{className:"text-xs text-zinc-500",children:"Bash commands, file edits, search results, etc."})]})]}),b.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[b.jsx("input",{type:"checkbox",checked:c.includeThoughts,onChange:S=>f(v=>({...v,includeThoughts:S.target.checked})),disabled:d,className:"w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsxs("div",{children:[b.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Include thinking blocks"}),b.jsx("p",{className:"text-xs text-zinc-500",children:"Claude's internal reasoning process"})]})]})]}),b.jsxs("div",{className:"space-y-3",children:[b.jsx("p",{className:"text-sm font-medium text-zinc-300",children:"Truncation Settings"}),b.jsxs("label",{className:"flex items-center gap-3 cursor-pointer group",children:[b.jsx("input",{type:"checkbox",checked:c.truncateToolResults,onChange:S=>f(v=>({...v,truncateToolResults:S.target.checked})),disabled:d,className:"w-4 h-4 rounded border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsxs("div",{children:[b.jsx("span",{className:"text-sm text-zinc-200 group-hover:text-zinc-100",children:"Truncate long tool results"}),b.jsxs("p",{className:"text-xs text-zinc-500",children:["Limit tool output to ",c.maxToolResultLength.toLocaleString()," ",c.truncationMode==="lines"?"lines":"characters"]})]})]}),c.truncateToolResults&&b.jsxs("div",{className:"ml-7 space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[b.jsx("input",{type:"radio",name:"truncationMode",checked:c.truncationMode==="lines",onChange:()=>f(S=>({...S,truncationMode:"lines",maxToolResultLength:30})),disabled:d,className:"w-3.5 h-3.5 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsx("span",{className:"text-xs text-zinc-300",children:"Lines"})]}),b.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[b.jsx("input",{type:"radio",name:"truncationMode",checked:c.truncationMode==="chars",onChange:()=>f(S=>({...S,truncationMode:"chars",maxToolResultLength:2e3})),disabled:d,className:"w-3.5 h-3.5 border-zinc-600 bg-zinc-800 text-cyan-500 focus:ring-cyan-500 focus:ring-offset-zinc-900"}),b.jsx("span",{className:"text-xs text-zinc-300",children:"Characters"})]})]}),b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsxs("label",{className:"text-xs text-zinc-400",children:["Max ",c.truncationMode==="lines"?"lines":"chars",":"]}),b.jsx("input",{type:"number",value:c.maxToolResultLength,onChange:S=>f(v=>({...v,maxToolResultLength:Math.max(c.truncationMode==="lines"?1:100,parseInt(S.target.value)||(c.truncationMode==="lines"?30:2e3))})),disabled:d,className:"w-24 px-2 py-1 text-xs bg-zinc-800 border border-zinc-700 rounded text-zinc-200 focus:outline-none focus:border-cyan-500",min:c.truncationMode==="lines"?1:100,step:c.truncationMode==="lines"?10:500})]})]})]}),m&&b.jsxs("div",{className:"space-y-2",children:[b.jsxs("div",{className:"flex justify-between text-xs text-zinc-400",children:[b.jsx("span",{children:"Exporting..."}),b.jsxs("span",{children:[m.current," / ",m.total]})]}),b.jsx("div",{className:"h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:b.jsx("div",{className:"h-full bg-cyan-500 transition-all duration-300",style:{width:`${m.current/m.total*100}%`}})})]})]}),b.jsxs("div",{className:"flex justify-end gap-3 px-5 py-4 border-t border-zinc-700 bg-zinc-900/50",children:[b.jsx("button",{onClick:u,disabled:d,className:"px-4 py-2 text-sm text-zinc-300 hover:text-zinc-100 hover:bg-zinc-800 rounded-lg transition-colors disabled:opacity-50",children:"Cancel"}),b.jsx("button",{onClick:g,disabled:d,className:"flex items-center gap-2 px-4 py-2 text-sm font-medium text-zinc-900 bg-cyan-500 hover:bg-cyan-400 rounded-lg transition-colors disabled:opacity-50",children:d?b.jsxs(b.Fragment,{children:[b.jsx(i0,{className:"w-4 h-4 animate-spin"}),"Exporting..."]}):b.jsxs(b.Fragment,{children:[b.jsx(yc,{className:"w-4 h-4"}),"Export Markdown"]})})]})]})})}const Bn={mode:"literal",caseSensitive:!1,wordRegexp:!1,maxMatchesPerFile:200,maxSessions:500,timeoutMs:8e3};function Ni(n){if(n===null)return;const a=n.trim().toLowerCase();if(a==="1"||a==="true"||a==="yes")return!0;if(a==="0"||a==="false"||a==="no")return!1}function jE(n){if(n===null)return;const a=Number.parseInt(n,10);return Number.isFinite(a)?a:void 0}function Zp(n){const a=new URLSearchParams(n.startsWith("?")?n:`?${n}`),i=a.get("project"),u=a.get("session"),s=a.get("q"),c=Ni(a.get("ft")),f=Ni(a.get("sidebar")),d=Ni(a.get("batch")),p=Ni(a.get("noUnknown")),m=a.get("ftMode"),y=Ni(a.get("cs")),g=Ni(a.get("ww")),S=jE(a.get("mm")),v={};i!==null&&(v.project=i||null),u!==null&&(v.session=u||null),s!==null&&(v.search=s),typeof c=="boolean"&&(v.fullTextEnabled=c),typeof f=="boolean"&&(v.sidebarCollapsed=f),typeof d=="boolean"&&(v.batchMode=d),typeof p=="boolean"&&(v.excludeUnknownModels=p);const w={};return(m==="literal"||m==="regex")&&(w.mode=m),typeof y=="boolean"&&(w.caseSensitive=y),typeof g=="boolean"&&(w.wordRegexp=g),typeof S=="number"&&(w.maxMatchesPerFile=Math.max(1,Math.min(2e3,S))),Object.keys(w).length>0&&(v.fullTextOptions={...Bn,...w}),v}function Kp(n){const a=new URLSearchParams;n.project&&a.set("project",n.project),n.session&&a.set("session",n.session),n.search.trim()&&a.set("q",n.search),n.fullTextEnabled&&a.set("ft","1"),n.fullTextOptions.mode!==Bn.mode&&a.set("ftMode",n.fullTextOptions.mode),n.fullTextOptions.caseSensitive!==Bn.caseSensitive&&a.set("cs",n.fullTextOptions.caseSensitive?"1":"0"),n.fullTextOptions.wordRegexp!==Bn.wordRegexp&&a.set("ww",n.fullTextOptions.wordRegexp?"1":"0"),(n.fullTextOptions.maxMatchesPerFile??Bn.maxMatchesPerFile)!==Bn.maxMatchesPerFile&&a.set("mm",String(n.fullTextOptions.maxMatchesPerFile??Bn.maxMatchesPerFile)),n.sidebarCollapsed&&a.set("sidebar","1"),n.batchMode&&a.set("batch","1"),n.excludeUnknownModels&&a.set("noUnknown","1");const i=a.toString();return i?`?${i}`:""}function ME(n){const{session:a,meta:i,copied:u,onCopyResumeCommand:s,onExport:c}=n,f=o0(a.project),d=i!=null&&i.models.length?i.models.join(", "):"Unknown",p=(i==null?void 0:i.startTime)??a.timestamp,m=(i==null?void 0:i.endTime)??a.timestamp,y=Zm(p),g=Zm(m);return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"flex items-center gap-3 min-w-0 flex-1",children:b.jsxs("div",{className:"min-w-0",children:[b.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[b.jsx("span",{className:"text-sm text-zinc-300 truncate max-w-xs",children:a.display}),b.jsx("span",{className:"text-xs text-zinc-600 shrink-0",children:s0(a.timestamp)})]}),b.jsxs("div",{className:"mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-1 text-[11px] text-zinc-500",children:[b.jsx("span",{className:"truncate max-w-130",title:f,children:f}),b.jsxs("span",{children:["Model: ",d]}),b.jsxs("span",{children:["Start: ",y]}),b.jsxs("span",{children:["End: ",g]})]})]})}),b.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[b.jsxs("button",{onClick:c,className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer",title:"Export conversation as Markdown",children:[b.jsx(yc,{className:"w-3.5 h-3.5"}),b.jsx("span",{children:"Export"})]}),b.jsx("button",{onClick:()=>s(a.id,a.project),className:"flex items-center gap-2 px-2.5 py-1.5 text-xs text-zinc-300 bg-zinc-800 hover:bg-zinc-700 rounded transition-colors cursor-pointer",title:"Copy resume command to clipboard",children:u?b.jsxs(b.Fragment,{children:[b.jsx(Ua,{className:"w-3.5 h-3.5 text-green-500"}),b.jsx("span",{className:"text-green-500",children:"Copied!"})]}):b.jsxs(b.Fragment,{children:[b.jsx(xc,{className:"w-3.5 h-3.5"}),b.jsx("span",{children:"Copy Resume Command"})]})})]})]})}function _E(){const n=J.useMemo(()=>{const ne=Zp(window.location.search);return{selectedProject:ne.project??null,selectedSession:ne.session??null,search:ne.search??"",fullTextEnabled:ne.fullTextEnabled??!1,fullTextOptions:ne.fullTextOptions??Bn,sidebarCollapsed:ne.sidebarCollapsed??!1,batchMode:ne.batchMode??!1,excludeUnknownModels:ne.excludeUnknownModels??!1}},[]),[a,i]=J.useState([]),[u,s]=J.useState([]),[c,f]=J.useState(n.selectedProject),[d,p]=J.useState(n.selectedSession),[m,y]=J.useState(!0),[g,S]=J.useState(n.sidebarCollapsed),[v,w]=J.useState(!1),[M,B]=J.useState(n.excludeUnknownModels),[A,q]=J.useState(new Map),[H,te]=J.useState(n.search),[ie,D]=J.useState(n.fullTextEnabled),[I,se]=J.useState(n.fullTextOptions),[he,U]=J.useState(n.batchMode),[le,W]=J.useState(new Set),ye=J.useRef({didInit:!1,prev:null,searchTimer:null,lastCommittedSearch:""}),[re,$]=J.useState(!1),[R,K]=J.useState([]),[oe,be]=J.useState(void 0),[E,C]=J.useState(null),X=J.useCallback((ne,de)=>{const ve=`cd ${de} && claude --resume ${ne}`;navigator.clipboard.writeText(ve).then(()=>{w(!0),setTimeout(()=>w(!1),2e3)})},[]),k=J.useMemo(()=>d&&a.find(ne=>ne.id===d)||null,[a,d]),F=J.useMemo(()=>c?a.filter(ne=>ne.project===c):a,[a,c]),ae=J.useMemo(()=>M?F.filter(ne=>A.get(ne.id)!==null):F,[F,M,A]);J.useEffect(()=>{C(null)},[d]);const ue=J.useCallback(ne=>{C(ne)},[]);J.useEffect(()=>{fetch("/api/projects").then(ne=>ne.json()).then(s).catch(console.error)},[]),J.useEffect(()=>{q(ne=>{const de=new Set(a.map($e=>$e.id)),ve=new Map;for(const[$e,De]of ne.entries())de.has($e)&&ve.set($e,De);return ve})},[a]);const Se=J.useCallback(async ne=>{if(ne.length!==0)try{const de=await fetch("/api/sessions/metadata",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:ne})}),ve=await de.json();if(!de.ok||!ve.sessions)return;q($e=>{const De=new Map($e);for(const at of ve.sessions)De.set(at.id,at.model??null);return De})}catch{}},[]);J.useEffect(()=>{if(!M)return;const ne=F.map(de=>de.id).filter(de=>!A.has(de));ne.length!==0&&Se(ne)},[M,F,A,Se]);const Ye=J.useCallback(ne=>{const de=JSON.parse(ne.data);i(de),y(!1)},[]),Le=J.useCallback(ne=>{const de=JSON.parse(ne.data);i(ve=>{const $e=new Map(ve.map(De=>[De.id,De]));for(const De of de)$e.set(De.id,De);return Array.from($e.values()).sort((De,at)=>at.timestamp-De.timestamp)})},[]),pt=J.useCallback(()=>{y(!1)},[]);yE("/api/sessions/stream",{events:[{eventName:"sessions",onMessage:Ye},{eventName:"sessionsUpdate",onMessage:Le}],onError:pt});const rn=J.useCallback(ne=>{p(ne)},[]);J.useEffect(()=>{const ne=()=>{const de=Zp(window.location.search),ve={project:de.project??null,session:de.session??null,search:de.search??"",fullTextEnabled:de.fullTextEnabled??!1,fullTextOptions:de.fullTextOptions??Bn,sidebarCollapsed:de.sidebarCollapsed??!1,batchMode:de.batchMode??!1,excludeUnknownModels:de.excludeUnknownModels??!1};f(ve.project),p(ve.session),te(ve.search),D(ve.fullTextEnabled),se(ve.fullTextOptions),S(ve.sidebarCollapsed),U(ve.batchMode),B(ve.excludeUnknownModels),W(new Set)};return window.addEventListener("popstate",ne),()=>{window.removeEventListener("popstate",ne)}},[]),J.useEffect(()=>()=>{const{searchTimer:ne}=ye.current;ne&&clearTimeout(ne)},[]),J.useEffect(()=>{const ne=ye.current,de={project:c,session:d,search:H,fullTextEnabled:ie,fullTextOptions:I,sidebarCollapsed:g,batchMode:he,excludeUnknownModels:M};if(!ne.didInit){ne.didInit=!0,ne.prev=de,ne.lastCommittedSearch=de.search;return}const ve=ne.prev;ne.prev=de;const $e=Kp(de);if(window.location.search===$e)return;const De=!!ve&&(ve.fullTextOptions.mode!==de.fullTextOptions.mode||ve.fullTextOptions.caseSensitive!==de.fullTextOptions.caseSensitive||ve.fullTextOptions.wordRegexp!==de.fullTextOptions.wordRegexp||(ve.fullTextOptions.maxMatchesPerFile??200)!==(de.fullTextOptions.maxMatchesPerFile??200)),at=!!ve&&(ve.project!==de.project||ve.session!==de.session||ve.fullTextEnabled!==de.fullTextEnabled||De||ve.sidebarCollapsed!==de.sidebarCollapsed||ve.batchMode!==de.batchMode||ve.excludeUnknownModels!==de.excludeUnknownModels);if(!!ve&&ve.search!==de.search&&!at){history.replaceState(null,"",$e||window.location.pathname),ne.searchTimer&&clearTimeout(ne.searchTimer);const ee=de.search;ne.searchTimer=setTimeout(()=>{if(ne.lastCommittedSearch===ee)return;const ge={project:c,session:d,search:H,fullTextEnabled:ie,fullTextOptions:I,sidebarCollapsed:g,batchMode:he,excludeUnknownModels:M};if(ge.search!==ee)return;const Te=Kp(ge);if(window.location.search===Te){const Ue=Te||window.location.pathname;history.pushState(null,"",Ue),ne.lastCommittedSearch=ee}},600);return}ne.searchTimer&&(clearTimeout(ne.searchTimer),ne.searchTimer=null),history.pushState(null,"",$e||window.location.pathname),ne.lastCommittedSearch=de.search},[c,d,H,ie,I,g,he,M]);const gl=J.useCallback(()=>{U(ne=>!ne),W(new Set)},[]),Bl=J.useCallback(ne=>{W(de=>{const ve=new Set(de);return ve.has(ne)?ve.delete(ne):ve.add(ne),ve})},[]),un=J.useCallback(()=>{W(new Set(ae.map(ne=>ne.id)))},[ae]),qn=J.useCallback(()=>{W(new Set)},[]),Yn=J.useCallback(async ne=>{if(ne.length===0){console.log("[handleDeleteUnknownSessions] No ids to delete");return}console.log(`[handleDeleteUnknownSessions] Requesting deletion of ${ne.length} sessions:`,ne);try{const de=await fetch("/api/sessions/delete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:ne})}),ve=await de.json();if(console.log("[handleDeleteUnknownSessions] Server response:",ve),!de.ok){console.error("[handleDeleteUnknownSessions] Server returned error:",de.status);return}const $e=new Set(ve.deleted??[]),De=ve.failed??[];console.log(`[handleDeleteUnknownSessions] ${$e.size} deleted, ${De.length} failed`),$e.size>0&&(console.log("[handleDeleteUnknownSessions] Removing from state:",Array.from($e)),i(at=>at.filter(V=>!$e.has(V.id))),W(at=>{const V=new Set(at);for(const ee of $e)V.delete(ee);return V}),q(at=>{const V=new Map(at);for(const ee of $e)V.delete(ee);return V}),p(at=>at&&$e.has(at)?null:at)),De.length>0&&console.warn("[handleDeleteUnknownSessions] These sessions failed to delete:",De)}catch(de){console.error("[handleDeleteUnknownSessions] Fetch error:",de)}},[]),Hl=J.useCallback(()=>{k&&(K([k]),be(void 0),$(!0))},[k]),ql=J.useCallback(()=>{const ne=ae.filter(de=>le.has(de.id));K(ne),be(void 0),$(!0)},[ae,le]),Vn=J.useCallback(()=>{$(!1),K([]),be(void 0)},[]);return b.jsxs("div",{className:"flex h-screen bg-zinc-950 text-zinc-100",children:[!g&&b.jsxs("aside",{className:"w-80 border-r border-zinc-800/60 flex flex-col bg-zinc-950",children:[b.jsx("div",{className:"border-b border-zinc-800/60",children:b.jsx("label",{htmlFor:"select-project",className:"block w-full px-1",children:b.jsxs("select",{id:"select-project",value:c||"",onChange:ne=>f(ne.target.value||null),className:"w-full h-12.5 bg-transparent text-zinc-300 text-sm focus:outline-none cursor-pointer px-5 py-4",children:[b.jsx("option",{value:"",children:"All Projects"}),u.map(ne=>{const de=ne.split("/").pop()||ne;return b.jsx("option",{value:ne,children:de},ne)})]})})}),b.jsx(sb,{sessions:ae,selectedSession:d,onSelectSession:rn,loading:m,selectedProject:c,search:H,onSearchChange:te,fullTextEnabled:ie,onFullTextEnabledChange:D,fullTextOptions:I,onFullTextOptionsChange:se,excludeUnknownModels:M,onExcludeUnknownModelsChange:B,sessionModels:A,onDeleteUnknownSessions:Yn,batchMode:he,selectedSessions:le,onToggleBatchMode:gl,onToggleSessionSelection:Bl,onSelectAll:un,onDeselectAll:qn,onBatchExport:ql})]}),b.jsxs("main",{className:"flex-1 overflow-hidden bg-zinc-950 flex flex-col",children:[b.jsxs("div",{className:"min-h-12.5 border-b border-zinc-800/60 flex items-center px-4 gap-4 py-2",children:[b.jsx("button",{onClick:()=>S(!g),className:"p-1.5 hover:bg-zinc-800 rounded transition-colors cursor-pointer","aria-label":g?"Expand sidebar":"Collapse sidebar",children:b.jsx(A1,{className:"w-4 h-4 text-zinc-400"})}),k&&b.jsx(ME,{session:k,meta:E,copied:v,onCopyResumeCommand:X,onExport:Hl})]}),b.jsx("div",{className:"flex-1 overflow-hidden",children:d?b.jsx(xE,{sessionId:d,onMetaChange:ue}):b.jsx("div",{className:"flex h-full items-center justify-center text-zinc-600",children:b.jsxs("div",{className:"text-center",children:[b.jsx("div",{className:"text-base mb-2 text-zinc-500",children:"Select a session"}),b.jsx("div",{className:"text-sm text-zinc-600",children:"Choose a session from the list to view the conversation"})]})})})]}),re&&b.jsx(AE,{sessions:R,messages:oe,onClose:Vn})]})}Xy.createRoot(document.getElementById("root")).render(b.jsx(J.StrictMode,{children:b.jsx(_E,{})}));